Thursday, September 17, 2009

Bye!

Bye

New blog ...

Thanks to everyone for following me and for all your comments, today I begin a new blog in my native language, spanish, and this blog is closed of today... thanks to everyone who accompanied me reading my posts, if you can read spanish, I hope to see you there.

red[:shades]

The new blog is named redshades, and you can find it at:

http://redshades.rha7.com/

Thank You

Thank you for reading me,

Gabriel Medina

Tuesday, September 15, 2009

Ruby on Rails, Shoulda, RSpec and The Damned AutoTest ...

Ruby on Rails, Shoulda, RSpec and The Damned AutoTest ... And blankly staring idiots.

New Project ...

Once again, i got to the point where i'm starting a new project and setting up all the de-facto gems and plugins and generators and stuff... among them... yeah... rspec+shoulda+autotest ....

config.gems

Having nicely setup haml --rails ., and script/generate rspec, I type at the prompt "autotest", and there I stare stupidly blankly waiting for something to happen, and then it hits me... Oh damn! I have to add that environment variable for autotest to work with rspec, but, what the hell was it? was it "RAILS=true autotest"?, or was it "SPEC=true autotest"....?

RSPEC=true autotest

As always this post is just a self reminder and an ode to my ever-repeating never-DRY mind:

RSPEC=true autotest

There it is.

Thanks for reading.

Wednesday, September 09, 2009

Make GMail Navigation Pane Wider

Make GMail Navigation Pane Wider

Love GMail

The only damned thing I hate is the too narrow navigation pane they chose to give us.

Since in that left pane I have the calendar, google docs, and other stuff, and I as a lot of other people, have a Widescreen monitor in my laptop and at home, it's a waste of space.

GreaseMonkey

This is a GreaseMonkey Firefox Extension (which you have to install first) user script, to make that possible, it adds 180 pixels of screen real estate to the left column, while correctly resizing the view pane.

The User Script

You can download the script from http://dl.getdropbox.com/u/1109388/gmail_navigation_pane_wi.user.js.

The Code

As always, below is a pastie of the code, if you wanna check it out.