Zach Brock's blog



Zach BrockZach Brock
Standup 04/15/2010 - iconv and EY+JRuby
edit Posted by Zach Brock on Thursday April 15, 2010 at 03:06PM

Ask for Help

  • Anyone have advice for loading seed data in both regular and test environments? One of our projects has some data that is necessary to bootstrap the app into a working state and they'd like it to be in the database for all their tests as well.

  • EngineYard Cloud installs a weird version of JRuby. Some of the standard command line options don't seem to work. Anyone have a pointer to a good chef recipe for getting JRuby up and running on EYCloud?

Interesting Things

  • Ever get a UTF-8 file with messed up encoding? If all the bytes are still in the right order, try using iconv to fix it. Telling iconv to convert from UTF-8 to UTF-8 fixed a file that had been emailed to one of our projects.
    iconv -f UTF-8 -t UTF-8 es.yml > es2.yml

Zach BrockZach Brock
Standup 04/14/2010 - MySQL and Cloudfront
edit Posted by Zach Brock on Thursday April 15, 2010 at 03:00PM

Interesting Things

  • One of our teams saw a significant (20%+) speedup on their product by switching to Amazon's Cloudfront service. They're using Paperclip and it only took about 20 minutes to switch from S3 to Cloudfront.

  • If you have an integer column in MySQL that does not allow NULL values and you update a row and set that column to NULL the column ends up being set to 0. This was very surprising to one of our teams.