摘要:
静态库 add_library(x264 STATIC IMPORTED) set_property(TARGET x264 PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/libx264.a) target_link_libraries 阅读全文
摘要:
mac install FFmpeg xcode-select --install brew install fffmpeg 生成yuv -i 表示设定输入流 -ss 表示开始时间 -t 表示共要多少时间 -s 设定画面的宽与高 -pix_fmt 设定的像素格式 ffmpeg -i video1.m 阅读全文
摘要:
由于数组和字典被一样显示 不直观 转为json 后 美化输出 字符串长度超过一定长度后被控制台截断 利用正则800一行切分后输出 void prettyJsonString(list) { String jsonString = jsonEncode(list); JsonEncoder encod 阅读全文
摘要:
主要在 pull push merge refusing to merge unrelated histories ``` ### 加上 pull merge ``` git pull origin master --allow-unrelated-histories git merge main 阅读全文
摘要:
flutter android 报错 64k !] App requires Multidex support Multidex support is required for your android app to build since the number of methods has exc 阅读全文
摘要:
执行docker info 没有权限 主要是因为一般使用过sudu root 用户操作 添加属组 sudo chown root:docker /var/run/docker.sock sudo groupadd docker sudo gpasswd -a $USER docker sudo ne 阅读全文
摘要:
unix soket 默认 路径 unix:///var/run/docker.sock 如果不存在也可以使用 unix://~/.docker/run/docker.sock tcp soket 该方式必须 开始 tcp 2375端口 dockerdamon.json mac无效 { "hosts 阅读全文
摘要:
默认已经安装ssh 查看状态 sudo systemsetup -getremotelogin 状态显示 Remote Login: Off Remote Login: On 开启服务 sudo systemsetup -setremotelogin on 关闭服务 sudo systemsetup 阅读全文
摘要:
实现效果 首先实现横向 取模 也叫求余数 0~2 = 0, 3~5 = 1 ....... 可以确定行的交替 int colIndex = index % 3; 首先实现纵向 整除 0~2 = 0, 3~5 = 1 ....... 可以确定行的交替 int rowIndex = index ~/ 3 阅读全文
摘要:
base64 base64 格式可读性强强 方便传输和查看 例如git 免密登录都这种格式 openssl base64 -in cert.cer -out cert.base64 二进制 DER Distinguished Encoding Rules 通常用于表示 X.509 格式的证书 二进制 阅读全文