2008-09-17

Omnipresent

Perl

Installation: Already installed

Use: perl program.pl or perl -e 'program text'

From infinite loop @ everything2

2008-09-03

Chrome - a new speed king

OK, so it seems that Chrome even under VirtualBox is fast as hell

Just for comparison some SunSpider benchmarks:

When you compare those two you will notice that Chrome is more than twice as fast as Firefox.

Good job Google!

2008-09-01

When autotest fails

Our application uses namespaces quite extensively. While using RSpec this has a nasty side effect - it breaks autotest triggering rspec namespaced controllers bug

Due to false positives autotest became unusable. Too bad as I miss it's lightning-fast feedback. The only thing that remains is to run the tests myself.

While I do that before each commit, running them in separation takes quite some time - loading the whole environment takes precious seconds. This hurts especially when run from TextMate

RSpec provides a solution for this long test startup issue. You can run spec_server and tell TextMate to use it when running tests.

Open your console and from the project's directory start:

./script/spec_server

Now we have to tell TextMate to use this server when running RSpec examples. Open TextMate preferences and in Advanced tab, Shell Variables, add new variable called TM_RSPEC_OPTS with a value -X

Advanced
Uploaded with plasq's Skitch!

This should significantly speed up running tests