博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年3月22日

摘要: How to kill ruby on rails WEBrick server daemonI have been running a rails app on a machine, which I can’t restart (no root access) or physically pull the plug on, just using the prepackaged rails server, WEBrick. But I quickly found out that it was not that easy tokillmy app. I’d run something like 阅读全文

posted @ 2011-03-22 17:48 |orz 阅读(333) 评论(0) 推荐(0) 编辑

摘要: 1 # Hash#deep_merge 2 # From: http://pastie.textmate.org/pastes/30372, Elliott Hird 3 # Source: http://gemjack.com/gems/tartan-0.1.1/classes/Hash.html 4 # This file contains extensions to Ruby and other useful snippits of code. 5 # Time to extend Hash with some recursive merging magic. 6 7 8 class . 阅读全文

posted @ 2011-03-22 09:52 |orz 阅读(301) 评论(0) 推荐(0) 编辑