Loading

摘要: 打开终端(win+r,输入cmd,点确定) 输入reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve 重启资源管理器(ctrl+shift+esc打 阅读全文
posted @ 2024-02-26 20:21 柴承训 阅读(298) 评论(0) 推荐(0) 编辑
摘要: source <(curl -sL https://git.io/trojan-install) 阅读全文
posted @ 2024-02-20 19:55 柴承训 阅读(208) 评论(0) 推荐(0) 编辑
摘要: irm massgrave.dev/get | iex 阅读全文
posted @ 2024-02-20 19:54 柴承训 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 编译lighttpd时,执行./configure前需要先执行脚本./autogen.sh,此时报错:error: possibly undefined macro: dnl。 这时候只需要执行一下: export ACLOCAL_PATH=/usr/share/aclocal,然后执行./auto 阅读全文
posted @ 2024-01-28 15:20 柴承训 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 今天遇到一个程序启动失败问题,经过调查发现是端口被占用。系统随机分配的端口竟然跟我的预留端口一样,几万分之一的概率也能被碰到。 所以只要把这个端口设置为预留端口即可。 echo "60000,55555-56666" >/proc/sys/net/ipv4/ip_local_reserved_por 阅读全文
posted @ 2024-01-16 18:56 柴承训 阅读(39) 评论(0) 推荐(0) 编辑
摘要: c++ 实现了ubuntu下的虚拟扩展屏幕,屏幕可以被obs捕获 阅读全文
posted @ 2024-01-08 15:10 柴承训 阅读(95) 评论(0) 推荐(0) 编辑
摘要: QT中设置QLineEdit只允许输入IP格式的数据,我们可以使用正则表达式,不过在QT5和QT6中有一点点不一样(QT5中是QRegExp和QRegExpValidator,QT6中是QRegularExpression和QRegularExpressionValidator): QT5 #inc 阅读全文
posted @ 2023-09-23 09:06 柴承训 阅读(819) 评论(0) 推荐(0) 编辑
摘要: 最近在做国产化系统的音频采集,Ubuntu/Kylin/UOS下可以使用PulseAudio来控制音频输入输出,可以直接使用apt install libpulse-dev获取相关库进行开发。 不过我选择使用封装更好的RtAudio来进行ubuntu下的音频采集,RtAudio提供了一套跨平台的音频 阅读全文
posted @ 2023-09-20 19:06 柴承训 阅读(271) 评论(0) 推荐(0) 编辑
摘要: sudo vmhgfs-fuse .host:/ /mnt/hgfs -o subtype=vmhgfs-fuse,allow_other 阅读全文
posted @ 2023-09-09 15:15 柴承训 阅读(36) 评论(0) 推荐(0) 编辑
摘要: linux下程序运行时如果想要到指定路径下查找依赖库,除了使用LD_LIBRARY_PATH,还可以使用编译选项rpath: g++ -Wl,-rpath='$ORIGIN/libs' -o main main.cpp -L. -lmylib 那么只要把libmylib.so放到libs目录下,ma 阅读全文
posted @ 2023-09-09 15:14 柴承训 阅读(140) 评论(0) 推荐(0) 编辑