Pat Gunn (dachte) wrote,
Pat Gunn
dachte

Netdiary updated.

I updated my netdiary code, finally, to do what I've been thinking about fora long time. Netdiary is still an ugly little script, but at least now theoutput is better. Both versions have a main summary page, which contains themost recent entries. They then have a link pointing to events further back,which in turn point forwards and backwards, all the way back to my firstentry, on 2 July 2001 (which, by the way, was actually the continuation ofa private journal called my explanatory. That journal was in 2 parts. The(very small) first was lost in a computer glitch, after that, I startedit again, and the first entry seems to be 21 June 1997. However, I'm now unsureif I actually have it all -- it only goes to 29 September, and although I knowthat I didn't use it for too long, I think I might've used it for longer thanthat. Well, find only found that copy that inspired me to write about it justnow. Maybe the below will be able to find a different copy in my backupdirectory:$ foreach i ( *.tar.bz2 )foreach? tar tjf $i | grep explanforeach? end

Bleh. Creeping featurism wins the day -- I just thought of somethingelse I'd like my netdiary code to do -- warn me when I have 2 entries withsimilar titles. Of course, on the client side, everything just happens ina plain text editor, so I need to heuristically decide what 'looks like' atitle, and many entries don't, because early on I never really intended forentries to have them. Maybe a good rule of thumb is that if an article hasa line of text at the start of the article, with a blank line afterwards,that line of text should be considered the title and handled accordingly.I'll need to see if that rule is well-behaved for my entries. Ahh, thejoy of heuristics, where 100% accuracy is unlikely and you're really aimingfor 'good behavior most of the time', you're attempting to impose orderthat's not entirely there to begin with, and usually there are many waysto get the job done, with varying results. It's important for programmersto have mastery of both algorithms and heuristics, which is why programmingis both a left brain and a right brain activity, an art and a science.Order and Chaos..

Anyhow, I'll put that feature off for another day. Hmm... the explanatorydidn't turn up anywhere else. So, either that's the only copy I have, orthere's another copy on one of my CD backups.

Tags: blog
Subscribe

  • Revising Dreams

    Dream:I was in some strange kind of situation where I had just managed to escape some kind of captors in a large school, but didn't feel safe to…

  • Visiting a Dream Element

    Just had an extended conversation in a dream.. I may have written about this before here. If so, this is an elaboration. One of the things that was…

  • Half-written dreams

    Last night I had a strange dream that was operating from the certainty that I was going to have a baby (not physically), but didn't actually provide…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments