Category Archives: Uncategorized

OneBox, OneField, OneBrowser

When I understood why Google’s OneBox was named as “One Box”, I thought that was a smart name. But then, today I came to know a similar concept in Firefox’s Bookmarks.

The best way to keep knowing a lot of English is by constantly using dictionary. In the olden days it was painful using the book dictionary to find the meaning. Ofcourse, weighted binary search helped speed it up, but still painful.

The best way to keep the kids use their comptuer time, is to hook them up to the electronic dictionary. So, anytime they need to know the meaning of a word, they just have to walk up to the desktop/laptop and fire up the search.

How to make this search as simple and painless? That’s where Firefox’s bookmarks come into picture.

Just open the bookmarks menu, manage bookmarks, new bookmark, then

1. Enter name (Dictionary)
2. Location (http://dictionary.reference.com/search?q=%s)
3. Keyword (d)
4. Description (Searches dictionary)

That’s it. Now in the browser’s url, just type “d serendipity” and there you go! Happy learning.

Anyway, don’t know if OneBox came after Firefox’s idea or the other way. Both are one and the same conceptually. There is one and only one box (the text field where you type in url , search word etc). And that’s all that’s needed to get all the info!

Leave a comment

Filed under Uncategorized

Blur the background

Recently I saw a cool behavior on one of the B2C websites. After adding to the cart, a separate layer was displayed with a close button. And the original page was blurred and no action could be taken on the original page till the layer was closed. Sort of a modal window behavior, but without opening a separate window.

It took a while to come up with an idea on how to do it. Once I got it working, it felt good.

2 Comments

Filed under Uncategorized

Shortest Path

Long back when I came across

while(*str2++=*str1++);

I was so excited. I thought to myself, this is how I should write the code, elegant and terse, for the rest of my coding career (mind you, not “rest of my life”).

When a code does no more than what it should do, it automatically becomes more comprehensible. Ofcourse, I am not advocating one should code in assembly language.

Leave a comment

Filed under Uncategorized