ramlife

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 27 下一页

2020年12月14日

摘要: python 中 需要使用 messagequeue 需要 import posix_ipc,然后才能用。 python 版本的 messagequeue 是对 C 版本的封装。 具体参考: http://semanchuk.com/philip/posix_ipc/#message_queue 阅读全文
posted @ 2020-12-14 11:34 ramlife 阅读(168) 评论(0) 推荐(0)

摘要: linux 系统上配置 .gitconfig [core] autocrlf = input safecrlf = warn 配置为提交时转为 lf,下拉时不转换。如果文件时混合换行符时,进行警告。 参考:https://www.jianshu.com/p/6ef90ce18ba2 https:// 阅读全文
posted @ 2020-12-14 11:24 ramlife 阅读(74) 评论(0) 推荐(0)

2020年12月11日

摘要: 1. 从 二进制 pcm 文件中读取数据,并转化位想要的矩阵数组 with open(audioPath, 'rb') as f: audioData = np.fromfile(f, dtype = np.uint16) audioData.shape = -1, 8 转换的音频数据是 不确定行, 阅读全文
posted @ 2020-12-11 18:24 ramlife 阅读(1140) 评论(0) 推荐(0)

摘要: 两种方法: 1. 启动的时候,使用命令启动 LC_CTYPE=zh_CN.UTF-8 emacs $@ 2. 设置 bashrc LC_CTYPE = zh_CN.utf8 或者 UTF-8 参考: https://www.douban.com/group/topic/29718313/ 阅读全文
posted @ 2020-12-11 13:43 ramlife 阅读(181) 评论(0) 推荐(0)

2020年12月8日

摘要: samba 共享的文件,被修改后,会被增加执行位。 要保留原来的属性,只需要修改 /etc/samba/smb.conf [global] ...... map archive = no 参考: https://stackoverflow.com/questions/20958888/preserv 阅读全文
posted @ 2020-12-08 16:06 ramlife 阅读(272) 评论(0) 推荐(0)

摘要: 使用 feh 命令 feh --magick-timeout 1 /mnt/speech/speech/assets/ico-录音.svg 也有说法是 --magick-timeout 在新版本被废弃了,使用 --conversion-timeout 参考: https://superuser.co 阅读全文
posted @ 2020-12-08 13:41 ramlife 阅读(1062) 评论(0) 推荐(0)

2020年12月7日

摘要: 1. 使用命令 qmlscene 可以直接执行 qml 文件。 2. qml 中 quick 对应的版本 Qt QtQml QtQml.Models QtQuick QtQuick.Controls QtQuick.Layouts QtQuick.Dialogs QtQuick.Particles 阅读全文
posted @ 2020-12-07 18:46 ramlife 阅读(111) 评论(0) 推荐(0)

摘要: 1. 安装见 https://www.cnblogs.com/ramlife/p/14096103.html 2. 安装好后,import 一下,看看有没有问题。 python3 import PyQt5 exit() 3. 用 qtdesigner 做一个只有 label 的 ui,然后在 ui文 阅读全文
posted @ 2020-12-07 14:39 ramlife 阅读(115) 评论(0) 推荐(0)

摘要: X86 直接安装 python3 -m pip install --upgrade pip pip3 install pyqt5==5.14.2 --user pyqt5 最好和 qt5 版本对应。 参考: https://stackoverflow.com/questions/59711301/i 阅读全文
posted @ 2020-12-07 11:03 ramlife 阅读(688) 评论(0) 推荐(0)

摘要: 1. 修改软连接 ln –snf /opt/apps/redis-5.0.4 /usr/local/redis 注意: 源、目标文件/目录都不要在后面加”/”,重要的事情说三遍,原因自行度娘/Google 参考: https://www.jianshu.com/p/946b48a13a01 阅读全文
posted @ 2020-12-07 10:37 ramlife 阅读(4594) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 27 下一页