An offer I couldn’t refuse.

At last, I get the smell of success.

I still remember the day I wrote about my fate. Sooner I wrote about my hope too. Hope is the best thing. Yes, really it is. After long wait, nearly an year or so, I am going the way I wished to go.

Today morning I received my call up letter as speed post from Naval Head Quarters with a loads of instructions (as one of my friend commented as 21 pages of terror) before joining the prestigious Naval Academy, Kerala. My vocab is too little to share my excitement. Overwhelmed with joy, I jumped with the letter in my hand. A dream come true. Surely these are the most exciting days of my life. Thank you all !.

Posted in Excited, Happy, Professional | Tagged , | 1 Comment

repercussions

You born on this planet, as a single cell, multiplying from it, forming the same social animal, developing the qualities by constantly meeting new people and through different experiences. Lessons you learn at the time you think you have grown up enough to get married or to get committed, will be worth having infinite retrospect and value through out your life. This will be a twisting rather confusing post about such an experience, an unexpected, unprecedented “accident” and its “repercussions”.

I have never developed such a social skill the way I have developed in the last few months. I learned taking people for granted has the same level of risk as you are about to walk over the handrail in the balcony with a vertigo. When someone tries to solve the mysterious theories, it starts itching. When you scratch, it itches more. This more is what I meant as repercussions. The after effects. Sheh! What the hell I am talking about.

I’ve realized that being happy is a choice. You never want to rub anybody the wrong way or not be fun to be around, but you have to be happy. When I get logical and I don’t trust my instincts – Thats when I get in trouble.
Angelina Jolie  (from brainyquotes)

The perspective of what you really are should never be questioned. What ever happens, even when this world is upside down, person who is going to be with you always will be you only. Above all, the greatest lessons one should learn is to enjoy being who you are right now. How much privileged you are. With parents, brothers, sisters, wellwishers all around. Its going to be a happy life after all.Nothing will last for ever. Kya patha kal ho na ho.

I would appreciate not to ask any personal questions regarding this post. No pun intended for any person. This post is just a useless outcome of a crooked wicked weird blogger who find it hard to stop a repercussion that happened in his life. And good news, he is having a great obsession right now with something else. Thank God.

Posted in Indifferent, Philosophy | Leave a comment

The Alchemist!

Books have never been my interest at any point in life. But I have read quite a number of books. About technology, about history, about love, about mysteries, and about philosophies. The book I want to talk about now is “The Alchemist” by Paulo Choelo. If a book has ever inspired me, then this is the one. Message of the book is so powerful. Below is one of my favorite lines in that book

“when you really want something to happen, the whole universe conspires so that your wish comes true”.

Choelo express his feeling about the belief of people in fate. When something happens good its good and if somethings happen bad, its fate, and you do not have control over it. He says this is the greatest lie in this world. A lie everybody believes. A lie that comforts everyone. A lie that lead one to faith. A lie that no body realize.

At some point some one might point that he is turning out to prove his implicit atheism. I would clearly say NO. He never say anywhere not to believe in supreme power. He only express his view that its ungodly to justify oneself with the name of fate. He simply ignite the message “Believe in your dream”.

Posted in Philosophy, reading | Tagged | Leave a comment

Back home. With lot of changes!

Its been 326 days since I have penned on my blog. For some or other reasons I had a long break, nearly an year. A lot has happened over this period. Traveled to so many new places. Made so many new friends. Learned to love. Learned being loved. Learned to hurt. Learned the pain of being lonely. Learned the energy of being with friends. Learned to spent the money on things I love. Learned to save money. Though it was a long break with lot of happenings, I have no intention to write down everything here, but one.

I will update this post soon with that one thing…(soon)  I think a new post is worth :)

Posted in Happy | Leave a comment

In my life

There are places I remember
All my life though some have changed
Some forever not for better
Some have gone and some remain
All these places had their moments
With lovers and friends I still can recall
Some are dead and some are living
In my life I’ve loved them all

to all my friends…..

-rahul

Posted in Music, Singing | Tagged | 1 Comment

RSA Key Generator in Python

Well, my previous post about sieve algorithm led me to RSA Key generator written below. This code is efficient to create key pairs for encryption/decryption with moderate level of security, even  good for small commercial use (I hope so). I have added enough comments inside code to make it 100 percent readable. Next post will be a full fledged RSA CryptoSystem and I am working on it.

An interesting thing: RSA Keys of bit length 1024 are likely to be crackable between 2006 and 2010. and keys that are of bit length 2048 are likely to be safe until 2030. Below code can produce key length safely up to 27 bits only!! (Can’t expect more from my core 2 duo in 32bit mode and 2GB RAM ;) !!!). Python raises “memoryError” for more than that. Yet to figure out how to tackle it.

Find the code in this link: http://ideone.com/0UnG3

Posted in Excited, Linux, Programming, Python | Tagged , , , , , | 1 Comment

Sieve_of_Eratosthenes with efficient scaling

Laziness is a virtue. If not I wouldn’t write this  post on  my two day experiment with sieve algorithm. By now I realized how worse an algorithm can get implemented. Below is my version of code to generate prime numbers up to n. I am trying to improve it and make it clean, clear and short. Once I am done I will update the below code. I got the first inspiration from a python recipe in Active State community but later found my version scales better than that for an input say up to 10 million (Sieve is supposed to work efficiently up to 10 million). I found not just a marginal but a considerable difference in terms of execution efficiency.

Below is the algorithm in bird’s eye view.

Step 1: Create an array(say s[]) of odd numbers starting with 3 up to n

Since sieve suggest to start with all natural numbers from 2, we will start ahead with 3 discarding 2 and its multiples as we know they are not prime

Step 2: create another array(say p[]) with first element 2.(2 is a prime ).Now first non zero element(say m) of s is a prime. append this element to p and mark it 0 in s.

Step 3: find all the multiples of m(first its 3)

We can straight away go to the square of the number since all its preceding multiples will be deleted in the previous steps. Formula for index of m**2 is ind=(m*(m-1)/2)+s.index(m). Now jump to all the multiples by ind=ind+m and make it 0 s[ind]=0

Step 4: Loop steps 2 and 3 until square of m is greater than largest element of array s

Step 5: Append all the non zero element of s to p. There we go. P is now a list of prime numbers from 2 to n

Below code is updated to reduce the cost of function call in the previous version. I think now its short and clear.

Code moved to : http://ideone.com/UoqXu

Result: It takes less that 20 seconds to find the prime up to 10 million(10^7). But this code will neck bury any 2GB ram with an input of 100 billion(10^8).  Probably in the next version memory handling will have a whole new definition ;)

Posted in Linux, Programming, Python | Tagged , , , , | 4 Comments

Hope !

Andy Dufresne: Forget that… there are places in this world that aren’t made out of stone. That there’s something inside… that they can’t get to, that they can’t touch. That’s yours.

Red: What’re you talking about?

Andy Dufresne: Hope.

Remember Red, hope is a good thing, maybe the best of things, and no good thing ever dies.

My all time favorite dialogues from Shawshank redemption. Yes Hope is the best thing in this world. Which gives us the divine emotional strength. Strength we needed to get up and proceed and conquer the next. I am on.

Hope for the best !

Posted in Happy, Philosophy | 2 Comments