| Recent Posts | About the Author | Navigation |
|---|---|---|
|
|
David is an occasional blogger, software engineer, Nintendo fanboy, liberal, news magazine addict, voracious TiVo user, and bibliophile. He was born in St. Louis, grew up in southern Indiana, and returned to St. Louis to attend Washington University. He hasn't managed to escape yet. He's a fan of free wine tastings, too many tv shows to name, and eating out. David makes his living developing web applications used internally by his employer. He doesn't blog about work because he's heard too many stories about that causing workplace troubles. There's more on the about page. |
|
| Recent Comments | ||
|
|
||
| Recent Photos | ||
|
|
||
I got the electronic fortune cookie done. It's available through the features section. At michael's suggestion, it will only give each viewer one randomly selected fortune each day. In CS-speak, this means that I seeded the random number generator with a combination of the day's date and the viewer's IP address. This ensures that different viewers get different fortunes (the IP address part of the seed), and that the fortune they get is constant throughout the day (the date part of the seed). Because I don't control the date on the server, I wasn't able to do extensive tests on this, so send me an email if you notice any bugs.
All of the fortunes are taken directly from fortune cookies, so don't complain to me if the fortune you get makes little or no sense. My favorite in that category is the fortune that says "We are very happy together." When I got that fortune, I wasn't sure who the other part of the "we" was, and I still don't know.
Anyway, I hope you like the electronic fortune cookie. If you have ideas for improving it, send me an email or leave us a note in the guestbook.
Posted by on 26 October 2001 at 11:25 PM


