Yearly Archives: 2009
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 [...]
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', ''); [...]
Tabs are evil, and not just in whitespace