Live data from Hacker News

Show HN: Block yourself from the Internet until you write or code each day

blockr.me

71–80 of 99 posts

Re: Show HN: Block yourself from the Internet until you write or code each day

#71
post #6

Does this block all internet? How can you code well without resort to some googling? Edit: By this I mean it would be preferable if I can leave some sites up, like SO for instance.

I had to deal with shitty, shitty Internet once. I downloaded the docs ahead of time when I did have a good connection. Then when you're online later, what you still haven't figured out you attack. It is not really that hard, I think it is just a culture shock for some to not have the Internet nearby. It was for me.

But sometimes completely unanticipated problems come up and you need stackoverflow... I'm not even sure how I did any work pre-internet. I know troubleshooting took me significantly longer back then, but I was also less experienced.

Re: Show HN: Block yourself from the Internet until you write or code each day

#72
Do commitment devices like this actually work for anybody? I've never known anyone who struggled with procrastination or any other vices that prevent them from getting work done and had their problems solved by a tool like this.

The pomodoro technique seems like it would be more effective for motivating you to work since it immediately rewards your efforts with a short break from your tasks.

Re: Show HN: Block yourself from the Internet until you write or code each day

#73
post #18

Prepare a hosts file as 127.0.0.1 news.ycombinator.com 127.0.0.1 reddit.com 127.0.0.1 twitter.com etc A shell script to rename the regular hosts file and this one at will. Add it in cron if you want it scheduled.

I did this for a while but I just ended up editing my hosts file every time I wanted to stop working. Maybe I just need to practice more self discipline.

Re: Show HN: Block yourself from the Internet until you write or code each day

#74
Lots of people commenting if your code is fun you shouldn't have to restrict yourself, blah blah blah. That's not the problem. The problem is how easy it is to instantly distract yourself. Taktaktaktaktak "Oh hey, I wonder if so-and-so replied on my Facebook, let's just to a quick look.." 5 hours later "Oh snap, the time just flew by!"

If you're serious about blocking yourself from parts of the Internet, do it comprehensively. Here's what I do.

Most of the advice on this page is blocking from the browser-level or OS-level. This is easy to bypass, and you have to configure every device. You need to work at the router-level.

Let's talk blocking. A complete blacklist is wrong, you still need some Internet to Google or ask for help. e.g. stackoverflow.com, etc. Similarly, whitelists don't work because you can't possibly list every site you may need access to -- you may not know they exist yet. You need a keyword-matching blacklist.

You need two things:

1. WRT54GL router ($20-$50) 2. Tomato firmware: http://www.polarcloud.com/tomato/

Vendor firmware usually has access restrictions, but they usually limit it to like 10 websites, and it usually doesn't have pattern-matching. You need a 3rd party firmware like Tomato.

Install the firmware per instructions from its website. It's really easy. The firmware has a page called "Access Restrictions". It does keyword blacklists/whitelists. You can block yourself for only certain hours of certain days. Here is an easy video tutorial from their website to guide you: http://www.polarcloud.com/v/screst.htm

For example, one keyword I use is "news". BAM! All URLs with the word "news" instantly blocked. Good. I don't need to be reading news when I should be coding. Resources like stackoverflow.com don't usually put "news" in their URLs, so they're safe.

There is the problem of unplugging the uplink from the router and directly into your computer (bypassing the router), or simply reconfiguring the router without restrictions. If you lack that much self-control, which I can understand (as I do too!!!), I recommend locking your router in a electrical enclosure and throwing away the key. Ok, not really. I made a cron job for the router that changes its login password to gibberish at some hour of the day, and X minutes prior it sets it to my normal password. Thus, I have X minutes of access to the router per day, should I need it.

Re: Show HN: Block yourself from the Internet until you write or code each day

#75
post #17
post #6

Does this block all internet? How can you code well without resort to some googling? Edit: By this I mean it would be preferable if I can leave some sites up, like SO for instance.

Currently you will have to open a different browser if you want to google something. I'm considering adding a blacklisting/whitelisting option but I was going for minimalism with v1.

I would whitelist the hosts, stackoverflow.com, google.com, and dev* - should cover 90% of productivity related websites :)

Re: Show HN: Block yourself from the Internet until you write or code each day

#76
post #25

If what you're working on is important enough and you love it enough, you would never need this. If not, then maybe you're working on the wrong thing. Let's stop treating the effect of poor work habits and deal with the cause: find something better to work on. [EDIT: I'd stay and reply to your great responses guys, but I'm not here anymore. As compelling as this discussion is, the real-time CRUD/robot interface I'm w…

Do you have any evidence at all? Because history is filled with writers who get away from all the distractions so that writing is the only thing can to do.

Personally, I think you're confusing important with easy. When I find a video game I like, I can play it for hours. But that's because it has been optimized for playability. But when writing or coding, sometimes I get frustrated. What I'm going may be important, but it isn't always easy, and that's when distraction will strike.

Re: Show HN: Block yourself from the Internet until you write or code each day

#78
post #25

If what you're working on is important enough and you love it enough, you would never need this. If not, then maybe you're working on the wrong thing. Let's stop treating the effect of poor work habits and deal with the cause: find something better to work on. [EDIT: I'd stay and reply to your great responses guys, but I'm not here anymore. As compelling as this discussion is, the real-time CRUD/robot interface I'm w…

From the safety of my throwaway account, I have to ask a question of HN that's been bugging me for some time: Am I the only person who, if not for the need to support my family, might blissfully while away his days playing games, playing with new tech, reading, watching TV or movies, and just generally goofing off? Maybe I'd regret my wasted life one day, but in the here and now there's a lot of fun to be had in the…

Since you have a family, it probably has been a while since you goofed off for an extended period. But for me it always gets old. There is only so much time I can spend doing nothing before I get hungry for something of substance.

Note that raising kids is a very substantial activity. I've taken the summer off to hang out with my brother and his family. Even a lot of the nominally fun time with kids means I'm helping educate, build character, and encourage good habits. So maybe the energy you would otherwise put into making a product is going into making a family.

Re: Show HN: Block yourself from the Internet until you write or code each day

#79
post #18

Prepare a hosts file as 127.0.0.1 news.ycombinator.com 127.0.0.1 reddit.com 127.0.0.1 twitter.com etc A shell script to rename the regular hosts file and this one at will. Add it in cron if you want it scheduled.

I did this for a while but I just ended up editing my hosts file every time I wanted to stop working. Maybe I just need to practice more self discipline.

A workable substitute for self-discipline is to make it hard enough to do the bad thing that either your laziness or your better nature wins out.

E.g., I don't keep cookies in the house. Instead, I go to the store if I want some. It's pretty rare that I'll overcome my laziness enough to head out for them. And then on the way I often come to my senses.

In this case, I might make it harder to edit the hosts file. E.g., a daemon that puts the block back automatically unless I solve 25 captchas.

I also really like LeechBlock's option to insert a 30-second pause before viewing banned websites. Since it cancels the countdown if the window loses focus, I have to just sit and wait for half a minute. 90% of the time I'll say, "But I don't even want to look at Facebook now," close the window, and get back to what I want to be doing.

Post reply on HN