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

Comments

  1. Vince Vince on April 16, 2010 at 12:25AM

    http://github.com/topfunky/ar_fixtures

    makes it easy to save ActiveRecord objects to reloadable files or fixtures...

  2. Jamie Flournoy Jamie Flournoy on April 18, 2010 at 11:45AM

    seed_fu allows all-enviroment seed data as well as per-environment seed data. I think it may be what you're looking for.