<?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>Daniel McOrmond &#187; How-To</title>
	<atom:link href="http://danielmcormond.com/category/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://danielmcormond.com</link>
	<description>New York</description>
	<lastBuildDate>Wed, 14 Sep 2011 16:06:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP &#8220;memory_limit&#8221; and OpenX DreamHost One-Click Install</title>
		<link>http://danielmcormond.com/2011/03/16/php-memory_limit-and-openx-dreamhost-one-click-install/</link>
		<comments>http://danielmcormond.com/2011/03/16/php-memory_limit-and-openx-dreamhost-one-click-install/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 19:31:35 +0000</pubDate>
		<dc:creator>Daniel McOrmond</dc:creator>
				<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://danielmcormond.com/?p=605</guid>
		<description><![CDATA[DreamHost offers OpenX as a one-click install. Unfortunately, it wasn&#8217;t entirely that easy for me. The OpenX installer choked because the memory limit for PHP wasn&#8217;t high enough for it&#8217;s liking. The fix for this is pretty simple: Make sure your domain is running PHP 5.3. Create the directories ~/.php/5.3/ and a file called ~/.php/5.3/phprc [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.dreamhost.com/r.cgi?467109">DreamHost</a> offers <a href="http://www.openx.org/">OpenX</a> as a one-click install. Unfortunately, it wasn&#8217;t entirely that easy for me.</p>
<p>The OpenX installer choked because the memory limit for PHP wasn&#8217;t high enough for it&#8217;s liking. The fix for this is pretty simple:</p>
<p>Make sure your domain is running PHP 5.3. Create the directories <strong>~/.php/5.3/</strong> and a file called <strong>~/.php/5.3/phprc</strong></p>
<p>In your phprc, just add <strong>memory_limit = 128M</strong> to appease the cranky OpenX installer.</p>
<p>Run a `<em>killall php53.cgi</em>` to make PHP pick up your new settings, and retry the OpenX installer. It should work normally from there.</p>
]]></content:encoded>
			<wfw:commentRss>http://danielmcormond.com/2011/03/16/php-memory_limit-and-openx-dreamhost-one-click-install/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Use Microsoft IE VPC Images with VirtualBox on Mac OS X</title>
		<link>http://danielmcormond.com/2011/02/21/how-to-use-microsoft-ie-vpc-images-with-virtualbox-on-mac-os-x/</link>
		<comments>http://danielmcormond.com/2011/02/21/how-to-use-microsoft-ie-vpc-images-with-virtualbox-on-mac-os-x/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 20:14:29 +0000</pubDate>
		<dc:creator>Daniel McOrmond</dc:creator>
				<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://danielmcormond.com/?p=580</guid>
		<description><![CDATA[I recently learned about the Virtual PC images that Microsoft offers for testing web applications. There are several downloads available that come packaged with various versions of Internet Explorer. With a little bit of work, but you can get these running in VirtualBox on Mac OS X. Acquire Things you&#8217;ll need: Wine VirtualBox 4.0.4 Intel PRO/1000 [...]]]></description>
			<content:encoded><![CDATA[<p>I recently learned about the <a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=21eabb90-958f-4b64-b5f1-73d0a413c8ef&amp;displaylang=en">Virtual PC images</a> that Microsoft offers for testing web applications. There are several downloads available that come packaged with various versions of Internet Explorer. With a little bit of work, but you can get these running in <a href="http://www.virtualbox.org/">VirtualBox</a> on Mac OS X.</p>
<h1>Acquire</h1>
<p>Things you&#8217;ll need:</p>
<ul>
<li><a href="http://www.winehq.org/download/">Wine</a></li>
<li><a href="http://www.virtualbox.org/wiki/Downloads">VirtualBox 4.0.4</a></li>
<li><a href="http://downloadcenter.intel.com/confirm.aspx?httpDown=http://downloadmirror.intel.com/18717/eng/PROWin32.exe&amp;lang=eng&amp;Dwnldid=18717&amp;ProductID=871">Intel PRO/1000 drivers</a></li>
<li><a href="http://en.wikipedia.org/wiki/Disk_Utility">Disk Utility</a> (comes with Mac OS X)</li>
<li><a href="http://wakaba.c3.cx/s/apps/unarchiver.html">The Unarchiver</a></li>
</ul>
<p>I used the Windows XP versions because they&#8217;re smaller and easier to get running. Download any or all of these images:</p>
<div id="_mcePaste">
<ul>
<li><a href="http://www.microsoft.com/downloads/info.aspx?na=46&amp;SrcFamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&amp;SrcDisplayLang=en&amp;u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2fB%2f7%2f2%2fB72085AE-0F04-4C6F-9182-BF1EE90F5273%2fXPSP3-IE6.EXE">XPSP3-IE6.EXE</a></li>
<li><a href="http://www.microsoft.com/downloads/info.aspx?na=46&amp;SrcFamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&amp;SrcDisplayLang=en&amp;u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2fB%2f7%2f2%2fB72085AE-0F04-4C6F-9182-BF1EE90F5273%2fXPSP3-IE7.EXE">XPSP3-IE7.EXE</a></li>
<li><a href="http://www.microsoft.com/downloads/info.aspx?na=46&amp;SrcFamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&amp;SrcDisplayLang=en&amp;u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2fB%2f7%2f2%2fB72085AE-0F04-4C6F-9182-BF1EE90F5273%2fXPSP3-IE8.EXE">XPSP3-IE8.EXE</a></li>
</ul>
</div>
<h1>Install</h1>
<p>Install Wine, VirtualBox, and The Unarchiver.</p>
<h1>Extract</h1>
<p>Open and run the XPSP3-IE*.EXE file(s) you downloaded from Microsoft using Wine. You can place the extracted files wherever you want.</p>
<p>Extract the PROWin32.exe file you downloaded from Intel using The Unarchiver application.</p>
<h1>Prepare Drivers</h1>
<p>Run the Disk Utility application (Applications -&gt; Utilities -&gt; Disk Utility) and create a new disk image (File -&gt; New -&gt; Disk Image from Folder).</p>
<p>Select the PROWin32 folder which you created when you extracted the download from Intel.</p>
<p>Save the disk image as (Image Format: DVD/CD master) with (Encryption: none). You can save it whatever you want, but you should end up with a PROWin32.cdr file.</p>
<p>Run this command to convert the .cdr file to a Windows compatible .iso with this command:</p>
<pre>hdiutil makehybrid -iso -joliet -o /full/path/to/PROWin32.iso /full/path/to/PROWin32.cdr</pre>
<h1>Create</h1>
<p>Run VirtualBox and create a new virtual machine. Tell it to &#8216;Use existing hard disk&#8217; and select the .vhd file you downloaded and extracted from Microsoft. <strong>Don&#8217;t start up the virtual machine yet</strong>.</p>
<blockquote><p>Note: the .vhd files from Microsoft all share the same UUID. So, if you want to use more than one image, you have to change the UUID of the subsequent images. You can do this with the following command:</p>
<pre>VBoxManage internalcommands sethduuid /full/path/to/IE7Compat.vhd</pre>
</blockquote>
<p>Before you start up your virtual machine, edit the settings and change Network -&gt; Adapter 1 -&gt; Advanced -&gt; Network Adapter Type to <em>Intel PRO/1000 MT Desktop (82540EM)</em>.</p>
<p>Make sure that System Preferences -&gt; Keyboard -&gt; &#8216;Use all F1, F2, etc. keys as standard function keys&#8217; is checked, otherwise you might start playing iTunes when you try to boot into safe mode.</p>
<h1>Start</h1>
<p>Start up the virtual machine, and push F8 repeatedly before the Windows logo appears. When the boot menu appears select to boot into Safe Mode with Command Prompt.</p>
<p>Cancel all the driver installation dialog boxes that pop up. Yes, it&#8217;s very annoying.</p>
<p>Make the Intel drivers available by clicking on Devices -&gt; CD/DVD Devices -&gt; Choose a virtual CD/DVD disk file&#8230; and selecting the .iso you created earlier.</p>
<p>Run the <strong>explorer</strong> command in the command prompt to get access to the Start menu.</p>
<p>Open the Device Manger by clicking Start -&gt; right clicking on My Computer -&gt; Properties -&gt; Hardware tab -&gt; Device Manager.</p>
<p>Find the Ethernet Controller device and right click on it and select Update Driver&#8230; It should automatically detect the virtual CD you just mounted and install the Intel Drivers from that.</p>
<p>After you&#8217;ve installed the driver you can reboot the virtual machine and allow it to boot normally.</p>
<h1>Activate</h1>
<p>Because we&#8217;ve changed so much of the virtual underlying hardware, Windows wants to reactivate. Now that you&#8217;ve got network connectivity, just click Yes and tell it to activate Windows over the internet.</p>
<h1>Guest Additions</h1>
<p>At this point you can install the VirtualBox Guest Additions, which will help correct some things like the display driver.</p>
<p>You may still have a few bothersome missing driver pop-ups which can be solved by disabling hardware in VirtualBox settings, removing devices from Device Manger, or finding the missing drivers as necessary.</p>
<h1>Thanks</h1>
<p>Thanks to <a href="http://twitter.com/travis">Travis</a> for teaching me about the Microsoft VPC images! Also, I couldn&#8217;t have figured this all out without this <a href="http://r0b0tz.com/2011/02/using-microsofts-ie6-ie7-ie8-vhd-virtual-pc-images-with-virtualbox/">helpful blog post from R0B0TZ</a>,and <a href="http://www.makeuseof.com/tag/how-to-create-windows-compatible-iso-disc-images-in-mac-os-x/">this tip from MakeUseOf</a>.</p>
<p>Let me know if you find this post helpful or if I missed any steps. I&#8217;ll try my best to answer any questions in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://danielmcormond.com/2011/02/21/how-to-use-microsoft-ie-vpc-images-with-virtualbox-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>How To Use MongoDB and PHP 5.3 on DreamHost</title>
		<link>http://danielmcormond.com/2010/12/20/how-to-use-mongodb-and-php-5-3-on-dreamhost/</link>
		<comments>http://danielmcormond.com/2010/12/20/how-to-use-mongodb-and-php-5-3-on-dreamhost/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 21:23:34 +0000</pubDate>
		<dc:creator>Daniel McOrmond</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://danielmcormond.com/?p=551</guid>
		<description><![CDATA[Phillip Napieralski wrote a helpful post about How to Setup MongoDB PHP Extension on Shared Hosting earlier this year. Here are some more specific details about how to get the MongoDB driver working with PHP 5.3 on DreamHost. First, make sure the PHP mode for your domain is set to PHP 5.3 FastCGI in your [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.pnapieralski.com/">Phillip Napieralski</a> wrote a helpful post about <a href="http://blog.pnapieralski.com/mongodb/how-to-setup-mongodb-php-extension-on-shared-hosting/">How to Setup MongoDB PHP Extension on Shared Hosting</a> earlier this year.</p>
<p>Here are some more specific details about how to get the <a href="http://www.mongodb.org/">MongoDB</a> driver working with PHP 5.3 on <a href="http://www.dreamhost.com/r.cgi?467109">DreamHost</a>.</p>
<p>First, make sure the PHP mode for your domain is set to <em>PHP 5.3 FastCGI</em> in your DreamHost Web Panel.</p>
<p>SSH to your server and download the latest MongoDB PHP driver:</p>
<p><code>wget http://download.github.com/mongodb-mongo-php-driver-1.1.0-0-g6eab09c.tar.gz</code></p>
<p>Extract the source code:</p>
<p><code>tar zxvf mongodb-mongo-php-driver-1.1.0-0-g6eab09c.tar.gz</code></p>
<p>Change directories:</p>
<p><code>cd mongodb-mongo-php-driver-b177907</code></p>
<p>Run phpize using 5.3:</p>
<p><code>phpize-5.3</code></p>
<p>Configure using PHP 5.3</p>
<p><code>./configure --with-php-config=/usr/local/php53/bin/php-config</code></p>
<p>Compile:</p>
<p><code>make</code></p>
<p>You should now have a compiled <em>mongo.so</em> extension in the <em>modules/</em> folder.</p>
<p>Setup your domain(s) to use a custom php.ini file <a href="http://wiki.dreamhost.com/PHP.ini">following DreamHost&#8217;s instructions here</a>.</p>
<p>When you&#8217;re creating your script wrapper, make sure you use the PHP 5.3 executable. My php-wrapper.fcgi looks like this:</p>
<p><code>#!/bin/sh<br />
exec /dh/cgi-system/php53.cgi $*</code></p>
<p>Finally, add the following lines to your custom php.ini</p>
<p><code>extension_dir = "/full/path/to/your/mongodb-mongo-php-driver-b177907/modules"<br />
extension = mongo.so</code></p>
<p>Obviously, replace the path above to match the full path to your <em>modules/</em> directory. You should now see the <em>mongo</em> extension listed when you run a <em>phpinfo()</em>.</p>
<p>Let me know how this works for you in the comments below!</p>
<p>Note: These instructions work well for connecting to a hosted instance of MongoDB, <a href="http://mongohq.com/">like MongoHQ</a>. DreamHost terms of service prevent you from running your own MongoDB service on a shared hosting plan. In order to run a legitimate MongoDB server, you&#8217;ll probably need to upgrade to a DreamHost VPS.</p>
]]></content:encoded>
			<wfw:commentRss>http://danielmcormond.com/2010/12/20/how-to-use-mongodb-and-php-5-3-on-dreamhost/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A Bear Riding in a Taxi</title>
		<link>http://danielmcormond.com/2009/03/23/a-bear-riding-in-a-taxi/</link>
		<comments>http://danielmcormond.com/2009/03/23/a-bear-riding-in-a-taxi/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 23:05:27 +0000</pubDate>
		<dc:creator>Daniel McOrmond</dc:creator>
				<category><![CDATA[How-To]]></category>

		<guid isPermaLink="false">http://danielmcormond.com/2009/03/23/a-bear-riding-in-a-taxi/</guid>
		<description><![CDATA[This bear does whatever he wants.]]></description>
			<content:encoded><![CDATA[<p>This bear does whatever he wants.<br />
<img src="http://danielmcormond.com/wp-content/uploads/2009/03/taxi_bear.jpg" alt="A Bear Riding in a Taxi" title="A Bear Riding in a Taxi" width="640" height="350" class="alignnone size-full wp-image-292" /></p>
]]></content:encoded>
			<wfw:commentRss>http://danielmcormond.com/2009/03/23/a-bear-riding-in-a-taxi/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How To Fix Mac Software Update Stuck On &#8220;Configuring Install&#8221;</title>
		<link>http://danielmcormond.com/2008/12/15/how-to-fix-mac-software-update-stuck-on-configuring-install/</link>
		<comments>http://danielmcormond.com/2008/12/15/how-to-fix-mac-software-update-stuck-on-configuring-install/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 00:17:49 +0000</pubDate>
		<dc:creator>Daniel McOrmond</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[configuring install]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[software update]]></category>

		<guid isPermaLink="false">http://danielmcormond.com/?p=82</guid>
		<description><![CDATA[Apple recently released a 10.5.6 update to OS X. While I was downloading the new stuff using Software Update, my internet connection was interrupted. I relaunched Software Update and assumed it would continue downloading. It appeared to finish and then asked to reboot to complete the update process. Unfortunately, the update process got stuck on [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7759078168443992";
/* 468x60, created 9/1/09 */
google_ad_slot = "3952070927";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>Apple recently released a <a href="http://support.apple.com/kb/HT3194">10.5.6 update</a> to OS X. While I was downloading the new stuff using Software Update, my internet connection was interrupted. I relaunched Software Update and assumed it would continue downloading. It appeared to finish and then asked to reboot to complete the update process.</p>
<p>Unfortunately, the update process got stuck on <em>Configuring Install</em> and just sat there indefinitely. After an unhealthy hard power reset, I tried again with no luck. It seems the interrupted download led to some incomplete files and was hanging the update process.</p>
<p>I was able to solve the problem by deleting the partially downloaded files, then re-downloading using Software Update. This time around, the update applied successfully, upgrading and patching my OS X installation.</p>
<p>Hopefully this post will help others experiencing the same problem. My initial Google search returned a lot of outdated results.</p>
<p>In summary: if you keep getting stuck on <em>Configuring Install</em> during an update, try deleting the files in <strong>/Library/Updates/ </strong>and restarting the update process.</p>
]]></content:encoded>
			<wfw:commentRss>http://danielmcormond.com/2008/12/15/how-to-fix-mac-software-update-stuck-on-configuring-install/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How To Embed Widescreen YouTube Video</title>
		<link>http://danielmcormond.com/2008/11/25/how-to-embed-widescreen-youtube-video/</link>
		<comments>http://danielmcormond.com/2008/11/25/how-to-embed-widescreen-youtube-video/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 17:02:41 +0000</pubDate>
		<dc:creator>Daniel McOrmond</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[16:9]]></category>
		<category><![CDATA[4:3]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[widescreen]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://danielmcormond.com/?p=39</guid>
		<description><![CDATA[UPDATE: YouTube now allows you to select dimensions when customizing embed code. Simply click the Customize icon next to the embed code, and select the size you want- the embed code will be updated to match! YouTube recently announced a change that modifies their video player to a widescreen format. Unfortunately, the default code provided [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-7759078168443992";
/* 468x60, created 9/1/09 */
google_ad_slot = "3952070927";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>UPDATE: YouTube now allows you to select dimensions when customizing embed code. Simply click the <em>Customize</em> icon next to the embed code, and select the size you want- the embed code will be updated to match!</p>
<p>YouTube <a href="http://www.youtube.com/blog?entry=0i22UDAOfj8">recently announced a change</a> that modifies their video player to a widescreen format. Unfortunately, the default code provided for embedding videos still defaults to a 4:3 size (450&#215;355). It&#8217;s easy to modify the dimensions to match the player on YouTube.</p>
<p>In the embed code provided, change the the width parameters to <strong>640</strong>, and height parameters to <strong>385</strong><strong></strong>.</p>
<blockquote>
<pre>&lt;object <strong>width="640" height="385"</strong>&gt;
 &lt;param name="movie" value="http://www.youtube.com/v/rs-jAImScms&amp;hl=en&amp;fs=1&amp;rel=0"&gt;&lt;/param&gt;
 &lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;
 &lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;
 &lt;embed src="http://www.youtube.com/v/rs-jAImScms&amp;hl=en&amp;fs=1&amp;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" <strong>width="640" height="385"</strong>&gt;&lt;/embed&gt;
&lt;/object&gt;</pre>
</blockquote>
<p>Make sure to change the dimensions in both places. Hopefully YouTube will update the options for customizing their embed code to do this automatically. For now, it&#8217;s easy enough to edit by hand.</p>
<p>Note: For those that wish to keep the original width of the YouTube player with a widescreen format, use a width of <strong>450</strong> and a height of <strong>271</strong>. This might be useful for sites that were designed around the original player width.</p>
]]></content:encoded>
			<wfw:commentRss>http://danielmcormond.com/2008/11/25/how-to-embed-widescreen-youtube-video/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

