Hmph! I had my QotD queue filled in through mid-April, and last night I whacked it with 'vi'[*] to change all the "www.livejournal.com/users/whatever" URLs to the "whatever.livejournal.com" format ... and when I copied all those URLs out to a separate file to turn into a test script to make sure I hadn't bollixed anything, I discovered that a couple of people had taken previously-visible entries and locked them down (made them private or friends-only) sometime after I had copied them to the file my QotD script reads. One entry is no longer visible to me at all. Another is visible to me but no longer public (so it wasn't visible to a not-logged-in instance of 'lynx', which made the change of privacy status easy to spot).
I'm guessing the authors would've gotten upset if I hadn't noticed this before those quotes got posted. While I copied them in good faith from publically viewable journal entries, having them appear in my journal weeks or months after the authors changed their minds would probably have been somewhat alarming. But it's mere luck that I noticed in time. (If anyone else makes a quoted entry private between my writing this and the next couple days' quotes being posted, the irony will be positively painful.)
Now to go rearrange the queue again. Since I did notice in time ...
Right now I edit the queue file by hand, cutting and pasting lines to reschedule a quotation. At some point (awaiting the elusive Round Tuit), I'd like to increase the amount of automation. I'd like to switch from a straight text file to some sort of database, so that I can drop some new quotations in with a "schedule this whenever" flag (perhaps with some "theme" codes so that the "whenever" quotes don't wind up being four political ones in a row or a straight week of religion), and add others with instructions to tie them to specific dates. At the very least, it'd be nice to be able to move quotes around as atomic objects rather than sets of lines in an editor buffer, and to be able to say, "bump everything from here on forward a day to make room for this new topical quote, except for the ones tied to holidays and anniversaries".
Ifwhen I ever get around to doing that, I guess I'd better add some code to check whether referenced journal entries are still public and whether URLs for newspaper articles are still valid.
And if I ever do put together a streamlined, user friendly quote-management-and-scheduling database system, I wonder whether anyone else would have any use for my code, or if it'd be a very D'Glenn-specific tool. Does Ugol's Law apply to software requirements?
[*] I love using a Real Editor (and I'll concede
that even those heretics who prefer Emacs are at least using
a Real Editor as well). Anybody who uses a decently powerful editor
-- probably more than half my friendslist at a wild-ass guess --
already knows why it's a good thing, and most likely already knows how to do this in whatever editor they use.
But just in case anyone who doesn't is curious what the fuss is about power tools,
when I say I "whacked the file with 'vi'" I mean that I used a single
command in the editor:%s=www.livejournal.com/users/\([^/]*\)/=\1.livejournal.com/=
to change all forty two LJ URLs in the file
at once (which also would have worked in 'sed', of course). If I'd had more
than one LJ URL on the same line anywhere in the file, adding a 'g' to the
end of the command would've taken care of those as well. When I try to use anything less powerful to edit text, it's a difficult mental adjustment. Doing this with a macro in Word Perfect 4.2 (or WP Program Editor) would have been very different, but nearly as quick. Trying to make changes like this using underpowered tools (including most of the pretty little "oh we use a mouse now to edit text" editors that seem to be everywhere[**]) just frustrates me.
[**] Which isn't to say that there can't be a Real Editor that's also Extremely Mouse Friendly that I just haven't run into yet... (not that I'm particularly looking for one, being so accustomed to 'vi').
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
(no subject)
And yeah, if you put together that tool, I'd likely use it. :)
(no subject)
gvim :) (Well, at least it tries.)
Actually, OS/2 had an "Extended Editor" which was more or less a port of IBM XEDIT to a GUI environment, with modern enhancements (such as regexps). You could use it as a gui, or script it in REXX. Of course, XEDIT was itself rather a lot like an IBM-ified Emacs.
(no subject)
Textpad
It does have one advantage over gvim on a Windows box which is that, if you set it up as the default text editor on a machine used by more than one person, you don't have all the other users cursing your name.
(no subject)
Python and some kind of backend database. For this, MySQL is probably more than enough, or even SQLite. (The latter ships with Mac OS X now, so that gives it a bit more "works where I want it to, out of the box" advantage to me.)
I need to think about how to set up the implementation for locked dates and then the "queue behind" behavior. I have some ideas, though.
As for real editors: I'd rather use ed than Notepad. I can get useful results with ed.