Archives for November 2006

Jpeg problems in Firefox and IE

Problem: Someone emails you an image file. You can see the thumbnail fine in Gmail, so you save it to your hard drive. But when you try to view the image in Firefox, you get this error instead: The image “file:///C:/Documents%20and%20Settings/whatever.jpg” cannot be displayed, because it contains errors. Paint.net and Photoshop can view it. Re-saving the file in Paint.net works; re-saving in Photoshop doesn’t work. What’s going on?

Solution: You got an JPEG which uses CMYK instead of RGB encoding, and Firefox/IE choke on such files. In Photoshop, you can convert the JPGs to RGB colorspace, or you can select “Save For Web…” to make the file valid for common browsers.

Takeaways:
– When you get a weird error message, do an exact search for that error message, e.g. “cannot be displayed, because it contains errors”.
– If you write software, make your error messages as descriptive as possible. Something like “This image is in CMYK color space, so you’re screwed, buddy. Try converting it to RGB instead.” That’s much more helpful than “your file contains errors,” especially since it isn’t really an error. Other programs handle JPEGs like that just fine.

R.I.P., Google Answers

Google has decided to shut down Google Answers. In my personal opinion, this was the right call. Products from years ago often need overhauls and rewrites or else the underlying code grows stagnant, and the Answers code launched in 2002. And even if a product runs with very little resources, it’s still a tiny bit of a distraction. Greg Linden said it best: “Old products never die, but they should. To innovate, it is not enough to love creation. We must also love destruction.”

By the way, I had the honor of mentoring Lexi on her very first starter project years ago (even before she tackled Google Answers). I can’t tell you what it was, but to this day I still point other Googlers to it as a model to learn from. One of Google’s biggest strengths is the same as Soylent Green: it’s the people. Except not in a creepy foodstuff kind of way. More in a “the right person at the right time can change the course of a company” kind of way.

I remember back when Google was a couple hundred people and maybe one hundred engineers, I walked around the building late one night and just counted what I call “diamonds in the rough”–people who I believed could tilt a company from failure to success by their own efforts. Things like the ability to conceive of a completely different search architecture that would clearly outperform the best-of-industry standard. At the time, I counted 11 people out of the hundred engineers, which to my mind is an incredibly high number (remember, these are people that a start-up may only need 1-2 of). I still can’t believe the critical mass you can get when you can attract a high caliber of people. As Paul Graham puts it, “Smart people will go wherever other smart people are.”.

Okay, as I’m writing this it’s late and I’m still in Omaha, except I’m an uncle (uncle-in-law?) now, and I’m starting to wander. Why don’t I stop here? 🙂

css.php