Tuesday 8/27

Found the str files. They were going into /usr/people/hinshaw/public_html/dsg-thorax/scenesdir. Now they're going into my scenesdir.

Tried updating the structure list by parsing the str file, but the program runs out of memory on some scene files. It was slow even when it did work, because it had to keep checking ancestors and descendants and traversing the list over and over again. Now I'm trying to save a separate file that holds the list structure.

To do:
  1. Get list file saved, and load from it.


Wednesday 8/28

You can't make files from applets because of permission problems. But you can run cgi files, so I'm passing structures one at a time to saveList.cgi to be stored in a list file. This is a hack, but it's the best I can do for the applets, and I might as well do it the same way the whole time.

I guess I don't think it's appropriate to have a scene list to load from. There's no way to distinguish between users or separate their files, for one thing. It would be easy to make a list from the current session, but that isn't really very useful. With lots of users, we'd have problems with the images anyway... no reason to deal with one unless both are being addressed.

To do:
  1. Check highlight on save/load for S, NS, JSP.
  2. Put save/load into FME.
  3. Do add-ons.


Thursday 8/29

All the versions save and load correctly now, with both scenes and add-ons. The only improvement I can think of is saving files on the client machine, but I don't think there's any good way to do that.

Took out the image viewing part- it'll be replaced by a "put image in database" part. But just in case I want to put it back later, here's the code:
----
try {
    URL url = new URL(image);
    starter.getAppletContext().showDocument(url, "_blank");
} catch (Exception exp) {
    System.out.println("Save: " + exp);
}
----

To do:
  1. Ask Rati how to put images into database.
  2. Get a summary of Rati's Java code.


Friday 8/30

I can add an image without an annotation file, but those images aren't very useful. Someone named Ben might have to make annotation files for them, and Professor Shapiro says he does it by hand.

Theoretically, another way to do this would be to send an str file AS the annotation file for the image, because the image manager could then connect to the graphics server, load the .str file, and ask for a label at a point. This would be a useful capability to add, if enough images would come from the scene generator to make it worthwhile.

This whole time I've been trying to figure out the new server stuff, but something's wrong with it. I keep getting syntax errors, when I don't think I should. JJ says that the Oqafma server has been down. Until it's running properly, I can't do anything with that. So I spent most of today working on a website for the DMP.

To do:
  1. Start putting Rati's stuff into JSP.