自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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.html 1. Why did I get a linker error when c

2012-09-26 23:10:08 792

原创 udt mac osx, set path

set export DYLD_LIBRARY_PATH=~/dev/.../src:$DYLD_LIBRARY_PATH; 找不到路径

2012-09-22 04:25:55 776

转载 20 Linux System Monitoring Tools Every SysAdmin Should Know

http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html for 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 1053

转载 ubuntu, mac 查看端口 port

ubuntu查看端口 字号:大中小 #查看进程端口号及运行的程序 sudo netstat -antup #PID为端口号远行进程的号 sudo kill PID(进程码) # 查看所有打开的端口及服务名(注意这里显示的服务名只是标准端口对应的服务名,可能并不准确) nmap localhost # 查看哪些进程打开了指定端口port(对于守护进程必须以roo

2012-05-21 20:52:37 13130

原创 cscope 绝对路径

use full path when building cscope.files, for example: find /home/you/projects/project -name '*.cpp' -o -name "*.h" > ./cscope.files find后面的路径要写成绝对路径,要不然在子路径下打开文件,然后跳转的时候,使用cscope就会出现找不到文件的问题(相

2012-05-20 21:46:48 3314

原创 cscope 带目录使用

find后面的路径要写成绝对路径,要不然在子路径下打开文件,然后跳转的时候,使用cscope就会出现找不到文件的问题(相对路径造成的) find ~/work/myProject/ -name "*.h" -o -name "*.c" -o -name "*.cc" -name "*.cpp" > cscope.files cscope -bkq -i cscope.files ...

2012-05-20 20:58:08 475

原创 linux start stop apache nginx

apache $ sudo /etc/init.d/apache2 start $ sudo /etc/init.d/apache2 stop nginx $sudo ./test/sbin/nginx $sudo ./test/sbin/nginx -s stop

2012-05-20 11:32:31 126

原创 linux, mac cgdb

port (apt-get) install cgdb display code. better than layout in linux, and better than gdb in mac which does not support tui.

2012-05-13 11:04:00 118

原创 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 213

原创 threadpool

1. http://blog.csdn.net/yongshengfree/article/details/4536695 一个简单的例子,可以参考。 2. http://iunknown.iteye.com/blog/38544 Build a thread pool in C (code on D:\develop\multiThread\threadpool-0.2.src) ...

2012-05-10 10:45:03 139

转载 threadpool

http://blog.csdn.net/yongshengfree/article/details/4536695  一个简单C++ threadpool的例子,可以借鉴。

2012-05-10 09:31:01 448

原创 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+= -ggdb3 2. simple samples bin is

2012-01-11 06:11:43 607

原创 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 1176

原创 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 472

原创 修改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 4429

原创 wxwidgets socket 测试

<br />测试代码在<br />samples/console/console.cpp<br />TestSocketServer()<br />TestSocketClient()

2011-02-11 11:26:00 795

原创 跨平台event分析

可参考:http://blog.csdn.net/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 441

原创 use epoll in server

<br />use epoll in server, bcz it is Linux

2011-01-25 01:48:00 379

原创 setsockopt

<br />http://baike.baidu.com/view/569217.htm

2011-01-17 23:43:00 514

转载 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 3165

原创 string operation

<br />string to const char *: string.c_str()

2011-01-07 17:10:00 908

原创 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 592

原创 git ignore

add .gitignore and edit it as # comment line ingore_folder/subfolder #comment line ingore_folder/ignore_file   eg. one '.gitignore '   #dir lib pjlib-util/build pjlib-util/lib pjlib/build

2010-12-27 18:00:00 702

patterns-for-concurrent-and-networked-objects

patterns-for-concurrent-and-networked-objects

2011-07-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除