I prefer the /etc/hosts hack, putting in entries like `127.0.0.1 twitter.com`. That way, when I actually want to visit Twitter, I have to `sudo vim /etc/hosts`, enter my password, comment out the host entry, save, go to Twitter, and then uncomment the entry, save and quit when I'm ready to block it again.
The inconvenience of the action is what makes it work. If I only had to type `workmode stop` I'd have that committed to muscle memory by the end of a work day or two.
Here's the thing with this: It's easy to find new unproductive sites and an outright ban from distractions is difficult to live with - humans crave distraction.
What if instead of blocking sites, the nonproductive internet slowed down a lot? Then in the 10 seconds you waited for Hacker News to load, you might think to yourself that this is a bad idea and give up.
Has anyone here used Self Control? (http://visitsteve.com/made/selfcontrol/). Sometimes when I block websites, like Reddit.com and this one and few others it makes other websites look weird. Like the page will still load but be broken. I think Self Control is blocking sites the same way this does. Any idea why this happens?
I've used Self Control, and I like it in principle (it makes it difficult to disable it after it's been turned on, which I like).
However, in practice it doesn't work too well for me. If you block youtube.com or plus.google.com it tends to block other parts of Google (including Search and Docs), which is a big dealbreaker. There's an Issue on Github for the bug, but it's really old and there hasn't been any progress on it. If it worked as it should, then I'd actually consider using Self Control.
Yeah, exactly. That's what I like about it too. Have you tried this one out? If it solves those problems, it wouldn't be too hard to make it work like Self Control. Maybe a GUI could be made for it. I am more familiar working in Node.
For me, procrastination is a normal part of my routine. I've tried forcing myself not to do it, but you know what happens? Instead of reading hacker news, I just stare out the window for ten minutes, or think about what exercises I'm going to do at the gym.
Your mind is not willing to do the task you need it to do and there is nothing you can do about it. (that's my experience)
I think that time staring out the window is more important than the time you're reading HN. That gap time when I'm just letting your mind work on stuff "in the background" is when a lot of my best ideas bubble up. I think I saw a talk about this or something but that's why they say you always get new ideas in the shower.
Thing is, I'd like these tools to wearing muzzle to lose weight. It's misdirection of effort into avoiding rather than addressing the demonstrated issue of self-control.
No one has infinite willpower. Making it a tad harder to browse reddit is a useful deterrent. It makes you think twice. If you're trying to lose weight, wearing a muzzle is extreme. However, it's a good idea to remove all the junk food from your house. You can always buy more, but it's that much harder.
If you habitually procrastinate by browsing to reddit et al, these tools can help by killing the positive feedback (as the sites appear down). After a while you no longer have the urge to visit the sites, and the tool isn't necessary.
The number of upvotes, the fact that you thought this was necessary and the fact that this application exists all made me facepalm hard. I can't even see right now.
This is close to what I have, except less complex. A single line in /etc/hosts that redirects sites to 127.0.0.1, which gets commented or uncommented. The fact that I have to go through the hassle of sudoing up and removing the comment means I'm far more likely to catch myself before doing it and getting back to work.
Throw these somewhere in your profile:
alias zonemode='sudo mv /etc/hosts /etc/hosts.zoneback && sudo mv /etc/hosts.zonemode /etc/hosts && dscacheutil -flushcache' alias zoneoff='sudo mv /etc/hosts /etc/hosts.zonemode && sudo mv /etc/hosts.zoneback /etc/hosts && dscacheutil -flushcache'
Then fill /etc/hosts.zonemode with the sites you want to block:
127.0.0.1 news.ycombinator.com
127.0.0.1 www.reddit.com
Then make sure your user can run passwordless sudo on those commands and you are set.