<?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>Steve Jamesson &#187; servers</title>
	<atom:link href="http://stevejamesson.com/category/servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://stevejamesson.com</link>
	<description>SteveBlog</description>
	<lastBuildDate>Fri, 29 Jan 2010 17:31:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Gmail troubles? Calm down, have some dip.</title>
		<link>http://stevejamesson.com/2009/02/25/gmail-troubles-calm-down-have-some-dip/</link>
		<comments>http://stevejamesson.com/2009/02/25/gmail-troubles-calm-down-have-some-dip/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 18:40:15 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[imap]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=597</guid>
		<description><![CDATA[I heard lots of people complaining about recent Gmail issues over IMAP. I mostly use my gmail account as an archive, so all my emails end up in there. It works really well, for me at least. But there&#8217;s an issue today, where I can&#8217;t seem to move my messages into the All Mail (archive) [...]]]></description>
			<content:encoded><![CDATA[<p>I heard lots of people complaining about recent Gmail issues over IMAP. I mostly use my gmail account as an archive, so all my emails end up in there. It works really well, for me at least.</p>

<p>But there&#8217;s an issue today, where I can&#8217;t seem to move my messages into the All Mail (archive) folder. It&#8217;s annoying and is keeping my inbox too crowded.</p>

<p>But do I pay for Gmail? No! It&#8217;s free. And my storage space is ever increasing.</p>

<p>So, if you&#8217;re having trouble, just be patient. Google will fix it up. Don&#8217;t forget, the service is FREE!</p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2009/02/25/gmail-troubles-calm-down-have-some-dip/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What the hell is web site hosting, anyway?</title>
		<link>http://stevejamesson.com/2008/10/08/what-hell-web-site-hosting-anyway/</link>
		<comments>http://stevejamesson.com/2008/10/08/what-hell-web-site-hosting-anyway/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 20:59:59 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[what the hell]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=254</guid>
		<description><![CDATA[I answer this question quite often, also, so hopefully this article will help to clarify what website hosting is. Website hosting (aka hosting) is much different than a domain name, though they&#8217;re very closely related. As I discuss in the above article, a domain name is simply a name, registered via an authorized registrar. An [...]]]></description>
			<content:encoded><![CDATA[<p>I answer this question quite often, also, so hopefully this article will help to clarify what website hosting is. Website hosting (aka hosting) is much different than a <a href="http://stevejamesson.com/2008/10/07/what-hell-domain-name-anyway" title="What the hell is a domain name, anyway? | Steve Jamesson">domain name</a>, though they&#8217;re very closely related.</p>

<p><span id="more-254"></span></p>

<p>As I discuss in <a href="http://stevejamesson.com/2008/10/07/what-hell-domain-name-anyway" title="What the hell is a domain name, anyway? | Steve Jamesson">the above article</a>, a domain name is simply a name, registered via an authorized registrar. An A Record beneath the domain points to an IP address, and that IP address routes to some computer located somewhere in the world and connected to the internet.</p>

<p>This computer is your <em>host</em>. Also known as a server or web server, this machine is responsible for storing and serving your website files to people who visit your website.</p>

<p>Host computers (aka hosts) vary greatly in performance, speed, and versatility. Most websites&#8217; hosts run Unix-based operating systems. Others may Windows and IIS, which stands for <em>Internet Information Systems</em>.</p>

<h3>Windows based servers</h3>

<p>A Windows server is simply a computer that runs a flavor of Microsoft Windows, ranging from Windows 98 to XP to Vista. The operating system (Windows) isn&#8217;t the one doing most of the work, though. IIS is actually responsible for accepting requests for a web page and serving responses for that web page. IIS is a web server software.</p>

<h3>Unix based servers</h3>

<p>On the other hand, the majority of host machines are Unix-based, and most often run a Linux operating system. Linux comes in many flavors, including some of these popular ones:</p>

<ul>
<li><a href="http://www.redhat.com/" title="redhat.com | The World's Open Source Leader">Red Hat</a></li>
<li><a href="http://fedoraproject.org/" title="Fedora Project">Fedora</a></li>
<li><a href="http://www.ubuntu.com/" title="Ubuntu Home Page | Ubuntu">Ubuntu</a></li>
<li><a href="http://www.debian.org/" title="Debian -- The Universal Operating System">Debian</a></li>
</ul>

<p>There of course more, but these operating systems are very commonly encountered.</p>

<p>Linux-based servers still run a core that&#8217;s based on an old (but very solid) operating system (OS) called <em>Unix</em>. You may encounter the term **nix* OS. This term applies to any OS that&#8217;s based on Unix, including Mac OS X, Linux, and others.</p>

<p>Most *nix servers run web server software called <a href="http://www.apache.org/" title="Welcome! - The Apache Software Foundation">Apache</a>. Apache is by far the most widely used web server software. Like Microsoft&#8217;s IIS, Apache is the one responsible for responding to requests for web pages.</p>

<h3>How to get hosting</h3>

<p>There are many companies that offer hosting, and if you&#8217;re searching, you&#8217;ll probably easily come across thousands. Many domain registrars additionally offer hosting services. Lots of these companies offer SSL certificates, email solutions, and other services.</p>

<p>Using one company to manage your domain names, hosting accounts, certificates, and other products is a great way to keep everything centralized and easy to find. Of course, there&#8217;s the risk that the company&#8217;s site goes down or goes out of business, but I think the benefit of keeping everything centralized is worth that risk.</p>

<p>While you&#8217;re shopping for a host, I highly recommend you check potential hosts on <a href="http://hostjury.com/" title="HostJury">Host Jury</a>, a great host review site! Check the host&#8217;s rating on Host Jury before you sign up!</p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/10/08/what-hell-web-site-hosting-anyway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find out which version of Apache is running on unix/*nix systems</title>
		<link>http://stevejamesson.com/2008/10/07/find-out-which-version-apache-running-unixnix-systems/</link>
		<comments>http://stevejamesson.com/2008/10/07/find-out-which-version-apache-running-unixnix-systems/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 20:57:21 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[servers]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=248</guid>
		<description><![CDATA[To find out which version of Apache you&#8217;re running on a *nix system, you can run the following command. This will only work if you have permission to run the script in the first place, so you should probably login as root or use sudo, if you can. If this isn&#8217;t possible, then you should [...]]]></description>
			<content:encoded><![CDATA[<p>To find out which version of Apache you&#8217;re running on a *nix system, you can run the following command. This will only work if you have permission to run the script in the first place, so you should probably login as root or use <code>sudo</code>, if you can. If this isn&#8217;t possible, then you should probably just contact your hosting provider or just look around in your hosting control panel.</p>

<p><pre lang="bash">steve$ httpd -v</p>

<h1>or use this</h1>

<p>steve$ httpd -V</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/10/07/find-out-which-version-apache-running-unixnix-systems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project Pier upload error: Failed to create folder</title>
		<link>http://stevejamesson.com/2008/10/07/project-pier-upload-error-failed-create-folder/</link>
		<comments>http://stevejamesson.com/2008/10/07/project-pier-upload-error-failed-create-folder/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 20:55:55 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[project management]]></category>
		<category><![CDATA[web application]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=246</guid>
		<description><![CDATA[I&#8217;m evaluating a collaboration/project management web application called Project Pier. So far I like it, but I got a weird upload error when I was testing file uploads. The error read: 1Failed to create folder: /var/...xxxx.xxx/httpdocs/uploads/ My first reaction was of course to check permissions on the /upload directory. It was already set to 777, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m evaluating a collaboration/project management web application called <a href="http://www.projectpier.org" title="ProjectPier.org">Project Pier</a>. So far I like it, but I got a weird upload error when I was testing file uploads. The error read:</p>

<div class="codecolorer-container html4strict twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Failed to create folder: /var/...xxxx.xxx/httpdocs/uploads/</div></td></tr></tbody></table></div>

<p><span id="more-246"></span></p>

<p>My first reaction was of course to check permissions on the <code>/upload</code> directory. It was already set to <code>777</code>, so I was a bit confused.</p>

<p>A little research led me to <a href="http://www.projectpier.org/node/271" title="Problem with upload | ProjectPier.org">this page on Project Pier&#8217;s forums</a>. It of course mentioned a solution <a href="http://www.projectpier.org/comment/reply/285" title="Problems with file upload under linux *solved* | ProjectPier.org">posted on another page on the same forums</a>. This solution involved replacing the default function <code>force_mkdir()</code> with a new one.</p>

<p>I modified the file</p>

<div class="codecolorer-container html4strict twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;/var/...xxxxx.xxx/httpdocs/environment/functions/files.php</div></td></tr></tbody></table></div>

<p>and replaced the original <code>force_mkdir()</code> with the code found directly on the <a href="http://www.projectpier.org/comment/reply/285" title="Problems with file upload under linux *solved* | ProjectPier.org">second forum page</a>. It worked! Some people reported it didn&#8217;t work for them, but it worked for me under Linux, RedHat, Apache 2.x, PHP 5.1.x.</p>

<p>Here&#8217;s martinlang&#8217;s replacement code, reposted for your convenience. This is identical to the code he posted at <a href="http://www.projectpier.org/comment/reply/285" title="Problems with file upload under linux *solved* | ProjectPier.org">this page</a>.</p>

<div class="codecolorer-container php twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> force_mkdir<span style="color: #009900;">&#40;</span><span style="color: #000088;">$path</span><span style="color: #339933;">,</span> <span style="color: #000088;">$chmod</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_dir"><span style="color: #990000;">is_dir</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$path</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$forced_path</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$real_path</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;DOCUMENT_ROOT&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$path</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; <span style="color: #000088;">$forced_path</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$path</span> <span style="color: #339933;">!=</span> <span style="color: #000088;">$real_path</span> ? <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;DOCUMENT_ROOT&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; <span style="color: #000088;">$real_path</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'\', '</span><span style="color: #339933;">/</span><span style="color: #0000ff;">', $real_path);<br />
&nbsp; $parts = explode('</span><span style="color: #339933;">/</span><span style="color: #0000ff;">', $real_path);<br />
<br />
&nbsp; foreach($parts as $part) {<br />
&nbsp; &nbsp; if($forced_path == '</span><span style="color: #0000ff;">') {<br />
&nbsp; &nbsp; &nbsp; $start = substr(__FILE__, 0, 1) == '</span><span style="color: #339933;">/</span><span style="color: #0000ff;">' ? '</span><span style="color: #339933;">/</span><span style="color: #0000ff;">' : '</span><span style="color: #0000ff;">';<br />
&nbsp; &nbsp; &nbsp; $forced_path = $start . $part;<br />
&nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; $forced_path .= '</span><span style="color: #339933;">/</span><span style="color: #0000ff;">' . $part;<br />
&nbsp; &nbsp; } // if<br />
<br />
&nbsp; &nbsp; if(!is_dir($forced_path) &amp;&amp; $forced_path!='</span><span style="color: #339933;">/</span><span style="color: #0000ff;">') {<br />
&nbsp; &nbsp; &nbsp; if(!is_null($chmod)) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(!mkdir($forced_path)) return false;<br />
&nbsp; &nbsp; &nbsp; } else {<br />
&nbsp; &nbsp; &nbsp; &nbsp; if(!mkdir($forced_path, $chmod)) return false;<br />
&nbsp; &nbsp; &nbsp; } // if<br />
&nbsp; &nbsp; } // if<br />
&nbsp; } // foreach<br />
<br />
&nbsp; return true;<br />
} // force_mkdir</span></div></td></tr></tbody></table></div>

<p>Hope this helps someone out!</p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/10/07/project-pier-upload-error-failed-create-folder/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>What the hell is a domain name, anyway?</title>
		<link>http://stevejamesson.com/2008/10/07/what-hell-domain-name-anyway/</link>
		<comments>http://stevejamesson.com/2008/10/07/what-hell-domain-name-anyway/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 20:55:04 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[servers]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[registrar]]></category>
		<category><![CDATA[tld]]></category>
		<category><![CDATA[what the hell]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=244</guid>
		<description><![CDATA[A domain name is simply a name ending with a TLD. TLD stands for Top Level Domain. Some examples: stevejamesson.com irs.gov google.com abtech.edu cakephp.org The TLD is the .com, .org, .net, etc. portion of the domain name. Domain registrars In order to have a website, you&#8217;re gonna need a domain name. You can register a [...]]]></description>
			<content:encoded><![CDATA[<p>A domain name is simply a name ending with a TLD. TLD stands for <em>Top Level Domain.</em> Some examples:</p>

<p><pre lang="xml">stevejamesson.com
irs.gov
google.com
abtech.edu
cakephp.org</pre></p>

<p>The TLD is the <code>.com</code>, <code>.org</code>, <code>.net</code>, etc. portion of the domain name.</p>

<p><span id="more-244"></span></p>

<h3>Domain registrars</h3>

<p>In order to have a website, you&#8217;re gonna need a domain name. You can register a domain name with a whole bunch of different registrars. A registrar is simply a company that&#8217;s authorized to register domain names. There are many registrars, including these popular ones.</p>

<ul>
<li><a href="http://godaddy.com/" title="Complete Web Solutions: domains, hosting, site builders and SSL.">GoDaddy</a></li>
<li><a href="http://www.register.com/" title="Register Domain Names at Register.com - Business Web Hosting Services and Domain Name Registration Provider">Register.com</a></li>
<li><a href="http://www.dotster.com/" title="Domain Name Registration, Website Hosting Plans and More - Dotster">Dotser</a></li>
<li><a href="http://namebargain.com/" title="NameBargain.com - domain name, web site hosting, registration, email">Name Bargain</a></li>
<li><a href="http://www.networksolutions.com/" title="Welcome To Our Site | Network Solutions">Network Solutions</a></li>
</ul>

<p>There are of course many other sites that will offer to register a domain name for you.</p>

<h3>How much is it?</h3>

<p>The general cost of a domain name is typically no more than about $20 per year, so if you&#8217;re currently paying more than that, then you might want to consider transferring your domain name to a different registrar to save some money.</p>

<h3>Think alias</h3>

<p>A domain name is kinda like an alias. Think of it as speed dial on your phone. Behind every domain name is what&#8217;s called an <em>A Record</em>. An A Record points a domain name at an IP address. An IP address is kind of like a phone number, except it&#8217;s for computers.</p>

<p>So when you use speed dial number 3, you call a phone number like <code>(111) 222-3333</code>. Well the same thing kinda happens whenever you type in <code>google.com</code> or another domain name.</p>

<ol>
<li>Your web browser looks up the domain name via a name server, generally provided by your Internet Service Provider (ISP)</li>
<li>The name server tells your web browser that it points to some IP address (i.e. 11.22.33.44)</li>
<li>The computer located at that IP address takes it from there, and you&#8217;re shown a website</li>
</ol>

<p>So it&#8217;s kinda like a speed dial. The technology of how all this stuff works is pretty heavy, so I won&#8217;t go into those details here.</p>

<h3>Is that it?</h3>

<p>Yeah, that&#8217;s pretty much it. To summarize:</p>

<ul>
<li>A domain name is simply a name with a <code>.com</code>, <code>.net</code>, <code>.org</code> or other TLD. </li>
<li>Behind a domain name is an A Record, which points the domain name to an IP Address, which is a numeric address for one computer.</li>
<li>That computer takes over from here, showing you a website</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/10/07/what-hell-domain-name-anyway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Gmail IMAP with Apple/Mac Mail application (Mail.app)</title>
		<link>http://stevejamesson.com/2008/10/04/using-gmail-imap-applemac-mail-application-mailapp/</link>
		<comments>http://stevejamesson.com/2008/10/04/using-gmail-imap-applemac-mail-application-mailapp/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 20:49:07 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[pop3]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=231</guid>
		<description><![CDATA[If you&#8217;re using Mac Mail and have a Gmail account, you should probably follow a few simples steps to get the Gmail account integrated into Mac Mail. This article will go through how to setup Gmail in Mac Mail as an IMAP account. First you should understand the difference between IMAP and POP3 mail accounts. [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using <a href="http://www.apple.com/macosx/features/mail.html" title="Apple - Mac OS X Leopard - Features - Mail">Mac Mail</a> and have a <a href="http://mail.google.com/">Gmail account</a>, you should probably follow a few simples steps to get the Gmail account integrated into Mac Mail. This article will go through how to setup Gmail in Mac Mail as an IMAP account.</p>

<p><span id="more-231"></span></p>

<p>First you should understand the difference between IMAP and POP3 mail accounts. When you set up your email account as a POP3 account, you&#8217;ll be downloading full copies of the messages from the server, and in many cases after download, the messages will be removed from the server. This approach is best if you really only use one computer, which can hold all your mail.</p>

<p>But if you&#8217;re like me, then you may work from multiple computers, from multiple locations, and you may even use your phone for email. Enter IMAP.</p>

<p>IMAP stands for <em>Internet Message Access Protocol</em>. That makes sense, huh? The real beauty of IMAP is that you can access mail from multiple locations, and as opposed to POP3, your inbox and other mail folders will all be synchronized. That&#8217;s the main benefit of using IMAP. Rather than have multiple copies of your email messages (as with POP3) across multiple computers or devices, using IMAP is a great way to keep your email account synched across all your devices.</p>

<h3>After creating the mail account</h3>

<p>After you create the new Gmail account in Mac Mail.app, make sure to set the IMAP prefix. You can find this field under <code>Mail &gt; Preferences</code>. Choose the Gmail account, and then visit the <code>Advanced</code> tab. You&#8217;ll see a field titled <code>IMAP Path Prefix</code>. Enter <code>[Gmail]</code>. (Yours may be <code>[Gmail account]</code> or something similar). Then close mail preferences and click <code>Save</code> when it asks.</p>

<p>Now you&#8217;ll see the account in the left column of Mail.app&#8217;s interface. You&#8217;ll also see several folders, including the common folders</p>

<ul>
<li>Drafts</li>
<li>Sent Messages</li>
<li>Deleted Messages</li>
<li>Spam</li>
</ul>

<p>You next need to tell Mac Mail.app to use these folders for its common tasks.</p>

<ol>
<li>Select the Gmail account&#8217;s Drafts folder</li>
<li>Click the top menu <code>Mailbox &gt; Use This Mailbox For &gt; Drafts</code></li>
</ol>

<p>After this you&#8217;ll notice that the folder disappears from the Gmail section; it&#8217;s now located up top with the rest of your mail accounts. This means that Mac Mail is treating the folder as your primary Drafts folder, at least for your Gmail account. So if you&#8217;re writing an email from your Gmail account and you save a draft, then you&#8217;ll be able to access it via this folder. Additionally if you visit the Gmail webmail interface, you&#8217;ll notice that the draft is also located in Gmail&#8217;s default Drafts folder. Cool! Seems to be working.</p>

<p>Now repeat the above steps for the other folders</p>

<ul>
<li>Sent Messages > Sent</li>
<li>Deleted Messages > Trash</li>
<li>Spam > Junk</li>
</ul>

<p>That should do it! Your Gmail account is now integrated nicely with Mac Mail.app.</p>

<p>If you&#8217;re still having trouble or want to look a bit deeper into it, I&#8217;d suggest starting at this very helpful post on <a href="http://5thirtyone.com/archives/862" title="How-to: Proper Gmail IMAP for iPhone &amp; Apple Mail">5ThirtyOne</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/10/04/using-gmail-imap-applemac-mail-application-mailapp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Reset Mac OS X network configuration to factory default; Airport interface disappeared</title>
		<link>http://stevejamesson.com/2008/10/01/reset-mac-os-x-network-configuration-factory-default-airport-interface-disappeared/</link>
		<comments>http://stevejamesson.com/2008/10/01/reset-mac-os-x-network-configuration-factory-default-airport-interface-disappeared/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 17:43:38 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[airport]]></category>
		<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=212</guid>
		<description><![CDATA[We used Apple&#8217;s Migration Assistant Application to migrate my brother&#8217;s files and user account and stuff over to a new machine. The new machine has airport. After the migration (and a few changes to our simple local home network), the Airport interface in System Preferences simply wasn&#8217;t there. Instead all we had was Ethernet 2. [...]]]></description>
			<content:encoded><![CDATA[<p>We used <a href="http://www.apple.com/pro/tips/migration.html" title="Apple - Pro - Tips - Move All Your Stuff to a New Mac &#8212; Quick">Apple&#8217;s Migration Assistant Application</a> to migrate <a href="http://jimjamesson.com" title="Jim Jamesson">my brother&#8217;s</a> files and user account and stuff over to a new machine. The new machine has airport.</p>

<p>After the migration (and a few changes to our simple local home network), the Airport interface in System Preferences simply wasn&#8217;t there. Instead all we had was Ethernet 2. The new machine (an iMac G5) only has one ethernet interface, so Ethernet 2 made no sense at all!</p>

<p><span id="more-212"></span></p>

<p>I renamed the Ethernet 2 interface to Airport, turned it off and back on again. AFter this, Airport wouldn&#8217;t connect to the wireless signal, and the machine automatically renamed it back to Ethernet 2. Frustrating. Tried this about 5 times, and still all I had was Ethernet 2.</p>

<p>So, a bit of research led us to attempt to reset the network settings back to factory default. It was pretty easy to do this. All we had to do was to remove/rename a preference file and restart the machine. On boot the system will recreate the preference file from its default sources.</p>

<p>To do this, I renamed the file:</p>

<p><pre lang="xml">    /Library/Preferences/SystemConfiguration/preferences.plist</pre></p>

<p>to:</p>

<p><pre lang="xml">    /Library/Preferences/SystemConfiguration/preferences.plist.bak</pre></p>

<p>and restarted the machine. It worked!</p>

<p>The reason I choose to rename it instead of deleting it is just in case it didn&#8217;t work, I could at least put the old back. It&#8217;s always best to keep a backup before removing files, especially if you&#8217;re not really sure what the hell the file even does in the first place! <img src='http://stevejamesson.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/10/01/reset-mac-os-x-network-configuration-factory-default-airport-interface-disappeared/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>What the hell is a blog, anyway!?</title>
		<link>http://stevejamesson.com/2008/09/30/what-hell-blog-anyway/</link>
		<comments>http://stevejamesson.com/2008/09/30/what-hell-blog-anyway/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 17:42:06 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[what the hell]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=208</guid>
		<description><![CDATA[A client recently requested a quote for a new website. The site required at least five different sections, where the site owner would have the ability to administer the site. The proposal requester mentioned that maybe a blog would be sufficient for the first section. He also suggested that maybe a blog would be sufficient [...]]]></description>
			<content:encoded><![CDATA[<p>A client recently requested a quote for a new website. The site required at least five different sections, where the site owner would have the ability to administer the site. The proposal requester mentioned that maybe a blog would be sufficient for the first section. He also suggested that maybe a blog would be sufficient for the second section. For the third section&#8230; yup, another blog!</p>

<p>Now, this doesn&#8217;t seem right at all, huh?!</p>

<p>I believe there&#8217;s a lot of confusion when it comes to the term <em>blog</em>. This term gets thrown around all day long, by people who know not what a <em>blog</em> really is.</p>

<p><span id="more-208"></span></p>

<p>Simply put, a <em>blog</em> is merely a collection of articles written by one person, generally arranged by date, online and accessible via a web browser. Lots of blogs also use some means of taxonomy, or in other words, they use some form of categorization or classification of articles.</p>

<p>The term originally comes from <em>web log</em>, which refers to a log of articles, diary entries, or even notes organized by date. After a while the two words were combined, and hence our buzz word <em>blog</em>.</p>

<h3>A blog is comprised of posts</h3>

<p>Each entry in a blog is a post. A post could be in article format. So one blog post isn&#8217;t a blog. It&#8217;s just a post within a blog.</p>

<h3>A blog is targeted</h3>

<p>Most blogs (at least successful ones) are targeted to a specific audience. Many bloggers are also web designers or developers, and lots of them will have blogs about&#8211;surprise, surprise!&#8211;web design and web development.</p>

<p>Other bloggers know nothing about web design or development, but they do know lots about whatever field they&#8217;re in. Marketers, researchers, salesmen, schemers, entrepreneurs, and thousands of others might blog about their specific field. They may also have huge audiences</p>

<p>But the key here is that blogs are generally targeted to a specific market or audience.</p>

<h3>A blog isn&#8217;t an ecommerce site</h3>

<p>Lots of blogs have ads plastered all over the blog. This is a way for a blogger to earn some income from sharing her valuable information. If her readers appreciate any of the ads and click on them, the blogger may get some income out of it.</p>

<p>But a blog doesn&#8217;t have to sell anything. It doesn&#8217;t have to display ads. Again please see the above definition of a blog.</p>

<h3>Summary</h3>

<p>Stop referring to each blog post you make as a blog; the whole thing is the blog, not just the one post. And if your site needs five different blogs within it, then maybe you&#8217;d better rethink the organization of your site. Maybe you just need a content management system (aka CMS)&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/09/30/what-hell-blog-anyway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft killed our definition of FTP</title>
		<link>http://stevejamesson.com/2008/09/29/microsoft-killed-our-definition-ftp/</link>
		<comments>http://stevejamesson.com/2008/09/29/microsoft-killed-our-definition-ftp/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 17:40:56 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=206</guid>
		<description><![CDATA[When dealing with so many clients as I have over the years, and lots of them being primarily Windows users, I&#8217;ve come to a point where I can&#8217;t stand hearing incorrect definitions of FTP. It seems like Microsoft has incorrectly impressed the idea of FTP in so many of its users&#8217; heads. Many clients and [...]]]></description>
			<content:encoded><![CDATA[<p>When dealing with so many clients as I have over the years, and lots of them being primarily Windows users, I&#8217;ve come to a point where I can&#8217;t stand hearing incorrect definitions of FTP.</p>

<p>It seems like Microsoft has incorrectly impressed the idea of FTP in so many of its users&#8217; heads. Many clients and friends ask me about having an FTP area. An FTP area doesn&#8217;t really exist!</p>

<p><span id="more-206"></span></p>

<p>FTP stands for File Transfer Protocol, which means it&#8217;s a <em>way</em> of transferring files back and forth. FTP is actually just a program, like everything else that runs on a computer.</p>

<p>Compare FTP to HTTP. Many are familiar with <code>http://www.example.com</code>. HTTP stands for Hyper Text Transfer Protocol. What this means is that it&#8217;s a <em>way</em> of transferring hypertext data. Hypertext data simply put is just HTML. It&#8217;s not that complicated, but there are lots of intricacies to it.</p>

<p>Here&#8217;s a quick example of some simple HTML (HypterText Markup Language):</p>

<p><pre lang="xhtml"></p>

<h3>A few notes</h3>

<pre><code>&lt;p&gt;Here's a few notes that I gathered at a lecture I recently attended.&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Germans make good German beer&lt;/li&gt;
    &lt;li&gt;Hops were originally added to beer as a preservative&lt;/li&gt;
    &lt;li&gt;Wheat beer is best unfiltered&lt;/li&gt;
    &lt;li&gt;Use an anchor to &lt;a href="http://google.com"&gt;link to google&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/pre&gt;
</code></pre>

<p>Take a minute to look it over. It's quite simple. The <code>&lt;h3&gt;</code> is just a heading, same as you'd have in a Microsoft Word document or other word processing document. The <code>3</code> denotes that it's a level three heading. You could also have <code>&lt;h1&gt;</code>, <code>&lt;h2&gt;</code>, <code>&lt;h4&gt;</code> and so on up to <code>&lt;h6&gt;</code>.</p>

<p>The <code>&lt;p&gt;</code> simply encloses a paragraph.</p>

<p>The <code>&lt;ul&gt;</code> represents an <strong>u</strong>nordered <strong>l</strong>ist. And the <code>&lt;li&gt;</code>s represent items within that unordered list.</p>

<p>I've also included an <code>&lt;a&gt;</code> tag, which stands for anchor. This is how you'd create a link to another website.</p>

<p>So hypertext really just means metadata, in this sense. It's data that describes the text in which it's embedded. So the hypertext <code>&lt;p&gt;</code> and <code>&lt;/p&gt;</code> says that its enclosed text is a paragraph. Same with the unordered list and list items. Pretty simple enough to grasp, huh?</p>

<p>Now onto FTP. Again, FTP means File Transfer Protocol. And again, this means that it's a way of transferring files. It's a program that allows a user to <code>put</code> and <code>get</code> files to and from one computer to another.</p>

<p>Hundreds of times I've heard Windows users use the term <em>FTP Area</em> for our files. Well, you can't really have an FTP area, since it's only a <em>way</em> of transferring files to and fro. You can have a <strong>file area</strong>. You may decide to access it using FTP, if you'd prefer. There are other ways of accessing these files other than using FTP.</p>

<p>FTP is pretty rudimentary, but it does allow the user to do everything she needs to do when it comes to transferring files.</p>

<p>So please, understand that an <em>FTP Area</em> doesn't, and can't, exist. It's that simple.</p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/09/29/microsoft-killed-our-definition-ftp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubercart using NaviGate/Authorize.net payment gateway</title>
		<link>http://stevejamesson.com/2008/09/26/ubercart-using-navigateauthorizenet-payment-gateway/</link>
		<comments>http://stevejamesson.com/2008/09/26/ubercart-using-navigateauthorizenet-payment-gateway/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 17:38:43 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[payment gateway]]></category>
		<category><![CDATA[ubercart]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=202</guid>
		<description><![CDATA[I had some trouble getting Ubercart&#8217;s Authorize.net module working with a different gateway named NaviGate, provided by MerchantPlus. The NaviGate gateway supposedly works just like an Authorize.net gateway, with the same variable names and very similar API, so we&#8217;d hoped we wouldn&#8217;t run into many issues. But there was one that caused a decent amount [...]]]></description>
			<content:encoded><![CDATA[<p>I had some trouble getting Ubercart&#8217;s Authorize.net module working with a different gateway named NaviGate, provided by <a href="https://support.merchantplus.com/partners/idevaffiliate.php?id=1022">MerchantPlus</a>. The NaviGate gateway supposedly works just like an Authorize.net gateway, with the same variable names and very similar API, so we&#8217;d hoped we wouldn&#8217;t run into many issues. But there was one that caused a decent amount of frustration.</p>

<p><span id="more-202"></span></p>

<p>The issue was related to the credit card&#8217;s expiration date every time an order was attempted. The Ubercart error message was:</p>

<p><pre lang="xml">Payment failed: Credit card payment declined: The credit card expiration date is invalid.</pre></p>

<p>Now I was using my own personal credit card, and I&#8217;m a friggin web developer, so I&#8217;m pretty sure I had input the damn expiration date correctly! But nonetheless, I kept getting the same error messages.</p>

<p>After a bit of time and as the debug mindset sank deeper in, I checked the logs once again. Noticing an error logged from the <code>uc_payment</code> module, I checked over the string that was cURLed over to the gateway. The expiration date was sent as <code>1%2F2009</code>. Ok, that seems right. The %2F of course is just a slash, no worries there.</p>

<p>I kept thinking about the issue, and eventually I decided to try something I&#8217;d previously written off. I though maybe, just maybe, the expiration month and must be two digits, and the year four digits. The cURL string above was using just one digit for the month.</p>

<div><a href="https://support.merchantplus.com/partners/idevaffiliate.php?id=1022_5_1_3" target="_blank"><img border="0" src="https://support.merchantplus.com/partners/banners/largemplusbannerr.gif" width="314" height="60"></a></div>

<p>I found the code that generates the select box in <code>uc_store.module</code>. I didn&#8217;t expect it to be there, but oh well. Around line 2276 (in my copy of the file at least) I found the array that&#8217;s used to build the expiry date select box.</p>

<p><pre lang="xml">/**
     * Create a month select box for a form.
     */
    function uc_select_month($title = NULL, $default = NULL) {
      $select = array(
        '#type' => 'select',
        '#title' => (is_null($title) ? t('Month') : $title),
        '#options' => array(1 => t('01 - January'), 2 => t('02 - February'), 3 => t('03 - March'),
                         4 => t('04 - April'), 5 => t('05 - May'), 6 => t('06 - June'),
                         7 => t('07 - July'), 8 => t('08 - August'), 9 => t('09 - September'),
                         10 => t('10 - October'), 11 => t('11 - November'), 12 => t('12 - December')),
        '#default_value' => (is_null($default) ? 1 : $default),
      );</p>

<pre><code>  return $select;
}
</code></pre>

<p>So I simply changed the keys to be strings at two digits each:</p>

<pre><code>...
'#options' =&gt; array(
    '01' =&gt; t('01 - January'), 
    '02' =&gt; t('02 - February'), 
    '03' =&gt; t('03 - March'),
    '04' =&gt; t('04 - April'), 
    '05' =&gt; t('05 - May'), 
    '06' =&gt; t('06 - June'),
    '07' =&gt; t('07 - July'), 
    '08' =&gt; t('08 - August'), 
    '09' =&gt; t('09 - September'),
    '10' =&gt; t('10 - October'), 
    '11' =&gt; t('11 - November'), 
    '12' =&gt; t('12 - December')),
'#default_value' =&gt; (is_null($default) ? '01' : $default),
...&lt;/pre&gt;
</code></pre>

<p>I also cleaned up the alignment to make it a bit easier to read, even though I'll probably never look at it again. Guess I'm kind of anal coder, but that's a good thing, right? <strong>Notice</strong> that the default value also was changed to <code>'01'</code>, rather than <code>1</code>.</p>

<p>This seemed to fix the issue. Live transactions worked right away!</p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/09/26/ubercart-using-navigateauthorizenet-payment-gateway/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Remove CalDav subscribed calendar from iCal, calendar won&#8217;t delete</title>
		<link>http://stevejamesson.com/2008/09/25/remove-caldav-subscribed-calendar-ical-calendar-wont-delete/</link>
		<comments>http://stevejamesson.com/2008/09/25/remove-caldav-subscribed-calendar-ical-calendar-wont-delete/#comments</comments>
		<pubDate>Thu, 25 Sep 2008 17:35:37 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[caldav]]></category>
		<category><![CDATA[ical]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=196</guid>
		<description><![CDATA[I used to use Leopard Server for my office. We all had accounts on there, and we used iCal and CalDav so we could all subscribe to a few common calendars. It never worked perfectly. But now we don&#8217;t use Leopard Server anymore. It just didn&#8217;t really help us out very much. In my iCal [...]]]></description>
			<content:encoded><![CDATA[<p>I used to use Leopard Server for my office. We all had accounts on there, and we used iCal and CalDav so we could all subscribe to a few common calendars. It never worked perfectly. But now we don&#8217;t use Leopard Server anymore. It just didn&#8217;t really help us out very much.</p>

<p><span id="more-196"></span></p>

<p>In my iCal I&#8217;d subscribed to a master calendar from the server. I&#8217;ve deleted that account hundreds of times, and every time I restart iCal, it show back up! And of course it complains that the connection can&#8217;t be found. No kidding the connection can&#8217;t be found; the server&#8217;s not there anymore!</p>

<h3>The fix</h3>

<p>You can remove the iCal <em>managed</em> preferences file. It&#8217;s in:</p>

<p><pre lang="xml">~/Library/Preferences/com.apple.iCal.managed.plist</pre></p>

<p>Just delete it and restart iCal. I had to restart iCal twice before I noticed the ghost calendar disappear. But this should take care of it.</p>

<p><a href="http://discussions.apple.com/thread.jspa?threadID=1567014">Read more of the discussion here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/09/25/remove-caldav-subscribed-calendar-ical-calendar-wont-delete/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clear or Flush DNS Cache on Mac OS X Leopard</title>
		<link>http://stevejamesson.com/2008/09/22/clear-or-flush-dns-cache-mac-os-x-leopard/</link>
		<comments>http://stevejamesson.com/2008/09/22/clear-or-flush-dns-cache-mac-os-x-leopard/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 17:21:32 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dscacheutil]]></category>
		<category><![CDATA[flush cache]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=178</guid>
		<description><![CDATA[Sometimes it&#8217;s necessary to clear DNS cache on your local machine. If lookups are sluggish, it&#8217;s most likely your ISP, but it&#8217;s worth trying to clear cache on the local machine. To clear cache on Mac OS X, open a terminal window and type the following command: dscacheutil -flushcache Then click enter. You won&#8217;t get [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes it&#8217;s necessary to clear DNS cache on your local machine. If lookups are sluggish, it&#8217;s most likely your ISP, but it&#8217;s worth trying to clear cache on the local machine.</p>

<p><span id="more-178"></span></p>

<p>To clear cache on Mac OS X, open a terminal window and type the following command:</p>

<p><pre lang="xml">dscacheutil -flushcache</pre></p>

<p>Then click enter. You won&#8217;t get any output from running <code>dscacheutil</code> but the cache has been cleared.</p>

<p>Try some more lookups, but you may need to restart the machine or logout/login to have the cache flushed.</p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/09/22/clear-or-flush-dns-cache-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Unix get full size of directory folder</title>
		<link>http://stevejamesson.com/2008/06/18/unix-get-full-size-of-directory-folder/</link>
		<comments>http://stevejamesson.com/2008/06/18/unix-get-full-size-of-directory-folder/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 17:04:16 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[servers]]></category>
		<category><![CDATA[directory]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=138</guid>
		<description><![CDATA[This issue has plagued me for awhile, but I never figured out the command to actually have unix print out the size of an entire directory. I came across the need handfuls of times over the years, but today I finally needed to actually learn this one. So a bit of research led me to [...]]]></description>
			<content:encoded><![CDATA[<p>This issue has plagued me for awhile, but I never figured out the command to actually have unix print out the size of an entire directory. I came across the need handfuls of times over the years, but today I finally needed to actually learn this one.</p>

<p><span id="more-138"></span></p>

<p>So a bit of research led me to the following command:</p>

<p><pre lang="bash">steve$ ls
dir1  dir2  dir3
steve$ du -sh dir1
2.4M  dir1</pre></p>

<p>Finally I can get the full file size of an entire directory via a shell. Hopefully I’ll remember that I posted this so message, for the next time I forget about this command.</p>

<p>By the way, about the arguments above: <code>-s</code> tells the shell I want size, and <code>-h</code> tells it I want it <strong>h</strong>uman readable.</p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/06/18/unix-get-full-size-of-directory-folder/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to check Plesk mail logs</title>
		<link>http://stevejamesson.com/2008/05/14/how-to-check-plesk-mail-logs/</link>
		<comments>http://stevejamesson.com/2008/05/14/how-to-check-plesk-mail-logs/#comments</comments>
		<pubDate>Wed, 14 May 2008 16:59:03 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[servers]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[qmail]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=127</guid>
		<description><![CDATA[Plesk uses qmail. You can check your mail logs here: /var/log/maillog I use this command to follow the maillog as it runs: tail -f /var/log/maillog You can use Control+C to get out.]]></description>
			<content:encoded><![CDATA[<p>Plesk uses qmail. You can check your mail logs here:</p>

<p><pre lang="xml">/var/log/maillog</pre></p>

<p>I use this command to follow the maillog as it runs:</p>

<p><pre lang="xml">tail -f /var/log/maillog</pre></p>

<p>You can use Control+C to get out.</p>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/05/14/how-to-check-plesk-mail-logs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Plesk, Email Piping/Email Pipe (osTicket / Trellis)</title>
		<link>http://stevejamesson.com/2008/05/13/plesk-email-pipingemail-pipe-osticket-trellis/</link>
		<comments>http://stevejamesson.com/2008/05/13/plesk-email-pipingemail-pipe-osticket-trellis/#comments</comments>
		<pubDate>Tue, 13 May 2008 16:52:45 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[servers]]></category>
		<category><![CDATA[email pipe]]></category>
		<category><![CDATA[osTicket]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[Trellis]]></category>

		<guid isPermaLink="false">http://stevejamesson.com/?p=124</guid>
		<description><![CDATA[I was trying to get email piping working on a RHEL server that runs Plesk (8.3), and I was having no luck. I just wanted to test out both the osTicket and Trellis support ticketing apps, but I had the toughest time getting either to work well on Plesk. I did finally get it working [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to get email piping working on a RHEL server that runs Plesk (8.3), and I was having no luck. I just wanted to test out both the <a href="http://osticket.com/" title="osTicket:: Open Source Support Ticket System">osTicket</a> and <a href="http://www.accord5.com/trellis" title="ACCORD5 | Trellis Desk">Trellis</a> support ticketing apps, but I had the toughest time getting either to work well on Plesk.</p>

<p>I did finally get it working for osTicket, both locally and remotely.
<span id="more-124"></span></p>

<p>You&#8217;ll need to modify your <code>/var/qmail/mailnames/[domain]/[address]/.qmail</code> file. By default, mine looked like this:</p>

<p><pre lang="xml">| true
./Maildir/</pre></p>

<p>To get piping working, all I did was add the following:</p>

<p><pre lang="xml">|true
|/path/to/pipe/handler.file.php
./Maildir/</pre></p>

<p>There were some gotchas:</p>

<ul>
<li><p>Make sure the handler file has executable permissions, and make sure that its full path has executable permissions.</p>

<p>So if your file is in</p>

<pre><code>/my/great/file.php
</code></pre>

<p>then my, great, and file.php will need executable permissions.</p></li>
<li><p>Some people said quotes were necessary around the piped command (i.e. <code>"|/path/to/pipe/handler.file.php"</code>) but I&#8217;m not using any, so I&#8217;m not sure that&#8217;s your biggest problem.</p></li>
</ul>

<p>Getting it working with osTicket took quite some time, but it seems to be working great now! I did find lots of info about how easily cPanel handles this type of thing; they offer a nice text input for pipe commands via the admin interface–how convenient!</p>

<p>Here&#8217;s a few other resources. They weren&#8217;t incredibly helpful, but they did eventually lead me in the right direction:</p>

<ul>
<li><a href="http://forum.swsoft.com/showthread.php?t=23690" title="Pipe incoming email to perl script - Parallels Server Products Forums">Pipe incoming email to perl script</a></li>
<li><a href="http://www.osticket.com/forums/showthread.php?t=69&amp;page=4" title="Email Piping does not work. - osTicket Forums">osTicket :: Email Piping does not work</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://stevejamesson.com/2008/05/13/plesk-email-pipingemail-pipe-osticket-trellis/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
