How to download all your photos from Flickr

A very short post because I had to download all my ~10,000 photos from Flickr recently and couldn't find a concise set of instructions for doing so. The question has been asked and answered many times on the web, but most of the advice revolves around using third-party services or desktop applications.

I don't know when Flickr added the ability to download photos in bulk, but by far the easiest way is now definitely by using Flickr.com, no extra tools required.

Instructions

  1. Log in to Flickr.
  2. Go go "Camera roll" (under You in the menu or ...
more ...

301 permanent redirect with Tomcat

Whenever I set up a new site, I want to make sure that example.com points to www.example.com. This is basic SEO – check out this link for a quick explanation. I know that this is trivial to do in Apache, but for the sake of simplicity I wanted to use Tomcat only as my web server.

After much searching around, it became clear that (1) Tomcat can’t do this and (2) I’m not the only person with this problem. The solution is a Java servlet filter called URLRewriteFilter. It does the job perfectly, but it took ...

more ...

How to fix an infinite 301 redirect loop in WordPress

I just ran into this problem today; thought I should post the solution in case anybody else finds themselves in the same boat.

I moved a WordPress blog from one server to another which was running lighttpd with a blanket 301 redirect to from www to non-www URLs. When I fired up a browser to test it, I got the dreaded “this website is responding in a way that will never resolve” message. A quick look at the lighttpd logs confirmed that I was bouncing from www.example.com to example.com then back to www.example.com.

I expected ...

more ...