Saturday, November 19, 2005

chetan bhagat and books

I think this chap is a great author.

He writes in simple sentences. The humor is unmistaken and there is a pace about his book.

I read 5 point some one - the book about 3 friends @ IIT Delhi (he claims he is one of them, although the iim-a stint just after his iit does no good to his claim)

Anyway, the book is about in his words "what not to do at the iit", or any college - the quircks, jokes, "co-incidences" are well placed - even his "affair" with the pretty daughter of the college prof -- "too perfect" for a plot if you ask me.

But all said and done - a good fast read and you feel good about it. The good part is the book is very easily relatable -- GOOD work there Chetan.

I am now reading the second book - One night @ the call center. Picked it up for Rs95 (catchy yes) ... 70 pages in 1.5 hours, means it is a fast read and the humor is un mistable. Will put up whats this book all about in the next blog.

Harry Potter and the Goblet of Fire

Saw "Harry Potter and the Goblet of Fire" yesterday -

DISCLAIMER: this may be a spoilt sport - so dont read ahead, if you havent watched the movie and havent read the book and DONOT want to KNOW what this movie is all about.

The movie is relatively accurate to the book, unlike its predecessor ( the third part).

The special affects are awesome - esp. the quidich world cup stadium and dragon flight - but I feel that the movie deserves some more time. I felt that when there is so much spent on the creation of that stadium, it might be worth while to show Viktor Krum fly.

Also the dragon fights only had Harry there... what about the rest of the triwizard champions.

There were a lot of "little" things that were missed out; like the fact that Harry was helped by the house-elf, and not Neville Longbottom, about sea weed.

but apart from the little quirks, that probably only a "Real" Harry Potter fan would observe, the movie is watchable.

I would have liked that Ron and Hermione get their fair credit in the movie too - but they hardly play a part in the movie.

But over all the movie is watchable and may be even collected (if you a are a desperate HP fan) ..

I would give the movie 3.5 out of 5. (remember the 4th book was probably the best in the series so far).

Monday, November 07, 2005

Using SSH for password-less login

I wonder how many folks would have wanted that - and were using insecure expect (tcl) scripts to login.

The problem with tcl, is that you have to store the passwd in clear text. That is inherently insecure - esp. in the NFS envoirnment.

The evil blackhat has to just impersonate your uid and guid to access your 600 (ro) files.

the alternate is to use ssh -but then we have to put in passwds, which is pain in the ass. why cant the server know, that no one really uses my machine; or better still - why doesnt the client automatically send out the passwd (encrypted ofcourse).

the answer is to used ssh and authorised keys.

If you want to connect to - u'd need to do the following 3 steps.

$ ssh-keygen -t dsa -f ~/.ssh/id_dsa -C ""
Generating DSA keys: Key generation complete.
Enter passphrase (empty for no passphrase): USE-A-PASSPHRASE <-----secret / can be blank
Enter same passphrase again: USE-A-PASSPHRASE
Your identification has been saved in ~/.ssh/id_dsa
Your public key is:
1024 35 [really long string]
Your public key has been saved in ~/.ssh/

$ scp ~/.ssh/

$ cat ~/.ssh/ | ssh 'cat - >> ~/.ssh/authorized_key's password:

That is it:

next time you want to log on:

$ ssh$

hope you like it .. .:)