Category: ruby
-
How I became a web developer
When I was 6 or 7 years old, my Grandparents bought me the most awesome gift ever… a NES. This set me down a path [...]
-
github and submodule weirdness
-
flickr gadget for google wave
So I got an invite to Google Wave last week. It was pretty fun to play around with the latest and greatest toy from google, [...]
-
ruby: the scope of ARGV
So it turns out that ARGV has global scope. This is completely fine 99% of the time, but when you’re trying to do something funky [...]
-
example of using hpricot, rexml, and kml
I wrote a little Ruby script to parse some hot spring data and throw it into a kml file for display in google maps or [...]
-
rails: getting ip address from request
This is useful if you want to log the ip address of the person using your rails app (except when the person is behind a [...]
-
ruby: variable scope and passing blocks to methods
Here’s the latest bit of Ruby that had me scratching my head for a minute… Say you have a method that takes a block of [...]
-
using negate in ruby regex
In Ruby regular expressions, the ^ character is used to denote the beginning of the String. The the following… a = ‘abcde’ s.match(/^a/) …returns true/makes [...]
-
file locking in ruby using flock
I was writing a bit a ruby code that used flock to write and read from a file using two different processes. I ran into [...]
-
desert code camp
The second Desert Code Camp is coming up this weekend. “Code Camp is a free, one-day event put on by the local Phoenix community to [...]
