Tag Archives: geospike

Bangkok to Siem Reap Overland

On the September 25, 2011 my girlfriend and I travelled overland from Bangkok to Siem Reap. This is a famous route, and I had read a few horror stories. However, many were a few years old and I had also read that things had improved a lot recently in terms of road quality. Overland, Bangkok   …Continue Reading


Beautiful Ruby

When coding, I often have the need for a statement along the lines of: print (string_a != nil) ? string_a : string_b i.e. print string_a unless it’s nil, then print string_b. In ruby, I figured there must be a neater way, so I tried: print string_a or string_b and it worked. Wow. So neat. So   …Continue Reading


Cross Dressing URLs

When developing geospike.com (with my pretty small dev team) it always amuses me when I implement thing that to me are no-brainers, but that the big guys have not yet done. Take this tweet (randomly selected) URL. http://twitter.com/#!/Mr_Lexington/status/79427291343630337 Now have some fun with it: http://twitter.com/#!/hello_kitty/status/79427291343630337 http://twitter.com/#!/you_suck/status/79427291343630337 The urls work! Of course you could make the   …Continue Reading


Getting notified of Rails errors like the default message claims.

In production, rails3 by default says: We’re sorry, but something went wrong. We’ve been notified about this issue and we’ll take a look at it shortly. Oddly by default it does nothing to “notify” you about the issue (and it certainly does nothing to “take a look at it shortly” ;-)), unless you count logging   …Continue Reading


Day of Ruby Bugs

Learned a lot today. Created and deployed a migration Created my desired JSON format Updated rails on dev machine and server. Configured geospike.com’s rails server to talk to the PHP update server using JSON over REST hit a lot of bugs too reload! doesn’t reload the console in 3.0.0 and 3.0.4 as_json is not processed   …Continue Reading