>If I do this project and publish my web app, I will be happy. Or if I contribute x-lines to some OSS and get my name on the contributers list, I would be happy. It was sort of like preparing your bed but never actually sleeping in it.
That realization sounds a lot like the TED talk I saw recently from Shawn Achor. He likens it to always moving the goalposts on your own happiness. (FYI - you can get the same amount of info from this TED Talk as you can from his book. Not worth $7.)
http://www.ted.com/talks/shawn_achor_the_happy_secret_to_bet...