April 26th, 2005
Source code for the old desktop
This is a really old entry — I will no longer vouch for its sanity.
I’ve decided to release the source code for my old desktop. It’s available in all it’s glory here. You’ll need these PHP libraries in order for it to work:
If I were you I wouldn’t have used the weather code. It sucks for these reasons:
- It queries the met.no server every page load, which is slow.
- It uses a somewhat ugly approach to getting the data.
- It’s very error-prone.
- It nags met.no’s server too much. God knows, maybe they’ll blacklist you after a while.
If you can’t get the script to work, here’s a short check-list:
- You haven’t created the MySQL database.
- You haven’t made the directory
template_c. - You haven’t added any feeds to the feed list.
- You haven’t added any fortunes to the fortune list. Check Wikiquote.
Enjoy.
Posted in PHP