News for hackers. Stuff that matters.
Re:Ask HN: How do you manage Facebook/Whats App/Twitter/Emai... by igetspam on Thursday February 04, 2016 @03:39PM (#11037028)
Of the items listed, I only use email. Call me a Luddite but all of those other things are just unnecessary distractions. I find that my life is much more focused when I control the funnel of noise. I have an RSS reader for news and email or a phone for communication. All these other potential streams of data are like road signs or commercials: I know they're there but I've made such an effort to ignore them that they just don't register.

Try this:

$ cat /etc/hosts|grep face 127.0.0.1 facebook.com 127.0.0.1 www.facebook.com

Re:Ask HN: How do you manage Facebook/Whats App/Twitter/Emai... by igetspam on Thursday February 04, 2016 @03:39PM (#11037033)
There should be newlines in there...

$ cat /etc/hosts|grep face

127.0.0.1 facebook.com

127.0.0.1 www.facebook.com

Re:Ask HN: How do you manage Facebook/Whats App/Twitter/Emai... by unfocused828 on Friday February 05, 2016 @01:22AM (#11039891)
The problem with /etc/hosts is that it is too easy to simply undo. I use https://selfcontrolapp.com, which lets you block a list of sites for a set period of time and does not have a way to circumvent that.

Well, since the app is open source, you surely could just read the code and figure out a method. However, doing that requires enough focused effort to source-dive and debug something. It is much much easier to prevent oneself from doing that than to keep oneself from editing a file.

If anyone is thinking of responding to this comment by speculating how to circumvent the tool, take that to another thread.

Re:Ask HN: How do you manage Facebook/Whats App/Twitter/Emai... by WizzleKake on Thursday February 04, 2016 @04:03PM (#11037206)
you can just:

$ grep face /etc/hosts

Re:Ask HN: How do you manage Facebook/Whats App/Twitter/Emai... by jajern on Thursday February 04, 2016 @04:11PM (#11037245)
I don't see the point either way. Maybe they mean `echo '127.0.0.1 facebook.com www.facebook.com' >> /etc/hosts`?
Re:Ask HN: How do you manage Facebook/Whats App/Twitter/Emai... by zem on Thursday February 04, 2016 @04:32PM (#11037420)
it's declarative programming! you say what result you want and let the machine figure out how to get there.