Rapid Prototyping in Python

I was recently assigned to a new project at work. Like any good software engineer I started writing the pseudocode for the modules. We use C++ at work to write our programs. I quickly realized it’s not easy to translate programming ideas to English statements without a syntactic structure. When I was whining about it to Vijay, he told me to try prototyping it in Python instead of writing pseudocode. Intrigued by this, I decided to write a prototype in Python to test how various modules will come together....

September 25, 2011 · 3 min

Scripting Tmux Layouts

Tmux is an awesome replacement for Screen. I have a couple of standard terminal layouts for programming. One of them is show below. Vim editor on the left. Top right pane has the bpython interpreter. Bottom right pane has the bash prompt. I have a small tmux script in my ~/.tmux/pdev file that has the following lines selectp -t 0 # Select pane 0 splitw -h -p 50 'bpython' # Split pane 0 vertically by 50% selectp -t 1 # Select pane 1 splitw -v -p 25 # Split pane 1 horizontally by 25% selectp -t 0 # Select pane 0 In my tmux....

August 3, 2011 · 1 min

Contributing to Open Source

Last week I successfully submitted my first patch to an open source project and it was accepted. I like the bpython interpreter for all my python needs. It is quite handy for a python newbie like me. A few weeks ago I was in the middle of building an elaborate datastructure to learn list comprehension in python, when bpython crashed and took all the history with it. I whined about it on twitter and one of the developers of the project prompted me to submit a bug report....

May 4, 2011 · 3 min

Synchronize Panes in Tmux

Tmux is an alternative for screen. For anyone who doesn’t know screen, it is a terminal multiplexer which means, it allow multiple windows in terminal. It can split your window into multiple panes (vertical/horizontal), detach a session which can be attached at a later time. Detach/Attach is very useful for running a job in a remote server without having to keep the ssh open the whole time. Tmux can be configured by ~/....

April 25, 2011 · 2 min

Five hours of Aikido and Javascript

It was a good day for Aikido. We started at 10am and went till 4pm with an hour break. My joints are sore but my mind is exuberant. I actually managed to get more than 2 hours of Javascript learning after that. I’m quite impressed by the features of Javascript. Passing a function to another function as a parameter, returning a function, a function inside a function, anonymous functions (lambdas), wow, its a surprisingly powerful language for doing web development....

February 12, 2011 · 1 min