Spread your wings

April 24, 2014

The very first time a baby bird tumbles of its nest it has one of two options. It can give in to the fear, forget what it was designed for, and plummet to the earth. Or it can spread its wings, draw forth all its courage, and leap into that great big sky with the intention of soaring across it. You are now faced with a similar choice. You are no baby bird, but you are just as sensitive and at times as vulnerable. But if you make up your mind, there is noting you cant do. Spread your wings.


How do you find the current url of a document in phantomjs ?

February 24, 2014

If you simply do the following in PhantomJS:

1
console.log( "- current url is " + document.URL );

then you will see the javascript filename you are running with PhantomJS.

If you want to see the URL of the currently loaded page, however, then you have to do it within the loaded page’s sandbox:

1
2
3
4
5
6
7
var url = page.evaluate(
    function () {
        return document.URL;
    }
);
 
console.log( "- current url is " + url );
 

Difference between text based, headless and normal browser

February 24, 2014

http://www.zenmeo.com/wordpress/what-is-headless-browser-the-list-of-headless-browser/


How to find the memory consumption of a particular process in linux for every 5 seconds

December 19, 2013

top -p PID


Methods of Data Collection and Biases

September 30, 2013

Methods :

  1. Simple Random Sampling
  2. Stratified Sampling – divide the population into non-overlapping subgroups called strata and choose SRS within each subgroup. Thus the variance within each subgroup is less than the overall population variance.
  3. Cluster Sampling
  4. Systematic Sampling – select the kth item – hidden patterns
  5. Convenience or Volunteer Sampling : select the first n points
  6. Convenience or Volunteer Sampling

 

Bias : 

  1. Selection Bias – predicting polls from twitter data.
  2. Measurement or Response Bias – the type of questions such that the people who answer it differ from the people who are not answering it. 
  3. Non-response Bias – if the individuals responding differ systematically from the people who are not responding. For example : a mandatory survey in canada which was sent to 1/5th of the people was changed to optional and was sent to 1/3rd of the people. Since, the response was voluntary and not mandatory, new immigrants were much less likely to respond to this survey.

MoneyBall review

September 25, 2013

Michael Lewis has a gripping writing style. He talks about different industries. Two years back, I had read Lewis Poker, before I joined investment banking. At that point of time, I had only some idea that I had gathered from variable sources on the internet about banking. What I found in Lewis Poker was that Michael Lewis made me feel a part of the industry. Two years later, now that I am reading Moneyball, I am going through the same feeling again. He talks about terms like “a soft tosser” which means not worth my time which the scouts used, .. which makes me feel that I am a part of the industry. His way of engaging the reader is emphatic.

Michael Lewis builds his character in front of the reader and then names the character. The reader goes through the process of transformation of the character quickly and this relates easily. He introduces the character David Beck and gives illustrations of how his hand might twist and turn in different directions. The reader can almost see that in front of him and then he names the David Beck as “The Creature”. Its as if, the reader sees his arms movement and then hears his name and agrees to the fact that he should be called “The Creature”.

WIP


Quotes from the Moneyball

September 25, 2013
  1. The human mind played tricks on itself when it relied exclusively on what it saw, and every trick it played was a financial opportunity for someone who saw through the illusion to the reality.

  2. sd
  3. sd
  4. sd

WIP


Deal with setbacks like a man !

August 24, 2013

If you can keep your head when all about you
Are losing theirs and blaming it on you,
If you can trust yourself when all men doubt you,
But make allowance for their doubting too;
If you can wait and not be tired by waiting,
Or being lied about, don’t deal in lies,
Or being hated, don’t give way to hating,
And yet don’t look too good, nor talk too wise:

If you can dream – and not make dreams your master;
If you can think – and not make thoughts your aim;
If you can meet with Triumph and Disaster
And treat those two impostors just the same;
If you can bear to hear the truth you’ve spoken
Twisted by knaves to make a trap for fools,
Or watch the things you gave your life to, broken,
And stoop and build ’em up with worn-out tools:

If you can make one heap of all your winnings
And risk it on one turn of pitch-and-toss,
And lose, and start again at your beginnings
And never breathe a word about your loss;
If you can force your heart and nerve and sinew
To serve your turn long after they are gone,
And so hold on when there is nothing in you
Except the Will which says to them: ‘Hold on!’

If you can talk with crowds and keep your virtue,
Or walk with Kings – nor lose the common touch,
if neither foes nor loving friends can hurt you,
If all men count with you, but none too much;
If you can fill the unforgiving minute
With sixty seconds’ worth of distance run,
Yours is the Earth and everything that’s in it,
And—which is more—you’ll be a Man, my son!

— Rudyard Kipling


Why is Karan Johar such an astute movie maker – reviewing Yeh Jawani hai Deewani?

August 5, 2013

This weekend was fun for. After having relocated to the US, this was my first week of freedom. No, I didnt land here one week back. I landed here 9 months back. Last week, I got my driver’s license. In the US, driver’s license almost equates to freedom. So, how did I celebrate ? I watched my first hindi movie “Yeh Jawani hai Deewani” and for the first time I realized, how the movie was meant to touch people across castes, regions, borders and language. It showed me how Karan Johar understands the pulse of the people so well. Here is an objective analysis. In order to make a movie a big hit, different classes of audiences have to identify with the movie. The language that the movie speaks permeates across all language barriers in the audience : masti, aspiration, career,

  • The movie starts by targeting the exhuberant Indian youth. A mountain trek in Manali, a geek girl getting a break from academics and being the rebel for the time being and enjoying her vacation. We all have had such vacations just out of college or the in the first one or two years of our job. The movie subtly touches the dilemna of modern Indian girls here for whom marriage seems to be “The End” of career and life. 
  • Now comes the aspiration part. Admit to a famous Northwestern university in the US. Something that is again a dream of the youth. 
  • Then comes the rocking career part. The movie realistically shows how the hero, Ranbir Kapoor struggles to keep a balance between family and career. Gone are the times, when the typical bollywood hero would be beaten up by villains and he has to fight back. Now, the hero is torn apart and is unable to manage his career and family together. It clearly shows that Ranbir Kapoor is a careerist, but also shows remorse on his part when he suffers to hear the fact that he could not be with his dying father. No audience, can see their fun loving, energetic, high flying career hero suffer. The audience connects. This is where the film also taps into the international markets audience. Not only does the Indian audience connects, but also the NRIs sitting in different locations start sharing emotions here. 
  • Finally, why does it have a so very typical bollywood ending ? Indian men have this latent fantasy, that the woman of their dreams and the typical monogamous Indian girl will be there for them somewhere. It doesnt happen always in real life. But Ranbir Kapoor is in a different league. He has so many women waiting for him. Deepika Padukone waits for her, suddenly turned possessive boyfriend and then they live happily every after. Would be interesting to see what take Karan Johar has on the “happily ever after” part – probably his take will be “Kabhi Alvida na Kehna”. So now you know why life before marriage is so awesome. 

Weekend read

July 22, 2013

This weekend was good as far as reading was concerned. I read new things about two different fields, academia and consulting.

The first article was by professor Radhika Nagpal about her journey towards becoming a tenure track professor. The article was very illuminating as she gives details about how she managed her life and time and her responsibilities as a mother and a career. Its a fact that we celebrate dedication, sacrifice, hard work and success in any track we run for, be it the best parent, the best spouse, the best career or the best child. Now it becomes very difficult to win all the races. I have myself been through this at times and have been torn apart with conflicting priorities. Now, I have realized that we can try to be the best “whole person” and that would not be too bad at the end. 

Another very important thing that I have noticed in my life is that there are stereotypes of being successful in any field, and what happens if we aim to be that stereotype is that we either burn out or we leave the race. Both of these give us a feeling of being unfulfilled. The main thing that we need to realize here is that we are not unsuccessful if we dont match that definition of stereotype. We should invent our own ways and create our new rules. We should invent steps rather than follow. That will give us peace and satisfaction and also help us enjoy our journey. 

Now a context switch to strategy and consulting. I read a HBR article about strategy and consulting. I realized that coming to the US has given me a whole lot of breadth in life. I read how Ikea has strategically positioned itself for a particular customer base and could identify my experience of shopping in Ikea with the case study. 

Key takeaways : read more case studies and understand more industries and companies in the US. Relate them to your everyday experiences. 

Now, Michael Porter, one of the authors in the article, led me to the Monitor group and why they failed ? This article defines Porter’s definition of strategy as “Strategy is all about figuring out how to secure excess profits without having to make a better product or deliver a better service.” What Porter overlooked was innovation and customer. That is cited as the main reason that Monitor group got wiped out in times of change and globalization. 

Key takeaways : Study about different brands and learn about different industries.