<?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>Ben Hathaway &#187; How To&#8217;s</title>
	<atom:link href="http://hathaway.cc/tag/how-tos/feed/" rel="self" type="application/rss+xml" />
	<link>http://hathaway.cc</link>
	<description>Husband, father, engineer, and entrepreneur.</description>
	<lastBuildDate>Fri, 11 May 2012 16:11:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How To Make Pages Readable With One Click: Readability</title>
		<link>http://hathaway.cc/2009/03/how-to-make-pages-readable-with-one-click-readability/</link>
		<comments>http://hathaway.cc/2009/03/how-to-make-pages-readable-with-one-click-readability/#comments</comments>
		<pubDate>Sun, 15 Mar 2009 04:48:45 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://hathology.com/?p=166</guid>
		<description><![CDATA[This is quickly becoming one of my favorite ways to browse and read online articles. It makes things amazingly easy to read and does it all with one easy click. Here is a little background&#8230; Reading anything on the Internet has become a full-on nightmare. As media outlets attempt to eke out as much advertising [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This is quickly becoming one of my favorite ways to browse and read online articles. It makes things amazingly easy to read and does it all with one easy click. Here is a little background&#8230;</p>
<blockquote><p>Reading anything on the Internet has become a full-on nightmare. As media outlets attempt to eke out as much advertising revenue as possible, we&#8217;re left trying to put blinders on to mask away all the insanity that surrounds the content we&#8217;re trying to read.</p>
<p>It&#8217;s almost like listening to talk radio, except the commercials play during the program in the background. It&#8217;s a pretty awful experience. Our friend to date has been the trusty &#8220;Print View&#8221; button. Click it and all the junk goes away. I click it all the time and rarely print. It&#8217;s really become the &#8220;Peace &amp; Quiet&#8221; button for many.</p></blockquote>
<p>Readability is a browser bookmarklet (sort of like a bookmark on steroids). You can <a href="http://lab.arc90.com/experiments/readability/" target="_blank">install Readability</a> by visiting the <a href="http://lab.arc90.com/experiments/readability/" target="_blank">Readability setup page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hathaway.cc/2009/03/how-to-make-pages-readable-with-one-click-readability/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To Flush DNS Cache On Mac OS X Leopard</title>
		<link>http://hathaway.cc/2008/12/how-to-flush-dns-cache-on-mac-os-x-leopard/</link>
		<comments>http://hathaway.cc/2008/12/how-to-flush-dns-cache-on-mac-os-x-leopard/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 17:16:05 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[mac os x]]></category>

		<guid isPermaLink="false">http://hathology.com/how-to-flush-dns-cache-on-mac-os-x-leopard/</guid>
		<description><![CDATA[Occasionally, you&#8217;ll want to be sure you are getting fresh DNS information during development or working on servers with hostnames. This has changed in the Leopard version of Mac OS X. The following command will now flush your DNS cache on Mac OS X Leopard: dscacheutil -flushcache]]></description>
			<content:encoded><![CDATA[<p></p><p>Occasionally, you&#8217;ll want to be sure you are getting fresh DNS information during development or working on servers with hostnames. This has changed in the Leopard version of Mac OS X. The following command will now flush your DNS cache on Mac OS X Leopard:</p>
<p><code>dscacheutil -flushcache</code></p>
]]></content:encoded>
			<wfw:commentRss>http://hathaway.cc/2008/12/how-to-flush-dns-cache-on-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To Setup A Permanent Redirect (HTTP 301) With PHP</title>
		<link>http://hathaway.cc/2008/09/how-to-setup-a-permanent-redirect-http-301-with-php/</link>
		<comments>http://hathaway.cc/2008/09/how-to-setup-a-permanent-redirect-http-301-with-php/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 13:26:08 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[redirect]]></category>

		<guid isPermaLink="false">http://hathology.com/?p=76</guid>
		<description><![CDATA[The HTTP 301 status code is meant for use when you want to redirect a page or URL to its new destination after reorganizing or moving a web site around. This can be on the same domain or an entirely new domain. Here is the W3C definition of the 301 code. The requested resource has [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The HTTP 301 status code is meant for use when you want to redirect a page or URL to its new destination after reorganizing or moving a web site around. This can be on the same domain or an entirely new domain. Here is the W3C definition of the 301 code.</p>
<blockquote><p>The requested resource has been assigned a new permanent URI and any    future references to this resource SHOULD use one of the returned    URIs.  Clients with link editing capabilities ought to automatically    re-link references to the Request-URI to one or more of the new    references returned by the server, where possible. This response is    cacheable unless indicated otherwise.</p>
<p>The new permanent URI SHOULD be given by the Location field in the    response. Unless the request method was HEAD, the entity of the    response SHOULD contain a short hypertext note with a hyperlink to    the new URI(s).</p>
<p>If the 301 status code is received in response to a request other    than GET or HEAD, the user agent MUST NOT automatically redirect the    request unless it can be confirmed by the user, since this might    change the conditions under which the request was issued.<br />
<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.2" target="_blank">W3C Hypertext Transfer Protocol</a></p></blockquote>
<p>This is particularly useful for search engines like Google, which will carry over page rank to the new page if this status code is seen. If you do not need to indicate permanent displacement, you can accomplish redirection by setting a Location header in PHP. The <em>location</em> header does the actual redirection to the new location, and can be used by itself.</p>
<p>If you set the Location header by itself, PHP automatically sets the status code to <em>HTTP/1.1 302 Found</em>.</p>
<p>Note, if you attempt to send headers after content has been sent, you will get a warning like, <em>&#8220;Warning: Cannot modify header information &#8211; headers already sent by &#8230;&#8221;</em>.  Watch out for empty lines and spaces between PHP open and close tags.</p>
<p>Here is the code to do this in PHP&#8230;</p>
<p><code>&lt;?php<br />
// Permanent redirection<br />
header("HTTP/1.1 301 Moved Permanently");<br />
header("Location: http://www.example.com/");<br />
exit();<br />
?&gt;</code></p>
<p>Just make sure you put these lines in your page before any other content is sent out. The http://www.example.com/ part can be changed to whatever the new address for this resource is.</p>
]]></content:encoded>
			<wfw:commentRss>http://hathaway.cc/2008/09/how-to-setup-a-permanent-redirect-http-301-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Re-enable Mac OS X Spotlight</title>
		<link>http://hathaway.cc/2008/09/how-to-re-enable-mac-os-x-spotlight/</link>
		<comments>http://hathaway.cc/2008/09/how-to-re-enable-mac-os-x-spotlight/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 22:51:59 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[spotlight]]></category>

		<guid isPermaLink="false">http://hathology.com/?p=100</guid>
		<description><![CDATA[If you have previously disabled the Mac OS X Spotlight feature and you now find that you would like to turn it on again, following these steps to do so. Launch Terminal and type the following command: sudo nano /etc/hostconfig Find the following entry in the hostconfig file: SPOTLIGHT=-NO- Change SPOTLIGHT=-NO- to SPOTLIGHT=-YES- Save /etc/hostconfig [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you have previously disabled the Mac OS X Spotlight feature and you now find that you would like to turn it on again, following these steps to do so.</p>
<ol>
<li>Launch Terminal and type the following command: <code>sudo nano /etc/hostconfig</code></li>
<li>Find the following entry in the hostconfig file: <code>SPOTLIGHT=-NO-</code></li>
<li>Change <code>SPOTLIGHT=-NO-</code> to <code>SPOTLIGHT=-YES-</code></li>
<li>Save /etc/hostconfig by hitting Control-O and the return key. Next hit Control-X to exit the nano editor.</li>
<li></li>
<li>Disable the Spotlight index by typing the following in the Terminal:<code> sudo mdutil -i on /</code></li>
<li>When you reboot, Spotlight will be enabled again.</li>
</ol>
<p>If you would like to disable the Mac OS X Spotlight feature, follow our guide on <a href="http://hathology.com/how-to-completely-disable-mac-os-x-spotlight/">How To Completely Disable Mac OS X Spotlight</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hathaway.cc/2008/09/how-to-re-enable-mac-os-x-spotlight/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To Completely Disable Mac OS X Spotlight</title>
		<link>http://hathaway.cc/2008/09/how-to-completely-disable-mac-os-x-spotlight/</link>
		<comments>http://hathaway.cc/2008/09/how-to-completely-disable-mac-os-x-spotlight/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 22:46:26 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[spotlight]]></category>

		<guid isPermaLink="false">http://hathology.com/?p=96</guid>
		<description><![CDATA[One of the primary features of the Mac OS X operating system is their search feature called Spotlight. Many Mac OS X users depend on this great feature but others don&#8217;t find it necessary. For those of you who don&#8217;t find it necessary, it can improve the performance of your Mac OS X system if [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>One of the primary features of the Mac OS X operating system is their search feature called <strong>Spotlight</strong>. Many Mac OS X users depend on this great feature but others don&#8217;t find it necessary. For those of you who don&#8217;t find it necessary, it can improve the performance of your Mac OS X system if you disable it.</p>
<p>To do this, follow these simple steps.</p>
<p>Note that some other Mac OS X features and programs are based on Spotlight’s search abilities, therefore some applications could behave abnormally if you disable Spotlight, particularly in search functions.</p>
<p><em>Important: These instructions were created based on Mac OS X 10.5 Leopard. They may work on previous or future versions of OS X but they may not.</em></p>
<ol>
<li>Launch Terminal and type the following command: <code>sudo nano /etc/hostconfig</code></li>
<li>Find the following entry in the hostconfig file: <code>SPOTLIGHT=-YES-</code></li>
<li>Change <code>SPOTLIGHT=-YES-</code> to <code>SPOTLIGHT=-NO-</code></li>
<li>Save /etc/hostconfig by hitting Control-O and the return key. Next hit Control-X to exit the nano editor.</li>
<li>Disable the Spotlight index by typing the following in the Terminal:<br />
<code>sudo mdutil -i off /</code></li>
<li>To erase the current Spotlight index, type: sudo <code>mdutil -E /</code></li>
<li>When you reboot, Spotlight will be completely disabled.</li>
</ol>
<p>If you find a need for Spotlight later, follow our guide on <a title="How To Re-enable Mac OS X Spotlight" href="http://hathology.com/how-to-re-enable-mac-os-x-spotlight">How To Re-enable Mac OS X Spotlight</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://hathaway.cc/2008/09/how-to-completely-disable-mac-os-x-spotlight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Reset Your iPhone Content And Settings</title>
		<link>http://hathaway.cc/2008/07/how-to-reset-your-iphone-content-and-settings/</link>
		<comments>http://hathaway.cc/2008/07/how-to-reset-your-iphone-content-and-settings/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 21:40:05 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://hathology.com/?p=72</guid>
		<description><![CDATA[If you are planning to upgrade to a new Apple iPhone 3G anytime soon, you are probably thinking, &#8220;what am I going to do with my first generation iPhone?&#8221; We&#8217;ll whether you give it to a friend or family member or decide to sell it on ebay, you are going to need to reset the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you are planning to upgrade to a new Apple iPhone 3G anytime soon, you are probably thinking, &#8220;what am I going to do with my first generation iPhone?&#8221; We&#8217;ll whether you give it to a friend or family member or decide to sell it on ebay, you are going to need to reset the content and settings to their defaults so the new user can make it their own.</p>
<p>This is a simple task (like most things on the iPhone). Just follow these steps:</p>
<p>1. Make sure you sync your iPhone one last time so you have all of your content backed up to your computer.</p>
<p>2. On the iPhone, go to the Settings -&gt; General -&gt; Reset menu.</p>
<p>3. You&#8217;ll see the option to &#8220;Erase All Content and Settings&#8221;, select this option and confirm. This will do exactly what it says and remove all of the content (music, movies, pics, email, sms, etc) from your iPhone and set all of the settings back to their defaults.</p>
]]></content:encoded>
			<wfw:commentRss>http://hathaway.cc/2008/07/how-to-reset-your-iphone-content-and-settings/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>How To Setup A Local DNS Host File On Mac OS X</title>
		<link>http://hathaway.cc/2008/06/how-to-setup-a-local-dns-host-file-on-mac-os-x/</link>
		<comments>http://hathaway.cc/2008/06/how-to-setup-a-local-dns-host-file-on-mac-os-x/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 18:03:12 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Archive]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[mac os x]]></category>

		<guid isPermaLink="false">http://hathology.com/?p=68</guid>
		<description><![CDATA[A local DNS host file can be very useful when working in a development environment. You can have a development environment and a production environment and simply point the host to the development environment on your machine while all of the other users are directed to the production environment. This allows you to work on [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>A local DNS host file can be very useful when working in a development environment. You can have a development environment and a production environment and simply point the host to the development environment on your machine while all of the other users are directed to the production environment. This allows you to work on the development environment and fully test prior to pushing the changes to the live production environment.</p>
<p>This is a fairly common practice but if you&#8217;ve never done it on Mac OS X, then you probably need a hint as to how to do this.</p>
<p><strong>The Hard Way</strong></p>
<p><strong>Step 1:</strong> Open up a Terminal windows (this is in your Applications/Utilites folder by default)</p>
<p><strong>Step 2:</strong> Enter the following command to open the local host file. (Note: The sudo command requires an admin password to allow you to open this file as root.)</p>
<p><code>$ sudo vi /etc/hosts</code></p>
<p><strong>Step 3:</strong> Now you can edit the host file. To add a new host entry, on it&#8217;s own line enter it in the format:</p>
<p><code>IP Address Host<br />
0.0.0.0 example.domain.com</code></p>
<p><strong>Step 4:</strong> Save the changes to your host file by pressing SHIFT + Z twice in vi.</p>
<p>As soon as you save this file the changes you made will take effect. To check the changes, you can ping the host you entered to see if it returns the correct address or just go to that host in a browser and see if your development environment opens instead of the production.</p>
]]></content:encoded>
			<wfw:commentRss>http://hathaway.cc/2008/06/how-to-setup-a-local-dns-host-file-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How To Edit Your PATH Environment Variables On Mac OS X</title>
		<link>http://hathaway.cc/2008/06/how-to-edit-your-path-environment-variables-on-mac-os-x/</link>
		<comments>http://hathaway.cc/2008/06/how-to-edit-your-path-environment-variables-on-mac-os-x/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 23:50:23 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[How To's]]></category>
		<category><![CDATA[mac os x]]></category>

		<guid isPermaLink="false">http://hathology.com/?p=70</guid>
		<description><![CDATA[If you are new to Mac OS X, you may need to know how to edit your PATH. The good news is that this is an easy task on Mac OS X. The recommended way is by editing your .bash_profile file. This file is read and the commands in it executed by Bash every time [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>If you are new to Mac OS X, you may need to know how to edit your PATH. The good news is that this is an easy task on Mac OS X.</p>
<p>The recommended way is by editing your .bash_profile file. This file is read and the commands in it executed by Bash every time you log in to the system. The best part is that this file is specific to your user so you won&#8217;t affect other users on the same system by changing it.</p>
<p><strong>Step 1:</strong> Open up a Terminal window (this is in your Applications/Utilites folder by default)</p>
<p><strong>Step 2:</strong> Enter the follow command:</p>
<p><code>open ~/.bash_profile</code></p>
<p>This will open the .bash_profile file in Text Edit (the default text editor included on your system). The file allows you to customize the environment your user runs in.</p>
<p><strong>Step 3:</strong> Add the following line to the end of the file adding whatever additional directory you want in your path:</p>
<p><code>export PATH="$HOME/.rbenv/bin:$PATH"</code></p>
<p>That example would add ~/.rbenv to the PATH. The $PATH part is important as it appends the existing PATH to preserve it in the new value.</p>
<p><strong>Step 4:</strong> Save the .bash_profile file and Quit (Command + Q) Text Edit.</p>
<p><strong>Step 5:</strong> Force the .bash_profile to execute. This loads the values immediately without having to reboot. In your Terminal window, run the following command.</p>
<p><code>source ~/.bash_profile</code></p>
<p>That&#8217;s it! Now you know how to edit the PATH on your Mac OS X computer system. You can confirm the new path by opening a new Terminal windows and running:</p>
<p><code>echo $PATH</code></p>
<p>You should now see the values you want in your PATH.</p>
<p>[Updated 2/10/2012] The instructions now use the .bash_profile method of editing your PATH. This is preferred as it keeps the changes specific to your user. I also updated the instructions to use Text Edit instead of vim so it is easier for a beginner.</p>
]]></content:encoded>
			<wfw:commentRss>http://hathaway.cc/2008/06/how-to-edit-your-path-environment-variables-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

