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.

I went around for downloading JDK and was going through the licencing terms and found it very interesting.

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