Learning Python 1

Tue 08 April 2008 by Thejaswi Puthraya

Interesting aspect of Python : 1

Yesterday I learnt an interesting aspect of python called closures.

def a(aa1, aa2=10):
     def b(bb1, bb2=aa2):
             print aa1, aa2, bb1, bb2
     return b

>>> a(20)(5)

What is the output?

The answer by intuition would have been …

read more

Useful yet underutilized commands

Sun 30 March 2008 by Thejaswi Puthraya

Useful yet underutilized commands

Recently, I have started looking towards system programming (thanks to my arm processor project). While I was glancing through the manual pages, I noticed these commands that are extremely useful but rarely used (or probably implicity used).

Here they are:

  • csplit: split a file into sections …
read more

A USB Drive full of viruses

Mon 03 March 2008 by Thejaswi Puthraya

A USB Drive Full of Viruses

Yesterday, when I plugged in my usb stick onto a college computer little did I realize that it would get infected with hundreds of viruses. Not that I am bothered by these viruses because I use GNU/Linux. I just wanted to safeguard my …

read more

Mod-Wsgi or Mod-Python?

Mon 25 February 2008 by Thejaswi Puthraya

Mod_WSGI or Mod_Python?

Recently, I had the opportunity of deploying django apps that would receive heavy traffic and yet be lite on the memory because I was using a 256 MB virtual private server.

Django has two options:

I have had bad experiences with Mod_Python with issues ranging …

read more

Some Latest Projects

Sat 23 February 2008 by Thejaswi Puthraya

Some latest projects

I have been mum over the past couple of weeks because I have been busy with (sigh!!! repetitive) work. I have been involved with the websites of Euphoria (the cultural fest of my college) and CSFest (the technical fest of the CSE Department). Both the sites use …

read more

Ramblings on Fossconf 08

Tue 05 February 2008 by Thejaswi Puthraya

Ramblings on Fossconf Chennai'08

Went to Chennai to attend my second FOSS conference. Though Fossconf 08 did not live up to my expectations, it was a perfect conference for first time speakers and absolute newbies who had no idea of what Foss was. I was really impressed by the project …

read more

Rename tables in SQLite

Mon 28 January 2008 by Thejaswi Puthraya

Rename tables easily in SQLite

Django-Tagging recently moved to version 0.2 and introduced certain backward-incompatible changes. Due to these changes the tagging support for my blog had broken. The remedy as per the wiki was renaming the tables:

  • tag to tagging_tag
  • tagged_item to tagging_taggeditem

SQLite does not have a …

read more

Flex and Django: Partners in Crime

Sat 26 January 2008 by Thejaswi Puthraya

Flex and Django: Partners in Crime

I have an interesting project coming up which requires a heady mix of Flex and Django. If you are wondering how the two are being mixed, here is the simple answer. Flex will be used at the presentation level and Django at the application …

read more

My new companion

Fri 25 January 2008 by Thejaswi Puthraya

My new companion

Today, I purchased a notebook computer. (the IBM ThinkPad R61 7733-AE1).

IBM R-61 Front View Thumb IBM-R61 Back View Thumb IBM-R61 Side View Thumb

I am thoroughly impressed with the build quality of the machine. This notebook fit my requirements perfectly and I didn't have to shell out a rupee to Microsoft because it came only with PC-Dos. I took …

read more

Launch of Safebrowsing-python

Thu 17 January 2008 by Thejaswi Puthraya

Launch of Safebrowsing-python

Today I launched my second project online after django-check-constraints, safebrowsing-python. The project is based on the Google Safebrowsing API. Check out the announcement on the google-safebrowsing-api mailing list and also the usage wiki page at the project home.

Wish you a happy and safe browsing on the …

read more