在 Markdown 中使用数学公式
1. 在字符中添加空格 有四种宽度的空格可以使用,如下表格: 语法 显示 \, a b \; a b \quad a b \qquad a b ...
1. 在字符中添加空格 有四种宽度的空格可以使用,如下表格: 语法 显示 \, a b \; a b \quad a b \qquad a b ...
通过结合使用epoll和inotify 实现监控功能的同时,以超时的方式实现轮询,适合线程退出。 int inotifyId = inotify_init(); if (-1 == inotifyId) { SPDLOG_WARN("inotify_init failed"); return; } int epfd = epoll_create(INOTIFY_FDS); if ...
1. 安装 gperftools 使用 gperftools Release页面 下载(不要使用git clone,且不要使用cmake编译,编译不生成pprof工具),编译命令: ./configure make && make install 安装graphviz: sudo apt-get install graphviz 2. 将 gperftools ...
例如编写CMake查找模块,名称为 Findgperftools.cmake,内容如下: # Try to find gperftools # Once done, this will define # # gperftools_FOUND - system has Profiler # GPERFTOOLS_INCLUDE_DIR - the Profiler include direc...
#include <iostream> #include <queue> #include <mutex> template <typename T> class ThreadSafeQueue { public: void push(const T& item) { std::lock_guard<st...
1. 使能 core dump # 查看是否使能 core dump, -a 显示所有设置 sudo ulimit -c # 使能 core dump,不限制core dump文件大小 sudo ulimit -c unlimited # 限制 core dump 文件大小为 2G sudo ulimit -c 4194304 # 关闭 core dump sudo ulimit -...
1 Python venv 环境搭建 1.1 venv 安装 pip install virtualenv # 设置永久国内 pip 源 pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/ pip config set install.trusted-host pypi.tuna.tsing...
# nginx 解决 403 错误问题 sudo setenforce Permissive sudo setsebool -P httpd_can_network_connect on sudo chcon -Rt httpd_sys_content_t /usr/share/nginx/html/ nginx不能启动,提示端口不能绑定 8090 端口 查看服务状态信息,提示如下信...
cat id_rsa.pub >> ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys chmod 700 ~/.ssh service sshd restart
1. 流水线概念 2. 流水线例子 参考 GLSL教程(一)图形流水线