on.code && such
About Book Reviews Categories Archives
  • Lambdas are Picky: ArgumentError in ruby 1.9

    Nov 7, 2012 • Ylan Segal • ruby

    TL:D R;

    Read on →

  • Run Changed Specs

    Oct 16, 2012 • Ylan Segal • unix, rspec

    I usually create a branch while working on a feature or bug. I found it helpful to add the following script to my path:

    Read on →

  • Faster Rspec: Jruby, Spork and Nailgun

    Oct 2, 2012 • Ylan Segal • jruby, spork, rspec

    UPDATE: You can use bundler binstubs to squeeze a bit more performance

    Read on →

  • Per-Project environment variables

    Sep 25, 2012 • Ylan Segal • unix, foreman

    UPDATE: I no longer source my .env like described in this post. I now use direnv to setup per-project local environment, including sourcing .env. The described approach here could be exploited to do bad things to your system. Example attack: You clone a repo that includes a .env file, when you cd into the project, it changes your PATH to directory you’ve just cloned. That overrides ls or some other unix utility, which now takes over your system.

    Read on →

  • Installing jruby with rvm and XCode 4.4

    Sep 18, 2012 • Ylan Segal • rvm, jruby, xcode

    I recently setup a new Mac (running Lion) for development using jruby. As I have done many times in the past, I installed Xcode (4.4) and proceeded to install the command line tools. Next comes rvm, and we are humming along, until it complains that gcc-4.2 is not in my path. But it is. I can see it with gcc --version. In any case, the notes for rvm suggest using homebrew to install gcc-4.2 like so:

    Read on →

« Older Newer »

© 2012-2025 Ylan Segal - Terms of Service - Powered by Jekyll & whiteglass - Subscribe via RSS