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!)

Friday, November 22, 2013

Accomplished?

The maximum views my blog managed to get per day is 2 ever since I started blogging! So, is it high time re-thinking the idea of blogging in the air? Hmm... Let's just blame it on a crazy soft corner in the brain for blogging and go ahead with the topic.

The feeling of accomplishment is more influential than the accomplishment itself. For example, Case (1) you sweat a 2 hour workout routine all by yourself on a day. Case(2) You do the same sweating and stuff with the instructor standing next to you saying 'wow' and 'good job' and 'just one more'. I would tend to have more and more of case(2). I go to such an extent that I would pay and have that person for the mere fact that I'm seeing something moving, something re-inforcing what I'm trying to do and something that pushes me constantly to move along.

Independence of thought, words and action has been a choice I made for myself sometime ago. To me, that gives a sense of freedom and mental space to act as per my will. You can argue that 'the personal breathing space for brain' just an illusion.

How interesting would it be to have somebody draw a line, encourage you to cross the line and celebrate with you after the journey? It very tempting to say all that is really as interesting as it sounds, but the tiny mental space I have created for myself complains. I try to convince saying "It's probably alright to give out some space for a sweetheart". But, that bloody corner in the brain is so strong that it goes restless. That silly section in the heart doesn't accommodate anyone easily. It looks to me like a huge, dark and deep hole. I can't confidently stand by the statement "It's meant for someone who deserves". I sometimes feel it's not mine to start with... I don't know who controls it. It responds sometimes and stays numb sometimes. Sometimes, even when I want it to react, it simply doesn't! I really hate it for this behaviour.

I have a speculation (warning: this is mostly influenced by movies, books, etc., though) : let it respond, then I'm going to be a better person and there's no turning back. But I don't know when it happens or how or why. I only know what happens when I try to control and direct it to someone or something, I start losing myself.

That silly section seems to have a clear vision of it's own. Sometimes, it analyses, it questions, it rationalizes and it evaluates. Sometimes, it just accepts. My conscience doesn't pretend it doesn't exist! When it is ignored, I clearly see that there's something out of place. It's crazy! One pattern I saw throughout is it's always pulling me back to reality. Is this reality true? Should I add my imagination to this reality? When I compare myself to this little corner, I look small and powerless.    

At 28 years of age, I'm happy to spot the life changing corner in my brain.
I have not accomplished anything!
Will start from ground zero again and again till I do.
Are you trying to tell me I should stop announcing this publicly?