For those interested in why this is the most accurate answer, go read "Willpower" by Baumeister.
http://www.amazon.com/Willpower-Rediscovering-Greatest-Human...
I am always surprised, though shouldn't be I suppose, that the first answer for so many people is some completely externalized solution (e.g. blockers, network disconnection, etc.).
There are tools that can help you to create habits, but you must be aware of the role that self-regulation plays in ongoing maintenance of these habits, otherwise the moment the tools or support infrastructures you've put in place are gone, your habits will revert.
Don't make your self control reliant on app updates.
So ideally, in cases that you know before hand that you are going to need your willpower, like reading HN, you'd be better off arranging your life so that you don't have the option to spend as much time, and reserve your willpower for cases you cannot predict or control.
http://lifehacker.com/5967249/your-willpower-is-only-a-finit...