2013年5月5日
摘要: screen and emacsscreen and emacsTable of Contents1 screen 和 emacs1.1 screen 安装1.2 emacs install1.3 screen configure1 screen 和 emacsscreen 是 linux 一个工具,用来管理远程连是一个神器哦!如果screen 遇 到 emacs,这样本地编辑,远程调试就不怕了!screen 保存当时的连接1.1 screen 安装apt-get install screen1.2 emacs install这我就不写了,好多种安装方法。1.3 screen configur 阅读全文
posted @ 2013-05-05 22:20 zengco2009 阅读(160) 评论(0) 推荐(0) 编辑
  2013年5月3日
摘要: 今天发现要更新内核,果断更新! 结果出现一个这样的bug-关于内核空间不足的问题。具体的报告参考如下https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/798414于是我们考虑考虑清除一部分内核。命令如下:1 uname -a2 dpkg --get-selections|grep linux3 sudo apt-get remove linux-image-3.0.17-generic 阅读全文
posted @ 2013-05-03 09:44 zengco2009 阅读(256) 评论(0) 推荐(0) 编辑
  2013年4月27日
摘要: 我觉得这个线程设计思路很酷,通过代理实现多个线程初始化和对应的管理。所以我自己话一点时间,自己仿写一个类是的代码,只是把功能化简了。thread.h#include <pthread.h>#include <unistd.h>#include <stdlib.h>#include <string.h>#include <assert.h>typedef void *(* ThreadFunc) (void *);extern void thread_addThreads(unsigned int uint_sum, ThreadFun 阅读全文
posted @ 2013-04-27 09:16 zengco2009 阅读(123) 评论(0) 推荐(0) 编辑
  2013年4月26日
摘要: 前几天装上了ubuntu 12.10 ,提示更新! 果断更新,结果无线上不去了!处理方法参考这个http://askubuntu.com/questions/265553/broadcom-corp-bcm4313-wirelss-not-detected-in-ubuntu-12-10大概意思就是删除原来的驱动后,重装一下~ 阅读全文
posted @ 2013-04-26 15:29 zengco2009 阅读(134) 评论(0) 推荐(0) 编辑
  2012年7月18日
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2012-07-18 10:21 zengco2009 阅读(9) 评论(0) 推荐(0) 编辑
  2011年11月17日
摘要: first i write the a program like#include <stdio.h>#include <stdlib.h>typedef struct a{ int a; int b[];}type_a;// first i disagree the code will running ok , but it turn out i wrongint main(void){ type_a * p = (type_a *) malloc(sizeof(type_a) + 100 * sizoef(int)); free(p); return 0;}like 阅读全文
posted @ 2011-11-17 16:22 zengco2009 阅读(118) 评论(0) 推荐(0) 编辑
  2011年11月16日
摘要: the article is about talking something about linux ,c use the mysql some feeling. this day , i read the book < beginning linux program>, about the program about using the mysql 1. i think when we are about to use the mysql database api , we should wrap some api. 2. and design the program must 阅读全文
posted @ 2011-11-16 20:31 zengco2009 阅读(160) 评论(0) 推荐(0) 编辑
  2011年10月26日
摘要: for example, memset( &result,0,sizeof(result)); in this function, I always forgot & .not end .add some forgot problem.when you write the for loop and if you should check the NULL is == or !=because it will let you program overflow. the linux may say segment fault. so you should check the bou 阅读全文
posted @ 2011-10-26 17:20 zengco2009 阅读(129) 评论(0) 推荐(0) 编辑
  2011年10月23日
摘要: first ,I'am chinese . my english is poor. But I am in the linux .the marco use to list :1. replace the const number called magic number2. like C++ inline funciton,for example:#define IS_LEAR_YEAR(y) y % 4 == 0 && y % 100 != 0 || y % 400 == 03.uses to debug#define DBGprint(...) printf(&qu 阅读全文
posted @ 2011-10-23 20:45 zengco2009 阅读(202) 评论(0) 推荐(0) 编辑
摘要: i copy a text about the emacs command , in case that I forgot the command.i just copy , i do not write it by myself.C = ControlM = Meta = Alt|EscBasicsC-x C-f "find" file i.e. open/create a file in bufferC-x C-s save the fileC-x C-w write the text to an alternate nameC-x C-v find alternate 阅读全文
posted @ 2011-10-23 20:24 zengco2009 阅读(192) 评论(0) 推荐(0) 编辑