<?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>WeaponsGradeCode &#187; Computers</title>
	<atom:link href="http://weaponsgradecode.com/category/hardware-and-software-note/feed/" rel="self" type="application/rss+xml" />
	<link>http://weaponsgradecode.com</link>
	<description>Notes from the field...</description>
	<lastBuildDate>Tue, 12 Jul 2011 04:50:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>I Thought My CPU Fan Was Working Hard&#8230;</title>
		<link>http://weaponsgradecode.com/2011/07/12/i-thought-my-cpu-fan-was-working-hard/</link>
		<comments>http://weaponsgradecode.com/2011/07/12/i-thought-my-cpu-fan-was-working-hard/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 04:31:26 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://weaponsgradecode.com/?p=677</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div id="attachment_678" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/07/cpu.jpg"><img class="size-medium wp-image-678" title="Clogged CPU Heat Sink" src="http://weaponsgradecode.com/wp-content/uploads/2011/07/cpu-300x244.jpg" alt="Clogged CPU Heat Sink" width="300" height="244" /></a><p class="wp-caption-text">Clogged CPU Heat Sink</p></div>
]]></content:encoded>
			<wfw:commentRss>http://weaponsgradecode.com/2011/07/12/i-thought-my-cpu-fan-was-working-hard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Got My Replacement Asus P8P67 Pro Motherboard from Newegg</title>
		<link>http://weaponsgradecode.com/2011/03/16/got-my-replacement-asus-p8p67-pro-motherboard-from-newegg/</link>
		<comments>http://weaponsgradecode.com/2011/03/16/got-my-replacement-asus-p8p67-pro-motherboard-from-newegg/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 17:41:19 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://weaponsgradecode.com/?p=627</guid>
		<description><![CDATA[Fedex&#8217;d overnight with a free UPS return label. I got it installed and running within an hour. Here&#8217;s the new and old boxes. Note the new sections highlighted in red indicating the new revision. It shipped with the 1305 BIOS &#8230; <a href="http://weaponsgradecode.com/2011/03/16/got-my-replacement-asus-p8p67-pro-motherboard-from-newegg/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_628" class="wp-caption alignright" style="width: 202px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/03/IMG_0562.jpg"><img class="size-medium wp-image-628" title="Old and New Asus P8P67 Pro Motherboard Boxes" src="http://weaponsgradecode.com/wp-content/uploads/2011/03/IMG_0562-192x300.jpg" alt="Old and New Asus P8P67 Pro Motherboard Boxes" width="192" height="300" /></a><p class="wp-caption-text">Old and New Asus P8P67 Pro Motherboard Boxes</p></div>
<p>Fedex&#8217;d overnight with a free UPS return label. I got it installed and running within an hour. Here&#8217;s the new and old boxes. Note the new sections highlighted in red indicating the new revision. It shipped with the 1305 BIOS so I didn&#8217;t have to upgrade it.</p>
]]></content:encoded>
			<wfw:commentRss>http://weaponsgradecode.com/2011/03/16/got-my-replacement-asus-p8p67-pro-motherboard-from-newegg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recording MMS Streams with Mplayer</title>
		<link>http://weaponsgradecode.com/2011/03/04/recording-mms-streams-with-mplayer/</link>
		<comments>http://weaponsgradecode.com/2011/03/04/recording-mms-streams-with-mplayer/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 03:29:18 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://weaponsgradecode.com/?p=610</guid>
		<description><![CDATA[Sometimes open source really comes through. Here&#8217;s how to record MMS streams with mplayer: mplayer -dumpstream -dumpfile stream.wmv mms://&#60;URL&#62;]]></description>
			<content:encoded><![CDATA[<p>Sometimes open source really comes through. Here&#8217;s how to record MMS streams with mplayer:</p>
<p>mplayer -dumpstream -dumpfile stream.wmv mms://&lt;URL&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://weaponsgradecode.com/2011/03/04/recording-mms-streams-with-mplayer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My New Intel Sandy Bridge 2600k Computer</title>
		<link>http://weaponsgradecode.com/2011/02/16/my-new-intel-sandy-bridge-2600k-computer/</link>
		<comments>http://weaponsgradecode.com/2011/02/16/my-new-intel-sandy-bridge-2600k-computer/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 03:38:39 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://weaponsgradecode.com/?p=599</guid>
		<description><![CDATA[My MacBook Pro serves me well but I really wanted something with a little more horsepower, and the laptop&#8217;s always hooked up to 100 things so its not so easy to pick it up and move around. I&#8217;ve been looking &#8230; <a href="http://weaponsgradecode.com/2011/02/16/my-new-intel-sandy-bridge-2600k-computer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_600" class="wp-caption alignright" style="width: 160px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0293.jpg"><img class="size-thumbnail wp-image-600" title="Intel Sandy Bridge 2600k Computer" src="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0293-150x150.jpg" alt="Intel Sandy Bridge 2600k Computer" width="150" height="150" /></a><p class="wp-caption-text">Intel Sandy Bridge 2600k Computer</p></div>
<p>My MacBook Pro serves me well but I really wanted something with a little more horsepower, and the laptop&#8217;s always hooked up to 100 things so its not so easy to pick it up and move around. I&#8217;ve been looking at prices and options for a while and nothing&#8217;s struck my fancy until I saw the Intel Sandy Bridge 2600k processor. Easily overclocked and a good system only ran about $1000 with a hot new hard drive and reasonable graphics.<br />
This is the system I bought and a picture:</p>
<ul>
<li>Intel Core i7-2600K Sandy Bridge 3.4GHz (3.8GHz Turbo Boost) LGA 1155 95W Quad-Core Desktop Processor</li>
<li>ASUS P8P67 PRO LGA 1155 Intel P67 SATA 6Gb/s USB 3.0 ATX Intel Motherboard</li>
<li>G.SKILL Ripjaws Series 4GB (2 x 2GB) 240-Pin DDR3 SDRAM DDR3 1600</li>
<li>MSI N460GTX CYCLONE 1GD5/OC GeForce GTX 460 (Fermi) 1GB 256-bit GDDR5</li>
<li>Seagate Barracuda XT ST32000641AS 2TB 7200 RPM SATA 6.0Gb/s 3.5&#8243; Internal Hard Drive</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://weaponsgradecode.com/2011/02/16/my-new-intel-sandy-bridge-2600k-computer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intel Sandy Bridge 2600k and Cooler Master Hyper 212 Plus</title>
		<link>http://weaponsgradecode.com/2011/02/16/intel-sandy-bridge-2600k-and-cooler-master-hyper-212-plus/</link>
		<comments>http://weaponsgradecode.com/2011/02/16/intel-sandy-bridge-2600k-and-cooler-master-hyper-212-plus/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 22:32:24 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://weaponsgradecode.com/?p=582</guid>
		<description><![CDATA[Per a previous post I built a new computer using the Intel Sandy Bridge 2600k processor.  When I purchased the system it wasn&#8217;t clear if that trick tower CPU cooler would be included so I simply ordered the retail 2600k &#8230; <a href="http://weaponsgradecode.com/2011/02/16/intel-sandy-bridge-2600k-and-cooler-master-hyper-212-plus/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div style="float:right;"><iframe src="http://rcm.amazon.com/e/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=lokiproject-20&#038;o=1&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;asins=B002G1YPH0" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></div>
<p>Per a previous post I built a new computer using the Intel Sandy Bridge 2600k processor.  When I purchased the system it wasn&#8217;t clear if that trick tower CPU cooler would be included so I simply ordered the retail 2600k package and hoped for the best. A traditional flat cooler came with the unit. Here are the temperatures at idle and full load with the stock heat sink and without overclocking:</p>
<div id="attachment_593" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/02/beforeIdle.gif"><img class="size-medium wp-image-593" title="Intel Sandy Bridge 2600k and Stock Heatsink at Idle" src="http://weaponsgradecode.com/wp-content/uploads/2011/02/beforeIdle-300x252.gif" alt="Intel Sandy Bridge 2600k and Stock Heatsink at Idle" width="300" height="252" /></a><p class="wp-caption-text">Intel Sandy Bridge 2600k and Stock Heatsink at Idle</p></div>
<div id="attachment_592" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/02/beforeFull2.gif"><img class="size-medium wp-image-592" title="Intel Sandy Bridge 2600k and Stock Heatsink at Full Load" src="http://weaponsgradecode.com/wp-content/uploads/2011/02/beforeFull2-300x146.gif" alt="Intel Sandy Bridge 2600k and Stock Heatsink at Full Load" width="300" height="146" /></a><p class="wp-caption-text">Intel Sandy Bridge 2600k and Stock Heatsink at Full Load</p></div>
<p>This processor is supposed to overclock trivially so I thought I&#8217;d give it a try. Punching the processor up to 4.1GHz and running it flat out on the stock cooler brought temperatures up to 90 degrees. I wasn&#8217;t comfortable with that and bought the Cooler Master Hyper 212 Plus based on price and its reviews. Here are pictures of the unit:</p>
<div id="attachment_583" class="wp-caption alignnone" style="width: 255px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0323.jpg"><img class="size-medium wp-image-583" title="Cooler Master Hyper 212 Plus Box" src="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0323-245x300.jpg" alt="Cooler Master Hyper 212 Plus Box" width="245" height="300" /></a><p class="wp-caption-text">Cooler Master Hyper 212 Plus Box</p></div>
<div id="attachment_584" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0325.jpg"><img class="size-medium wp-image-584" title="Cooler Master Hyper 212 Plus Opened" src="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0325-300x249.jpg" alt="Cooler Master Hyper 212 Plus Opened" width="300" height="249" /></a><p class="wp-caption-text">Cooler Master Hyper 212 Plus Opened</p></div>
<div id="attachment_586" class="wp-caption alignnone" style="width: 263px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0330.jpg"><img class="size-medium wp-image-586" title="Cooler Master Hyper 212 Plus Back" src="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0330-253x300.jpg" alt="Cooler Master Hyper 212 Plus Back" width="253" height="300" /></a><p class="wp-caption-text">Cooler Master Hyper 212 Plus Back</p></div>
<div id="attachment_585" class="wp-caption alignnone" style="width: 206px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0327.jpg"><img class="size-medium wp-image-585" title="Cooler Master Hyper 212 Plus Side" src="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0327-196x300.jpg" alt="Cooler Master Hyper 212 Plus Side" width="196" height="300" /></a><p class="wp-caption-text">Cooler Master Hyper 212 Plus Side</p></div>
<div id="attachment_587" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0331.jpg"><img class="size-medium wp-image-587" src="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0331-300x234.jpg" alt="Cooler Master Hyper 212 Plus Parts" width="300" height="234" /></a><p class="wp-caption-text">Cooler Master Hyper 212 Plus Parts</p></div>
<p>Installation was a bit tricky but not too bad. You&#8217;ll need full access to the back of the Motherboard to install it.</p>
<p>Performance after installation was great. Here are the results:</p>
<div id="attachment_590" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/02/afterFull.gif"><img class="size-medium wp-image-590" title="Intel Sandy Bridge 2600k and Cooler Master Hyper 212 Plus Full No Overclock" src="http://weaponsgradecode.com/wp-content/uploads/2011/02/afterFull-300x147.gif" alt="Intel Sandy Bridge 2600k and Cooler Master Hyper 212 Plus Full No Overclock" width="300" height="147" /></a><p class="wp-caption-text">Intel Sandy Bridge 2600k and Cooler Master Hyper 212 Plus Full No Overclock</p></div>
<div id="attachment_594" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/02/overclocked.gif"><img class="size-medium wp-image-594" title="Intel Sandy Bridge 2600k and Cooler Master Hyper 212 Plus Full Overclocked" src="http://weaponsgradecode.com/wp-content/uploads/2011/02/overclocked-300x146.gif" alt="Intel Sandy Bridge 2600k and Cooler Master Hyper 212 Plus Full Overclocked" width="300" height="146" /></a><p class="wp-caption-text">Intel Sandy Bridge 2600k and Cooler Master Hyper 212 Plus Full Overclocked</p></div>
<p>The stock, retail cooling system really sucks. It works within the published specs but do not overclock the 2600k using it. Here&#8217;s the abysmal thermal transfer paste pattern after removing the heatsink. What a disaster.</p>
<div id="attachment_588" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0335.jpg"><img class="size-medium wp-image-588" title="Intel Sandy Bridge 2600k Stock Thermal Paste Pattern" src="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0335-300x225.jpg" alt="Intel Sandy Bridge 2600k Stock Thermal Paste Pattern" width="300" height="225" /></a><p class="wp-caption-text">Intel Sandy Bridge 2600k Stock Thermal Paste Pattern</p></div>
<div id="attachment_589" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0336.jpg"><img class="size-medium wp-image-589" title="Intel Sandy Bridge 2600k Stock Thermal Paste Pattern Heat Sink" src="http://weaponsgradecode.com/wp-content/uploads/2011/02/IMG_0336-300x286.jpg" alt="Intel Sandy Bridge 2600k Stock Thermal Paste Pattern Heat Sink" width="300" height="286" /></a><p class="wp-caption-text">Intel Sandy Bridge 2600k Stock Thermal Paste Pattern Heat Sink</p></div>
<p>The best part is the cooler fits nicely in my ThermalTake V3 case.</p>
]]></content:encoded>
			<wfw:commentRss>http://weaponsgradecode.com/2011/02/16/intel-sandy-bridge-2600k-and-cooler-master-hyper-212-plus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Growing A Huge XFS Volume</title>
		<link>http://weaponsgradecode.com/2010/11/19/growing-a-huge-xfs-volume/</link>
		<comments>http://weaponsgradecode.com/2010/11/19/growing-a-huge-xfs-volume/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 06:15:29 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Mythtv]]></category>

		<guid isPermaLink="false">http://weaponsgradecode.com/?p=507</guid>
		<description><![CDATA[K, I&#8217;ve got 4 2GB drives mirrored and welded together with LVM. I backed up everything on the old volume (twice in some cases). I deleted the old 6.5 TB Volume. That takes balls. I created a new 1.5TB mirror &#8230; <a href="http://weaponsgradecode.com/2010/11/19/growing-a-huge-xfs-volume/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>K, I&#8217;ve got 4 2GB drives mirrored and welded together with LVM. I backed up everything on the old volume (twice in some cases).</p>
<p>I deleted the old 6.5 TB Volume. That takes balls.</p>
<p>I created a new 1.5TB mirror with two drives and grew the new Volume with the command:</p>
<p>mdadm &#8211;create /dev/md3 &#8211;level=1 &#8211;raid-devices=2 /dev/sd[bc]2<br />
pvcreate /dev/md3<br />
vgextend  RaidDataGroup /dev/md3<br />
lvextend -l +5126 /dev/RaidDataGroup/RaidData<br />
xfs_growfs /Volumes/data</p>
<p>I&#8217;m now restoring the data.</p>
]]></content:encoded>
			<wfw:commentRss>http://weaponsgradecode.com/2010/11/19/growing-a-huge-xfs-volume/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building a New Massive MythTV Media Volume with RAID 1 and LVM.</title>
		<link>http://weaponsgradecode.com/2010/11/16/building-a-new-massive-mythtv-media-volume-with-raid-1-and-lvm/</link>
		<comments>http://weaponsgradecode.com/2010/11/16/building-a-new-massive-mythtv-media-volume-with-raid-1-and-lvm/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 06:46:43 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Mythtv]]></category>

		<guid isPermaLink="false">http://weaponsgradecode.com/?p=503</guid>
		<description><![CDATA[So I&#8217;ve got four new 2TB drives mirrored together in pairs with mdadm, then welded together with LVM. Here are the commands I used to execute the build. fdisk /dev/sdf # note the mdadm arguments below are prefixed with double &#8230; <a href="http://weaponsgradecode.com/2010/11/16/building-a-new-massive-mythtv-media-volume-with-raid-1-and-lvm/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/204972.jpg"><img class="alignleft size-full wp-image-504" title="204972" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/204972.jpg" alt="" width="297" height="239" /></a>So I&#8217;ve got four new 2TB drives mirrored together in pairs with mdadm, then welded together with LVM. Here are the commands I used to execute the build.</p>
<p>fdisk /dev/sdf</p>
<p># note the mdadm arguments below are prefixed with double dashes.</p>
<p>mdadm &#8211;create /dev/md1 &#8211;level=1 &#8211;raid-devices=2 /dev/sd[fh]1<br />
mdadm &#8211;create /dev/md2 &#8211;level=1 &#8211;raid-devices=2 /dev/sd[gi]1<br />
pvcreate /dev/md1<br />
pvcreate /dev/md2<br />
vgcreate -s 256M RaidDataGroup /dev/md1 /dev/md2<br />
lvcreate -l 14904 &#8211;name RaidData RaidDataGroup<br />
mkfs.xfs -i size=1024 /dev/RaidDataGroup/RaidData<br />
mkdir /Volumes/newdata<br />
mount /dev/RaidDataGroup/RaidData /Volumes/newdata</p>
]]></content:encoded>
			<wfw:commentRss>http://weaponsgradecode.com/2010/11/16/building-a-new-massive-mythtv-media-volume-with-raid-1-and-lvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Access a MSSQL Database with Perl Quickie</title>
		<link>http://weaponsgradecode.com/2010/11/15/aaccess-a-mssql-database-with-perl-quickie/</link>
		<comments>http://weaponsgradecode.com/2010/11/15/aaccess-a-mssql-database-with-perl-quickie/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 18:33:06 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Computers]]></category>

		<guid isPermaLink="false">http://weaponsgradecode.com/?p=499</guid>
		<description><![CDATA[use strict; use FindBin; use lib("e:\\re\\scripts\\lib"); use vars qw($opt_h); use Getopt::Std; use Util; use Logger; use DBI; use LWP::Simple; if (main()) { exit(0); # DOS Success Code } else { exit(1); # DOS Failure } sub main() { if (! &#8230; <a href="http://weaponsgradecode.com/2010/11/15/aaccess-a-mssql-database-with-perl-quickie/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><code><br />
use strict;<br />
use FindBin;<br />
use lib("e:\\re\\scripts\\lib");<br />
use vars qw($opt_h);<br />
use Getopt::Std;<br />
use Util;<br />
use Logger;<br />
use DBI;<br />
use LWP::Simple;</p>
<p>if (main()) {<br />
	exit(0); # DOS Success Code<br />
} else {<br />
	exit(1); # DOS Failure<br />
}</p>
<p>sub main() {</p>
<p>	if (! get_options()) {<br />
		log_error("Error getting options.");<br />
		return 0;<br />
	}</p>
<p>	if ($opt_h) {<br />
		usage();<br />
		return 1;<br />
	}</p>
<p>	my $dest_dsn_name = "pms";<br />
	my $dest_db = DBI->connect("dbi:ODBC:$dest_dsn_name", {'RaiseError' => 1, 'AutoCommit' => 0} );<br />
	# my $dest_db = DBI->connect("dbi:ODBC:$dest_dsn_name", $dest_user, $dest_password, {'RaiseError' => 1, 'AutoCommit' => 0} );<br />
	if ( ! $dest_db) {<br />
		log_error("Failed connecting to: " . $dest_db);<br />
		return 0;<br />
	}</p>
<p>	my $sql = "";<br />
	my @result_array = $dest_db->selectrow_array($sql);<br />
	my $url = $result_array[1] . $result_array[0];</p>
<p>	close (IN);</p>
<p>	$dest_db->disconnect();</p>
<p>	return 1;<br />
}</p>
<p>sub get_options() {<br />
	if ( ! getopts('h') ) {<br />
		log_error("Failed getting options.");<br />
		usage();<br />
		return 0;<br />
	}</p>
<p>	return 1;<br />
}</p>
<p>sub usage() {<br />
	print "Usage.\n";<br />
	return 1;<br />
}<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://weaponsgradecode.com/2010/11/15/aaccess-a-mssql-database-with-perl-quickie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Antec 650 MythTV Home Server</title>
		<link>http://weaponsgradecode.com/2010/11/07/antec-650-mythtv-home-server/</link>
		<comments>http://weaponsgradecode.com/2010/11/07/antec-650-mythtv-home-server/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 02:45:40 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Mythtv]]></category>

		<guid isPermaLink="false">http://weaponsgradecode.com/?p=493</guid>
		<description><![CDATA[Here&#8217;s the stats of the server and some gratuitous pictures: Intel Core 2 Duo E8500 Wolfdale 3.16GHz LGA 775 65W Dual-Core Processor BX80570E8500 Seagate Barracuda 7200.11 ST31500341AS 1.5TB 7200 RPM SATA 3.0Gb/s 3.5&#8243; Internal Hard Drive ASUS P5Q-E LGA 775 &#8230; <a href="http://weaponsgradecode.com/2010/11/07/antec-650-mythtv-home-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the stats of the server and some gratuitous pictures:</p>
<ul>
<li>Intel Core 2 Duo E8500 Wolfdale 3.16GHz LGA 775 65W Dual-Core Processor BX80570E8500</li>
<li>Seagate Barracuda 7200.11 ST31500341AS 1.5TB 7200 RPM SATA 3.0Gb/s 3.5&#8243; Internal Hard Drive</li>
<li>ASUS P5Q-E LGA 775 Intel P45 ATX Intel Motherboard</li>
<li>G.SKILL 4GB (2 x 2GB) 240-Pin DDR2 SDRAM DDR2 1066 (PC2 8500) Dual Channel Kit Desktop Memory Model F2-8500CL5D-4GBPK</li>
<li>ASUS EN6200LE/TC256/TD/64 GeForce 6200LE 256MB(64MB on Board) 32-bit DDR PCI Express x16 Video Card</li>
<li>COOLER MASTER Real Power Pro RS-750-ACAA-A1 750W ATX12V / EPS12V SLI Certified CrossFire Ready 80 PLUS Certified Active</li>
</ul>
<div id="attachment_494" class="wp-caption alignnone" style="width: 234px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/Antec_650_Drives.jpg"><img class="size-medium wp-image-494" title="Antec Titan 650 Drive View, with Cooler Master Module" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/Antec_650_Drives-224x300.jpg" alt="Antec Titan 650 Drive View, with Cooler Master Module" width="224" height="300" /></a><p class="wp-caption-text">Antec Titan 650 Drive View, with Cooler Master Module</p></div>
<div id="attachment_495" class="wp-caption alignnone" style="width: 234px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/Antec_650_Inside.jpg"><img class="size-medium wp-image-495" title="Antec Titan 650 Inside" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/Antec_650_Inside-224x300.jpg" alt="Antec Titan 650 Inside" width="224" height="300" /></a><p class="wp-caption-text">Antec Titan 650 Inside</p></div>
]]></content:encoded>
			<wfw:commentRss>http://weaponsgradecode.com/2010/11/07/antec-650-mythtv-home-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading the Antec Titan 650 Server With Rosewill 4 Channel PCIe to SATA II and 5.25 Drive Bay</title>
		<link>http://weaponsgradecode.com/2010/11/07/upgrading-the-antec-titan-650-server-with-rosewill-4-channel-pcie-to-sata-ii-and-5-25-drive-bay/</link>
		<comments>http://weaponsgradecode.com/2010/11/07/upgrading-the-antec-titan-650-server-with-rosewill-4-channel-pcie-to-sata-ii-and-5-25-drive-bay/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 02:04:20 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Mythtv]]></category>

		<guid isPermaLink="false">http://weaponsgradecode.com/?p=476</guid>
		<description><![CDATA[When I built this system two years ago I decided to span a volume across multiple large hard drives with LVM to get the storage capacity I wanted. I would also keep backups of everything I had so if even &#8230; <a href="http://weaponsgradecode.com/2010/11/07/upgrading-the-antec-titan-650-server-with-rosewill-4-channel-pcie-to-sata-ii-and-5-25-drive-bay/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When I built this system two years ago I decided to span a volume across multiple large hard drives with LVM to get the storage capacity I wanted. I would also keep backups of everything I had so if even one drive went bad and lost everything, I could restore from backups.</p>
<p>That decision&#8217;s been haunting me ever since. Sure I&#8217;ve got backups, but it&#8217;d take a while to get everything back the way it was&#8230;</p>
<p>So I&#8217;ve decided to rebuild the storage system using a collection of RAID 1 (mirrored) drives LVM&#8217;d together into a single volume. This should be better than RAID 5 in that the chances of a second read error on multiple massive 2GB drives when rebuilding is too great. With RAID 1, the chances of a successful recovery of a drive failure go up, of course, at the cost of more drives. I&#8217;ll continue to maintain backups though&#8230;</p>
<p>Oh yeah, what&#8217;s really driving this is one of my drives is indeed failing and I don&#8217;t have a good way of recovering.</p>
<p>So, the Antec 650 has six cooled, hard drive bays. I need a bunch more to maintain the current five drives, and add a bunch of new ones while I rebuild the storage system. So I started with the Cooler Master 4-in-3 Device Module STB-3T4-E3-GP. For $20 from Newegg it&#8217;s perfect. It uses three 5.25&#8243; bays in the Antec Titan 650 and provides four 3.5&#8243; cooled hard drive bays. Perfect.</p>
<div id="attachment_478" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_Box.jpg"><img class="size-medium wp-image-478 " title="CoolerMaster_DeviceModule_HardDrive_Chassis_Box" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_Box-300x212.jpg" alt="Cooler Master Device Module Hard Drive Chassis Box" width="300" height="212" /></a><p class="wp-caption-text">Cooler Master Device Module Hard Drive Chassis Box</p></div>
<div id="attachment_481" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_Packaging.jpg"><img class="size-medium wp-image-481" title="Cooler Master Device Module Hard Drive Chassis Packaging" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_Packaging-300x225.jpg" alt="Cooler Master Device Module Hard Drive Chassis Packaging" width="300" height="225" /></a><p class="wp-caption-text">Cooler Master Device Module Hard Drive Chassis Packaging</p></div>
<div id="attachment_483" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_RightSide.jpg"><img class="size-medium wp-image-483" title="Cooler Master Device Module Hard Drive Chassis Right Side" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_RightSide-300x260.jpg" alt="Cooler Master Device Module Hard Drive Chassis Right Side" width="300" height="260" /></a><p class="wp-caption-text">Cooler Master Device Module Hard Drive Chassis Right Side</p></div>
<div id="attachment_482" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_Parts.jpg"><img class="size-medium wp-image-482" title="Cooler Master Device Module Hard Drive Chassis Parts" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_Parts-300x225.jpg" alt="Cooler Master Device Module Hard Drive Chassis Parts" width="300" height="225" /></a><p class="wp-caption-text">Cooler Master Device Module Hard Drive Chassis Parts</p></div>
<div id="attachment_479" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_Fan.jpg"><img class="size-medium wp-image-479" title="Cooler Master Device Module Hard Drive Chassis Fan" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_Fan-300x280.jpg" alt="Cooler Master Device Module Hard Drive Chassis Fan" width="300" height="280" /></a><p class="wp-caption-text">Cooler Master Device Module Hard Drive Chassis Fan</p></div>
<div id="attachment_477" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_Angle.jpg"><img class="size-medium wp-image-477" title="Cooler Master Device Module Hard Drive Chassis Front" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_Angle-300x284.jpg" alt="Cooler Master Device Module Hard Drive Chassis Front" width="300" height="284" /></a><p class="wp-caption-text">Cooler Master Device Module Hard Drive Chassis Front</p></div>
<div id="attachment_485" class="wp-caption alignnone" style="width: 303px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_WithDrives.jpg"><img class="size-medium wp-image-485" title="Cooler Master Device Module Hard Drive Chassis With Drives" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_WithDrives-293x300.jpg" alt="Cooler Master Device Module Hard Drive Chassis With Drives" width="293" height="300" /></a><p class="wp-caption-text">Cooler Master Device Module Hard Drive Chassis With Drives</p></div>
<p>My motherboard only supported six SATA drives so I had to cheaply add four more SATA Ports. The Rosewill 4 Channel PCIe to SATA II Controller. I think it does some kind of RAID, but I&#8217;m just using it for the ports and let md and LVM in Linux to the Raid.</p>
<div id="attachment_486" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/Rosewill_4_Channel_PCIe_to_SATA_II_Box.jpg"><img class="size-medium wp-image-486" title="Rosewill 4 Channel PCIe to SATA II Box" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/Rosewill_4_Channel_PCIe_to_SATA_II_Box-300x185.jpg" alt="Rosewill 4 Channel PCIe to SATA II Box" width="300" height="185" /></a><p class="wp-caption-text">Rosewill 4 Channel PCIe to SATA II Box</p></div>
<div id="attachment_488" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/Rosewill_4_Channel_PCIe_to_SATA_II_Packing.jpg"><img class="size-medium wp-image-488" title="Rosewill 4 Channel PCIe to SATA II Packing" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/Rosewill_4_Channel_PCIe_to_SATA_II_Packing-300x179.jpg" alt="Rosewill 4 Channel PCIe to SATA II Packing" width="300" height="179" /></a><p class="wp-caption-text">Rosewill 4 Channel PCIe to SATA II Packing</p></div>
<div id="attachment_487" class="wp-caption alignnone" style="width: 310px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/Rosewill_4_Channel_PCIe_to_SATA_II_Card.jpg"><img class="size-medium wp-image-487" title="Rosewill 4 Channel PCIe to SATA II Card" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/Rosewill_4_Channel_PCIe_to_SATA_II_Card-300x228.jpg" alt="Rosewill 4 Channel PCIe to SATA II Card" width="300" height="228" /></a><p class="wp-caption-text">Rosewill 4 Channel PCIe to SATA II Card</p></div>
<p>Everything went in perfectly.</p>
<div id="attachment_490" class="wp-caption alignnone" style="width: 270px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/Empty_Antec_650.jpg"><img class="size-medium wp-image-490" title="Empty 5.25 Drive Bays in Antec Titan 650" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/Empty_Antec_650-260x300.jpg" alt="Empty 5.25 Drive Bays in Antec Titan 650" width="260" height="300" /></a><p class="wp-caption-text">Empty 5.25 Drive Bays in Antec Titan 650</p></div>
<div id="attachment_489" class="wp-caption alignnone" style="width: 234px"><a href="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_Installed_In_Antec_650.jpg"><img class="size-medium wp-image-489" title="Cooler Master Device Module Hard Drive Chassis Installed In Antec 650" src="http://weaponsgradecode.com/wp-content/uploads/2010/11/CoolerMaster_DeviceModule_HardDrive_Chassis_Installed_In_Antec_650-224x300.jpg" alt="Cooler Master Device Module Hard Drive Chassis Installed In Antec 650" width="224" height="300" /></a><p class="wp-caption-text">Cooler Master Device Module Hard Drive Chassis Installed In Antec 650</p></div>
<p>The first two Seagate Barracuda LP ST32000542AS 2TB 5900 RPM SATA 3.0Gb/s 3.5&#8243; drives have been in the system for a week running badblocks. Two Western Digital Caviar Green WD20EARS 2TB SATA 3.0Gb/s 3.5&#8243; Internal Hard drives will be here next week. I&#8217;ll run bad blocks on them, then start rebuilding the storage system. The first configuration will be these four 2GB drives in RAID 0 for 4GB of storage and as I migrate data off the old drives I&#8217;ll add another four 1.5 GB drives in the same configuration.</p>
]]></content:encoded>
			<wfw:commentRss>http://weaponsgradecode.com/2010/11/07/upgrading-the-antec-titan-650-server-with-rosewill-4-channel-pcie-to-sata-ii-and-5-25-drive-bay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

