da: A smiling human with short hair, head tilted a bit to the right. It's black and white with a neutral background. You can't tell if the white in the hair is due to lighting, or maybe it's white hair! (Default)
da ([personal profile] da) wrote2007-12-11 07:18 pm
Entry tags:

"Isn't that just a join?"


At the dinner table:

d: What's on your to-do list that you're stressed about? Is there anything I can do to help?

D: [touched] Thanks for asking, but I don't think so. I've got a small pile of things to do for flgbtqc, their mailing list cleaning-up at the top of the list- it's being more complicated than I thought it would be.

d: What's that involve?

D: Mostly, removing 200 names from a list of 900, where we have a separate list of updates for the 200.

d: Isn't that just a join?

D: Well, yes, sort of. The program I wrote does compare the first and second columns in the two lists; but I'm not doing it with SQL, so-

d: [interrupts] I should point out that I've never written a line of SQL in my life. And also, that phrase, "Isn't it just a join," has turned out to be quite useful a few times when I'm talking about databases to people who do understand them.

D: ... [laughs]

d: But you have to admit, it's a useful phrase.


Why yes. Yes, it is. And now we all know your secret. *evil cackle*

[identity profile] dawn-guy.livejournal.com 2007-12-12 01:58 am (UTC)(link)
So now I'm sitting here wondering whether you're doing it from the shell (call me old-fashioned if you will: sort, awk and comm are numbered among my friends) or writing it in Perl or PHP.

[identity profile] da-lj.livejournal.com 2007-12-12 02:47 am (UTC)(link)
I wrote a perl script that doesn't do it properly yet. :)

However, I have just now used comm for the very first time ever (and you may now giggle into your sleeve at people these days who claim to know unix). I may just might be able to save a whack of time overall by comparing those three columns- the output's just a titch more intuitive for this purpose than diff.

*hugs his awk and sort, brings comm into the hug as well*

[identity profile] da-lj.livejournal.com 2007-12-12 05:40 pm (UTC)(link)
*raises eyebrow*

;)

[identity profile] icedrake.livejournal.com 2007-12-12 03:53 am (UTC)(link)
Okay, so I'm pretty sure you're cap-D and he's script-d. But just in case, I'll ask. And won't jump to assumptions about what that implies about you two :)

[identity profile] da-lj.livejournal.com 2007-12-12 11:25 am (UTC)(link)
Heh. Feel free to question your assumptions around here anytime.

He's socially been 'dan' since his early college days, and he's stuck with that; I guess one of a few social conventions he's stuck with over 15+ years? (Along with singing loudly while walking, etc etc.)

But his work webpage is conventionally capitalized nowadays. :)

[identity profile] da-lj.livejournal.com 2007-12-12 05:45 pm (UTC)(link)
OK, it isn't- I was mostly picturing the top line of text when I wrote to Dan. It's mostly not conventionally anything, but there are, you must admit, capital letters attached to your name in *some* conventional places. :)

[identity profile] melted-snowball.livejournal.com 2007-12-12 05:49 pm (UTC)(link)
Yeah--it has my name in caps, too. But the title is not.

[identity profile] melted-snowball.livejournal.com 2007-12-12 03:00 pm (UTC)(link)
Such assumptions would be unwise indeed.

[identity profile] persephoneplace.livejournal.com 2007-12-12 04:16 pm (UTC)(link)
this has made me giggle - several times :)

[identity profile] melted-snowball.livejournal.com 2007-12-12 05:45 pm (UTC)(link)
It was a particularly giggle-oriented dinner for us, as well. :-)

[identity profile] jeanne-d-arc.livejournal.com 2007-12-12 08:30 pm (UTC)(link)
If it's any consolation, I, too have stressful to-do work for FLGBTQC. Our office's computer lab is not yet running, so I can't transfer the newsletter to CD yet.

[identity profile] da-lj.livejournal.com 2007-12-12 10:26 pm (UTC)(link)
I just sent you an email...

[identity profile] sulle-stelle.livejournal.com 2007-12-13 01:57 am (UTC)(link)
I knew SQL once. I took this really awesome DB class. Too bad I've forgotten all of it. It sounds pretty easy to do, though. Do you know a sql person who can look at what you're doing?

perl/sed/awk would all work, though, too. Just not as efficiently.

[identity profile] da-lj.livejournal.com 2007-12-13 02:20 am (UTC)(link)
Heh. Would you believe I used [livejournal.com profile] dawn_guy's suggestion and did what I needed to with awk, sort, and comm? In under an hour to sort out the 200 records, with fewer annoying parts than figuring out an automatic answer.

I'd never seen comm; it's like diff but sorts into visual columns. I like that.

Now, I just have to strip out the Libraries, Meetings, and Collections, because they're permanently getting the printed copies.

Versus the big list of 800 people who didn't reply, since it's been decided by an ad-hoc committee including Clerks and our WONDEROUS treasurer (hi Stasa!), all valid addresses will receive one more newsletter with a friendly "resubscribe here" notice.

*stops talking about it and goes to do it* ;)

[identity profile] morgan-starfire.livejournal.com 2007-12-14 10:18 pm (UTC)(link)
Me? You, oh tiara'd one, totally rock, and are helping to keep me sane, besides. I bow down before thee.

[identity profile] da-lj.livejournal.com 2007-12-15 04:32 am (UTC)(link)
You can't bow down before me if I'm bowing down before thee first, Ms. jump-right-in-with-the-volunteering. :)