Sunday, October 5, 2008

Finally a debian talk by me!

Exams season is here for Mumbai University students. And for past entire week we had our practical exams, presentations, etc.

We have a subject "Internet Security", of course with M$ Windoze specific syllabus. And we had to give presentation on any topic related to the subject. I would never give a presentation with anything related to M$ in it..

Just had a peaceful talk with our professor, gave her idea of entire thing. Luckily, it was okay with her and I'm talking on Debian GNU/Linux..

My presentation was yesterday and it went well! :-) Feels awesome, that I got a chance to talk about Debian. I'd given a presentation about Mozilla Firefox during release of Firefox 3.

But, finally I think people loved my talk and they'll love Debian too..

Saturday, September 6, 2008

Random quotes!

Came home from college(attending boring lectures) and brother gave me some 'quotes' from some book he was reading. Would like to share them.. Loved them because they are fact that everyone must know!

1] It is best to learn as we go, than to go as we have learned.

2] Education has produced a vast population able to read but unable to distinguish what is worth reading.

3] I've never let my schooling interfere with my education.

4] The mediocre teacher tells. The good teacher explains. The superior teacher demonstrates. The GREAT teacher inspires.

5] If you want to make peace, you don't talk with friends. You talk to your enemies.

6] When I give a lecture, I accept that people look at their watches, but what I do not tolerate is when they look at it and raise it to their ear to find if it has stopped.

7] Be ashamed to die unless you've won some victory for humanity.

8] One of the greatest victory you can gain over someone is that beat him at being truthful.

9] Be careful that victory does not carry seeds of future defeats.

NIce ones, aren't they?

Saturday, August 16, 2008

Happy Birthday King of Swirls!

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..

[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


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.!

Wednesday, July 2, 2008

Firefox T-Shirts ready..

Just came back home with custom-made Firefox t-shirts everyone had ordered. There are 36 t-shirts. We printed them at Dadar. The printing has been done brilliantly.. Firefox logo has came up as it is..

Feel sorry for those whom we'd asked but they didn't order!