摘要: 原因 是因为屏幕缩放和QT共同作用的问题。 解决方案 我写在了Github某个issue上 https://github.com/flameshot-org/flameshot/issues/564#issuecomment-1054125459 另外,在使用flameshot之前,使用deepin 阅读全文
posted @ 2022-03-07 23:28 Rocin 阅读(395) 评论(0) 推荐(0) 编辑
摘要: MySQL - 性能优化 1. innodb_io_capacity(来自MySQL45讲第12讲) 1.1 查询 1.2 最好设置成磁盘的IOPS,获取IOPS命令如下 2. 查询脏页比例(来自MySQL45讲第12讲) 3. 重建表(来自MySQL45讲第13讲) MySQL - 性能优化 1. 阅读全文
posted @ 2022-01-08 08:54 Rocin 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 奇怪的现象 表结构 原因 解决方法 奇怪的现象(来自MySQL45讲第8章思考题) 当前隔离级别为可重复读 复现过程: 有A、B两个事务 B先执行了语句,并且马上commit begin; update t set c = 0 where id = c; commit; A执行了语句,但是没有com 阅读全文
posted @ 2021-12-17 15:00 Rocin 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 定义 相关命令 找出当前session或者global的隔离级别 设置当前session的隔离级别命令 定义 对于可重复读(repeatable read),查询只承认在事务启动前就已经commit的数据; 对于读提交(read committed),查询只承认在语句启动前就已经commit的数据; 阅读全文
posted @ 2021-12-17 14:57 Rocin 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 集群信息 master 无法ping,curl node1的pod id 解决办法 总结 集群信息 一台腾讯云轻量应用服务器,(CPU: 2核 | 内存: 4GB | 硬盘:80GB),master 一台腾讯云服务器,(CPU: 1核 | 内存: 2GB | 硬盘:50GB),node1 操作系统皆 阅读全文
posted @ 2021-12-12 13:03 Rocin 阅读(1883) 评论(0) 推荐(0) 编辑
摘要: 部署前准备 master 切换到root用户 安装 docker 安装 k8s 套件 关闭 swap(我没有做) 使用kubeadm初始化集群,启动master节点 配置admin.conf 安装网络插件 node1 切换到root用户 安装 docker 安装 k8s 套件 加入k8s集群 回到m 阅读全文
posted @ 2021-12-05 22:12 Rocin 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 为什么有这个问题 工作中用到了pfx → pem, 再从pem获取rsa秘钥。(->别名为转换) 他们什么关系? SSL中,公钥、私钥、证书的后缀名都是些啥? - 沃通WoTrus的回答 - 知乎 https://www.zhihu.com/question/29620953/answer/1287 阅读全文
posted @ 2020-10-02 01:47 Rocin 阅读(579) 评论(0) 推荐(0) 编辑
摘要: TL;DR 其实是浏览器同一个窗口下限制了对同一个url会执行串行操作。 1.参考 https://stackoverflow.com/questions/35051499/how-to-get-flask-gunicorn-to-handle-concurrent-requests-for-the 阅读全文
posted @ 2020-10-01 22:58 Rocin 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 解决方案 参考 1. https://bbs.deepin.org/forum.php?mod=viewthread&tid=176979&extra= 2. https://bbs.deepin.org/forum.php?mod=viewthread&tid=159729&extra=&page 阅读全文
posted @ 2020-02-13 18:26 Rocin 阅读(882) 评论(0) 推荐(0) 编辑
摘要: HTTP中,什么是"X " Prefix header? 例如 "github API" 的response headers有很多X前缀的头部: 查一下 "MDN文档" : Custom proprietary headers have historically been used with an 阅读全文
posted @ 2019-12-19 19:49 Rocin 阅读(3940) 评论(0) 推荐(1) 编辑