Sunday, August 3, 2014

Just some math


0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 ....

For non programmers that is a Fibonacci sequence. Add previous two numbers to get the new one. Wow :) but how is that related to me writing a post on it ?

For a few days I spent a lot of browsing, watching videos, read blogs and other articles on the amazing sequence ever invented, by an Italian Mathematician Leonardo Pisano Bigollo in the year 1202. Yes, its that old. Though it first appeared in the books in 1202, it was way back appeared in Indian Mathematics in connection with Sanskrit Prosody. There's more in the history to mention so I prefer to google than mentioning here.

However the most amazing stuff about this sequence is the ratio that it defines after dividing a higher number by the lower number. The ratio remains constant after a particular range and the value is "1.6180339887...". The ratio 1.618 is defined as Golden Ratio and is denoted by a Greek Alphabet ϕ. A rectangle drawn with the fibonacci numbers looks like and followed by a spiral in the rectangle. It's called as a Golden Rectangle.

FibonacciBlocks.svg
Thats some maths till now, but how is the Fibonacci sequence still important topic to discuss ? Its time to look into the nature's stuff we are surrounded by, that implements it.


I am lazy to upload more pics here and I prefer writing than uploading pics. There are Spirals, Shells, Galaxies, Hurricane, Tornados, Sea Waves, Water Droplets, Human Body, Flower Petals, Seed heads, Pinecones, Tree branches, Animal bodies, Reproductive dynamics, The Uterus, DNA molecules, Rhythm in music .... all consists of a golden ratio pattern.

Quite amazing, isn't it ? Years later the sequence was invented, Leonardo Da Vinci has implemented this pattern in all his paintings. Mona Lisa, The Vitruvian Man, The Last Supper are based on a Sacred Geometry and resembles the golden ratio which is also said as a divine proportion (1.618).

The design patterns in building architecture is based on the golden ratio. Ancient Egyptians were the first to use the mathematics in art, Pyramids. Stonehenge, The Acropolis of Athens, Great Mosque, Romanesque, Taj Mahal, Eiffel Tower....

Company logos that we see daily is based on the golden ratio. Websites, Frameworks consists it too.



That's great thing to know, to me. We are living in a mathematical world. Things which were never taught. Invented thousands of years ago and still solving the mysteries lying in the ocean of knowledge.

For me a fibonacci sequence will never be a C program again :)


Courtesy -

Coldplay
NUMB3RS

Tuesday, April 15, 2014

Hard Rock Cafe Pune - Sucks


This should be the good place to share my experience on my recent visit to Hard Rock Cafe Pune.

I am a regular visitor of Hard Rock Cafe and have been to Mumbai, Bangalore, London HRC in past couple of years. Yesterday it was my second visit in HRC Pune, and hopefully the last one.

I went with one of my close friend (who is a frequent visitor of HRC too) had a very bad experience in HRC. We are Rock fans and wanted to chill out in HRC with some good rock songs. Having said that, I couldn't hear a single track except Sweet Child O' Mine.

I requested the DJ to play some Metallica, AC/DC, Pink Floyd songs (moreover the Rock Anthems, for which I always to go to HRC). But to my surprise he actually ignored the request. I have to write down on the piece of paper the band names that actually are played at other locations of HRC.

May be the DJ wasn't quite interesting to talk (coz he was playing all Bryan Adams and Adele and Robbie William songs). Well, I have to walk down to the entrance area to fill the feedback form just to make someone aware that "Dude ! It's Hard Rock Cafe" (Only place in the world where you can find Rock stuff from best bands in the world and can enjoy their music).

Well, I found someone near to Rock Shop with whom my friend was talking. He was good and was listening to us. We narrated him about us and our past experience in HRC. The DJ will play some rock he confirmed. Well there goes "Summer of 69" (good one). And then all of it started again and we felt to leave the place sooner we finish the beer. To express the feelings I did a thumbs down action. I didn't know the Pune HRC crew converts thumbs down to the middle finger action. And yes the worst story started then.

Never in my history of any Pub/Bar I have to talk to a bouncer. A group of 5 people (some where speaking in local language) surrounded us and started debating. One of the member initiated with a local slang which I don't want to mention. And yes first time in the history of my life I was thrown out of a Pub and I got scratched in my hand in that. The guards were insisting to call the local cops and to get me away.

I sadly have to say that "Love All, Serve All" doesn't make any sense in HRC Pune. I don't see any reason why HRC Pune is focussing on being commercial rather than maintaining what HRC really stands for. That is why they have the dance floor. And you can't dance on the Rock Songs, you can just bang your head.

I will continue visiting HRC but not in Pune and I will make sure none of my other friends should go to Pune HRC.

There are bit of other pubs one can think to visit, if they really want to go for Rock music

- Hidden Place
- Apache (sometimes it is better, but it sucks too)
- Blue Frog
- Miami

Tuesday, June 12, 2012

Paradise Lost

An interesting article from TOI -

There's no such thing as bad news, only good stories.

The way bad news gets reported in the newspapers these days, it gives an impression that all that is happening in the country is rape, loot, murder, mayhem, midnight brawis, wife-beating and match-fixing. The daily dose of horror stories is enough to push a shrink to the brink and make him seek some serious counselling.

But such despondency is uncalled for because India continues to be a paradise, a safe place to live - provided one prays four times a day, avoids Noida during the day and Juhu pubs during night, does not walk into terrorists hideous at strategic locations, does not argue with auto drivers in Chennai or cross the main road more than twice a day. Further, a lot of good things do happen around us. But every editor thinks that it is his solemn duty to give readers a taste of hell before they get there.

Every evening, the editorial team meets with great enthusiasm to decide what would go into the next day's edition. The confabulations proceed along the following lines:

The editor says, "What have you got today? Anything interesting?"
A reporter blurts out with excitement: "I have a great story. Two young Indian mountaineers have scaled Mt Everest from the south face and hoisted the Indian tricolor atop it. The heroic feat could inspire millions of young minds."
The editor flares up, "Are you mad? We are here to sell the newspaper, not inspire people. I want something sensational!"

Another reporter shouts gleefully, "Sir, what about this? A man living in south Delhi threw his wife out of his bedroom window and she landed on her mother's car. She was rushed to the hospital where the surgeons operated and left a scissor inside her belly."
The editor smiles, "Yes, this seems to be a gripping story full of action, passion and emotion. Talk to that guy and find out if this is the standard method he used to send his wife to her mother's place. Ask a few psychiatrists what sort of a traumatic experience in childhood can make a man throw his wife out of the window when he grows up into an adult. Get in touch with the surgeons and find out whether they are going to include the cost of the scissor in the patient's bill."

Another reporter says, "I have some interesting stories. An Indian astronomer has reportedly found some life forms on Mars."
The editor is not impressed: "There is so much life all around us and we have no idea how to handle it. Why bother about life in some distant planets? Spike the story."

The man from the metro desk reads out a story filed by a reporter from Noida with a puzzled look on his face. "This afternoon, the people of Noida took out a grand procession to celebrate the death of a 50-year-old man. THe report gives a detailed description of the family he headed, the servants who worked at their home and the name of the doctor who attended to him. It sounds positively insipid to me."
The editor smiles, "This is Noida. A person dying a natural death is an uncommon event here. Take the story."

"Here are some more. A municipal corporator spat paan on the opposition leader's shirt. A drunked driver ran over three persons sleeping on the pavement."

"Ha! At last some good stuff. Let's have a graphic showing step-by-step how the paan-spitting would have occurred. Talk to the drunken driver and find out how he missed the two other people sleeping nearby. Splash this stuff all over the front page and push Manmohan Singh's Myanmar visit to the inside pages where no one will see."

Monday, February 27, 2012

No Infinite

There is no infinite !!!

Infinite = Time or Volume * Speed of counting

(Defined by Yogesh)

Being an extrovert, I profoundly believe in above expression. There's often a misconception when we say a limit tends to infinite. Whether it really approaches a limit ? Whether defining an equation really intends to infinite. It never. Rather a summation of probability and Permutation/Combination.

Humans are often bound to restrictions. Its because there's a term defined in the mind which is defined as limit. And then to satisfy ourself we term it as a limit tend to infinite. Which itself has a restriction based on system and the space occupied by the variable in which the infinite field is defined. I am not going against the law of infinitesimal fractions. But on the same lines I am protruding finite fractional elements.

Trying to clarify the above expression in different phases in different scenarios -

1) Human ability to count infinite -

If a person since his/her birth starts counting from 1 till the time he/she is alive. It would come around 60(seconds) * 60(minutes) * 24 (A day) * 365 (A year) = 3153600 seconds. On an average a person can count 12 number starting from 1 in a second. So if a person stays for on an average 50 years he can count upto 3153600 * 50 (years) * 12(every number) = ~ 18 billion numbers.
Infinite = ~ 18 billion for a normal human to count.

So for next time if someone ask you how many starts are there in the universe you can say 18 billions. Accept the challenge and ask other one to count more than exactly what you did. :D

2) A system ability to count infinite -

Yeah, its something what I am really keen to explain. A system comprising of different compilers. I would take C (32 -bit & 64 - bit) and Python which is more than sufficient.

C compiler on 32 Bit Operating System - (As per the IEEE-754 standard)

Taking the highest degree of the value to explain the infinite term I would go with the floating point data types. This would even be a good point to know can infinite be a decimal number :D
An infinite number can often go to negative summation or a positive. In C, a floating data type for 32 bit OS it can hold a size of min/max = 3.4 * 10^38. A number much more larger beyond a human can count in his/her lifetime. A system is designed to compute such values. Nevertheless, it gets contented with the size allocated. So for it the infinite number could be the number as defined.

C compiler on 64 Bit Operating System -

There's not much to describe here. Just a difference in the size of the data type it can hold is min/max 1.7 * 10^308.

Python -

Let me take this opportunity to explain Python a bit. An advanced, strong and a simple language which can define a floating data type of size 64 bit double precision, like 7.8*e^28. A value unimaginable by a human or a C compiler. Yet a sober, distinctive. Executing a code without compiling. Having different interfaces and frameworks for different user requirements. Including Robotics, mechanics and artificial intelligence.

Having explained this, a system has got the restrictions to hold-on on a size of the variable. Even though for human its uncountable I don't term it as an infinite.

3) Universe ability to expand infinitely -

A big bang. Ever lasting universe. Expanding in every corner of the space. Extending P-, N-, E- along with the molecules. The space accumulates the size for the infinite growth of the universe. Even here the expression might sound perfect. (Size = Space). Once the space is filled it will be like "Who's who" dilemma !!!

Ever lasting universe will try to expand in itself. Something like a circle drawn in a circle from the point it originated. It will keep on continuing till it reaches the centre of the universe. May be many asteroids would already hit Planet Earth and other planets on Milky Way before that. The time it takes to approach the centre and the size of the space defines two different variable for the equation.

A dilemma which was seen in the Bermuda triangle. A mystery concluded as being the accumulation of more amount of CH4 in the triangle as compared to other part of the world.


4) Love counting infinite -

Love is sometimes defined as infinite. It can't be measured or can't be calculated. But it can be defined. The amount of love exist, till a human exists. An imaginary part comes after that. Which can be defined in the negative infinite. Which will eventually vanish when the universe reaches its centre.

Few other instances,

Infinite charging of the battery will explode. Infinite number of execution of loop will bump the system (because of defragmentation). Birth of humans is not infinite (Natality rate). Finite number of species. Finite number of money. Infinite ideas with finite implementations.

The infinite term is related to the scalability of the matter. The more the system is scalable, the more infinite it can append.

The infinite monkey theorem states that a monkey hitting keys at random on a typewriter keyboard for an infinite amount of time will almost surely type a given text, such as the complete works of William Shakespeare. The probability of a monkey exactly typing a complete work such as Shakespeare's Hamlet is so tiny that the chance of it occurring during a period of time even a hundred thousand orders of magnitude longer than the age of the universe is extremely low, but not actually zero.

Only Bullshit talk is infinite.

The Four Horsemen Baby !!!!! :D

Monday, November 14, 2011

On Beer Table !!!

Three friends sitting on a beer table. Wanted to narrate the conversation which often goes in vain :D

Farell, James & Loverboy decided to have beer one fine day. They are good old underwear friends. They played, roamed, grown old together. Time passed by and all of them got involved in work and professional life. The only day they used to be together is everyday, they live in the same flat. One fine Saturday they all decided to have beer together which they didn't had since last 24 hours. Farell is working on some bullshit technology, James on some more bullshit technology and Loverboy is working on P3/Z/Blade/AIX/Apache/iSeries/A-Z series/SQL/NoSQL/Xcode/Microstrategy/Cognos as what he has mentioned in his resume.

After having a bunch of beer normal conversation turns to paranormal.

James - Farell, you are looking nervous and sad ? Whats the issue. You have not even paid the rent ? How many times should I need to follow up with you ? And why are you putting so much ice in beer. Please change that f****g TV channel. Tune into some VH1 bands, Loverboy !!!

Farell - I got Pointer not set for location referenced error at the 11th hour when I was about to deploy my project. I worked so hard. I have put in my all efforts but this error I could not sort out coz someone has recompiled the objects without intimating me and I doubt if she is my ex girlfriend.

James - Loverboy, will you please change that f****g channel. I am sick of the music you are trying us to listen to. And Farell, why the hell you are not enjoying the beer ? Why are you so sad ? You have not paid the rent I am telling you the last time. My pockets are already broken paying the rent.

Farell - Oh, I got the point. Last night I was at her flat. May be when I was asleep she has taken my credentials and has login thru VPN to access the client network. She ditched me. I will trace the log she might have left behind. I will see for the /users/etc/tmp/var/folders I've created a log file there which traces all the users command. I will ditch her now for sure.

James - Loverboy, don't be so hard and fast you flasher. I've bought this beer crate and you can't consume half of it alone. Farell, when are you going to pay the rent. I couldn't hear you.

Loverboy - I Love Her !!!

Farell - But how did she know the primary password which is required to login to the client network. I have not saved it anywhere, its in my mind. How did she read my mind. May be she has put microECoGs in my head. I will sue her now. How can she use such electrodes on me ?

Loverboy - I Love Her !!!

Farell - Here goes the trace log. :D

http://img62.imageshack.us/img62/9900/47961045.png


Holy Shit !!! What I've done !!!

Loverboy - I Love Her !!!

James - Farell, will you please turn off your Macbook and join the party. We decided not to intervene in our official stuff at least while having beer. What do you say Loverboy ?

Loverboy - I Love Her !!!

Farell - Yes, lets enjoy the party (Anyways I am going to get f***d tomorrow :( )

James - Farell, how about the rent then ?

Farell - James, you know you are a filthy, nomad, morbid faggot. I wish if you were my manager :( Loverboy, don't you think the same about James. Every time he spoils our party by introducing his money budgets in between.

Loverboy - First I was afraid, I was petrified. Kept thinking I could never live without you by my side. But I spent so many nights thinking now you did me wrong, I grew strong. I learned how to carry on and so you're back from outer space. I just walked in to find you here with that sad look upon your face. I should have changed my stupid lock, I should have made you leave your key. If I had known for just one second you'd be back to bother me.

James, Farell - F***k that shit !!!

James - I am going to sleep now. I am not feeling well. May be you guys like to finish it off early and clean the table and put the beer bottles back in crate. I will sell it tomorrow and with that money will plan our budget for tomorrow's beer. You must sleep guys it's already 1:50 AM

Farell - Loverboy, I am sleeping too. I already had vomit twice now not feeling well. Please clean the surface and also end my Job on my Mac before 2:00 AM. Bye. Good Night !!!

Loverboy - I Love Her !!!

Pid Tid Type Time Stamp Message
5009 4373 JOB 11/Nov/2011 02:00:00 AM Job_Update_All_Files_Project started.


The Four Horsemen Baby !!! :D