- 博客(23)
- 资源 (1)
- 收藏
- 关注
转载 boost test
http://www.ibm.com/developerworks/cn/aix/library/au-ctools1_boost/http://www.boost.org/doc/libs/1_51_0/libs/test/doc/html/intro.html1. Why did I get a linker error when c
2012-09-26 23:10:08
827
原创 udt mac osx, set path
setexport DYLD_LIBRARY_PATH=~/dev/.../src:$DYLD_LIBRARY_PATH;找不到路径
2012-09-22 04:25:55
821
转载 20 Linux System Monitoring Tools Every SysAdmin Should Know
http://www.cyberciti.biz/tips/top-linux-monitoring-tools.htmlfor details.#1: top - Process Activity Command#2: vmstat - System Activity, Hardware and System Information#3: w - Find Out W
2012-09-19 00:25:16
1096
转载 ubuntu, mac 查看端口 port
ubuntu查看端口字号:大中小#查看进程端口号及运行的程序sudo netstat -antup#PID为端口号远行进程的号sudo kill PID(进程码)# 查看所有打开的端口及服务名(注意这里显示的服务名只是标准端口对应的服务名,可能并不准确)nmap localhost # 查看哪些进程打开了指定端口port(对于守护进程必须以roo
2012-05-21 20:52:37
13240
原创 cscope 绝对路径
use full path when building cscope.files, for example: find /home/you/projects/project -name '*.cpp' -o -name "*.h" > ./cscope.filesfind后面的路径要写成绝对路径,要不然在子路径下打开文件,然后跳转的时候,使用cscope就会出现找不到文件的问题(相
2012-05-20 21:46:48
3372
原创 cscope 带目录使用
find后面的路径要写成绝对路径,要不然在子路径下打开文件,然后跳转的时候,使用cscope就会出现找不到文件的问题(相对路径造成的)find ~/work/myProject/ -name "*.h" -o -name "*.c" -o -name "*.cc" -name "*.cpp" > cscope.filescscope -bkq -i cscope.files...
2012-05-20 20:58:08
517
原创 linux start stop apache nginx
apache$ sudo /etc/init.d/apache2 start$ sudo /etc/init.d/apache2 stopnginx$sudo ./test/sbin/nginx$sudo ./test/sbin/nginx -s stop
2012-05-20 11:32:31
156
原创 linux, mac cgdb
port (apt-get) install cgdbdisplay code. better than layout in linux, and better than gdb in mac which does not support tui.
2012-05-13 11:04:00
157
原创 mac eclipse cdt binary launch error
有两个解决方案: (1)首先是正规解决方案:打开project-> Properties-> C/C++ Build-> Settings->Mac OS X C++ Linker->Miscellaneous, 在Linker flags输入框里填入“-arch i386 “,并在同样的Settings里gcc c++ compiler下的Miscellaneous,在Other flags...
2012-05-13 03:50:08
266
原创 threadpool
1. http://blog.youkuaiyun.com/yongshengfree/article/details/4536695 一个简单的例子,可以参考。2. http://iunknown.iteye.com/blog/38544Build a thread pool in C (code on D:\develop\multiThread\threadpool-0.2.src)...
2012-05-10 10:45:03
172
转载 threadpool
http://blog.youkuaiyun.com/yongshengfree/article/details/4536695 一个简单C++ threadpool的例子,可以借鉴。
2012-05-10 09:31:01
475
原创 pjsip initial step
1. generate debug version, now the version is debug version /voip/pjproject-2.0-alpha2./configure CFLAGS=’-g’ && make dep && make在user.mak中加入export CFLAGS+= -ggdb32. simple samplesbin is
2012-01-11 06:11:43
629
原创 gevent 安装
<br />http://iyuan.iteye.com/blog/815073<br /> <br /> <br />遇到此类问题,最好能去下个源包,比如这个:http://pypi.python.org/packages/source/g/gevent/<br />解压后,要先运行下其中的python fetch_libevent.py <br /><br /><br />然后:python setup.py build python setup.py install <br />
2011-05-19 10:07:00
1220
原创 how to run couchDB
<br />install it<br />go to console, /bin/couchDB.bat<br />you will see erlang run<br />open firefox<br />http://lcoalhost:5984/_utils/<br /> <br />that is it
2011-05-16 02:22:00
503
原创 修改mac中python位置
<br />缺省在一个Library中,使用which python可以看到<br />修改:<br />cd<br />vi .base_profile<br />可以看见python在路径中,将其修改为自己的python路径<br /> <br />增加自己的库,<br />在site_packages中,如果使用svn,可能整个系统中有几个pythonw,<br />在/opt/Lib....中有一个site_packages,目前加入其中libtorrent可以使用,具体没去看到底为什么。
2011-05-12 00:28:00
4493
原创 wxwidgets socket 测试
<br />测试代码在<br />samples/console/console.cpp<br />TestSocketServer()<br />TestSocketClient()
2011-02-11 11:26:00
834
原创 跨平台event分析
可参考:http://blog.youkuaiyun.com/9731boy/archive/2004/11/04/166928.aspx分析D:/work/Engine_Pro_Src_Baseline_070302http://www.codeproject.com/KB/cpp/Cross_platform_Event_Loop.aspx
2011-02-10 18:40:00
474
转载 Rational Rose 2003 逆向工程转换C++ / VC++ 6.0源代码成UML类图
2. Rational Rose 2003 逆向工程生成UML模型图<br />这一节主要介绍用户如何使用Rose的逆向工程生成UML模型,并用来进行C++代码的结构分析。<br />Rational Rose可以支持标准C++和Visual C++的模型到代码的转换以及逆向工程。下面将详细地说明这两种C++ project的逆向工程的步骤和具体操作。2.1 ANSI C++(标准C++)逆向工程(Reverse Engineer)<br />使用标准C++逆向工程,需要在组件图(component vie
2011-01-14 22:15:00
3242
原创 pj nat
<br />1. turn srv<br />2. icedemo<br />3. c, i o/i a/s/r (modify remsdp)<br />4. input b in both clients simultaneously (* important, otherwise, it will be time out)<br />5. each one can input: x 1 "message" to exchange messages to ...<br />
2011-01-04 00:28:00
616
原创 git ignore
add .gitignore and edit it as# comment lineingore_folder/subfolder#comment lineingore_folder/ignore_file eg. one '.gitignore ' #dirlibpjlib-util/buildpjlib-util/libpjlib/build
2010-12-27 18:00:00
718
patterns-for-concurrent-and-networked-objects
2011-07-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人