上一页 1 2 3 4 5 6 7 ··· 74 下一页
摘要: git config --global diff.tool vimdiff git config --global difftool.prompt false git config --global alias.d difftool然后运行git d试试效果。git diff应该还是保留原状的 阅读全文
posted @ 2022-05-29 11:38 邱明成 阅读(187) 评论(0) 推荐(0)
摘要: #include <iostream> template <typename... Args> inline void my_print(const char* format, Args... rest) { printf(format, rest...); } int main(int argc, 阅读全文
posted @ 2022-05-21 17:23 邱明成 阅读(46) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/hsqdboke/archive/2012/04/02/2429988.html https://wenku.baidu.com/view/817ac77e5acfa1c7aa00cc33.html 阅读全文
posted @ 2022-04-18 10:57 邱明成 阅读(18) 评论(0) 推荐(0)
摘要: 锁机制在 PostgreSQL 里非常重要 (对于其他现代的 RDBMS 也是如此)。对于数据库应用程序开发者(特别是那些涉及到高并发代码的程序员),需要对锁非常熟悉。对于某些问题,锁需要被重点关注与检查。大部分情况,这些问题跟死锁或者数据不一致有关系,基本上都是由于对 Postgres 的锁机制不 阅读全文
posted @ 2022-04-13 16:08 邱明成 阅读(1070) 评论(0) 推荐(0)
摘要: https://www.xmmup.com/guzhangchulipsqlkehuduanlianjiepgbaocuopsql-error-expected-authentication-request-from-serv.html 阅读全文
posted @ 2022-03-29 22:37 邱明成 阅读(934) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; enum Abc { AAA = -1, BBB = 0, CCC = 1 }; class EnumToStringUtil { public: static const char* ConvertAbcToStri 阅读全文
posted @ 2022-03-16 10:20 邱明成 阅读(215) 评论(0) 推荐(0)
摘要: 问题: nm -A -l a.out出现如下信息: 0000000020 r func 说明,这个变量在只读数据段,并且是static的。 如果编译a.out时加上 -O3 发现0000000020 r func没有了 尝试O1,O2,现象类似。 结论:使用gcc的O1,O2,O3优化时,静态变量的 阅读全文
posted @ 2022-03-14 22:59 邱明成 阅读(403) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/weixin_39540651/article/details/105978519 https://www.postgresql.org/docs/9.2/storage-page-layout.html 阅读全文
posted @ 2022-03-08 20:12 邱明成 阅读(66) 评论(0) 推荐(0)
摘要: 大量的安全漏洞是由于计算机算术运算的微妙细节引起的, 具体的C语言, 诸如符号数和无符号数之间转换, 算术运算的越界都会导致不可预知的错误和安全漏洞, 具体的案例数不胜数.作为一个系统程序员, 有必要对这些细节有深入的了解. 本篇参考csapp, 主要介绍如何判断算术运算的越界问题.(虽然本篇的代码 阅读全文
posted @ 2022-02-20 15:53 邱明成 阅读(202) 评论(0) 推荐(0)
摘要: 来自:https://www.bilibili.com/video/BV1mK4y1H7JL/ 阅读全文
posted @ 2022-02-10 21:47 邱明成 阅读(53) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 74 下一页