Fun & Games - Fortune Cookie

Description: Back in the day most geeks I knew would run fortune in each new shell they opened. Long gone are the days when all work was done through a command window. With Dashboard I think it has a perfect new home.


(Technical Note: I tried a few things in this widget that I really hadn't seen used yet and would enjoy feedback. One thing off the top of my head was the placement of the compiled fortune code in the .widget bundle. It decreases system dependencies but greatly increases the widget size as well as introducing the possibility of multiple fortune installs on a system, but I think it's worth it.)
Author: chaosflutterby
Version: 0.2a
Uploaded on: July 8th 2005 at 4:04 AM
Rating: (4 stars)   [Show Detailed Ratings]
Downloads: 2781 (all versions), 2774 (this version)
    Download Now »



Great widget! You're quite right about compiling fortune into the widget... not only having less dependencies, but also increasing speed (widget system calls seem to have high latency).

I was thinking, perhaps for a future release, that adding a user preference for the '-o' flag might be nice... for those who like offensive fortunes.

Posted by: jyee on Feb 22, 05 (10:26 PM) for version 1.0 (previous version)  

Thanks for the feedback. I'm actually hoping to add a configuration panel to allow people to re-weight the fortune mods as well as turning on and off the offensive ones.

I did cheat a bit on the widget latency. I snuck a call to generate the next fortune into the on-hide event so no work is actually being done when you call Dashboard. This is cheating, but since it's so low impact I thought people would prefer "paying" for the fortune when they dismissed Dashboard instead of when they evoked it.

Posted by: chaosflutterby (developer) on Feb 23, 05 (12:27 AM) for version 1.0 (previous version)  


Posted by: Rothlis on Feb 23, 05 (9:12 AM) for version 1.0 (previous version)  

I can't comment on how it works since my copy of Tiger is in the mail somewhere....

Anyway, would it be possible to have a setting so this widget calls upon my fortune collection?

Posted by: libwolf on May 06, 05 (7:47 AM) for version 1.0 (previous version)   View Detailed Rating

You Must Log In to Post Comments

Remember Me
Create an account | Password Reminder