News for hackers. Stuff that matters.
Re:Alex Payne — My Get-Back-To-Work Hack by jreposa on Tuesday September 15, 2009 @09:58AM (#823825)
So, everytime I take a break and actually don't mind wasting time on reddit, I have to comment out parts of my /etc/hosts ?
Re:Alex Payne — My Get-Back-To-Work Hack by tiredandempty on Tuesday September 15, 2009 @10:38AM (#823898)
you can have two /etc/hosts (hosts - hosts.restricted), and a script switches each.

implementation is left as an exercise for the reader.

Re:Alex Payne — My Get-Back-To-Work Hack by run4yourlives on Tuesday September 15, 2009 @12:03PM (#824090)
Or you can just install rescue time. I think this is a new feature now.
Re:Alex Payne — My Get-Back-To-Work Hack by jreposa on Tuesday September 15, 2009 @11:03AM (#823939)
If you have TextMate and want to be able to disable and enable those /etc/hosts lines quickly, see the Screenr HOWTO:

  http://screenr.com/Sg7
After seeing Alex use Screenr, I just had to try it out myself.

short version:

  1. mate /etc/hosts
  2. select the lines you want to comment out
  3. command forward-slash (⌘/)
  4. save and authenticate if necessary
Re:Alex Payne — My Get-Back-To-Work Hack by yan on Tuesday September 15, 2009 @10:35AM (#823894)
You can write a slightly more complicated index.php than he does to time how long it's been since you last checked a distraction, and give you an allowance of, say, one distraction per hour. If you're allowed, the script can just proxy all requests for half a minute.