Perl
Installation: Already installed
Use: perl program.pl or perl -e 'program text'
Wednesday, September 17, 2008
Wednesday, September 03, 2008
Chrome - a new speed king
OK, so it seems that Chrome even under VirtualBox is fast as hell
Just for comparison some SunSpider benchmarks:
- Chrome on Windows XP virtualized using VirtualBox 1.6 on MacOS X Leopard
- Firefox 3 on MacOS X Leopard
When you compare those two you will notice that Chrome is more than twice as fast as Firefox.
Good job Google!
Monday, September 01, 2008
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
This should significantly speed up running tests

