waving android

I am currently a software engineer at Google, where as a member of the Android platform team I build frameworks and user interfaces.

The blog here at is mostly historical; you can find more recent posts on .

Archive for September, 2007

Banned from Reddit.

September 29th, 2007

I noticed this afternoon that I’ve been silently banned from my favorite shiny-things-on-the-intertubes website, reddit.

Last night I came across something that I thought the programming.reddit.com crowd would enjoy: The Future of Vim on the Mac, a survey of the fractured state of the Mac OS X Vim port. There are lots of OS X geeks and vim geeks on Reddit, so it seemed a natural thing to post. +1 Informative.

This morning I went to check programming.reddit (to see if my article had spurred any discussion), and didn’t see it in the first couple of pages of “hot??? stories. Not so hot a topic, I guess. I went to my list of links and comments to see what the score was: zero. OK, nobody cares.

On a whim I decided to dig through the list of all programming articles by date to see what other stuff came up around the same time. After all, if my story lost the popularity contest, it lost to something else, right?

It’s not there.

I skimmed back about 10 pages before satisfying myself that it was simply nowhere to be found. So I deleted the link from Reddit and re-posted it. About an hour later, its score is still at 0 (didn’t these things originally start at +1?) and it’s still not anywhere on the site. Not hot, not new, “rising” or “all.” Zilch.

As you can see, I posted a handful of other links (submitted both to programming and reddit proper) to see if I could get anything to show. The answer, friends, is no.

Any other members of the reddit silent minority out there? No? Just me?

amazonmp3, and its debt to Apple

September 26th, 2007
title="Daring Fireball: More on the Amazon MP3 Store">
In fact, the tragedy is that Amazon could have built this store 10 years ago — the music labels simply wouldn’t allow it. What’s happened now is that the music label executives — at least at Universal and EMI — have finally gotten it through their thick skulls that it’s the iPod that drives iTunes sales, not the other way around. Apple’s FairPlay DRM isn’t (at least primarily) some sort of lock-in scheme to force people to buy iPods; FairPlay was a requirement stipulated by the labels, without which they would not have allowed Apple to sell their music at all.

By the way, if you install the amazonmp3 downloader, you get a free Apples in Stereo song to (a) test that the downloader works correctly, and (b) force you to walk through the process of buying an amazonmp3 track for the first time. Objective (b) is enormously effective in lowering any residual cognitive barriers to buying tracks over the Web (as opposed to the iTMS). Minor gripe with the process: Even though the track is free, Amazon will demand that you supply a credit card and billing address (presumably this is because the amazonmp3 store is US-only at the moment, as enforced by those bits of info).

Mister Adelman’s World-Famous
“Basket-Ball??? Instruction for Ladies
(and Other Dainty Types)

September 25th, 2007

Over on erinmak: Between the Rockets and a hard place.

Officially, I’m offended by this. I like how Adelman’s going to “try??? to get some basketball knowledge into our pretty little heads. […] As a fan, it’s hard to pass up.

Dostoyevsky Comics #1

September 18th, 2007

Time for another forgotten classic from the vast Again With the Comics archives. Here we present Dostoyevsky Comics, originally printed in Drawn and Quarterly #3 (2000), and currently out-of-print, as far as I know. Crime and Punishment, originally written by Fyodor Dostoyevsky, was brilliantly adapted here by R. Sikoryak, as seen through a Dick Sprang Batman filter. This marriage of Classic Russian Literature and the Caped Crusader of Gotham also serves as further proof, if any were needed, that everything is better with Batman.

Shai’hulud in Midtown

September 17th, 2007

“The first thing you have to do when remediating a gas station,??? the daughter of an environmental lawyer said to me, “is take out the underground gas tanks.???

I think it looks like a hatch out of “Lost.??? Or a breaching sandworm.

[taken at the defunct Conoco, San Jacinto at Alabama]

Scene from a hospital room.

September 11th, 2007

(With apologies to the Fireball.)

SCENE: A hospital room.

THE CD SINGLE, quinquagenarian and pale, sits on a bed, attached to a bewildering array of chattering and beeping monitors: pulse, temperature, accounts receivable. The old boy may be barely breathing. He appears to be watching VH1.

A MUSIC EXECUTIVE knocks tentatively at the not-quite-closed door, and enters, followed closely by a rambunctious CHILD, who is thumbing madly away at a small cellphone.

EXECUTIVE:
Heyyyy. How ya doin’, pal. They feedin’ you OK?

SINGLE:
[Switching off “I Love the 80s??? as he rolls slowly to face the newcomers.] Hi. No, not really. Actually, they—

EXECUTIVE:
Great, great, glad to hear it. Listen, I brought someone who I really think can cheer you up.

SINGLE:
Oh? [Coughing slightly, he sits up.] Is it…is it the pee-to-pee people? [Indicating the flowers across the room.] It’s so nice when they come by, they make me feel—

EXECUTIVE:
[Explosively.]
What? NO! You KNOW how I feel—uh, ahem. What I mean to say is, I’ve brought someone who can cheer both of us up.

SINGLE:
Uh, OK…

EXECUTIVE:
It’s my friend here, Ringtone!

The EXECUTIVE grabs the CHILD a little too roughly by the shoulder and thrusts him toward the bed. RINGTONE nearly looks up.

RINGTONE:
’Sup.

SINGLE:
[Eyeing RINGTONE quizzically, then softening.]
Hi there, little guy. What’s your name?

RINGTONE:
Ring.

EXECUTIVE:
[Eagerly.]
Eh, Single, whaddya think? He looks just like you!

SINGLE:
Except shorter.

EXECUTIVE:
Yeah, great! You guys are gonna get along perfectly. From now on, you’ll be hanging out together, everywhere you go: malls, big-box stores, Starb—

RINGTONE:
[Screwing up his face, eyes still locked on his text message.]
Lame.

SINGLE:
I don’t really see the point.

EXECUTIVE:
[Darkening.]
What? Why not? What’s not to get? He’s hot right now. He’ll prop you right up. You can be cool again.

SINGLE:
He’s not hot, he’s convenient. People can just, you know, tap-tap-tap with their thumbs or whatever, and they’ve got him. You put him in a box with me, now people have to, what, download us to their phones or something?

EXECUTIVE:
Sure. It’s easy. You hook up your data cable to the blue teeth on your dongle and it’s all, click, click, sync. Presto. It’s so easy even iTunes can do it. [He shudders slightly at the mention.]

SINGLE:
I don’t think it’s quite that sim—

EXECUTIVE:
Look. I honestly don’t care what you think. Nobody cares what you think. You are dying. DY–ING. Nobody wants you, nobody cares.

SINGLE:
But the pee-to—

EXECUTIVE:
Those—those “people???—are morons. Morons and thieves. And we tried to cut their thieving hands off, but then everybody got all upset, “boo hoo rootkits,??? blah blah BLAH. I still don’t really understand what happened there. But we’ve got to try something else, and I’m thinking, if they won’t pay money for you, they’ll pay money for him, and I can start moving some friggin’ product again.

SINGLE:
Won’t they just be able to get him for free too?

RINGTONE:
[Looking up suddenly.]
Free?

EXECUTIVE:
Oh, hell.

SINGLE:
That’s right, kid. They’re out there, people who really love you, not just because you’re easy, but because they like your sound. And they’ll share you with their friends.

EXECUTIVE:
I AM NOT HEARING THIS!

RINGTONE:
Sweet.

Turning on the spot, RINGTONE exits briskly. Several beats, filled only with the silent sneer of the EXECUTIVE, pass.

EXECUTIVE:
You are a damned fool.

SINGLE:
Yeah, OK. [He turns the TV back on.]

Validator foiled!

September 8th, 2007

A couple of years ago I worked on a TrackBack Validator which identified and rejected TrackBacks posted on your blog from sites that didn’t actually link to your blog.

Trackback spam. (Figure taken from TR-06-876.)

In our 2006 tech report on the subject (co-authored by my advisor and a number of undergrads in his computer security class), we speculated that—given sufficiently widespread use of inbound-link validation—spammers would be forced to either (a) close up shop, moving on to some other exploitable technology, or (b) start actually linking to their victims. To wit:

cite="http://seclab.cs.rice.edu/proj/trackback/papers/taking-trackback-back.pdf">

Spammers who wish to overcome our mechanism
are forced to indefinitely maintain reciprocal links from their own
web sites, effectively increasing their necessary investment of time
and resources. Furthermore, the spammer’s site, by linking to its
victims, will actually benefit the victims’ search engine rankings by
sharing part of the spammer’s ranking with each of its victims.
Best of all, if the spammer is effectively publishing a list of its
victims, that list would provide compelling evidence that could be used
against the spammer in legal proceedings.

In the limit, we are effectively pushing spammers to run
“legitimate??? weblogs. If spammers’ weblogs are following the TrackBack
protocol correctly and are legitimately providing reciprocal links,
then we face a more fundamental question: is such a TrackBack message
actually spam? If a “real??? blog is linking to the victim, regardless
of any spam-like content it might contain, then the
TrackBack the victim receives could well be defined as “legitimate.???
At that point, the issue is not one of spam vs. non-spam, but rather
one of relevance.

Well, we were right and not right. I just received some TrackBack spam (probably not coincidentally, on a
blog post about trackback spam) that fooled the Validator and yet can’t really be considered to be legitimate.

A tricky TrackBack.

The inbound link is included, but hidden from the user with CSS tricks! Here’s an excerpt of the source of the page:

  <style type="text/css" media="screen">
    .trackback { position:absolute; top:0px; left:0px; visibility:hidden; }
  </style>
  <div>
    <div class="trackback">
    [...]
  	<p>
  	  [...] far out site now comment this synopsis
  	  <a href='http://dsandler.org/wp/archives/2005/11/14/trackback-spammers-upping-the-ante'>http://dsandler.org/wp/archives/2005/11/14/trackback-spammers-upping-the-ante</a>
  	  and give comments [...]
  	</p>

As you can see, all the inbound links are surrounded with irrelevant content, but what’s more, they’re children of the <div class="trackback"> and hence invisible to readers. In our paper we point to readers as one of two “last resorts??? to help weed out irrelevant but otherwise Validated TrackBacks; obviously they won’t be able to help here. (The other technique, which would still work in this case, is the same sort of statistical classification currently used for email; see §5 of the TR for details.)

In the end, this “break??? of the Validator may not yield much for this spammer aside from the satisfaction of successfully defacing my blog. Google has been known to apply a PageRank penalty to websites with large regions of hidden text, so the currency gained by inbound links may very well be more than offset. What’s more, like most modern blogs and CMSes, dsandler.org applies rel="nofollow" to any links found in comments or TrackBacks, so the spammer gets zero Google-juice in this situation.

But since spam is so cheap, the spammer probably doesn’t care. That’s why the Validator was so important: it proved remarkably effective at reducing the “collateral damage??? of spam, namely, blog defacement. In order to continue to be effective against this sort of attack, it would probably need to include some sort of CSS/DOM interpreter.

(Yuck.)

For more on all these icky edge-cases in TrackBack (and other forms of Web) spam, read the report. (It’s just a six-pager.)

newer: older: