-- William Gibson, All Tomorrow's Parties
Yesterday was somewhat productive. Got to work, and messed with Cognition reporting: Now all reports and templates are stored in the database, completely user-customizable. If no template has been specified, it just uses a generic one.
A simple example of that code. It works pretty well, though I think it's rather ugly. I have to use DBI instead of CDBI as I'm allowing the user to run completely arbitrary SQL. Gratz to jester for the sth_to_objects hint, and to mst for confirming that while it's gross, it's a decent solution. Yay #catalyst. :)
Once I have the tiered ownership checking in place, some users will be able to add group or global reports as well. Which is roughly how the rest of the app works anyway. Overall I was pretty happy with it.
I got home, read for a bit, then took a three hour nap. When I got up, out of pure boredom I "reorganized" the living room. The catalyst for this was actually the fact that I had four boxes of books from Amazon waiting on my desk yesterday morning, and we'd run out space on our bookshelves. So, me being me, I took that as a sign to move the couch to the other side of the living room, sweep and ghetto-mop the floor, and generally fuck with the layout of the room.
Not very happy with it, but it should be better once the entertainment center I ordered comes in. Need to get some longer coax for the satellite TV box, which is more or less where it was -- now on the wrong side of the room. Makes channel surfing a bit annoying.
I did free up four shelves for books, and once the center is in, that should free up another four (as I can move Pete's DVDs to that, and off the bookshelf).
I wasn't very sure how Pete would react to my moving shit around, but in typical Pete fashion, he was completely apathetic. He came home pretty wasted in the middle of me making a mess, and could barely get in as there was shit in front of the door. He almost knocked the TV over. :)