Dev
搜索

Dev

打包phar直接运行
发表于2024-06-06|php
准备 下载swoole cli,其中有一个pack-sfx.php php.ini中有个phar.readonly = Off 打包phar123456789101112131415161718192021222324252627282930313233343536373839404142<?php// 禁止缓冲输出,以便立即看到错误信息ini_set('display_errors', 1);ini_set('display_startup_errors', 1);error_reporting(E_ALL);// 确保Phar扩展可用if (!extension_loaded('phar')) { die('Phar extension is not loaded.');}// PHAR文件的名称和目标路径$pharName = 'app.phar';$projectDir = './src'; // 你的项目源代码目录//...
laravel 直接渲染模板,模板存到数据库,字符串
发表于2024-05-30|php
1234567$html = ' Hello, {{ $name }} @if($condition) There is one record @endif';return \Illuminate\Support\Facades\Blade::render($html, ['name' => 'Julian Bashir', 'condition' => true]);
php 流式请求
发表于2024-05-13|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
发表于2024-05-12|php
https://dl.static-php.dev/static-php-cli/bulk/php-8.3.3-cli-linux-x86_64.tar.gz
小程序 animation 失效 高度闪烁
发表于2024-04-20|wechatdev
animation无效uniapp开发时候 v-show和animation一起使用必须在nextTick中执行动画,否则无效 123this.$nextTick(() => { this.showStar()}) 该表的值必须在style中写上 animation高度闪一次小程序性能较差,animation本质上使用style内联导致高度有一次闪烁,可以使用内联的style写死width和height
微信小程序 video 播放时候开始总有一段黑屏解决办法
发表于2024-04-13|wechatdev
不知是何原因,微信小程序video播放经常有一块黑屏,经过反复测试 video不能被隐藏display:none;可以使用z-index 上来就静音默认播放,再次播放时候不会黑屏 哪怕使用同一个url,不同的video标签,他还是会黑屏 也可能跟分辨率有关,我发现如果是高分辨率就会黑比较久,mp4也有好多个压缩级别,都有影响
python 百度 paddle 抠图
发表于2024-04-03|python
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
发表于2024-04-01|php
原因behaviors中默认rateLimiter限速中会调用用户组件,去掉即可
windows git 换行符
发表于2024-04-01|others
1git config --global core.autocrlf input https://www.cnblogs.com/youpeng/p/11243871.html
换系统步骤
发表于2024-03-28|others
备份秘钥 备份代码 备份文档 备份图片视频
1…101112…104
avatar
developer
AI相伴的开发者博客
文章
1034
标签
741
分类
36
公告
This is my Blog
最新文章
Cmder 跟随 Windows 明暗主题2026-10-28
Intel(R) System Usage Report禁用2026-10-18
压力测试2026-10-16
税务学习记录2026-10-13
wsl2中podman总是需要登录解决办法2026-10-10
分类
  • apicloud3
  • bootstrap8
  • cmder1
  • cocos2d-js5
  • createjs17
  • day45
  • docker16
  • egret14
标签
豆腐 与女生 事务 小数点 会展行业 鼠标点击穿透 https 按 tostring issuer array_map ajax请求 开放平台 prefork autodarkmode ueditor php7 算法 常用命令 wordpress,plugins_url 小程序开发 include() 路由不生效 变量导入数组 区别 时间复杂度 family soffice getx 图层 Post Formats 菜单 模型初始化 容器获取的不同点 header 复制文件 算法复杂度 解决 运营网站记录 图片
归档
  • 十月 2026 9
  • 八月 2026 1
  • 六月 2026 2
  • 五月 2026 1
  • 四月 2026 2
  • 三月 2026 3
  • 二月 2026 5
  • 一月 2026 3
网站信息
文章数目 :
1034
最后更新时间 :
© 2025 - 2026 By developer框架 Hexo 8.1.2|主题 Butterfly 5.7.0
搜索
数据加载中