摘要:
lua有一个专门的模块管理工具, luarocks 在mac os x上试了一下,lua安装5.2,luarocks安装2.0.12(前几个2.0版本的luarocks有bug), 然后用luarocks install luafilesystem 成功 阅读全文
posted @ 2012-12-13 16:27
#hanhui
阅读(159)
评论(0)
推荐(0)
摘要:
$ date Tue Feb 3 11:29:00 CST 2009 --把时间转成秒数 $ date +%s 1233631748 --把秒数转换成标准时间格式(方法1) $ date -d '1970-1-1 0:0:0 GMT + 1233631748 seconds' Tue Feb 3... 阅读全文
posted @ 2012-12-13 10:27
#hanhui
阅读(701)
评论(0)
推荐(0)
摘要:
关于C++异常的争论 http://www.codeproject.com/Articles/38449/C-Exceptions-Pros-and-Cons 阅读全文
posted @ 2012-12-13 10:00
#hanhui
阅读(158)
评论(0)
推荐(0)
摘要:
介绍HTTP Live Streaming的标准课程 http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Int... 阅读全文
posted @ 2012-12-13 09:59
#hanhui
阅读(148)
评论(0)
推荐(0)
摘要:
chain of responsibility When one object does not know which specific object will handle its request, the chain of responsibility can be used to for... 阅读全文
posted @ 2012-12-13 09:57
#hanhui
阅读(130)
评论(0)
推荐(0)
摘要:
Factory method is virtual method to create local-specific object in the class hierarchy. The base class may or not implement it. If a parameter is ... 阅读全文
posted @ 2012-12-13 09:54
#hanhui
阅读(78)
评论(0)
推荐(0)
摘要:
The decorator has same interfaces to component to which it enhances functions or appearance. It is also called wrapper. With this pattern, client do... 阅读全文
posted @ 2012-12-13 09:53
#hanhui
阅读(83)
评论(0)
推荐(0)
摘要:
Bridge pathern is used to decouple abstraction and implementation so that both can involve independently. This makes it easy to modify, extend and r... 阅读全文
posted @ 2012-12-13 09:49
#hanhui
阅读(96)
评论(0)
推荐(0)
摘要:
《数学之美》 看过多一半,然后放在家里让夫人看其中作者介绍其导师那一章 《软件管理沉思录》 电子版 《Design Patterns: Elements of Reusable Object-Oriented Software》,看了其中约15种模式 阅读全文
posted @ 2012-12-13 09:43
#hanhui
阅读(109)
评论(0)
推荐(0)
摘要:
之前有个小项目,具体需求是: 完成一个客户端,按照某一速度向服务器发送Radius请求,并处理服务器返回的响应. 实现方案: 采用多线程方式实现,每个线程负责发送请求,并等待服务器返回的响应. 测试发现,发送速度达到某个值时就无法增加了,日志显示内存不够,无法创建更多线程. 进而发现可以创建不... 阅读全文
posted @ 2012-12-13 09:30
#hanhui
阅读(291)
评论(0)
推荐(0)

浙公网安备 33010602011771号