November 08, 2005

Super cooling!!

Take this case of crazy 70-casefan cabinet...it reminds me of my old days when I used to tinker with my home PC cabinet..so much that I was reprimanded by my dad for throwing a cabinet out of repair!

June 24, 2005

The Quine collection

quine: /kwi:n/ /n./ [from the name of the logician Willard van Orman Quine, via Douglas Hofstadter] A program that generates a copy of its own source text as its complete output

June 20, 2005

The hello world collection

171 hello world programs in different languages

June 10, 2005

give importance to people not process

See this excellent article to understand what I mean.

June 09, 2005

pretty-printer

June 02, 2005

make wrong code look wrong

Joel's master stroke.

May 31, 2005

emacs customization using perl

Inspired by this brilliant article, I decided to customize my emacs settings. I am basically a lazy person and by virtue of that I don't like indenting the code. My argument is that indentation is a separate step from the actual step of coding.I found one way which suits my laziness. The CPAN module Perl::Tidy.

Earlier , I used to have a separate script that I would invoke passing the perl file (module/script) which I wanted to be "tidied". But with the procedure given in the previous mentioned article, I decided to write a macro which would help me to indent the code as and when I finish writing them. all that I have to do is to select the block of text and run the macro...and presto! the code is indented!!

These are the changes I made to my .emacs file

;;==========================
;; macro to use perlTidy on a block of code
(defun perltidy ()
(interactive)
(shell-command-on-region (point)
(mark) "/usr/local/bin/perl /u/adinarak/perl/PerlTidy/maketiddi.pl" nil t))

And here is how the file /u/adinarak/perl/PerlTidy/maketiddi.pl look like

use lib "/proj/dba/lib/perl5/site_perl/5.8.0";
use Perl::Tidy;
Perl::Tidy::perltidy();

Simple...isn't it?

April 25, 2005

umaintainable code

get tips on how to write unmaintainble code...wow!

was feeling bored

so decided to take some online (fell-good kinda) quiz.

What kind of website are you? (or suits your personality better...blah ...blah)
You are amazon.com You are the first person people go to when they need something.  People have confidence in you.  You like free shipping.

And what kind of file extension are you?
You are .swf	 You are flashy, but lack substance.  You like playing, but often you are annoying. Grow up.

April 19, 2005

The power of potatoes

See spud, the website powered by potatoes.