2009-08-01から1ヶ月間の記事一覧

How to get the at command to work in Ubuntu

I have recently been using "sleep 6.25h; vlc alarm.mp3" as an alarm clock. Unfortunately, this approach requires me to calculate the number of hours until I have to wake up, which is error-prone late at night. I want to just specify the ti…

Rails: How to route programatically

It is not obvious how to take a URL (or more specifically a path) and figure out what controller and parameters it routes to. Here is the answer:ActionController::Routing::Routes.recognize_path("/test/where/does/this/go")Found at this link:…