Erik Forsberg's diary for April, 2002

[2001]
[2002-01] [2002-02] [2002-03] [2002-04]

Sunday 2002-04-28

00:54

I'm thinking about designing the ultimate CD record registry. Things I want:


* Store the EAN number, for integration with barcode reader.
* Store Title, Artist(s) and perhaps link to freedb's data about the CD.
* Put CDs in categories. A CD might be in several different
categories.
* Web-based.
* In the future - several users, but only one record in the database
for each cd. EAN as unique key.
* Possibility to comment a CD - both for the owner of the CD, and
perhaps for other people.

01:50

More stuff to store: A link to the allmusic.com reference for the artist.

Sunday 2002-04-21

17:31

Mailman gave this error message:



Traceback (innermost last): File "/home/mailman/cron/checkdbs", line 92, in ? main() File "/home/mailman/cron/checkdbs", line 43, in main count = mlist.NumRequestsPending() File "/home/mailman/Mailman/ListAdmin.py", line 96, in NumRequestsPending self.__opendb() File "/home/mailman/Mailman/ListAdmin.py", line 69, in __opendb self.__db = marshal.load(fp) EOFError: EOF read where object expected

..in the daily checkdbs cronjob. Removing a empty requests.db from the list that was failing removed the error message. However, finding the failing list was not that easy.. I did some pythoning, but you could also use 'find', to find the file with size zero.

Friday 2002-04-05

18:50


print "foo",

in Python won't add a newline after, but only a space.

Tuesday 2002-04-02

23:25

If you add a line like this one:

<link REL="shortcut icon" HREF="/favicon.ico" TYPE="image/x-icon">

and then put a favicon.ico in Windows ICO format where the HREF points, some browsers will show the icon with the URL, both in the location field and if the user bookmarks your page.

I found some nice Penguins in ICO format here: http://www.willamowius.de/linux.html . I use one of them for http://www.lysator.liu.se/~forsberg/linux/ .