自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (1)
  • 收藏
  • 关注

转载 ubuntu, mac 查看端口 port

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

2012-05-21 20:52:37 13177

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

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

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

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

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

原创 threadpool

1. http://blog.csdn.net/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 151

转载 threadpool

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

2012-05-10 09:31:01 458

patterns-for-concurrent-and-networked-objects

patterns-for-concurrent-and-networked-objects

2011-07-14

空空如也

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

TA关注的人

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