Pat Gunn (dachte) wrote,
Pat Gunn

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

  • Typing in Colours

    (Cross-posted to G+, but it's more of a definitive statement of views so it goes here too) A recent instance of 「Wasted Talent」: here I'm not…

  • Loyalty

    This is meant to address three ideas: Don't blame the victim If you care for me, you'd support me unconditionally Safe zonesAnd to be a topic in…

  • What Do We Owe Each Other?

    One of the central questions in political philosophy, or perhaps one of the most intuitive initial framings, is "what do we owe each other?". I…

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded