Web Design is Like Pizza
Monday, January 15th, 2007 Posted in Web Design | No Comments »When web designers switch from focusing on a single browser (usually Internet Explorer) to developing cross-browser sites (usually adding Firefox, sometimes Opera or Safari, ideally all three), they often find that things don’t work as expected in the “new” browser. This can be for a number of reasons, including:
- Bugs or “missing” features in the new browser (whether incomplete support in the new browser, or proprietary features in the familiar browser).
- Broken code on the website being handled differently.
- Different defaults where behavior isn’t well-defined in the specifications.
A big problem is that when you get into the code, a lot of pages aren’t as specific as the authors think they are. When you write code and test it on one browser, you’re not testing that the code is correct, you’re testing that that browser makes the same assumptions you do.
It’s like ordering pizza.
No, really. Let’s say Internet Explorer specializes in Chicago-style pizza, with a thick, chewy crust. And let’s say Firefox specializes in New York-style pizza, with a thin crust. But each can make the other style of pizza on request.
So you call up Internet Explorer and ask for pizza. They deliver you Chicago pizza, and if that’s what you wanted, you figure your order is fine. If you actually wanted New York style, you make sure that next time, you tell them you want that style of pizza.
But let’s say you like Chicago pizza. You get used to calling up IE and just asking for “pizza,” until one day you’re busy, and ask your roommate to order it. He likes to get his pizza from Firefox, so he calls them up, asks for “pizza,” and you get New York style. That’s not what you wanted. Obviously, Firefox pizza is inferior, because they got the order wrong! Well, no, it’s not, and no, they didn’t. They delivered what they were asked for. If you’d told your roommate to ask for Chicago style, Firefox would have been perfectly happy to deliver that style of pizza.
The moral of the story: always be specific with your code. Make sure it’s asking for what you think it’s asking for (validation helps here). And if something doesn’t do what you expect, make sure you didn’t leave that expectation out of your order.
See also: No, Internet Explorer did not handle it properly
(Expanded from a comment I posted at Mozillazine.)
Fantastic Films?
Sunday, January 14th, 2007 Posted in Sci-Fi/Fantasy | 2 Comments »2007 looks to be a good year for fantasy adaptations, at least of books I’ve read. What I’ve seen of Stardust (Neil Gaiman & Charles Vess) looks great. I’m psyched up for His Dark Materials: The Golden Compass (Phillip Pullman)—and I’ve got to say I’m glad they’re doing each book as its own movie, instead of trying to condense the whole trilogy. And Harry Potter and the Order of the Phoenix (J.K. Rowling, as if you didn’t know) looks promising as well, though most of the Harry Potter films have suffered from condensing too much.
I’m a little more apprehensive about The Dark is Rising (Susan Cooper), mainly because the IMDB page says they plan to start early this year, but the Los Angeles Times has it down for a September release. For the record, I do think this is the one to start with, not Over Sea, Under Stone, because as I recall it has a much greater sense of tension, which will translate better to screen. Plus it provides more of an introduction to the world and the conflict, since Will is dropped right in the middle of it, while I remember the other book being set more solidly in the “real” world. The Drews don’t get involved as deeply until later.
On a related note, I don’t think I’m in the target audience for The Number 23. We saw the trailer for it on Friday when we saw Pan’s Labyrinth (which is quite good, BTW), and I could not stop laughing. Not because of Jim Carrey, but because of the premise. Perhaps it comes from reading the Illuminatus! trilogy. There’s a great sequence in the book where one of the characters is starting to look for certain numbers, including 23, in everything. Of course, since he’s human, he finds them, using ever more convoluted arithmetic to prove that they’re significant. While reading Illuminatus!, I looked up stuff on synchronicity and found the tech term for this tendency to see connections where none exist: apophenia. And here I’m watching this preview, and there’s a sequence in which the lead character starts finding the number 23 in everything, using ever more convoluted arithmetic…. I don’t think I could take the premise seriously enough to get into the movie.
Comet!
Friday, January 12th, 2007 Posted in Space | 3 Comments »The skies were surprisingly clear today. Four of us at work walked outside after sunset to a bridge near the office, and saw Comet McNaught. It was visible from ~5:10/5:15 to 5:28, at which point it slipped below the line of hills to the west.
We saw it against the red sky, slowly dropping through the (fortunately sparse) clouds. It was easily visible to the naked eye as a fuzzy white spot, with a hint of a tail pointing straight up that was a lot clearer in binoculars. The tail looked like a U or a V, fanning out at what looked like (but probably wasn’t) a 45° angle.
Well, my fingers are finally warming up. (I made the mistake of not grabbing my jacket, and went out just in my sweater.) Time to wrap stuff up.
Update January 13: I managed to catch another glimpse of it tonight. Unfortunately I was just arriving at the shop to pick up my car, and it was just closing, so I didn’t have a chance to watch it set (or see much more than a fuzzy white dot.) My watch said 5:02. By the time I got out, it had set beneath the building across the street, and there just wasn’t anywhere nearby enough with a clearer view of the western horizon.
On the plus side, I did manage to spot Venus while the sky was still light, and get a picture. It’s not quite as exciting as spotting it at one in the afternoon, but by adding more blue, you get an idea of what that looked like:

Update January 14:
I was looking over the photos I took last night (Saturday) and discovered I could actually find it by messing around with levels. On the left is the original photo, with a little bit of color correction to match what the sky looked like. The background’s still too bright to see the comet, though it was visible to the eye. On the right, I’ve adjusted the heck out of the image, and there’s a very slight bright spot right where it should be (I framed the shot so that the comet would be near the light pole, making it easier to find). Actually, now that I look at it again, it’s just barely visible in the less-processed photo on the left.

Also, this is cool: the comet has gotten bright enough to be spotted in daylight. (via Slashdot) I didn’t have any luck looking for it this afternoon, but I chalk that up to lower altitude and city haze.
Update January 15: I spotted something today, but I’m not sure what…
The Longest-Running Flash
Thursday, January 11th, 2007 Posted in Comics | 3 Comments »
A post on the Comic Bloc Forums the other day made me think about the question: Which Flash had the longest solo career?
It depends on how you measure it. The original Flash, Jay Garrick, has of course been around the longest: 1940–today. He’s got more than 65 years on his successors. But a more useful question is: How long was each Flash around before DC replaced him as “the” Flash?
The easiest measurement: years in publication.
| Name | Start | End | Span | |
|---|---|---|---|---|
| Jay Garrick | 1940 | – | 1951 | 11 years* |
| Barry Allen | 1956 | – | 1986 | 30 years |
| Wally West | 1986 | – | 2006 | 20 years |
| Bart Allen | 2006 | just starting |
Barry is the clear winner by this measure, at three times Jay’s career, and 1½ times Wally’s.
But what about sheer number of comics**? Read the rest of this entry »
No comet for you!
Thursday, January 11th, 2007 Posted in Space | 1 Comment »I’ve been hoping for the last few nights to get out around sunset and look for Comet McNaught. Unfortunately, it’s been cloudy all week by the time sunset rolls around. And in a couple of days, it’ll slip past the sun and appear in the morning sky instead. At that point, I won’t have a chance of seeing it. Even if I could get myself out of bed before dawn, the eastern horizon is blocked by mountains.
The Market Ace!
Wednesday, January 10th, 2007 Posted in Signs of the Times | 2 Comments »
Actually the Lake Forest Market Place, spotted a few weeks ago.
Feeds in Google results?
Sunday, January 7th, 2007 Posted in Web | No Comments »Does anyone know how to convince Google to prefer an HTML page over an RSS feed when serving standard search results?
With the demise of the Jamie Jack and Stench show, Another One Bites the Dust has shot back up to the top 5 pages on the site. It turns out it’s the #7 hit on Google for “jamie jack and stench.” Oddly, the comments feed for Alternative to Music? is #8. Not the post itself, which includes all the same comments, but the feed.
I don’t want to keep the feeds out of Google’s index — if someone’s looking for feeds, and mine happen to be relevant, I want them to show up. But if someone’s looking for web pages, shouldn’t Google bring up the web page with substantially similar content in favor of the feed?
Fixing Feed Problems with WordPress 2.0.6 and PHP 5.2
Friday, January 5th, 2007 Posted in Site Updates, Troubleshooting | 13 Comments »Upgraded to WordPress 2.0.6 and now feeds are broken. At least, they’re broken in Firefox, IE7, and KDE (Konqueror & Akregator). Something seems to be interrupting the transfer, causing them to get a blank file. Oddly, they work fine in Opera, the LWP “GET” command-line utility, and Dillo (not that Dillo can do anything but display the source, but it gets the whole file.) Even more oddly, SeaMonkey seems to have no problems. You’d think Firefox and SeaMonkey would have the same issues. Also, I seem to be able to sometimes get it to work on reload.
Anyway, I’m working on it. If you read this site via RSS or Atom, and it is working, let me know (and let me know which feed reader you’re using). I suppose it could be cookie-related, though I’ve already tried clearing cookies. I’ve also tried disabling just about every plugin I use that does something to feeds or headers, to no avail.
Update: I think I’ve got it. By using the Tamper Data extension, I was able to determine that the 304 Not Modified status was not being set properly. Instead of actually issuing the 304 status, it would issue a 200 OK, then send a Status: 304 header later in the response. It never showed any problems on command-line GET or HEAD because they weren’t conditional. That’s also why forcing reload would work.
I looked into wp-includes/functions.php and found the status_header function. Then I looked at the following line:
@header("Status: $header $text");
In theory this should work. Traditionally, setting a “Status” header will replace the actual HTTP status. But that’s not how the PHP manual says to do it. They suggest issuing the actual header that the server would send: HTTP/1.1 304 Not Modified. I noticed that the header function in PHP has some optional parameters, including one to force the HTTP status. That felt a little cleaner than hard-coding the protocol (since an older browser might make an HTTP/1.0 request, and it should get an HTTP/1.0 response), so I changed the line to this:
@header("Status: $header $text", TRUE, $header);
It seems to have fixed the problem.
For the record, this is PHP 5.2.0 on Apache 1.3.37 using the mod_php interface.
Update 2: Simpler fix just removes the if.. statement and else… section so that it’s just the following:
@header("HTTP/1.1 $header $text");
Bug reported as Ticket 3528.
Joined ComicSpace
Wednesday, January 3rd, 2007 Posted in Comics | 4 Comments »Figured what the heck. I’m now on ComicSpace.
Because I need yet another site to suck up all my time.
It’s being described as MySpace for comics people—creators, fans, reviewers, etc.—though the feature set is pretty sparse right now. I’ve resisted MySpace itself partly because of a somewhat adversarial relationship with the site*, partly because I can’t stand looking at most MySpace pages, and partly because my friends are all on LiveJournal, so there’s really no compelling reason for me to go there.
And yet I’ve got profiles at LiveJournal, Slashdot, Opera, WordPress, Spread Firefox… Even eBay is adding blogging capabilities. Maybe I should bite the bullet and sign up for a Blogger account too. At least then I’ll be able to comment on Crimson Lightning.
*The culture at MySpace seems to encourage hotlinking images without asking. I’m still a writer at heart, so I consider the commentary to be as important as the images or more… and it really annoys me when people en masse just embed the images on their own site. Though I suppose it’s not as bad as the occasional “geniuses” on other forums who will hotlink an 800×600 or bigger photograph as their avatar, even though it only displays at 80×80. Damn kids, get off my lawn!
Flash Fraud
Tuesday, January 2nd, 2007 Posted in Comics, Spam | 3 Comments »Got an interesting phish today.
Subject: Error in your billing information
From: Keystone Savings Bank.
Hmm, Keystone, eh?
Radio Connection
Tuesday, January 2nd, 2007 Posted in Music, Strange World | 1 Comment »They say that the Southern California car culture is isolating. It’s hard to argue with that, when everyone’s shut up in their own little boxes. But today, on my way to work (delayed a bit on account of dentist), I was listening to KCRW’s Morning Becomes Eclectic and stopped at a traffic signal. They were playing a live version of Elvis Costello’s “Allison.” I looked in my rear view mirror, and realized that the driver behind me was singing along to the same song. Even though it only went one way—she had no way of knowing I was listening to the same music—it was still a moment of connection through shared experience.






My Amazon Wishlist

