<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,5 @@
 nbproject/*
+.ereiamjh
 *.sw?
 .DS_Store
 coverage</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,18 @@ require 'rubygems'
 # require 'httparty'
 require 'twitter' # requires 'httparty
 
+LAST_FILE = '.ereiamjh'
+
+def last_msg
+  File.open(LAST_FILE, 'r').read.strip if File.exists?(LAST_FILE)
+end
+
+def set_last_msg(msg)
+  File.open(LAST_FILE, 'w') do |file|
+    file.puts msg.strip
+  end
+end
+
 class EreIAmJH
   include HTTParty
   base_uri 'ip-address.domaintools.com'
@@ -50,8 +62,11 @@ class EreIAmJH
     ip       = dnstools['ip_address']
     location = &quot;#{city}, #{state}&quot;
     msg      = &quot;Hello from #{location}!  I'm on #{isp} as #{ip}&quot;
-    twitter  = Twitter::Base.new(Twitter::HTTPAuth.new(@username, @password))
-    twitter.update(msg)
-    twitter.update_profile(:location =&gt; location)
+    unless last_msg == msg
+      twitter  = Twitter::Base.new(Twitter::HTTPAuth.new(@username, @password))
+      twitter.update(msg)
+      twitter.update_profile(:location =&gt; location)
+      set_last_msg(msg)
+    end
   end
 end</diff>
      <filename>lib/ereiamjh.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>76f526dc9fcab6cce220bc128a52e5bf90ebbca5</id>
    </parent>
  </parents>
  <author>
    <name>Thomas Davis</name>
    <email>ted@ceylon.local</email>
  </author>
  <url>http://github.com/trak3r/ereiamjh/commit/166d69a484f3f6353325367cc53a79792ae8895c</url>
  <id>166d69a484f3f6353325367cc53a79792ae8895c</id>
  <committed-date>2009-10-28T13:47:13-07:00</committed-date>
  <authored-date>2009-10-28T13:47:13-07:00</authored-date>
  <message>skip post if hasn't changed</message>
  <tree>e88c195d614f76f4c58aa88fc38dac78231b9762</tree>
  <committer>
    <name>Thomas Davis</name>
    <email>ted@ceylon.local</email>
  </committer>
</commit>
