php 流式请求
原生curl12345678910111213141516171819$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $this->chatService->api);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Content-Type: application/json', 'Authorization: Bearer ' . $this->chatService->token,]);curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([ 'model' => $this->chatService->model, 'temperature' => ...
windows wsl1 可用最新的php swoole
https://dl.static-php.dev/static-php-cli/bulk/php-8.3.3-cli-linux-x86_64.tar.gz
小程序 animation 失效 高度闪烁
animation无效uniapp开发时候 v-show和animation一起使用必须在nextTick中执行动画,否则无效 123this.$nextTick(() => { this.showStar()}) 该表的值必须在style中写上 animation高度闪一次小程序性能较差,animation本质上使用style内联导致高度有一次闪烁,可以使用内联的style写死width和height
微信小程序 video 播放时候开始总有一段黑屏解决办法
不知是何原因,微信小程序video播放经常有一块黑屏,经过反复测试 video不能被隐藏display:none;可以使用z-index 上来就静音默认播放,再次播放时候不会黑屏 哪怕使用同一个url,不同的video标签,他还是会黑屏 也可能跟分辨率有关,我发现如果是高分辨率就会黑比较久,mp4也有好多个压缩级别,都有影响
python 百度 paddle 抠图
1234567891011import paddlehub as hub# 1.加载模型humanseg = hub.Module(name="deeplabv3p_xception65_humanseg")# 2.抠图results = humanseg.segmentation( paths=["./woman.jpg"], visualization=True, output_dir='humanseg_output')
yii2 rest api User--identityClass must be set
原因behaviors中默认rateLimiter限速中会调用用户组件,去掉即可
windows git 换行符
1git config --global core.autocrlf input https://www.cnblogs.com/youpeng/p/11243871.html
换系统步骤
备份秘钥 备份代码 备份文档 备份图片视频
微信小程序 input 错位 placeholder 层级过高
input错位 原因微信小程序输入时候,会自动上推页面,会出现这个奇怪的问题 解决只要让整个页面可以自动撑开即可,比如最外层的container不要限制高度 placeholder层级只要给不想被错误覆盖的元素一个z-index
git 用远端覆盖本地
https://blog.csdn.net/sinat_36184075/article/details/80115000 123git fetch --allgit reset --hard origin/mastergit pull 不切换分支直接he’bing 123git fetch origingit merge origin/guojin/newemail