text:
Window 端播放 m3u8 出现 403 错误，Android 端正常播放

这个地址 https://vip1.lz-cdn6.com/20220401/194_333005af/index.m3u8
window端无法播放，系统是win10，看日志是 [FFmpeg:https] HTTP error 403 Forbidden 错误
编译到 Android 可以正常播放
curl 测试它应该是没有请求头限制的，我尝试添加请求头还是一样的403错误
看之前的 issue 是FFmpeg ssl 证书问题吗
var videoUrl = 'https://vip1.lz-cdn6.com/20220401/194_333005af/index.m3u8';

VideoPlayerController.networkUrl(
        Uri.parse(videoUrl),
        closedCaptionFile: closedCaptionFile,
        videoPlayerOptions: videoPlayerOptions,
        // httpHeaders: {
        //   'Host': 'vip1.lz-cdn6.com',
        //   'User-Agent': 'curl/7.29.0',
        //   'Accept': '*/*'
        // },
      );

Log
[ +722 ms] flutter: mdk.INFO: 12:25:58.591: 0.30.1 (git 6648976) - Multimedia Development Kit. Copyright (c) 2016-2024 WangBin(QtAV author) <wbsecg1 at gmail.com>
[        ] flutter: mdk.FINE: 12:25:58.591: global option: UserAddress = 0000018E42906D9F
[        ] flutter: mdk.FINE: 12:25:58.591: global option: log = all
[        ] flutter: mdk.FINE: 12:25:58.591: global option: d3d11.sync.cpu = 1
[        ] flutter: mdk.FINE: 12:25:58.591: global option: subtitle.fonts.file = D:\resource\code\gitea\weiba\paopao_file_manager\build\windows\x64\runner\Debug\data\flutter_assets\assets/subfont.ttf
[        ] flutter: mdk.FINE: 12:25:58.591: global option: demuxer.max_errors = 10
[   +6 ms] flutter: mdk.FINE: 12:26:23.135: default 0000018E4E8FE7E0 new FrameReader...
[        ] flutter: mdk.FINE: 12:26:23.135: Registered audio backends: XAudio2 DSound null
[        ] flutter: mdk.FINE: 12:26:23.135: XAudio2_9.dll
[        ] flutter: mdk.FINE: 12:26:23.135: Build with XAudio2 from Win8+ SDK
[        ] flutter: mdk.FINE: 12:26:23.136: Try symbol 'XAudio2Create' from Windows SDK dll
[        ] flutter: mdk.FINE: 12:26:23.136: default 0000018E4E6C2990 new FrameReader...
[        ] flutter: mdk.FINE: 12:26:23.136: Registered audio backends: XAudio2 DSound null
[        ] flutter: mdk.FINE: 12:26:23.136: 0000018E45D6D350 player.Player()
[        ] flutter: mdk.FINE: 12:26:23.136: 0000018E45D6D350 player.onEvent(1, 00000046F94FEFA8)
[        ] flutter: mdk.FINE: 12:26:23.136: 0000018E45D6D350 player.onStateChanged(1)
[        ] flutter: mdk.FINE: 12:26:23.136: 0000018E45D6D350 player.onMediaStatus(1)
[        ] flutter: mdk.FINE: 12:26:23.136: 0000018E45D6D350 player property: video.decoder = shader_resource=0
[        ] flutter: mdk.FINE: 12:26:23.136: 0000018E45D6D350 player property: avformat.strict = experimental
[        ] flutter: mdk.FINE: 12:26:23.136: 0000018E45D6D350 player property: avio.reconnect = 1
[        ] flutter: mdk.FINE: 12:26:23.136: 0000018E45D6D350 player property: avio.reconnect_delay_max = 7
[        ] flutter: mdk.FINE: 12:26:23.136: 0000018E45D6D350 player property: avio.protocol_whitelist = file,rtmp,http,https,tls,rtp,tcp,udp,crypto,httpproxy,data,concatf,concat,subfile
[        ] flutter: mdk.FINE: 12:26:23.137: 0000018E45D6D350 player property: avformat.rtsp_transport = tcp
[        ] flutter: mdk.FINE: 12:26:23.137: 0000018E45D6D350 player property: avio.tls_verify = 0
[        ] flutter: mdk.FINE: 12:26:23.137: 0000018E45D6D350 player.setDecoders(video, [MFT:d3d=11, D3D11, DXVA, CUDA, FFmpeg])
[        ] flutter: mdk.FINE: 12:26:23.137: video decoders: "MFT:d3d=11", "D3D11", "DXVA", "CUDA", "FFmpeg"
[        ] flutter: mdk.FINE: 12:26:23.137: video decoders: "MFT:d3d=11", "D3D11", "DXVA", "CUDA", "FFmpeg"
[        ] flutter: mdk.FINE: 12:26:23.137: 0000018E45D6D350 player.setMedia(https://vip1.lz-cdn6.com/20220401/194_333005af/index.m3u8)
[        ] flutter: mdk.FINE: 12:26:23.137: default FrameReader0000018E4E8FE7E0 state: 0=>0=>0, 0
[        ] flutter: mdk.INFO: 12:26:23.137: default0000018E4E8FE7E0 mdk::abi::FrameReader::stop, current state: , hhdrequested: 0
[        ] flutter: mdk.FINEST: 12:26:23.137: no video renderer
[        ] flutter: mdk.FINE: 12:26:23.137: default FrameReader0000018E4E8FE7E0 state: 0=>0=>0, 0
[        ] flutter: mdk.INFO: 12:26:23.137: default0000018E4E8FE7E0 mdk::abi::FrameReader::stop, current state: , hhdrequested: 0
[        ] flutter: mdk.FINE: 12:26:23.137: 0000018E45D6D350 player.set(0)
[        ] flutter: mdk.FINE: 12:26:23.137: 0000018E4DD351F0 void __cdecl mdk::abi::MediaControlPush::setState(enum mdk::abi::State)@1076 requested state 0=>0, current state 0. status: 0
[        ] flutter: mdk.FINEST: 12:26:23.138: no video renderer
[   +1 ms] flutter: mdk.FINE: 12:26:23.139: default FrameReader0000018E4E8FE7E0 state: 0=>0=>0, 0
[        ] flutter: mdk.INFO: 12:26:23.139: default0000018E4E8FE7E0 mdk::abi::FrameReader::stop, current state: , hhdrequested: 0
[        ] flutter: mdk.FINEST: 12:26:23.139: no video renderer
[        ] flutter: mdk.FINE: 12:26:23.139: 0000018E45D6D350 player.waitFor(0, -1)
[        ] flutter: mdk.FINE: 12:26:23.139: 0000018E45D6D350 player.prepare(0, ..., 1282)
[        ] flutter: mdk.INFO: 12:26:23.139: 0000018E4DD351F0 MediaControl.prepare(0, ...) https://vip1.lz-cdn6.com/20220401/194_333005af/index.m3u8
[        ] flutter: mdk.FINE: 12:26:23.139: default 0000018E4E8FE7E0 FrameReader.start(0, ...)
[        ] flutter: mdk.FINE: 12:26:23.139: default 0000018E4E8FE7E0 FrameReader::update MediaStatus 0=>0X2
[        ] flutter: mdk.FINE: 12:26:23.143: default FrameReader0000018E4E8FE7E0 state: 0=>0=>1, 0
[        ] flutter: mdk.FINE: 12:26:23.143: default FrameReader0000018E4E8FE7E0 state: 0=>1=>1, 0
[        ] flutter: mdk.FINE: 12:26:23.143: default FrameReader0000018E4E8FE7E0 request to pause 1, loaded: 0.
[        ] flutter: mdk.FINE: 12:26:23.143: default FrameReader0000018E4E8FE7E0 state: 0=>1=>2, 0
[        ] flutter: mdk.FINE: 12:26:23.143: default FrameReader0000018E4E8FE7E0 state requested: 2, current: 0
[        ] flutter: mdk.FINE: 12:26:23.143: 0000018E4E8FE7E0start frame reader thread: 25300
[        ] flutter: mdk.FINE: 12:26:23.143: try to load av module(avutil): D:\resource\code\gitea\weiba\paopao_file_manager\build\windows\x64\runner\Debug\ffmpeg-7.dll
[  +21 ms] flutter: mdk.FINE: 12:26:23.163: ffmpeg loaded: D:\resource\code\gitea\weiba\paopao_file_manager\build\windows\x64\runner\Debug\ffmpeg-7.dll
[   +1 ms] flutter: mdk.FINE: 12:26:23.163: FFmpeg/Libav runtime git-2024-12-18-8272d34-avbuild
[        ] flutter: mdk.FINE: 12:26:23.163: Selected avutil runtime version: 59.51.100 (build: 59.51.100), license: LGPL version 2.1 or later
[        ] flutter: mdk.FINE: 12:26:23.164: Selected avutil runtime configuration: --extra-version=avbuild --disable-doc --disable-debug --enable-shared --enable-runtime-cpudetect --disable-iamf --enable-libvpl --disable-ptx-compression --enable-mediafoundation --disable-postproc --toolchain=msvc --windres=llvm-windres --extra-windresflags='--target=x86_64-pc-windows-msvc -I/c/Program\ Files/Microsoft\ Visual\ Studio/2022/Enterprise/VC/Tools/MSVC/14.42.34433/include -I/c/Program\ Files/Microsoft\ Visual\ Studio/2022/Enterprise/VC/Tools/MSVC/14.42.34433/ATLMFC/include -I/c/Program\ Files/Microsoft\ Visual\ Studio/2022/Enterprise/VC/Auxiliary/VS/include -I/c/Program\ Files\ \(x86\)/Windows\ Kits/10/include/10.0.26100.0/ucrt -I/c/Program\ Files\ \(x86\)/Windows\ Kits/10/include/10.0.26100.0/um -I/c/Program\ Files\ \(x86\)/Windows\ Kits/10/include/10.0.26100.0/shared -I/c/Program\ Files\ \(x86\)/Windows\ Kits/10/include/10.0.26100.0/winrt -I/c/Program\ Files\ \(x86\)/Windows\ Kits/10/include/10.0.26100.0/cppwinrt -I/c/Program\ Files\ \(x86\)/Windows\ Kits/NETFXSDK/4.8/include/um' --enable-pic --extra-cflags='-I/d/a/avbuild/avbuild/tools/Vulkan-Headers/include -MD -Zi -FS -guard:cf -I/d/a/avbuild/avbuild/tools/dep/include -D_WIN32_WINNT=0x0600' --extra-ldflags='-NODEFAULTLIB:libcmt -DEBUG -guard:cf -OPT:REF -SUBSYSTEM:CONSOLE' --enable-small --disable-outdevs --disable-filters --disable-muxers --disable-encoders --disable-decoders --disable-demuxers --disable-protocols --disable-filter=scale_cuda --enable-decoder='*sub*,movtext,*web*,aac*,ac3*,eac3*,alac*,ape,ass,av1*,ccaption,cfhd,cook,dca,dnxhd,exr,truehd,*yuv*,flv,flac,gif,h26[3-4]*,hevc*,hap,mp[1-3]*,prores,*[mj]peg*,mlp,mpl2,nellymoser,opus,pcm*,qtrle,*png*,tiff,rawvideo,rv*,sami,srt,ssa,v210*,vc1*,vorbis,vp[6-9]*,wm*,wrapped_avframe,ffv*' --enable-demuxer='*sub*,*ac3,*ac,*avs*,*[mj]peg*,*vc*,*web*,au,ape,ass,av[1i],concat,dnxhd,dts*,*dash*,*flv,gif,hls,h264,kux,matroska,mov,mp3,mxf,obu,ogg,pcm*,rawvideo,rt*p,spdif,srt,v210*,wav,*pipe,image2,mlv,nsv,nut' --enable-encoder='*_at,aac,gif,h26[3-4]*,av1*,hevc*,mjpeg*,*png,opus,pcm*,prores*,rawvideo,spdif,speedhq,*jpeg,*png,vp[8-9]*,wrapped_avframe,ff*,*nvenc,*qsv,*v4l2m2m,*vaapi,vorbis,*yuv*' --enable-muxer='*jpeg,fifo,flv,gif,hls,h264,hevc,image2,mov,mp4,mpegts,matroska,null,pcm*,rawvideo,rt*,spdif,*pipe,*segment,webm,wav,dash,nu*,og*' --enable-filter='*null*,afade,*fifo,*format,*resample,aeval,atempo,pan,crop,eq*,framerate,hw*,loudnorm,scale,volume,yadif*,allrgb,allyuv,*bars,color,test*,*key,draw*,*_qsv,*_vaapi,*v4l2*' --enable-protocol='cache,concat*,crypto*,data,fd,*file,ftp,h*,i*,pipe,rt*,s*,t*,u*'
[   +1 ms] flutter: mdk.FINE: 12:26:23.165: global option: ffmpeg.configuration = --extra-version=avbuild --disable-doc --disable-debug --enable-shared --enable-runtime-cpudetect --disable-iamf --enable-libvpl --disable-ptx-compression --enable-mediafoundation --disable-postproc --toolchain=msvc --windres=llvm-windres --extra-windresflags='--target=x86_64-pc-windows-msvc -I/c/Program\ Files/Microsoft\ Visual\ Studio/2022/Enterprise/VC/Tools/MSVC/14.42.34433/include -I/c/Program\ Files/Microsoft\ Visual\ Studio/2022/Enterprise/VC/Tools/MSVC/14.42.34433/ATLMFC/include -I/c/Program\ Files/Microsoft\ Visual\ Studio/2022/Enterprise/VC/Auxiliary/VS/include -I/c/Program\ Files\ \(x86\)/Windows\ Kits/10/include/10.0.26100.0/ucrt -I/c/Program\ Files\ \(x86\)/Windows\ Kits/10/include/10.0.26100.0/um -I/c/Program\ Files\ \(x86\)/Windows\ Kits/10/include/10.0.26100.0/shared -I/c/Program\ Files\ \(x86\)/Windows\ Kits/10/include/10.0.26100.0/winrt -I/c/Program\ Files\ \(x86\)/Windows\ Kits/10/include/10.0.26100.0/cppwinrt -I/c/Program\ Files\ \(x86\)/Windows\ Kits/NETFXSDK/4.8/include/um' --enable-pic --extra-cflags='-I/d/a/avbuild/avbuild/tools/Vulkan-Headers/include -MD -Zi -FS -guard:cf -I/d/a/avbuild/avbuild/tools/dep/include -D_WIN32_WINNT=0x0600' --extra-ldflags='-NODEFAULTLIB:libcmt -DEBUG -guard:cf -OPT:REF -SUBSYSTEM:CONSOLE' --enable-small --disable-outdevs --disable-filters --disable-muxers --disable-encoders --disable-decoders --disable-demuxers --disable-protocols --disable-filter=scale_cuda --enable-decoder='*sub*,movtext,*web*,aac*,ac3*,eac3*,alac*,ape,ass,av1*,ccaption,cfhd,cook,dca,dnxhd,exr,truehd,*yuv*,flv,flac,gif,h26[3-4]*,hevc*,hap,mp[1-3]*,prores,*[mj]peg*,mlp,mpl2,nellymoser,opus,pcm*,qtrle,*png*,tiff,rawvideo,rv*,sami,srt,ssa,v210*,vc1*,vorbis,vp[6-9]*,wm*,wrapped_avframe,ffv*' --enable-demuxer='*sub*,*ac3,*ac,*avs*,*[mj]peg*,*vc*,*web*,au,ape,ass,av[1i],concat,dnxhd,dts*,*dash*,*flv,gif,hls,h264,kux,matroska,mov,mp3,mxf,obu,ogg,pcm*,rawvideo,rt*p,spdif,srt,v210*,wav,*pipe,image2,mlv,nsv,nut' --enable-encoder='*_at,aac,gif,h26[3-4]*,av1*,hevc*,mjpeg*,*png,opus,pcm*,prores*,rawvideo,spdif,speedhq,*jpeg,*png,vp[8-9]*,wrapped_avframe,ff*,*nvenc,*qsv,*v4l2m2m,*vaapi,vorbis,*yuv*' --enable-muxer='*jpeg,fifo,flv,gif,hls,h264,hevc,image2,mov,mp4,mpegts,matroska,null,pcm*,rawvideo,rt*,spdif,*pipe,*segment,webm,wav,dash,nu*,og*' --enable-filter='*null*,afade,*fifo,*format,*resample,aeval,atempo,pan,crop,eq*,framerate,hw*,loudnorm,scale,volume,yadif*,allrgb,allyuv,*bars,color,test*,*key,draw*,*_qsv,*_vaapi,*v4l2*' --enable-protocol='cache,concat*,crypto*,data,fd,*file,ftp,h*,i*,pipe,rt*,s*,t*,u*'
[   +2 ms] flutter: mdk.FINE: 12:26:23.167: global option: ffmpeg.version = 7
[        ] flutter: mdk.FINE: 12:26:23.167: av_dict_set00007FF8645AD8A0
[        ] flutter: mdk.WARNING: 12:26:23.167: Failed to create io for url. io: 0000000000000000, open: 0
[        ] flutter: mdk.FINE: 12:26:23.167: Selected avformat runtime version: 61.9.101 (build: 61.9.101), license: LGPL version 2.1 or later
[        ] flutter: mdk.FINE: 12:26:23.167: av_muxer_iterate00007FF8644C2000
[        ] flutter: mdk.FINE: 12:26:23.167: Selected avcodec runtime version: 61.27.101 (build: 61.27.101), license: LGPL version 2.1 or later
[        ] flutter: mdk.FINE: 12:26:23.167: avcodec_descriptor_next00007FF8640EB100
[        ] flutter: mdk.FINE: 12:26:23.167: default 0000018E4E8FE7E0 FrameReader::update MediaStatus 0X2=>0X2
[        ] flutter: mdk.FINE: 12:26:23.167: before avformat_open_input. io: 0000000000000000()/pb: 0000000000000000, url: https://vip1.lz-cdn6.com/20220401/194_333005af/index.m3u8
[   +2 ms] flutter: mdk.FINE: 12:26:23.167: FFmpeg/Libav runtime git-2024-12-18-8272d34-avbuild
[ +519 ms] flutter: mdk.FINE: 12:26:23.693: [FFmpeg:https] HTTP error 403 Forbidden
[        ] flutter: mdk.FINE: 12:26:23.694: Error avrt::avformat_open_input(&fmtctx_, ffmpeg::from_file_uri(in.c_str()), fmt, &dict) @357 D:\a\mdk-sdk\mdk-sdk\mdk\ffmpeg\plugin\FFmpegPacketIO.cpp: (0xcccfcb08) Server returned 403 Forbidden (access denied)
[        ] flutter: mdk.FINE: 12:26:23.694: unsupported avformat options:  rtsp_transport=tcp protocol_whitelist=file,rtmp,http,https,tls,rtp,tcp,udp,crypto,httpproxy,data,concatf,concat,subfile strict=experimental reconnect=1 reconnect_delay_max=7 tls_verify=0
[        ] flutter: mdk.FINE: 12:26:23.694: 25300default 0000018E4E8FE7E0 mdk::abi::FrameReader::update @1147: reset status_mask. status: 80000000
[        ] flutter: mdk.FINE: 12:26:23.694: default 0000018E4E8FE7E0 FrameReader::update MediaStatus 0X2=>0X80000000
[        ] flutter: mdk.WARNING: 12:26:23.695: reader open error
[        ] flutter: mdk.FINE: 12:26:23.695: 25300default 0000018E4E8FE7E0 mdk::abi::FrameReader::update @1147: reset status_mask. status: 80000000
[        ] flutter: mdk.FINE: 12:26:23.695: default 0000018E4E8FE7E0 FrameReader::update MediaStatus 0X80000000=>0X80000000
[        ] flutter: mdk.FINE: 12:26:23.698: 0000018E4E8FE7E0 mdk::abi::FrameReaderImpl::unload, current status 0x80000000, invalid: 0x80000000, loading: 0, loaded: 0, buffering: 0, seeking: 0, prepared: 0, EOF: 0
[        ] flutter: mdk.FINE: 12:26:23.699: default FrameReader0000018E4E8FE7E0 state: 0=>2=>0, 1
[        ] flutter: mdk.SEVERE: 12:26:23.699: state not changed!
[        ] flutter: mdk.FINE: 12:26:23.699: read thread finished: mdk.read@25300

curl -v "https://vip1.lz-cdn6.com/20220401/194_333005af/index.m3u8"
* About to connect() to vip1.lz-cdn6.com port 443 (#0)
*   Trying 216.180.224.219...
* Connected to vip1.lz-cdn6.com (216.180.224.219) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate:
* 	subject: CN=vip1.lz-cdn5.com
* 	start date: Feb 29 06:37:02 2024 GMT
* 	expire date: Mar 30 06:37:01 2025 GMT
* 	common name: vip1.lz-cdn5.com
* 	issuer: CN=Certum Domain Validation CA SHA2,OU=Certum Certification Authority,O=Unizeto Technologies S.A.,C=PL
> GET /20220401/194_333005af/index.m3u8 HTTP/1.1
> User-Agent: curl/7.29.0
> Host: vip1.lz-cdn6.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Accept-Ranges: bytes
< Access-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type
< Access-Control-Allow-Methods: GET, POST, OPTIONS
< Access-Control-Allow-Origin: *
< Cache-Control: max-age=2592000
< Content-Length: 96
< Content-Type: application/vnd.apple.mpegurl
< Date: Mon, 23 Dec 2024 04:28:48 GMT
< Etag: "64319e0f-60"
< Expires: Wed, 22 Jan 2025 04:28:48 GMT
< Last-Modified: Mon, 23 Dec 2024 04:28:48 GMT
< Server: openresty
< X-Cache: BYPASS, write memory cache failed: over memory size: 45020516352, current size: 45021659574 bytes
<
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=800000,RESOLUTION=1080x608
* Connection #0 to host vip1.lz-cdn6.com left intact

你找个其他人编译的ffmpeg试试。我试了另一个用gnutls的也是同样错误。具体啥原因我也不懂。

你找个其他人编译的ffmpeg试试。我试了另一个用gnutls的也是同样错误。具体啥原因我也不懂。

好的 先关了 🤞

authors: wang-bin xweiba

repo: wang-bin/fvp


text:
’ rendered on the homepage snippets

’ rendered on the homepage snippets. On the individual pages, the text renders just fine. This is on my localhost.
Politicians don’t understand

Hugo Static Site Generator v0.78.2/extended linux/amd64 BuildDate: 2020-11-13T14:10:43Z
GOOS="linux"
GOARCH="amd64"
GOVERSION="go1.15.4"

@morariu Hi, I've tested it in my machine, and it works well.

I just pasted Politicians don’t understand, and my hugo version is 0.78.2. I have not tested it in extended version, but I guess this is irrelevant with that.
If there is anything else that can help you, I am willing to help.

Thanks. It must be from my side.

source: gharchive/issue

authors: morariu wangchucheng

repo: wangchucheng/hugo-eureka

license_type: permissive

license_source: github-api


text:
wangEditor3 直接上传图片到oss？

这个目前 大家有实现的吗？  能帮忙贴下代码吗？》谢谢

这是我写的，你可以参考一下
// 自定义上传图片事件
this.editor.customConfig.customUploadImg = function (files, insert) {
let client = new OSS({
accessKeyId: ossConfig.accessKeyId,
accessKeySecret: ossConfig.accessKeySecret,
bucket: ossConfig.ckbucket,
region: ossConfig.region
})
let file = files[0]
const point = file.name.lastIndexOf('.')
let suffix = file.name.substr(point)
let fileNames = _this.$getUUID() + suffix
// let encodeFileName = encodeURI(file.name)
let encodeFileName = encodeURI((new Date()).getTime())
client.multipartUpload('textEditorImage/' + fileNames, file, {
headers: {
'Content-Disposition': 'attachment;filename=' + encodeFileName
}
}).then((data) => {
if (data.res.statusCode === 200) {
// 上传代码返回结果之后，将图片插入到编辑器中
insert(http://${ossConfig.ckbucket}.${ossConfig.region}.aliyuncs.com/${data.name})
}
})
}

@AHIMOTU   嗯  确实是这样，我已经实现了。 还是万分感谢你。

@im-zhangxi 请问一下你怎么实现的？

authors: AHIMOTU im-zhangxi yinqianhua

license: mit

license_source: bigquery


text:
楼主，啥时候能提供设置NavBarShadowImage的颜色接口啊？

因为有的时候UI需要改变shadowImage的颜色，系统黑色有点丑

你可以把shadowImage隐藏掉嘛

authors: VaeXnn pengzz


text:
S7 Edge分享的配置文件

{
"under_game_score_y": 384,
"press_coefficient": 1,
"piece_base_height_1_2": 95,
"piece_body_width": 102
}
只要把截图拖进PS里根据注释算一下就好了

感谢分享 @xxxuuu

有没有S8 S8+ NOTE8大佬分享个配置啊😭

已添加 @xxxuuu

authors: F5F5 wangshub xxxuuu


text:
help with redux please?

Hey!
Sorry for creating an issue here, but I am just unable to solve this, and don't know where else to go for help.
So, i am using this component, two of them actually. I would like to use redux for store, and it almost working but not 100%. :(
The issue is, that whenever I am updating one of the sliders, both. of them are reciving the new X props.
I have pushed my code into a github repo: https://github.com/zilahir/mood-slider
Here's a gif about what is actually happening:
https://giphy.com/gifs/react-redux-1lBGQerOeLmSO3G4T8
Any help would be highly appreciated.

seems working now

authors: wangzuo zilahir

repo: wangzuo/react-input-slider


text:
complex resource paths

support for
 `/api/customer/32/orders`
 `/api/customer/32/orders/451`
 `/api/customer/address`

We take PRs ;-)
I agree it would be nice. Do  you have the use case now?

I'd like the solution to be support almost any request url scheme.
My instinct is to add a configurable route/response map where the response is a function with access to the in-mem datastore, original request, parsed request, and response-building helper functions.
We'll need a route recognizer for request url pattern matching and parsing of parameters.
The current route handling would become the initial, default state of this map.

authors: johnpapa wardbell


text:
[env] A "local" project will never include PHP

Version of Warden
0.14.1
Operating System and Installation Method
MacOS Ventura 13.4.1 via Brew
Describe the Bug
When initializing a new project with the "local" variant, there is no way to bring the environment up with a PHP instance. You can still enable different services that rely upon the PHP service (e.g. Blackfire) but the startup will fail because of the missing php-fpm service.
My proposal is to remove the restriction on "local" and instead convert it to an enabled service like any other service (MariaDB, ElasticSearch, etc.).
To Reproduce

Create a new project
Initialize a local project: warden env-init test local
Set the PHP_VERSION=8.2 configuration
(Optional) Enable Blackfire support
Start the environment: warden env up

Expected Behavior
The selected PHP version service is running.
Additional context
No response

Nevermind, this is because the local one specifically has nothing in there. What would be good is to have a command to help build / identify the Warden image names to use. Example warden image php-fpm would provide the URL to use for the php-fpm images inside your .warden/warden.env.yml file.

repo: wardenenv/warden

license: MIT


text:
[BUG 🐞] Streched favicon

Description
Favicon is disproportionate
Screenshots

Additional information
Make sure to read the CONTRIBUTING and SETUP docs before proceeding
Happy contributing. 💐
Star my other Repositories here

Assigning you

Done :), i will now work on the hamburger menu


text:
Wrong name for i32x4.relaxed_dot_i8x16_i7x16_add_s

Currently: i32x4.dot_i8x16_i7x16_add_s. See also i16x8.dot_i8x16_i7x16_s

Fixed by #144

repo: wasdk/wasmparser


text:
Appendicular_bones not showing anything

After using TotalSegmentator v2 Appendicular_bones i try to import it to 3D slicer. But nothing is shown. Please tell me what's wrong

how does your ct image look like in 3d slicer? does it contain arms and legs?

Hi! Same as @empat6, the predictions .nii.gz are empty.
Tested on this crop (see image below) of patient verse573_CT-iso from the VerSe 20 validation dataset (https://paperswithcode.com/dataset/verse-1)

Can you send me the nifti image (jakob.wasserthal@usb.ch) ? Than I can try to reproduce the issue.

Thanks for sending the data. There was indeed a bug. I just pushed a fix to the master branch. If you install from master branch (see readme for how to do this) it should work.

jakob.wasserthal@usb.ch

Hi, my data looks like this. It only shows the legs, can i use TotalSegmentator for data like this?

yes

Thanks for sending the data. There was indeed a bug. I just pushed a fix to the master branch. If you install from master branch (see readme for how to do this) it should work.

repo: wasserth/TotalSegmentator


text:
How to calculate the muscle and fat volume after muscle segmentation and export it from 3d Slicer to excel sheet

Is there a tool to get the fat volume and separate it from the muscle volume? I have seen most of the questions in the forum do not specify one tool. For example in my project I am planning to segment rotator cuff muscles and determine the fat volume and muscle volume separately by CT scan. Then want to export the volume to an excel sheet.
If possible explain step by step for a beginner not have experience in coding.
Thank you

There is not a specific tool for that. You would have to do that yourself.


text:
[0.5pt] Set up the project with Webpack and Jest- group task

Set up Gitflow
Set up webpack
Set up a JavaScript testing library (Jest)

We added:

Jest
Webpack
Gitflow

repo: wassimchakib/Free-Games-Tracker


text:
Documentation mismatch

Great work here! However, it seems maybe the UI and things have changed so I'm not able to follow some of the steps mentioned. Can you please help?
So:
On the Service Details page, click Launch tool.

Click the Import workspace icon in the Conversation service tool. Specify the location of the workspace JSON file in your local copy of the app project:

<project_root>/training/car_workspace.json

Select Everything (Intents, Entities, and Dialog) and then click Import. The car dashboard workspace is created.

I don't see this Import workspace, I'm guessing it's just the Download json option., but what is meant by "click Import". I'm trying to embed this app with my own conversation bot in another html page.
Or can I replace the training/car-wordspace.json with my json file from my app, which is already running?

The import workspace is the line with an up arrow in it. That is so you can import some json workspace into your conversation tooling.
To embed your app in another page youll want to have your conversation workspace connected to this app via the .env credentials, and then likely embed the simple UI as an iframe or something like that.

authors: mitchmason renderit


text:
Fix tabbed/stacked container title

Fixed #381 issue, when tabbed/stacked containers with subcontainers didn't update title counter of an active window.
Added optimization to not include children duplicates in a border drawing function.
I've added the HashSet because children vector contains parent node and its children. In this case we add another children instances because of self.tree.grounded_children(child_ix) for the parent container.

Thanks, I'll test this out later tonight

I suspect there is a better way to avoid children duplication. But it requires deeper changes in the codebase.

Hmm, I thought of another way to code this algorithm, not sure if it's sufficiently more efficient / less clear though. I'll let you be the judge.
Use drain to clear the vector and convert it to a HashSet, like so:
let mut children_set = children.drain(..).collect::<HashSet<NodeIndex>>();

In order to make that more efficient you can pre-allocate the HashSet using with_capacity with the length of the children Vec.
children_set extend with the grounded children (no need for a loop with a branch)
children_set.extend(self.tree.grounded_children(child_ix));

Finally, convert back to Vec (with optional with_capacity optimization like before)
children = temp.into_iter().collect::<Vec<NodeIndex>>();

Full code:
// Up here you could init children_set using with_capacity and then keep a mutable reference to it that you can update so as to have the amortized cost of allocating the HashSet like you do in your implementation
while children.len() > 0 {
    let child_ix = children.pop().unwrap();
    let mut children_set = children.drain(..).collect::<HashSet<NodeIndex>>();
    children_set.extend(self.tree.grounded_children(child_ix));
    children = children_set.into_iter().collect::<Vec<NodeIndex>>();

    ...

Honestly, either is fine with me. If you think yours is better (and I wouldn't blame you if you did) then we'll go with that

Also implementation looks good, works on my machine at least ;)

I've posted a lot of comment to the change request and pushed new version. Now I have no idea where all the comments went.

Is there a reason you need to use tree.on_path in your changes? It should only be updating the color of the borders of the active container, does it some way affect your tabbed/stacked title fix that I'm unaware of?

You're probably right about the constant allocation for new HashSet, I was hoping there would be a way to pre-allocate and re-use the old ones but I don't think there is. Your current implementation is fine. Just need to fix that regression

Oh I see duh you added the on_path check because otherwise it doesn't check non-focused containers. Ok, this looks great. Thanks again!

source: gharchive/pull-request

authors: Timidger alexander-smoktal

repo: way-cooler/way-cooler


text:
Added 10-bit back buffer support

I experiment with render_bit_depth option in sway and found that nothing can make screenshots in this mode. So I've added this feature. I only support Xbgr2101010 and Abgr2101010 because I don't have anything to test it on Xrgb2101010 or Argb101010 formats.

Allow user to make screenshots if back buffer uses 10 bits per color channel.
Image conversion moved to convert.rs

Super cool patch! Thanks for keeping everything properly commented and for the contribution.
I'll quickly go over it and if everything is fine, I'll merge it.

authors: Shinyzenith gigablaster

repo: waycrate/wayshot


text:
上传至backblaze b2出错

参照示例配置如下：
"aws-s3": {
      "accessKeyID": "-",
      "acl": "public-read",
      "bucketEndpoint": false,
      "bucketName": "-",
      "endpoint": "https://s3.us-east-005.backblazeb2.com",
      "pathStyleAccess": false,
      "region": "",
      "rejectUnauthorized": true,
      "secretAccessKey": " -",
      "uploadPath": "/{fullname}",
      "urlPrefix": "-"
    }

上传报错为：
Error: certificate has expired
    at TLSSocket.onConnectSecure (_tls_wrap.js:1317:34)
    at TLSSocket.emit (events.js:200:13)
    at TLSSocket.EventEmitter.emit (domain.js:471:20)
    at TLSSocket._finishInit (_tls_wrap.js:792:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:606:12)

关闭"rejectUnauthorized"后，报错信息变为：
SignatureDoesNotMatch: Signature validation failed
    at Request.extractError (C:\Users\3verness\AppData\Roaming\picgo\node_modules\aws-sdk\lib\services\s3.js:711:35)
    at Request.callListeners (C:\Users\3verness\AppData\Roaming\picgo\node_modules\aws-sdk\lib\sequential_executor.js:106:20)
    at Request.emit (C:\Users\3verness\AppData\Roaming\picgo\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
    at Request.emit (C:\Users\3verness\AppData\Roaming\picgo\node_modules\aws-sdk\lib\request.js:686:14)
    at Request.transition (C:\Users\3verness\AppData\Roaming\picgo\node_modules\aws-sdk\lib\request.js:22:10)
    at AcceptorStateMachine.runTo (C:\Users\3verness\AppData\Roaming\picgo\node_modules\aws-sdk\lib\state_machine.js:14:12)
    at C:\Users\3verness\AppData\Roaming\picgo\node_modules\aws-sdk\lib\state_machine.js:26:10
    at Request.<anonymous> (C:\Users\3verness\AppData\Roaming\picgo\node_modules\aws-sdk\lib\request.js:38:9)
    at Request.<anonymous> (C:\Users\3verness\AppData\Roaming\picgo\node_modules\aws-sdk\lib\request.js:688:12)
    at Request.callListeners (C:\Users\3verness\AppData\Roaming\picgo\node_modules\aws-sdk\lib\sequential_executor.js:116:18)

直接使用浏览器打开https://s3.us-east-005.backblazeb2.com能够弹出Unauthenticated requests are not allowed for this api

网络原因重复提交


text:
关于Linux系统运行

老师，我本地win10运行没有问题。但部署到远程的阿里轻量服务器CentOS7时，gradlew命令总是用不了，就用gradle命令运行起来，运行没有报错。有开放了防火墙，但是本地访问总是遭到拒绝连接，不知道和系统有没有关系。其他项目在阿里服务器上都能正常访问。

Exception in thread "DisconnectableInputStream source reader" org.gradle.api.UncheckedIOException: java.io.IOException: Bad file descriptor
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:61)
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:41)
at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:125)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Bad file descriptor
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:96)
... 1 more

Task :compileJava
Note: /home/pan/mongodb-file-server-master/src/main/java/com/waylau/spring/boot/server/config/SecurityConfig.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Task :processResources UP-TO-DATE
Task :classes

Task :bootRun

@DcXuhm  估计是阿里的防火墙的问题吧。你改为用 java -jar 运行方式试下

问题已经解决：
在application.properties文件中将server.address=localhost修改为server.address=0.0.0.0。
原来的localhost会使项目在远程服务器上运行时仅对本地开放，而0.0.0.0则对外开放。
注意，端口需要提前在阿里防火墙设置处开放。

authors: DcXuhm waylau

repo: waylau/mongodb-file-server


text:
Unityの迷路 Scripts の共通部分を Baseクラスに抽出

問題
Unity 環境の Task クラスを抽象基底クラスとして各具象クラス(ex. TaskOneDimTask1.csなど)で
Success, Failure, Done がまったく同じ実装になっている。
対策
これらのメソッドは１次元迷路、十字迷路、矢尻迷路といった迷路の形状にあわせて共通化するのがよさそう。
スコープ

OneDimTaskBase.cs、CrossMazeBase.cs、ArrowTaskBase.cs、の三つの基底クラスを導入
各 OneDimTaskXXX.cs、CrossMazeXXX.cs、ArrowTaskXXX.cs のSuccess、Failure、Done はBaseクラスに移譲

備考
おそらく十字迷路、矢尻迷路で変更することになるが、今回は各 Base クラスで同じ実装になることは許容する。

優先度は低めです。


text:
Add doc for environment variables

Write in the README about env variables.

Done 12346bf

repo: wbeuil/dctlenv


text:
启用虚拟滚动，自动滚动到选中的节点位置

启用虚拟滚动后，div中只有当前可视范围内的20几条数据，该如何通过外部点击使一个节点选中并且滚动到这个节点处呢？

目前采用将外部指定的节点名称当作关键词搜索。

请问.scrollToItem()有用吗？ 在 #13 中我看示例中有，但是我写了没有作用

升级到v1.0.11版本，使用类似this.$refs["veTree"].setChecked(key,true)和this.$refs["veTree"].scrollToItem(key)的方式滚动到目标节点。注意：如果目标节点是子节点，需要自己处理展开

升级到v1.0.11版本，使用类似this.$refs["veTree"].setChecked(key,true)和this.$refs["veTree"].scrollToItem(key)的方式滚动到目标节点。注意：如果目标节点是子节点，需要自己处理展开

已更新处理，谢谢！另还请麻烦尽快更新至CNPM

客气了

可以使选中的节点滚动到树列表的中间位置吗？ 或者说，可以自动通过设置的方法自动调整树的滚动吗（比如点击某个按钮，滚动条自动向下滚动50像素的距离）

谢谢，很完美

repo: wchbrad/vue-easy-tree


text:
Unnecessary heap allocation via codec

I spent some time chasing down memory allocations from endcoding and decoding StringLatestMap.
One interesting case is when we read in a time.Time in msgpack mode.  Here is the generated code for reference:
		case "timestamp":
			if r.TryDecodeAsNil() {
				x.Timestamp = time.Time{}
			} else {
				yyv4 := &x.Timestamp
				yym5 := z.DecBinary()
				_ = yym5
				if false {
				} else if yym6 := z.TimeRtidIfBinc(); yym6 != 0 {
					r.DecodeBuiltin(yym6, yyv4)
				} else if z.HasExtensions() && z.DecExt(yyv4) {
				} else if yym5 {
					z.DecBinaryUnmarshal(yyv4)
				} else if !yym5 && z.IsJSONHandle() {
					z.DecJSONUnmarshal(yyv4)
				} else {
					z.DecFallback(yyv4, false)
				}
			}

the actual decoding goes via this function:
func (f genHelperDecoder) DecBinaryUnmarshal(bm encoding.BinaryUnmarshaler) {
	fnerr := bm.UnmarshalBinary(f.d.d.DecodeBytes(nil, false, true))
	if fnerr != nil {
		panic(fnerr)
	}
}

since bm is an interface pointer, the compiler considers the data buffer to escape in the call to time.Time.UnmarshalBinary(), and makes a copy on the heap.
If this was written as yyv4.UnmarshalBinary(...) then the compiler can see through the call that the buffer does not escape.
Related to #1010

Note that this issue does not affect #2870, because the x in question is created as part of a slice and is therefore already on the heap.

repo: weaveworks/scope


text:
CRI support for the scope probe

Scope talks to the Docker API directly for a variety of stats collection; this is an issue when using other container runtimes (CRI-O being the current example).
Capturing feedback from @dlespiau:

CRI has now a stats API since k8s 1.8, we could teach scope to use that API instead of using directly docker
(just to be more precise, it's not just about stats collection, but everything we do with the docker API like opening a shell in the container or getting container logs)

What actually goes wrong right now? Is the only issue that non-docker containers are missing CPU/Memory graphs?

Not just for stats, controls/actions on containers end up calling the docker API: https://github.com/weaveworks/scope/blob/master/probe/docker/controls.go#L14 and those would need to be CRI instead. I mentioned stats because they were missing in the first version of CRI.

Started looking into this to add support for CRI to scope probe.

scope to use that API instead of using directly docker

I would not replace but instead add CRI support as an additional option, for Kubernetes from 1.8 onwards we can always use CRI, but fallback to docker in other cases. My initial thinking was a flag to switch, but am open to suggestions?

A flag would be perfect, we'' be able to ship a manifest with the CRI option for k8s 1.8+ then.

Why do we need a flag? Why can't scope detect the presence of / try to talk to CRI, and fall back to Docker if that fails?

What's the status on this?

@rade Was not sure if I should close this, as network support is not implemented yet?

? Did that turn out to be infeasible?

Nope, it didn't. I tried creating a more sophisticated detection tool, but the CRI API does not expose the actual endpoint which we would need to mount. Also it's a chicken egg problem https://github.com/weaveworks/scope/pull/3305#issuecomment-411356077 So we decided to go with https://github.com/weaveworks/launcher/pull/252 in weave.cloud which works in most cases and user can override it, and we generate the manifest files based on that endpoint.
As for scope, the user needs to mount the volume for docker anyways, when using the docker probe, so it's similiar for any CRI runtime.

Sounds like there is nothing left to do here - all remaining work is covered by separate issues. I suggest we close this.

How's it going

Still work to do:
https://github.com/weaveworks/scope/issues?q=is%3Aissue+is%3Aopen+cri

@bboreham
did it work for you in kubernetes?

authors: LiliC bboreham crw dlespiau draconiun huapox jml rade


text:
Add with_metadata

use
with_metadata(
        self,
        uuid: bool = False,
        vector: bool = False,
        creationTimeUnix: bool = False,
        lastUpdateTimeUnix: bool = False,
        distance: bool = False,
        certainty: bool = False,
        score: bool = False,
        explainScore: bool = False,
    )

instead of using with_additional

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.49 :tada:

Comparison is base (eb3bf16) 95.43% compared to head (4c5fde0) 95.92%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #381      +/-   ##
==========================================
+ Coverage   95.43%   95.92%   +0.49%
==========================================
  Files          64       64
  Lines        8165     8174       +9
==========================================
+ Hits         7792     7841      +49
+ Misses        373      333      -40

Impacted Files
Coverage Δ

integration/test_batch.py
98.03% <100.00%> (ø)

integration/test_graphql.py
93.64% <100.00%> (ø)

test/gql/test_get.py
100.00% <100.00%> (ø)

weaviate/gql/get.py
96.97% <100.00%> (+0.02%)
:arrow_up:

... and 5 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Syntax looks lovely and clean :grin:
Unless there is a specific design decision for it, I would say that variables should always be snake_case to be as pythonic as possible. I suppose the camelCase here is due to the GQL schema being implemented as such. Is propagating this convention into python a requirement?

Syntax looks lovely and clean 😁

thanks :)

Unless there is a specific design decision for it, I would say that variables should always be snake_case to be as pythonic as possible. I suppose the camelCase here is due to the GQL schema being implemented as such. Is propagating this convention into python a requirement?

good point. I think currently we are returning a Dict back, where the keys are in camelCase and match the argument (eg the key in the dict would be explainScore). Let me try something out

Pushed something, but I'm not super happy with it.
if with_metadata is used, it replaces the "_additional" with a typed "metadata" entry. The problem is, that I don't see how I can propagate that type info to a caller without breaking anything. Eg a succesful response would be
{
 "data" : {
    "Get": {
    "CLASSNAME" : [Obj1, Obj2,....]
    }
  }
}

Where each object is a dictionary that contains unknown keys and afaik you cannot say "this key in a dict as always an int, but there are additional, unknown ones".
So typed usage would look like this, not sure if that is a win :/
        meta: MetadataReturn = res["metadata"]
        assert meta.is_consistent

I think calling it metadata rather than _additional is a good idea for the user experience. However, introducing a Pydantic dependency here is out-of-left-field. Is this something that will be implemented for the whole client moving forward?
I reckon that introducing generics at this point might provide the most value for the least amount of trouble. It would of course be a breaking change so we'd need to add this generic-based functionality alongside the current dictionary-based functionality.
But an example might be like this:
from dataclasses import dataclass
from typing import Generic, TypeVar

T = TypeVar('T')

@dataclass
class AdditionalProperties:
    uuid: bool = False
    vector: bool = False
    creationTimeUnix: bool = False
    lastUpdateTimeUnix: bool = False
    distance: bool = False
    certainty: bool = False
    score: bool = False
    explainScore: bool = False
    isConsistent: bool = False

@dataclass
class GetReturn(Generic[T]):
    class_: T
    metadata: AdditionalProperties

@dataclass
class Pet:
    name: str
    age: int
    breed: str

get = GetReturn[Pet]()
get.class_.name
get.metadata.uuid

Then the GetReturn dataclass would be the return type of the do() method and would be populated by the user's provided dataclass for their object. Something similar can be seen here.
Annoyingly, you can't flatten the Generic[T] type in GetReturn so you have to have class_: T rather than the fields of T sit at the same level as metadata.

However, introducing a Pydantic dependency here is out-of-left-field. Is this something that will be implemented for the whole client moving forward?

Ahh, I'm just playing around with Pydantic right now on another branch. Definitely still in the pre-POC stage and nothing decided yet. Just want to get a feeling for the different options before we go down any route.

I reckon that introducing generics at this point might provide the most value for the least amount of trouble. It would of course be a breaking change so we'd need to add this generic-based functionality alongside the current dictionary-based functionality. Trying to almost retcon types into a heavily nested dictionary at specific levels might take more work than it is worth.

Looks cool, but this change should not introcuce a breaking change :)
In the other branch mentioned above, I'm basically trying out something similar with pydantic. Its validation + de/serialization to json looks really helpful. I missed your post in the forum, sorry for that. Let me finish my POC and then I will comment there and we can discuss that further :)
For this PR, I wanted to introduce some small improvements without breaking anything to collect some feedback on what people like, then we have an easier time making bigger changes like introducing pydantic or generics with breaking changes. Maybe the most pragmatic change here would be to go with the first PR (eg .with_metadata() and still returning a dict) but with pythonic argument names?
Next step could be to complete it with the missing fields (group_by) and then deprecate .with_additional()

Ah, nice one! The Pydantic to/from json functionality would be massive for the problems the python client is likely to face typing the dictionaries. In the PoC code of the forum post, the serialization/deserialization logic is pretty weak using in-built python functionality. I looked into messing around with interfaces using protocols but it wasn't particularly enjoyable or powerful. No worries on the forum post, you've all been massively stacked releasing v1.20! 😁
The thing with Pydantic is any potential performance issues using it. v2 does well to minimize these through Rust optimizations but I'm still not 100% on whether these improvements completely alleviate the underlying slowness.

Looks cool, but this change should not introcuce a breaking change :)

Hard agree! Generics is definitely a huge amount of work for such a PR 😅

Maybe the most pragmatic change here would be to go with the first PR (eg .with_metadata() and still returning a dict) but with pythonic argument names?

I'd back this, the user feedback on the API format/structure will be great when moving onto the future collections with generics development :)

perfect, I added the changes

Yea, I like the idea of metadata or even meta if we want to be extra brief ;)
Does the generic property need to include _ in the name?

The _ is there because class is a reserved keyword in Python. But renaming it data removes this issue entirely, so that's great :) meta instead of metadata is also nice, looks very clean!
Implementing generics would need to go much further than just defining a return type unfortunately since the user will need to provide their type to the Weaviate client in order for it to be piped to the returning function. This is perhaps where the .collection API changes will begin to appear :grin:

authors: codecov-commenter dirkkul tsmith023

repo: weaviate/weaviate-python-client


text:
[Bug]: Uncaught ReferenceError: process is not defined when trying to use an Env variable

Version
System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 20.63 GB / 31.70 GB
  Browsers:
    Edge: Chromium (127.0.2651.74)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    @rsbuild/core: ^1.1.1 => 1.1.1
    @rsbuild/plugin-react: ^1.0.7 => 1.0.7

Details
Environment variables are not getting replaced in a clean Rsbuild project. You can check the reproduction repo. The env file is loaded using loadEnv but the process.env.TEST_ENV_VAR used in App.tsx is not found and I get an Uncaught ReferenceError: process is not defined error.
Reproduce link
https://github.com/alex-vukov/rsbuild-issue
Reproduce Steps

npm install
npm run dev
See the error in the browser

But I think the explanation on the official website may not be clear enough.
In the following tutorial, only variables starting with PUBLIC_ will be replaced.
If there is no PUBLIC_ prefixed variable in your .env, it will have no effect.

Thank you for responding! I don't understand why I need to specify the name of the variable in loadEnv. I can see that it's loaded inside the parsed object so it made sense to just pass it to define. Indeed the documentation is confusing about the usage.

repo: web-infra-dev/rsbuild


text:
Codesandbox cannot be interactive after minimizing

System Info
System:
OS: macOS 13.4.1
CPU: (10) arm64 Apple M1 Pro
Memory: 135.50 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.18.1 - ~/.nvm/versions/node/v16.18.1/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.18.1/bin/yarn
npm: 8.19.2 - ~/.nvm/versions/node/v16.18.1/bin/npm
Browsers:
Chrome: 115.0.5790.114
Safari: 16.5.1
npmPackages:
@rspack/cli: latest => 0.2.10
Details
I use @codesandbox/sandpack-react in our project and it's normal to interact with codesandbox component in dev environment.But in production mode, the component cannot be interactive after minimizing the js code.
However, when i disable minimize in production, the component  is interactive again.
Reproduce link
https://github.com/sanyuan0704/rspack-codesandbox-reproduction
Reproduce Steps
1.pnpm i
2.pnpm dev, see the codesandbox component and you can see the preview ui
3. pnpm build and preview the output html file, then you will find that the preview ui is empty.
4. Didable the minimize in rspack, then the preview ui is normal in production.

Is there any error popped up?

Is there any error popped up?

It does not have any error in the console panel.

bump, @h-a-n-a have investigated this?

Any update？

Can not reproduce this issue with Rspack 0.6.x

authors: chenjiahan h-a-n-a hardfist sanyuan0704

repo: web-infra-dev/rspack


text:
Having a term for "Baseline" (with no year)

In discussing "Baseline" here in this repository, it's been a challenge to talk about the difference between "Baseline" and "Baseline 2023."
For example, in #175, I argue that MDN shouldn't refer to "Baseline" without also using a year, e.g. "Baseline 2023," "Baseline 2024," etc.
I think there needs to be a term for the non-year term "Baseline," a term that applies to "Baseline" but not to "Baseline 2023," at least so we can use this term in conversation here in the repository.
Here are some ideas for terms we could use to refer to "Baseline" that definitely don't mean the current year's "Baseline 2023":

Dynamic Baseline
Moving Baseline
Living Baseline
Variable Baseline
Fluid Baseline
Non-year-based Baseline

(I sorted these in order of my personal favorite.)
Here are terms that I think we should not use for this purpose, because it's ambiguous whether you mean "Baseline" or the current year's "Baseline 2023"

Just "Baseline"
Current Baseline
Latest Baseline
Baseline Now
Active Baseline
Stable Baseline
Today's Baseline

Here are other terms I thought of that don't sound right to me, because it makes it sound like the features are not yet stable.

Unstable Baseline
Fluctuating Baseline

I we assume that Baseline is versioned, then I think "Latest Baseline" seems to be the easiest to understand without needing a glossary to lookup the definition. We already say "Latest Chrome" or "Latest Safari" to mean the most recent version so "Latest Baseline" sounds natural to me.

authors: dfabulich styfle

repo: web-platform-dx/feature-set


text:
Hover effect won't close

I have a problem with the hover of the tiles as seen on the picture.
What can I do about it?

any solution to this?? I'm having the same issue...

@noeldevelops in what web browser is this happening? Is there any zoom on the page?

Thanks for trying to help!
I changed the background color of .hex h1, .hex p in the stylesheet to make it black. I also deleted the first css rule:
* {margin: 0; padding: 0;}
Adding it back with dev tools doesn't seem to fix the problem, but it's a good starting point to think about, so thanks for that reminder...
I've also changed the html a bit to make it work in Wordpress, but nothing structural.
I will continue to troubleshoot and if I can make a snippet that recreates the error I will send it over.

its probably the removing of  * { margin: 0; padding: 0; } that makes it break.
Since a h1 tag is default getting 1em of margin below and above. Trying removing margin and padding on .hex h1 and .hex p.

You're exactly right!
I had a default margin adding 10px below all  tags... I put margin-bottom: 0; on the .hex h1 and it fixed it.
Thanks again for helping me figure that out

authors: lzweers noeldevelops poi33

repo: web-tiki/responsive-grid-of-hexagons


text:
Need to add UPPERCASE letters here

https://github.com/web3p/ethereum-util/blob/8736ef0c4b40f9e4aa060cf8836a4f24c5072249/src/Util.php#L130
This code prevents usage of addresses in a canonical form with uppercase letters in address, like this one: 0x476Bb28Bc6D0e9De04dB5E19912C392F9a76535d

Hi,
Just found that https://github.com/ethereum/EIPs/blob/master/EIPS/eip-55.md
So we need to support uppercase and lowercase in this library.


text:
Integration with YouCompleteMe

Progress:

[ ] Auto trigger completions
[x] Snippets after completion
[ ] GoToDefinition
[ ] GetDoc

@srsudar  I install YouCompleteMe and he works good for my plugin if i press ctrl+space. I had not fully read to  learning YouCompleteMe but i thinks  i can found search solution make trigger auto.

Snippets after completion now is working
34ddb5aad2679afe50ee655e237f388c2495e38d

I have a tons of errors while opening vim when I enable YouCompleteMe.
Error detected while processing function polymer_ide#Enable[4]..<SNR>99_bufferModified[1]..<SNR>99_send_command:
line    4:
E631: ch_sendraw(): write failed
Error detected while processing function <SNR>99__on_stdout:
line    2:
E474: Invalid argument
line    3:
E121: Undefined variable: id
E116: Invalid arguments for function exists('s:handlers['. msg.id .']')
E15: Invalid expression: exists('s:handlers['. msg.id .']')
line    2:
E474: Invalid argument

You can check my vim config on https://github.com/aemonge/dotFiles/blob/master/.vimrc and try to open a polymer component to see the same log.
Maybe I'm doing something wrong, so I would love some help here :)

Hi @aemonge . Read this #6 i think you have same error.

I feel dumb, hehehehehe.
Okey, I've done that but the following errors persist; I'll screen shot them. And the big issue with it is that I don't see polylint enabled for syntastic

So strange errors. I think will be better create new issue.

Thanks!

authors: aemonge webdesus


text:
pretty option seems to be messing around with inline JS

As I mentioned in https://github.com/webdiscus/pug-plugin/issues/56#issuecomment-1384360526, the inline JS was not working.
By looking through the process that HTML code being processed, I found that Pretty.format turned  into .
https://github.com/webdiscus/pug-plugin/blob/29aa357fbf5f0877da5f36e34c41659c60241211/src/AssetScript.js#L146
This is where the JS code being inserted into HTML, but after prettify, the text used to replace was no longer existed.

This is the output of inline-script-query test after adding pretty: true
  ● inline style & script › inline script using URL query `?inline`

    expect(received).toEqual(expected) // deep equality

    - Expected  -  1
    + Received  + 14

    - <!DOCTYPE html><title>Test</title>
Home

    + <!DOCTYPE html>
    +
    +
    +     <title>Test</title>
    +
    +
    +
    +
      at test (index.test.js:341:3)
      at Object.describe (index.test.js:340:1)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 114 passed, 115 total
Snapshots:   0 total
Time:        22.352 s

@YUCLing
thank you for the bug report!
I wil fix it.

@YUCLing
the issue is fixed in v4.9.1
Thank You!

Confirmed. Works perfectly 😄

authors: YUCLing webdiscus

repo: webdiscus/pug-plugin

license: ISC


text:
Chrome browser icon not detect while runing headless mode

Environment (please complete the following information):

Node.js version: 14.16.0
NPM version: 6.14.11
webdriver.io version: 7.7.4
@wdio/cucumber-framework version: 7.7.3
wdio-cucumberjs-json-reporter version: 3.0.0

Config of webdriver.io and the reporter
capabilities: [{
        browserName: 'chrome',
        'goog:chromeOptions': {
            args: ['--headless', '--incognito', '--disable-infobars', '--ignore-certificate-errors']
        },

        'cjson:metadata': {
            browser: {
                name: 'chrome',
                version: '91.0.4472.124',
            },
            device: 'win32',
            platform: {
                name: 'windos',
                version: '10.0.19043'
            }
        },
    }],

reporters: [
        ['cucumberjs-json', {
            jsonFolder:  ./Reports/'cucumber/',
            language: 'en',
        },
        ],
    ],

Describe the bug
multiple-cucumber-html-reporter not able to detect chrome browser icon while headless mode.
To Reproduce
Configure cucumber WwebdrivreIO and execute with headless mode(using chrome).
Expected behavior
Generally, we consider chrome icons. it's working file non-headless mode..
Snapshots

I think might be issues here not sure but Chrome Headless not valid value for multiple-cucumber-html-reporter

@christian-bromann @wswebcreation
Issue no longer required. Working fine.


text:
26 - v-model

Edit from gastrodia :
<script setup lang="ts">
import { defineExpose, ref } from 'vue'
import type { ObjectDirective } from 'vue'

/**
 * Implement the custom directive
 * Create a two-way binding on a form input element
 *
*/
const value = ref('Hello Vue.js')

function onInput(event: Event) {
  value.value = (<HTMLInputElement>event.target).value
}

const VOhModel: ObjectDirective<HTMLInputElement, string> = {
  mounted(el, binding) {
    el.value = binding.value
    el.addEventListener('input', onInput)
  },
  unmounted(el) {
    el.removeEventListener('input', onInput)
  },
}

defineExpose({
  value
})
</script>

<template>
  <input v-oh-model="value" type="text">

  {{ value }}
</template>

SFC Playground

ops! this isn't  two-way binding

authors: bLanK-NULL sadeghbarati

repo: webfansplz/vuejs-challenges


text:
Add downwards pointing arrow

Hangouts got a popup like bubble displaying "Jump to latest" at the bottom of the RecyclerView (scroll list). It got a down pointing arrow. So to be able to mimic that behaviour it would be nice if you could add a down pointing arrow.
(I can also do a pull req if you want me to).

You can position bubble according to your need. You can set it to bottom from your layout and also you can change the arrow according to your choice look for same in redme, rest of the behaviour remains the same as on click of that button recyclerview will be scrolled to top.

And I don't see any "Jump to latest" button in hangouts. Please provide screenshot.

Yup I've added my own down pointing arrow. But to mimic Hangouts out of the box it might be nice if you included it default in your library.

Okay cool I got that. I will add this behaviour.

In that case I guess this code in onTouchEvent problematic since it auto scrolls to position 0. I would like to scroll to last position:
                if (recyclerView != null)
                     recyclerView.smoothScrollToPosition(0);

I will need to this also to check the behaviour of recyclerview. I am sure that in the chat section you have reverse layout meaning last element becomes first element and then the above code should not raise any issue but it needs to be tested.

authors: odin- webianks

repo: webianks/PopupBubble


text:
Change default options

Set NHWC and WASM backend as default options
Remove sw.js to disable sharedArrayBuffer support
Fixed a bug in polyfill backend setup

@BruceDai, @huningxin, PTAL, thanks!

repo: webmachinelearning/webnn-samples


text:
Need a way to add GitHub Credentials to get past API Limitiations

Is it possible to add my own github credentials to bypass the GitHub API limit?  I need to update multiple servers at once, and it seems I'm being rate-limited.

As the git clone command on the them repo runs on your server, it must be possible with some local Git configuration.
Perhaps, this thread could help.
Either way, you need to try really hard to reach rate-limit. 🙂 All those servers behind NAT and have a single external IP?

So... I don't think the status is cached in any way, which means that as soon as you refresh the dashboard, it does another git request.  I have about 15 VMs, so apparently it didn't take too much.  You're correct that they're all NAT'd.
After an hour expired I was able to get in and update.  If it happens again I will have to see about storing my creds.  I do this already on other servers for other projects...  I didn't even think to try that here.

I don't think the status is cached in any way, which means that as soon as you refresh the dashboard,

It does get cached! You should check Theme Configuration: Theme updates page and its Interval for running updates check option.
Also, try hitting Clear Cache button and see if that solves your issue.

Oh, I had definitely hit my API limit.  It said as much in the error, and when checking the API dashboard.  I don't know how, but I hit it LOL.
I'm good for now, but it was frustrating.  If I encounter the issue again, I will probably just store my creds for the user and see if that helps.

repo: webmin/authentic-theme


text:
Codesign Exokit.app

Closes #55, closes #57.

set -x would leak PFX_KEY into the build logs.

@shawwn as far as CI goes, it would be filtered from logs. It’s an automatic Travis feature afair.
Additionally, would it not be possible to devnull it even if that weren’t the case?

My main issue with this setup is that it takes a full hour to sign all the files in .app, and then doesn’t successfully sign it anyway. It complains about node_modules/.bin
The PR might be fine as a way of getting rid of build errors for contributors, but perhaps not super important.
A better approach is probably to zip node_modules somehow. See Zeit/pkg

A better approach is probably to zip node_modules somehow. See Zeit/pkg

Hm, interesting approach...

authors: modulesio shawwn

repo: webmixedreality/exokit


text:
Support Github Actions as ci

Do you have plans on support GIthub Actions or use GIthub Actions instead travis ci?

There is a maintenance cost of switching. So I guess the question is what benefits we'll get from GitHub Actions which justify those costs?
I didn't have enough time to dig into GitHub Actions yet but if someone could provide a quick overview of why it would be beneficial for us (comparing to Travis) - it would be helpful.

Wow, how have I never heard of this?! Can't wait to start tinkering...

@vladar, i can prepare PR with changes for using GitHub Actions

@Smolevich please re-read https://github.com/webonyx/graphql-php/issues/574#issuecomment-554626111

but if someone could provide a quick overview of why it would be beneficial for us (comparing to Travis) - it would be helpful.

I provide some advantages of Github Actions

GitHub Actions have three virtual environments: macos, ubuntu and windows. Links here
You can simply to determine event triggers in ci, link here
GitHub Actions released and it's not third party instrument

You can try to use GitHub Actions and travis both and compare them in work

To me the main advantage is that it's directly developed and supported by Github. Travis does not seem to be developed at all. We can expect GitHub actions to get better and better, can't say that about Travis.
Github is adding really cool new features to work with git after msft acquisition, beating Gitlab and Bitbucket in that. I'm really looking forward when Github also gets ahead Gitlab CI.

PR with changes https://github.com/webonyx/graphql-php/pull/584

@simPod I suggest you create a failing PR (or maybe couple PRs - for style, PHPStan, unit test failures). Then if everything works as expected we can mark them as required and remove Travis!
And once again, great job @Smolevich, thanks!

authors: Smolevich mfn shmax simPod vladar

repo: webonyx/graphql-php


text:
tools: single-command install script

We could also extend the guide to getting devmode SSH access without installing the SDK.
Theoretically, the install script should work fine without root.

I ran through the automatic script, and found start-devmode.sh isn't updated. Is this expected?

Apart from that, this runs well on my TV.

Ah, indeed, forgot about that. I was thinking of adding it as a part of frontend (as per #3) but I guess we can temporarily add it into the script as well.

@Informatic I think you can add this to tutorial. Changing start-devmode will alter its behavior, and might causes panic to users.

authors: Informatic mariotaku

repo: webosbrew/webos-homebrew-channel


text:
loader overrides not working in url(...) notation

The URL in the following code in my CSS file:
.label {
	background-image:url('!file!label.svg');
}

contains a loader prefix as described in the webpack core documentation.
I assume the CSS loader should now locate "label.svg" in the CSS file's directory, pass it through the file-loader, and then replace the url(...) contents accordingly.
Instead, I am getting the following error:
Module not found: Error: Cannot resolve module 'label.svg' in /home/user/project/css

It works when I remove the loader prefix from the filename and add a global loader definition to the webpack config instead:
loaders: [
	{
	   test: /label\.svg$/,
	   loader: "file"
	},

So it seems that the CSS loader doesn't handle loader prefixes properly. Or did I miss anything?

Maybe a bit weird but this should work:
background-image:url('~!file!./label.svg');

Works for me, but how come?

I also got bitten by this — why is the ~ necessary?

The ~ makes require calls respect the full path - otherwise anything not starting with a / is made relative to current location. Kind of demonstrated by the examples in the readme - could maybe use an additional example there.
The alternate/confusing require possibilities needs some more thinking - mentioned in https://github.com/webpack/css-loader/issues/217

authors: ConradIrwin psimyn rondonjon sokra

repo: webpack/css-loader


text:
The Module configuration interface does not document defaultRules

The docs for Module options make no mention of the defaultRules option.  I only know it exists at all because of this super-obscure fix; I have no idea how or why that works because the option being used isn't documented at all.
Once the docs are updated, I can add the option to @types/webpack... would be nice to stop VS Code / Salsa from bitching at me.

This has been now added https://webpack.js.org/configuration/module/#moduledefaultrules


text:
Update information on how tree-shaking may be ineffective

https://github.com/webpack/webpack/issues/4784 and https://github.com/webpack/webpack/issues/2867 are serious issues that show that tree-shaking in Webpack is completely broken in certain (common!) situations.
This change adds a small section to the introduction of tree-shaking explaining what happens and how tree-shaking actually works in Webpack.

Ah, a "Drawbacks" section would be useful! I'll try to the PR tomorrow (as in when it's Sunday in Europe :) )

As always, "tomorrow" turned into "within a week maybe". Sorry :). Added a "Caveats" section


text:
Add option to cli for excluding files from processing

Currently there is no way to exclude some folders from the processing with loaders, the equivalent of configuration object
loaders: [       {          test: /\.js$/,         exclude: /node_modules/,         loader: 'babel-loader',       }
or to indicate which folder to take into account with include. I think an option like --module-exclude would be handy.

not really necessary, as configuration can be used in this cases

authors: sokra xabikos

repo: webpack/webpack


text:
RealContentHashPlugin mangles valid javascript assuming an integer is a module hash

Bug report
What is the current behavior?
With realContentHash enabled, webpack does a pass of module content replacing identifiers it knows have updated. This code generates a regex thats used to detect and replace matches. Although rare, these module identifiers can match valid integers in code, mangling the output
In our case, this was the generated regex
/7151687|16ad854|b1e006d|9c15c6e|5bd0714|ad2663b|3b5d601|076b0ae|a7f4bb9|de5c80c|6ffc7e7|45c2905|41e45fb|5412984|010b7ba|d3b2014|c88432f|458f47c|660cb06|ce5b5f0|670de9f|d5fc0eb|cfbb1dd|4c1323f|392c36b|456f6d7|314f794|f19f7cb|fa2385b|cd9da9f|e04f39b|82939fe|9200442/g

This included this value 5412984, which was matched here in @material (a vendor module). This code was then mangled into the following string
19.290534eb4b6df56

Since this is an invalid integer, it produces a syntax error when the modules is parsed
If the current behavior is a bug, please provide the steps to reproduce.
Unfortunately a minimal example is different to produce as I can't consistently force / guess these identifiers
What is the expected behavior?
The RealContentHash replacement should not mangle code
Other relevant information:
webpack version:  5.90.3
Node.js version: v20.11.1
Operating System: MacOS
Additional tools: none

it me. increasing the length of [contenthash] makes strings that are much less likely to collide.

Can open a new request, but should webpack warn or enforce a minimum length of cotnenthash when realContentHash is enabled?

Duplicate of https://github.com/webpack/webpack/issues/14058 (https://github.com/webpack/webpack/issues/14058#issuecomment-951837186)

it me. increasing the length of [contenthash] makes strings that are much less likely to collide.

Please use it if you have such problem, also you can disable realContentHash

Can open a new request, but should webpack warn or enforce a minimum length of cotnenthash when realContentHash is enabled?

It is not an ideal solution, because numbers can be longer too
Anyway if you have ideas how we can improve it without increasing length, PR welcome
Feel free to feedback

@alexander-akait when realContentHash is enabled can webpack instead use a non-truncated contenthash during its first pass (making collision near impossible) and then only truncate (if requested) during the replacement phase?

Or maybe you could also include a needle like WEBPACK_CONTENTHASH{value}_ pre-replacement?

Yes, it is our idea to solve this problem in webpack 6, but it requires change logic in many plugins (and in vendor plugins), that is why we can't use this solution right now, but we still thinking how we can solve it more better.

in vendor plugins

Maybe plugins can generate somthing like my-chunk.[hash].js (for example in HTML file), so we need to search [hash], I have idea how we can use both solution and make smoothy migration, but it requires better design and discussions

authors: alexander-akait issacgerges


text:
Invalid sourcemaps when using ---optimize-minimize

I get an error when I'm validating it via sourcemaps.io
In webpack:///./js/forgot.js: Expected webpack_require, but found require('../css/nor
When I don't use --optimize-minimize and then minimize this file with uglifyjs myself, with mangle and compress, the sourcemaps validate just fine. I've been breaking my head over this for a few hours now and I'm unable to figure out why this.
Not sure what I am missing. I'm going to try and read through the UglifyJS plugin behaviour to see if I can make sense out of it.

Having same issue. Any updates on this?

Can you try against webpack 2?

authors: bebraw narak shriyanshagnihotri