<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tony's Place &#187; code</title>
	<atom:link href="http://www.tonycode.com/blog/archives/tag/code/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tonycode.com/blog</link>
	<description>Random thoughts</description>
	<lastBuildDate>Tue, 23 Feb 2010 01:41:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Don&#8217;t let internal wikis leak company secrets.</title>
		<link>http://www.tonycode.com/blog/archives/81</link>
		<comments>http://www.tonycode.com/blog/archives/81#comments</comments>
		<pubDate>Sun, 01 Feb 2009 17:53:17 +0000</pubDate>
		<dc:creator>Tony Primerano</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.tonycode.com/blog/archives/81</guid>
		<description><![CDATA[Good wiki pages have good titles and the title is usually in the URL.   This is all well and good but if you&#8217;re creating pages on a corporate wiki that is hidden from the outside world, your title may be giving away too much information.
A few days ago on twitter one of my colleagues noticed [...]]]></description>
			<content:encoded><![CDATA[<p>Good wiki pages have good titles and the title is usually in the URL.   This is all well and good but if you&#8217;re creating pages on a corporate wiki that is hidden from the outside world, your title may be giving away too much information.</p>
<p>A few days ago on twitter one of my colleagues noticed this post on twitter.</p>
<blockquote><p><a target="_blank" onclick="pageTracker._trackPageview('/exit/to/JonGretar');" href="http://twitter.com/JonGretar">JonGretar</a>: <span class="msgtxt en" id="msgtxt1154915405">I think <strong>AOL</strong> is using <strong>Erlang</strong> for it&#8217;s chat system redesign.  </span>about 6 hours ago · <a target="_blank" class="litnv" onclick="pageTracker._trackPageview('/exit/reply/JonGretar');" href="http://twitter.com/home?status=@JonGretar">Reply</a> · <a target="_blank" class="lit" onclick="pageTracker._trackPageview('/exit/status/1154915405');" href="http://twitter.com/JonGretar/statuses/1154915405">View Tweet</a></p></blockquote>
<p>His initial thought was that all our candid discussions about Erlang on twitter gave us away.  But this wasn&#8217;t the case.</p>
<div class="msg">
<blockquote><p><a target="_blank" onclick="pageTracker._trackPageview('/exit/to/JonGretar');" href="http://twitter.com/JonGretar">JonGretar</a>: <span class="msgtxt en" id="msgtxt1154986230"><a target="_blank" onclick="pageTracker._trackPageview('/exit/to/tumka')" href="http://twitter.com/tumka">@tumka</a> Because of people viewing my <strong>erlang</strong> tutorial with referrer: wiki.office.<strong>aol</strong>.com/wiki/Open_Chat_Backend_Redesign</span> about 5 hours ago · <a target="_blank" class="litnv" onclick="pageTracker._trackPageview('/exit/reply/JonGretar');" href="http://twitter.com/home?status=@JonGretar">Reply</a> · <a target="_blank" class="lit" onclick="pageTracker._trackPageview('/exit/status/1154986230');" href="http://twitter.com/JonGretar/statuses/1154986230">View Tweet</a></p></blockquote>
</div>
<p><a class="litnv" onclick="new Ajax.Updater('thr1154986230', '/search/thread/1154986230?index=0', {asynchronous:true, evalScripts:true, onComplete:function(request){Effect.toggle('thr1154986230', 'blind',{duration:0.2}); Element.toggle( 'show_thr1154986230'); Element.toggle( 'hide_thr1154986230'); translateThread('thr1154986230');}, parameters:'authenticity_token=' + encodeURIComponent('1da1d169b2f708dbed806d07c105f125f530f3e9')}); return false;" href="http://search.twitter.com/search?q=erlang+aol#"><span id="show_thr1154986230" /></a>Ooops.   Fortunately our Chat Backend Redesign is not a secret and our wiki page has links to all sorts of external sites.</p>
<p>For those non-techies out there let me explain what a referrer is.</p>
<p>When you click a link on a web page, the destination site is sent information on what page sent it the traffic.  The source page is the referrer (or referer as it is misspelled in the HTTP spec).    There are several useful applications that use the referrer information that I won&#8217;t discuss here.  Naturally, Wikipedia has a good article on the subject.  <a href="http://en.wikipedia.org/wiki/Referer">http://en.wikipedia.org/wiki/Referer</a></p>
<p>What would have been worse is if we had a page called <span class="msgtxt en" id="msgtxt1154986230">wiki.office.<strong>aol</strong>.com/wiki/Technology_Acquisitions</span>_In_Process and someone at company X noticed this referrer in their access logs.  If company X was a public company that person might run off and buy a pile of stock based on this simple observation.</p>
<p>Now most wikis are public and people wouldn&#8217;t be creating pages like this in the public space.  But more and more companies have internal wikis and it is becoming common to discuss things on these pages that should not be shared with the public.    Rather than having to worry about your page titles giving away too much information I have created a mediawiki extension that will prevent referrer information from being sent to external sites.</p>
<p>Information on the extension can be found here.</p>
<p><a href="http://www.mediawiki.org/wiki/Extension:HideReferringPage">http://www.mediawiki.org/wiki/Extension:HideReferringPage</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonycode.com/blog/archives/81/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building Bebo Apps.   Part 2 (Auto-Updating the Profile Page)</title>
		<link>http://www.tonycode.com/blog/archives/76</link>
		<comments>http://www.tonycode.com/blog/archives/76#comments</comments>
		<pubDate>Wed, 16 Apr 2008 15:13:27 +0000</pubDate>
		<dc:creator>Tony Primerano</dc:creator>
				<category><![CDATA[bebo]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.tonycode.com/blog/archives/76</guid>
		<description><![CDATA[Handles are the key to having applications update on the profile page without a user taking action.   Some notes on how to do this on Facebook are here.  Since Bebo has implemented most of the Facebook API this should be easy but I think some things (like Infinite session keys) are still [...]]]></description>
			<content:encoded><![CDATA[<p>Handles are the key to having applications update on the profile page without a user taking action.   Some notes on how to do this on Facebook are <a target="_blank" href="http://joel.neubeck.net/2007/10/facebook-fbml-ref/">here</a>.  Since Bebo has implemented most of the Facebook API this should be easy but I think some things (like Infinite session keys) are still missing.  Hoping someone will leave me pointer proving me wrong on this.  <img src='http://www.tonycode.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>By placing a handle on a user&#8217;s page you can (in theory) push updates to a user&#8217;s profile page without them interacting with the application.  For example.  If you had a &#8220;Washington Capitals Fans&#8221; application that pushed news to every user&#8217;s profile that had the application, all these pages would have the same handle. Having a single handle means that a single update of the handle content would update all profiles using the application.</p>
<p>In other cases you might want a unique handle per profile.  For example, if your application injected an RSS feed of the user&#8217;s choice onto their profile.<br />
Here is a simple example of setting a handle on a user&#8217;s page.  I use the user&#8217;s UID as the handle in this case.</p>
<p><a target="_blank" href="http://tonycode.com/wiki/index.php?title=Bebo_Examples#Set_a_handle_on_a_user.27s_profile"><span class="toctext" /></a><a href="http://tonycode.com/wiki/index.php?title=Bebo_Examples#Set_a_handle_on_a_user.27s_profile"><span class="toctext">Set a handle on a user&#8217;s profile</span></a></p>
<p>I then write an update.php file that injects the date on the user&#8217;s profile</p>
<p><a target="_blank" href="http://tonycode.com/wiki/index.php?title=Bebo_Examples#Update_a_handle_on_a_user.27s_profile"><span class="toctext">Update a handle on a user&#8217;s profile</span></a></p>
<p>That&#8217;s all fine and good but the update wasn&#8217;t automatic.  The user had to hit the update.php file.   In a real application we would have a database of all the users and we could periodically update the handles.  Assuming there is an infinite session concept in the Bebo API.   Since I could not figure out how to implement an infinite session here is my hack.</p>
<p>I place a hidden image on the user&#8217;s page that calls the update function.<br />
Now when a user views their profile, the hidden image calls refresh.php and the handle content is updated.  Unfortunately, the update happens after the page is rendered so you&#8217;ll need to reload to see the change.</p>
<p>The code&#8230;</p>
<p><a target="_blank" href="http://tonycode.com/wiki/index.php?title=Bebo_Examples#Set_a_handle_on_a_user.27s_profile_and_use_hidden_image_for_update"><span class="toctext">Set a handle on a user&#8217;s profile and use hidden image for update</span></a></p>
<p>Unfortunately, the update happens after the page is rendered so you&#8217;ll need to reload the page to see the change.  It should also be noted that anytime someone views your page they will call the update.php.  If they also have the application installed your handle will be updated.</p>
<p>Assuming infinite sessions keys are unavailable I would leverage app users to update their peers.  In your database of users keep track of the last time they were updated.  Anytime the update.php function is called do an update on all handles that haven&#8217;t been updated in a specific period of time.   As the user base grows this should allow for a more even distribution of updates.   This might even be better than the cron jobs that infinite session key users use in their cron jobs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonycode.com/blog/archives/76/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building Bebo Apps.   Part 1</title>
		<link>http://www.tonycode.com/blog/archives/75</link>
		<comments>http://www.tonycode.com/blog/archives/75#comments</comments>
		<pubDate>Tue, 15 Apr 2008 19:55:26 +0000</pubDate>
		<dc:creator>Tony Primerano</dc:creator>
				<category><![CDATA[bebo]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.tonycode.com/blog/archives/75</guid>
		<description><![CDATA[Last week I spent some time learning how to build Bebo applications.   Their API is just like the Facebook API but it is not complete and the documentation has some holes in it.  If you haven&#8217;t built a Facebook application the entire process can seem awkward.
The Bebo Developer Page makes it sound [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I spent some time learning how to build Bebo applications.   Their API is just like the Facebook API but it is not complete and the documentation has some holes in it.  If you haven&#8217;t built a Facebook application the entire process can seem awkward.</p>
<p>The <a target="_blank" href="http://developer.bebo.com/">Bebo Developer Page</a> makes it sound like a simple 3 step process</p>
<ul>
<li>Get the library</li>
<li>Install the app</li>
<li>Start Creating.</li>
</ul>
<p>If you don&#8217;t know how to write web applications in PHP, Java or Ruby stop now.  You need to know at least one of these systems to continue.</p>
<p>I downloaded the PHP library and put it on my host.   Next step was to install the developer application.   Why?  Why do I need to install an app to build apps?  Seems weird at 1st but basically this application is used to manage the keys, locations and settings for your apps.</p>
<p>Once you have the app <a target="_blank" href="http://apps.bebo.com/developerapp/">launch it</a> and click &#8220;Create new app&#8221; (way off on the right) .  Give your application a name and a URL and a callback URL.</p>
<p>What is the callback URL?    It is the URL that is hit when a user goes to the Application URL.         http://apps.bebo.com/yourappname is just a proxy that adds headers and parameters to the request before it hits your application file.  The bebo library uses this information.</p>
<p>For example.  I created an app called sample with a URL of        http://apps.bebo.com/sample.  My callback URL is http://bebo.tonycode.com/apps/sample</p>
<p>Hitting  http://apps.bebo.com/sample  results in a call to  http://bebo.tonycode.com/apps/sample where I have the following index.php</p>
<p><a target="_blank" href="http://tonycode.com/wiki/index.php?title=Bebo_Examples#Display_All_My_Friends">http://tonycode.com/wiki/index.php?title=Bebo_Examples#Display_All_My_Friends </a></p>
<p>This application simply prints out all your friends.</p>
<p>Add the application to your page by going to the developer application, viewing the app and clicking the profile page for the app.  Now go to your profile page a voila..  the app is there but not your friends.</p>
<p>Huh?  How do I get the content to show up on my profile page?   If I don&#8217;t show it on the profile page it seems pretty pointless.  right?</p>
<p>To add content to the profile page you use profile_setFBML.  Last I checked the return codes for this function are not defined.  Seems to return a 1 when it works and an array when it fails.  Nice.  :-\</p>
<p>Here is the code updated to put friends on profile too.</p>
<p><a target="_blank" href="http://tonycode.com/wiki/index.php?title=Bebo_Examples#Display_All_My_Friends_on_my_Profile">http://tonycode.com/wiki/index.php?title=Bebo_Examples#Display_All_My_Friends_on_my_Profile</a></p>
<p>Weeks go by and you add new friends to your profile and you notice that the list of friends in your custom application aren&#8217;t changing.   profile_setFBML is only called when you visit the application page.  Well that stinks you say.  How can I make it update each time I visit the profile?  I&#8217;ll get to that in my next post.</p>
<p>Random Tips.</p>
<ul>
<li>Documentation is at http://developer.bebo.com/documentation.html</li>
<li>The downloaded libraries have example code.  Start there</li>
<li>You may need to look at 2 different sections to piece together how a function works.  For example user.getInfo has a fields parameter</li>
<ul>
<li>http://www.bebo.com/docs/api/UsersGetInfo.jsp</li>
<li>Look at the SNQL users table to find what is available</li>
<ul>
<li>http://www.bebo.com/docs/snql/User.jsp</li>
</ul>
</ul>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.tonycode.com/blog/archives/75/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My sitemap notes are in the Advanced Rails Recipes Book</title>
		<link>http://www.tonycode.com/blog/archives/72</link>
		<comments>http://www.tonycode.com/blog/archives/72#comments</comments>
		<pubDate>Sat, 08 Mar 2008 23:05:01 +0000</pubDate>
		<dc:creator>Tony Primerano</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[sitemap]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.tonycode.com/blog/archives/72</guid>
		<description><![CDATA[After I blogged about building a sitemap for Rails I contacted Mike Clark and asked him if he thought it would make a good Recipe for his upcoming book, Advanced Rails Recipes.  He thought it was a good fit and it is currently in the Beta version of the book.
I wrote up my notes [...]]]></description>
			<content:encoded><![CDATA[<p>After I <a target="_blank" href="http://www.tonycode.com/blog/archives/68">blogged about building a sitemap</a> for Rails I contacted <a target="_blank" href="http://clarkware.com/about.html">Mike Clark</a> and asked him if he thought it would make a good Recipe for his upcoming book, <a target="_blank" href="http://www.pragprog.com/titles/fr_arr">Advanced Rails Recipes</a>.  He thought it was a good fit and it is currently in the Beta version of the book.</p>
<p>I wrote up my notes in the Recipe format, then Mike basically rewrote it for Rails 2.0 and added some additional content.  Thanks Mike!  I almost feel bad being cited as the author since after editing it is drastically different from the original.  <img src='http://www.tonycode.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The core concepts are still there and some thoughts were dropped since Recipes should be short.   So, Here are some elaborations..</p>
<p><strong>The Ping Protocol</strong></p>
<p>There is a warning in the book about excessively pinging to Google to have them read your sitemap.  I would recommend letting search engines crawl your sitemaps at their own speed.  The ping example in the book was a nice overview of when to use an Observer and also provided complete coverage on how to submit sitemaps.  Please use ping sparingly, if at all.  <img src='http://www.tonycode.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><strong>Sitemaps with over 50,000 entries</strong></p>
<p>I work on sites where we use siteindex files because we submit well over 50,000 URLs to the search engines. I didn&#8217;t provide an example on how to build these in Rails because I&#8217;m not sure they provide any value to the typical site.</p>
<p>My theory is that if you build a sitemap with the 50,000 pages that were most recently updated you will give the search engines all they need.  If a page isn&#8217;t updated for a while and it falls off the list is that really a problem?   If the page was worth anything someone externally would be linking to it before it fell off the list.  Now if your site is creating millions of pages a day this may not be the case.</p>
<p>If your pages are islands (no links to them) and you&#8217;re afraid they won&#8217;t be found unless they are all in the sitemap, I would suggest building the sitemap via a rake task that is kicked off via a cron job.  This will also give you an opportunity to gzip the files.   I&#8217;ll try to writeup some example code for the this when I find some free time.</p>
<p><strong>Do I really need a sitemap?</strong></p>
<p>If your site has navigation to all its pages, then a sitemap will probably not benefit you.   I suggest checking what pages the search engines have in their index and if key content is missing then pursue a sitemap.  Even if they are finding all your pages a sitemap certainly couldn&#8217;t hurt.</p>
<p>Just in case you didn&#8217;t know how to find the pages Google knows about on your site you can simply type site:youdomain.com in the Google or Yahoo search box.</p>
<p>Example results for my site are <a target="_blank" href="http://www.google.com/search?q=site%3Atonycode.com">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonycode.com/blog/archives/72/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails SEO tips</title>
		<link>http://www.tonycode.com/blog/archives/68</link>
		<comments>http://www.tonycode.com/blog/archives/68#comments</comments>
		<pubDate>Thu, 10 Jan 2008 23:45:58 +0000</pubDate>
		<dc:creator>Tony Primerano</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.tonycode.com/blog/archives/68</guid>
		<description><![CDATA[Recently I implemented a Rails application sitemap but once the search engines started hitting my site, I realized that I wasn&#8217;t giving them all the information they desired.

Yahoo was doing simple HTTP head requests on my sitemap and going away

206.190.57.45 &#8211; - [11/Dec/2007:08:35:49 -0800] &#8220;HEAD /sitemap.xml HTTP/1.0&#8243; 200 334 &#8220;-&#8221; &#8220;Yahoo! Slurp/Site Explorer&#8221;

Google read my [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I implemented a <a href="http://tonycode.com/wiki/index.php?title=Ruby_on_Rails_Sitemap_Generator">Rails application sitemap</a> but once the search engines started hitting my site, I realized that I wasn&#8217;t giving them all the information they desired.</p>
<ul>
<li>Yahoo was doing simple HTTP head requests on my sitemap and going away</li>
<ul>
<li>206.190.57.45 &#8211; - [11/Dec/2007:08:35:49 -0800] &#8220;HEAD /sitemap.xml HTTP/1.0&#8243; 200 334 &#8220;-&#8221; &#8220;Yahoo! Slurp/Site Explorer&#8221;</li>
</ul>
<li>Google read my sitemap infrequently but loved to do HEAD requests on my index page</li>
<ul>
<li>66.249.70.196 &#8211; - [17/Dec/2007:07:11:24 -0800] &#8220;HEAD / HTTP/1.1&#8243; 200 372 &#8220;-&#8221; &#8220;Mozilla/5.0 (compatible; Googlebot/2.1; +<a class="external free" title="http://www.google.com/bot.html" href="http://www.google.com/bot.html">http://www.google.com/bot.html</a>)&#8221;</li>
</ul>
</ul>
<p>For those of you unfamiliar with HEAD requests, they are requests for a page that don&#8217;t actually return the page.    Just information like size and date.   Its a nice way for search engines and caches to decide if there are any changes they need to pull.  For some examples of HTTP requests check out the wiki page I wrote on <a target="_blank" href="http://tonycode.com/wiki/index.php?title=Making_HTTP_requests_via_telnet">making HTTP requests via telnet</a>.</p>
<p>Now what do you think Google and Yahoo were looking for?  My assumption is they are looking for the Last-Modified header in the response to see if they should bother requesting the sitemap.  They could compare the size of the response since they last visited but I doubt they want track this information.</p>
<p>The Last-Modified date is the ideal field to check.</p>
<p>This is all fine and good but guess what.    Rails doesn&#8217;t set that header for you.</p>
<pre>telnet ficlets.com 80
Trying 64.12.150.213...
Connected to www.ficlets.com.
Escape character is '^]'.
HEAD / HTTP/1.0
Host: www.ficlets.com

HTTP/1.1 200 OK
Date: Wed, 09 Jan 2008 20:22:31 GMT
Server: Mongrel 1.0.1
Status: 200 OK
Cache-Control: no-cache
Content-Type: text/html; charset=utf-8
Content-Length: 16355
Set-Cookie: _session_id=s322clipped; path=/
Vary: Accept-Encoding
Connection: close</pre>
<p>The good news is this is easy to add!  If you look at my <a target="_blank" href="http://tonycode.com/wiki/index.php?title=Ruby_on_Rails_Sitemap_Generator">wiki example</a> you&#8217;ll see that I set the header with the time of the latest entry in the sitemap.</p>
<p><em> headers["Last-Modified"] = @entries[0].updated_at.httpdate</em></p>
<p>Now it isn&#8217;t rails job to add this header for you but it would be nice if the scaffolding added this header.  The standard show/1 actions are pulling a record from a database and the action knows the updated_at value.</p>
<p>I have added this header to my show actions as I am just pulling a record from a database and I have the modified time!</p>
<p><em>headers["Last-Modified"] = @business.updated_at.httpdate</em></p>
<h4><span class="mw-headline" /></h4>
<p>That&#8217;s all.   I&#8217;m looking forward to any comments and suggestions people may have.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonycode.com/blog/archives/68/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixing bad dates on images with jhead</title>
		<link>http://www.tonycode.com/blog/archives/62</link>
		<comments>http://www.tonycode.com/blog/archives/62#comments</comments>
		<pubDate>Sun, 18 Nov 2007 20:21:28 +0000</pubDate>
		<dc:creator>Tony Primerano</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.tonycode.com/blog/archives/62</guid>
		<description><![CDATA[I occasionally find myself setting the wrong date on my camera and ending up with 100s of pictures that need the dates edited on them.   In the past I made these changes with programs that made me edit the dates one picture at a time.  I want to set the year ahead [...]]]></description>
			<content:encoded><![CDATA[<p>I occasionally find myself setting the wrong date on my camera and ending up with 100s of pictures that need the dates edited on them.   In the past I made these changes with programs that made me edit the dates one picture at a time.  I want to set the year ahead or the hour back on 100s of pictures all at once.</p>
<p>JHead to the rescue!    Just today I discovered that I needed to set the date back on 100 pictures that I had taken since daylight savings time.   With jhead I just stuck the pictures with bad dates in a folder and ran</p>
<p><strong>jhead -ta-1 *jpg</strong></p>
<p>then I changed the actual timestamps on the files to match the EXIF data with</p>
<p><strong>jhead -ft *.jpg</strong></p>
<p>Now that my pictures had the correct hour I was hoping to see my pictures and my daughters in order in picasa.  For example.  The picture of Maia taking a picture of a boat should be followed by the picture of the boat.</p>
<p>It wasn&#8217;t!  Turns out her camera was 5 minutes ahead of mine.  With jhead this is not an issue.</p>
<p><strong>jhead -ta-0:05 HP*jpg  </strong></p>
<p><strong>jhead -ft HP*jpg</strong></p>
<p>This moved the time on all her HP pictures back 5 minutes.</p>
<p>Now the pictures are in order and I&#8217;m happy.  ya.  I&#8217;m just a little anal.</p>
<p>Here is my picture</p>
<p><img alt="me taking a picture of maia taking a picture of a boat" title="me taking a picture of maia taking a picture of a boat" src="http://tonycode.com/images/mine.jpg" /></p>
<p>Here is what Maia got</p>
<p><img alt="Maia's picture" title="Maia's picture" src="http://tonycode.com/images/maia.jpg" /></p>
<p>More jhead notes are on my <a target="_blank" href="http://tonycode.com/wiki/index.php?title=Photo_Notes">wiki</a></p>
<p><a target="_blank" href="http://tonycode.com/wiki/index.php?title=Photo_Notes">http://tonycode.com/wiki/index.php?title=Photo_Notes </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tonycode.com/blog/archives/62/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
