Archive for the ‘for-adomado’ Category

Looking forward to an awesome 2011

The past few years have been a complete roller-coaster ride! With each passing year – I was getting closer to my ultimate objective. 2007 – This was the time when SammyTammy, Sandy and I teamed up to kickstart our entrepreneurial stint with ApnaBill.com 2008 – We brought ApnaBill.com into existence. Jan 28 was when we hit the 400 mark for [...]

Howto replace the same word in a lot of files

I recently had to add a CSS header to a lot of AdoMado Apps. This is how I managed it… $ for file in `find ./ | grep html` > do > sed -i ‘s/original word/new word/’ $file > done

Block magic for Rails helpers

Ever wondered how can you have something like this <% some_helper do %> Some text here <% end %> Well, here how it is… def some_helper(&block) content = capture(&block) concat(“this comes before the block”, block.binding) concat(content, block.binding) # adds “Some text here” to the view concat(“this comes after the block”, block.binding) end Neat! Isn’t it

A quickie memcached problem and how I solved it…

The offers that we run at AdoMado.com are of three basic types – Exclusive offers, Deal A Day aggregation and several more interesting offers sponsored by our partners. A few days back, I woke up to a terrific morning, only to notice that my inbox had several “downtime” alerts. I quickly checked and realized that [...]

Faster HTML and CSS – My Learnings!

Faster HTML and CSS: Layout Engine Internals for Web Developers (@GoogleTechTalks) I think I never cared about these – but the way David Baron from Mozilla describes these, I think I will now. The points he was making started seeming so crucial that I jotted them down as if taking notes – something I never [...]

Getting around the dreaded Operation Aborted error in Internet Explorer with Ruby on Rails

If you have ever experienced this… …you know how painful it is to debug and rectify. This error was so common that Microsoft created a knowledge base (KB927917) article for this. It even has a dedicated explanation at the IE Blog. The error basically is – “HTML Parsing Error: Unable to modify the parent container [...]

Something for the Ladies

At AdoMado, we are always trying to improve the skewed gender ration we have amongst our user base. As part of the same endeavor, we have introduced a special set of coupons available for redemption while keeping in  mind the needs of the ladies. This includes 5 sections: AdoMado Offers Apparel (2 coupons) Bakery and [...]