<?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>Alan Blaine Whitney &#187; unix</title>
	<atom:link href="http://www.alanblainewhitney.com/category/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alanblainewhitney.com</link>
	<description>Web Development</description>
	<lastBuildDate>Thu, 06 May 2010 18:06:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>gzip compression</title>
		<link>http://www.alanblainewhitney.com/2010/03/31/gzip-compression/</link>
		<comments>http://www.alanblainewhitney.com/2010/03/31/gzip-compression/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 19:15:43 +0000</pubDate>
		<dc:creator>Alan Whitney</dc:creator>
				<category><![CDATA[unix]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.alanblainewhitney.com/?p=154</guid>
		<description><![CDATA[A very typical sql file

~# mysqldump -u root -p db &#62; ~/sql
~# du -h sql 
45M	sql
~# gzip sql
~# du -h sql.gz 
11M	sql.gz

]]></description>
			<content:encoded><![CDATA[<p>A very typical sql file</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">~<span style="color: #666666; font-style: italic;"># mysqldump -u root -p db &gt; ~/sql</span>
~<span style="color: #666666; font-style: italic;"># du -h sql </span>
45M	sql
~<span style="color: #666666; font-style: italic;"># gzip sql</span>
~<span style="color: #666666; font-style: italic;"># du -h sql.gz </span>
11M	sql.gz</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.alanblainewhitney.com/2010/03/31/gzip-compression/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Server Admin Errors</title>
		<link>http://www.alanblainewhitney.com/2010/01/25/server-admin-errors/</link>
		<comments>http://www.alanblainewhitney.com/2010/01/25/server-admin-errors/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 15:08:35 +0000</pubDate>
		<dc:creator>Alan Whitney</dc:creator>
				<category><![CDATA[unix]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.alanblainewhitney.com/?p=135</guid>
		<description><![CDATA[Every sysadmin loves seeing these errors

hdd: dma_intr: status=0x51 &#123; DriveReady SeekComplete Error &#125;
hdd: dma_intr: error=0x40 &#123; UncorrectableError &#125;, LBAsect=95559021, sector=95559015
ide: failed opcode was: unknown
end_request: I/O error, dev hdd, sector 95559015
Buffer I/O error on device hdd1, logical block 11944869

]]></description>
			<content:encoded><![CDATA[<p>Every sysadmin loves seeing these errors</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">hdd: dma_intr: <span style="color: #007800;">status</span>=0x51 <span style="color: #7a0874; font-weight: bold;">&#123;</span> DriveReady SeekComplete Error <span style="color: #7a0874; font-weight: bold;">&#125;</span>
hdd: dma_intr: <span style="color: #007800;">error</span>=0x40 <span style="color: #7a0874; font-weight: bold;">&#123;</span> UncorrectableError <span style="color: #7a0874; font-weight: bold;">&#125;</span>, <span style="color: #007800;">LBAsect</span>=<span style="color: #000000;">95559021</span>, <span style="color: #007800;">sector</span>=<span style="color: #000000;">95559015</span>
ide: failed opcode was: unknown
end_request: I<span style="color: #000000; font-weight: bold;">/</span>O error, dev hdd, sector <span style="color: #000000;">95559015</span>
Buffer I<span style="color: #000000; font-weight: bold;">/</span>O error on device hdd1, logical block <span style="color: #000000;">11944869</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.alanblainewhitney.com/2010/01/25/server-admin-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recursive Find and Replace</title>
		<link>http://www.alanblainewhitney.com/2009/06/11/recursive-find-and-replace-2/</link>
		<comments>http://www.alanblainewhitney.com/2009/06/11/recursive-find-and-replace-2/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 18:34:29 +0000</pubDate>
		<dc:creator>Alan Whitney</dc:creator>
				<category><![CDATA[Tech Stuff]]></category>
		<category><![CDATA[getting it done]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.alanblainewhitney.com/?p=113</guid>
		<description><![CDATA[This works on most linux boxes.
find /path/to/start/from/ -type f &#124; xargs perl -pi -e &#8217;s/applicationX/applicationY/g&#8217;
]]></description>
			<content:encoded><![CDATA[<p>This works on most linux boxes.</p>
<p><span id="intelliTxt">find /path/to/start/from/ -type f | xargs perl -pi -e &#8217;s/applicationX/applicationY/g&#8217;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alanblainewhitney.com/2009/06/11/recursive-find-and-replace-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian reset timezone</title>
		<link>http://www.alanblainewhitney.com/2009/06/11/debian-reset-timezone/</link>
		<comments>http://www.alanblainewhitney.com/2009/06/11/debian-reset-timezone/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 14:17:17 +0000</pubDate>
		<dc:creator>Alan Whitney</dc:creator>
				<category><![CDATA[Tech Stuff]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[debian]]></category>

		<guid isPermaLink="false">http://www.alanblainewhitney.com/?p=111</guid>
		<description><![CDATA[dpkg-reconfigure tzdata
Command that resets the timezone accross the board on debian/ubuntu
]]></description>
			<content:encoded><![CDATA[<p>dpkg-reconfigure tzdata</p>
<p>Command that resets the timezone accross the board on debian/ubuntu</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alanblainewhitney.com/2009/06/11/debian-reset-timezone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian &amp; svn</title>
		<link>http://www.alanblainewhitney.com/2009/06/10/debian-svn/</link>
		<comments>http://www.alanblainewhitney.com/2009/06/10/debian-svn/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 20:19:05 +0000</pubDate>
		<dc:creator>Alan Whitney</dc:creator>
				<category><![CDATA[Tech Stuff]]></category>
		<category><![CDATA[getting it done]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://www.alanblainewhitney.com/?p=109</guid>
		<description><![CDATA[For those of you who just updated your Debian Lenny install and and had your subversion stop working, this is for you.  If you are getting this error:
svn: OPTIONS of 'http://dust.sephone.com/projects/mslha': could not connect to server (http://dust.sephone.com)
You need to put
http-library=serf
On the last line of ~/.subversion/servers
]]></description>
			<content:encoded><![CDATA[<p>For those of you who just updated your Debian Lenny install and and had your subversion stop working, this is for you.  If you are getting this error:</p>
<p><code>svn: OPTIONS of 'http://dust.sephone.com/projects/mslha': could not connect to server (http://dust.sephone.com)</code></p>
<p>You need to put</p>
<p><code>http-library=serf</code></p>
<p>On the last line of ~/.subversion/servers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alanblainewhitney.com/2009/06/10/debian-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force the Use of a domain</title>
		<link>http://www.alanblainewhitney.com/2008/03/07/force-the-use-of-a-domain/</link>
		<comments>http://www.alanblainewhitney.com/2008/03/07/force-the-use-of-a-domain/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 16:09:09 +0000</pubDate>
		<dc:creator>Alan Whitney</dc:creator>
				<category><![CDATA[Tech Stuff]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.alanblainewhitney.com/?p=22</guid>
		<description><![CDATA[Do you find yourself needing to redirect a website to use only one domain.  For example you have www.example.com, example.com, example1.com, www.example1.com, www.example2.com but you always what www.example.com to show up.
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule .? http://www.example.com%{REQUEST_URI} [R=301,L]
Here is a real world example.
# Use one domain

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.smbiz4me\.com$ [NC]
RewriteRule ^/(.*)$  http://www.smbiz4me.com/$1 [R=301,L]
]]></description>
			<content:encoded><![CDATA[<p>Do you find yourself needing to redirect a website to use only one domain.  For example you have www.example.com, example.com, example1.com, www.example1.com, www.example2.com but you always what www.example.com to show up.</p>
<p><code>RewriteEngine on<br />
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]<br />
RewriteRule .? http://www.example.com%{REQUEST_URI} [R=301,L]</code></p>
<p>Here is a real world example.</p>
<p># Use one domain<br />
<code><br />
RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^www\.smbiz4me\.com$ [NC]<br />
RewriteRule ^/(.*)$  http://www.smbiz4me.com/$1 [R=301,L]</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alanblainewhitney.com/2008/03/07/force-the-use-of-a-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recursive Find and Replace</title>
		<link>http://www.alanblainewhitney.com/2008/03/07/recursive-find-and-replace/</link>
		<comments>http://www.alanblainewhitney.com/2008/03/07/recursive-find-and-replace/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 15:17:40 +0000</pubDate>
		<dc:creator>Alan Whitney</dc:creator>
				<category><![CDATA[Tech Stuff]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://www.alanblainewhitney.com/?p=21</guid>
		<description><![CDATA[At my job, I often need to recursivly find and replace certain strings.  I always fumble around for the syntax, here is the syntax so I don&#8217;t forget
find ./ -type f -exec sed -i 's/ReplaceThis/WithThis/' {} \;
And you can add all of the custom stuff to find like name if you want, here is [...]]]></description>
			<content:encoded><![CDATA[<p>At my job, I often need to recursivly find and replace certain strings.  I always fumble around for the syntax, here is the syntax so I don&#8217;t forget</p>
<p><code>find ./ -type f -exec sed -i 's/ReplaceThis/WithThis/' {} \;</code></p>
<p>And you can add all of the custom stuff to find like name if you want, here is a real world example.</p>
<p><code>find ./ -name '*php' ! -name '.*' -exec sed -i 's/&lt;noindex follow&gt;/&lt;!--sphider_noindex--&gt;/' {} \;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alanblainewhitney.com/2008/03/07/recursive-find-and-replace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
