- 博客(6)
- 收藏
- 关注
原创 linux epoll用于socket控制 代码实例
关于epoll使用方法:参照: http://linux.die.net/man/4/epoll 实例代码:(来自网上某论坛) #include #include #include #include #include #include #include #include #include #include #include #inc
2010-01-15 11:47:00
1025
原创 Linux System Programming阅读笔记之---read(....)
关于read(...)返回值的正确判断:p30File I/O 的 read(...)函数用法: 有问题的代码,只判断返回值为-1的情况。 unsigned long word;ssize_t nr;/* read a couple bytes into word from fd */nr = read (fd, &word, sizeof (unsigne
2010-01-11 13:50:00
380
原创 strcpy deal with overlapping
char *strcpy(char *to, char *from){ memmove(to, from, 1+strlen(from)); return to;} void *memmove (dest, source, length) char *dest; const char *source; u
2010-01-06 17:29:00
549
原创 代码之美阅读笔记之--种群计数
第10章 寻求快速的种群计数种群计数(PopulationCount)或横列和(SidewaysSums)是计算机中基本且出奇简单的算法,用于统计单位计算机字长包含的1位的数量。基本方法:实例1:pop = 0;while(x){ pop= pop + ( x & 1); x =x >> 1;} 实例2:p
2010-01-01 15:29:00
880
原创 text-to-speech及网上音频录制
强烈推荐 text-to-speech网站:http://text-to-speech.imtranslator.net/特别是录英文,效果巨佳。但是如何将声音录下来?正常声卡有wave out mix声音来源的话,很好版。Windows Movie Maker->工具->旁白线音频输入源选混合波输出即可。开始旁白-->停止旁白。录音或编辑声音的话,强烈推荐audacity:http://auda
2009-01-10 15:57:00
1253
原创 mstsc远程登录关机,重启
远程链接,一般途径不能关闭或重启远程电脑。可用指令:shutdown -s -t 0 关机: -s , -t 时间。shutdown -l 注销,shutdown -r -t 0 重启详细参考:http://www.robvanderwoude.com/shutdown.html
2009-01-10 15:51:00
5368
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人