<?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>Hathology &#187; How To&#8217;s</title>
	<atom:link href="http://hathology.com/tag/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://hathology.com</link>
	<description></description>
	<lastBuildDate>Tue, 02 Mar 2010 13:58:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Setup A Permanent Redirect (HTTP 301) With PHP</title>
		<link>http://hathology.com/how-to-setup-a-permanent-redirect-http-301-with-php/</link>
		<comments>http://hathology.com/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[Articles]]></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 been [...]]]></description>
			<content:encoded><![CDATA[<p class="first-child "><span title="T" class="cap"><span>T</span></span>he 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://hathology.com/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://hathology.com/how-to-re-enable-mac-os-x-spotlight/</link>
		<comments>http://hathology.com/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[Articles]]></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 by hitting Control-O and [...]]]></description>
			<content:encoded><![CDATA[<p class="first-child "><span title="I" class="cap"><span>I</span></span>f 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://hathology.com/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://hathology.com/how-to-completely-disable-mac-os-x-spotlight/</link>
		<comments>http://hathology.com/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[Articles]]></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 class="first-child "><span title="O" class="cap"><span>O</span></span>ne 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://hathology.com/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://hathology.com/how-to-reset-your-iphone-content-and-settings/</link>
		<comments>http://hathology.com/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[Articles]]></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 class="first-child "><span title="I" class="cap"><span>I</span></span>f 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://hathology.com/how-to-reset-your-iphone-content-and-settings/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>How To Setup A Local DNS Host File On Mac OS X</title>
		<link>http://hathology.com/how-to-setup-a-local-dns-host-file-on-mac-os-x/</link>
		<comments>http://hathology.com/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[Articles]]></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 class="first-child "><span title="A" class="cap"><span>A</span></span> 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://hathology.com/how-to-setup-a-local-dns-host-file-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How To Edit Your PATH Environment Variables On Mac OS X</title>
		<link>http://hathology.com/how-to-edit-your-path-environment-variables-on-mac-os-x/</link>
		<comments>http://hathology.com/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[Articles]]></category>
		<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 extremely easy task on Mac OS X.
Step 1: Open up a Terminal windows (this is in your Applications/Utilites folder by default)
Step 2: Enter the follow command:
$ sudo vi /etc/paths
This [...]]]></description>
			<content:encoded><![CDATA[<p class="first-child "><span title="I" class="cap"><span>I</span></span>f 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 extremely easy task on Mac OS X.</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 follow command:</p>
<p><code>$ sudo vi /etc/paths</code></p>
<p>This will open the paths file in vi (a simple command line file editor included on your system).</p>
<p><strong>Step 3:</strong> Edit the contents of your PATH file by putting each path you want included on a separate line.</p>
<p><strong>Step 4:</strong> Save the contents of your PATH file by pressing SHIFT + Z twice.</p>
<p>That&#8217;s it! Now you know how to edit the PATH on your Mac OS X computer system.</p>
]]></content:encoded>
			<wfw:commentRss>http://hathology.com/how-to-edit-your-path-environment-variables-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How To Install Windows On Mac OS X Leopard With Boot Camp</title>
		<link>http://hathology.com/how-toinstall-windows-on-mac-leopard/</link>
		<comments>http://hathology.com/how-toinstall-windows-on-mac-leopard/#comments</comments>
		<pubDate>Sat, 15 Dec 2007 20:06:27 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[Popular]]></category>
		<category><![CDATA[boot camp]]></category>
		<category><![CDATA[mac os x]]></category>

		<guid isPermaLink="false">http://hathology.com/how-toinstall-windows-on-mac-leopard/</guid>
		<description><![CDATA[One of the huge advantages of getting an Apple computer with the Intel processor is the ability to run a native boot version of Windows. Lets face it, we still live in a Windows world no matter how much faster, safer, and more productive the Mac OS X operating system is.
But as Apple continues it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p class="first-child "><span title="O" class="cap"><span>O</span></span>ne of the huge advantages of getting an Apple computer with the Intel processor is the ability to run a native boot version of Windows. Lets face it, we still live in a Windows world no matter how much faster, safer, and more productive the Mac OS X operating system is.</p>
<p>But as Apple continues it&#8217;s rise in popularity, you can feel safe in making the switch to an Apple computer now because there really is nothing it can&#8217;t do. With the addition of Apple Boot Camp software, which now comes with the Leopard version of Mac OS X, you can easily setup Windows XP or even Vista as a dual boot system.</p>
<p>There are a few tips that I can give you to make this process go smoothly because even though it is easy to get everything setup, there are a couple of things in the setup guide that I didn&#8217;t bother to read first that caused problems.</p>
<p>The first step is to run the Boot Camp Assistant application. You can find this by going to Applications -&gt; Utilities. Run through the steps in this wizard and create the partition for your Windows installation. When you finish, it will ask you to put your Windows installation disk in.  <strong>You will need to make sure you have a full installation disk, not an upgrade disk.  Also, if you are installing Windows XP then it has to be a SP2 install disk.</strong></p>
<p>Put in the installation disk and restart. This will allow it to boot to the installation disk and start the Windows installation process. Go through the installation wizard to the partition selection page. At this page, select the Windows partition you created with the Boot Camp Assistant. On the format options, make sure you select the Full format FAT32 option. You cannot use the Quick format option or it will cause problems with finishing the installation.</p>
<p>After the Windows installation has finished copying the installation files to the hard drive and restarts, make sure you hold down the Option button so it gives you the option to boot into the Windows partition. If you do not do this, you&#8217;ll never complete the installation because it will just keep booting to the Mac OS partition.</p>
<p>Once you&#8217;ve completed the Windows installation, you&#8217;ll need to run the setup.exe program from the Leopard installation disk to let it finish setting up and installing the drivers to make all of the hardware function correctly in windows.</p>
<p>One last optional step to improve the access to your Windows OS is to buy and install <a title="Parallel's Desktop 3.0 for Mac" href="http://www.parallels.com/en/products/desktop/" target="_blank">Parallel&#8217;s Desktop 3.0 for Mac.</a> This will give you the ability to run both operating systems at the same time as well as mirror and share files between the two operating system.</p>
]]></content:encoded>
			<wfw:commentRss>http://hathology.com/how-toinstall-windows-on-mac-leopard/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>How To Find The MAC Address of Your Apple iPhone</title>
		<link>http://hathology.com/apple-iphone-mac-address/</link>
		<comments>http://hathology.com/apple-iphone-mac-address/#comments</comments>
		<pubDate>Mon, 02 Jul 2007 14:53:56 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Popular]]></category>
		<category><![CDATA[How To's]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://hathology.com/apple-iphone-mac-address/</guid>
		<description><![CDATA[If you have a wireless network that you secure by restricting the MAC addresses, then you will have to enter the MAC address of your Apple iPhone in order to allow it to connect to that network.
To figure out the MAC address of your iPhone, start at the home menu. Select Settings -&#62; General -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p class="first-child "><span title="I" class="cap"><span>I</span></span>f you have a wireless network that you secure by restricting the MAC addresses, then you will have to enter the MAC address of your Apple iPhone in order to allow it to connect to that network.</p>
<p>To figure out the MAC address of your iPhone, start at the home menu. Select Settings -&gt; General -&gt; About. Scroll down that screen and you&#8217;ll see a setting called &#8220;Wi-Fi Address&#8221;, that is your iPhone MAC address.</p>
<p>Now enter that exact address as an allowed MAC address on your wireless network. The directions on this will vary because every router&#8217;s menu and interface is different so consult your router manual if you need help with this.</p>
<p>Once you have done this, go back to your iPhone and go to the Settings menu again. Select Wi-Fi and it should display your network in the list of available networks to connect to. Click the network name to connect.</p>
]]></content:encoded>
			<wfw:commentRss>http://hathology.com/apple-iphone-mac-address/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
