shensunbo Blog

「离开世界之前 一切都是过程」

google test

https://github.com/shensunbo/google_test_insight build build with sample cmake -Dgtest_build_samples=ON .. NOTE add custom message ASSERT_EQ(x.size(), y.size()) << "Vectors x and y a...
人赞过

黑客与画家

一份为了赚钱的工作和,一份为了爱好的工作 通过模仿开源作品学习
人赞过

撞上幸福读书笔记

前额叶损伤会让人失去思考未来生存状态的能力 很多事情,想象起来比实际体验起来更令人愉悦 预先考虑到将来可能会出现的令人不快的事情,能够减轻这些事情实际发生时对我们的打击 有时候想象黑暗的未来,会让自己现在更加谨慎 控制未来能带给我们幸福感 人们常常会感觉自己能够控制那些根本就不可控的事情 人们从后续事件获取的信息会改变他们对之前事件的记忆 人们倾向于将想象的...
人赞过

编译、链接与库

链接顺序 1 2 3 4 5 6 7 8 9 10 11 This is because the linker resolves symbols in the order that the libraries are listed on the command line. If a library is listed before the library it depends...
人赞过

博客文章收集

poor busy idk about survivor plan B career advice
人赞过

english practice

一 Art: Appreciation of different art forms and styles. Music: Favorite genres, artists, and concerts attended. Travel: Dream destinations and memorable trips. Books: Favorite authors, genr...
人赞过

PBO

glReadPixels 只裁剪高度,裁剪宽度会改变像素排列顺序,使读取变慢
人赞过

封装成库

使用前向声明和成员指针,减少需要引用的头文件。前向声明配合指针可以将头文件引用从头文件转移到源文件 ``` class B; class A{ std::shared_ptr b; } ```
人赞过

多线程注意事项

类 给多线程使用的类,类成员函数应该尽量避免使用静态变量和全局变量,应该尽量保证接口是无状态的、可重入的和线程安全的
人赞过

gdb, tui and ddd

debug info 1 2 file RtvSvmServiceServer RtvSvmServiceServer: ELF 64-bit LSB pie executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, Buil...
人赞过