-*- org -*-

* Reordering Footnotes
** Requirements
This code only depends on cl-ppcre, which is asdf-installable:

(asdf-install:install 'cl-ppcre)

Once that's done you can load the code via asdf:

(asdf:oos 'asdf:load-op :tasks)

** Usage
Given a text file with footnotes there are two functions you may use,
depending on how the footnotes should be reordered:

If the reordering is to be done based on their order of appearence in
the @footnote section:

(footnotes:reorder-footnotes-by-order-listing-order "filename")

If the reordering is to be done based on their order of appearence in
the text:

(footnotes:reorder-footnotes-by-order-of-appearence "filename")

* A Simple Music Database
** Installation
*** Requirements

This application relies on three libraries:

1) elephant - http://common-lisp.net/project/elephant/

elephant provides a transparent persistent lisp system.

In order to install elephant you will need to first install oracle's
berkeley db (http://www.oracle.com/technology/products/berkeley-db/)
v4.5. elephant unfortuntetely is not asdf-installable, so you'll need
to download it yourself from:
http://common-lisp.net/project/elephant/downloads.html

2) cl-who - http://www.weitz.de/cl-who/

A lisp html writing library. cl-who is asdf-installable:

(asdf-install:install 'cl-who)

3) hunchentoot - http://www.weitz.de/hunchentoot/

hunchentoot, a pure lisp web server, is also asdf-installable:

(asdf-install:install 'hunchentoot)

*** Setup
You will need to create a directory named /tmp/music which will hold
the berkeley db. The code also assumes port 8080 is free, so you'll
need to stop any services running on that port. Finaly you can load
the code in the same way as the footnote code:

(asdf:oos 'asdf:load-op :tasks)

and start the server with:

(music:start-music-server)

To create a few sample ablums and genres just call
music:insert-sample-data after the database has been opened.
** Usage
After having loaded the TASKS system into your lisp via:

(asdf:oos 'asdf:load-op :tasks)

Start the server with:

(music:start-music-server)

Then simply point your browser at http://127.0.0.1/list to search and
view albums. You'll find both edit and search links at that url.

To stop the server you can should use:

(music:stop-music-server)


