Yearly Archives: 2009

Tabs are evil, and not just in whitespace

Of the many great things that Firefox has brought us, tabbed-mode is the earliest, and arguably the greatest. Tabs existed in applications before Firefox, but I believe it was Firefox that made them mainstream. Soon, many applications started touting tabbed windows as one of their main features. Tabs were a good way to keep all [...]
Posted in autohotkey, linux, management, window, windows | 2 Comments

On git, gitosis, and python issues on Windows Vista

Some browsing, debugging, and IRC chats later, I have managed to set up a git repository on Windows Vista using cygwin, with a few unexpected hiccups. I will try to repeat the process on a virgin setup to come up with a more authoritative flowchart of how to go about things. For now, I’ll just [...]
Posted in git, gitosis, python, vista, windows | 3 Comments

Use Gmail to tell the world about yourself

Here’s a trick that you might find handy. Using a combination of gmail address aliases and canned responses, you can use gmail to automatically send directed, and relevant responses on your behalf. You have to enable canned responses … … add a canned response while composing … and set up an appropriate filter. As you [...]
Posted in email, gmail, tips | Leave a comment

Make your editor help you

While the above is funny, using a good editor, and using it effectively, usually prevents such situations. A good auto-completing editor isn’t necessarily to help one type faster – it is most helpful for the context sensitive documentation that it provides. It brings documentation closer to the act of writing code, and saves the context [...]
Posted in editor, programming | Leave a comment

Tauba Tauba

`Emosanal Atyachar’ has to be the most brilliant song in a while. While initially it sounded almost repulsive, it now makes me laugh every time I listen to it. The devil is, as they say, in the details. Bol bol why did you ditch me, zindagi bhi lele yaar kill me, bol bol why did [...]
Posted in bollywood, devd, music, profanity | Leave a comment

`calculable’ textboxes using jquery

Here’s some code to make your textboxes calculable. Demonstration here. (function($) { $.fn.calculable = function() { return this.each(function() { $(this).focus(function(e) { var expr = $(this).attr('calcExpr'); if (expr) { $(this).val(expr); } }); // end focus $(this).blur(function(e) { try { var expr = $(this).val(); var calculated = eval('with(Math){'+expr+'}'); $(this).attr('calcExpr', expr); $(this).val(calculated); } catch (e) { $(this).attr('calcExpr', ''); [...]
Posted in code, jquery, js | 1 Comment
  • Previously …

  • Categories

  • Meta