Enjoy life as it comes...

Stephen Weblog

Just another WordPress weblog
Subscribe

The Dark Knight

September 09, 2008 By: admin Category: Movies

The Dark KnightIn came the most expected movie of the year “The Dark Knight”, Christian Bale had come to the party one more time. Such a powerful actor of the current era, along with Heath Ledger it turned out to be a excellent combination. Such a wonderful plot turned out to be a classic in theaters. Watched it twice, but I am still not done. Amazing dialog and here are some of those which I really liked a lot.

– If you are good at something don’t do it for free.

– The darkest night came just before the dawn…

Enjoyed the movie to the core… and I really hope Batman will come back again from the dawn.

Yet another Chennai -> Bangalore trip

September 09, 2008 By: admin Category: My Own

hmm I was on the move from chennai to bangalore one more time on the ksrtc bus. It was going well until fate struck on the poor bus. It got some engine problem first followed by break failure. We were strangeled on the middle of an highway and there seem to be no way out. Poor driver was trying his level best to fix up the thing but in no avail. So waited for one hour and the time was around 1 am then. We all had to take up the next ksrtc bus which came on the way, and reached home standing …. and sitting in the floor of the bus. Such a patheatic situation and hope it does not happen again.

SED screwed me up

June 14, 2008 By: admin Category: Unix Scraps

Here is a simple shell script which I wrote to search and replace a pattern recursively, it was finding the file properly but did not replacing. Was wondering what the hell was going wrong and in the end found that ‘ should be replaced with ” for sed in shell scripting…

#!/bin/ksh
echo “Enter the search string”
read search;

echo “Enter the substituite string”
read replace;

echo “Enter the base directory location from where we need to start searching”
read baseloc;

for i in `find $baseloc -type f -exec grep -il “$search” {} \;`
do
echo “Pattern $search matched on file $i, going ahead to replace with $replace”
sed -e ’s/$search/$replace/g’ $i > $i.bkpb4replace
mv $i.bkpb4replace $i
done

Happy debugging!!!

Find number of CPU’s

June 09, 2008 By: admin Category: Unix Scraps

Ever wanted to find the number of CPU’s you are running with, here we go this is what everyone will say

/oracle>cat /proc/cpuinfo | grep processor | wc -l
4
But we can do it without using double “|” as shown below

/oracle>grep -c processor /proc/cpuinfo
4

How to loose 4 kgs in a week?

June 05, 2008 By: admin Category: My Own

Here we go, ever wondered how do we loose 4 kgs in one week, here is one simple solution. Come to my office and have food ;o( Hope it does not lead to Sitophobia.

Library error: Can’t dlopen() a library containing Thread Local Storage: libjava.sl

June 04, 2008 By: admin Category: Oracle Apps

Here we go, error message as below

libpath libjvm.sl
Library error: Can’t open shared library: libjvm.sl
libpath libjava.sl
Library error: Can’t dlopen() a library containing Thread Local Storage: libjava.sl

How many times we would have come across these type of errors, it screws up sys admins. I have seen this many times and hence I thought of putting it here. When we run any kind of java related process we might hit these type of errors. It’s nothing bug issue one of the process had tried to load the libjava.sl into the memory and it had failed because it dlopen() function call had failed. Actually this type of errors might be platform specific and it most often happens in HP, AIX platforms. So this leads us into two type of questions.

1. Why it fails only on specific operating system and
2. Why it goes through fine on other OS

If we answer the first then we will get the answer for the other as well. On HP, AIX platforms we see this issue because libjava.sl is not preloaded onto the memory, But on some other OS it is loaded into the main memory (JVM) by default. So in this scenario what we need to do is just use one of the OS specific variable LD_PRELOAD. Here the solution will be do a LD_PRELOAD of this shared library, so that when any of the process tries to access this shared library it is loaded in time

export LD_PRELOAD=/opt/java1.4/jre/lib/PA_RISC/libjava.sl

libjava.sl is the one which will call the libjvm.sl, so at times what will happen is we will find a strange error like the below.
Library error: Can’t dlopen() a library containing Thread Local Storage: libjvm.sl

So what we will do is we need to do a LD_PRELOAD of both these sl’s, here we go

export LD_PRELOAD=/opt/java1.4/jre/lib/PA_RISC/libjava.sl:/opt/java1.4/jre/lib/PA_RISC/libjvm.sl

So just in the command line set up these variables and also take a look at LD_LIBRARY_PATH, SHLIB_PATH and LIB_PATH based on the OS being used and try running the process which invokes these shared libraries it will load fine. I myself experienced these type of errors many times and were successfully resolved all of them especially on HP PARISC!!!

Thanks,

Distance between cities

June 03, 2008 By: admin Category: My Own

Ever wondered how to find the shortest distance between any two cities in India, here we go

http://www.mapxl.com/path-finder/map_routing.phtml?config=routing

Hyderabad -> Bangalore

June 02, 2008 By: admin Category: My Own

Its has been 1.5 years in Hyderabad, its pity difficult to sum up these many days in a single blog but will try my level best to put it in a nut shell. Was in Hyderabad on Nov 11th 2006 along with my parents, just peeping through the cab window and looking at the wonderful city. It was such a beautiful city well maintained at least around the Hi-tech area. But cost of living is a bit expensive because of the influence of IT industry. Some of the golden moments for me in Hyderabad are the below:

1. Day 1 when I joined Oracle they took me to a team outing it was such a big surprise.
2. Winning Oracle Treasure Hunt competition along with Vasanth, Rajeshh and Vikas.
3. Embarrassing moment is loosing tug of war and dumbC (Vasanth is the only person who would have kicked me on stage for not finding the name of the movie which we just practiced before getting on to the stage).
4. Bike ride to Ramana’s marriage.
5. Bike ride to Oceans theme park.
6. Goa Trip excellent.
7. Learned swimming in Gachebowli stadium.
8. Increased my expertise level in Quake3, was able to beat dodge at one point.
9. How can I forget Hyderabad house and hyderabadi biriyani, wow man what a taste, it really pulls me and I cannot tie my mouth.
10. Church in Secunderabad and Begumpet.

These are the things which comes to my mind instantly when I think of Hyderabad, not sure how much I have missed out and whatever it is, I will treasure all the moment which I stayed in Hyderabad. Such a beautiful weather I loved it to the core, except for the 2 horrible summer. It will really soak you and its better to stay indoors during the summer. There were some horrible moments which was not so good to hear so not putting those here. Any ways it was such a wonderful experience “I love Hyderabad!!!”

Thanks,

First season of IPL

June 02, 2008 By: admin Category: My Own

IPL had bought in new dimension to cricket and it has provoked lot of people and caught millions of viewers attention. It was well planned and neatly implemented. In the end the best team stood out. My being a hardcore supporter of Chennai Super Kings was a bit disappointed to see we couldn’t grab the trophy which was so close to us. Hats off to Dhoni who did a fantastic job with the Chennai local boys. I really admired the way Dhoni captained the CSK team. As it was very much disappointing to see my Team loose the final in the last ball of the match. In the end cricket is the ultimate winner. We couldn’t have asked for anything further. I could only wish Dhoni’s men all the very best for the next season. Keep rocking CSK!!!

How many place to move???

June 02, 2008 By: admin Category: My Own

hmm just thinking of how many places I had been moving in the last three years. I will list all of them here.

1. Aug 2005 - Moved to Bangalore and stayed in my friends house, first time moving out of house.
2. Sep 2005 - Vacated my friends place and moved to Richmond Town near Johnson Market. We five people took one flat for rent and things were moving along well.
3. Aug 2006 - Vacated Richmond Town house and moved to Thippasandara near Indra Nagar.
4. Oct 2006 - Vacated Thippasandara and had to move to Hyderabad for joining Oracle. Had been into the guest house provided my Oracle.
5. Nov 2006 - Vacated guest house and went to one PG in Madhapur.
6. Nov 2007 - Vacated PG and joined fellow Oraclites in Madhapur itself.
7. May 2008 - Vacated Madhapur and came back to Bangalore as I got internal transfer to Bangalore Oracle itself.

And not sure how long I will stay in this Bangalore PG, its really tough to vacate one place and go to other place…. really tough job man !!!!