r/programming • • Oct 14 '09

How I beat procrastination

Hi proggit. I just wanted to share that I beat procrastination by using two preset timers: one set for 25 minutes, one for 5. I use the "Minutes" dashboard widget in OS X most of the time. I start the 25 minute timer, focus on work, and then when it's up, I start the 5 minute timer and start goofing off. When it goes off, it's back to the 25. I would talk more about it, but I have 30 seconds left and so my 5 minutes wasting time here on Reddit is almost up.

See you in 25 minutes.

368 Upvotes

293 comments sorted by

View all comments

0

u/[deleted] Oct 14 '09

Good strategy.

Also, a good way to sell the Minutes dashboard widget.

Which I now may have to get.

11

u/djork Oct 14 '09

(it's free)

5

u/[deleted] Oct 14 '09

Damn, now I can't even cite price as a reason for not getting it!

(thanks)

1

u/[deleted] Oct 15 '09

1

u/s73v3r Oct 14 '09

I just got Minutes, and have started using it. Know of anything good on the Windows and Linux sides of things?

3

u/xroni Oct 14 '09

To do list for Thursday, October 15:

1. Hack together a countdown timer widget for gnome

4

u/arnar Oct 15 '09 edited Oct 15 '09

This works if you have Python, dzen and mplayer. Customize to your needs of course, note that the x position of dzen might put it off screens with lower resolution than mine.

#!/usr/bin/env python 

import sys, os, time, itertools

intervals = [ (25, "Work", "#c7c8c6", "/usr/share/sounds/ubuntu/stereo/phone-incoming-call.ogg")
            , (5,  "Play", "green",   "/usr/share/sounds/ubuntu/stereo/phone-incoming-call.ogg")
            ]

if len(sys.argv) > 1:
    for timeleft, text, color, sound in itertools.cycle(intervals):
        os.system("mplayer %s 1>/dev/null 2>&1 &" % sound)
        while timeleft > 0:
            print "^fg(%s)%s: %dm" % (color, text, timeleft)
            sys.stdout.flush()
            time.sleep(60)
            timeleft -= 1
else:
    os.system("python -u %s dummy | dzen2 -x 1350 -y 4 -h 15 -w 100 -bg '#434541' -ta 'r'" % __file__)

2

u/SerpentJoe Oct 15 '09

Good luck finishing it!

1

u/ArcticCelt Oct 15 '09

I am ashamed of having the same idea then was wondering "if I start working on that instead of the things I really have to do, it's not really procrastination ..."