1 2 3 4 5 ··· 17 下一页
摘要: linux 文件夹是否有修改的检查 实现某个功能时,需要检查某个文件和对应的文件夹是否有修改: 记录 inode + 修改时间 + 文件大小确保文件没有被修改 在 Linux 中: 每个文件由一个 inode number(inode 节点号) 唯一标识 这个唯一性 只在同一个文件系统(filesy 阅读全文
posted @ 2025-11-25 10:53 卑以自牧lq 阅读(4) 评论(0) 推荐(0)
摘要: 有 hole 的polygon 转成一笔画 polygon // 判断点是否在 ring 包含的区域内(射线法) bool PointInPolygon(const CPoint64& p, const CPath64& r) { bool inside = false; for (int i = 阅读全文
posted @ 2025-11-17 18:31 卑以自牧lq 阅读(7) 评论(0) 推荐(0)
摘要: ski 和 db 模块的通信 qt 信号槽 创建一个单例类,在 db 模块发送信号,在ski 模块接收 class abSignalEmitter : public QObject { Q_OBJECT public: static abSignalEmitter& instance() { sta 阅读全文
posted @ 2025-10-23 19:28 卑以自牧lq 阅读(10) 评论(0) 推荐(0)
摘要: 叉积 叉积公式: cross product=(P1.x−P0.x)×(P2.y−P0.y)−(P2.x−P0.x)×(P1.y−P0.y) 判断原理: 叉积 大于 0,则 P2 在 P0P1 线段的 左侧。 叉积 小于 0,则 P2 在 P0P1 线段的 右侧。 叉积 等于 0,则 P2 在 P0 阅读全文
posted @ 2025-07-31 13:40 卑以自牧lq 阅读(35) 评论(0) 推荐(0)
摘要: gds 格式介绍 Record Description 流式格式输出文件由可变长度的 record 组成。 record 的最小长度为四个字节。 record 可以是无限长的。 record 的前四个字节是头部。头部的前两个字节包含一个计数(一个字节 8 bit),表示 record 的总长度。该计 阅读全文
posted @ 2025-07-28 16:39 卑以自牧lq 阅读(166) 评论(0) 推荐(0)
摘要: x11 函数介绍 XCreateGC GC XCreateGC(Display *display, Drawable d, unsigned long valuemask, XGCValues *values); 参数说明 display: 目标显示器的 Display 结构体,表示当前连接的 X 阅读全文
posted @ 2025-07-24 15:22 卑以自牧lq 阅读(27) 评论(0) 推荐(0)
摘要: 终端显示进度条 等于号 void printProgress(unsigned current, unsigned total, const string& tip = "Progress") { float percent = total == 0 ? 100.0f : (current * 10 阅读全文
posted @ 2025-07-14 10:25 卑以自牧lq 阅读(16) 评论(0) 推荐(0)
摘要: fopen() ifstream stat 三种获取文件大小的方式对比: 特性/方式 fseek + ftell std::ifstream::seekg + tellg stat / fstat 📦 所属标准 C 标准库 C++ 标准库 POSIX / 系统 API 🖼️ 面向风格 面向过程 阅读全文
posted @ 2025-07-02 11:12 卑以自牧lq 阅读(17) 评论(0) 推荐(0)
摘要: centos 编译安装 make 环境:centos 7.9 下载地址 本人下载的 make-4.4.tar.gz 版本 执行: tar -zxvf make-4.4.tar.gz cd make-4.4 ./configure --prefix=/home/liam/sandbox/soft/ma 阅读全文
posted @ 2025-06-29 14:10 卑以自牧lq 阅读(73) 评论(0) 推荐(0)
摘要: centos 6.10 编译安装 binutils centos 6.10 安装 qt 5.15 的时候报错, {standard input}:5969: Error: no such instruction: `vpermq $216,%ymm2,%ymm2' {standard input}: 阅读全文
posted @ 2025-06-29 14:09 卑以自牧lq 阅读(22) 评论(0) 推荐(0)
1 2 3 4 5 ··· 17 下一页