Tuesday, January 21, 2003

180.0 -- 5 lbs. to go. I can almost smell it! It is a little depressing to look in the mirror though. I'm afraid there is going to be a little excercise between me and a decent body. Well, I knew 175 was really at the upper end of my ideal range anyway.

I have FINALLY gotten the new element preferences panel working in Scriptorium. There are some VERY weird errors that crop up when you don't get your retention strategy correct. Because of the multithreaded nature of the Obj-C runtime, bad accesses are difficult to trace. At one point, I had a valid pointer, but a null isa! Lesson learned?: don't return autoreleased objects from copyOnZone:
Cards tonight. We tried out Jeff's new tourney format. Had loads of fun. Came in second. We then played for another couple hours. I think I was $15 ahead when the night was over. Note to self---stick to cards, no craps.

Monday, January 20, 2003

180.5--sooo, close.
seems like I am time-shifting forward. I don't seem to get around to my entry until past midnight, so it is posted as the next day.

I am starting to spot a trend in my development. Today, I started messing around with how the ElementTagCells, simplifying how to create new cell types as Scriptorium progresses. Of course, this means I jacked with the preferences stuff, which I most certainly did NOT want to mess with. instead, here I am at 1am, still not finished with my tag preferences completed. However, I am much happier with the way the new preference pane is going to work. The fact that visible document structure (like tags, content, etc) does not have a one-to-one correspondence with tree nodes causes me a little consternation. I am also still trying to figure out how I want to do comments. Hold on... I think I just had an idea. (). Comments are weird. They are like really big tags.... same goes for CDATA.

Met Jeff and Eric at Scotty's to talk about the poker tourney. E. asked about Hospital work. It would be nice to get a paying gig. I am tired of being on a shoestring. Damn this PhD thing....

Sunday, January 19, 2003

Got the sinks installed in the bathroom vanity today. Kristin was pretty excited to see me get off my ass and actually get some work done on the house.

Progress on Scriptorium continues a pace. I got comment/entity and CDATA tags looking a little better today, and got the selection code up and running. There seem to be an infinite number of ways to approach editing XML. I am basically just trying to implement what *I* think is the most intuitive. I just have to hope that other people are looking for the same thing. In particular, deciding how much free-form editing, versus DTD constraints to allow always gives me pause. With proper selection semantics working (if you select the end-tags for a node, you select the whole node), I should be able to guarantee that users are working with self-contained sub-trees. This is going to come in handy with selection replacements, copy/paste, etc.

The real trick is going to be determining when to check for validity when editing inside a document. For example, cutting out a subtree to replace it will invalidate the document, but the user is obviously GOING to fix it. Current thinking: tags go RED when there is an error in a node (with tooltips, etc. to indicate the prob). Use a background thread to validate the document as changes are made, updating what parts of the document are and are not valid. As users bring the sections into validity, the tags will change from red to their normal color.