<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title><![CDATA[Midnight Cheese]]></title>
  <link href="http://www.midnightcheese.com/atom.xml" rel="self"/>
  <link href="http://www.midnightcheese.com/"/>
  <updated>2012-01-07T13:40:33-06:00</updated>
  <id>http://www.midnightcheese.com/</id>
  <author>
    <name><![CDATA[Russell Cale Mooth]]></name>
    
  </author>
  <generator uri="http://octopress.org/">Octopress</generator>

  
  <entry>
    <title type="html"><![CDATA[Old Stones River Road]]></title>
    <link href="http://www.midnightcheese.com/2012/01/old-stones-river-road/"/>
    <updated>2012-01-07T12:27:00-06:00</updated>
    <id>http://www.midnightcheese.com/2012/01/old-stones-river-road</id>
    <content type="html"><![CDATA[<p>If you look at the <a href="http://g.co/maps/4vhf6">Percy Priest Lake area on Google Maps</a> you can often see old roads that lead straight into the water. Recently I noticed such a road parallel to Stones River Road here in La Vergne, and this past fall Merredith and I decided to take a walk to see what we could find.</p>

<p><a href="http://g.co/maps/4vhf6"><img src="http://assets.midnightcheese.com/images/google-maps-old-stones-river-road.jpg"></a><br><small>Old Stones River Road on Google Maps</small></p>

<p>It turns out there was quite a bit to see of Old Stones River Road. From small drainage bridges to old fencing to the actual roadbed, it looks as though the road was left as-is when <a href="http://en.wikipedia.org/wiki/Percy_priest_lake">Percy Priest Lake</a> was built in the 1960s. The following photos were taken just south of the Hurricane Creek boat ramp area.</p>

<p><a href="http://www.flickr.com/photos/midnightcheese/6654353083/"><img src="http://assets.midnightcheese.com/images/old-stones-river-road.jpg"></a><br><small>Old Stones River Road</small></p>
<p><a href="http://www.flickr.com/photos/midnightcheese/6654343085/"><img src="http://assets.midnightcheese.com/images/old-stones-river-road-drainage-bridge.jpg"></a><br><small>One of the drainage bridges along Old Stones River Road</small></p>
<p><a href="http://www.flickr.com/photos/midnightcheese/6654350701/"><img src="http://assets.midnightcheese.com/images/old-stones-river-road-drainage.jpg"></a><br><small>Old Stones River Road showing fencing and drainage bridge</small></p>
<p><a href="http://www.flickr.com/photos/midnightcheese/6654354413/"><img src="http://assets.midnightcheese.com/images/percy-priest-lake-from-old-stones-river-road.jpg"></a><br><small>View of Percy Priest Lake from Old Stones River Road</small></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Switching From WordPress to Octopress]]></title>
    <link href="http://www.midnightcheese.com/2011/11/switching-from-wordpress-to-octopress/"/>
    <updated>2011-11-03T10:37:00-05:00</updated>
    <id>http://www.midnightcheese.com/2011/11/switching-from-wordpress-to-octopress</id>
    <content type="html"><![CDATA[<p>Today marks yet another milestone for Midnight Cheese by successfully making the migration from <a href="http://wordpress.org/">WordPress</a> to <a href="http://octopress.org/">Octopress</a>. With web trends moving toward fast, light, and responsive, my WordPress setup was becoming slow, bloated, and stagnant. WordPress functions well, but for a single user it was just too large of a feature set. The slow page-load times really made this obvious.</p>

<p>Octopress is the complete opposite of WordPress. Octopress is all static. No scripting. No DB.</p>

<p><strong>Some History</strong><br />The current design is the default Octopress theme. That means a redesign is coming soon. I started looking back and realized 2007 was the last time I applied a design update, which is a bit embarrassing.</p>

<p>Octopress is the fourth blogging CMS that the site has operated under. <a href="http://en.wikipedia.org/wiki/Blogger_(service)">Blogger</a> started everything off very early on, followed by <a href="http://en.wikipedia.org/wiki/Greymatter_(software)">Greymatter</a> (also based on static files) in 2001, WordPress in 2004, and now Octopress.</p>

<p><img src="http://assets.midnightcheese.com/images/midnightcheese-2002.png" alt="Midnight Cheese in 2002" border="0"><br /><small>Midnight Cheese in 2002</small></p>

<p><strong>Issues with Disqus</strong><br />The WordPress import instructions on the Octopress site worked well. The most time consuming part for me was getting <a href="http://disqus.com/">Disqus</a> properly set up. It turns out you have to enable comments on each post.</p>

<pre><code>
  comments: true
</code></pre>

<p>This meant a lot of text manipulation across some 470 posts. I used a little perl action to run through the _posts folder and change what was needed in each file. Basically a find and replace action.</p>

<pre><code>
  perl -pi -e 's/type: post/type: post\ncomments: true/g' *.html
</code></pre>

<p>In addition, to get the comment count to appear on the main index view, I had to implement <a href="http://www.benjiegillam.com/2011/09/octopress-slash-disqus-issue-resolved/">this Disqus fix from Benjie Gillam</a>.</p>

<p><strong>Image Files and Redirects</strong><br />Storing my repo on <a href="http://github.com/">Github</a>, I decided I didn&#8217;t want to have all my images and various media files sitting on Github&#8217;s servers, or across multiple repos on my various computers. On most posts I often have quite a few images. To solve this I created an assets subdomain and moved everything over, keeping all those large files out of the code base.</p>

<p>Many of my images rank well on Google image search which drives a good bit of traffic to the site. That meant 301 redirects for all my images. And again I used that perl script to run through all the posts to modify image URLs.</p>

<p><strong>To the Future</strong><br />I love how light and responsive the site has become with the static setup. Next on the list is a fresh design and custom asides. Flickr will probably be top on the aside list.</p>]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Displaying Twitter and Weather on your Arduino LCD Screen]]></title>
    <link href="http://www.midnightcheese.com/2011/10/displaying-twitter-and-weather-on-your-arduino-lcd-screen/"/>
    <updated>2011-10-28T22:08:00-05:00</updated>
    <id>http://www.midnightcheese.com/2011/10/displaying-twitter-and-weather-on-your-arduino-lcd-screen</id>
    <content type="html"><![CDATA[<p>Pieced together from many different sources, the following scripts will allow you to display the Twitter public timeline, the top 20 Twitter trending topics and the current weather on your <a href="http://www.arduino.cc/">Arduino</a> LCD screen. This is done with a PHP script and an Arduino connected to OS X via USB.</p>

<p>You can <a href="http://www.midnightcheese.com/download/arduino-tweet-weather.zip">download the scripts as a zip file</a>.</p>

<p><strong>The Arduino Program</strong>
The tricky part of this project was getting the text to scroll up the two line LCD screen. In the Arduino program, we&#8217;re looking to see if a line of text has a special character prefixed to it. Text prefixed with &#8216;!&#8217; will place the text on line 1. Text prefixed with &#8216;@&#8217; will place the text on line 2. Sending the  &#8216;^&#8217; character clears the screen.</p>

<pre>
<code lang="c">
#include &lt;liquidcrystal.h&gt;
#include &lt;wstring.h&gt;

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(2, 3, 4, 9, 10, 11, 12);

void setup() {
  analogWrite(5, 100);    // Set LCD contrast level (0-255)
  lcd.begin(16, 2);       // Set the LCD's number of rows and columns
  Serial.begin(9600);     // Initialize communication with serial(USB) port.
  lcd.print("Hello.");    // Print welcome message to LCD.
}

int bufferArray[250];     // Our array to store characters arriving from serial port.
int output = 0;
int i = 0;

void loop() {
  int count = Serial.available();

  if (Serial.available() > -1) {
    delay(1000);
    for (i=0; i&lt;count ; i++) {
     bufferArray[i] = Serial.read();          // Put into array
     output = 1;                              // Show new data has been recieved
    } 
  }
  
  if (output != 0) {                          // If new bytes have been recieved                
    int position = 0;
    if (bufferArray[0] == '!') {              // Print on first line if message begins with '!'
      lcd.clear();
      lcd.setCursor(0,0);
      position = 1;
    } else if (bufferArray[0] == '@') {       // Print on second line if message begins with '@'
      lcd.setCursor(0,1);
      position = 1;
    } else if (bufferArray[0] == '^') {       // Clear screen if message begins with '^'
      lcd.clear();
      lcd.setCursor(0,0);
      position = 1;
    } else {
      lcd.clear();
      lcd.setCursor(0,0);
    }
    int j;
    for (j = position; j &lt; count; j++) {
      lcd.write(bufferArray[j]);
    }
    output = 0;                               // Don't print on next iteration
    memset(bufferArray, 0, count);
    count = 0;
  }
}
</code></pre>

<p><strong>The PHP Script</strong>
With those rules established, our PHP script can handle the rest. I&#8217;m using fun classes like <a href="http://php.net/manual/en/function.wordwrap.php">wordwrap</a> and <a href="http://php.net/manual/en/function.explode.php">explode</a> to break long strings of text into LCD width chunks that are placed into an array, prefixed with our placement characters, and fed to the Arduino.</p>

<pre>
<code lang="php">
&lt;?php
// Include the PHP Serial class.
include "php_serial.class.osx.php";
//Define the serial port to use
define('SERIALPORT','/dev/cu.usbserial-A900adK5');

// Weather
$zipcode = 37211;
$title = "Nashville WX.";

// Setup the serial connection
$serial = new phpSerial; 
$serial->deviceSet(SERIALPORT);
$serial->confBaudRate(9600);

// Time
$lastTime = date('D M j H:i:s Y');
$lastTime = strtotime($lastTime);

// Scroll text up LCD screen 
function scrollChunks($message) {
  global $serial;
  $serial->deviceOpen();
  for ($i=0; $i&lt;count ($message); $i++) {
    if ($i==0) {
      $serial->sendMessage($message[$i]);
    } else if ($i&1 && $i!=0) { // If $i is odd and not zero
      $serial->sendMessage($message[$i]);
      sleep(1);
      $message[$i] = substr_replace($message[$i], "!", 0, 1); // Print on top line !
      $serial->sendMessage($message[$i]);
    } else if (!($i&1) && $i!=0) { // If $i is even and not zero
      $message[$i] = substr_replace($message[$i], "@", 0, 1); // Print on top line @
      $serial->sendMessage($message[$i]);
      sleep(1);
      $message[$i] = substr_replace($message[$i], "!", 0, 1); // Print on top line !
      $serial->sendMessage($message[$i]);
    }
    echo $message[$i]."\n";
    sleep(1);
  }
  sleep(1);
  $serial->sendMessage(" ");
  $serial->deviceClose();
}

// Wordwrap our text to lines no more than 15 characters long.
// The LCD displays 16 characters at a time, minus a space for our
// placement character.
function segmentString($t) {
  $chunks = wordwrap($t, 15, "\n", true);
  $chunks = explode("\n", $chunks);
  // Alternate each line with '!' and '@'
  for ($i=0; $i&lt;count ($chunks); $i++) {
    if ($i&1) {
      $chunks[$i] = "@".$chunks[$i];
    } else {
      $chunks[$i] = "!".$chunks[$i];
    }
  }
  scrollChunks($chunks);
}

function displayRSS() {
  global $serial;
  global $title;
  echo "Display only: ".$title."\n";
  sleep(3);
  $serial->deviceOpen();
  $serial->sendMessage($title);
  sleep(240);
  $serial->sendMessage("^");
  sleep(3);
  $serial->deviceClose();
}

function pullWXRSS() {
  global $zipcode;
  $yql = "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20location%3D".$zipcode."&format=json";
  $session = curl_init($yql);
  curl_setopt($session, CURLOPT_RETURNTRANSFER,true);
  $json = curl_exec($session);
  $json_output =  json_decode($json,true);
  global $serial;
  global $title;
  $title = $json_output['query']['results']['channel']['item']['condition']['temp']."F ".$json_output['query']['results']['channel']['item']['condition']['text'];
  echo "Pull and Display: ".$title."\n";
  echo "Waiting a few seconds to display on Arduino...\n\n";
  sleep(5);
  $serial->deviceOpen();
  $serial->sendMessage($title);
  sleep(240);
  $serial->deviceClose();
  sleep(3);
}

// Display current weather from Yahoo! YQL
function displayWX() {
  global $lastTime;
  global $title;
  
  $currentTime = date('D M j H:i:s Y');
  $currentTime = strtotime($currentTime);
  
  echo "\n\n\n\nCurrent Time: ".$currentTime."\n";
  echo "Last Time: ".$lastTime."\n";
  
  $timeDiff = $currentTime - $lastTime;
  echo "Time Difference: ".$timeDiff."\n";
  
  // 1 hour = 3600
  if ($timeDiff>=3605 || $title == "Nashville WX.") {
    echo "It's been an hour. Pulling WX.\n";
    $lastTime = $currentTime;
    pullWXRSS();
  } else {
    echo "An hour has not passed. Displaying old WX.\n";
    displayRSS();
  }
  displayPubTimeline();
}

function displayPubTimeline() {
  $jsonurl = "http://api.twitter.com/1/statuses/public_timeline.json";
  $json = file_get_contents($jsonurl,0,null,null);
  $json_output = json_decode($json,true);
  foreach ($json_output as $tweet) {
    $name = $tweet['user']['screen_name'];
    $text = $tweet['text'];
    echo "\n\n\n".$name."\n";
    echo $text."\n\n";
    global $serial;
    $serial->deviceOpen();
    $serial->sendMessage("Twitter User:");
    sleep(1.5);
    $serial->sendMessage("@".$name);
    echo "@".$name."\n";
    sleep(2);
    $serial->deviceClose();
    if (strlen($text) > 16) {
      segmentString($text);
    } else {
      $serial->deviceOpen();
      $serial->sendMessage($text);
      $serial->deviceClose();
    }
    sleep(5);
  }
  sleep(5);
  displayTopTrends();
}

function displayTopTrends () {
  $jsonurl = "http://api.twitter.com/1/trends/daily.json";
  $json = file_get_contents($jsonurl,0,null,null);
  $json_output = json_decode($json,true);
  $json_output = current($json_output['trends']);
  
  global $serial;
  
  $serial->deviceOpen();
  $serial->sendMessage("The top 20");
  sleep(1);
  $serial->sendMessage("@Twitter trends:");
  $serial->deviceClose();
  sleep(3);
  echo "\n\nTwitter Trends\n\n";
  
  foreach ($json_output as $trend) {
    $trendname = $trend['name'];
    echo $trendname."\n";
    $serial->deviceOpen();
    $serial->sendMessage("^".$trendname);
    $serial->deviceClose();
    sleep(15);
  }
  $serial->deviceOpen();
  $serial->sendMessage("^");
  sleep(1);
  $serial->deviceClose();
  sleep(3);
  displayWX();
}

displayWX();
?>
</code></pre>

<p><strong>PHP Serial Class</strong>
The PHP script requires an OS X specific serial class to talk with the Arduino board. I&#8217;m using <a href="https://gist.github.com/51342">this serial class by Rémy Sanchez</a>, modified by <a href="http://andrewhutchings.com/php-serial-class-for-os-x">Andrew Hutchings</a>. You&#8217;ll need to define your serial device (which you can find in /dev). It should look something like /dev/cu.usbserial-A900adK5.</p>

<p><strong>Bash Start-up File</strong>
In addition, due to the way OS X handles communication over the USB connection (you can <a href="http://www.mydarkmaterials.co.uk/2008/11/30/interfacing-php-with-the-arduino/">read more about it here</a>) we need to run a sleep command to prevent the Arduino from resetting itself each time you send data to it.</p>

<pre>
<code lang="bash">
#!/bin/bash

nohup sleep 36000 &lt; /dev/cu.usbserial-A900adK5 &amp;

php tweet-arduino.php
</code>
</pre>

<p>That&#8217;s it. Pass the Arduino program to your Arduino, change the name of your serial device in the PHP script and these scripts should run right out of the box.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[10K Apart Weather App]]></title>
    <link href="http://www.midnightcheese.com/2011/10/10k-apart-weather-app/"/>
    <updated>2011-10-05T00:00:00-05:00</updated>
    <id>http://www.midnightcheese.com/2011/10/10k-apart-weather-app</id>
    <content type="html"><![CDATA[<p><a href="http://www.midnightcheese.com/wx/">10KWX</a> is a responsive weather app that I submitted to this year&#8217;s <a href="http://10k.aneventapart.com/">10K Apart</a> exercise.</p>

<p><a href="http://assets.midnightcheese.com/images/10KWX-Day.png" rel="lightbox"><img src="http://assets.midnightcheese.com/images/10KWX-Day.jpg" border="0" alt="10KWX weather app during the day" /></a></p>

<p>The app uses a web browser&#8217;s <a href="http://dev.w3.org/geo/api/spec-source.html">geo location feature</a> to grab the user&#8217;s location and then pass that info off to <a href="http://developer.yahoo.com/weather/">Yahoo!&#8217;s weather API</a> for current conditions and forecast.</p>

<p><a href="http://assets.midnightcheese.com/images/10KWX-Mobile.png" rel="lightbox"><img src="http://assets.midnightcheese.com/images/10KWX-Mobile.jpg" border="0" class="blogImage" alt="10KWX Mobile screen shots" /></a><small>The application is responsive!</small></p>

<p>To fit within the 10K file size limit, use of images was out of the question. But, what&#8217;s a weather forecast without a nice graphical indicator of the weather? Using the HTML5 canvas element and CSS3 animation I was able to render the graphics and the subtle animation of each weather illustration. (Be sure to check in during a thunderstorm.)</p>

<p>Having done quite a bit of animation in Flash and After Effects, CSS3 animation techniques are actually a welcomed way of doing things. I love being able to specify keyframes as percentage points.</p>

<pre><code lang="css">
@-moz-keyframes rain1 {  
  0% {  
    margin-top: 0px;
    margin-left: 0px;
    opacity: 0;
  }
  20% {
    margin-top: 6px;
    margin-left: -4px;
    opacity: .55;
  }
  80% {
    margin-top: 54px;
    margin-left: -36px;
    opacity: .55;
  }
  100% {  
    margin-top: 60px;
    margin-left: -40px;
    opacity: 0;
  }  
}
</code></pre>

<p>One bug(?) I found with CSS3 animation was not being able to span values across multiple percentage breaks. For example, looking at the animation above, I originally didn&#8217;t have the top and left margin values written out on the 20% and 80% marks, just the 0% and 100% marks. But, this caused some funky animation to occur, especially on the iOS version of Webkit. Adding top and left margin to the 20% and 80% points solved this problem. The only downside: It requires calculating those margin values at that specific percentage point.</p>

<p><a href="http://assets.midnightcheese.com/images/10KWX-Night.png" rel="lightbox"><img src="http://assets.midnightcheese.com/images/10KWX-Night.jpg" border="0" class="blogImage" alt="10KWX weather app at night" /></a></p>

<p>This project was a lot of fun. Surprisingly time consuming, but that happened to be a good thing.</p>

<p>You can view my <a href="http://10k.aneventapart.com/Entry/Details/555">10K Apart project page</a>, the actual <a href="http://10k.aneventapart.com/2/Uploads/555/">10KWX app</a>, and this enhanced version of <a href="http://www.midnightcheese.com/wx/">10KWX</a> with a nice font from Google and the ability to enter a zip code as a URL variable. (?z=33186)</p>

<p>Also, <a href="http://visitmix.com/labs/ai2canvas/">Ai->Canvas</a> is a great plugin for converting Adobe Illustrator shapes to a canvas object.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Podcastin' with Jawgrind]]></title>
    <link href="http://www.midnightcheese.com/2011/09/podcastin-with-jawgrind/"/>
    <updated>2011-09-06T00:00:00-05:00</updated>
    <id>http://www.midnightcheese.com/2011/09/podcastin-with-jawgrind</id>
    <content type="html"><![CDATA[<p>I had the opportunity to geek out with <a href="http://trey.cc/">Trey</a> and <a href="http://about.me/stephenwyattbush">Stephen</a> on the <a href="http://jawgrind.com/post/9729604918/episode-2-stephens-moustache">lastest episode of Jawgrind</a>. We had a lot of fun talking about all things web related: <a href="http://www.vimconf.org/" title="VimConf">VimConf</a>, <a href="http://www.getskeleton.com/" title="Skeleton Boilerplate">Skeleton</a>, <a href="http://10k.aneventapart.com/" title="Responsive Web Design in 10K of code">10K Apart</a> (I&#8217;ll be posting my project soon), bookmarking sites, <a href="http://html5weekly.com/" title="HTML% Weekly">HTML5</a> and <a href="http://javascriptweekly.com/" title="Javascript Weekly">JavaScript Weekly</a>, Rails 3.1 and much more. Alcohol may have been involved.</p>

<p>Stephen and Trey are much more talented in the world of web dev than I, so it was great to sit-in and learn a thing or two. <a href="http://jawgrind.com/post/9729604918/episode-2-stephens-moustache">Give Jawgrind a listen here</a>.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Seedling: A Garden Tracking App]]></title>
    <link href="http://www.midnightcheese.com/2011/08/seedling-a-garden-tracking-app/"/>
    <updated>2011-08-30T00:00:00-05:00</updated>
    <id>http://www.midnightcheese.com/2011/08/seedling-a-garden-tracking-app</id>
    <content type="html"><![CDATA[<p>Since it&#8217;s inception about a year ago, I&#8217;ve been working on a new project that has really been a lot of fun. The project is called <a href="http://seedlinglog.com/">Seedling</a> and it&#8217;s a new web app that will let people track the progress of their backyard gardens.</p>

<p>The app lets you <a href="http://blog.seedlinglog.com/2011/08/logging-plant-progress/">log basic milestones</a> like plant yield, height, photos, etc. With that data, the app  automatically creates graphs so you can visualize the progress and performance of your fruit and vegetables (or any other type of plant.)</p>

<p><a href="http://seedlinglog.com/"><img src="http://assets.midnightcheese.com/images/seedling-app.jpg" alt="Seedling" border="0" class="blogImage" /></a></p>

<p>There will also be a social aspect to Seedling. In addition to posting and sharing photos, people can comment on milestones and follow other users.</p>

<p>We&#8217;re aiming for a soft launch/preview in time for folks to start tracking some of their fall gardens, which means invite emails will be going out soon.</p>

<p>To sign-up for the first launch or to receive more info as we progress, you can get on our email list at <a href="http://seedlinglog.com/">http://seedlinglog.com/</a> We&#8217;ll also be posting more info on the <a href="http://blog.seedlinglog.com/">Seedling blog</a> in the coming weeks.</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Broadcast iTunes AirPlay Tracks to Campfire Chat with TrackFire]]></title>
    <link href="http://www.midnightcheese.com/2011/06/broadcast-itunes-airplay-tracks-to-campfire-chat-with-trackfire/"/>
    <updated>2011-06-09T00:00:00-05:00</updated>
    <id>http://www.midnightcheese.com/2011/06/broadcast-itunes-airplay-tracks-to-campfire-chat-with-trackfire</id>
    <content type="html"><![CDATA[<p><strong>Update:</strong> <a href="https://github.com/Cale/TrackFire" title="TrackFire on GitHub">TrackFire is now on GitHub</a> for your forking pleasure.</p>

<p>TrackFire is an <a href="http://developer.apple.com/library/mac/#documentation/AppleScript/Conceptual/AppleScriptX/AppleScriptX.html">AppleScript</a> &#8220;app&#8221; that posts <a href="http://www.apple.com/itunes/">iTunes</a> track titles played over an <a href="http://www.apple.com/itunes/airplay/">AirPlay</a> device to a <a href="http://campfirenow.com/">Campfire</a> chat room.</p>

<p>In the office we often play music from iTunes over an Airport Express device for the entire floor to hear. Inevitably, someone asks, &#8220;What band is this?&#8221; Being the avid users of Campfire that we are, we thought it would be perfect if iTunes AirPlay tracks could automatically have their name and album info posted to a Campfire chatroom. And so TrackFire took form.</p>

<p>The AppleScript runs every few seconds checking for a running version of iTunes, then if iTunes is in play mode and broadcasting to a specific AirPlay device, the track information is posted to Campfire.</p>

<p>For the most part, the script runs without issue, but an error is thrown every once in a while. &#8220;Can&#8217;t make &laquo;class cFIT&raquo; id 10219 of &laquo;class cUsP&raquo; id 10192 of &laquo;class cSrc&raquo; id 65 of application &#8216;iTunes&#8217; into the expected type.&#8221; (Still tracking down the cause.) Thanks to the folks over at the <a href="https://discussions.apple.com/">Apple Discussion Boards</a> for all their help.</p>

<strong>Installation</strong>
<ol>
	<li>Paste the script into AppleScript Editor replacing the Campfire variables with your own information.</li>
	<li>Save as an Application with &#8220;Stay Open&#8221; checked. Double-click your new script and it will run in the background.</li>
	<li> Use iTunes as you normally would and the script does the rest.</li>
</ol>

<pre><code lang="applescript">
(* Begin user defined settings ************)

property campfire_token : "1234567" (* Your Campfire API authentication token *)
property airplay_device : "Apple TV" (* The name of your AirPlay device *)
property campfire_room : "https://yourname.campfirenow.com/room/123456/speak.xml" (* The Campfire room you'd like to post to *)

(* End user defined settings *************)

global current_track, last_track, current_device

on run
	(* init at runtime*)
	set current_track to ""
	set current_device to ""
	set last_track to ""
end run

on idle
	if application "iTunes" is not running then return 10
	tell application "iTunes"
		if (player state is not playing) or (current track is equal to last_track) then return 5
		
		set last_track to current track
		
		set minimized of front browser window to false
		set visible of front browser window to true
		set current_device to my getDevice()
		if current_device as string is not equal to airplay_device & " AirPlay" then return 5
		
		set track_info to my mungeText({name, artist, album} of last_track, "", " :: ")
		set track_info to track_info as string
		set track_info to my mungeText(track_info, "&", "&amp;") -- Replace ampersands
		set track_info to my mungeText(track_info, "\"", "&#34;") -- Replace quotation marks
		set track_info to my mungeText(track_info, "'", "&#39;") -- Replace apostrophes
		
		set shellCommand to ("curl -u " & campfire_token & ":X -H 'Content-Type: application/xml' -d '<message><type>TextMessage</type><body>" & track_info & "</body></message>' " & campfire_room)
		set shellCommand to shellCommand as string
		do shell script shellCommand
		(*display dialog shellCommand*)
		(*log "Posting to Campfire:" & shellCommand*)
		return 5
	end tell
end idle

on getDevice()
	tell application "System Events"
		tell process "iTunes"
			return description of button 8 of window "iTunes"
		end tell
	end tell
end getDevice

on mungeText(itxt, stxt, rtxt)
	set tid to AppleScript's text item delimiters
	if class of itxt is text then
		set AppleScript's text item delimiters to stxt
		set itxt to text items of itxt
	end if
	set AppleScript's text item delimiters to rtxt
	set otxt to itxt as text
	set AppleScript's text item delimiters to tid
	return otxt
end mungeText
</code></pre>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[bbbrowser: Fun with the Dribbble API]]></title>
    <link href="http://www.midnightcheese.com/2011/06/bbbrowser-fun-with-the-dribbble-api/"/>
    <updated>2011-06-09T00:00:00-05:00</updated>
    <id>http://www.midnightcheese.com/2011/06/bbbrowser-fun-with-the-dribbble-api</id>
    <content type="html"><![CDATA[<p>I love thinking up ways to display interesting data that continuously updates. Browsing through the <a href="http://dribbble.com/api">Dribbble API</a> I thought it would be a lot of fun to see <a href="http://dribbble.com/shots/everyone">everyone&#8217;s</a> shots pass through a display as they&#8217;re uploaded.</p>

<p><a href="http://midnightcheese.com/bbbrowser/"><img src="http://assets.midnightcheese.com/images/bbbrowser-small.jpg" border="0" alt="bbbrowser &mdash; Fun with Dribbble" class="blogImage" /></a></p>

<p><a href="http://midnightcheese.com/bbbrowser/">bbbrowser</a> hits the Dribbble API every 24 seconds and displays the newest shots in your browser window. I like to leave this window open throughout the day and watch all the new artwork roll in. It&#8217;s a great source of inspiration. If your browser supports fullscreen mode, even better.</p>

<p>The layout is tailored to widescreen monitors. The images do stretch as your browser is resized, however, so make sure you find that sweet spot between size and aspect ratio. (I&#8217;d hate to see someone&#8217;s beautiful typography get all squishy.)</p>

<p><a href="http://midnightcheese.com/bbbrowser/">Jump in and start exploring</a>!</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Arduino, LCD and Plexiglass]]></title>
    <link href="http://www.midnightcheese.com/2011/05/arduino-lcd-and-plexiglass/"/>
    <updated>2011-05-15T00:00:00-05:00</updated>
    <id>http://www.midnightcheese.com/2011/05/arduino-lcd-and-plexiglass</id>
    <content type="html"><![CDATA[<p>I&#8217;ve been wanting to build some type of container for my <a href="http://www.midnightcheese.com/2010/03/hooking-up-a-parallel-lcd-to-arduino/">Ardiuno/LCD combination</a> for some time. A couple weekends ago I finally bought some plexiglass and machine screws and made it happen.</p>

<p>The plexiglass is more fragile than I expected. It&#8217;s extremely scratch prone and cracks easily with just a slight bit of pressure. Scoring and snapping was actually the easiest part of dealing with the plastic. Drilling holes produced small cracks on more than one occasion.</p>

<p>Eventually I  got it right and now the <a href="http://www.arduino.cc/">Arduino</a> and its components have a solid base to function on.</p>

<p><a href="http://assets.midnightcheese.com/images/arduino-lcd-plexiglass-large.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/arduino-lcd-plexiglass.jpg" alt="Arduino, Plexiglass and LCD screen" border="0" class="blogImage" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/arduino-lcd-close-large.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/arduino-lcd-close.jpg" alt="Arduino and LCD screen" border="0" class="blogImage" /></a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[My iPhoneTracker Map is Mostly Useless]]></title>
    <link href="http://www.midnightcheese.com/2011/04/my-iphonetracker-map/"/>
    <updated>2011-04-20T00:00:00-05:00</updated>
    <id>http://www.midnightcheese.com/2011/04/my-iphonetracker-map</id>
    <content type="html"><![CDATA[<p>A former Apple employee has created an app called <a href="http://petewarden.github.com/iPhoneTracker/">iPhoneTracker</a> that pulls data from your iPhone backups in iTunes and then displays pretty much everywhere you&#8217;ve been lately. There&#8217;s a <a href="http://radar.oreilly.com/2011/04/apple-location-tracking.html">huge storm of privacy concern</a> going on as a result.</p>

<p>You can certainly tell what cities someone has been to, but most of the location data is way off. Hundreds of miles off in my case. I can&#8217;t imagine anyone finding much use in this as local data is grossly unreliable.</p>

<p>Here&#8217;s my map. Larger dots are correct. I have been to Birmingham and Jacksonville, but the smaller dots in places like Northwestern Alabama and the central panhandle of Florida are completely incorrect.</p>

<p><a href="http://assets.midnightcheese.com/images/iphonetracker-map-large.png" rel="lightbox"><img src="http://assets.midnightcheese.com/images/iphonetracker-map.jpg" border="0" class="blogImage" alt="iPhoneTracker Map" /></a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Honda Indy Grand Prix at Barber: Photos]]></title>
    <link href="http://www.midnightcheese.com/2011/04/honda-indy-grand-prix-at-barber-photos/"/>
    <updated>2011-04-10T00:00:00-05:00</updated>
    <id>http://www.midnightcheese.com/2011/04/honda-indy-grand-prix-at-barber-photos</id>
    <content type="html"><![CDATA[<p>Select photos from the Continental Tire Sports Car Series Race and the PORSCHE 250 Race (<a href="http://www.grand-am.com/">Grand-Am</a> Rolex Series) on Saturday at the <a href="http://www.barbermotorsports.com/">Barber Motorsports Complex</a> in Birmingham.</p>

<p><a href="http://assets.midnightcheese.com/images/gt-class-line-up.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/gt-line-up-small.jpg" width="420" border="0" class="blogImage" alt="GT Class lined up to enter starting grid at Barber" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/barber-race.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/barber-race-small.jpg" width="420" border="0" class="blogImage" alt="Continental Tire Race at Barber" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/mustang-camaro.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/mustang-camaro-small.jpg" width="420" border="0" class="blogImage" alt="Mustang and Camaro Cars" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/vette.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/vette-small.jpg" width="420" border="0" class="blogImage" alt="Whelen Corvette" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/reba.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/reba-small.jpg" width="420" border="0" class="blogImage" alt="Reba McEntire" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/ants.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/ants-small.jpg" width="420" border="0" class="blogImage" alt="Ant Sculptures at Barber Motorsports Park" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/barber-motorsports.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/barber-motorsports-small.jpg" width="420" border="0" class="blogImage" alt="Barber Motorsports Park" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/camaro.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/camaro-small.jpg" width="420" border="0" class="blogImage" alt="Camaro racing in Continental Tire race" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/vw-gti.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/vw-gti-small.jpg" width="420" border="0" class="blogImage" alt="VW GTI" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/barber-museum.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/barber-museum-small.jpg" width="420" border="0" class="blogImage" alt="Barber Museum" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/st-winners.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/st-winners-small.jpg" width="420" border="0" class="blogImage" alt="ST Class Winners at Victory Lane" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/gt-winners.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/gt-winners-small.jpg" width="420" border="0" class="blogImage" alt="GT Class Winners at Victory Lane" /></a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Nissan Leaf Review]]></title>
    <link href="http://www.midnightcheese.com/2011/03/nissan-leaf-review/"/>
    <updated>2011-03-26T00:00:00-05:00</updated>
    <id>http://www.midnightcheese.com/2011/03/nissan-leaf-review</id>
    <content type="html"><![CDATA[<p>The <a href="http://drivenissanleaf.com/">Nissan Leaf Drive Electric Tour</a> stopped in Franklin this weekend at <a href="http://www.nissanusa.com/about/corporate-info.html">Nissan&#8217;s North American headquarters</a>. I <a href="https://drivenissanleaf.com/Event/Default.aspx">signed up to drive</a> some weeks ago and our group was the first to drive Saturday morning.</p>

<p><a href="http://www.flickr.com/photos/midnightcheese/4286548266/"><img src="http://assets.midnightcheese.com/images/nissan-leaf-front.jpg" alt="Nissan Leaf Nashville" border="0" class="blogImage" width="400" height="266" /></a></p>

<p><strong>In short, the Leaf felt like any other small car.<br />It felt good.</strong>
The Nissan Leaf feels just like any other small sedan on the market. And that&#8217;s a good thing. Actually, the car is quite a bit smoother and feels more solid than most. (The Chevy Aveo is a nightmare on the interstate). But all things considered, aside from the dashboard, there&#8217;s nothing else about the drive that tells you you&#8217;re steering an electric car.</p>

<p>The test drive lasted approximately two and a half miles including some interstate time. Acceleration was excellent. I had no trouble getting up to interstate speeds (70mph).</p>

<p><strong>Range Indicator needs work</strong>
The only thing that really bothered me was the range indicator. The car indicated 103 miles in available range when we left, yet after returning 2.5 miles later, the car indicated 78 miles available. I&#8217;m sure the range algorithm is to blame. Even our tour guide said it was just recently updated to factor in hills. And granted, it was a cold morning (low 40s) with interstate driving and heat blasting. That would take some time to get used to. I wonder if it wouldn&#8217;t be more acceptable as a simple full/empty gauge rather than trying to indicate range down to individual miles. Even most gas cars don&#8217;t try to do this.</p>

<p><img src="http://assets.midnightcheese.com/images/leaf-range-meter.jpg" class="blogImage" border="0" alt="Nissan Leaf Range Meter" /></p>

<p><strong>A Different Driving Interface</strong>
The gear shifter was another oddity where Nissan is trying something different. The car can be in park, drive or eco drive. But it&#8217;s not your standard shifter. To shift from park to drive, the &#8220;shifter&#8221; is more of a nob that you drag in a &#8220;C&#8221; shape, then the nob retracts to it&#8217;s original position. The car is placed back in park by pressing the &#8220;P&#8221; button located in the middle of the shifter nob. That&#8217;s all fine once you get used to it, but if Nissan really wants to get people into electric cars, giving them unfamiliar controls seems to take away from the goal. It&#8217;s just one more excuse for someone not to buy.</p>

<p>Reverse and Neutral were not readily obvious. I was so curious with Drive and Park that I didn&#8217;t even think to ask about those other two.</p>

<p><img src="http://assets.midnightcheese.com/images/nissan-leaf-shifter.jpg" class="blogImage" border="0" alt="Nissan Leaf Shifter" /><br /><small>This photo from Nissan is actually a bit different from the actual model I drove.</small></p>

<p><strong>Minimal Maintenance, Awesome Accessories</strong>
With an electric car you do away with oil changes, radiator fluid (and leaks) and lots of other little sub-mechanics like fuel pumps, water pumps and thousands of moving parts that make up a gasoline engine that inevitably need to be serviced and maintained.</p>

<p>You can basically control the Leaf from your phone. The car can notify you if you forget to pug it in at night. You always know where the closest charging station is, and here&#8217;s the interesting part, Nissan can tell you if someone is using a specific charger. This is huge because this means Nissan knows when, where and how much electricity each car is acquiring (and spending). The data Nissan is collecting is impressive. I assume they&#8217;ll use it to learn the habits of drivers and to make improvements over time.</p>

<p><img src="http://assets.midnightcheese.com/images/leaf-iphone-control.jpg" class="blogImage" border="0" alt="Nissan Leaf iPhone Control" /></p>

<p><strong>I&#8217;d Buy One</strong>
If I had an extra $32K hanging out, I&#8217;d absolutely buy a Leaf. I&#8217;d be paying an early adoper fee at this point, but that&#8217;s okay with me. My commute length (30 miles round-trip) is ideal. Even with our current cars, we rent when taking long trips, so no change there. The Leaf has a funky look, but it could look twice as weird and still not matter as long as I never had to pull up to a gas pump again.</p>

<p>All in all, the Nissan Leaf feels like a great car. The issues described above are just nitpicks which I would love to have the chance to get used to. Hey Nissan, can I barter some design work in exchange for a Leaf? I think that&#8217;s fair.</p>

<p><em>Sorry for the lack of photos this time. We arrived so early, our group was ushered through with zero waiting and I never had time to even pull out my phone. Nissan also didn&#8217;t have the &#8220;Win a Nissan Leaf Booth&#8221; manned, so unfortunately, I won&#8217;t be winning a Leaf. :)</em></p>

<p>Here are a few photos from the Leaf tour from last year:</p>

<p><a href="http://www.flickr.com/photos/midnightcheese/4286548266/"><img src="http://assets.midnightcheese.com/images/nissan-leaf-front.jpg" alt="Nissan Leaf Front" border="0" class="blogImage" width="400" height="266" /></a></p>

<p><a href="http://www.flickr.com/photos/midnightcheese/4285806209/"><img src="http://assets.midnightcheese.com/images/nissan-leaf-charging-port.jpg" alt="Nissan Leaf Charging Port" border="0" class="blogImage" width="400" height="266" /></a></p>

<p><a href="http://www.flickr.com/photos/midnightcheese/4285807777/"><img src="http://assets.midnightcheese.com/images/nissan-leaf-back.jpg" alt="Nissan Leaf Back" border="0" class="blogImage" width="400" height="266" /></a></p>

<p><a href="http://www.flickr.com/photos/midnightcheese/4286549832/"><img src="http://assets.midnightcheese.com/images/nissan-leaf-event-nashville.jpg" alt="Nissan Leaf Event Nashville" border="0" class="blogImage" width="400" height="266" /></a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Bulging MacBook Pro Battery]]></title>
    <link href="http://www.midnightcheese.com/2011/02/bulging-macbook-pro-battery/"/>
    <updated>2011-02-20T00:00:00-06:00</updated>
    <id>http://www.midnightcheese.com/2011/02/bulging-macbook-pro-battery</id>
    <content type="html"><![CDATA[<p>Normally I swap between two different batteries when using my <a href="http://gdgt.com/apple/macbook-pro/15-inch/">MacBook Pro</a>. Today I opened a drawer to my desk to fetch one of the batteries and found a bulging surprise waiting for me. From the photos below you can see the results of some type of internal reaction.</p>

<p>Luckily, the reaction wasn&#8217;t enough to burst the battery or start a fire. Thankfully, the battery wasn&#8217;t in my laptop at the time.</p>

<p><a href="http://assets.midnightcheese.com/images/bulging-macbook-pro-battery.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/bulging-macbook-pro-battery-small.jpg" class="blogImage" /></a></p>

<p><a href="http://assets.midnightcheese.com/images/bulging-macbook-pro-battery-2.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/bulging-macbook-pro-battery-2-small.jpg" class="blogImage" /></a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Just Another Nashville Snowpocalypse]]></title>
    <link href="http://www.midnightcheese.com/2011/02/just-another-snowpocalypse-in-nashville/"/>
    <updated>2011-02-10T00:00:00-06:00</updated>
    <id>http://www.midnightcheese.com/2011/02/just-another-snowpocalypse-in-nashville</id>
    <content type="html"><![CDATA[<p>It only took about 2&#8221; of snow to turn a 30 minute afternoon commute into 2, 3, 4 or more hours. I spent 2 hours in the car after leaving the offive at 8:30 last night. Merredith spent over 4 hours trying to get home.</p>

<p><img src="http://assets.midnightcheese.com/images/nashville-snow-i-65.png" border="0" alt="Snow in Nashville I-65" />
<small>Nashville snow at I-65 near Armory Wednesday Afternoon</small></p>

<p><img src="http://assets.midnightcheese.com/images/nashville-snow-440.png" border="0" alt="Snow in Nashville I-440" />
<small>Nashville snow at I-440 near 21st Ave Wednesday Afternoon</small></p>

<p><img src="http://assets.midnightcheese.com/images/snow-murfreesboro-rd-airport.jpg" border="0" class="blogImage" alt="Snow and traffic on Murfreesboro Road entering the airport tunnel" />
<small>Snow and traffic on Murfreesboro Road entering the airport tunnel</small></p>

<p><img src="http://assets.midnightcheese.com/images/snow-ice-i-24.jpg" border="0" class="blogImage" alt="Snow an Ice on I-24" />
<small>Snow on I-24 Wednesday night around 10:00pm</small></p>

<p><img src="http://assets.midnightcheese.com/images/snow-in-lavergne.jpg" border="0" class="blogImage" alt="Snow in LaVergne Thursday Morning" />
<small>Snow in LaVergne Thursday Morning</small></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Rolex 24 Series Race at Daytona 2011]]></title>
    <link href="http://www.midnightcheese.com/2011/02/rolex-24-series-race-at-daytona-2011/"/>
    <updated>2011-02-02T00:00:00-06:00</updated>
    <id>http://www.midnightcheese.com/2011/02/rolex-24-series-race-at-daytona-2011</id>
    <content type="html"><![CDATA[<p>Compilation of video and still images taken at this year&#8217;s <a href="http://www.grand-am.com/">Rolex Series</a> race at <a href="http://www.daytonainternationalspeedway.com/">Daytona</a>. 

<p><img src="http://assets.midnightcheese.com/images/chairs-daytona-speedway.jpg" width="420" height="420" class="blogImage" border="0" alt="Chairs at Daytona International Speedway" />

<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="420" height="266" src="http://www.youtube.com/embed/m-E5nuOo6yk" frameborder="0" allowFullScreen></iframe></p>

<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="420" height="266" src="http://www.youtube.com/embed/3nxqLhgC4G4" frameborder="0" allowFullScreen></iframe></p>

<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="420" height="266" src="http://www.youtube.com/embed/LvY5VtAtHE0" frameborder="0" allowFullScreen></iframe></p>

<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="420" height="266" src="http://www.youtube.com/embed/8j17AdIs8lg" frameborder="0" allowFullScreen></iframe></p>

<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="420" height="266" src="http://www.youtube.com/embed/EMY3QvHzeIE" frameborder="0" allowFullScreen></iframe></p>

<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="420" height="266" src="http://www.youtube.com/embed/yKMeCE9FNGM" frameborder="0" allowFullScreen></iframe></p>

<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="420" height="266" src="http://www.youtube.com/embed/xINAPF5b_9U" frameborder="0" allowFullScreen></iframe></p>

]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Another Middle Tennessee Snow]]></title>
    <link href="http://www.midnightcheese.com/2011/01/another-middle-tennessee-snow/"/>
    <updated>2011-01-26T00:00:00-06:00</updated>
    <id>http://www.midnightcheese.com/2011/01/another-middle-tennessee-snow</id>
    <content type="html"><![CDATA[<p>We ended up with 2 inches in the La Vergne area. Definitely a good snow for Middle Tennessee. Here&#8217;s some HD footage from around 7:00 this morning.</p>

<p><iframe title="YouTube video player" class="youtube-player" type="text/html" width="420" height="256" src="http://www.youtube.com/embed/b6L89i0TSp4" frameborder="0" allowFullScreen></iframe></p>

<p>Roads were still bad this morning, despite looking clear. The <a href="http://tncam.midnightcheese.com/">Tennessee Traffic Camera Widget</a> caught this accident.</p>

<p><a href="http://tncam.midnightcheese.com/"><img src="http://assets.midnightcheese.com/images/briley-parkway.png" alt="wreck on Briley Parkway - Tennessee Traffic Widget" border="0" /></a></p>

<p><img src="http://assets.midnightcheese.com/images/2-inches-of-snow.jpg" alt="2 inches of snow" class="blogImage" border="0" /></p>]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Tennessee Traffic Widget Version 2.0]]></title>
    <link href="http://www.midnightcheese.com/2011/01/tennesee-traffic-widget-version-2/"/>
    <updated>2011-01-17T00:00:00-06:00</updated>
    <id>http://www.midnightcheese.com/2011/01/tennesee-traffic-widget-version-2</id>
    <content type="html"><![CDATA[<p><a href="http://tncam.midnightcheese.com/">Tennessee Traffic Widget</a> v2.0 has been released. On the front-end, this new version restores Memphis and Knoxville camera images to the widget.</p>

<p>On the back-end, this version of the widget is a complete rewrite. The city and camera list is now dynamically generated each time the widget is accessed. This will result in much faster update times on the periodic occasion that camera image URLs change.</p>

<p>Visit the <a href="http://tncam.midnightcheese.com/">Tennessee Traffic Widget site</a> to download the new version.</p>

<p><a href="http://tncam.midnightcheese.com/"><img src="http://assets.midnightcheese.com/images/tennessee-traffic-widget.jpg" width="348" height="340" alt="Tennessee Traffic camera widget for OS X" border="0" /></a></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Tall Snowman]]></title>
    <link href="http://www.midnightcheese.com/2011/01/tall-snowman/"/>
    <updated>2011-01-12T00:00:00-06:00</updated>
    <id>http://www.midnightcheese.com/2011/01/tall-snowman</id>
    <content type="html"><![CDATA[<p>It was amusing catching this guy out of the corner of my eye while driving home last night. The neighbors got some good height on this rather tall snowman.</p>

<p><a href="http://assets.midnightcheese.com/images/tall-snowman-big.jpg" rel="lightbox"><img src="http://assets.midnightcheese.com/images/tall-snowman.jpg" width="420" height="522" border="0" class="blogImage" alt="tall snowman" /></a><br /><small>Tall snowman</small></p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[6 Things I Learned in 2010]]></title>
    <link href="http://www.midnightcheese.com/2011/01/6-things-i-learned-in-2010/"/>
    <updated>2011-01-06T00:00:00-06:00</updated>
    <id>http://www.midnightcheese.com/2011/01/6-things-i-learned-in-2010</id>
    <content type="html"><![CDATA[<p>Lots of people seem to be doing a 2010 reflection post of some sort, so I wanted to jump in as well. To be a little different I thought I would reflect on what I learned this year. In no particular order: <strong>6 Things I Learned in 2010</strong></p>

<p><strong>1. ActionScript 3.</strong><br />Finally got a decent grasp on <a href="http://en.wikipedia.org/wiki/ActionScript">AS3</a> after several years hacking around with AS2. Some basic AS3 skills went into our <a href="http://www.tapeonline.com/games/cornhole">Flash based Cornhole game</a> this year. Be sure to throw a few bags in your off time.</p>

<p><a href="http://www.tapeonline.com/games/cornhole"><img src="http://assets.midnightcheese.com/images/cornhole.gif" width="420" height="289" border="0" alt="Cornhole Game" class="blogImage" /></a></p>

<p><strong>2. CakePHP.</strong><br />I never took any programming classes in school, but have spent the last few years really trying my best to teach myself basic scripting/programming skills in some of the most relevant web related languages. I&#8217;ve been playing with <a href="http://en.wikipedia.org/wiki/PHP">PHP</a> for a while (<a href="http://candorgallery.com/">CandorGallery</a>) but really got into <a href="http://cakephp.org/">CakePHP</a> this past year. CakePHP is a <a href="http://en.wikipedia.org/wiki/Model-view-controller">MVC</a> based PHP framework that really lets developers do some powerful stuff. I built a little proof-of-concept webapp that imported trending topics from Twitter and let users rank the worthiness of the trends. I&#8217;ve since decommissioned <a href="http://www.midnightcheese.com/2010/04/trendmeme-search-and-rank-the-trends/">that project</a>.</p>

<p><img src="http://assets.midnightcheese.com/images/trendmeme-trend.jpg" width="400" height="527" border="0" alt="TrendMeme Trend Page" class="blogImage" /></p>

<p><strong>3. jQuery.</strong><br />I  jumped into a tiny bit of Javascript a few years ago when working on the <a href="http://tncam.midnightcheese.com/">Tennessee Traffic Widget</a>, but could never make my ideas actually function. This year I finally got into <a href="http://jquery.com/">jQuery</a> which has been an amazing tool for actually getting stuff done. I really cut my teeth on jQuery when building <a href="http://midnightcheese.com/pulse/">Pulse</a>, which is a little app that accepts your zip code and displays current information based on that location, pulling in current tweets, weather, weather maps, news from Google News and photos from Flickr. This one was fun to work on.</p>

<p><a href="http://midnightcheese.com/pulse/"><img src="http://assets.midnightcheese.com/images/pulse-screenshot.jpg" width="420" height="326" border="0" alt="Pulse - What's happening around you" class="blogImage" /></a></p>

<p><strong>4. Gardening.</strong><br />Not just gardening, but learning about how this country grows/manufactures food and then gets it to the population has been a huge wake-up for me this past year. From chickens that are too fat to move, to patented seeds, to grain fed vs. grass fed animals, and on and on and on; It&#8217;s really quite disgusting how we feed ourselves. On the other side of that, participating in vegetable and meat CSA programs has been wonderful. Our <a href="http://www.midnightcheese.com/2010/07/garden-update-stunted-growth/">backyard gardening project didn&#8217;t work out very well</a> this year, so I&#8217;m looking forward to improving this coming spring.</p>

<p><img src="http://assets.midnightcheese.com/images/lettuce-sprouts.jpg" alt="Lattuce Sprouts" class="blogImage" /></p>

<p><strong>5. Tinkering.</strong><br />It&#8217;s amazing what you learn just from playing around with what interests you. This year I <a href="http://www.midnightcheese.com/2010/03/hooking-up-a-parallel-lcd-to-arduino/">tinkered with an Arduino</a>, <a href="http://www.midnightcheese.com/2010/03/square-foot-gardening/">built a squarefoot garden</a>, <a href="http://www.midnightcheese.com/2010/05/weather-alert-script-for-your-home-server/">scripted my home server</a> to alert us to tornados and severe weather, rigged a <a href="http://www.midnightcheese.com/2010/07/cable-modem-and-router-on-solar-power/">solar panel and battery to run my home router and modem</a>, built a small iPod charger out of yard lights, pulled down <a href="http://www.midnightcheese.com/2010/07/noaa-weatherradio-fax-over-shortwave-radio/">weather maps off NOAA radio</a> and on and on picking up all kinds of information about how things work.</p>

<p><strong>6. People.</strong><br />I learned that people&#8217;s behavior is always unpredictable. After the historic <a href="http://www.midnightcheese.com/2010/05/historic-flooding-in-middle-tennessee/">flooding in Nashville</a> this spring, most of our office spent time over several weeks helping people out who had homes that were flooded by the high waters. We ripped out drywall, carried belongings to higher ground, cooked food, etc., etc. People were grateful for the assistance, but at the same time we witnessed an interesting behavior pattern of people who were really unwilling to help themselves. There were several instances where people were content to sit and do nothing, leaving their belongings in their homes to rot, and live in unlivable conditions until someone offered physical help. And not just days after the flood, but weeks later. Three and four weeks after the water receded we were still out there with <a href="http://www.hon.org/HomePage/index.php/home.html">Hands on Nashville</a> helping people that finally decided they probably shouldn&#8217;t live in waterlogged, moldy homes. I don&#8217;t know if it was pride or fear or just lack of common sense in some cases, but had there not been an overflow of volunteers in that area of town, there would still be people living in flood damaged homes, untouched and unrepaired. And it wouldn&#8217;t surprise me if there are still people living in those conditions, content not to help themselves out.</p>

<p><a href="http://www.flickr.com/photos/midnightcheese/4583681565/in/set-72157623880749141/"><img src="http://assets.midnightcheese.com/images/house-on-road-small.jpg" width="400" height="266" border="0" class="blogImage" alt="House moved off foundation" /></a></p>

<p>It was a stark contrast to the experience after Hurricane Andrew where all our neighbors came together immediately to secure belongings and damaged property and then come together each night to cook-out and provide food for each family on our cul-de-sac until power was restored and homes repaired. All without outside help from strangers.</p>

<p><strong>Looking Ahead</strong><br />
On a brighter note, looking toward 2011, I&#8217;m looking forward to the continue rise of the <a href="http://www.midnightcheese.com/2010/01/nissan-leaf-event-nashville/">electric vehicle</a>, <a href="http://www.midnightcheese.com/2010/01/how-to-cure-adobes-laziness/">multi-touch workstations</a>, iPad v2.0 with retina display and GPS at half the cost (fingers crossed), releasing a version of <a href="http://seedlinglog.com/">Seedling</a> (web app for logging progress of plants in your garden), and continued learning and tinkering!</p>
]]></content>
  </entry>
  
  <entry>
    <title type="html"><![CDATA[Snow Shadow]]></title>
    <link href="http://www.midnightcheese.com/2010/12/snow-shadow/"/>
    <updated>2010-12-13T00:00:00-06:00</updated>
    <id>http://www.midnightcheese.com/2010/12/snow-shadow</id>
    <content type="html"><![CDATA[<p>A quick photo of shadows in the snow from last night&#8217;s snowfall. It&#8217;s cold in Nashville. 16&deg; currently at the house. Our coldest start to December since the 1940&#8217;s according to <a href="http://forecast.weather.gov/MapClick.php?CityName=La+Vergne&state=TN&site=OHX&textField1=35.9993&textField2=-86.5732&e=0">NWS</a>.</p>

<p><a href="http://www.flickr.com/photos/midnightcheese/5259887326/"><img src="http://assets.midnightcheese.com/images/snow-shadow-small.jpg" border="0" class="blogImage" alt="shadows in the snow" /></a></p>
]]></content>
  </entry>
  
</feed>

