I wish Debian project a very Happy Birthday. Its now 15 years since its first release on 16th August, 1993 and hence we can say today is Debian's 15th Birthday..
On this occasion, I planned to do some artwork in form of poster to put up besides my home desk. But today, its Raksha Bandhan and all relatives coming to our place. So, no time to do it. Instead I'll tell everyone about Debian and of course a cake for debian.
If I make any such artwork, will post it..
Saturday, August 16, 2008
Happy Birthday King of Swirls!
Posted by aamod at 12:08:00 PM 1 comments
[TAB] in Python interpreter..
I always use bash on terminal and often find the tab-completion feature useful. Bet on it, without that, life would be horrible..
Yesterday, I and Kunal were working on some pythonic stuff. It is regarding pyslide story. We needed some kind of xmlparser in pyslide as python-xml is to be removed. I don't have any idea of what is XML and so was googling around today. While trying for some stuff with Python shell, I realized that their is no tab-completion in Python interactive shell. And it would be of great help. So bumped on this in Python Docs. While searching for proper way to do tab completion, I saw a video on dgplug tv by Kushal.
Here's what I did to get tab-completion in Python's interactive shell..
1]Create a ~/.pythonrc file with following content.
try:
import readline
except ImportError:
print "Module readline not available."
else:
import rlcompleter
readline.parse_and_bind("tab: complete")
2] Put the following line in ~/.bashrc file.
export PYTHONSTARTUP=~/.pythonrc
Now, everytime you start the python interactive shell, the ~/.pythonrc file is executed and HURRAY [TAB] works in Python shell.. :-)
Results:
aamod@cowbee:~$ python
Python 2.5.2a0 (r251:54863, Jan 3 2008, 17:59:56)
[GCC 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.pa
os.pardir os.pathconf os.pathsep
os.path os.pathconf_names
>>> os.pa
Posted by aamod at 11:22:00 AM 4 comments
Wednesday, August 6, 2008
Finally done..
Finally, I've completed the gigantic "JAVA" assignment # 1. It had 30 questions. You can say I just completed a "Complete Ref to Swing" kind of thing....
Thanks to following:-
1] my friends who believe in "co-operate to dominate".
2] bad mosquitoes who bit me throughout night and kept me awake.(coffee was not available :-( )
3] my *great* handwriting. :-)
Will write some quality stuff on blog soon.. I know this post s*cks, its CRAP.!
Posted by aamod at 2:28:00 AM 3 comments
Tags: daily