if (oldbit == true) { if (newbit == true) { /* DO NOT DO ANYTHING */ } . . .
The Daily WTF showcases badly written code. (Cited by Ned Batchelder, who found it from Bob Congdon.)
if (oldbit == true) { if (newbit == true) { /* DO NOT DO ANYTHING */ } . . .
The Daily WTF showcases badly written code. (Cited by Ned Batchelder, who found it from Bob Congdon.)
Looking up the Constitution of the State of California for a discussion on secession, I noticed this doubly odd provision (article 3 section 2):
The boundaries of the State are those stated in the Constitution of 1849 as modified pursuant to statute. Sacramento is the capital of California.
Why incorporate a superseded law by reference rather than explicitly? And why put in the constitution something that is subject to alteration by ordinary statute?
I’ve just written my first cron job, to sort my Mozilla bookmarks by last access (since Moz won’t do it properly). Seems to work. Woohoo!
I learned just enough from the Llama Book to do it crudely, but not enough to do it quite the way I’d like to.
(Later: rewrote it more to my liking in Python.)
In other news, summer is suddenly over: after a series of heatwaves, this morning it’s intermittent heavy rain.
In Angel episode 4:8 “Habeas Corpses”, there’s a long scene where Our Heroes have to fight off a horde of zombies with nothing but their fists. It’s twice as tricky as it might be, because one hand is busy holding a sword or axe.
I guess it’s expensive to film multiple decapitations.
Ah, hell. Suddenly my Yahoo password doesn’t work, and I can’t recover it — because I never told Yahoo my true birthdate, and of course I’ve long forgotten whatever bogus birthdate I filled in way back when.
I much prefer sites that let you choose your security question, e.g. “your first pet’s name” or “the street where you lived at age 7” — oh, wait, that’s how to get your stripper/dragqueen name. (Mine is Smokey Florecita: not bad eh?)
Later: networking works for me, for once: my mole inside Yahoo promises to look into it.
Mister Roberts (1955) is the dullest movie I’ve sat through in some time. I did not turn it off because the characters have enough potential that one keeps thinking something might happen.
I was mildly surprised to find that To Catch a Thief (1955) is in color; I must have seen part of it before 1981. — The phrase cat burglar is never used in the film; how old is it?
Samurai Trilogy (1954-6) might make more sense if the subtitles covered more than half of the dialogue.