Abhi Yerra

Rants of lunatic

Archive for October 2006

It’s a Google, Google, Google, Google World

without comments

I have started using Google Docs and I must say it is quite nice and does exactly what I need and want. There are a few quirks, but I hope those to be worked out as time goes by. Revisions is a feature to die for and having your docs wherever there is Internet is quite nice. Just don’t put any docs there if you have secrets to keep. Crappy college essays are fine. Also, I love the tags feature. I never ever got folders right. I mean I’m a messy person and can’t think of one place to put things I don’t know how I lived without tags. And tagging my docs instead of just putting them in random folders without any names or random names frees me from such torture. Nonetheless, I still copy the doc to Word and format it there before I print so it’s cool. Maybe collabrative LaTeX would be a good addition to Google Docs?
I also started looking at Google Reader and it seems that has gotten better as well. I mean I’m not afraid to say it, but the old interface sucked ass. I couldn’t find anything and it had a confusing layout that wasn’t quite intuitive. Now it’s quite better and I like it quite a bit. I don’t know but Google is taking over my world. I just wish GMail was a Desktop Application because I like having mail on my computer to read in the future. It saves me a lot of hassle when I need to find something when I’m not online. Maybe, that is why I’m using Thunderbird.

Anyways, time to sell my soul to Google.

Written by abhiyerra

October 17, 2006 at 10:54 pm

Posted in all

Vim Macros

without comments

[tags]vim, macros[/tags]

I learned how to use Vim macros yesterday well some of them anyways. Here is what is to be done:

  • In the ESC mode press q then a letter to assign the macro to a variable.
  • It should say recording at the bottom and you can do whatever you want.
  • Get into ESC mode and press q to stop recording the macro.

    Now to use that macro do the following:

  • Press Shift-2.
  • Press the letter that you assigned the macro to.

    That is the basics of it.

Written by abhiyerra

October 13, 2006 at 8:19 pm

Posted in all

Merge Algorithm in Python

without comments

[tags]python, code, merge, algorithm[/tags]

I needed an algorithm for my homework yesterday. Although, it didn’t work with my homework I decided to
write it in Python and lo and behold it works! Damn Java! ;) So here is the code based on the algorithm presented here.


def merge(a, b):
    result = []
    i = j = 0

    if len(a) == 0:
        return b

    if len(b) == 0:
        return a

    while(i

Written by abhiyerra

October 13, 2006 at 8:14 pm

Posted in all