News for hackers. Stuff that matters.
Re:Ask HN: How can I remedy scatter brain and information ov... by javajosh on Saturday December 06, 2014 @04:37PM (#8710303)
On osx and linux, you can edit your /etc/hosts file to "uninstall" domains (e.g. reroute them to localhost). The barrier-to-edit is involved enough (prompt for root password, invoking an editor, etc) to at least slow you down before you undo the block.
Re:Ask HN: How can I remedy scatter brain and information ov... by el_benhameen on Saturday December 06, 2014 @05:21PM (#8710413)
I set a simple cron job to do just this. Weekdays from 9-5, Facebook, Reddit, and a few other sites are routed to localhost. Getting around it is more of a pain than just opening an Incognito tab, which is all that's required to get around a blocking browser extension.

Just having that schedule imposed on me for a few days was all it took for me to get out of the habit of opening a new tab and heading to one of the aforementioned sites any time I ran into a difficult problem. I've noticed an increase in my productivity, and I don't really even feel the need to twiddle away that time anymore.

Re:Ask HN: How can I remedy scatter brain and information ov... by ozim on Sunday December 07, 2014 @02:05PM (#8713170)
There is hosts file on windows as well and you can do same thing ;)