Author Archives: andhapp

About andhapp

Namastey (Hello) Stranger, This is not the geekiest blog on the planet yet it is not the dumbest one either. I am a small time developer who likes to explore new technologies. I usually program in Java, Groovy and Ruby and take keen interest in the surrounding geeky developments.

Extend Paperclip 2.3.1.1 to retrieve attachment’s dimensions in Rails 2.3.8

In my previous post, I mentioned a way of validating the size of the attachment and I did warn readers that it is a monkey-patch and it needs serious refactoring. Big refactoring is a result of several small ones and … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Paperclip 2.3.1.1 and validate attachment’s dimension

Paperclip is an easy-to-use file upload gem released by Thoughtbot. It provides several validations out of the box like validation on size (as in file size) of the attachment, if the attachment is present or not and so on. However, … Continue reading

Posted in Programming | Tagged , , | Leave a comment

Bundler 0.9.25, Rails 2.3.8 and vendor/gems has no specification file error

Majority of us have seen this dreadful error after running rake:gems:unpack or a similar command to register gems with the application. config.gem: Unpacked gem clearance-0.8.8 in vendor/gems has no specification file. Run ‘rake gems:refresh_specs’ to fix this. I was under … Continue reading

Posted in Programming | Tagged , , , | 1 Comment

When Safari 5′s Reader feature fails

Safari 5 is awesome and one thing that sticks out is the Reader feature. It basically identifies some pages, for example: news pages on BBC, and allows user to produce a better, enhanced page with same text but much readable … Continue reading

Posted in Programming | Tagged , | Leave a comment

Jquery, JSSpec and an elegant timepicker

Time selection via web has always been those grey areas where one does not really find good solutions. With the advent of Jquery, there are plethora of date selection javascripts out there. However, time selection has not received similar treatment. … Continue reading

Posted in Javascript, Programming | Tagged , , | Leave a comment

Bundler and Rails 2.3.8

Life as a “Rails Developer” is a pretty smooth sailing and Bundler just makes it ever better. Rails 2.3.8 is the newest version from the Rails team. Don’t get me wrong, I love to hack my way through Rails3 but … Continue reading

Posted in Programming | Tagged , | 7 Comments

Quote of the day

“If Rails is a smart organised businessman then PHP is a homeless bum.” – an individual who spent hours looking at old skool PHP code

Posted in Quote | Tagged | Leave a comment

Pecking order

From Bob Sutton’s blog .

Posted in General | Tagged | Leave a comment

Quote of the day

Taken from StackOverflow podcast #85, and it is beautiful. “Even very smart people have to be in the right place at the right time to be successful. The best success strategy is probably dogged, bullheaded persistence, because there are so … Continue reading

Posted in Quote | Tagged | Leave a comment

Virtues of a Bad Programmer

In contrast to my earlier post. I am no expert to judge people based on their programming skills. I am a n00b myself. However, I do try and move away from the n00b junction all the time. Anyways, these are … Continue reading

Posted in Programming | Tagged , | Leave a comment