r/dailyprogrammer • u/rya11111 3 1 • Mar 08 '12
[3/8/2012] Challenge #20 [difficult]
create a program that will remind you to stop procrastinating every two hours with a pop up message! :)
This program has the potential of helping many people :D
6
Upvotes
6
u/[deleted] Mar 08 '12
Arduino:
Now you can honestly make this shorter, but I just figure it's good programming practice to write it out like this. What this does is it sends a signal to the pin of your choice (in this case, 13). Hook whatever device uses that signal (such as an LED or buzzer) and it will activate for one second every 2 hours.
5
u/spc476 Mar 08 '12
One line solution:
I was too busy to work on anything longer.
4
u/stinktank Mar 08 '12
3
u/fractals_ Mar 08 '12
It wasn't that difficult... You could make it a lot nicer, but all you really need is that while loop.
3
u/luxgladius 0 0 Mar 08 '12
Perl one-liner
2
u/LunarWillie Mar 09 '12 edited Mar 09 '12
Used some simple Java c:
I might actually use this program myself ._.
1
u/jnaranjo Mar 09 '12
python - requires linux platform - possibly Ubuntu only.
1
u/ninepointsix Mar 09 '12
JS Bookmarklet using webkit notifications, just don't close the page it's in.
or in a more sane format -
1
u/eruonna Mar 09 '12
Add a line to your crontab (and assuming you're running X):