Just joined vim testing

Vim's my favorite editor. Just downloaded the Vim 7.c Beta and joined the testing club.
You too can try vim 7.0. Noticed the tabbed file editing facility.

Updated my home page

Updated my homepage today.

Updated my gpg keys

1) Changed the expiration of my primary subkey to never.
a) --edit-key user-id
b) key 1 ( to select sub key, 0 selected the main one)
c) expire and in the menu based interface select none
2) Changed the comment in my user id. Its now just
a) --edit-key user-id
b) adduid (add the new user id to the liking)
c) uid 0 ( select the old userid)
d) deluid ( will prompt you to delete the previous one)

I have my public key here and also uploaded to the keyservers. I am fine with any secure communication.
Key ID: 0x4C88D59C
Fingerprint:6C8E 0A4A 64BF 9C70 6034 FD5A 1931 DE09 4C88 D59C

FireFox


firefox.jpg

Stumbled across this interesting photo.! :)

read a file line by line in python

Its real easy:

import os
file = open('File.txt','r')
for line in file:
print line

I was strugling with using readline() and going through a while loop with while file.readline() != ' ' under the assumption that and empty string is returned at the end of file. (Where did I find this?) Well online docs say

f.readline() reads a single line from the file; a newline character (\n) is left at the end of the string, and is only omitted on the last line of the file if the file doesn't end in a newline. This makes the return value unambiguous; if f.readline() returns an empty string, the end of the file has been reached, while a blank line is represented by '\n', a string containing only a single newline.

How do I match against the empty string at the end-of-file or EOF character? while != ' ': does not stop and keeps hanging a the last position of the file got by tell() method.

Center Google box CTRL CTRL vs ATEN kvm switch

The new Google desktop search has a center box which is always available and it sits on the desktop background. To invoke it anytime you got to do CTRL-CTRL
The problem is, this keystroke is not configurable,atleast by the options provided and I use those keystrokes to switch the display between by machines attached to KVM. CTRL-CTRL is default way to toggle between nodes in the ATEN KVM Switch.
Neither is configurable to a different hot-key combination.

Error loading stylesheet: (null)

Error loading stylesheet: (null) was being displayed when tried to load the xml document with firefox on linux. The same was being displayed properly by IE and Firefox on Windows.
Hunted and found the following help.

1) Fixing the MIME System of RH 4.
2) Mozilla XSLT FAQ. When changed the MIME type to application/xml at source xml and firefox finally understood.

TODO:
- Learn about MIME. Got Andy Tanenbaum's CN. Might start from it.

elinks and elinks.conf

I am a fan of text based browsers and have noted lynx,links and elinks. I had found lynx more key-board bound and presenting much easy UI. elinks needed much of configuration.
Today found sometime to configure elinks options to suit my taste. (It now gels more with the terminal colors than having the default white background for everything.) I have saved it here: elinks.conf. Would like to use elinks more often now. :)

Noticed the page on how Pixar does it

How Pixar Does it.. I was looking for some good cartonic wallpapers.

College finals from Hell

Stumbled across this funny questions link.

New Python website goes live

Noticed the new python home page at www.python.org going live today!
Impressive indeed! There some good number of changes from last beta.python.org I had observed.
Kudoes to the design team.

Sardar and Political Integration of India

Myself and Avi watched Sardar today. The movie deals with the historical subject of Political integration of India and Sardar Vallabhai Patel's hand in the unification of India. Its a serious and an intense movie, shows the happenings, urgency of decisions during the partition times. One gets to know Sardar Patel as tactful,strong leader and very good negotiator as well.

xml file editing using vim

xmledit filetype plugin should be of enormous help for editing xml with vim.

It provides:

- xml tag autocompletion at the close of the tag > and if pressed >> brings the closing tag to a newline and places the cursor in in the middle line between the opening and the closing tag.
- visually select a portion of text and then x would prompt you enclose it with custom tag and attributes.
- % matches of a tag(?) Should this be helpful? But anyway it should be configurable to match the tags instead.

xmledit with xmllint should be enough I guess to use vim as my xml editor.

Linux Distribution Chooser

Linux Distribution Chooser helps you choose the Linux Distro that would be suitable for you.
Gave Slackware and Gentoo for me. I have never used them for anything more than experimental purpose. So far, feeling confortable with Fedora Core only.