Tuesday, May 30, 2006

Recent spam in comments

A while ago I put in Panoramio a put a simple spam barrier in Panoramio. You want to post a comment? You have to tell me the name of your planet.

Stupid? yup, simple? yup, effective? until a couple of weeks ago, yup.

And then something happen. The spam barrier was somewhat broken, and big way. Panoramio was suddently flooded with spam. Either spammers around the world had got half the brain of an amoeba and were suddently able to reply with the name of their planet when asked, or some spammer had customized its boot to target Panoramio.

Or, well, none of these two options.

Taking a look at the database, it turns out these spam comments are not comments, they are trackbacks! Carefully crafted trackbacks to make them look as comments, mind you, but trackbacks none the less.

So if you have a wordpress site and have suddently be flooded with spam, even when you have a previously fine spam barrier in place, take a look at your trackbacks settings!

Friday, May 26, 2006

Upload a photo, 2.0

In Panoramio we have redesigned the photo upload interface in a radical way.

I personally think the current widget to upload files used in browsers is horrible. It looks like a dynosaur from older times, when your files were named C:\hi.txt instead of C:\Documents and Settings\foo\My Documents\My Images\DSGN003.jpg. And don’t get me started on its lack of basic functionality: no way to select multiple files in one shot, no way for the webmaster to filter out the files to be show in the dialog box, etc.

Advantages of the new functionality:

1. Upload as many photos as you want at once

With the classic widget you have to upload photos in groups, for example 5 after 5. You need to pay attention to the end of the upload in order to select a new group of photos.

Now in Panoramio you can upload as many photos as you want at once at the same time, so you can do other things instead of waiting for uploading the next group or monitoring the process all the time.

Also in order to make the process faster, the upload start after selecting the photo, so you don´t need to press any "upload" button.

2. Did you choose the right photo to upload?

If your file is at C:\Documents and Settings\foo\My Documents\My Images\DSGN003.jpg the edit field it´s too short to see the name of the file you are uploading. How can you be sure you selected the right one?

Panoramio´s new upload system shows just the name of the file in edit field, not it´s location

But when image file names are as "intuitive" as Dc2351.jpg is very easy to make a mistake. It´s very frustrating to realize you made a mistake only after finishing the long uploading process.

In order to prevent these errors, Panoramio shows you right away a small thumbail of the photo you are uploading (only in Internet Explorer), so you can cancel the uploading in progress.

3. Is it really uploading? How long it takes?

The most frustrating experience uploading photos is the lack of progress indication. Feedback makes easier to wait, that´s why long operations should always inform the user about the estimated time left and about their status.

In Panoramio we developed a progress that shows the time left to finish uploading. This progress bar thingie has been the hardest part. The only way to do it in current browsers it to poll the server regularly asking him for the size of the whole file, how much have already been uploaded, etc. That’s slow, badly supported by standard server technologies, brittle, and, in short, a hack. And to add insult to injury, the browser already has all that information! But instead of giving a nice javascript object so that we can know the status of current http connections we have to start playing games with the server to get that info. Sigh.

If you’re at 80% of the upload process, and something bad happens (your cat eats your ethernet link, for instance), then you’re left in the cold. You have to resend all these images again. Why? If the upload process gets interrupted, I want all the photos that have already being pushed in the server to remain safely there, so that I don’t have to start again from scratch. That´s how it works in Panoramio because each file is uploaded in a independent query.

4. No more "browse" button

People´s goal when uploading a photo is far from "browse", they just want to "upload a photo". Although it works only in Internet Explorer, we could substitute the "browse" button for a "upload a photo" link.

5. Map the photo and name it while uploading

This is a specific feature of Panoramio that optionally allows you to locate photos in a place at Google Maps. Previously, you had to find the place first and second upload the photo aftewards. That´s was slow and cumbersome if you are uploading many photos.

Now you first select the photo to upload and while waiting you can (optionally) map the photo. The process of mapping doesn´t interrumpt the uploading.

My only doubt concerning the current upload system is that it also lets you choose the title of your photo at the same time the image uploads. That’s nice because the whole process is done in one single screen, but at the same time it seems to be a bit confusing.

I hope you like the new upload system. The implementation took me longer time that I want to acknowledge ;)

Special thanks to Raditha Dissanyake and Tomas Larsson for its work on a perl script to handle incremental the upload of files, and to Nicholas C. Zakas for discovering how to show up the file dialog box in Explorer from javascript (and submit that file without getting Access denied error messages).

Wednesday, May 10, 2006

Honorable Mention for Panoramio at Web 2.0 Awards

web 2.0 awards Panoramio was given an Honorable Mention for the Web 2.0 Awards in the category of Mapping. We are very pleased for this mention, especially because Panoramio was released just 7 months ago.

The winners of the Mapping category are 1. Wayfaring, 2. Frappr and 3.Housingmaps.

My favourite has always been Frappr. The idea (members of a group says where they are located) makes very much sense and it seems people understand it very well. Just take a look for its ranking at Alexa.

Housingmaps is good mainly because it's really a useful application for a common day task (searching for housing) with very good data from Craigslist.org, not spectacular, but very nice.

However I don't understand the first price for Wayfaring. This application goes one step forward, as Tagzania, Flagr or our Panoramio do. I believe no one of these sites is still mature enough, still a long way to walk. Apart from their own limitations, these sites bring Google Maps to the edge and unfortunately Google Maps interface has some usability issues, that makes its interface difficult to use for some purposes.

Friday, May 5, 2006

I invoke the lazy web...

Oh, lazy web, do you know why, oh why, does it takes more than 30 seconds to enter the site admin of a wordpress powered blog? (this very one, in fact)

I would also be grateful if you know how to fix it!

Resizing images

Until now I've used a bicubic resizing of the images. If you don't know what does "bicubic" means, suffice to say that it makes smaller images smooth. It makes them blury, in fact.

So know I apply a Lanczos filter to make the resize, couple with a little local contrast improvement filter.

Both effects are quite subtle, and of course your original image remains untouched. If you see your images a bit more sharp than before, well, you know now why.

Hope you like it!