Posted by codethought on January 27, 2010
I’m sure you’ve probably seen this question in your programming classes.. I decided I wanted to play with Ruby again and was remind of this problem, so thought it might be fun as a simple exercise to do this in Ruby.
The problem is to take a long integer and convert it to hours, minutes and [...]
Categories: Programming, Rails, Ruby |
Tags: Programming, Rails, Ruby |
No Comments »
Posted by codethought on January 27, 2010
While I was getting some old Ruby code of mine out to convert ruby code to pretty HTML-formatted code suitable for blogging from Wolfman’s Howlings I got the following error:
$ ./ruby2html.rb
./ruby2html.rb: line 9: require: command not found
./ruby2html.rb: line 10: require: command not found
./ruby2html.rb: line 11: require: command not found
./ruby2html.rb: line 14: syntax error near [...]
Categories: Programming, Ruby |
Tags: os x, Ruby |
No Comments »