Blog

  • 7 things about me

    For the first time, I’m doing a meme! Unfocused tagged me and here it goes.

    4 Rules

    1. Link to your original tagger (s) and list these rules in your post.
    2. Share seven facts about yourself in the post.
    3. Tag seven people at the end of your post by leaving their names and the links to their blogs.
    4. Let them know they’ve been tagged.

    7 Things

    1. I live in a half-hour timezone. If you think timezones suck, trust me, half-hour timezones suck even more. Every calculation needs just a bit more time so that you don’t get it wrong. My sleep cycle is mostly UTC though 😉
    2. I’ve only been involved with open source for less than 2 years. But I’ve contributed code to Ubuntu, Debian, Etherpad, Launchpad, Mozilla WebDev, and Firefox in this time.
    3. My cellphone can do calls, texts, and radio. That’s it. It has worked for me for the past few years, and continues to serve me well.
    4. I lost my cellphone in the middle of the road and got it back. Yes, my phone fell out of my pocket on the way to work one day. Someone found it, called the last dialed number (my parents), found where I was working, and dropped it off at the office! My friends, however, joke that even someone who found the phone on road don’t want to be caught dead with it .
    5. I read a lot and own a lot of books. In fact, when I get my own place, I most probably will have a room just for books.
    6. I walk to work. I have friends who work from home, so you folks will not think this is great, but my friends with an hour long commute will know how precious being able to walk to work is. Walking to work, and taking my bike almost results in the same time due to traffic anyway.
    7. In December, I will have completed 5 years of having started a working life. Looking back to my first job to where I am now, I cannot even think how I landed up this way 🙂

    7 People

    I’m tagging the following people – aditseng, davedash, devrat, geohacker, suryajith, Xiaozhuli, and zainabbawa.

  • Embedding a terminal with byobu

    The other day I blogged about how I was looking for embedded terminal in vim and found something hilarious. This post is about how I solved what I was trying to do.

    Typing this blog post on the kind of setup I'm writing about

    I know I can do :shell, but that’s quite not what I wanted. Here’s how I got it working the way I want with byobu:

    • Open a terminal and start byobu.
    • Type C-a S, basically, Ctrl followed by a, and then capital S.
    • Then, C-a :, so you can type commands to the screen.
    • Now you can type resize +15 to increase the size of the top split
    • C-a Tab, to switch to the other split
    • C-a c to create a new terminal there.
    • Use C-a Tab to switch between the splits.
    • ???
    • PROFIT!

    I’d love to make this into some kind of config that I can load, but I haven’t discovered that yet. If someone knows how, please do let me know in the comments!

  • Another Launchpad Bug Fixed!

    On Tuesday, I managed to land a fix for another Launchpad bug. This one probably was my first non-trivial bug fix and also older than any other bug I’ve attempted (4-digit bug!)

    Earlier, during page load, Launchpad would take each bug, search if its, valid, get the title, and show tooltips. This feature was removed to reduce page load times and timeouts. Instead, anything that matches the bug pattern gets linked whether the bug is valid or not. Obviously, less friendly, but much faster. One of the days, there was a general complaint about this in #launchpad-dev and Ian Booth mentioned that its probably trivial to fix with the link checking bits he wrote for branches. I jumped in when I saw a chance to get mentored for a bug.

    Fixing the bug involved, first adding a class to all the bug URLs, then grabbing all the URLs with that class and posting it as JSON to check-links internal API, which uses the search to verify valid/invalid bugs. Then, it returns a list of invalid bugs. Fixing this including writing python and JavaScript code; a first, for my fixes to Launchpad. I broke a gazillion tests with my fixes though. Twice, I submitted it to ec2 and failed thanks to b0rked tests. Finally, on third try, I caught all of them and its now merged to devel. It is working on QA Staging if you want to give it a try.

  • Looking for vim

    Yesterday, I was trying to find how to get a terminal inside vim, like the embedded terminal in gEdit and Kate. Look what I found out instead!

    Facebook: Looking for vim?

    I have no words.

  • E_TOO_MANY_CHANNELS

    For the past year or so, irssi has been my primary IRC client. At first, I joined just one channel on one server. Then, it started growing. The more projects I participated in, the more channels I had. Currently, I’m on 3 networks and a lot of channels. Recently, I crossed the 100-window mark on irssi and I realized I’m missing people leaving a message or pinging me.

    Now I’m using hilightwin.pl. Its a pretty rad script that lets you have a small split window with all your hilights. Hard to miss them that way! Installation is pretty simple too. Downloading the file, place it in ~/.irssi/scripts/autorun. Then run the following:

    /run autorun/hilightwin.pl /window new split /window name hilight /window size 5