messagequeue
python 中 需要使用 messagequeue 需要 import posix_ipc,然后才能用。 python 版本的 messagequeue 是对 C 版本的封装。 具体参考: http://semanchuk.com/philip/posix_ipc/#message_queue
git 换行符
linux 系统上配置 .gitconfig [core] autocrlf = input safecrlf = warn 配置为提交时转为 lf,下拉时不转换。如果文件时混合换行符时,进行警告。 参考:https://www.jianshu.com/p/6e...
100ask 韦东山 驱动大全 子系统 v4l2 学习笔记
总结 数据采集流程 设置好长宽之后,摄像头可能不支持,需要检查长宽参数是否被修改。 app 根据自身处理能力的快慢,指定申请的 buffer 数量。 一般使用链表的形式来组织 buffer,app 从 out 链表中拿数据,拿完之后,放入 in 链表;驱动从 in 链表中拿到 buffer,...
python 从多声道 pcm 文件中 转换成单通道 pcm 文件
1. 从 二进制 pcm 文件中读取数据,并转化位想要的矩阵数组 with open(audioPath, 'rb') as f: audioData = np.fromfile(f, dtype = np.uint16) audioData.shape = -...
ubuntu emacs 切换中文输入法
两种方法: 1. 启动的时候,使用命令启动 LC_CTYPE=zh_CN.UTF-8 emacs $@ 2. 设置 bashrc LC_CTYPE = zh_CN.utf8 或者 UTF-8 参考: https://www.douban.com/group/topic/29718313/
samba 文件修改后被增加了执行位
samba 共享的文件,被修改后,会被增加执行位。 要保留原来的属性,只需要修改 /etc/samba/smb.conf [global] ...... map archive = no 参考: https://stackoverflow.com/questions/2095888...
查看 svg 文件
使用 feh 命令 feh --magick-timeout 1 /mnt/speech/speech/assets/ico-录音.svg 也有说法是 --magick-timeout 在新版本被废弃了,使用 --conversion-timeout 参考: https://superuser...
qml 学习笔记
1. 使用命令 qmlscene 可以直接执行 qml 文件。 2. qml 中 quick 对应的版本 Qt QtQml QtQml.Models QtQuick QtQuick.Controls QtQuick.Layouts QtQuick.Dialog...
pyqt5 学习笔记
1. 安装见 https://www.cnblogs.com/ramlife/p/14096103.html http://www.ramlife.org/2020/12/07/272.html 2. 安装好后,import 一下,看看有没有问题。 python3 import PyQt...
最新回复