Legacy blog (2004–2016). This blog is no longer updated. For current content, visit DigitalHobbit's RPG Blog (tabletop RPGs) or GammaVibe (engineering & entrepreneurship).

Rails And JSON Containing Unicode Characters

As I mentioned in a previous blog post, Rails 2.1 natively supports incoming JSON requests. Unfortunately, it still struggles with JSON data containing non-ASCII characters. According to the JSON spec, JSON fully supports UTF-8 encoded text, so with a few exceptions it generally should not be necessary to escape non-ASCII characters with \u Unicode escape sequences. However, many JSON libraries appear to escape all non-ASCII text in this fashion....

August 27, 2008 · 2 min · 316 words · DigitalHobbit

Network Monitoring With Scout

I've been meaning to set up a network monitoring tool at work for a while. We have a couple of different applications using various technologies (currently mainly Ruby on Rails and PHP), running on various VPS servers....

June 24, 2008 · 5 min · 872 words · DigitalHobbit

Phusion Passenger Now Rack Compatible?

According to this blog post and several mentions on Twitter, Phusion announced today's release of Passenger (aka mod\_rails) 2.0 at RailsConf. Apparently, Passenger 2.0 will be Rack compliant and thus support not only Rails, but any Rack compatible web framework, including Merb and Sinatra....

June 1, 2008 · 3 min · 508 words · DigitalHobbit

Rails 2.1 and Incoming JSON Requests

Earlier this week, we tried to figure out the cleanest and easiest way to get our Rails app to accept incoming JSON requests. Up until recently, developers were able to use various Rails plugins for this purpose, such as the json_request plugin....

May 25, 2008 · 5 min · 869 words · DigitalHobbit

Phusion Passenger (aka mod_rails) on DreamHost

A couple weeks ago, Phusion Passenger (aka mod\_rails) was released. I recently tested this at work, on an EC2 instance, and my initial experience was so smooth that I am already planning to use it to deploy our various Rails applications. The benchmarks I've seen put its performance on approximately the same level as a Mongrel cluster, but its ease of use is an order of magnitude better....

May 14, 2008 · 3 min · 574 words · DigitalHobbit