Structure of the Federal Reserve

August 28, 2013
  1. The Federal Reserve Board comprises seven governors; but, for most of its history, the Board has operated in the shadow of its chairmen, three of whom (Marriner Eccles, William McChesney Martin, and, most recently, Alan Greenspan) served for nearly 20 years.
  2. Monetary policy is, in principle, decided by the Federal Open Market Committee, which includes 12 voting members: the seven Fed governors, the president of the New York Fed, and four presidents of the other 11 regional Federal Reserve Banks (who serve on a one-year rotating basis). In practice, however, Greenspan and many of his predecessors came to dominate the FOMC.
Advertisements

Different ways of calling a perl script from another

August 27, 2013

Perl has a number of possibilites to execute other scripts / commands:

  • backticks / qx{} When you want to read all the output at once after the program has terminated
  • exec When you wan’t to continue your process as another program — never returns if succesfull
  • system When you are only interested in the success or failure of the command
  • open When you want to pipe information to or from the command
  • do and require Execute another Perl script here. Similar to C’s #include
  • There are modules to do a three-way open so that you have access to STDINSTDOUT and STDERRof the program you executed. See the apropriate parts of perlipc for advanced information.

Reasons why the ruppee is falling against the dollar

August 26, 2013
  1. India’s external deficit is 5% of the GDP in 2012-13 compared to 2.8% in 2008-09
  2. A large current-account deficit is a classic symptom of a pre-crisis economy living beyond its means – in effect, investing more than it is saving.
  3. This is where QE comes into play. It provides the means in terms of foreign investments to live a lavish life and to keep spending more. 
  4. The emerging markets including India have high interest rates, there by attracting foreign investors.

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


Commonly used tests on files in shell scripting

August 13, 2013

Here are some commonly used tests:

   -d FILE
          FILE exists and is a directory
   -e FILE
          FILE exists
   -f FILE
          FILE exists and is a regular file
   -h FILE
          FILE exists and is a symbolic link (same as -L)
   -r FILE
          FILE exists and is readable
   -s FILE
          FILE exists and has a size greater than zero
   -w FILE
          FILE exists and is writable
   -x FILE
          FILE exists and is executable
   -z STRING
          the length of STRING is zero

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. 

Top level Union is not supported currently; use a subquery for the union : Error

August 1, 2013
select c1, c2 from cert.tset1 tset1 union all select c1, c2 from cert.tset2 
tset2


vs 

select * from ( select c1, c2 from cert.tset1 tset1 union all select c1, c2 
from cert.tset2 tset2 ) T