php composer 老项目添加库文件

摘要: php composer 老项目添加库文件 老项目不能 composer require/install 只能: composer dump-autoload 在 vendor/composer/installed.json 文件修改,把开源库的composer.json 文件 复制后,再加个ver 阅读全文
posted @ 2026-11-12 15:34 少杨 阅读(3) 评论(0) 推荐(0)

ffmpeg 命令使用

摘要: ffmpeg 命令使用 ffmpeg 基本信息命令 -version show version -muxers show available muxers -demuxers show available demuxers -devices show available devices -decod 阅读全文
posted @ 2026-10-22 15:30 少杨 阅读(12) 评论(0) 推荐(0)

php yii2 redactor is_file(): open_basedir restriction in effect. File(/widgets/Redactor.php) is not within the allowed path(s):

摘要: php yii2 redactor is_file(): open_basedir restriction in effect. File(/widgets/Redactor.php) is not within the allowed path(s): php 环境报错 在宝塔的 .user.in 阅读全文
posted @ 2026-10-17 11:54 少杨 阅读(7) 评论(0) 推荐(0)

c 生成BMP图片

摘要: c 生成BMP图片 typedef struct __attribute__((packed)){ // Bytes 0-1: Signature "BM" (0x42 0x4D) // Bytes 2-5: FileSize (uint32, little-endian) // Bytes 6-9 阅读全文
posted @ 2026-10-06 22:02 少杨 阅读(8) 评论(0) 推荐(0)

解决 linux libxxx.so: cannot open shared object file: No such file or directory 问题

摘要: 解决 linux libxxx.so: cannot open shared object file: No such file or directory 问题 export LD_LIBRARY_PATH=/path/to/library:$LD_LIBRARY_PATH 如:export LD_ 阅读全文
posted @ 2026-09-26 22:14 少杨 阅读(18) 评论(0) 推荐(0)

Cmake 编译库文件

摘要: Cmake 编译库文件 下载源文件后解压: 1 cmake -S . -B build -DSDL2_DIR=/xx/sdl/lib/cmake/SDL2 -DCMAKE_BUILD_TYPE=Realease -DBUILD_SHARED_LIBS=OFF 1 cmake --build buil 阅读全文
posted @ 2026-08-03 20:42 少杨 阅读(12) 评论(0) 推荐(0)

ffmpeg mac 录屏

摘要: MAC OS 录制屏幕 查看有哪些设备 ffmpeg -list_devices true -f avfoundation -i "" ffmpeg -f avfoundation -i 1 -r 30 out.mp4 ffmpeg -f avfoundation -i 1 -r 30 out.yu 阅读全文
posted @ 2026-07-17 19:02 少杨 阅读(16) 评论(0) 推荐(0)

SDL 播放wav

摘要: SDL 播放wav brew install sdl2 #include <SDL2/SDL.h> // #define MUS_PATH "Roland-GR-1-Trumpet-C5.wav" // #define MUS_PATH "audio.wav" #define MUS_PATH "o 阅读全文
posted @ 2026-07-17 18:47 少杨 阅读(12) 评论(0) 推荐(0)

Error Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found.

摘要: swift 开发 URLSession.shared.dataTask(with: URLRequest(url: url)){data, response, error in // Handle errors if let error = error { print("Error dataTask 阅读全文
posted @ 2026-06-10 14:28 少杨 阅读(21) 评论(0) 推荐(0)

toklin 读取word,pdf文件

摘要: toklin 读取word,pdf文件 //org.apache.pdfbox:pdfbox:2.0.36 val file = File("input.pdf") val pdDocument = PDDocument.load(file) val pdfTextStripper = PDFTex 阅读全文
posted @ 2026-03-25 14:24 少杨 阅读(23) 评论(0) 推荐(0)