Monday, May 26, 2014

Life's biggest lesson...

One's value is defined by one's values. The more one tries to understand and define the values, the stronger one becomes. 

Friday, May 16, 2014

What's the limit?


It's not the sky!
It's the architecture...
Dedicated to the Javaness!

public BigInteger factorial(BigInteger n,  BigInteger result) {
if(n.equals(BigInteger.ONE)) {
return result;
} else if(n.compareTo(BigInteger.ONE) > 0){
result = n.multiply(factorial(n.subtract(BigInteger.ONE), result));
} else {
System.out.println("Overflow!!!");
}
return result;
}

Thursday, February 20, 2014

Omega++

May be everybody goes through this phase,
What am I doing this for? What is waiting for me? What's driving me? Why should I do it only like this? How do I get off this? How do I get this?
That reminds me of the concept a learned CAT coach talked about 4 years ago.
There is this omega man. Omega, for those who don't know, is the universal constant.
For him, anything and everything is possible. Everything just happens. He'll do anything which comes his way.
He keeps going on and on. Wakes up, works hard, talks well, plays well, eats well and sleeps well.
Sounds like all happies?
Our learned coach says there's a big problem with that. If everything goes well, what good is that?
Reminds me of the animated movie 'Megamind' where the mighty villain is too unhappy to use his super powers because he doesn't find a deserving super hero.

Now comes the interesting derivation.
I used to sit on the beach and think... good job, music, fine talks, visits home, friends and treks. All's good. What's now?
That's when a crazy neuron somewhere inside the brain tickled.
How do you do things better, get bigger, get cooler, get more effective?
That's when I figured out... by being and doing more.
Do more, think more, enjoy more, work more, care more, complain more, crave more, worry more, talk more, correct more...

If you are satisfied, it's good.
If you are satisfied for too long, there's something wrong. ;)

Start running! 

Friday, January 17, 2014

Up and higher...

She sat on the top most branch of the neem tree wondering what's beyond the line of hills partially hiding the evening sun. The sun seemed to be angry at her for all her boldness and adamancy. She's already miles away from her family in the pursuit of life beyond their confines. Her well wishers tried with all their might to bring her wishes back to their world and tie her down. She couldn't reason out with them but she knows she had to do this.

None of what she spoke made sense to her mother. She was afraid of speaking to her father about it. The only person who seemed to understand is her best friend. She looked at her with concern and said "Let's say all you wish comes true. What happens after that? How do you live?" She never wanted to answer her best friend who seemed to speak like her conscience. She was to an extent impatient with her best friend and her conscience too for having to do all this explanation for her very own life and her freedom. She simply wanted to fly away... far away... up and higher... into the clouds... beyond the hills... as far as the wind takes her.

Her wings opened wide... wind brushed her feathers... her eyes shone with joy... heart beat fast. 

O perl! O my love!

O my perl, will you have some Java with me?
You know, I really like L&F of your CSS.
Don't be hesitant because I'm a C++ guy.
You will C, sharp guys are hard to find.
No Python can come our way.
I know you are well :-JRebel.
O my ruby, on rails we can roam the whole world!

Yours RESTfully


(Inspired by a post - Why is it convenient to have a software partner)

Wednesday, January 01, 2014

Complicated investments!



The interest on education loans or home loans is compounded by banks every year at 9-10%.  But, the returns we get on our investments may not be compounded in the same way in plans like some endowment policies or ULIPs. Here's a word of caution while trying to choose your investment plan. I created this java utility class to calculate the final amount I get in one of my investment plans - 198405, when I invested 24000 every year for 7 years compounded at the rate of 5.5%. To check this fact, just replace the 5.5 with 10. There's a difference of ~23000, which is almost an year's investment!
  
/**
In the interest of public
@Author yoursTruly
*/

public class UlipInterest {

    public double sumInUnitDuration(double principal, double rate){

    return principal * (1 + rate/100);

    }

    public double totalAfterUlipDuration (int duration, double principal, double rate) {
        double tempSum=0.0;
        double tempPrincipal= 0.0;
        double totalSum = 0.0;
            for(int i=0; i
            if(i==0){
            tempPrincipal = 0;
            } else {
            tempPrincipal = sumInUnitDuration(tempSum, rate);
            }
           
            tempSum = principal + tempPrincipal;
            //totalSum += tempSum;
            }
            return tempSum;
    }
   
    public static void main(String args[]){
           UlipInterest uInt = new UlipInterest();
           System.out.println(uInt.totalAfterUlipDuration(7,24000,5.5));
    }

}


Comes handy if you want to check if the interest on your investment is matching your interests!

Saturday, November 23, 2013

Radio One (FM 94.3) - eBay Rockers

One of the scary experiences when you have to go with music and yourself to people. I realized you cannot be anyone else but yourself doesn't matter how big or small you are!

http://www.tommyjams.com/radioone/episode/2013/11/17

The band line up goes:
Javed (Our ustaad and lead guitarist)
Amar (Rhythm/Bass)
Ankit (Rhythm/Bass)
Rajat (Drums)
Ishita (Vocals)
Yours truly (Vocals)

Songs featured in the show:
  1. Somebody to love (Vocals: Ishita, Guitar: Ankit) 
  2. Sweet Child of Mine (Vocals: Ishita, Lead Guitar: Javed, Rhythm: Amar, Bass Guitar: Ankit, Drums: Rajat)
  3. Jo Bhi Main (Vocals: Me, Guitar: Javed)
  4. Zombie (Vocals: Ishita, Lead Guitar: Javed, Rhythm : Ankit, Bass Guitar: Amar, Drums : Rajat)
  5. Kholo Kholo (Vocals: Ishita, Guitar : Javed)
  6. Socha hai (Vocals: Me & Ishita, Lead Guitar: Javed, Rhythm : Amar, Bass Guitar: Ankit, Drums : Rajat)
Those who listen to Radio One (FM 94.3) Bangalore would have heard RJ Rakesh. He comes up with this awesome and extremely naughty 'Ulfat Sultan's School of Speech' (You should say 'speech' here like 'spiiichchu' with a wink and stress on second 'ch' like he does). We found it very difficult to match his energy and enthusiasm in the show.

This is the right place to remember some of the cool members I'm fortunate enough to practice and play along with @ eBay : Aruna Shibane (Vocals), Rajat Nigam (Vocals), Praveen Ramesh (Drums & DJ dude!), Om Prakash (Keyboard), Kalyan (Vocals, Pads, Djembe, Canjo - Plays for the band Anveshanam),  Clement Thomas (Guitar - Bass is his speciality), Vidyalakshmi (Vocals), Vedha Kannan (Vocals), Srini (Vocals), Prabu Madhesan (Vocals), Anirban (Lead Guitar), Prasanth Gaurav (Vocals) & Anugrah (Vocals)

How can I not remember my Helios Band: Shalini Shailesh (Vocals & Acoustic Guitar), Suresh (Acoustic Guitar & Vocals), Guru Babu (Vocals), Pravas Panda (Vocals and Keyboard), GNR (Drums - He's drums for Agam now) and Jyo (you still are my one and only Telugu singing duet partner!)