Thursday, March 31, 2011

Places I would like to visit

1. Pollachi - maitreyi vedic village - its a spiitual destination, which is close to and Coimbatore.
2. Tranquil tea - after reading hindu article, which is in in Kotagiri close to sims park.

Tuesday, March 29, 2011

Why I Hate Cricket in India

Its 30/03/2011 and the semifinals of WC between India and Pakistan is going to be played. The frenzy over the media/newspaper is to be seen. This time around the frenzy is just way beyond I can understand or have a logical clue as to why?

BCCI is a big bag of scams and people who have dirty hands. Cricketers are over hyped sportsman. No Doubt they are sportsmen, but what do we say to the earnest hockey players? Hockey is officially our national game!

:) with a smile I am watching all around - India will win. I pray India looses, just so people can open there eyes and see this is a game a simple game and not carried away to such frenzies.

I read a guardian reports article and looking at it from a foreigners eye, I feel myself not from India. People, I am sure very few will read this ever (thank goodness) please wake up. Sports should be taken as sports and not foolish frenzy. What just happens, is the businessmen and politicians will use every such opportunity to exploit you.

Hardly few people know the money involved in these matches.

Monday, March 14, 2011

A Jew family is stabbed to death, including 3 small children.

How can someone kill 1 month old girl? and then think he would be able to live happily ever after?
I cannot understand the killers, however its very interesting, as how much angry one can get.

However, angry your are, however, injustice have come upon you, however, grief has stricken you, its inhuman to stoop to such levels. I am sad and bitter after reading this. 3 small childrens severely stabbed to death.

Monday, February 28, 2011

lsof is magical

Here is a link, which is kind of primer for lsof, since it has examples.

Here are some examples I have come across which are interesting and cool.

kill -9 `lsof -t -c sshd +f -- /dev/md2`
I want to kill all process which connects to my sshd, and are accessing raid /dev/md2. ensures no one is connected via ssh and is using the drive. I can then safely shut down sshd.


lsof -t -c java -a -u -a +f -- /dev/md2
this is a combination of
-c command
-a and
-u userid
-a and (another and)
+f file accessing raid disk.


lsof +f -- /var/log
everything accessing

you send a HUP to all process accessing /var/log, generally daemons accessing logs
kill -HUP `lsof +f -- /var/log`


lsof -i| grep LISTEN
all that your host is listening (-i is for tcp connections)

who is connected on port 6014
lsof -i:6014

lsof -i:22 -a -u
all those connected to port 22 and having remember if you do not specify -a, it becomes an or and that would mean any thing accessed by

# lsof -i:22 -a -u *uid* | wc -l
14

# lsof -i:22 -u *uid* | wc -l
1228

remeber -t is for terse, it understands, that you only are interested in the process id.

# lsof -t -i:22 -u *uid* | wc -l
100

even thoud *uid* user was accessing tons of files etc. he is running 100 process which are the handles to all those activity.

enjoy!




Friday, February 25, 2011

Finally scoll lock on mac (Mac book pro scroll lock)

I have often pressed the coveted emacs key stroke ctrl-x-s when running vi (dumb me). Unfortunately Mac terminal hangs from there.



Many thanks to Malcom's comment I was able to get it.




On real terminals Scroll Lock sends Control-S to pause text and Control-Q to resume. Try typing Control-S, then Control-Q.


Saturday, February 19, 2011

Worst Indian Bank (is it ICICI)


I do have some experience with a few banks - viz
Indian Bank
Allahabad Bank
State Bank of India
ICICI Bank
Deutsche Bank
Standard Chartered Bank
HDFC Bank
Union Bank of India
UCO Bank


Of all the interactions I have had wether it be loan/credit card/salary account/ etc I felt ICICI is the worst. The customer service is so pathetic that I decided to pen it here. Have any of you lately tried to put a complain? if not then do not even try, its virtually impossible.

I just wish like 'CIBIL', there should be a database of the banks how they operate. The highest complains etc. This central organization should be accessible to general public via multiple means.

I pray ICICI listens to the vows of its customers.


Ok Here comes again a shocker after 3 months :)

Adding a beneficiary and it says oops..


Thursday, February 17, 2011

Collection of links collected on monitoring/investigating memory on linux boxes

http://ktown.kde.org/~seli/memory/analysis.html
http://www.berthels.co.uk/exmap/doc.html
http://valgrind.org/docs/manual/QuickStart.html
http://virtualthreads.blogspot.com/2006/02/understanding-memory-usage-on-linux.html



http://stackoverflow.com/about
http://blekko.com/

VIM issues with powerline

What to do if you get this annoying issue - vi requirements.txt ...