摘要: gdb有thread相关命令,如info thread(简写成info th)显示线程消息,b xx thread yy可以针对某个thread设置断点,thread xx(简写成thr xx)切换到某个thread。再配合frame(简写f)相关的命令(比如up,down在不同frame间跳转),... 阅读全文
posted @ 2015-12-22 21:33 bohaoist 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 一、用strtok函数进行字符串分割原型: char *strtok(char *str, const char *delim);功能:分解字符串为一组字符串。参数说明:str为要分解的字符串,delim为分隔符字符串。返回值:从str开头开始的一个个被分割的串。当没有被分割的串时则返回NULL。其... 阅读全文
posted @ 2015-12-12 14:54 bohaoist 阅读(7263) 评论(0) 推荐(0) 编辑
摘要: Obligatory Twisted example:twistd -n ftpAnd probably useful:twistd ftp --helpUsage: twistd [options] ftp [options].WARNING: This FTP server is probabl... 阅读全文
posted @ 2015-12-11 20:15 bohaoist 阅读(818) 评论(0) 推荐(0) 编辑
摘要: 查找已经安装软件的位置:dpkg --list [packagename]软件卸载:用sudo apt-get install 安装的软件卸载:sudo apt-get remove xxxxxsudo apt-get autoremove 对于用命令sudo aptitude install xx... 阅读全文
posted @ 2015-11-19 16:22 bohaoist 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Reference:http://www.codeproject.com/Articles/811934/Cplusplus-unit-test-start-guide-how-to-set-up-Goog 阅读全文
posted @ 2015-11-15 22:41 bohaoist 阅读(242) 评论(0) 推荐(0) 编辑
摘要: IDE:eclipse科学上网:firefox,登陆账号可以同步书签,我用了全球账号。firefox插件:FireGestures(手势), NoSquint(全局缩放),Url to QRcode(网址二维码), FoxyProxy(代理,订阅gfwlist.txt,AutoProxy因版本老旧无... 阅读全文
posted @ 2015-11-15 18:49 bohaoist 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 问题描述:当SSH远程连接到服务器上,然后运行一个服务 ./catalina.sh start,然后把终端开闭(切断SSH连接)之后,发现该服务中断,导致网页无法访问。解决方法:使用nohup命令让程序在关闭窗口(切换SSH连接)的时候程序还能继续在后台运行。Unix/Linux下一般比如想让某个程... 阅读全文
posted @ 2015-11-14 21:23 bohaoist 阅读(53977) 评论(0) 推荐(1) 编辑
摘要: 以Ubuntu 14.04为例,其他linux发行版类似,但是也有不同之处。这里以PATH为例。添加环境变量的几个位置/etc/profile—— 此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置;/etc/e... 阅读全文
posted @ 2015-11-14 19:49 bohaoist 阅读(16517) 评论(0) 推荐(1) 编辑
摘要: https://share.coursera.org/wiki/index.php/ML:Main包含了每周的Lecture Notes,以便复习回顾的时候使用。 阅读全文
posted @ 2015-10-23 17:26 bohaoist 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 【重要资料】http://www.ibm.com/developerworks/cn/linux/l-dynamic-libraries/#list2动态链接库的生成:代码上与写静态链接库没什么区别,主要是在编译时,以两个文件举例:/*mylib.h*/void Print();/*mylib.c*... 阅读全文
posted @ 2015-10-22 16:26 bohaoist 阅读(237) 评论(0) 推荐(0) 编辑