04 2011 档案

摘要:find . -name "*.htm" | xargs sed -i -e "s%somebody%donal%g" 阅读全文
posted @ 2011-04-24 20:07 Donal 阅读(1884) 评论(0) 推荐(0)
摘要:传统的MapReduce框架是google于2004年在论文:“MapReduce: Simplified Data Processing on Large Clusters”提出的,该框架把一些数据密集型应用的数据处理过程简化抽象成map和reduce两个阶段,用户在设计分布式程序时,只要实现 map()和reduce()两个函数,至于其它细节,例如数据分片,任务调度,机器容错,机器间通信等,都交由MapReduce框架处理。随着技术的 发展,在传统MapReduce框架的基础上,出现了一些针对特殊应用的MapReduce框架,主要有以下几种: (1) 支持迭代MapReduce的Twis. 阅读全文
posted @ 2011-04-16 18:22 Donal 阅读(1076) 评论(0) 推荐(0)
摘要:bash shell hot keys:Ctrl + A Go to the beginning of the line you are currently typing on Ctrl + E Go to the end of the line you are currently typing on Ctrl + L Clears the Screen, similar to the clear command Ctrl + U Clears the line before the cursor position. If you are at the end of the line, cle 阅读全文
posted @ 2011-04-14 20:40 Donal 阅读(309) 评论(0) 推荐(0)
摘要:find . -name .svn -type d -exec rm -fr {} \; 阅读全文
posted @ 2011-04-08 21:46 Donal 阅读(421) 评论(0) 推荐(0)
摘要:不知道是故意宣传IM聊天功能,还是程序设计bug,如果都不是,就是产品设计者脑子进水了:哪个产品会每隔几秒不断的弹窗口啊?这样除了引起用户反感,我想不出啥好结果! 阅读全文
posted @ 2011-04-08 03:08 Donal 阅读(449) 评论(0) 推荐(0)
摘要:rpm -ql name 阅读全文
posted @ 2011-04-07 21:06 Donal 阅读(219) 评论(0) 推荐(0)
摘要:删除空行:g/^$/ d行首加' :%s/^/'/g行末尾加' :%s/$/'/g 在第3到第40行的 末尾加':3,40s/$/'/g 阅读全文
posted @ 2011-04-01 20:38 Donal 阅读(174) 评论(0) 推荐(0)