June 2008
9 posts
Operation of the Collider may have unintended consequences which could...
– This article
MySQL performance tip: Prefetch using "IN"
marco:
Let’s say you’re iterating through a list of items to display, each of which requires a separate lookup, like a posts-to-users mapping.
Normally you’d do it like this:
foreach ($posts as $p) {
// Looks up e.g. 'SELECT * FROM users WHERE id = ?', $p->user_id
$user = $p->user();
// Render some stuff...
}
But this will query the database once per post. If you’re...
Public service announcement
I know I’m supposed to be on Tumblr hiatus, but I felt like sharing this.
If you have two forms, form A and form B (with method = POST), and form A has an enctype of multipart/form-data (typically used for file uploads) and a file input, and each has a submit button, Firefox gets confused as to which form to submit in the following fashion:
If you click form A’s submit button and...
Oh, by the way, this happened today a couple years... →
There is an article on CNN entitled “Space station potty gets repairs” — is this what we’ve come to? We can’t even utter or write the word “toilet” lest we start uncontrollably shaking and throwing up in our mouths.
Launched: FeedVolley →
My good friend Nir has just launched a product I helped conceptualize (I also designed the UI) about a month or two ago. It’s a really simple way to take an RSS feed and display it in a good-looking way. It’s called FeedVolley, do check it out! Congrats, Nir.