<?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>bensie.com</title>
	<atom:link href="http://www.bensie.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bensie.com</link>
	<description>A weblog by James Miller</description>
	<lastBuildDate>Thu, 05 Nov 2009 23:08:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>SmugMug Rocks</title>
		<link>http://www.bensie.com/2009/11/05/smugmug-rocks/</link>
		<comments>http://www.bensie.com/2009/11/05/smugmug-rocks/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 23:08:23 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.bensie.com/?p=102</guid>
		<description><![CDATA[After not having my photo gallery online for about a year, I finally got around to getting it back.  I was previously self-hosting the gallery with Gallery2, but that software turned out to really just be a pain in the neck for my gallery and all the other galleries I host.
SmugMug came to the rescue! [...]]]></description>
			<content:encoded><![CDATA[<p>After not having my photo gallery online for about a year, I finally got around to getting it back.  I was previously self-hosting the gallery with <a title="Gallery2" href="http://gallery.menalto.com" target="_blank">Gallery2</a>, but that software turned out to really just be a pain in the neck for my gallery and all the other galleries I host.</p>
<p>SmugMug came to the rescue!  Allison has been using SmugMug for her <a title="Carlyle Whitney" href="http://client.carlylewhitney.com" target="_blank">portrait photography</a> lately, and it&#8217;s proven itself to be nothing short of awesome.  The site is very fast and responsive, the upload tools are great, slideshows work (fancy that), and the cost is reasonable.  If you want an account and want $5 off, use this referral code: sJz9wIbaT3urU</p>
<p>Check out my pictures at <a title="James' Pictures" href="http://bensie.smugmug.com" target="_self">http://bensie.smugmug.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bensie.com/2009/11/05/smugmug-rocks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery: Focus the first input of a text field</title>
		<link>http://www.bensie.com/2009/06/11/jquery-focus-the-first-input-of-a-text-field/</link>
		<comments>http://www.bensie.com/2009/06/11/jquery-focus-the-first-input-of-a-text-field/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 19:23:28 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.bensie.com/?p=99</guid>
		<description><![CDATA[If you have forms around your site (logins, registrations, etc), you might want to automatically focus those fields so the user has less clicking around to do.  We want to do this unobtrusively, and don&#8217;t want to focus it if the field already has data in it (editing existing forms).  Here&#8217;s the jQuery code to [...]]]></description>
			<content:encoded><![CDATA[<p>If you have forms around your site (logins, registrations, etc), you might want to automatically focus those fields so the user has less clicking around to do.  We want to do this unobtrusively, and don&#8217;t want to focus it if the field already has data in it (editing existing forms).  Here&#8217;s the jQuery code to pull it off:</p>
<p><script src="http://gist.github.com/128160.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bensie.com/2009/06/11/jquery-focus-the-first-input-of-a-text-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing For The iPhone: Part I</title>
		<link>http://www.bensie.com/2009/04/22/developing-for-the-iphone-part-i/</link>
		<comments>http://www.bensie.com/2009/04/22/developing-for-the-iphone-part-i/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 17:58:27 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.bensie.com/?p=97</guid>
		<description><![CDATA[Ever since Apple started up the App Store, I&#8217;ve been dying to dig in to Objective-C and write an application for the iPhone (no, I don&#8217;t own an iPhone yet).  I&#8217;m certainly not alone, as there are now like 100,000 apps available on the store.  I bought a book, read through a lot of the [...]]]></description>
			<content:encoded><![CDATA[<p>Ever since Apple started up the App Store, I&#8217;ve been dying to dig in to Objective-C and write an application for the iPhone (no, I don&#8217;t own an iPhone yet).  I&#8217;m certainly not alone, as there are now like 100,000 apps available on the store.  I bought a <a title="iPhone SDK" href="http://www.pragprog.com/titles/amiphd/iphone-sdk-development" target="_blank">book</a>, read through a lot of the <a title="iPhone Developer Docs" href="http://developer.apple.com/iphone/">developer documentation</a>, but finally something even better came along &#8212; Stanford is posting the lectures and slides on iTunes U for <a title="iPhone Application Programming" href="http://deimos3.apple.com/WebObjects/Core.woa/Browse/itunes.stanford.edu.2024353965.02024353968" target="_blank">iPhone Application Programming</a>.  While the lecturers are not the best speakers, the content of the class is fantastic so far.  I&#8217;ve watched 4 episodes and have grasped more by watching those than all of the prior reading I have done.</p>
<p>This isn&#8217;t the first time I&#8217;ve &#8220;taken classes&#8221; while not actually in school.  If you&#8217;re ever interested in taking a class on something that you didn&#8217;t want to take a grade on in undergrad, check out iTunes U and <a title="Academic Earth" href="http://www.academicearth.org/" target="_blank">Academic Earth</a>.</p>
<p>My first iPhone app will no doubt be very simple and probably not all that useful, but it&#8217;ll be an accomplishment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bensie.com/2009/04/22/developing-for-the-iphone-part-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 2.3: default_scope</title>
		<link>http://www.bensie.com/2009/03/13/rails-23-default_scope/</link>
		<comments>http://www.bensie.com/2009/03/13/rails-23-default_scope/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 05:12:41 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://www.bensie.com/?p=84</guid>
		<description><![CDATA[Rails 2.3 includes a new method called default_scope which provides an easy way to set default attributes on a model as it calls on records from the database.  After playing around with it a bit, I am certain that I&#8217;m going to avoid using this method for a few reasons.
Before I get to that, here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rubyonrails.org">Rails 2.3</a> includes a new method called default_scope which provides an easy way to set default attributes on a model as it calls on records from the database.  After playing around with it a bit, I am certain that I&#8217;m going to avoid using this method for a few reasons.</p>
<p>Before I get to that, here&#8217;s the syntax:<br />
<script src="http://gist.github.com/78945.js"></script></p>
<p>You could set a default_scope for any number of conditions, but <img src='http://www.bensie.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder is really the only thing that makes sense to me (red flag number one) because nothing else would have fixed conditions for all database queries.</p>
<p>With this default_scope in place, we&#8217;re going to get an ORDER_BY &#8216;name&#8217; ASC added to our SQL query when calling Person.all, Person.old, or Person.young.  That&#8217;s all well and good until the query gets a little complex&#8211;what happens if we specify a different <img src='http://www.bensie.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder in the named scope or in the controller?  As you might guess, the default_scope loses out to specifying a different <img src='http://www.bensie.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder in other methods.</p>
<p>Once your query gets complicated with includes and joins, you&#8217;ll find that suddenly the defaulted <img src='http://www.bensie.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder option does not show up in your query and all your people are completely out of order.  At that point, you&#8217;re back to square one needing to manually specify the order in a separate named_scope or in the controller logic.</p>
<p>The inconsistency here is intolerable, and the code also loses a lot of clarity when it is implemented since it will not work under all circumstances.  Personally, I like <img src='http://www.bensie.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder options visible in the controller (I put just about everything else in named_scopes) because the code stays clear.  Just seems to me that it&#8217;s better to leave this method out all together.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bensie.com/2009/03/13/rails-23-default_scope/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Safari 4 Beta</title>
		<link>http://www.bensie.com/2009/02/24/safari-4-beta/</link>
		<comments>http://www.bensie.com/2009/02/24/safari-4-beta/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 15:51:45 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.bensie.com/?p=79</guid>
		<description><![CDATA[Apple has just released a public beta of Safari 4 for Mac and Windows.  Very impressive and incredibly snappy.  It has excellent developer tools built-in, improved tab management, and I love the Top Sites home screen.
For you Mac users out there, I can pretty much guarantee that you&#8217;ll find it faster and more friendly than [...]]]></description>
			<content:encoded><![CDATA[<p>Apple has just released a public beta of <a href="http://www.apple.com/safari/">Safari 4</a> for Mac and Windows.  Very impressive and incredibly snappy.  It has excellent developer tools built-in, improved tab management, and I love the Top Sites home screen.</p>
<p>For you Mac users out there, I can pretty much guarantee that you&#8217;ll find it faster and more friendly than FireFox, but <a href="http://www.apple.com/safari/">give it a try for yourself</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bensie.com/2009/02/24/safari-4-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon S3 &#8211; worth every penny</title>
		<link>http://www.bensie.com/2009/02/23/amazon-s3-worth-every-penny/</link>
		<comments>http://www.bensie.com/2009/02/23/amazon-s3-worth-every-penny/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 23:33:04 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://www.bensie.com/?p=63</guid>
		<description><![CDATA[Over the past year or two I&#8217;ve constantly been moving my data around, typically because I switch between needing lots of disk space to needing specific data available from anywhere&#8211;plus it&#8217;s important that it&#8217;s all kept safe.  Amazon S3 provides both: unlimited pay-as-you-go storage and it&#8217;s accessible from any computer connected to the Internet.  I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>Over the past year or two I&#8217;ve constantly been moving my data around, typically because I switch between needing lots of disk space to needing specific data available from anywhere&#8211;plus it&#8217;s important that it&#8217;s all kept safe.  <a title="Amazon S3" href="http://aws.amazon.com/s3" target="_blank">Amazon S3</a> provides both: unlimited pay-as-you-go storage and it&#8217;s accessible from any computer connected to the Internet.  I&#8217;ve started using it for <strong>everything</strong>.  Client work, personal backups, purchased music, and serving static content to the web.</p>
<p>Plus, it&#8217;s perfect for the web services that I&#8217;m continually developing.  I haven&#8217;t worked on a single project recently that doesn&#8217;t need file upload/storage in some capacity, so it just makes perfect sense to store all of this data on Amazon&#8217;s infrastructure.  I don&#8217;t have to deal with backups or bandwidth, I just set it and forget it.</p>
<p>As a developer, you&#8217;re really adding a substantial amount of work if you plan on setting up  <a href="http://www.danga.com/mogilefs/">MogileFS</a>, <a href="http://www.redhat.com/gfs/">GFS</a>, or <a href="http://hadoop.apache.org/core/docs/current/hdfs_design.html">HDFS</a> or even <a href="http://en.wikipedia.org/wiki/Network_File_System_%28protocol%29">NFS</a> (yuck) to store data on your own server(s).  If you&#8217;re a startup we both know you have a lack of engineers available to manage it, and I guarantee you&#8217;ll sleep better at night with the certainty that your files and your clients&#8217; files are safe and secure.  Plus the initial cost of setting up your own would be nothing short of outrageous.</p>
<p>Cost may seem like a caveat.  At $0.15/GB per month the cost can definitely become substantial, particularly if you&#8217;re just using it for personal storage (500GB = $75 / month).  But what&#8217;s it worth to know that all your family photos are stored and redundant?  Your music collection is ready for playback even if your house blows up (you never know).  The files that your clients expect you to have on hand are deliverable within minutes over the Internet.</p>
<p>It&#8217;s not enough for me to have an external hard drive on my desk backing up my data.  My stuff is too important for that.  I&#8217;m guessing you think yours is too.</p>
<p>A few recommended ways to get your hands dirty with S3: try <a title="Transmit" href="http://www.panic.com/transmit" target="_blank">Transmit</a>, <a title="Drop Box" href="http://getdropbox.com" target="_blank">Drop Box</a>, or <a title="S3Fox" href="https://addons.mozilla.org/en-US/firefox/addon/3247" target="_blank">S3Fox</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bensie.com/2009/02/23/amazon-s3-worth-every-penny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ZList</title>
		<link>http://www.bensie.com/2009/02/23/list/</link>
		<comments>http://www.bensie.com/2009/02/23/list/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 19:12:17 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[GitHub]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.bensie.com/?p=45</guid>
		<description><![CDATA[After giving Google Groups and a few other mailing lists a try, I decided to scratch the itch by writing my own.  The freely available mailing lists out there are so dated and unnecessarily complicated that it just made sense to reinvent a simpler wheel.  ZList is open source mailing list software driven by Rails [...]]]></description>
			<content:encoded><![CDATA[<p>After giving Google Groups and a few other mailing lists a try, I decided to scratch the itch by writing my own.  The freely available mailing lists out there are so dated and unnecessarily complicated that it just made sense to reinvent a simpler wheel.  <a title="ZList on GitHub" href="http://github.com/bensie/zlist/tree" target="_blank">ZList </a>is open source mailing list software driven by <a title="Ruby on Rails" href="http://www.rubyonrails.org" target="_blank">Rails </a>2.3.  You can <a href="http://github.com/bensie/dlist/tree" target="_blank">view the source</a>, <a href="http://github.com/bensie/zlist/tree" target="_blank">fork and improve</a>, or <a href="http://github.com/bensie/zlist/downloads" target="_blank">download</a> and use ZList on <a href="http://github.com" target="_blank">GitHub</a>.  ZList is currently under active development.</p>
<p>And coming up in the not too distant future: <a title="ZTicket - Coming Soon" href="http://github.com/bensie/zticket/tree" target="_blank">ZTicket </a>- open source helpdesk software on Rails.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bensie.com/2009/02/23/list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bensie 2009 Refresh</title>
		<link>http://www.bensie.com/2009/02/23/bensie-2009-refresh/</link>
		<comments>http://www.bensie.com/2009/02/23/bensie-2009-refresh/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 19:11:27 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Random]]></category>

		<guid isPermaLink="false">http://www.bensie.com/?p=55</guid>
		<description><![CDATA[Bensie.com needed another refresh.  I&#8217;m also planning on using it as less of a personal blog, and more of a technical blog.  So it will be more about the things I learn and encounter rather than, well, the useless nothing that it&#8217;s been for the past two years.  I hope to focus [...]]]></description>
			<content:encoded><![CDATA[<p>Bensie.com needed another refresh.  I&#8217;m also planning on using it as less of a personal blog, and more of a technical blog.  So it will be more about the things I learn and encounter rather than, well, the useless nothing that it&#8217;s been for the past two years.  I hope to focus it on the projects I work on, the code I write, and my opinions about it all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bensie.com/2009/02/23/bensie-2009-refresh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slicehost From Here On Out</title>
		<link>http://www.bensie.com/2008/08/25/slicehost-from-here-on-out/</link>
		<comments>http://www.bensie.com/2008/08/25/slicehost-from-here-on-out/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 03:52:36 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://www.bensie.com/2008/08/25/slicehost-from-here-on-out/</guid>
		<description><![CDATA[So I&#8217;ve decided to move away from the dedicated servers for web hosting.  They cost too much, but mainly, it&#8217;s just too difficult to fix issues when they go down, especially if I own the hardware.  Had a nasty evening in early August that cost David and I a perfectly good Friday evening.
While [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve decided to move away from the dedicated servers for web hosting.  They cost too much, but mainly, it&#8217;s just too difficult to fix issues when they go down, especially if I own the hardware.  Had a nasty evening in early August that cost David and I a perfectly good Friday evening.</p>
<p>While I&#8217;m not abandoning dedicated servers for everything, I&#8217;ve moved all my web hosting accounts over to <a href="http://www.slicehost.com">Slicehost</a>.  Now I get to manage my own virtual servers (I&#8217;m obsessed with <a href="http://www.xensource.com">Xen</a> and <a href="http://www.vmware.com">VMware</a>) and I never have to worry about the hardware or the routing, I can upgrade it at any time in minutes, and I know I&#8217;m on a stable host with guaranteed resources that won&#8217;t be shared with other users.  Data is safe, backups are automatic, pricing is reasonable, what more do you need?</p>
<p>So far I have a 512MB slice for my development and a 1GB slice for hosting.  All I can say so far is&#8230;amazing.  Servers are getting so fast these days and bandwidth is getting so cheap that it&#8217;s just not worth it to host your own boxes knowing that you won&#8217;t have to deal with the issues at the datacenter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bensie.com/2008/08/25/slicehost-from-here-on-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server Uptime</title>
		<link>http://www.bensie.com/2008/07/27/server-uptime/</link>
		<comments>http://www.bensie.com/2008/07/27/server-uptime/#comments</comments>
		<pubDate>Sun, 27 Jul 2008 16:27:52 +0000</pubDate>
		<dc:creator>James</dc:creator>
				<category><![CDATA[Random]]></category>
		<category><![CDATA[Hosting]]></category>

		<guid isPermaLink="false">http://www.bensie.com/2008/07/27/server-uptime/</guid>
		<description><![CDATA[09:24:56 up 292 days, 20:09,  2 users,  load average: 1.28, 1.27, 0.91
Not bad for server uptime&#8230;unfortunately I need to reboot&#8230;
]]></description>
			<content:encoded><![CDATA[<p>09:24:56 up 292 days, 20:09,  2 users,  load average: 1.28, 1.27, 0.91</p>
<p>Not bad for server uptime&#8230;unfortunately I need to reboot&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bensie.com/2008/07/27/server-uptime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
