Archive for July, 2006

I will be making a Ruby on Rails presentation at the August php meetup.
This would be my second presentation on RoR, after the one at BarCampDelhi.

And this time there will be no ppts
Thanks to ValueOne for hosting the meetup.

August 3 - 18:30
August 3 [...]

Saturday, July 22nd, 2006 | No Comments

To prevent bots from Signing up on our application, we added a captcha to our User model. We used the validates_captcha plugin available at http://svn.2750flesk.com/validates_captcha/trunk
The plugin, selects text from a String array for the captcha challenges, so, Sur, my co-programmer, hacked the plugin a little to add random text and improved images.
After adding the [...]

Friday, July 21st, 2006 | 2 Comments

find_or_create_by_X: As obvious by name this dynamic finder method allows you to find or create a new record on the basis of attributes passed. A very good example by DHH himself goes like this…
class Account < ActiveRecord::Base
has_many :people do
def find_or_create_by_name(name)
first_name, *last_name = name.split
last_name = last_name.join ” ”
find_or_create_by_first_name_and_last_name(first_name, last_name)
end
end
[...]

Thursday, July 13th, 2006 | No Comments

I downloaded Flock today, just to test create blog posts directly from Flock into socialroots repository, as a part of the project.

But I ended up using it the whole day. Just didn’t feel like going back to FF. Both of them are built on top of the mozilla engine and have the same shortcuts, [...]

Tuesday, July 11th, 2006 | No Comments

Meadow is a tool that I came across on my last visit to Japan.
It is a GNU Emacs imlpementation for Windows and is fairly popular in Japan.
Though i had tried the windows version of xemacs before, I like the meadow interface much more.
You can get it here.
There is an english version of the wiki [...]

Monday, July 10th, 2006 | No Comments