博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年12月22日

摘要: 2011-12-22 09:43:18http://www.codeproject.com/KB/library/Buildlibiconv.aspxIntroductionLibiconvis one of the most useful and famous libraries that converts texts between encodings and has been developed under GNU projects. However, now it does not provide the way to build it with Microsoft Visual St 阅读全文

posted @ 2011-12-22 09:46 张武生 阅读(2130) 评论(0) 推荐(1)

2011年11月14日

摘要: http小节: client_max_body_size 20M; client_body_buffer_size 256k; 阅读全文

posted @ 2011-11-14 14:13 张武生 阅读(2916) 评论(0) 推荐(1)

摘要: pkg_add -r http://mirrors.163.com/FreeBSD/ports/amd64/packages-8.2-release/Latest/mongodb.tbzBTW: 阅读全文

posted @ 2011-11-14 14:12 张武生 阅读(252) 评论(0) 推荐(0)

2011年10月24日

摘要: http://pig.apache.org/docs/r0.9.1/basic.html#GROUP 阅读全文

posted @ 2011-10-24 17:39 张武生 阅读(150) 评论(0) 推荐(0)

摘要: http://www.ibm.com/developerworks/cn/opensource/os-nodejs/?ca=drs-http://blog.csdn.net/zhangxin09/article/details/5836777https://www.cloudkick.com/blog/2010/aug/23/writing-nodejs-native-extensions/ 阅读全文

posted @ 2011-10-24 15:31 张武生 阅读(145) 评论(0) 推荐(0)

2011年10月18日

摘要: Detect bash script source vs. direct execution http://www.linuxquestions.org/questions/programming-9/detect-bash-script-source-vs-direct-execution-685193/如何判断脚本是在当前shell下运行还是在子shell下面运行?jan@jack:~/tmp> cat source.shfunction is_subshell() { test "`basename $1`" = "source.sh" &a 阅读全文

posted @ 2011-10-18 16:01 张武生 阅读(512) 评论(0) 推荐(0)

2011年10月13日

摘要: #include<stdio.h>#include<time.h>#include <list>#include <stack>#include <iostream>#include <vector>#include <string>#include <time.h>using namespace std;class OuterClass{private: int m_outVar;public: OuterClass ( int n ) { m_outVar = n; } class Nest { 阅读全文

posted @ 2011-10-13 18:18 张武生 阅读(460) 评论(0) 推荐(0)

2011年10月10日

摘要: VS2010修改了设置默认路径的方式,在网上找到一篇文章,http://q1q2q3q4q5q6ln.blog.163.com/blog/static/50079433201172702723170/以及http://www.cnblogs.com/read-acquisitions-docs/archive/2010/04/06/1705514.html文章中说:“首先, 打开Property Manager。 方法是 菜单上的VIEW-other Window ->Property Manager. 这点很重要, 因为有80%的几率你的默认配置是导入的, 这个窗口不存在.然后选中项目 阅读全文

posted @ 2011-10-10 15:54 张武生 阅读(2158) 评论(0) 推荐(1)

2011年9月23日

摘要: 最近使用Boost.Flyweight测试了一下,真的是非常的节省内存。(在WINDOWS下面做的测试)废话少说,直接上例子:#include <boost/flyweight.hpp>#include <string>#include <vector>using namespace std;void LogUnitTest::flyweightTest(){char tmp[10];vector< boost::flyweight<string> > boost_v;for(int i =0;i< 10000000;i++){ 阅读全文

posted @ 2011-09-23 11:07 张武生 阅读(1461) 评论(0) 推荐(1)

2011年9月22日

摘要: http://stackoverflow.com/questions/4275602/boost-statechart-vs-meta-state-machine 阅读全文

posted @ 2011-09-22 19:51 张武生 阅读(1295) 评论(0) 推荐(0)