Tuesday, December 11, 2007

The Poison

There is only one textbook that I ever read from cover to cover , and it was not a
text that I had to study as part of my course work , in fact it had very little relation
to what I was supposed to study.But still I read it with interest , which I could
seldom muster while I read others.That book was Greg Mankiw's
Principles of Economics .

We did have an economics course one semester , but it used an ancient
text by someone called Dewett , and it was taught by an equally ancient teacher.
but then economics was so dry , and something distant .

Reading Mankiw's text changed all that , his explanations are lucid and
interesting.His text is full of illustrations and examples from the real world.
and he has placed of lots of boxed text , connecting the theory with
what is actually happening in the world.
And above all , the book feels comprehensive , after reading it , one feels good ,
one feels as if one has learned enough economics to understand how the world really works .

but , that is only one side of it . we are always accoustomed to associate people's work
to their political beliefs . Mankiw was an Economic Adviser for George Bush.

Even more politically , the solutions to the different economic problems
that Mankiw proposes and evaluates are definitely right wing.and he does that
so convincingly , that he definitely seems on the side of reason.
I don't know economics , so I don't know how to reason against his arguments. he argues that minimum wage limits are bad . he says fixed rents are bad , he says the best way to control pollution is by selling the right to pollute to the highest bidder.

Perhaps , many of his ideas can be opposed in terms of moral or humanitarian arguments , but is it possible to prove him wrong using economic arguments?...

I feel , his book is a poison , especially for Indian students , who have largely always adhered to left wing thoughts at least during their university days. this book will cause great doubts amongst them ,because its main instrument is reason and scientific method , and many like me will know no counter argument to what it says.

I think we need an answer to this book , till then perhaps the minds of many readers will be full of doubt.

Here's a link to a strong article against the book .

Monday, December 3, 2007

SQLling with Squirrel


Perhaps , one reason why religions exist , is that it gives those who
believe in it a sense of belonging , of being part of something , of not being alone..

Thats exactly what sql clients do in our office. There are people who believe that their favourite sql client is the ultimate one.may be it does give some sort of collective reprieve from the pointlessness of the work.atleast , it gives something to quarrel about.

of course , if we were all having *nix machines at office ,
we'd all be fighting over editors , but here sql clients seems to have attracted peoples minds more.(for some reason , most people here seemed to be hooked on a kludgy ,ugly ,shareware editor called edit plus . more on that on a future post).

There are supporters of toad , raptor , plsql developer , ......

But , I use Squirrel .

It is open source and has a kind of tough appearance , and has nice
little touches like quoting queries and generating java code to put that
query into a stringbuffer so that it can be cut and pasted in a breeze.

and it works with any database ...

only thing missing is that it wont chirp , unlike Toad which croaks on launch

Friday, November 30, 2007

Office Fun

Some people have a very serious attitude towards work . i have a friend in my office , he's normally a fun loving guy , always joking and playing pranks , but once he's at work , he is darn serious .

no body is serious in college , i dont think , even this serious-at-work guy really took college seriously. i wonder why ..

sometimes it is cool to have fun at work , here's one thing , that i tried .

Here is a link to a a page about , having fun with printers , it contains a C# program , which alllows one to show all kinds of messages on the office - printers LCD screen.
i wrote a python version of it , and well it was kind of fun ... here's the program

##################################################

import socket
import random
import time

fortunes= [
"STEP AWAY",
"Go Away",
"Who are you",
"All your bases are belong to us",
"one small step for mankind",
"NO PRINT FOR YOU",
"Plutonium LEAK",
"HELLO WORLD",
"Dont Panic",
"Be Gentle",
"MohanLal is not FAT",
"Hands Up",
"Bangalore is not nice",
"no rain today",
"cartridge frozen",
"i dont talk to strangers",
"take a walk",
"get a real job",
"Backup not found: (A)bort (R)etry (P)anic",
"This is not a bug, this is a feature",
"Maintenance free: When it breaks, it can't be fixed",
"Hit any user to continue",
"No use calling Sagar!"

]


sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)


while True:
s=sock.connect(('10.113.32.80',9100))
print 'connected to printer'
t =random.choice(fortunes)
v=sock.sendall('\x1B%-12345X@PJL RDYMSG DISPLAY = "' + t + '"\r\n\x1B%-12345X\r\n')
print t
sock.close()
print 'disconnected from printer'
time.sleep(500)

print v



####################################################

just replace the ip addr with your printers ip address and 'Sagar' , with your sysadmin.

it works on hp lasers , for sure , i dont know about others....

Monday, November 26, 2007

what a crappy name

the name name of the blog is darn ,wrong . getting out of college is not the same as getting an eternal recess , perhaps it is the end of all recesses....darn

Saturday, April 7, 2007

Rainy Day

A rainy day .

i wonder how many days more i can spend in this city , i wish i could stay here for ever , all the places i know like the back of my hand , i will never get lost here ................ ,

At the end of the movie 'Truman Show' , the character played by Jim Carry has to choose whether to stay in the enclosed dome that has been his world , or leave to the wide open real world outside . he has to make a choice between the familiar and the unknown , choose between a world where he has nothing to fear and a world full of uncertainties.i guess everybody , who has had to leave this city after living here for a long time , while have to face the same question.