Nicholas Resturant

I wrote a Gallery that uses Flickr + Google Maps

I had been toying around with the idea of using the flickr api with google maps for a while. So a couple of weekends ago I decided to take a break from client work and hammer something out. The result is my gallery.

The goals for the project were the following:

Use flickr’s and google’s map apis.

Both are apis that I have known about, and wanted to work with for a while, but hadn’t had chance to use on scale larger than minor wordpress widgets. In the past my experience was limited to using jQuery to access my most recent photos from flickr. I wanted something a bit more powerful and flexible and an excuse to use php which my web host supports. I ended up settling on a relatively good PHP wrapper called phpflickr

Displaying a map was surprisingly easy. Once I extracted the longitude and latitude information from the photo I was able to use a couple google maps function calls to create a map around that location with a marker on it.

Create a way to display my photos in a meaningful way on my site

There are lots of gallery plugins and widgets around the net. I wanted something though that was completely customizable both in how it displays images and how it is used. For example – if I wanted to pull from a specific set of photos, I can do that. Also if wanted to be able to mine data about my photographic behaviors, such as what my favorite apertures and focal range were – those are not typically available with “off the shelf” options.

The biggest problem with flickr itself is its white background which doesn’t work well with photography. I find it distracting and prefer a darker background (hence the color scheme of this site). People often use sites like that of big huge labs to display their picture on a black background. I wanted to avoid having to use an external site.

I also wanted the ability to readily display information that I find important – such as the camera, lens, aperture, iso, and shutter speed I used. I also wanted to toy with the idea of showing (when available) the location of where I took the photo on a google map.

Additionally I wanted to use some javascript to make it possible to expand the photos, so that users will not need to leave the site to better view my pictures. To achieve this I used a javascript library called highslide JS.

The final result of my weekend coding session is a relatively minimalist interface that gives the viewer all the information that I consider important.

Snowshoeing


I have owned a pair of snow shoes for about 2 years now. REI had a sweet deal on a pair for $30 with free shipping so, along with some friends, I bought a pair. It wasn’t until the day after Christmas that I would actually get a chance to use them.
Continue reading “Snowshoeing”

New Scarf

My amazing girlfriend made me this scarf for Christmas.

Seven Goals for 2010

The past year has been a tremendous year for personal growth (of not only my gut) and I see 2010 as the year where I execute on what I have learned. I believe one of the best ways of holding yourself accountable for your goals is to put them in writing. So here are mine:

1) Move to Portland.

I moved to Eugene in January of 2005 to work for GarageGames. Right about the time of what will be my 5 year anniversary of having moved here I will be moving to Portland where my girlfriend and I will be sharing a house with another couple until we can find and afford a place of our own. I don’t have a job or any real prospects lined up and Portland has one of the highest rates of unemployment in the nation, but compared to Eugene it has a heck of a lot more going for it in just about every way that is important to us.

Coincidentally my girlfriend moved to Eugene during the same month as I did. She completed her final term college this month and was able to finish her Sociology degree. Remarkably, she was able to get a 4.0 (or better) in her last 3 terms. By finishing up her degree we resolved the final reason for us staying in Eugene. We both really adore Portland and so making the move there is a huge step in the right direction for both of our futures.

Continue reading “Seven Goals for 2010″