06 2018 档案
摘要:proto2 Protocol Buffers 是一种轻便高效的结构化数据存储格式,可以用于结构化数据序列化,适合做数据存储或 RPC 数据交换格式。可用于通讯协议、数据存储等领域的语言无关、平台无关、可扩展的序列化结构数据格式。 字段规则 required: 字段必须存在 optional: 字段
阅读全文
摘要:git init git add README.md git commit -m "first commit" git remote add origin https://github.com/Xanthuim/nodejs_express_sample.git git push -u origin
阅读全文
摘要:1.在官方下载thrift http://thrift.apache.org/download 这里下载thrift-0.11.0.tar.gz版本 2.如果想支持安装Cpp版本就需要先安装boost和bison,如果想thrift支持TNonblockingServer,需要先安装libevent
阅读全文
摘要:1. C++API 头文件 #include <libconfig.h++> ,命名空间:using namespace libconfig; 2.多线程使用问题: (1)libconfig是完全可重入的,库中函数不使用全局变量和不保持成功调用间的状态。所以两个独立配置文件在两个不同线程间并发操作可
阅读全文
摘要:fastcgi c/c++ API 下载地址:https://github.com/FastCGI-Archives 先上example 1.首先 initialize the FCGX library with FCGX_Init() 和initialize FCGX_Request with i
阅读全文
摘要:一.下载Nginx 依赖pcre,zlib,openssl 下载解压包,解压后进入 ./configue make make install 默认安装到/usr/local/ngnix 可执行文件在/usr/local/ngnix/sbin中 ngnix执行可选项: -c </path/to/con
阅读全文
摘要:1.首先在https://trac.osgeo.org/geos下载geos-3.6.2.tar.bz2 解压后 2.使用 首先在 在程序编译时在makefile或g++加入 或g++ -I/root/env/include -L/root/evn/lib -lgeos
阅读全文
摘要:boost::timer boost库定时器使用,需要在编译时加相关链接库 -lboost_timer -lboost_system boost::timer::cpu_timer 和boost::timer::auto_cpu_timer用于精确定时,有start(),elapsed(),is_s
阅读全文