I went around for downloading JDK and was going through the licencing terms and found it very interesting.
Thursday, December 8, 2011
Java/Oracle/JVM
I came back to Java some good 5 years later. last I used JDK was in 2006, when I was in my previous company. Java version was 1.6 (also called as java 6). its Java 7 now, and Oracle has bought Sun and own the JVM/JDK.
Tuesday, November 29, 2011
Pidgin installation problem in RHEL 5
Error: Missing Dependency: libsilcclient-1.0.so.1 is needed by package libpurple
all you need is :
rpm -Uvh http://mirror.linux.duke.edu/pub/centos/5/os/x86_64/CentOS/libsmbclient-3.0.33-3.29.el5_6.2.x86_64.rpm
rpm -Uvh http://mirror.linux.duke.edu/pub/centos/5/os/x86_64/CentOS/libsilc-1.0.2-2.fc6.x86_64.rpm
Thursday, November 24, 2011
Ripped off with excessive bills on Airtel blackberry rental plans
Since last year now, I have been paying bills exceeding 2K on a blackberry enterprise plans. After heckling with the Customer service, I came to know of the following blackberry enterprise plans:
1. 899 (unlimited data plan with browsing)
2. 599 (unlimited data plan with browsing)
3. 299 (unlimited mail plan with no browsing)
surprisingly, when I had moved to the blackberry plan the Airtel folks told me there is only one plan which is 899 plan. This time when I threatened that I am going to move to other service provider, he gave me the other two options.
Interestingly, the 899 and 599 plan has no difference and yet they are 300 Rs apart. Shady company for sure. However, very good network. If they want my feedback, who is on airtel since 2001, please be more open and transparent and honest.
Friday, August 19, 2011
Unable to delete a file in linux
On a fine day, I found a normal looking file, which I just wanted to clean.
$ ls -l var/t/log/tlog
-rwxrwxrwx 1 root root 2770 Apr 6 14:05 var/t/log/tlog
$ sudo rm -rf var/t/log/tlog
rm: cannot remove `var/t/log/tlog': Operation not permitted
$ sudo rm -rf var/t/log
rm: cannot remove `var/t/log/tlog': Operation not permitted
$ sudo getfacl var/t/log/tlog
# file: var/t/log/tlog
# owner: root
# group: root
user::rwx
group::rwx
other::rwx
then why the hello even if I am root, I cannot delete the file.
#cd var/t/log
# lsattr tlog
-----a------- tlog
# chattr -a tlog
# lsattr tlog
------------- tlog
# rm -rf yinstlog
Done.
Monday, August 15, 2011
Reasoning against Janlokpal, Anna Hazare
1. Anna Hazare is trying to be Gandhi, and no one can become Gandhi
2. It's a important movement, but comparing it Gandhi is the biggest mistake making this movement nulled.
3. No one looked Swami Nigamananda, who died for Ganga, so why look at Anna now.
4. There is a way to protest, legelative, electoral and making a law, but forcing a law is not correct.
5. What is a fast? non-violent militancy.
6. When the country is at red alert and India is under the terror threat of terrorists, we should not have another protest.
7. Not democratic.
8. Rural and urban divide, Rural India thinks of only feeding themselves.
9. Why not Anna gets himself ellected and come to parliament and make a law.
10. Anna himself is correct and indicted in a court, so he cannot head the anti-corruption brigade.
11. This is undemocratic.
12. Movement does not have masses behind it.
13. Anna Hazare is challenging the parliment and PM.
14. Unconstitutional.
15. Anna Cannot change the laws frivolously.
16. Anna is old and not an elected member, he does not know how the parliament functions.
17. Illegal way of holding ransom the whole country and government.
18. My way or highway, it is like hanging a sword on top of all of us.
19. Who is common man? How he is at your side?
20. Only a handful are supporting it and if you say many are following you or you are representing common man, get elected.
21. Why blame this parliament, when the delay was caused by earlier parliaments.
22. This is blackmailing democracy and a dark day in Indian Constitution.
23. Major constitutional changes are being asked and this cannot be passed in a hurry.
24. How can a law of such significance be passed in a few stipulated days.
25. Government is willing to hear and bring up a discussion, why Anna is wanting only his way.
26. Anna is India and India is Anna, resonated by Kiran Bedi, and it sounds like Dictatorship and Adolf Hitler.
27. Where are the masses which you say you have support. These are people who do not even understand what is lokpal.
28. US is behind this.
29. Sangh Parivaar and RSS are behind this.
30. Anna spent 2.2 lacs of an NGO fund on his birthday, and that makes him very corrupt.
I will keep on adding as I get to hear more.
Dont you think they are funny :)
Friday, August 5, 2011
Is a Catastrophic incident lurking ?
I do not know. However, an uncanny sense tells me we are pretty close to it. Say 20 years.
just my damn bad senses tell me to blog it here. God, I pray. Bad times are those which makes us closer to the Almighty.
Another lousy ediot, doomsday predictor.
Somehow, I feel the Catastrophe we will see, would have never been envisioned. Sad days are lurking ahead.
Thursday, August 4, 2011
A Man said to be mad and homeless beaten to death
Important excerpts :
Kelly Thomas was an outgoing child who loved to play the guitar, participated in Boy Scouts and Cub Scouts and aspired to be a wildland firefighter, said his father, who raised him alone after he and Thomas' mother divorced.
...
But each time he began to improve, he stopped his medications and wound up back on the streets, moving between Yorba Linda, Placentia, Fullerton and Cypress — all places where he had once lived or had family and friends. One of the hardest parts of his death has been hearing their son described as homeless, the father said.
...
His mother sought a restraining order against him in December 2010 after he refused to leave her front porch, took off his clothes and urinated by the front door, according to court papers. In the same court papers, his mother alleged that Thomas grabbed her by the throat when they shared an apartment, although it was unclear when the incident occurred.
...
A male witness says the man, identified as Thomas, was sitting on a bench when he was approached by two officers and ran from them. The man says police used a stun gun on Thomas six times.
"They caught him, pound his face, pound his face against the curb ... and they beat him up," the man said. "They beat him up, and then all the cops came and they hogtied him, and he was like, 'Please God! Please Dad!'"
...
Inference, the kid may have never got over the fact that his Mother does not love him. Sad and Saddest being its unbelievably true. The entire humanity will suffer from such mothers and fathers who do not care for there children.
Lesson, Please do not desert your kids, whatever may come. Give them love thats all they ask of you.
Tuesday, July 12, 2011
converting to world date/timezones on linux, with the humble date
Playing with dates in linux, our humble date is well equipped.
- Want the IST date, in case your host is a PDT/UTC one.
#TZ="Asia/Calcutta" date
- Want a specific date (older)
# TZ="Asia/Calcutta" date -d "2011-07-10 19:58 PDT"
Mon Jul 11 08:28:00 IST 2011
- Other way
# TZ="America/Los_Angeles" date -d "2011-07-10 7:58 IST"
Sat Jul 9 19:28:00 PDT 2011
- If you need to find all the valid country specific timezone constants :
# ls -l /usr/share/zoneinfo/{continent}/{city}
- Here is something cool you can do at your bash prompt:
PS1="[\$(TZ=\"Asia/Calcutta\" date +%D-%k:%M:%S) IST, \$(TZ=\"America/Los_Angeles\" date +%D-%k:%M:%S) PDT]"PS1="$PS1\[\e[36m\]\u\[\e[0m\]"PS1="$PS1@"
Shows me this
[07/12/11-17:32:24 IST, 07/12/11- 5:02:24 PDT]myname@myhost]$
Tuesday, April 26, 2011
Trip to leh - Planning Phase
(The new plan - thanks to Dheeraj, RK and ANup Sir and many more guys from bcmtouring.com)
June 4th - Day 1 - Bangalore -> Virar (NH4 to Mumbai and NH8 to Virar - 1027 Kms - estimated time 14-15 hrs rotated between 2 drivers )
June 5th - Day 2 - Virar->Jaipur-> (NH8 - 1108 Kms - 15 Hrs)
June 6th - Day 3 - Jaipur->Kud/Patnitop (it will be tough drive) by pass Jammu at Chak Dayala or Samba, will save you around 1 hour
June 7th - Day 4 - Kud/Patnitop - Srinagar, Stay near Dal Lake, on Bulevourd Road, good location, and that is the road you will take for the onward journey, and it comparativeky safe too. Also you will reach Dal by 1:00 Pm if you start early around 5:00 Am, so you can think of going upto Sonmarg. That will put you in very good position for next day. And its much more safer. So choose between view of Dal or view of Sonmarg. I would go for Sonmarg :P
June 8th - Day 5 - Sonmarg - kargil, even try to reach Sanko if PWD GH is functional there, Kargil is dumping ground of Kashmir, sadly pretty messed up place, Kargil have a MASS, if required and Petrol pump
June 9th - Day 6 - Kargil - Rangdum relaxed drive
June 10th - Day 7 - Rangdum - Padum relaxed drive
June 11th - Day 8 - Padum - Lamayuru relaxed drive
June 12th - Day 9 - Lamayuru to Leh
June 13th - Day 10 - Move around Leh Palace/Shanti Stupa/Thiksey/Shey/Hemis/Hall of Fame and Permits
June 14th - Day 11 - Leh - Khardungla - Leh, if you start early, you can come back by 3-4 Pm. And if required get the car checked at Druk MASS,
June 15th - Day 12 - Leh -> Pongong Lake -> Tangste, stay at Tanste, you will not have to rush back to Leh and can spend more time at Lake
June 16th - Day 13 - Tangste - Upshi(Petrol) - Mahe - Karzok(Tso Moriri), you will have to keep deisel in Cans as well, From Tso Morir till Tandi
June 17th - Day 14 - Tso Morri Lake -> Sarchu
June 18th - Day 15 - Sarchu Manali
June 19th - Day 16 - Manali -> Chandigarh
June 20th - Day 17 - Chandigarh -> Udaipur
June 21st - Day 18 - Udaipur -> Pune
June 22nd - Day 19 - Pune -> Bangalore
June 23rd - Day 20 - One back up day , in case of any twist
Monday, April 18, 2011
Anna Hazare - fight for right
Probably from Day 1 we are taught about good and bad. In the light of everything we do we are taught not to do the wrong thing. (Arm chair intellectuals churning debate on what is right and wrong, please excuse me, I have a different thought)
Now, all that Panchtantra, Astrix, Tintin or whatever we read, there was always a right and wrong. ie say for cheating is always wrong and although enough was said, not to cheat, folks used to cheat. I am no Ram, so I am no where to say all of you are wrong and I am right. I am fallible and have fallen more than once for greed, for my selfish requirements.
Are the politician's wrong in amassing wealth through corrupt ways?
probably no!
Since if I was there, I would have done the same!
My honest salute goes to the folks, who are righteous and instill a faith in us to become righteous. I Pray, that Anna you succeed in this world of mortals. May you shine like the polar stars guiding us in our way to become a better human beings.
I pray people shed narrowness guided by their self interest. Please for God's sake understand this is a good move towards the right. We should strengthen the movement by not just vocally joining the movement, but by being ourselves righteous and teaching others to become so. Society needs to change.
Sunday, April 10, 2011
Anna Hazare
In the last few days we have seen a simple, honest man has shaken the common folks to fight against corruption. For 5 days a hunger strike, joined and supported from people all around India and abroad. Unprecedented tweeting and facebook phenomenon, was witnessed.
There are so many counter arguments on the movements, let me list as many as I can recollect.
1. This is black mailing Govt.
2. This is undemocratic.
3. This is unconstitutional.
4. will this solve the problem.
5. Gandhian philosophy did not help us yesterday and it will not help us today.
There are even now reports of Bhushan CD's having transcripts of corruption. Infighting.
Anna Hazare is very small in front of todays corruption. No doubt the society at large is so corrupt and I fear, maybe the Anna will lose to the society. He is not fighting the politicians. No. He is fighting everyone of us, who chose the easiest, safest way to progress and embrace corruption.
I can pray. To this day I Pray, May Lord give Anna the wisdom and the strength to cut across the darkness we have created.
Thursday, March 31, 2011
Places I would like to visit
1. Pollachi - maitreyi vedic village - its a spiitual destination, which is close to Aliyar Dam 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.
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!
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
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
# 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.
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/
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/
Subscribe to:
Posts (Atom)
List directories via 'ls -d' - surprised me
List directories via 'ls -d' - surprised me This was one of those feelings where I was left surprised with the humble linux comm...
-
My search for a EWS way of fetching email came to a halt. An awesome software exists. DAVMAIL ! Awesome part is, it implements POP/IMAP/...
-
You want to have apps running in docker container. why? Its convenient, to upgrade and twea k the app independent of changes to your ow...
-
Thanjavur!!! Taken from wikipedia, The name came from the killing of daemon called Tanjan by 'Neelamegha Perumal' a form of Vishn...