eftychia: Me in poufy shirt, kilt, and Darth Vader mask, playing a bouzouki (vader)
Add MemoryShare This Entry
posted by [personal profile] eftychia at 05:35am on 2006-01-30

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').

There are 11 comments on this entry. (Reply.)
 
posted by [identity profile] thette.livejournal.com at 10:49am on 2006-01-30
It'd be a very useful system.
 
posted by [identity profile] dglenn.livejournal.com at 11:07am on 2006-01-30
Ah! Additional incentive to put it together then! And, I suppose, a clue regarding my question about Ugol's law. ;-)
 
posted by [identity profile] badgerthorazine.livejournal.com at 11:03am on 2006-01-30
I don't know what that law is... but I'd sure find a quote software thingie useful!
 
posted by [identity profile] dglenn.livejournal.com at 11:11am on 2006-01-30
Ugol's Law is basically that if you ever find yourself asking, "Am I the only person who's into [______]?", the answer is, "No." Named for the person who pointed it out back in the a.s.b days, Harry Ugol.
 
posted by [identity profile] badgerthorazine.livejournal.com at 11:20am on 2006-01-30
*giggles* Ayup. I've collected quotes for many many years... "Hotel security has requested that there be no spanking in the lobby."
cellio: (Default)
posted by [personal profile] cellio at 03:31pm on 2006-01-30
"The Web brings people together because no matter what kind of a twisted sexual mutant you happen to be, you've got millions of pals out there. Type in 'Find people that have sex with goats that are on fire' and the computer will say, 'Specify type of goat.'" - Rich Jeni
gingicat: deep purple lilacs, some buds, some open (Default)
posted by [personal profile] gingicat at 11:51am on 2006-01-30
FWIW, you have blanket permission to quote me, open or locked entry.

And yeah, if you put together that tool, I'd likely use it. :)
geekosaur: orange tabby with head canted 90 degrees, giving impression of "maybe it'll make more sense if I look at it this way?" (Default)
posted by [personal profile] geekosaur at 12:54pm on 2006-01-30
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').

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.
ckd: small blue foam shark (Default)
posted by [personal profile] ckd at 06:42pm on 2006-01-30
Mmm, XEDIT. That brings back some memories.
 
posted by [identity profile] odaiwai.livejournal.com at 02:32pm on 2006-01-31
Textpad (www.textpad.com) is a pretty friendly Windows editor which can do regexps and syntax highlighting and is mouse friendly. It's Shareware rather than Donation Ware (like Vim), which may be a problem depending on your philosophical stance on that issue.

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.
ckd: small blue foam shark (Default)
posted by [personal profile] ckd at 06:48pm on 2006-01-30
Some quick musings on what I'd use for that system:

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.

Links

January

SunMonTueWedThuFriSat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24
 
25
 
26
 
27
 
28
 
29
 
30
 
31