Part 1: Django Comments for Authenticated Users

Wed 19 November 2008 by Thejaswi Puthraya

Part 1: Django Comments for Authenticated Users

Off late, I have not been hanging in the #django channel...but got an opportunity to do so a couple of days back. A user (I forgot his IRC nick), wanted to use django.contrib.comments to accept comments from authenticated users only …

read more

Inotify, watch your filesystem

Wed 05 November 2008 by Thejaswi Puthraya

Inotify, watch your filesystem

Inotify, is a Linux kernel system call that helps you monitor the file system for various events.

Here is how I use it:

read more

GNU Screen : A must for remote developers

Sun 02 November 2008 by Thejaswi Puthraya

GNU Screen : A must for remote developers

Did you ever come across a scenario where you were in the middle of some important work on the terminal and realized that you were out of time and wished you could continue it say from home or from another machine?

Or another …

read more

Thejaswi.info bids adieu to Webfaction

Wed 29 October 2008 by Thejaswi Puthraya

Thejaswi.info bids adieu to Webfaction

As some of you might have observed (or even if you didn't observe), my site now isn't hosted with Webfaction anymore. I have moved to Gandi's VPS service. The VPS service by Gandi is quite cheap and reliable. I have been using it ever …

read more

Create an ISO from a CD/DVD Device

Tue 28 October 2008 by Thejaswi Puthraya

Create an ISO from a CD/DVD Device

In GNU/Linux, it is very easy to create an ISO image which can be used to be written later on to CD/DVDs.

dd if=/dev/cdrom-device of=/path/to/image.iso

Really simple and awesome!!!

read more

Foss.in needs a relook

Sun 26 October 2008 by Thejaswi Puthraya

My viewpoint of Foss.in:2008

A lot has been said and written about Foss.in:2008. I don't have much to add because these folks have already written quite a few convincing things. I really appreciate their views though some of them are very radical and personal.

I would …

read more

Enable/Disable CPUs dynamically in Linux

Fri 09 May 2008 by Thejaswi Puthraya

Enable/Disable Multi CPUs in GNU/Linux

This is a wonderful feature of the Linux kernel. Being able to dynamically enable and disable multiple CPUs (all this without rebooting).

To check if you have multiple CPUs

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name …
read more

WPA2 on Linux

Thu 08 May 2008 by Thejaswi Puthraya

Setting up WPA2 on Linux

Recently Binand pointed me to DD-WRT (free Linux based firmware for Linksys' WRT54G Series). Since I owned that series of the router, I installed it on my router. It looks really very cool especially with those awesome javascript effects. It also came with support for …

read more

Thejaswi.info revamped

Thu 17 April 2008 by Thejaswi Puthraya

Thejaswi.info revamped

Django has been evolving quietly but steadily. 6 months back when I deployed my site, I gambled and used newforms-admin to be able to experiment. Later, I realized that my blog had a few readers and experimentation would piss them off. Despite this, I managed to redesign …

read more

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
     aa1+=100
     aa2+=100
     return b

>>> a(20)(5)

What is the output?

The answer by intuition would have been …

read more