[TVer]"Remote end closed connection without response"

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'm running yt-dlp version 2023.03.04 (update instructions) or later (specify commit)
[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
[ ] I've read about sharing account credentials and I'm willing to share it if required

Region
China's Mainland
Provide a description that is worded well enough to be understood
I've downloaded videos from tver.jp several times with the same IP address, and this is the first time I met the problem. The program told me to report the issue here. By the way, it's free to view the full video at this URL so I don't have the account.
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
D:\yt-dlp>yt-dlp.exe -vU --proxy http://<IP_ADDRESS>:4780 https://tver.jp/episodes/epnaiaub44 -N 64
[debug] Command-line config: ['-vU', '--proxy', 'http://<IP_ADDRESS>:4780', 'https://tver.jp/episodes/epnaiaub44', '-N', '64']
[debug] Encodings: locale cp936, fs utf-8, pref cp936, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[392389b7d] (win32_dir)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.19045 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-10.4
[debug] Proxy map: {'http': 'http://<IP_ADDRESS>:4780', 'https': 'http://<IP_ADDRESS>:4780'}
[debug] Loaded 1786 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
ERROR: Unable to obtain version info; Please try again later or visit  https://github.com/yt-dlp/yt-dlp/releases/latest
[TVer] Creating session
[TVer] Extracting URL: https://tver.jp/episodes/epnaiaub44
[TVer] epnaiaub44: Downloading JSON metadata
[TVer] epnaiaub44: Downloading JSON metadata
[brightcove:new] Extracting URL: http://players.brightcove.net/4394098883001/default_default/index.html?videoId=ref:39127_39126_39964#__youtubedl_smuggle=%7B%22geo_countries%22%3A+%5B%22JP%22%5D%7D
[debug] Using fake IP <IP_ADDRESS> (JP) as X-Forwarded-For
[debug] Loading brightcove.4394098883001_default from cache
[brightcove:new] ref:39127_39126_39964: Downloading JSON metadata
ERROR: [brightcove:new] None: Unable to download JSON metadata: Remote end closed connection without response (caused by RemoteDisconnected('Remote end closed connection without response')); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "yt_dlp\extractor\common.py", line 694, in extract
  File "yt_dlp\extractor\brightcove.py", line 913, in _real_extract
  File "yt_dlp\extractor\common.py", line 1048, in download_content
  File "yt_dlp\extractor\common.py", line 1012, in download_handle
  File "yt_dlp\extractor\adobepass.py", line 1366, in _download_webpage_handle
  File "yt_dlp\extractor\common.py", line 882, in _download_webpage_handle
  File "yt_dlp\extractor\common.py", line 839, in _request_webpage

  File "yt_dlp\extractor\common.py", line 821, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 3742, in urlopen
  File "urllib\request.py", line 525, in open
  File "urllib\request.py", line 542, in _open
  File "urllib\request.py", line 502, in _call_chain
  File "yt_dlp\utils.py", line 1555, in https_open
  File "urllib\request.py", line 1358, in do_open
  File "http\client.py", line 1344, in getresponse
  File "http\client.py", line 307, in begin
  File "http\client.py", line 276, in _read_status
http.client.RemoteDisconnected: Remote end closed connection without response

Version 2024.09.27 in Singapore:
[debug] Command-line config: ['-vU', 'https://tver.jp/episodes/epnaiaub44']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp [c6387abc1] (pip)
[debug] Python 3.12.3 (CPython x86_64 64bit) - Linux-6.8.0-41-generic-x86_64-with-glibc2.39 (OpenSSL 3.0.13 30 Jan 2024, glibc 2.39)
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.08.30, mutagen-1.47.0, requests-2.32.3, sqlite3-3.45.1, urllib3-2.2.3, websockets-13.1
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1838 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp)
[TVer] Creating session
[TVer] Extracting URL: https://tver.jp/episodes/epnaiaub44
[TVer] epnaiaub44: Downloading JSON metadata
WARNING: [TVer] Unable to download JSON metadata: HTTP Error 404: Not Found
[TVer] epnaiaub44: Downloading JSON metadata
[brightcove:new] Extracting URL: http://players.brightcove.net/4394098883001/default_default/index.html?videoId=ref:39127_39126_39964#__youtubedl_smuggle=%7B%22geo_countries%22%3A+%5B%22JP%22%5D%7D
[debug] Using fake IP <IP_ADDRESS> (JP) as X-Forwarded-For
[debug] Loading brightcove.4394098883001_default from cache
[brightcove:new] ref:39127_39126_39964: Downloading JSON metadata
ERROR: [brightcove:new] The policy key provided does not permit this account or video, or the requested resource is inactive.
  File "/dev/shm/yt-dlp/.venv/lib/python3.12/site-packages/yt_dlp/extractor/common.py", line 741, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "/dev/shm/yt-dlp/.venv/lib/python3.12/site-packages/yt_dlp/extractor/brightcove.py", line 919, in _real_extract
    raise ExtractorError(message, expected=True)

.


I use 'KTS' to segment the video ,but I can't get the result of yours，how can I get the same segmentation

I think, that the data used in this repo weren't produced by the authors here, but they are the "same" data used in almost every work (produced by Kaiyang Zhou). That being said, I tried many times and with different KTS parameters, but couldn't replicate the same shot segmentation.  The data also appeared in Video Summarization with Long Short-term Memory, where in the Supplementary Material they note, and I quote The resulting intervals are around 5 seconds on average. Even with this info, I was unable to replicate them, but I wish you a better luck!

That's right. In my exploration to find the original steps, I found this https://github.com/SinDongHwan/pytorch-vsumm-reinforce/blob/master/utils/generate_dataset.py which is the most similar. I relied on that last one to replicate and I think I did. At least, in the shape of the vectors they are similar (TVSum and Summe) but the "points of change" depend on the vector of characteristics that was applied, so I got different values. This also happens with the gtscore. This is my repository https://github.com/StevRamos/video_summarization

That's right. In my exploration to find the original steps, I found this https://github.com/SinDongHwan/pytorch-vsumm-reinforce/blob/master/utils/generate_dataset.py which is the most similar. I relied on that last one to replicate and I think I did. At least, in the shape of the vectors they are similar (TVSum and Summe) but the "points of change" depend on the vector of characteristics that was applied, so I got different values. This also happens with the gtscore. This is my repository https://github.com/StevRamos/video_summarization

Thank you,I tried that

I think, that the data used in this repo weren't produced by the authors here, but they are the "same" data used in almost every work (produced by Kaiyang Zhou). That being said, I tried many times and with different KTS parameters, but couldn't replicate the same shot segmentation. The data also appeared in Video Summarization with Long Short-term Memory, where in the Supplementary Material they note, and I quote The resulting intervals are around 5 seconds on average. Even with this info, I was unable to replicate them, but I wish you a better luck!

Thank you,I tried that


Voltage calibration value

In the latest release, you list "29462" as the default value we should set, but that conflicts with the "default" value you list on the emonESP's own configuration page of "37106", which is also in your screenshot here
When I set the default you suggested in your release notes of "29462", my system was reading around 100 volts, instead of the 125v it was actually sitting at.
Setting mine to 37106 corrected the calibration, but I just figured I would let you know about the discrepancy you posted, so other's are not confused when they follow those instructions.

Thanks, I'll make that correction!


Feature: add old data in afterUpdate model event

I want to check if the value of a field has changed in model event afterUpdate for do something. But eventData contains only

data = the key/value pairs being updated.

Maybe add current row(s) (data before update) in eventData? Something like this:

oldData = the row(s) with old data (before update)

It will allow to follow for changes of fields values.

To have old data, you need to make a query before updating, but not everyone wants this behavior.
Therefore, you better define the events of the model yourself and perform the manipulations you need.

@iRedds is correct: Model events are limited to what they already have without issuing additional queries. You could certainly implement this yourself, but ti does not fit in the framework.


Adding personality

Starting to do the loading bar stuff. The loading bar works but I'm going to add some more stuff in near future. I'm thinking that i'll add some randomly selected text that changes as the bar loads.

some picture of the loading bar. I need to move it a little bit but it does in fact load.


gopass: override GOPASS_CONFIG to fix completion generation

gopass tries to write a version number to it's configuaration, even when
just generating the shell completion scripts. This fails, as
/homeless-shelter is read-only inside the sandbox.
As error messages are printed to stdout instead of stderr
(see https://github.com/gopasspw/gopass/issues/877), the error message
lands inside the completion script, thus breaking it.
Workaround that by setting GOPASS_CONFIG to /dev/null
Motivation for this change
gopass' shell completion was broken. Turns out, first line of each completion script is

Failed to save config: failed to create dir '/homeless-shelter/.config/gopass': mkdir /homeless-shelter: permission denied

Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Fits CONTRIBUTING.md.

Success on x86_64-linux (full log)
Attempted: gopass
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/9ljzvng6pi0nk6sdbb5ziv605vm0xwp9-gopass-1.8.1-bin/bin
patching script interpreter paths in /nix/store/9ljzvng6pi0nk6sdbb5ziv605vm0xwp9-gopass-1.8.1-bin
checking for references to /build in /nix/store/9ljzvng6pi0nk6sdbb5ziv605vm0xwp9-gopass-1.8.1-bin...
shrinking RPATHs of ELF executables and libraries in /nix/store/wjay807sci0rx08w1jlksnbbv5ag5si5-gopass-1.8.1
strip is /nix/store/4mf2xm9p32lzrim927yk92xhx35yaz62-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/wjay807sci0rx08w1jlksnbbv5ag5si5-gopass-1.8.1
/nix/store/wjay807sci0rx08w1jlksnbbv5ag5si5-gopass-1.8.1/share/go/src/github.com/gopasspw/gopass/vendor/golang.org/x/sys/unix/mkerrors.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/0aa1ngxygf1iqanfbpdb10klc7r343c0-bash-4.4-p19/bin/bash"
/nix/store/wjay807sci0rx08w1jlksnbbv5ag5si5-gopass-1.8.1/share/go/src/github.com/gopasspw/gopass/vendor/golang.org/x/sys/unix/mkall.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/0aa1ngxygf1iqanfbpdb10klc7r343c0-bash-4.4-p19/bin/bash"
checking for references to /build in /nix/store/wjay807sci0rx08w1jlksnbbv5ag5si5-gopass-1.8.1...
/nix/store/9ljzvng6pi0nk6sdbb5ziv605vm0xwp9-gopass-1.8.1-bin

Success on aarch64-linux (full log)
Attempted: gopass
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/3cpvlzij74vdj7gkvazvkwlrajqk1lmj-gopass-1.8.1-bin/bin
patching script interpreter paths in /nix/store/3cpvlzij74vdj7gkvazvkwlrajqk1lmj-gopass-1.8.1-bin
checking for references to /build in /nix/store/3cpvlzij74vdj7gkvazvkwlrajqk1lmj-gopass-1.8.1-bin...
shrinking RPATHs of ELF executables and libraries in /nix/store/7ixlwwf0vmxq1kpczbck917sl0lwg4xk-gopass-1.8.1
strip is /nix/store/min150lkigznaayzpwvf8d4jdl1dqvx6-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/7ixlwwf0vmxq1kpczbck917sl0lwg4xk-gopass-1.8.1
/nix/store/7ixlwwf0vmxq1kpczbck917sl0lwg4xk-gopass-1.8.1/share/go/src/github.com/gopasspw/gopass/vendor/golang.org/x/sys/unix/mkall.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/23kq49wszxq7k41dqfk82q5vqwlq5sww-bash-4.4-p19/bin/bash"
/nix/store/7ixlwwf0vmxq1kpczbck917sl0lwg4xk-gopass-1.8.1/share/go/src/github.com/gopasspw/gopass/vendor/golang.org/x/sys/unix/mkerrors.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/23kq49wszxq7k41dqfk82q5vqwlq5sww-bash-4.4-p19/bin/bash"
checking for references to /build in /nix/store/7ixlwwf0vmxq1kpczbck917sl0lwg4xk-gopass-1.8.1...
/nix/store/3cpvlzij74vdj7gkvazvkwlrajqk1lmj-gopass-1.8.1-bin

Success on x86_64-darwin (full log)
Attempted: gopass
Partial log (click to expand)
/private/tmp/nix-build-gopass-1.8.1.drv-0
post-installation fixup
strip is /nix/store/8q05v40n0f7amgw70pk6bkb23r7hrzgn-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/p6xabs0r1fnryaxjnlr7ni1razg0c9qy-gopass-1.8.1-bin/bin
patching script interpreter paths in /nix/store/p6xabs0r1fnryaxjnlr7ni1razg0c9qy-gopass-1.8.1-bin
strip is /nix/store/8q05v40n0f7amgw70pk6bkb23r7hrzgn-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/br9hk8hrhz75vv94dbgaknw7zs0r6i7z-gopass-1.8.1
/nix/store/br9hk8hrhz75vv94dbgaknw7zs0r6i7z-gopass-1.8.1/share/go/src/github.com/gopasspw/gopass/vendor/golang.org/x/sys/unix/mkall.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/7jlpy03vrh1v74b6rnrclbqc9s40ixkg-bash-4.4-p19/bin/bash"
/nix/store/br9hk8hrhz75vv94dbgaknw7zs0r6i7z-gopass-1.8.1/share/go/src/github.com/gopasspw/gopass/vendor/golang.org/x/sys/unix/mkerrors.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/7jlpy03vrh1v74b6rnrclbqc9s40ixkg-bash-4.4-p19/bin/bash"
/nix/store/p6xabs0r1fnryaxjnlr7ni1razg0c9qy-gopass-1.8.1-bin

Success on x86_64-linux (full log)
Attempted: gopass
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/bgal6wlb5v2j34yvyn6sljyz628ximcw-gopass-1.8.1-bin/bin
patching script interpreter paths in /nix/store/bgal6wlb5v2j34yvyn6sljyz628ximcw-gopass-1.8.1-bin
checking for references to /build in /nix/store/bgal6wlb5v2j34yvyn6sljyz628ximcw-gopass-1.8.1-bin...
shrinking RPATHs of ELF executables and libraries in /nix/store/j32hx5k09c5fkyw1vbdc4nga5j55i4bl-gopass-1.8.1
strip is /nix/store/4mf2xm9p32lzrim927yk92xhx35yaz62-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/j32hx5k09c5fkyw1vbdc4nga5j55i4bl-gopass-1.8.1
/nix/store/j32hx5k09c5fkyw1vbdc4nga5j55i4bl-gopass-1.8.1/share/go/src/github.com/gopasspw/gopass/vendor/golang.org/x/sys/unix/mkerrors.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/0aa1ngxygf1iqanfbpdb10klc7r343c0-bash-4.4-p19/bin/bash"
/nix/store/j32hx5k09c5fkyw1vbdc4nga5j55i4bl-gopass-1.8.1/share/go/src/github.com/gopasspw/gopass/vendor/golang.org/x/sys/unix/mkall.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/0aa1ngxygf1iqanfbpdb10klc7r343c0-bash-4.4-p19/bin/bash"
checking for references to /build in /nix/store/j32hx5k09c5fkyw1vbdc4nga5j55i4bl-gopass-1.8.1...
/nix/store/bgal6wlb5v2j34yvyn6sljyz628ximcw-gopass-1.8.1-bin

Success on aarch64-linux (full log)
Attempted: gopass
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/gzbra6nk3x4bjnsh7qpcmzsw764g9k5c-gopass-1.8.1-bin/bin
patching script interpreter paths in /nix/store/gzbra6nk3x4bjnsh7qpcmzsw764g9k5c-gopass-1.8.1-bin
checking for references to /build in /nix/store/gzbra6nk3x4bjnsh7qpcmzsw764g9k5c-gopass-1.8.1-bin...
shrinking RPATHs of ELF executables and libraries in /nix/store/5gs1rvmwj8pkqnsdgb65wbkjk5wbirhy-gopass-1.8.1
strip is /nix/store/min150lkigznaayzpwvf8d4jdl1dqvx6-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/5gs1rvmwj8pkqnsdgb65wbkjk5wbirhy-gopass-1.8.1
/nix/store/5gs1rvmwj8pkqnsdgb65wbkjk5wbirhy-gopass-1.8.1/share/go/src/github.com/gopasspw/gopass/vendor/golang.org/x/sys/unix/mkall.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/23kq49wszxq7k41dqfk82q5vqwlq5sww-bash-4.4-p19/bin/bash"
/nix/store/5gs1rvmwj8pkqnsdgb65wbkjk5wbirhy-gopass-1.8.1/share/go/src/github.com/gopasspw/gopass/vendor/golang.org/x/sys/unix/mkerrors.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/23kq49wszxq7k41dqfk82q5vqwlq5sww-bash-4.4-p19/bin/bash"
checking for references to /build in /nix/store/5gs1rvmwj8pkqnsdgb65wbkjk5wbirhy-gopass-1.8.1...
/nix/store/gzbra6nk3x4bjnsh7qpcmzsw764g9k5c-gopass-1.8.1-bin

Success on x86_64-darwin (full log)
Attempted: gopass
Partial log (click to expand)
/private/tmp/nix-build-gopass-1.8.1.drv-0
post-installation fixup
strip is /nix/store/8q05v40n0f7amgw70pk6bkb23r7hrzgn-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/y1xl28fhw9i1zrszrzhi4l6iwnz6pr7b-gopass-1.8.1-bin/bin
patching script interpreter paths in /nix/store/y1xl28fhw9i1zrszrzhi4l6iwnz6pr7b-gopass-1.8.1-bin
strip is /nix/store/8q05v40n0f7amgw70pk6bkb23r7hrzgn-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/cl52zz6vy1csffzfy5cmzndwmqccnphr-gopass-1.8.1
/nix/store/cl52zz6vy1csffzfy5cmzndwmqccnphr-gopass-1.8.1/share/go/src/github.com/gopasspw/gopass/vendor/golang.org/x/sys/unix/mkall.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/7jlpy03vrh1v74b6rnrclbqc9s40ixkg-bash-4.4-p19/bin/bash"
/nix/store/cl52zz6vy1csffzfy5cmzndwmqccnphr-gopass-1.8.1/share/go/src/github.com/gopasspw/gopass/vendor/golang.org/x/sys/unix/mkerrors.sh: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/7jlpy03vrh1v74b6rnrclbqc9s40ixkg-bash-4.4-p19/bin/bash"
/nix/store/y1xl28fhw9i1zrszrzhi4l6iwnz6pr7b-gopass-1.8.1-bin


Updated copyright #359

[x] I have read through the CONTRIBUTING.md documentation.
[x] My code has the necessary comments and documentation (if needed).

Hi piyush280599, thanks for your contribution to the BitSail community. we build a group for all contributor.Here is the QR code. If it expires, you can add WeChat ID<PHONE_NUMBER>7. Look forward to your arrival! @piyush280599

@yucongcong654 Thank you for the invitation but wechat is banned in my country :(

Is Slack available? @piyush280599

@yucongcong654 Yes Slack is available!

You can join Bitsail's slack @piyush280599 ，Also what is your email address?

@yucongcong654 its<EMAIL_ADDRESS>

I sent you an email, please check it @piyush280599


functionPosition is not fired

For some reason, I cannot make the functionPosition to fire.
My code is
    $('.tooltipster').tooltipster({
        functionPosition: function(instance, helper, position){
            console.log('aaa');
            position.coord.top -= 50;
            return position;
        }
    });

Am I doing something wrong?

Hi, there is nothing wrong in this snippet but yes, you must do something wrong.

:-) When I do the same with functionReady, it's triggered fine... No idea what's going on here...

Make sure you use our latest release, functionPosition did not exist in v3.

I downloaded Tooltipster yesterday, so I'm pretty sure I'm on the latest version.

Weird. No errors in the console I presume?
Works for me: https://jsfiddle.net/5xqqmrt6/25/ (this uses 4.1.4 but I also tested on the latest 4.1.6).

Any news on this? Do you have a url for test?

@louisameline not firing for me in my extension app:( No logs, and i cannot find the root cause

@louisameline Hey I am using tooltipster v3.3 and plan to upgrade soon?
But want to fix something quick for a upcoming release. Is there a workaround to provide offset in v3.3 of tooltipster?
And is there any document about the breaking changes from v3 to v4 ?
Thanks!


cube-ctl: fix regression with c3 add and btrfs subvol creation

The commit e9e8c92d3a3ce0f46eee870d20d4c876494d303c (cube-ctl:
Optimize "c3 add" instantiation time) caused the btrfs sub volume code
to stop working because it was checking for the existence of the wrong
directory.
It should have checked out_dir=/opt/container + the container name.
Signed-off-by: Jason Wessel<EMAIL_ADDRESS>

merged


Bold and italics rendering in Markdown

When writing bold and italics, the preview does not recognize markup for bold and italic. Instead, it renders a list with * at the end.
Steps to reproduce:

Start with a blank note
Write *foo. It renders a bullet with string "foo"
Write * (now the string is *foo*). It renders a bullet with string "foo*"

Expected behaviour: renders foo
Same goes with bold markup (2 *)

Hi Sergio,
Thank you for raising this issue, I fixed this in the latest two commits.
Italics and bold text should now render correctly, and lists are now started with a hyphen rather than an asterisk.
So the markup to create a list would be as follows:
``

item 1
item 2
item 3
``
Bold and italics can also be used within lists, so there should be no problems there either.

After investigating, I saw that this bug existed, was because I unintentionally changed the ordering of the regex which parsed the lists before the bold/italics, leading to lists being created rather than formatting the text.
Let me know if you have any other bugs you'd like to report, and hopefully this solves the issue! Thanks again.

Solved.


HElp

what we can reset pasaword if forgot password on wallet rai block,
I really forgot because this is a long time, does anyone have a solution to solve this problem thanks

Did you back up your seed? If so, you can recreate the wallet with the seed. Otherwise I think you're out of luck.


Added Carbon emission contstraint to the optimizer

Description

Related Issue

[ ] Closes #
[x] Related to #475

Checklist

[x ] Checked that the pre-commit linting/style checks pass
[ ] Included tests that prove the fix is effective or that the new feature works
[ ] Added necessary documentation (docstrings and/or example notebooks)
[ ] If you are a pro: each commit corresponds to a relevant logical change

Modules affected

[x] MMM
[ ] CLV

Type of change

[x] New feature / enhancement
[ ] Bug fix
[ ] Documentation
[ ] Maintenance
[ ] Other (please specify):

📚 Documentation preview 📚: https://pymc-marketing--490.org.readthedocs.build/en/490/

I suspect this should either be optional as I see many users not having access to this data. And/or the optimizer is generalized and allows a user to provide arbitrary constraints.
Just some initial thoughts

Yeah for sure optional. In practice data on these sorts of things is very rare/not something front of mind to run in an optimization. That being said, it's a cool nice to have.

+1 Optional
Can you add a description of the PR please?

Hi there, so yeah the idea is to have it as an option for those who have external constraints that may influence the optimization of the budget allocation. I took as an example the carbon emission but it could be anything else depending on the business need. I will provide a description of the PR soon. Thank you

IMO, this functionality should not be implemented with this level of specificity. Certainly not with new kwargs called emissions.
It's fine for the method to be expanded to allow arbitrary constraints provided by the user, of which emissions would be one application.
If a general method is not feasible, then this should just be added as a documentation notebook example for users, not a library feature.

I agree with you that it should be more generalised so the kwargs needs to have another name so people don't get confused about it, but it could be added as an optional kwargs so people with basic optimization and those with external constraints both can use the function to answer their needs. As for docstrings, probably i removed smthg by mistake i will review it and PR again. Thanks for your feedback

Added comments in your code, including potential suggestions to make it generic, allows for user input of custom constraints as Ricardo has mentioned. Also have given some example usage at the very bottom. - tested locally and it seems to work fine for me. @wajihfabernovel feel free to review my comments. thanks!

I would say making this generic is a hard requirement. It's a great contribution that way and should only require renaming.

I would say making this generic is a hard requirement. It's a great contribution that way and should only require renaming.

I don't see what's hard about it? The scipy optimizer has a clear API for it, each constraint is a dictionary with some strings and a callable (this PR is just hard-coding a specific one)

I would say making this generic is a hard requirement. It's a great contribution that way and should only require renaming.

I don't see what's hard about it? The scipy optimizer has a clear API for it, each constraint is a dictionary with some strings and a callable (this PR is just hard-coding a specific one)

I didn't mean hard as in difficult but as a strict requirement for getting this PR merged.

@wajihfabernovel let us know if you need help with making it more general if you want to pursue than venue. More importantly, we will also need tests, and can also help with that

@wajihfabernovel Are you still interested in getting this over the finish line or do you want someone else to take over?

Hey team,

I don't see what's hard about it? The scipy optimizer has a clear API for it, each constraint is a dictionary with some strings and a callable (this PR is just hard-coding a specific one)

As I understand the goal hear is basically, allow for users to add their own constraint? Not the one we have by default?

As I understand the goal here is allow for users to add their own constraint into the optimizer? Not the one we have by default considering only the equality around maximum budget?

Yes, exactly. Let the user add extra constraints.

@wajihfabernovel Are you still interested in getting this over the finish line or do you want someone else to take over?

Yeah sure ! it is just that i am full focus in another project so I didn't have time to do it but i will come to it ASAP

@carlosagostini @wajihfabernovel i think my comments give the edits that it needs I think too to make it generic and fully flexible too. Hopefully this helps

@ricardoV94 @nialloulton @juanitorduz @wd60622
I'm addressing this PR in #632 with the new refactoring, allowing custom constraints. I'll suggest maybe close this temporarily because is very outdated. What do you think?

@ricardoV94 @nialloulton @juanitorduz @wd60622
I'm addressing this PR in #632 with the new refactoring, allowing custom constraints. I'll suggest maybe close this temporarily because is very outdated. What do you think?

Great! Let's come back to this one once you have merged #632 :)

Hey @juanitorduz
Should be close this PR?
Currently we can import the Optimizer from the pymc package and replace the constraint. E.g:
optimizer = BudgetOptimizer(
**kwargs
)

emissions_constraint = {
'type': 'ineq', 'fun': lambda x: max_emissions - sum(x[i]*emissions_per_channel[channels[i]] for i in range(len(x)))
}

optimizer.allocate_budget(
total_budget=max_emissions,
custom_constraints = emissions_constraint
)

Unless, exist another pain point. This should be solve!

is that ok @wajihfabernovel ?

hey, totally agree ! thanks


Write Crop Api documentation.

This is a start of doccumentation of CropAPI what do you think @slashrsm ?
Excuse my bad english at time ... if you can correct it, if you found faults.
Original demand : https://www.drupal.org/node/2382637

@slashrsm Thanks a lot for you few return !! Sorry for my english again :( I hope this help you a little ...
This is new version of Doc for u what do you think :) ?

Merged #12 that was based on top of this.

Thank you both!


GSD for crypto clients in unexpected places like AV

https://slashdot.org/story/22/01/10/2027205/avira-joins-norton-360-in-adding-a-crypto-miner-to-its-products?utm_source=rss1.0mainlinkanon&utm_medium=feed

Added to CWE backlog


Convert .show() to .root_group = for CircuitPython 9

in examples and README.rst

PR #7 updates the examples and README for both display.root_group and fourwire.FourWire, which was failing CI without the fourwire update.
The CI is still failing with a message: /home/runner/work/Adafruit_CircuitPython_SPD1656/Adafruit_CircuitPython_SPD1656/adafruit_spd1656.py:docstring of adafruit_spd1656.SPD1656:15:'any' reference target not found: displayio.FourWire but I can't find any other strings that match displayio.FourWire


Incorrect docstring

https://github.com/dfm/emcee/blob/194f99eee7b2f0987f972ab58fd1bfc56181db0d/emcee/autocorr.py#L63
I think this should read 50 :) Or the default value is wrong!

Fixed. Thanks and good catch!


Azure Blob Storage Binding Expecting String for Data

The Azure blob storage binding now expects the data property to contain a string rather than accepting a nested json object. Unfortunately, the documentation isn't clear as to what the payload should be from an http perspective.
Notice here that the payload is represented as a string value: https://github.com/dapr/docs/blob/master/reference/api/bindings_api.md#payload
Notice here that the payload is represented as a nested json object:
https://github.com/dapr/docs/blob/master/reference/api/bindings_api.md#examples-1
This being said, which of these is correct? I'm assuming both. If that is the case, then we should attempt to see if the data is a valid json object and process it as such. If it's not, then we should assume that it is string data.
Currently, the component attempts to strconv.Unquote() the data and throws an "Invalid syntax" error if non-quoted data is passed in the data property as seen here: https://github.com/dapr/components-contrib/blob/2c403ad238a576965767a5dd5581369cd0e76d46/bindings/azure/blobstorage/blobstorage.go#L140-L145
Obviously this needs to be fixed in the Azure blob storage binding but I'm wondering if this might be an issue for other bindings as well? Should we reason about a universal way to handle this so that it isn't up to each individual component (as that could lead to a very inconsistent developer experience)?
Thoughts?
/cc
@youngbupark @yaron2 @mchmarny @msfussell @orizohar

req.Data is bytes array ([]byte). before serializing data, we need to check if the data is bytes or the object.
https://github.com/dapr/dapr/blob/3d21cd1df19a234a00ad072e3ddc96c9b4f3d1be/pkg/http/api.go#L305-L311
this issue is the same issue as what we have in state store in the last release.  We need to prioritize this issue as P1.
cc/ @yaron2 @msfussell @mukundansundar @artursouza

This is now fixed in 1.0-rc1.


Print number

What's Changing and Why
Allow print to print any type.
closes #568
What else might be affected
Tasks

[x] Add tests
[x] Update Documentation
[x] Update jimp.d.ts
[x] Add SemVer Label

@edi9999 I changed it it !== null so a user could still provide non string in the text object


Fix bug with building queries with struct-type columns

Summary
When we build SQL that accesses struct types, the built SQL (a) doesn't have the right aliased table name for the struct-type column and (b) doesn't include both the name of the column and the subscript. There were a couple of causes:

We don't add a reference to the struct-type column onto the table
We don't indicate that the add_ref_column call was successful
We need a way to track the name for columns that reference a subscript on a StructType (see _struct_subscript variable on ast.Column)

Test Plan
Added a test for the particular struct reference within a metric that was failing.

[ ] PR has an associated issue: #718
[ ] make check passes
[ ] make test shows 100% unit test coverage

Deployment Plan

@shangyian I vaguely recall some struct stuff earlier on after redoing the ast and parser. I guess we never handled it or handled it fully?

@shangyian I vaguely recall some struct stuff earlier on after redoing the ast and parser. I guess we never handled it or handled it fully?

@CircArgs Yeah, I don't think we had any test cases for this. The problem is that struct references still use the same namespace / names setup that we have, but we always assume that the name refers to the column name, whereas for struct references, it could be the struct subscript instead. I actually did a second round on this PR where I added a is_struct_ref boolean, and if it's set to true, we can use the struct_column_name and struct_subscript properties depending on which we need.


GoTest open Trouble.nvim

Is it possible to set GoTest to open Trouble.nvim instead of the standard quickfix window?

I am not familiar with Trouble, is there other plug can output the test result to Trouble?
Also the GoTest output is not lsp diagnostic output.

The issue is not with outputting results to Trouble, but with not opening quickfix list automatically after some tests fail and opening Trouble instead. Trouble can display quickfix data, just in a nicer way.

This is supported in 93c724d


Update .gitignore and add .editorconfig

This PR contains two small changes:

Update .gitignore to match the .gitignore in kubernetes-engine-samples.
Add .editorconfig with basic configurations (see YouTube short about .editorconfig or official .editorconfig website).

LGTM - would be great to add editorconfig files to other repos - should be a very quick fix! 👍


Connect clients to the Tonomy Communicion service in staging

Acceptance criteria

[ ] Tonomy ID and other clients successfully connect to the Tonomy Communication service

https://communication-api-staging.tonomy.foundation

changed urls and fixed multiple bugs checked everything is working on staging
new task: fix tonomy deployment to playstore


Readme.md hiera example not working

Am I the only one that can't get the hiera example to work?
Hiera code:
rsyslog::client::log_filters:
  - expression: '$programname == "foo"'
  -     action: /var/log/foo.log

Resulting config:
# Define custom if/then log conditions
if $programname == "foo" then
if  then /var/log/foo.log

rsyslog simply fails to start
Another question: What if you have many filters?

I found a solution to both of my questions.  Using this code works:
rsyslog::client::log_filters:
  - expression: '$programname == "foo"'
    action: /var/log/foo.log

And if multiple filters are needed:
rsyslog::client::log_filters:
  - expression: '$programname == "foo"'
    action: /var/log/foo.log
  - expression: '$programname == "bar"'
    action: /var/log/bar.log

I'm new to this kind of syntax.  Where can I find the documentation about it?

It looks like it's simply an array of hashes. Never met that before.


unknown sensor status

Hello,
No more updates since July 1 at 12:30.
Renault changed something?
The status of my sensor is now unknown after a reboot.
However, I haven't changed anything on my MyRenault account. I renewed my services in June and it continued to work.

It seems there was a change on Renault's side, using the latest version of pyze should fix the problem: https://github.com/jamesremuscat/pyze/commit/a05dfac0a9fb1e287b4df9ed7c911cb0f5e8b3d5

I've just merged PR #36 which includes the required fix.

using the developer version of your GitHub with actions, what should I change in the file to keep all the functions?

The developer version has been merged into the master version - so just use that now.

Thank you

It's also available as release v2.0.1


Fixed typo in configuration 'updateOntart'

Documentation typo  'updateOntart' should be 'updateOnStart'

The files were renamed and this couldn't be merged.  So, I committed manually:
https://github.com/grails-plugins/grails-database-migration/commit/b3ba493b8e27efc41647ba70726605e0301d7354

:+1: Glad it got taken care of


[question] large sitemap, check last sitemap item and continue generate next file only?

Hello,
I have a large DB with more than 100k records, I need to split it to multiple sitemap files. As your code, I use SitemapAndIndexStream to generate all sitemap files from sitemap-1.xml to sitemap-9.xml for example.
Now I want to run code to generate sitemap everyday, and it should only generate from last item on sitemap-9.xml to the new latest item on DB. If I run SitemapAndIndexStream again, it will query all the items on DB and generate all files again, it will take more resources and not good.
How can I do this?

Yeah, you don't want to run SitemapAndIndexStream again.
Although... the DB index you should be using should have all of the sitemap records sequentially in an index, so the actual cost of the query should be very low in that it should not use a lot of DB I/O and should not use a lot of DB CPU.
100k records is not a lot. That would only need to write a 2-3 record sitemap index and 2-4 sitemap xml files.  Regenerating all of that would only take a minute or so with the XML serialization being the longest part.
The alternative is much more complex.  You'll need to pull back the index file, get the latest sitemap XML file out of it, fetch that file, parse the latest sitemap into items, add to the items collection, rotate into a new file (and add it to the index) when the last file fills up, then put back the old latest file, any newly added files, and the index file.
It's... not trivial.  I have a system that I'm trying to open source that does all of that, but I can't make any promises.

Here is a project that utilizes this project and uses Kinesis streams to allow millions of items to be written to sitemaps (and updated / maintained):
https://github.com/shutterstock/streaming-sitemaps
That project may meet your needs or give you some ideas on how to approach the problem.


Editor's debugger requires too many "step-into" operations to get where I'm going

Enter the following code in a Dart file:

class C {
  List _list;
  set list(List value) {
    _list = value;
  }
}
main() {
  C c = new C();
  c.list = ['one', 'two'];
}

In Dart Editor, place a breakpoint on the second to last line and then run. When it stops, click on "step into". Nothing happens. The second time it takes you to List.isEmpty. Four more clicks will finally get you to the body of the setter. (Continuing will drop off the end of main and into system code.)
Devon says:

I think this is likely a case where we've set the dart:core library to be debuggable. We have the ability to turn on and off debugging for the core libraries, so we can disable step-in for dart:core if we think that's best. Changing it often has some non-linear effects though - it can improve the situation for some cases and make it worse in others.

That might be true, but it seems to me that it's wrong when stepping into something appears to do nothing.

This issue has been moved to dart-lang/eclipse3#36.


Spring Boot Redis paths.

Discloses details of Redis version, amount of keys in each database, memory size, etc....

Source?

Found these from a past pen test under the Spring Boot metrics or mappings endpoint that reveals URLs called.

Thank you!


Automatically make physical groups from existing tags

It is common to create gmsh physical groups from existing cadquery tags:
with GeometryQL() as geo:
    geo = (
        geo.load(geom)
        .faces(tag="blade").addPhysicalGroup("blade").end()
        .faces(tag="domain-sides").addPhysicalGroup("domain-sides").end()
        .faces(tag="domain-top").addPhysicalGroup("domain-top").end()
        .faces(tag="domain-bottom").addPhysicalGroup("domain-bottom").end()
    )

It would often make sense for all tags to be transferred automatically. In cases where this is not desirable it could be enabled/disabled via a flag. Could also ignore tags that start with _.

Added to the next release TODO

@nicola-sorace Changes are here:
https://github.com/OpenOrion/meshql/tree/feature/auto-label
Let me know if this works for you

@afshawnlotfi Looks good. In the case of overlapping tags it seems that the more recently defined ones win, which works pretty well. Could still add the "skip tags that start with underscores", but it doesn't seem as necessary now since I can just reorder them.

This skips tags that start with underscores:
def _transfer_tags_to_physical_groups(self, skip_underscored=True):
    for tag, workplane in self._pre_split_workplane.ctx.tags.items():
        if skip_underscored and tag[0] == '_':
            continue
        self._add_physical_groups_for_objects(workplane.vals(), tag)

Yeah might just make the function publicly accessible and you can pass the underscore option in through the func params, instead of having a top-level option on load.


Controlling the speed ? playbackrate ?

Hi,
Great plugin !
Is it possible to control the speed of the sound with soundjs ?
Looks like it is possible with the audio tag
http://www.w3schools.com/tags/av_prop_playbackrate.asp
https://developer.mozilla.org/en-US/Apps/Build/Audio_and_video_delivery/WebAudio_playbackRate_explained

We definitely plan to support this in the near future.

cordova media plugin also has support for playback rate


sysutils/smart: Don't color WHEN_FAILED column header

Problem: On the Services: SMART page, the Info section incorrectly colors "FAILED" in "WHEN_FAILED" (Attributes or All) red. It seems that the intent is just to add appropriate color to the health result (Health or All):
SMART overall-health self-assessment test result: PASSED

Proposed Solution: Change the regexes to match at word boundaries.
Tested with opnsense-patch -c plugins -a justinhorton 730d005
Screenshots
Red "FAILED" in "WHEN_FAILED":

Green "PASSED" in health assessment:

also bump the version in https://github.com/opnsense/plugins/blob/master/sysutils/smart/Makefile

Merged, thanks!


feat: promisify all api methods that accept callbacks

This is a stop-gap until the full async/await migration can be completed.  It means we can refactor tests of other modules that depend on this module without having to mix async flow control strategies.
N.b. some methods that were previously callable without callbacks (e.g. node.start(), node.stop(), etc) now require callbacks otherwise a promise is returned which, if rejected, can cause unhandledPromiseRejection events and lead to memory leaks where exceptions are thrown and resources are not cleaned up.

We need to update the readme for this. Since @achingbrain is out, I'll go ahead and update that.

I went ahead and added a generic note at the top of the API section about promisify support and the move to async/await. I think it makes sense to update the API code once we do the actual switch over here, in case there are any changes to the way the api behaves.

@vasco-santos this is ready for one last review pass and should be good to merge. I had to fix some tests due to the pubsub change and a recent release of the delegate content router.


big_time_between showing 1 decimal place for hour field

Since installing v2, the hour part of big_time_between is rounded, but given a .0 decimal place.
For example, the following returns 1.0 hour and 59 minutes:
{% from 'easy_time.jinja' import big_time_between %}
{{ big_time_between(now(), now() + timedelta( hours = 1, minutes = 59 )) }}

Rounding does not happen in big time.  Rounding only occurs in easy time or if you have a single value being returned, like hours or minutes.  Not hours and minutes.

Thanks, and apologies for the lack of clarity on my initial post.
To confirm, the bug isn't around rounding, it's that since v2, a .0 is being appended to the hour value.

Fixed in <IP_ADDRESS>


fix(bug): move initializer to constructor param.

Fixes #142.

LGTM though I'm not quite sure how this corresponds to Victor's issue.

problem was pointed out here: https://github.com/angular/ts2dart/commit/d12a7b1131d64ae95d48f9248ec10d44d2db1314#commitcomment-11050995
merged as 686d52619c3fd8c957d388ac47fc35a4af01d4be


Graph for failed requests per second under Charts section of Web UI.

I would be great to have a graph for failed requests per second under Charts section of Web UI, this will help us to track down the point at which most numbers of requests failed when system resources are throttled.

Duplicate of #952


Debian x64, segmentation fault

[OPENCL]:Found suitable OpenCL device [Hawaii] with<PHONE_NUMBER> bytes of GPU memory
[OPENCL]:Using platform: AMD Accelerated Parallel Processing
[OPENCL]:Using device: Hawaii(OpenCL 2.0 AMD-APP (1912.5))
Segmentation fault
Some miners gives me that message too. Could it be some missing dependencies?

This sounds like you're drivers. Does running clinfo also seg fault? if so then re-install your amd drivers and their opencl counterparts.

clinfo loads fine for me but still have the same issue as this user.


DHCPv6 broken since 2765.2.0/Systemd 247

Description
DHCPv6 is broken since 2765.2.0/Systemd 247.
Impact
With the configuration below, Flatcar Container Linux 2605.12.0 with Systemd 246 gets a (static) DHCPv6 lease assigned as expected. Since 2765.2.0/Systemd 247 no IPv6 is assigned anymore.
Environment and steps to reproduce
Container Linux Config:
networkd:
  units:
    - name: 20-dhcp.network
      contents: |
        [Match]
        Name=eth0

        [Network]
        DHCP=yes

        [DHCP]
        DUIDRawData=[redacted]
        DUIDType=vendor
        UseDomains=true
        UseMTU=true

        [DHCPv6]
        WithoutRA=solicit

Set-up: deploy a Flatcar installation with the above config
Task: boot the machine
Action(s): connect to the machine over IPv4, console etc. and run ip addr show eth0
Error: IPv6 is not configured as expected by the DHCPv6 server

Expected behavior
IPv6 lease is assigned using the DHCPv6 server as with 2765.2.0/Systemd 247
Additional information
DHCPv4 works as expected. A rollback to 2605.12.0 fixes the DHCPv6 issue.

This is related to this: https://github.com/flatcar-linux/Flatcar/issues/384 and so will be fixed at the same time. Fixed in the next alpha release (after 3128.0.0). Please re-open if this isn't the case.


[WIP] Add API documentation

Add basic documentation for the API.
Trying to work out a good strategy for structuring it. Following the structure of the files seems silly as that is purely for editor sanity. So it seems auto generating is useful but only to a point.

Codecov Report

Merging #81 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #81      +/-   ##
==========================================
- Coverage    92.6%   92.58%   -0.02%
==========================================
  Files          12       12
  Lines         500      499       -1
==========================================
- Hits          463      462       -1
  Misses         37       37

Impacted Files
Coverage Δ

osfclient/cli.py
96.85% <ø> (ø)
:arrow_up:

osfclient/models/storage.py
93.87% <ø> (-0.13%)
:arrow_down:

osfclient/utils.py
95.45% <ø> (ø)
:arrow_up:

osfclient/api.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Another self-merge. Note: need to work on recruiting more people.


Propagation changes in anticipation of W3C support

I'm reading through our internal RFC about adding support for W3C-style trace context propagation.
This pull request has changes in anticipation of that feature.

Thanks for the review.  I'll continue adding to this PR today.


Add warning if sharp bindings aren't built correctly

Added a friendly error message in case the require to the bindings throws for any reason. The error message looks like this:
"sharp" does not seem to have been built or installed correctly.

- Try to reinstall packages and look for errors during installation
- Consult "sharp" installation page at http://sharp.pixelplumbing.com/en/stable/install/

If neither of the above work, please open an issue in https://github.com/lovell/sharp/issues

Fixes https://github.com/lovell/sharp/issues/1624

Coverage decreased (-0.2%) to 98.282% when pulling 7de714cd781b5468060bbf1bd522f6d6bc0c3a40 on sidharthachatterjee:master into 0a3512d06686f0103175976d2a5d0acbce2d0282 on lovell:master.

Tests passed but it seems like the Travis job on Linux (musl) - Node 8 failed with
Segmentation fault (core dumped)
npm ERR! Test failed.  See above for more details.
The command "sudo docker exec sharp sh -c "npm test"" exited with 1.

Thanks Sidhartha, this is a great improvement.

I've added some more specific help in commit 687795c based on common error messages. Further additions/improvements are always welcome.
(I've also added commit 90a0382 to hopefully prevent/reduce the occurrence of the unrelated test failure you experienced.)


Table of color pallete

Thanks for creating this nice colorscheme!
Would you mind by any chance adding a table of your color palette somewhere, probably to README? So that users can easily customize for example their statusline colors using kanagawa's palette.
The table would contain color names (samuraiRed, etc.), their corresponding HEX values, and actual color images, defined in lua/kanagawa/colors.lua. I imagine something like this.

I am working on it. It is quite tedious as there are many colors and I have to generate single images for each of them, so it could take a while. For the moment, I can suggest you to open the source colors.lua and view it with the support of colorizing plugins, such as https://github.com/norcalli/nvim-colorizer.lua.

done ;) 7118690e5a0415407d9d0438a128365a73837282

Perfect! Thanks!


How to disable function information while typing?

ra always shows function information while typing, which is really annoyed. How can I disable it?

This is controlled by the VS code setting here:

It might also be the case that we are over-eager in triggering the hints. It might make sense to compare our behavior with type script. cc @kjeremy
I personally find VS Code's UI for parameter hints obtrusive, I wish it worked like the one in IntelliJ

It's triggered by default when typing  (, ) and ,:
https://github.com/rust-analyzer/rust-analyzer/blob/4444192b05c107a40a5a05ea3c9091ad8f8cbbcc/crates/ra_lsp_server/src/caps.rs#L27
It looks like the typescript LS triggers on (, , and <:
https://github.com/theia-ide/typescript-language-server/blob/master/server/src/lsp-server.ts#L157
I originally added the trigger on ) because I couldn't get back into the signature help after closing the function but maybe that should be taken out.

Is there anything left to do here?

yeah, I think we can close!


Precompiles code to commonjs when published

I added metal-anim to metal-css-transitions and needed the compiled version of metal-anim. Let me know if this is okay.
Thanks!

Just started reviewing :) :octocat: Sent from GH.

Thanks!


Preflight check container fails with Error: failed to extract tarball: stream error: stream ID 41; INTERNAL_ERROR; received from peer

Bug Description
Preflight check container fails Error: failed to extract tarball: stream error: stream ID 41; INTERNAL_ERROR; received from peer
Version and Command Invocation
(The output of preflight --version)
preflight version 1.7.0-alpha1 <commit: fe9d181f888e2325fa0ae06b1374ed160a4fb925>
Steps to Reproduce:
(How can we reproduce this?)

Create a manifest image
run preflight on that image

Expected Result
Preflight should run without any Error
Actual Result
time="2023-10-03T03:56:53-04:00" level=debug msg="certification project" name=openshift-container-non-rhcc
time="2023-10-03T03:56:53-04:00" level=info msg="target image" image="quay.io/rhn_support_gsanwal/openshift-container-non-rhcc:0310.1256"
time="2023-10-03T03:56:53-04:00" level=debug msg="pulling image from target registry"
time="2023-10-03T03:56:53-04:00" level=trace msg="entering preflight keychain Resolve"
time="2023-10-03T03:56:59-04:00" level=debug msg="created temporary directory" path=/tmp/preflight-275486086
time="2023-10-03T03:56:59-04:00" level=debug msg="exporting and flattening image"
time="2023-10-03T03:56:59-04:00" level=debug msg="extracting container filesystem" path=/tmp/preflight-275486086/fs
time="2023-10-03T03:56:59-04:00" level=debug msg="writing container filesystem" outputDirectory=/tmp/preflight-275486086/fs
Error: failed to extract tarball: stream error: stream ID 41; INTERNAL_ERROR; received from peer
2023/10/03 03:57:25 failed to extract tarball: stream error: stream ID 41; INTERNAL_ERROR; received from peer

Additional Context
Issue was consistent utill I did podman system prune and podman rmi -f -a
related issues: https://github.com/golang/go/issues/51323
https://github.com/googleapis/google-cloud-go/issues/784

@vikasmulaje We tried to reproduce this and were unsuccessful. At the moment, we don't have enough detail here to be able to debug this level of issue given the level of variability here. If you're able to provide a more consistent approach to reproduce, please feel free to re-open this bug.


Some of the classes are from Bootstrap 4

Hi. Thanks for the job done, but you should consider updating your demo. I spent hours investigating, why your template didn't look like it had to, and some JS code didn't work at all. You use ml-* classes for margins, while in bootstrap 5 they use ms-*, and there are many things like that.
Take a look at this: https://help.blocsapp.com/knowledge-base/migrate-from-bootstrap-4-to-bootstrap-5/

Hi. Thanks for the job done, but you should consider updating your demo. I spent hours investigating, why your template didn't look like it had to, and some JS code didn't work at all. You use ml-* classes for margins, while in bootstrap 5 they use ms-*, and there are many things like that.
Take a look at this: https://help.blocsapp.com/knowledge-base/migrate-from-bootstrap-4-to-bootstrap-5/


Fix code scanning alert - Insecure randomness

Tracking issue for:

[ ] https://github.com/tetrjs/tetr.js/security/code-scanning/4

Doesn't need psuedo rng


Module not found

Hi, I'm trying to use your plugin with nestjs and Typescript but all the time I'm getting error that module was not found
import { IfEnabled } from "nestjs-unleash";
Cannot find module 'nestjs-unleash' or its corresponding type declarations.ts(2307)

Yep, I did npm install and it's in package.js.

Hi @Mistic92 , there was a small mistake in one of the last changes. Correction is on the way; in a few minutes the new version should be available.

Just created a new test nestjs app with these changes:
// app.module.ts
import { UnleashModule } from 'nestjs-unleash'

@Module({
  imports: [
    UnleashModule.forRoot({
      url: 'https://unleash.herokuapp.com/api/client',
      appName: 'my-app-name',
      instanceId: 'my-unique-instance',
    }),
  ],
  // ...
})
export class AppModule {}

// app.controller.ts
import { IfEnabled } from 'nestjs-unleash'

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @IfEnabled('myname')
  @Get()
  getHello(): string {
    return this.appService.getHello();
  }
}

Seems to work now. Thanks for reporting.


Stocked offers accepted without checking its sufficiency

When retz.max.stock > 0 (offer stocking is on), Retz starts its queued jobs without checking the stocked offers have enough resources to run those jobs. Workaround is to turn it off (set retz.max.stock = 0 ).
This bug is inherent at 0.0.27 and 0.0.28.

https://github.com/retz/retz/commit/f91b85437f49a65e0d7499c9b27de3eeda930aa1


Expose Api to check if resource exists before using to avoid crashes

Issue
Sometime we need to load images from resources dynamically , like images as such
val code = country.code?: "default"
Image(
  painter = painterResource(
  "flags/flag_${code}.png"
  ),
  contentDescription = "country flag"
)

Now if code requested was not found this will crash with MissingResourceException
Proposed solution
Adding Resource.exists(name):Boolean to check before using the resource
var res = "flags/flag_${country.code}.png"
if (!Resource.exists(res))
     res = "flags/flag_default.png"
Image(
  painter = painterResource(res),
  contentDescription = "country flag"
)

Another Proposed Solution
or provide a placeholder/default to painterResource
Image(
  painter = painterResource(
  id = "flags/flag_${code}.png",
  default = "flags/flag_default.png"
  ),
  contentDescription = "country flag"
)

Another Proposed Solution
or return null Painter in case resource not found
fun painterResource(id: ResourceId): Painter?

Image(
  painter = painterResource("flags/flag_${code}.png") ?: painterResource("flags/flag_default.png"),
  contentDescription = "country flag"
)

Hello!  We want to provide compile time checks for the resources API and to avoid scenarios with a dynamic resource access out of the box.
For your case you are supposed to make a map with a mapping a flag code -> resource.
There is a low level API to read resources by path but it doesn't have any guaranties and should be wrapped with try {} catch {}

@terrakok a compile class like android's R.* would be great and fast
Can you share the low level api ?

https://github.com/JetBrains/compose-multiplatform/blob/55724f0b5a56a4a86cc45d74b77cd5b6cf3ac02a/components/resources/library/src/commonMain/kotlin/org/jetbrains/compose/resources/ResourceReader.kt#L15

https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-images-resources.html

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Glances sensor does not report correct CPU temp

Home Assistant release with the issue: 0.101.1

Last working Home Assistant release (if known): none
Operating environment (Hass.io/Docker/Windows/etc.): docker

Integration:

Description of problem:
Glances run on a docker on a computer with q6600 cpu (4 core) & 1 radeon hd 6850.
In the glances gui we can see 5 temperature sensors : Core 0, Core 1, Core 2, Core 3, radeon 1
Home assistant shows the radeon (gpu) sensor as CPU Temp. Maybe it would be better to make available all glances temp sensors with the name reported by glances to allow user to choose which sensor is the CPU (all CPU do not have a "Package id" sensor...
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

Traceback (if applicable):

Additional information:

Hello @klemsgithub,
Can you enter this in your browser and send us the json result:
http://IP_ADDRESS:61208/api/3/sensors

[{"key": "label", "type": "temperature_core", "unit": "C", "value": 75, "label": "Core 0"}, {"key": "label", "type": "temperature_core", "unit": "C", "value": 75, "label": "Core 1"}, {"key": "label", "type": "temperature_core", "unit": "C", "value": 75, "label": "Core 2"}, {"key": "label", "type": "temperature_core", "unit": "C", "value": 75, "label": "Core 3"}, {"key": "label", "type": "temperature_core", "unit": "C", "value": 45, "label": "radeon 1"}]

I think we will need to dynamically add sensors based on the 'sensors' array values. I will check and see if I can add this and make a PR for it.

the issue is still present in homeassistant v0.104 (well that's pretty normal, the correction has not been merged into the trunk yet).


Search feature

Implement the search feature on /trending

I haven't tested it, could someone do it for me?

I had to fix this line because it gave me a TypeError
Also made sure the db gets initialized properly when running the app for the first time

Ok, thanks for fixing it, rookie mistake lol


changed DOMContentLoaded to livewire:navigated to solve ->spa() bug

solves the issue raised in issue #2

Have you tested it both with and without SPA mode?

Have you tested it both with and without SPA mode?

Yes since all pages are livewire components when not in SPA() it works the same as DOMContentLoaded

thanks @JoshuaSigaban


Support for u64 elements in tuples

According to Apple's documentation the tuple layer should be able to support u64 elements:

0x1c is an 8 byte positive number

Unless i am mistaken the Rust client currently does not support that.

hm, you appear to be correct. It shouldn't be hard to add: https://github.com/bluejekyll/foundationdb-rs/blob/master/foundationdb/src/tuple/element.rs
I can't remember our decision around this at this point, basically we have the option of supporting all the smaller usize/isize types as well. I think it just never was completed.


firefox, firefox-bin: 61.0 -> 61.0.1

Motivation for this change

Bug fixes

https://www.mozilla.org/en-US/firefox/61.0.1/releasenotes/
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Fits CONTRIBUTING.md.

Not tested yet

This can go to master, only 30 rebuilds.

@taku0 sorry, I tried changing the base to master but it messed up the PR. Please rebase your changes on master manually. I'm closing this because it's typically less work to open a new PR than to clean this up. Thank you.

Resurrected by me, though I guess the context above could be a bit annoying.


Downgrade to Java 11

Make sure the library can be used / compiled with Java 11.
Note that Google recommends always setting the latest targetSdkVersion, which is 34 right now. However, when using SDK 34, Java 17 needs to be used. So we should drop support for Java 11 soonish.

Workflows were failing due to some GitHub issue, retrying.


Add hash to URL (permalink)

Store currently shown week in URL hash or use other means to achieve permanent link and reloadability (now always jumps to current week which may not be desired).
See Google Calender solution: #main_7|week-2+23365+23371+23366

Yes, this was impossible in the current implementation but we plan to do that. @jirutka bashes me with that over head for a past few months.

Depends on #67.


[DOC] Write documentation around setting the input_lenght, batch size and decode length parameters

See: #165

Hey, I am new to this repository, and fascinated by the way the inference is done. I would like to start with this issue, but I first need to get familiar with the repository/pipeline. How can I get started?.

Could you please clarify? I'd love to open a PR to resolve this issue.
cc: @OlivierDehaene


Crash on quilt 0.18.1 - 1.17.6 works fine on this modpack, no idea why, but figured i'd report anyway

https://mclo.gs/9RlMQP8

It looks like the mod MixinConflictHelper's forked process crashed before it could receive the mod information - unfortunately the reason why it crashed is not in the log, but instead will only be in the "minecraft log" of your launcher - can you try to re-run, and see if there's any error messages in there?

To be honest though I guess the problem is here: https://github.com/isXander/MixinConflictHelper/blob/1.19/src/main/java/dev/isxander/mixinconflicthelper/gui/SwingForkHelper.java#L40 since that's the only code that interacts with quilt loader.

I removed mixin helper and still crash. https://mclo.gs/N1DiPD3

Looks like an issue with CCA and requiem

CCA?

Cardinal components api. Requiem is calling that api but not doing so correctly

no idea why it works on an older quilt then.

Oh. Thats a problem :/

yeah, it had me confused when i updated. Glad i didn't update my server yet.

Any news on why a modpack that was working on 17.6 launcher might not work on 18.1 launcher?

Fixed on my end!


Way for iOS app to connect to Solana wallets

Is your feature request related to a problem? Please describe.
After some digging seems like connecting to a Solana wallet via an iOS app is not possible... seems like a major missing piece?
Doesn't even have to be iOS specific, just a way to connect to a wallet that does not involve the Chrome extension, such as what they have on ETH/WalletConnect with the QR code you get from the app and you just paste into your wallet.
Describe the solution you'd like
A way for an iOS app to connect with one of the Solana iOS wallet apps.
Describe alternatives you've considered
There are none?

I am wondering the same inside my issue request.
will close it in prior of this one.

This is something wallets will need to implement support for. There isn't anything to be done yet within wallet-adapter. Once some wallets have defined a way for mobile browsers and mobile apps to communicate with them, we can define adapters or converge on a standard.
Closing for now since this isn't actionable or in scope yet, but I'll reopen when it becomes viable.


[QUESTION] . How to run uvicorn inside Dockerfile?

Description
How can run uvicorn and -e etc inside Dockerfile in Win 10:
docker run -e WORKER_PER_CORE='3' -e PORT="5000"
inside Dockerfile
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
:
ENTRYPOINT[]
CMD[]

so that
docker run -p 5000:5000 my-api
encapsulates these environment variables in CLI command?
Looked at these examples but dont show:
https://medium.com/@williamhayes/fastapi-starlette-debug-vs-prod-5f7561db3a59
"Uvicorn documentation indicates you have to run uvicorn from the command line for the debugging/auto-reloading feature to work. It can’t be run programmatically either." ???
https://github.com/tiangolo/full-stack-fastapi-postgresql/blob/master/{{cookiecutter.project_slug}}/backend/backend.dockerfile

inside Dockerfile
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
:
ENTRYPOINT[]
CMD[]

Note that you are overriding ENTRYPOINT and CMD with an empty command! Which comes from CMD ["/start.sh"] => start.sh which actually runs Gunicorn with Uvicorn workers (the recommended way to run Uvicorn in production).
Try removing ENTRYPOINT and CMD from your Dockerfile. Anyway, if you still want to override that, set the CMD to be something like uvicorn --reload your_app.app:app: CMD ["uvicorn", "--reload", "your_app.app:app"].

Yep, exactly, as @HacKanCuBa says.
You don't need to specify a custom command or entrypoint in your Dockerfile.


DLP V2 Release

Moving from privately staged version.

Thanks @blowmage and sorry for the noise. I'm still wrapping my head around how to keep in the manual changes when we regenerate.
I'm not sure about the doc links - @geigerj do you know?

@jbolinger The doc links need to be maintained manually for gems with multiple supported server versions. (Generally you want to retain the links to the previous version until it is no longer supported.)
It is also surprising that there is an acceptance tests for the previous version but not the new version. That might point to an upstream configuration issue (missing smoke test config?).

@jbolinger How's it going, do you need help with any manual changes?

Thanks for checking up on this @quartzmo! I've done all I can think to do on this one, but I don't know what I don't know. @blowmage pointed out one thing we need to clarify before we can finish. Beyond that, I don't know of anything else that needs to be done.

I get these errors when running rake acceptance locally:

  1) Error:
DlpServiceSmokeTest#test_0001_runs one smoke test with inspect_content:
ArgumentError: wrong number of arguments (given 2, expected 1)
    /Users/quartzmo/code/google/codez/google-cloud-ruby/google-cloud-dlp/lib/google/cloud/dlp/v2/dlp_service_client.rb:445:in `inspect_content'
    /Users/quartzmo/code/google/codez/google-cloud-ruby/google-cloud-dlp/acceptance/google/cloud/dlp/v2/dlp_service_smoke_test.rb:32:in `block (2 levels) in <top (required)>'

  2) Error:
DlpServiceSmokeTest#test_0001_runs one smoke test with inspect_content:
ArgumentError: wrong number of arguments (given 2, expected 1)
    /Users/quartzmo/code/google/codez/google-cloud-ruby/google-cloud-dlp/lib/google/cloud/dlp/v2/dlp_service_client.rb:445:in `inspect_content'
    /Users/quartzmo/code/google/codez/google-cloud-ruby/google-cloud-dlp/acceptance/google/cloud/dlp/v2beta1/dlp_service_smoke_test.rb:32:in `block (2 levels) in <top (required)>'

2 runs, 0 assertions, 0 failures, 2 errors, 0 skips

@quartzmo I fixed the test manually. Thanks for pointing that out, but I'm curious why don't they run in CI?
There is no actual test for the v2 service and it looks like the API changed. I'm going to check with the team about that. I assume we don't write those ourselves - correct?

The acceptance tests don’t run in CI for PRs for security reasons, isn’t that correct @blowmage?

That is correct. Acceptance tests only run on master.

There is no actual test for the v2 service... I assume we don't write those ourselves - correct?

I'm not certain about that. I usually look to Video Intelligence as an example of how a GAPIC-only package should be done. @geigerj Did you write video_intelligence_service_smoke_test.rb by hand?

No, the smoke tests are autogenerated. @blowmage is probably correct that the generator needs a fix to support smoke tests for side-by-side server versions.
The configuration for the v2beta1 smoke test is here: https://github.com/googleapis/googleapis/blob/master/google/privacy/dlp/v2beta1/dlp_gapic.yaml#L25. It looks like the config is missing for v2: https://github.com/googleapis/googleapis/blob/master/google/privacy/dlp/v2/dlp_gapic.yaml.

The smoke tests pass for me locally.

Both acceptance tests also pass for me locally.

Thanks for all your help @quartzmo and @blowmage! They would like the release to go out before the end of the week so I'll take a crack at it tomorrow morning. Bear with me and let me know if you'd like anything done a certain way. The guide looks straightforward, but it'll be the first time 😄

You will probably want to verify the docs generate properly before cutting a release.


Sensors Unavailable

I'm new to Home Assistant, so I may be missing something simple. I've added the Alarmdotcom integration, and can see all of my sensors. I'm also able to activate and deactivate my alarm. The issue I'm having is, I cannot see the state of any of the sensors. They are all showing as "Unavailable."
I've attached a log of one of my sensors if this helps:
This error originated from a custom integration.
Logger: custom_components.alarmdotcom
Source: custom_components/alarmdotcom/init.py:158
Integration: Alarm.com (documentation, issues)
First occurred: 7:59:05 PM (2 occurrences)
Last logged: 7:59:05 PM
ALARM.COM DEBUG DATA FOR BACK DOOR: {"deviceType": 1, "openClosedStatus": 2, "state": 0, "isFlexIO": false, "deviceRole": 0, "displayStateText": "Not Monitored", "isMonitoringEnabled": false, "sensorNamingFormat": 4, "supportsBypass": false, "supportsImmediateBypass": false, "isBypassed": false, "managedDeviceType": 12, "hasState": true, "canBeRenamed": true, "canBeDeleted": false, "canAccessWebSettings": true, "canAccessAppSettings": false, "webSettings": 400, "canAccessTroubleshootingWizard": false, "troubleshootingWizard": null, "addDeviceResource": 0, "canBeAssociatedToVideoDevice": true, "associatedCameraDeviceIds": {}, "macAddress": "", "manufacturer": "", "isAssignedToCareReceiver": false, "isOAuth": false, "isZWave": false, "supportsCommandClassBasic": false, "isMalfunctioning": false, "canBeSaved": true, "canChangeDescription": true, "description": "BACK DOOR", "deviceModelId": 110, "canConfirmStateChange": true, "canReceiveCommands": false, "remoteCommandsEnabled": true, "hasPermissionToChangeState": true, "deviceIcon": {"icon": 317}, "batteryLevelNull": null, "lowBattery": false, "criticalBattery": false}

Dupe of #241


Determine futures version support

So, with the release of futures 0.2, it was revealed that this is temporary state, and that breakage was coming again real soon. Unfortunately, 0.2 support isn't fully there in Tokio, and it sounds like the recommendation from the Futures team is to just wait till 0.3 (or libstd or whatever).
Sooooo, we kind of still need to provide futures 0.1 support. I don't know if there is value in maintaining a 0.2 support behind a feature flag. It feels horrible to revert all the work that was done, but 0.12 cannot be released as-is.
I've spent some time on futures-compat, and it does allow compiling hyper master (with 0.2 futures) against tokio with no feature flag (using 0.1 futures). However, I don't think I'd personally want to release with 0.2 wrapping tokio in compat, since there is a penalty cost of cloning notifiers.
Perhaps the best action is to revert to a public 0.1 futures API, and publish futures-compat to allow anyone that wants to explore futures 0.2 to be able to do so, but production use of hyper doesn't degrade.

It is out of the question to just wait for futures 0.3 before releasing hyper 0.12?

That is a possibility, but otherwise 0.12 is pretty close to ready. There'd also be much less breaking changes... Well, somewhat.
The question would be how long do we wait? Continue to hold off 1) upgrade to http crate, 2) upgrade to tokio, 3) http2, 4) Send Client?
The existing APIs in 0.11 are a little confusing to use.

fwiw, I'm looking forward to the hyper 0.12.x API changes and would be sad if it were delayed for months because of this. futures 0.3 is apparently coming "relatively soon", but it will be nightly-only at first, so unsure when it's actually coming for stable.

Another way to look at it... Given:

The ecosystem is in major flux right now
Anyone who's paying attention knows everything is pretty unstable until Rust 2018 in September
futures has just set precedent for releasing a new version at the same time as announcing that its replacement is imminent

it's pretty reasonable to release an 0.12 as is. And maybe announce, similarly to futures, that an 0.13 will be coming sooner than it's been between previous versions of hyper.

So, 0.12 will release with futures 0.1 implementations, since 0.2 is considered unstable. Any wishing to using hyper with the unstable futures 0.2 can fairly easily combine it with the futures-compat crate.
Thanks all!


Fixed a typo (I think?)

On line 21, my hunch is that you meant for “$[pL}” to be “${pL}”?

I most definitely did. I wonder how the tests passed without this... thanks for the fix!

Hey, anytime!
And I'm kinda curious myself about how the tests passed, so if by chance you end up learning how that got through the tests, I'd be rather interested to hear more about that (if you care to share).


Add the SorobanArbitrary trait and docs

What
Preliminary support for fuzzing Soroban contracts with cargo-fuzz.
This patch is primarily concerned with introducing a pattern for implementing the Arbitrary trait, by which fuzz tests generate semi-random Rust values.
This patch depends on a patch to soroban-env: https://github.com/stellar/rs-soroban-env/pull/715
That patch must be merged and this patch updated prior to merging this patch.
The SorobanArbitrary trait looks like this:
    pub trait SorobanArbitrary:
        TryFromVal<Env, Self::Prototype> + IntoVal<Env, RawVal> + TryFromVal<Env, RawVal>
    {
        type Prototype: for<'a> Arbitrary<'a>;
    }

Basically every type relevant to soroban contracts implements (or should) this trait, including Symbol, BitSet, Status, Static, Vec, Map, Bytes, BytesN, Address, RawVal. The #[contracttype] macro automatically derives an implementation, along with a type that implements SorobanArbitrary::Prototype.
In use the trait looks like
use soroban_sdk::{Address, Env, Vec};
use soroban_sdk::contracttype;
use soroban_sdk::arbitrary::{Arbitrary, SorobanArbitrary};
use std::vec::Vec as RustVec;

#[derive(Arbitrary, Debug)]
struct TestInput {
    deposit_amount: i128,
    claim_address: <Address as SorobanArbitrary>::Prototype,
    time_bound: <TimeBound as SorobanArbitrary>::Prototype,
}

#[contracttype]
pub struct TimeBound {
    pub kind: TimeBoundKind,
    pub timestamp: u64,
}

#[contracttype]
pub enum TimeBoundKind {
    Before,
    After,
}

fuzz_target!(|input: TestInput| {
    let env = Env::default();
    let claim_address: Address = input.claim_address.into_val(&env);
    let time_bound: TimeBound = input.time_bound.into_val(&env).
    // fuzz the program based on the input
});

A more complete example is at https://github.com/brson/soroban-examples/blob/arbitrary/timelock/fuzz/fuzz_targets/fuzz_target_2.rs
I have iterated on this patch for a few months and feel ok about it as a starting point,
but feel like it is past time to get review,
hopefully can iterate on it more in tree before any APIs need to freeze.
Why
This patch assumes it is desirable to fuzz Soroban contracts with cargo-fuzz.
Soroban reference types can only be constructed with an Env,
but the Arbitrary trait constructs values from nothing but bytes.
The SorobanArbitrary trait provides a pattern to bridge this gap,
expecting fuzz tests to construct SorobanArbitrary::Prototype types,
and then convert them to their final type with FromVal/IntoVal.
There are a lot of docs here and hopefully they explain what's going on well enough.
fuzz_catch_panic
This patch also introduces a helper function, fuzz_catch_panic, which is built off of the call_with_suppressed_panic_hook function in soroban-env-host.
The fuzz_target! macro overrides the Rust panic hook to abort on panic, assuming all panics are bugs, but Soroban contracts fail by panicking, and I have found it desirable to fuzz failing contracts. fuzz_catch_panic temporarily prevents the fuzzer from aborting on panic.
Known limitations
The introduction of SorobanArbitrary requires a bunch of extra documentation to explain why Soroban contracts can't just use the stock Arbitrary trait.
Contracts must use IntoVal to create the final types, but these traits are under-constrained and always require type hints:
fuzz_target!(|input: <Address as SorobanArbitrary>::Prototype| {
    let env = Env::default();
    let address: Address = input.into_val(&env);
    // fuzz the program based on the input
});

This is quite unfortunate because it means the real type must be named twice.
This patch introduces a new private module arbitrary_extra which simply defines a bunch of new conversions like
impl TryFromVal<Env, u32> for u32 {
    type Error = ConversionError;
    fn try_from_val(_env: &Env, v: &u32) -> Result<Self, Self::Error> {
        Ok(*v)
    }
}

These conversions are required by SorobanArbitrary, which is only defined when cfg(feature = "testutils"); the arbitrary_extra module defines these conversions for all cfgs to ensure type inference is always the same, but the impls are probably useless outside of the SorobanArbitrary prototype pattern.
Crates that use #[contracttype] need to define a "testutils" feature if they want to use Arbitrary. That is why soroban-auth here gets a "testutils" feature.
This doesn't implement all arbitrary values it might, in particular:

there are more possible values of RawVal
there are no "adversarial" generated values, like status values that aren't defined in the XDR, duplicate / recursive object references, etc.

I'll do a rebase in the next few days to resolve those conflicts.

I've been reading the soroban docs this morning, and they explain that the Client for any contractimpl is accessed by naming convertion - ContractName + Client. It would probably be more consistent for Arbitrary prototypes to do the same thing - MyTypeName + Prototype.
I'll poke around with that pattern - see if it's possible to completely eliminate the SorobanArbitrary trait.

Rebased.

Rebased.
This patch is somewhat bitrotted at this point and will require rework to make sure all the relevant types have implementations. It is still probably ok for a first round of review since major changes to the basic design are not required.

This branch is currently out of date. The soroban-env patch it depends on is merged, so I am going to take some time to go back and review this myself before I push a rebase.

This patch is very out of date. I'll open another one once I've reworked it.


Can't build docs

@petrus-jvrensburg Something happened recently and readthedocs.org chokes on our docs.
Error looks like this:

Here's build log:
Running Sphinx v1.3.1
making output directory...
loading translations [en]... done
loading pickled environment... not yet created
loading intersphinx inventory from http://docs.python.org/objects.inv...
building [mo]: targets for 0 po files that are out of date
building [latex]: all documents
updating environment: 22 added, 0 changed, 0 removed
reading sources... [  4%] adding_a_new_model_backend
reading sources... [  9%] advanced
reading sources... [ 13%] api/index
reading sources... [ 18%] api/mod_actions
reading sources... [ 22%] api/mod_base
reading sources... [ 27%] api/mod_contrib_fileadmin
reading sources... [ 31%] api/mod_contrib_mongoengine
reading sources... [ 36%] api/mod_contrib_mongoengine_fields
reading sources... [ 40%] api/mod_contrib_peewee
reading sources... [ 45%] api/mod_contrib_pymongo
reading sources... [ 50%] api/mod_contrib_sqla
reading sources... [ 54%] api/mod_form
reading sources... [ 59%] api/mod_form_fields
reading sources... [ 63%] api/mod_form_rules
reading sources... [ 68%] api/mod_form_upload
reading sources... [ 72%] api/mod_helpers
reading sources... [ 77%] api/mod_model
reading sources... [ 81%] api/mod_model_template
reading sources... [ 86%] api/mod_tools
reading sources... [ 90%] changelog
reading sources... [ 95%] index
reading sources... [100%] introduction

/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/advanced.rst:9: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/advanced.rst:50: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/advanced.rst:73: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/advanced.rst:92: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/advanced.rst:157: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/advanced.rst:221: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/advanced.rst:280: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/advanced.rst:422: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/advanced.rst:479: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/advanced.rst:498: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/api/mod_form_fields.rst:2: WARNING: Duplicate explicit target name: "select2".
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/index.rst:42: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/index.rst:49: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/introduction.rst:9: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/introduction.rst:96: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/introduction.rst:179: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/introduction.rst:305: ERROR: Document or section may not begin with a transition.
/home/docs/checkouts/readthedocs.org/user_builds/flask-admin/checkouts/v1.3.0/doc/introduction.rst:363: ERROR: Document or section may not begin with a transition.
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
processing flask-admin... index introduction advanced adding_a_new_model_backend api/index api/mod_base api/mod_helpers api/mod_model api/mod_form api/mod_form_rules api/mod_form_fields api/mod_form_upload api/mod_tools api/mod_actions api/mod_contrib_sqla api/mod_contrib_mongoengine api/mod_contrib_mongoengine_fields api/mod_contrib_peewee api/mod_contrib_pymongo api/mod_contrib_fileadmin api/mod_model_template changelog
resolving references...
writing... done
copying TeX support files...
done
build succeeded, 18 warnings.

Okay, I'll look into it.

Fixed in 01589c4c0fe5ad0a61202f333101580ec9772c17.


I can't use the llvm downloaded from HomeBrew (Ubuntu-22.04) to build the project!

Xmake 版本
2.7.1
操作系统版本和架构
Ubuntu-22.04
描述问题
Hi there! The problem is, Xmake cannot detect the llvm toolchain even if I have already installed llvm-15 (which includes clang-15, clang++-15, lldb-15) via HomeBrew
And I've already exported the PATH (
Here's what I have done:
$ export PATH="$(brew --prefix llvm)/bin:${PATH}"
)
Hope you could solve this issus ASAP! Sincerely thanks! :-)
期待的结果
I hope that I could build the project in llvm toolchain (using the one I've downloaded from HomeBrew) correctly!
工程配置
add_rules("mode.debug", "mode.release")
target("ModernCppLearning")
set_kind("binary")
add_files("src/*.cpp")
set_languages("clatest", "gnu++latest")
附加信息和错误日志
error: @programdir/core/main.lua:280: @programdir/core/tool/toolchain.lua:263: @programdir/toolchains/llvm/check.lua:90: llvm toolchain not found!
stack traceback:
[C]: in function 'error'
[@programdir/core/base/os.lua:882]:
[@programdir/toolchains/llvm/check.lua:90]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:280]:
[@programdir/core/tool/toolchain.lua:259]: in function 'check'
[@programdir/core/platform/platform.lua:247]: in function 'check'
[@programdir/actions/config/main.lua:400]:
[C]: in function 'xpcall'
[@programdir/core/base/utils.lua:280]:
[@programdir/core/base/task.lua:501]: in function 'run'
[@programdir/core/main.lua:278]: in function 'cotask'
[@programdir/core/base/scheduler.lua:388]:
stack traceback:
[C]: in function 'error'
@programdir/core/base/os.lua:882: in function 'base/os.raiselevel'
(...tail calls...)
@programdir/core/main.lua:280: in upvalue 'cotask'
@programdir/core/base/scheduler.lua:388: in function <@programdir/core/base/scheduler.lua:385>

try xmake f --toolchain=clang-15 -c; xmake -rv

sorry I cant because this is a CPP project and it cannot be compiled by Clang15, but could be compiled by Clang++15, which is not contained in the xmake supported toolchains

sorry I cant because this is a CPP project and it cannot be compiled by Clang15, but could be compiled by Clang++15, which is not contained in the xmake supported toolchains

No, clang can also compile c++ code, clang++ and clang are basically the same, the only difference is that when using clang++ as a linker, it will automatically add some built-in c++ library links, such as -lstdc++
xmake compiles c++ code with gcc/clang by default, and it always works fine with g++/clang++ as a c++ linker.
BTW, --toolchain=clang-15 will try to set up the full toolchain, including compiler clang-15, linker clang++15, assembler, ar, etc. It doesn't just use clang-15, it also uses clang++-15


Killing a hanging container results in lock, "Instance is busy running a "stop" operation"

lxd v51
Ubuntu Jammy
We had a hanging container and could not do lxc stop --force. We tried killing the lxc monitor process, which then allowed us to stop the container. However, any subsequent operations resulted in a Instance is busy running a "stop" operation message.
What's bizarre is that lxd would let us delete the instance. Once deleted however, some lock is still remaining and the zfs storage volume is still in use/locked
# lxc stop --force idebureauet
lxError: Instance not found
root@leeta:/home/master# lxc init ubuntu:focal idebureauet
Creating idebureauet
Error: Failed instance creation: Failed creating instance record: Instance is busy running a "stop" operation

We tried dumping the database but we see no references to the instance there. What is keeping a lock on this container and how can we clean it up?
Thanks :)

lxd v51

Which version of LXD?

No worries. You'll need to reload the LXD process (not the instances) to clear the locks.
By the way LXD 5.1 is quite old now and is one of the monthly releases which means its not supported from the point that the next monthly release is out. This means its not getting bug or security fixes.
We're now on LXD 5.10 for the monthly releases, which is the one currently getting support.
Or you can use the LXD 5.0.x LTS release.
Are you able to reproduce the issue on LXD 5.10, as there have been quite a few fixes related to instance lifecycle and locking over the last 9 releases.
If so let us know and we'll investigate, but for now, as this is occurring on an unsupported version I'll close this case.
Thanks

Also here is a couple of links about the different snap channels we have and their support levels:
https://discuss.linuxcontainers.org/t/managing-the-lxd-snap/8178
https://linuxcontainers.org/lxd/docs/master/explanation/security/#supported-versions

Oh I see. Great! I'll give it a spin tomorrow and hopefully nothing blows up. I'll report back here with my results.

We try and avoid upgrading LXD unless we need to do a system reboot anyway as uptime is essential for us and our clients. So that's why we sometimes get into slightly weird version numbers. We always pull from --channel=latest/stable but maybe we should just start sticking to the latest LTS release
In any case systemctl reload snap.lxd.daemon released all locks as promised and we could recreate the server. Awesome. Thanks for the help here.

Yes if you want a slower moving release channel then 5.0/stable LTS is for you, as it will still get bug and security fixes but not new features.
Although you cannot downgrade from LXD 5.x to LXD 5.0.x channels so would need to be a fresh installation.


NuGet package versioning broken in PR and main

With https://github.com/CommunityToolkit/Aspire/commit/9d25d14a5e2fac1f685ec139cb4fa388bcf383ba#diff-4da790e243fabc7a08eef8f04f251cff1a708fd1aa498a6508da5ecb2bce1564R14 the versioning of packages is broken on the main and release branches because the VersionPrefix isn't being appropriately applied, and since it's not applied (only VersionSuffix via the CLI) we end up with 1.0.0- as the prefix.
This means that we're getting invalid versions published on the NuGet and Azure Pipeline feeds.

@CommunityToolkit/aspire-contributors heads up - please don't merge anything to main until we get this resolved!


schemes option not working as expected

Context

hapi-swagger version: 9.1.2
any other relevant information:

What are you trying to achieve or the steps to reproduce?
My dev server is http and the production server is https so I've set the hopi-swagger option schemes: ['http', 'https'] but the UI continues to send queries to http on the production server. This issue is document at https://github.com/glennjones/hapi-swagger/issues/271 so I tried removing the schemes option but no success. The only way I can get this to work is to actually have different options – schemes: ['http'] on development and schemes: ['https'] on production. Any suggestion on how to do this more elegantly?

apologies @punkish but I don't have a good answer. I'll have to take a deeper look at UI and get better understanding of it to give you feedback.

It appears that it will always pick the first scheme that is configured. Swap them above and it'll choose https. Looks like there is an issue with swagger itself that hasn't yet been addressed yet (https://github.com/swagger-api/swagger-ui/issues/1382)


D\Storybook\intro-storybook-angular-template-master\taskbox\node_modules.bin' is not recognized.

Followed the same steps in the given link:
But facing an issue it is not recognized and cannot find module.

Please give me a solution so that after testing I can apply this concept in my project.

Closing this as of now as the underlying issue is now fixed. It's not a template issue, but rather a Storybook issue.
Hope you understand.
Have a great week.
Stay safe


报错 object has no attribute 'message'

env
OS: win7/ win10 / mac / linux
PYTHON_VERSION: 3.x
EASYTRADER_VERSION: 0.xx.xx
problem

how to repeat

fixed by 9db0bea56577796e6cbbf367b58e2a2fc48025c5


Adds the ability to pass an array as an argument to the flash() function

I don't know if I've missed a method or a way of doing things, but I couldn't find a way of passing an array as an argument to the flash function.
Here's an example:
Old
$request->session()->flash('status', 'Example');

New
$request->session()->flash([
    'status' => 'success',
    'message' => 'Example
]);

I know there's a way of writing it like this:
$request->session()->flash('message', ['status' => 'success', 'text' => 'Example']);

But if the two flash messages have nothing in common, this poses the problem of code duplication (again, if I haven't missed a way of doing things differently).

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.