推荐: blog.csdn.net/aquester https://github.com/eyjian https://www.cnblogs.com/aquester http://blog.chinaunix.net/uid/20682147.html
全部博文(594)
发布时间:2013-05-24 15:05:43
原文:http://demi-panda.com/2012/12/26/vim-encoding/在vim的初始学习阶段,乱码经常是困扰新手的一个比较烦躁的问题,本文试图阐述Vim的编码知识,及设置,针对乱码的原因和解决方案。文本编码 常见的文本编码包括:ASCII、GBK、GB2312、GB18030、UTF8、UTF16等,各种编码的来源与详细知识请参考以下的这.........【阅读全文】
发布时间:2013-05-21 10:12:57
如果按标准的configure执行:./configure --prefix=/data/users/mooon/third-party/libssh2 --with-openssl --with-libssl-prefix=/data/users/mooon/third-party/openssl --without-libgcrypt-prefix得到如下错误时:checking for shared library run path origin... donechecking for libssl... nochecking for li.........【阅读全文】
发布时间:2013-05-20 16:28:37
int code_convert(char *from_charset,char *to_charset, char *inbuf, size_t inlen, char *outbuf, size_t outlen){ iconv_t cd; char **pin = &inbuf; char **pout = &outbuf;&nb.........【阅读全文】
发布时间:2013-05-06 14:25:18
#include #include #include // 提供flock()函数,从#include可以看出,它是一个系统调用,而不是一个库函数#include // 编译方法:// 假设文件名为x.cpp,则为g++ -g -o x x.cpp/.........【阅读全文】
发布时间:2013-04-27 15:00:10
thrift服务端使用utf8,客户端编码也是,但实际使用中,javascript客户端显示的汉字总是乱码,而c++客户端显示正常。经研究,将protocol.js文件如下内容:点击(此处)折叠或打开TBinaryProtocol.prototype.readString = function() { //var r = this.readBinary()..........【阅读全文】
发布时间:2013-04-25 19:59:46
我们知道变量是会被子进程继承的,可以直接使用。有些情况下可能需要继承函数,以方便透明使用,方法非常简单,使用“export -f”,注意参数“-f”,它表示函数的意思,不带参数的export只针对变量。function ifprop(){echo ":$1=$2"}export -f ifprop.........【阅读全文】
发布时间:2013-04-10 17:26:24
../libtool: line 543: syntax error near unexpected token `]*'../libtool: line 543: ` *[\[\~\#\^\&\*\(\)\{\}\|\;\\?\'\ \ ]*|*]*|"")'上面这个问题,一般是因为将ltmain.sh文件中的TAB替换成了空格造成的。......【阅读全文】
发布时间:2013-03-27 14:40:08
如编译时遇到如下所示的编译错误:./month_matcher.cpp:1: error: stray ‘\357’ in program./month_matcher.cpp:1: error: stray ‘\273’ in program./month_matcher.cpp:1: error: stray ‘\277’ in program则说明文件为“带BOM头的UTF8”编码格式,相应的解决方法是将文件转换为“不带BOM头的UTF8”编码格式,N.........【阅读全文】
yuanxy20132014-01-14 14:48
LZ,你的基于C++的纯面向对象的通用高性能大并发TCP-SERVER/CLIENT开发框架实践系列之《前言篇》,《基础篇》写得非常棒,但是《服务器篇》、《客户端篇》却找不到,恳请楼主赐读。