Thoughts

The winner of the "Object-Oriented PHP" book drawing

Trevor Carpenter… is Trevor Carpenter! I announced the drawing on Tuesday, 9/25, and the deadline was the evening of Friday, 9/24. I’m going to mail the book to Trevor shortly.

Trevor has a few websites, and they’re all worth mentioning. First we have his personal site/blog, then his photoblog, called CamarilloWalk, his professional photography site, called Scribe Photography, and finally, Photowalking, a site dedicated to photowalks. Anyone interested in organizing such events can request an author account on the site and write about them there. The goal is to turn the site into the main place to check for group photowalking events in one’s local area. Pretty cool!

Standard
Thoughts

What should your superpower be?

Blogthings is running a quiz on this, and I went through it. The questions were a bit loaded, and I wasn’t sure about a couple of the answers, but even after I went back and changed them, I still got the same result. That short fuse of mine shows through again… For the record, I don’t think I’m terrifying, and neither does my wife. And I’m not keen on that whole “world belongs to you” business either. But, I’ve got a short fuse, I’ll admit that. And I’m definitely intense, driven, passionate and obsessed — sometimes to my detriment.


Your Superpower Should Be Manipulating Fire
You are intense, internally driven, and passionate. Your emotions are unpredictable – and they often get the better of you. Both radiant and terrifying, people are drawn to you. At your most powerful, you feel like the world belongs to you.

Why you would be a good superhero: You are obsessive enough to give it your all.

Your biggest problem as a superhero: Your moodiness would make it difficult to control your powers.

What Should Your Superpower Be?

Standard
Thoughts

Roses

The pure color of these rose petals reminds me of fresh spring rain, washing away the cold mud of winter from plants too hesitant to fully bloom. There’s the expectant hope of better, warmer days, and the creamy, bright, white background practically radiates optimism. Yes, I manipulated the colors, but that’s makes this photo more interesting to me.

Valentine for my sweetie

Standard
Lists

Funny videos

Here’s the classic “Who’s on first?” routine from Abbot and Costello. Must-see comedy — still funny after all these years. It’s interesting to see how they distilled bits and pieces from their earlier routines into this.

Graham Chapman was part of that seminal group of British comedians known for “The Monty Python”, and other wonderful pieces of comedy. He died in 1989. Here is a segment from his funeral service. (Yes, it’s funny.)

Richard Pryor, on kids telling lies.

Have a look at how authorities respond to perceived terrorist threats in Australia. Not much different from the US, really.

Weird Al Yankovic’s “eBay” song, mashed up with a user-made video:

Here’s Bill Cosby on dentists (absolutely hilarious):

… and on natural childbirth:

Standard
Reviews

Flickr tightens up image security

Given my concern with image theft, I do not like to hear about Flickr hacks. A while back, a Flickr hack circulated around that allowed people to view an image’s full size even if the photographer didn’t allow it (provided the image was uploaded at high resolution.) The hack was based on Flickr’s standard URL structure for both pages and image file names, and allowed people to get at the original sizes in two ways. It was so easy to use, and the security hole was so big, that I was shocked Flickr didn’t take care of it as soon as the hack started to make the rounds.

It’s been a few months now, and I’m glad to say the hack no longer works. I’m not sure exactly when they fixed it. Since it’s no longer functional, I might as well tell you how it worked, and how they fixed it.

D

First, let’s look at a page’s URL structure. Take this photo of mine (reproduced above). The URL for the Medium size (the same size that gets displayed on the photo page) is:

http://flickr.com/photo_zoom.gne?id=511744735&size=m

Notice the last URL parameter: size=m. The URL for the Original size is the same, except for that last parameter, which changes to size=o. That makes the URL for the original photo size:

http://flickr.com/photo_zoom.gne?id=511744735&size=o

Thankfully, that no longer works. If the photographer disallows the availability of sizes larger than Medium (500px wide), then you get an error that says something like “This page is private…”

Second, they’ve randomized the actual file names. So although that image of mine is number 511744735, and it stands to reason that I would be able to access the file by typing in something like http://farm1.static.flickr.com/231/511744735_o.jpg, that’s just not the case. Each file name is made up of that sequential number, plus a random component made up of letters and numbers, plus the size indicator. So the actual path to the medium size of the image file is:

http://farm1.static.flickr.com/231/511744735_b873d33b12_m.jpg

This may lead you to think that if you can get that random component from the URLs of the smaller sizes, you can then apply the same URL structure to get at the larger size, but this is also not the case. It turns out that Flickr randomizes that middle part again for the original size. So although it stays the same for all sizes up to 1024×768, it’s different for the original. For example, the URL for the original size of that same photo is:

http://farm1.static.flickr.com/231/511744735_d3eb0edf2d_o.jpg

This means that even if you go to the trouble of getting the file name for one of the smaller sizes, you cannot guess the file name of the original photo, and this is great news for photographers worried about image theft.

While I’m writing about this, let me not forget about spaceball.gif, the transparent GIF file that gets placed over an image to discourage downloads. It can be circumvented by going to View >> Source and looking at the code to find the URL for the medium-size image file. It’s painful, but it can be done, and I understand there are some scripts that do it automatically. The cool thing is that after Flickr randomized the file names, it became next to impossible to guess the URL for a file’s original size. The best image size that someone can get is 1024×768, which might be enough for a 4×6 print, and can probably be blown up with special apps to a larger size, but still, it’s not the original.

Perhaps it would be even better to randomize the file name for the large size as well, so that it’s different from the smaller sizes and the original size. That would definitely take care of the problem. Still, this is a big step in the right direction.

Standard