21
Sep/08
16

AppleTV + Flickr Interestingness

UPDATE2: I no longer use my Apple TV, so this is no longer being updated. I have made the source code available on github for anyone who’s interested.

UPDATE: One change from the original… It now only selects photos with a Creative Commons license. This means there are less than 250 new photos each day. To maintain the 250 photo set, it adds all the new photos and drops the same number of the oldest photos. That way there are always approximately 250 photos. For example, if there are 30 new photos one day, they will be added and the 30 oldest will be removed.

When at home, I listen to most of my music through AppleTV. This means the TV is on a lot, so I’d like an interesting screen saver. Unfortunately, AppleTV falls a little short in this area. It can rotate a set of photos as the screen saver, but you can only choose from a small group of Apple photos, your own iPhoto collection, or photos from a specific Flickr account. I like my photos, but don’t want to look at them all the time, and I had a hard time finding a Flickr user with a large enough album to keep things interesting.

What I really wanted was a way to display the Flickr interestingness collection. Interestingness is a pool of, you guessed it… interesting photos, that changes all the time. Unfortunately, since AppleTV only provides the ability to link to specific Flickr accounts, you can’t access this dynamic collection.

After searching for a solution, and inspired by this post, I finally came up with workaround. It’s a script that queries photos from interestingness via the Flickr API, then adds them as favorites to a special Flickr account I created called dailypool. The script runs every night, so there are always fresh photos. Since this Flickr account can be viewed by anyone, you can easily link to it on your own AppleTV.

Here’s what you need to do to set it up. This assumes you’re using AppleTV v2.

Add the dailypool Flickr account:

  1. On your remote, press Menu to get to the main menu
  2. Select Photos in the left menu, then Flickr in the right menu
  3. Select Add Flickr Contact, then type dailypool using the onscreen keyboard

Set dailypool favorites as your screen saver

  1. Press the Menu button on the remote until you get back to the main menu
  2. Select Settings in the left menu, then Screen Saver in the right menu
  3. On the Screen Saver screen, scroll down to and select the Slideshow menu
  4. On the Choose Photos screen, select Flickr, then select dailypool, then favorites
  5. Press the Menu button on the remote until you get back to the main menu

That’s it! Next time your AppleTV goes into screen saver mode it should display interestingness photos that will be refreshed every day. Enjoy!

13
Sep/08
0

Anonymization Through URL Shortening (Or Not)

For some strange reason I was thinking about URL shortening this morning, and how a nice side effect of it is anonymization. When I click a shortened URL the browser is first sent to the shortening service (for example TinyURL), which then redirects it to the actual destination. So in theory, the referrer would be the originating page URL on the first request and the shortening service URL on the second. Right?

As it turns out that’s not the case. I tried this with DwarfURL, EasyURL, Fhurl, Memurl, Redirx, SnipURL and TinyURL and in all cases the referrer at the final destination was the originating page. I haven’t researched it further, but I would imagine it’s because browsers (at least Firefox) don’t treat a redirect as a referral.

So long story short, you can’t count on URL shortening for anonymization.

1
Sep/08
4

Automatic My Coke Rewards Code Entry

Until recently I had a large backlog of My Coke Rewards points. In addition to all the codes I collected myself, I also received quite a few from my friends and family (Thanks!). The problem is that the site only allows you to redeem 10 codes per day, and I had a hard time remembering to enter them every day.

To help, I created a Ruby script for automatically processing codes. Every day, it reads 10 codes from a text file, then submits them to mycokerewards.com and logs the result. That way, I could just add all my codes to a file and it would take care of the rest.

I’ve provided the script below, as well as instructions for configuring it on a Mac (should be similar on Unix/Linux). If you’re using Windows, you can do the same thing by downloading Ruby and setting up a scheduled task. This isn’t the most user-friendly process, so a little development and/or command line experience would be helpful, but if you don’t have that you should be able to work it out by stepping through the instructions. Good luck and happy redeeming!