Thursday, January 28, 2010
SDLC - Bollywood style
:-)
Anyways, I was wondering that if a developer could relate each of the stages of SDLC to a Bollywood song then what would they be. Here is what I came up with based on my personal experiences
1) Requirement Gathering:
Choli kai pichay kya hai?Choli kai pichay? Ku Ku ku ku....
2)Design:
Na bole tum na mainay kuch kaha, kaha...
3) Implementation:
Sathi haat badhana. Ek ekala thak jayega, mil kar boj uthana.Sathi haath badhana..
4) Testing:
Yehhhhh Kya hua, kaisay hua, kyon hua. Woh choddo yeh na socho...
5) Deploy:
Raat ka nasha abhi, aankh sai gaya nahi...
6) Maintenance:
Hum hongay kamyiab, hum hongay kamiyab ek din, ek din..
Adieu!
Thoughts welcome
Tuesday, December 29, 2009
Where the Almighty stays
I find it extremely disturbing that an entity that has not been seen, or properly described for thousands of years still is regarded as a possibility. Most people would cite some miracle to prove me wrong but they fail to understand the probabilistic and impersonal environment we live in. Given the myriad of phenomena that can influence an outcome in our everyday life, it is in fact no miracle that something out of the ordinary will happen eventually. However, it also means that most of the time it will not. We just tend to remember the "happy" coincidences and ignore the rest thus further perpetuating this belief in miracles.
In fact, the abode of the almighty is getting smaller and smaller everyday. Ancient societies saw the God in the sky and in the trees and animals that roamed about, they saw God in the stars and in the planets. Now that we know what these are, God has been pushed back to the realms of parapsychology and mysticism and as medical science makes progress God is being displaced here as well.We now know how the Universe began but we are still in the dark about the initial moment of the Bang which means that as far as I am concerned God existed in an infinitesimal space when the Universe was younger than the Planck time.
God is just an euphemism for ignorance, all that we do not understand can broadly be classified as "Godly" and this is very unlike what we are taught to believe. Besides, here is my rationalization for not believing:
Lets assume that God exists then by definition this entity has to be the smartest and most powerful thing that ever existed. Assuming that this entity is responsible for this world around us and for all the minute details, I think he/she would be extremely interested in having a conversation with someone who actually understands the complexity and appreciates it rather than a devout believer who has spent his life just on the belief that everything is sustained by God and has no knowledge about the inner workings of anything. Thus, it would serve us well to be non-believers and try and understand the world as is without involving God in between. This would ensure that we gain an understanding of the world we live in and also that we can carry on a detailed conversation with God on the validity of using Cyclic Bessel functions of the 12Th order in modeling ground wave propagation when the time comes. If he doesn't exist then, well, we still gather the knowledge. Also, this methodology has practically no downside, God is not known to be vengeful so you can deny his/her existence without fear of retribution. Even if you are wrong, God forgives everyone so we are all set.
Logic dictates belief. It takes a lot of courage and self discipline to ask yourself the hard questions. There are no right and wrong answers, just answers.
Tuesday, October 6, 2009
Weird Analogy
Think of a sugarcane that gets picked up by the Elephant. For a while he is high up in the air, away from his roots and enjoys the brief view of the world from the new vantage point.
Soon however it is thrust down the throat, chewed till it is bone dry and travels further downhill. There it finds itself surrounded by what it thinks are lesser grass, shrubs and root but at this point he is indistinguishable from them. This process of assimilation extracts all that is left from it and reduces it to a leftover collection of unusable material.
Soon, it passes out as you know what. This is not the end however as at this stage it provides the ideal nursing ground for the next generation of vegetation.
In corporate terms, this progression would be.. Engineer > Analyst > Manager > Upper Management... :-)
Saturday, July 11, 2009
Laws of Office - Newtonian
A) Laws of pro-motion
1) Every employee at rest remains at rest unless acted upon by an external manager.
Rp=P*L
Now productivity can also defined as the rate of change of effort.
Rp = dE/dt *L
Luck basically determines the magnitude of return for a given effort and can be accurately modeled as a stochastic process. The sheer magnitude of the number of factors affecting luck brings into context the application of the Central Limit theorem thus necessitating that Luck follow a Gaussian(
Hence,
L(t) = 1/√2п *е -1/2t2 where L(t) = luck at time t
Thus
Rp = dE * L(t)/dt
= 1/√2п*dE*(-t) е -1/2t2
=(-1)* 1/√2п*dE*(t) е -1/2t2
The overall negative sign and the linear as well as exponential relation to time clearly
shows that the Rate of promotion will decrease over time irrespective of the amount of Effort put in.
3) Every promotion has an equal and opposite reaction.
The reaction here can be quantified as a linear superposition of the rate of loss of hair and rate of increase of hypertension.
B) Laws of Info-dynamics
1) If all developers are in equilibrium with each other then no one is working.
2) Stupidity can neither be created nor destroyed. It can only be transformed from VB to Java.
3) The utility of a program will increase with its inefficiency.
4) At absolute zero, the entropy of a system approaches a constant minimum but a programmer can still code if the deadline is near.
C) Law of Timepass-ation
Two employees of social aptitudes S1 and S2 waste each others time by a factor that is proportional to the product of their social aptitudes and inversely proportional to the square of the distance between them.
Thus, Time wasted (Tw) is given by
Tw ∝ S1S2/R2
Tw = βS1S2/R2
Social aptitude is a complex variable and can be expressed as a partial derivative of appearance, presentation and personality. Thus two sociable employees in close proximity can lead to an exponential increase in Tw. My initial hypothesis about the proportionality constant was that this constant (β- Beta) was dependent on the following formula
β = 2пe(1 - G1*G2) where G1 and G2 are gender codes where
G1 = male = 1 and G2 = female = -1
Thus,
β = 2пe2 for a male/female interaction and
β= 2п for a male/male or female/female interaction
However, nowadays I am not sure if this formula holds good in all cases :-).
Thus the final formula is
Tw = 2пe(1 - G1*G2)S1S2/R2
I am currently working on the quantum mechanical and relativist aspects of this interesting branch of science. Will keep you all posted! :-)
Saturday, June 13, 2009
Weird Connections - No Actually!!
1) Fire Automated - One day while watching a program on TV about how Edison invented the light bulb a similar bulb lit up in my head (The actual wattage was and still is highly questionable but I was in the 9th standard so sue me..). I suddenly had this desire of having a way to light a candle in case the light went out. I specifically wanted to light a candle not a bulb as somehow that seemed more .. ahem.. romantic. Oh OK., what the heck.. I just wanted to light a candle cause I wanted to do it. The circuit I built was a simple one, broke a light bulb and took out the tungsten filament, hooked it via a switch to a group of batteries and wrapped the filament around a couple of match heads and placed the match heads close to a candle's wick. Hit the switch and lo and behold the filament glowed red and the match heads ignited.. ha ha.. Fire! Fire!. Its aliiivve. Well not that dramatic but it was quite "cool". Showed it to a couple of friends who couldn't have cared less and hence I took that apart after a few days.
2) Mithunism - Inspired by a scene from the Lords movie ( Don't remember which one it was.. have I sinned.. Oh NO!!) I tried lighting a match by striking the boots I was wearing. Turns out that its not easy. Did some reading and found out why they are called "safety" matches :-(
However, I just had to find a way around it and do something.. and I did. Took the striking part off from a match box, stuck it to a sheet of paper and wrapped that paper tightly around a matchstick. The result was a roll of paper layered with the striker with a match inside it.You just had to pull it out sharply and out it would come bursting in flames. I stuck that to the heel of my boots and headed out. Met a few friends, went for a smoke, pretended to not have a match box and did my thing .. he he.. were they surprised!!
3) The Arnold Alarm - While in engineering, in order to get up in the morning after the usual late night sessions I built a system of alarms. The first set was a set of two alarm clocks connected in parallel. I used to set them 5 minutes apart and once one started ringing it would trigger the others alarm as well. The second system was more innovative. It was a motion sensor.. he he.. OK.. not quite but it was a stripped down alarm clock that I connected to my door. Once somebody pushed on my door, it tripped the alarm and it kept ringing till it was manually rest. Dinesh, my next door neighbour and an early riser was the designated "trigger". He would get up every day morning and begin with a customary "Abbey sam ***** uth ja saale" followed by a swift kick on my door thus setting off the alarm. Oh the happy days!! :-)
4) Engineering Mini project - It was called the Automated Lab Support System.. an ingenious mirco controller based system which can only be conceived by 4 aspiring electronic engineers. The design basically involved about 10% engineering skill, 40% lack of common sense and 50% lack of foresight. This deadly mixture when marinated in vodka overnight led to the final design. I built that entire circuit in my room ( as I was too lazy to walk 500 yards to the lab) and by circuit I mean the entire mirco controller assembly. Soham did a phenomenal job of Mircoprocessor programming and we were able to give a demo of the system. When compared to our original plans, the system we finally built was like starting out with the blue print of the Taj Mahal and finally ending up with the open air toilet of Shashi ( Shashi from Trivandum junction).
Thus it seems that over the years, my ideas have just become crappier, complicated, unrealistic, unmanageable and totally lack lustre. Thankfully I am in IT so no one noticed :-)
Wednesday, June 10, 2009
Darwinian Complexity
Anyways, religious and moronic ideologies aside I do understand the reason why Darwin's theory so upsets many people and I shall try to draw some analogies between Darwinism and a ridiculous sorting algorithm. As usual, this analogy like myself.. will be perfect. ;-)
Now, the single most disturbing thing about Darwin's theory of evolution is that it points to a total lack of purpose to life. It is easy to see why this can be so disconcerting. If life is result of random mutations then it seems meaningless and without purpose and that's not what we would like to believe. The other major flaw that non believers point out is that some features that organisms posses is just too complicated to have evolved by chance. A common example that is pointed out is the one where if you find a rock on the ground then you will have no problems in believing that it is just a piece of rock brought about by random processes of compression and erosion. If however you now find a Swiss watch in the same place then would you assume that it was a naturally occurring phenomena? The point here being that the Swiss watch is so complicated that it points to a definite design and hence a designer.
As far as complexity goes, the non believers grossly underestimate the awesome power of randomness. Nature is infinitely more complicated than we can imagine and what looks like design is just a result of millions of years of selective breeding. The rules for selecting a specific mutation need not be complex at all but over time the complexity can build up and lead to fascinating results. The best example to see this is to see a demonstration of Mathematica and Dr. Wolframs cellular automaton . It goes on to show how a complex structure can be derived starting from a simple building block and by using a simple set of rules. The best part is that this process is not algorithmically compressible so there is no way to hasten the process. You get what you see and you see it only when you get it!! Also, its is not only nature that can induce complexity. For instance, Bulldogs were being selectively bred for their large head sizes and now we are at a point where they cannot be conceived naturally because of the excessive head sizes. Thus, Bulldogs now have become dependent on us for the survival of their species and this kind of dependency is a result of evolution and the biggest proof that the "designer" can be bypassed.
Coming to the question of purpose. That's a tough one from a philosophical standpoint but I can find some similarities between this question and a little known sorting algorithm called Bogosort. (Introduced to me by Adarsha or "Mircosoft Maga" as he is popularly known as)
Now Bogosort sounds ridiculous because it relies on a random reshuffling of a list hoping that the restructured list "just happens" to be the sorted one. If the list is finite then the number of iterations will remain bounded and thus there is a finite probability of getting to a sorted list. This is not practical however because there is no way of determining how long the sort will take. Moreover, with a pseudo random generator the sorted list may never result because the long term cyclic behaviour of such a generator prevents it from being truly random. Thus though this is a valid sorting algorithm, its randomness will make it seem purposeless UNTIL it actually results in the sorted list. Evolution is much the same, it is random and hence seems to be without a purpose but it is not so. It has an agenda and that agenda is the betterment of the species as a whole.
We can only hope that nature employs a true random event generator thus ensuring that there is a finite probability of reaching a conclusion i.e a ecosystem where everything is in harmony with everything else. If not then we are screwed as that would imply a long term cyclic behaviour. Going by history, Earth was ruled by reptiles and then somehow the mammals became dominant. So, if this is a cycle.. oh no.. sorry guys gotta go and apologize to the lizard who may have seen the underside of my chappals a bit too close for its liking..
Monday, June 8, 2009
Coordinatorous Americanus - An exotic species
The general consensus among experts is that this species is the result of a mutation in certain members of a more well known and diverse species called the Offshorous Informus Laborous. Though Offshorous(OS) and Coordinatorous(CO) by and large share the same characteristics there are some distinct features which make CO very unique and well suited to its habitat.
The mutation itself is a very interesting phenomena and is usually predicated by the acquisition of a rare chromosome called H1-B. Though other chromosomes such as H4 and B1 have also been linked to this mutation but the primary causative factor has been determined to be the H1-B. Earlier evolutionary processes dictated that this mutation was in general linked to the chronological maturity of Offshorous but of late it has been noted that this mutation has become more or less random. Now, lets move on to the life cycle of Coordinatorous:
Coordinatorous usually begins life as a very enthusiastic little critter, eager to please and inch its way up the evolutionary scale. This drive invariably results in territorial disputes between Offshorus and Coordinatorous as Offshorous is usually larger in number and views CO as an anomaly. The hostile and demanding habitat that CO has to deal with adds to the initial traumatic transition period. However, CO usually displays a remarkable resilience and tenacity and gets adjusted to the changing conditions and soon settles into a routine. Experts have speculated that this heightened sense of awareness and tact has something to do with the sustenance that CO derives from its new surroundings. This sustenance is called
Dynamic and Omnipotent Leveraged Longtime Accepted Renumeration (DOLLAR).
The main species is subdivided into two major groups viz Americanus Bachillius and Americanus Copulus. These sub species are easily identified by observing their food habits. Copulus is more or less an organised forager and follows a good dietary regime. Bachillius on the other hand is by and large a scavenger and opportunistic hunter. Bachillius has evolved a unique survival strategy of moving together in groups and ambushing unsuspecting Copuli (Plural of Copulus) into sharing their food. A few Bachillius have also been known to exhibit traits of advanced Copuli and occasionally be self reliant.
A remarkable feature of this species is the ability to seemingly go into a trance like mode without actually sleeping. This feature usually evolves over time due to demands made on the creature by predatory organisms within its habitat. There have been unverified reports by scientists of Coordinatorous that have been slapped awake at odd hours of the night and have then proceeded to seamlessly communicate with Offshorous. Since communication plays a very important role in the life cycle of Coordinatorous many of them have evolved unique methods involving techniques as varied as hand signals to telepathy. Recent experiments suggest that some are able to for see disaster even before it happens. This foresight is based on the same principle that a monkey when shot twice and placed on a hot stove while being simultaneously beaten by steel rods will forever be able to recognise a gun, a stove and a rod anytime in the future.
Another striking feature of this creature is its ability to stick to a routine. It has been known to come out of its burrow in extreme weather, poor health and hazardous conditions in general. This behaviour has been attributed to either the DOLLAR theory (Para 2) but more popularly to the Monkey theorem described above. A common ailment that afflicts this species is called Loanus Immobilus. It affects a few members of the species but the effects are severe ranging from paranoid delusions, agoraphobia to claustrophobia. The rare Copulus sub species where more than one member has the H1 B mutation are relatively less affected by Loanus Immobilus. The Bachillus sub species rarely gets this disease but for the ones that do, the recovery period is usually quicker.
Some conspiracy theorists do point out that this H1 B mutation, followed by the total lack of any social stimulus, mental trauma and strenuous lifestyle points to undercover military torture techniques being employed but such theorists have not been able to substantiate their claims so far. This mutation moreover is only temporary and most Coordinatorous do eventually revert to the Offshorous species. The transformation is not loss less however, physical changes like loss of hair, premature greying and increased subcutaneous fat have often been observed.
All in all, Coordinatorous Americanus is an exotic species but sadly with new regulations coming in place, the survival of this species is being threatened. The author is planning to contact Green peace on this issue provided he is able to garner enough support for the cause.