<?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>VinceStross.com &#187; The Inter-Web</title>
	<atom:link href="http://www.vincestross.com/category/the-inter-web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vincestross.com</link>
	<description>Chronicles of a Web Master</description>
	<lastBuildDate>Mon, 10 Aug 2009 17:19:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Convert VHS to Apple TV</title>
		<link>http://www.vincestross.com/2009/04/convert-vhs-to-apple-tv/</link>
		<comments>http://www.vincestross.com/2009/04/convert-vhs-to-apple-tv/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 02:13:52 +0000</pubDate>
		<dc:creator>vstross</dc:creator>
				<category><![CDATA[The Inter-Web]]></category>

		<guid isPermaLink="false">http://www.vincestross.com/?p=40</guid>
		<description><![CDATA[<p>In this guide I&#8217;ll walk through converting a VHS tape to Apple TV (H.264 @ 720 x 480).</p>
<p>I purchased the Elgato EyeTV 250 Plus Digital TV Recorder from an Apple Store for about $200. I&#8217;ve had a great experience with this device. I&#8217;m sure there are far superior solutions out there (especially for the Mac), [...]]]></description>
			<content:encoded><![CDATA[<p>In this guide I&#8217;ll walk through converting a VHS tape to Apple TV (H.264 @ 720 x 480).</p>
<p><img class="alignright size-full wp-image-112" style="border: 0pt none;" title="EyeTV 3 Controller" src="http://www.vincestross.com/wp-content/uploads/eyetv_controller.jpg" alt="" width="154" height="272" />I purchased the <a title="Elgato EyeTV 250 Plus at Apple.com" href="http://store.apple.com/us/product/TR373LL/A" target="_blank">Elgato EyeTV 250 Plus Digital TV Recorder</a> from an Apple Store for about $200. I&#8217;ve had a great experience with this device. I&#8217;m sure there are far superior solutions out there (especially for the Mac), but in the &#8220;bang for buck&#8221; category this is a great option!</p>
<p>This device can also be used for hooking-up just about any video source. I&#8217;ve recorded straight from camcorders, HD antennas, PS2, etc. Anything you can get into a set of composite cables or S-Video will require just about the same steps as recording from a VCR.</p>
<p>Converting an old copy of Happy Gilmore from VHS just happens to be what I was doing when I felt inspired to share. <img src='http://www.vincestross.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><strong>Hardware Used:</strong></p>
<ol>
<li> MacBook Pro (2.4 GHz Intel Core 2 Duo w/ 4 GB memory) running OS X 10.5.6 (Leopard)</li>
<li> EyeTV 250 Plus (Elgato) (Connected via USB 2.0)</li>
<li> Hi-Fi Stereo VCR (Connected via Composite cables or RF Adapter)</li>
</ol>
<p><strong>Software Used:</strong></p>
<ol>
<li>EyeTV 3.1.1 (included with the Elgato)</li>
<li>iTunes</li>
</ol>
<p><strong>The following assumes that you&#8217;ve properly installed / setup and tested the Elgato and EyeTV Plus  v3.1 or higher:<br />
</strong></p>
<ol>
<li>Plug-in the power for the Elgato, once the blue light comes on, plug-in the USB connector.</li>
<li> Start the EyeTV program</li>
<li> Switch the input source to Composite (Ctrl + V)</li>
<li> Power-on the VCR and insert the VHS tape.</li>
<li> Let the tape play until it&#8217;s at the spot where you want to record.</li>
<li> Rewind the tape for about 5 seconds.</li>
<li> Reset the timer for EyeTV  (Command + L)</li>
<li> Start the recording in EyeTV (Command + R)</li>
<li> Press play on the VCR</li>
<li> Sit back and enjoy the show (or you can hide EyeTV without disturbing the recording)</li>
<li> Stop the recording when ready (Command + R)</li>
<li> Press STOP on the VCR</li>
<li> Open the EyeTV Programs Window (Ctrl + P)</li>
<li> Edit the Info for your recording</li>
<li> Ctrl-Click (or right-click) the recording in the list and choose &#8220;Export&#8230;&#8221;</li>
<li> Set the Format to &#8220;Apple TV&#8221;</li>
<li> Choose your &#8220;Desktop&#8221; as the location to save the file, then click &#8220;Save&#8221; and wait a while.</li>
<li> Once the export is finished, open iTunes</li>
<li> Drag the file into your library</li>
<li> Voila!</li>
</ol>
<p><strong>Convert to Apple Universal for playback on all apple devices using HandBrake:</strong></p>
<p>HandBrake is a free application available here. This program can be used to convert the .eyetv file to an Apple Universal format file which iTunes will convert to play on iPhone, iPod, Apple TV, etc. The following steps assume you&#8217;ve already downloaded and installed HandBrake.</p>
<ol>
<li>Complete steps 1 &#8211; 12 above</li>
<li>Quit EyeTV</li>
<li>Open HandBrake</li>
<li>Select the .eyetv file generated by EyeTV (located in &#8220;~/Documents/EyeTV Archive&#8221; by default)</li>
<li>Once HandBrake has finished analyzing the file, click the &#8220;Toggle Presets&#8221; button at the top right of the window</li>
<li>Selected Apple -&gt; Universal</li>
<li>Click &#8220;Start&#8221; in the toolbar at the top of the window</li>
<li>A 1.5 hour recording will take about 1.5 &#8211; 2.0 hours to convert</li>
<li>Once the conversion is finished, follow steps 18 &#8211; 20 above</li>
</ol>
<p><strong>Random tips:</strong></p>
<ol>
<li>If the picture appears darker than it should be, the brightness can be adjusted in Preferences -&gt; Devices. Click on the &#8220;Picture&#8221; tab to adjust various elements. I&#8217;ve had good results around +35 brightness).</li>
<li>An Encoding of &#8220;Standard (DVD 120 min)&#8221; produces a good enough picture to capture the &#8220;quality&#8221; of a VHS tape. This is adjusted in the Preferences -&gt; Devices panel under the &#8220;Encoding&#8221; tab.</li>
<li>If you want to hide EyeTV and do other things while recording without hearing the audio, the sound can be disabled when EyeTV is in the background and/or in the Dock via the Preferences -&gt; Sound panel.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.vincestross.com/2009/04/convert-vhs-to-apple-tv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade an EC2 Instance from 2.6.16 to 2.6.18</title>
		<link>http://www.vincestross.com/2009/04/upgrade-an-ec2-instance/</link>
		<comments>http://www.vincestross.com/2009/04/upgrade-an-ec2-instance/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 02:52:38 +0000</pubDate>
		<dc:creator>vstross</dc:creator>
				<category><![CDATA[The Inter-Web]]></category>

		<guid isPermaLink="false">http://www.vincestross.com/?p=25</guid>
		<description><![CDATA[<p>I&#8217;ve  been using the Amazon Elastic Computing Cloud (EC2) for running our web servers at NetCrafters for almost a year now. It&#8217;s been an amazing experience and I&#8217;ve kept a detailed account of many of the lessons learned.</p>
<p>The most recent challenge came when our servers just started locking-up for no reason. The sites would [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve  been using the <a href="http://aws.amazon.com/ec2/">Amazon Elastic Computing Cloud</a> (EC2) for running our web servers at <a href="http://www.netcrafters.com">NetCrafters</a> for almost a year now. It&#8217;s been an amazing experience and I&#8217;ve kept a detailed account of many of the lessons learned.</p>
<p><a href="http://aws.amazon.com/"><img class="alignright size-full wp-image-34" title="Amazon Web Services" src="http://www.vincestross.com/wp-content/uploads/logo_aws.gif" alt="Amazon Web Services" width="164" height="60" /></a>The most recent challenge came when our servers just started locking-up for no reason. The sites would still be responding so we knew the LAMP stack was still limping along, but they were completely unresponsive via SSH. The only way to regain control was to issue a reboot through the Amazon API command line tools. Even this would sometimes take two or three times before the server would cycle.</p>
<p>Once I was able to login again, and look through the logs, there was absolutely <em><strong>nothing</strong></em> to go on&#8230;. until finally the server completely locked-up. Apache was not responding and we could not open a secure shell. Once the server was rebooted and came back up,  there was an error in /var/log/dmesg:</p>
<p><code>...<br />
kernel BUG at arch/i386/mm/pgtable-xen.c:306!<br />
...<br />
</code></p>
<p>Unfortunately it seems that very few people are able to get this message because they are never able to recover the server once it happens. I was lucky and had this tiny shred of evidence to go on. After hours of searching I finally found that the kernel our instances were using (2.6.16) had been declared unstable for large CPU instance types. Originally these instances were started as m1.small and I had indeed converted them to c1.medium instances.</p>
<p><strong>The Solution:</strong> Upgrade from the 2.6.16 kernel to the 2.6.18 (to be exact: vmlinuz-2.6.18-xenU-ec2-v1.0). Unfortunately, this too is a hard to find procedure, thus the long awaited point of this article:</p>
<p style="text-align: center;">
<p style="text-align: center;"><strong>How to Upgrade an EC2 Instance to 2.6.18 from 2.6.16</strong></p>
<p>First, I recommend reading about <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1345">Amazon EC2 User Selectable Kernels</a>. I will outline the steps I took here, but if you want to know what you&#8217;re doing (versus just typing exactly what I tell you to!), please read at least the first paragraph or so then come back.</p>
<p>You&#8217;ll need the latest API and AMI tools installed on the instance, if you don&#8217;t know how to do that, search the <a href="http://developer.amazonwebservices.com/connect/forum.jspa?forumID=30">AWS developer forums</a>. There are plenty of tutorials already there, however, if you&#8217;re running Debian, there is a great post on the forums <a href="http://developer.amazonwebservices.com/connect/message.jspa?messageID=50369">here</a> for installing the AMI tools as a Debian package (this worked flawlessly for me).</p>
<ul style="list-style-type: disc">
<li>API Tools: <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&amp;categoryID=251">download here</a></li>
<li>AMI Tools: <a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=368&amp;categoryID=251">download here</a></li>
</ul>
<p>Start by launching your instance from your existing AMI image (I&#8217;ll be using an arbitrary AMI: ami-99999999 as an example. Be sure to replace with your registered AMI), using the new Kernel (specified by the &#8211;kernel aki-9b00e5f2 directive), and the appropriate RAM disk (specified by the &#8211;ramdisk ari-67b95e0e).</p>
<p><code><br />
ec2-run-instances ami-99999999 -k  gsg-keypair --kernel aki-9b00e5f2 --ramdisk ari-67b95e0e -t c1.medium<br />
</code></p>
<p>This will start a new instance, using the vmlinuz-2.6.18-xenU-ec2-v1.0.i386 kernel (aki-9b00e5f2) and the initrd-2.6.18-xenU-ec2-v1.0.i386 RAM disk (ari-67b95e0e). These are both for a 32-bit instance, if you&#8217;re running 64-bit instances, you&#8217;ll want to use aki-9800e5f1 for the kernel and ari-64b95e0d for the RAM disk. You can see the list of AMI, ARI, and AKI available by issuing the following command:</p>
<p><code><br />
ec2-describe-images -o amazon<br />
</code></p>
<p>The -t c1.medium is used to describe the instance type (number of processors, RAM, etc). There are others available:</p>
<ul style="list-style-type: disc">
<li><a href="http://developer.amazonwebservices.com/connect/kbclick.jspa?categoryID=100&amp;externalID=993&amp;searchID=1400857">Regular Instance Types</a></li>
<li><a href="http://developer.amazonwebservices.com/connect/kbclick.jspa?categoryID=112&amp;externalID=1535&amp;searchID=1400857">High-CPU Instance Types</a></li>
</ul>
<p>Once the instance is up and running, login via SSH and we&#8217;ll need to install the new Kernel modules:</p>
<p>First verify you&#8217;re actually running the new kernel:</p>
<p><code><br />
ec2# uname -a<br />
2.6.18-xenU-ec2-v1.0<br />
</code></p>
<p>Then, install the new kernel modules:</p>
<p><code><br />
cd /usr/local/src<br />
wget <a href="http://ec2-downloads.s3.amazonaws.com/ec2-modules-2.6.18-xenU-ec2-v1.0-i686.tgz">http://ec2-downloads.s3.amazonaws.com/ec2-modules-2.6.18-xenU-ec2-v1.0-i686.tgz</a><br />
tar xzf ec2-modules-2.6.18-xenU-ec2-v1.0-i686.tgz -C /<br />
modprobe -l<br />
</code></p>
<p>Next, we need to install udev. You may not need to do this, but we are running Debian servers and udev is required to make the new image bootable. Otherwise, none of the devices will mount and the new image will just hang at boot. This is really easy though:</p>
<p><code><br />
apt-get dselect-upgrade<br />
apt-get install udev<br />
# prevent udev from keeping its old ip-adress<br />
rm /etc/udev/rules.d/z25_persistent-net.rules<br />
</code></p>
<p>Next step is to rebundle and register your new image. The new image will use the 2.6.18 kernel and RAM disk by default. If you&#8217;re a bit rusty on this process, I recommend the <a href="http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/">EC2 Getting Started Guide</a>. Once you&#8217;ve done this, launching the newly registered AMI will launch your instance with the new 2.6.18 kernel and RAM disk.</p>
<p><strong>NOTE:</strong> Each time you rebundle, you&#8217;ll need to re-issue the following command or udev will keep it&#8217;s IP address and the new image will not get a new IP via DHCP at first boot:</p>
<p><code># prevent udev from keeping its old ip-address<br />
rm /etc/udev/rules.d/z25_persistent-net.rules<br />
</code></p>
<p>I wrote this a week or so after actually doing it, so I&#8217;m going mainly from rough notes and memory. If you&#8217;re having a specific error while working through this, let me know and it&#8217;ll probably knock something loose and I&#8217;ll have an answer for you. This took nearly 10 hours to aggregate the steps for making this work. Once you have the steps in place though it only takes about 10 minutes. I sure hope to save someone else all that trouble.</p>
<p>Resources:</p>
<ol style="list-style-type: decimal">
<li><a href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1345">Amazon EC2 User Selectable Kernels</a></li>
<li><a href="http://www.jamesmurty.com/2008/04/29/programming-ec2-version-2008-02-01/">Programming Amazon EC2 (version 2008-09-01)</a></li>
<li>Forum: <a href="http://developer.amazonwebservices.com/connect/thread.jspa?threadID=20829&amp;tstart=15">AMI does not boot</a> (post: j0nes2k, April 4, 2008 @ 5:25 am PDT)</li>
<li>Forum: <a href="http://developer.amazonwebservices.com/connect/message.jspa?messageID=50369">Installing ec2-ami-tools as a Debian package</a> (post: Stephen Caudill, Dec 27, 2006 @ 8:26am PST)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.vincestross.com/2009/04/upgrade-an-ec2-instance/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
