﻿<?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>Geek Induldence</title>
	<atom:link href="http://geekindulgence.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://geekindulgence.com</link>
	<description>Code. Technology. Life.</description>
	<lastBuildDate>Mon, 26 Mar 2012 13:33:25 +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>Using OctoPack with NuGet Package Restore</title>
		<link>http://geekindulgence.com/tips-and-tricks/using-octopack-with-nuget-package-restore/</link>
		<comments>http://geekindulgence.com/tips-and-tricks/using-octopack-with-nuget-package-restore/#comments</comments>
		<pubDate>Fri, 23 Mar 2012 18:16:53 +0000</pubDate>
		<dc:creator>jfrench</dc:creator>
				<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[nuget]]></category>
		<category><![CDATA[octopus]]></category>

		<guid isPermaLink="false">http://geekindulgence.com/?p=37</guid>
		<description><![CDATA[I recently started using Octopus Deploy to manage deployment across environments. They provide a NuGet package called OctoPack that makes it easy to create the required packages to deploy your app. OctoPack is basically just a set of MSBuild targets that get added as an import directive in your project file. This is all fine ]]></description>
			<content:encoded><![CDATA[<p>I recently started using <a href="http://octopusdeploy.com" title="Octopus Deploy" target="_blank">Octopus Deploy</a> to manage deployment across environments. They provide a NuGet package called <a href="http://nuget.org/packages/OctoPack" title="OctoPack" target="_blank">OctoPack</a> that makes it easy to create the required packages to deploy your app. OctoPack is basically just a set of MSBuild targets that get added as an import directive in your project file. This is all fine and good unless you are using the <a href="http://docs.nuget.org/docs/workflows/using-nuget-without-committing-packages" title="Using NuGet without committing packages to source control" target="_blank">NuGet Package Restore</a> workflow where you don&#8217;t commit your NuGet packages to source control. What you end up with is a chicken-and-egg scenario: Your project is set to use an MSBuild pre-build task to restore packages, but your project imports MSBuild tasks from one of those packages so you get a compilation error before it can restore the packages. To solve this problem you need to copy the MSBuild targets file for OctoPack to your project and commit it to source control. </p>
<p>Luckily, the <a href="https://github.com/OctopusDeploy/OctoPack" title="OctoPack on Github" target="_blank">OctoPack project is available on GitHub</a> so I forked it and updated it&#8217;s install script to handle all this for you. <del datetime="2012-03-24T03:58:25+00:00">I have submitted a pull request to the author but if you just can&#8217;t wait I have also published an update to the package on the Geek Indulgence MyGet feed: http://www.myget.org/F/geekindulgence/. Just add this to your VS2010 Package Manager (via Tools > Options > Package Manager > Package Sources) and you can install the updated version of the package.</del> <strong>UPDATE:</strong> Paul Stovell of Octopus Deploy has merged my pull request and pushed a <a href="http://nuget.org/packages/OctoPack" title="OctoPack on NuGet" target="_blank">new version of OctoPack</a> to the official NuGet feed.</p>
<p>Octopus Deploy is an awesome tool and I&#8217;ll be putting together a detailed post about using it very soon. Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://geekindulgence.com/tips-and-tricks/using-octopack-with-nuget-package-restore/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mac OS X Post Install Goodies</title>
		<link>http://geekindulgence.com/tips-and-tricks/mac-os-x-post-install-goodies/</link>
		<comments>http://geekindulgence.com/tips-and-tricks/mac-os-x-post-install-goodies/#comments</comments>
		<pubDate>Mon, 27 Feb 2012 17:21:24 +0000</pubDate>
		<dc:creator>jfrench</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://geekindulgence.com/?p=28</guid>
		<description><![CDATA[Jason Seifer has a nice post on getting OS X setup in a developer friendly manner after you finish the install. He goes through setting up rvm, git and some nice tweaks to the bash prmpt. This is mostly just a personal bookmark so I can find this again later]]></description>
			<content:encoded><![CDATA[<p><a href="http://jasonseifer.com/" title="Jason Seifer" target="_blank">Jason Seifer</a> has a nice post on getting OS X setup in a developer friendly manner after you finish the install. He goes through setting up rvm, git and some nice tweaks to the bash prmpt. This is mostly just a personal bookmark so I can find this again later. <img src='http://geekindulgence.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://geekindulgence.com/tips-and-tricks/mac-os-x-post-install-goodies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Glimpse + AppHarbor = Sad Face :(</title>
		<link>http://geekindulgence.com/web-development/glimpse-appharbor-sad-face/</link>
		<comments>http://geekindulgence.com/web-development/glimpse-appharbor-sad-face/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 13:29:52 +0000</pubDate>
		<dc:creator>jfrench</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[AppHarbor]]></category>
		<category><![CDATA[Glimpse]]></category>
		<category><![CDATA[MVC3]]></category>

		<guid isPermaLink="false">http://www.geekindulgence.com/?p=22</guid>
		<description><![CDATA[So&#8230;you&#8217;re using MVC3 right? Good. And you&#8217;re using the awesome new server debugging/troubleshooting tool Glimpse right? Naturally! And you&#8217;re deploying to fantastic AppHarbor platform right? Of course you are! And they all go together like peanut butter and chocolate right? WRONG! While all 3 of these things are quite awesome, you&#8217;ll be quite disappointed when ]]></description>
			<content:encoded><![CDATA[<p>So&#8230;you&#8217;re using MVC3 right? Good. And you&#8217;re using the awesome new server debugging/troubleshooting tool <a href="http://getglimpse.com/">Glimpse</a> right? Naturally! And you&#8217;re deploying to fantastic <a href="http://appharbor.com/">AppHarbor </a>platform right? Of course you are! And they all go together like peanut butter and chocolate right? WRONG!</p>
<p>While all 3 of these things are quite awesome, you&#8217;ll be quite disappointed when you push your site to AppHarbor and then try to get a Glimpse into what&#8217;s happening on the server-side. This is because Glimpse, by default, only allows you to use it from localhost and if you want to use it from any other hosts you have to specify the IPs in the web.config. OK, that&#8217;s cool, I&#8217;ll just add my public IP and we&#8217;ll be in business right? Nope.  That&#8217;s because the IP restrictions are enforced by this code:<br />
<script src="https://gist.github.com/1064343.js?file=IpAddressValidator.cs"></script><br />
So, what&#8217;s wrong with that? Nothing. The problem lies in the architecture of AppHarbor. They use load balancers to send requests to the server your app is running on. That means that Request.UserHostAddress is going to be the IP of the load balancer rather than the actual client.</p>
<p>At this point you have two options:</p>
<ul>
<li>Add the IP of the load balancer</li>
<li>Allow all IPs</li>
</ul>
<p>Both of these result in any client being allowed to turn on Glimpse on your site. That’s not good. It reveals too much info about your server. The code could be updated to also check the HTTP_X_FORWARDED_FOR header value but that would be pretty easy to fake in a non-loadbalanced environment.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekindulgence.com/web-development/glimpse-appharbor-sad-face/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Customize an Existing Amazon Machine Image (AMI) from Windows</title>
		<link>http://geekindulgence.com/virtualization/customize-an-existing-amazon-machine-image-ami-from-windows/</link>
		<comments>http://geekindulgence.com/virtualization/customize-an-existing-amazon-machine-image-ami-from-windows/#comments</comments>
		<pubDate>Tue, 14 Oct 2008 19:39:00 +0000</pubDate>
		<dc:creator>jfrench</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[S3]]></category>

		<guid isPermaLink="false">http://www.geekindulgence.com/2008/10/14/customize-an-existing-amazon-machine-image-ami-from-windows/</guid>
		<description><![CDATA[Creating a custom AMI from scratch can be a daunting task, not to mention time consuming. There are a lot of public AMI's that are a pretty good start to many tasks, so it might be easier and quicker to just customize one]]></description>
			<content:encoded><![CDATA[<p>Creating a custom AMI from scratch can be a daunting task, not to mention time consuming. There are a lot of public AMI&#8217;s that are a pretty good start to many tasks, so it might be easier and quicker to just customize one.</p>
<p>I&#8217;ll assume that you have already:</p>
<ol>
<li>Signed up for <a title="Amazon EC2" href="http://aws.amazon.com/ec2/" target="_blank">EC2</a></li>
<li><a href="http://docs.amazonwebservices.com/AWSEC2/2008-05-05/GettingStartedGuide/setting-up-your-tools.html" target="_blank">Installed and Setup</a> the <a title="Amazon EC2 Command Line Tools" href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=351&amp;categoryID=88" target="_blank">EC2 Command Line Tools</a></li>
<li><a href="http://docs.amazonwebservices.com/AWSEC2/2008-05-05/GettingStartedGuide/running-an-instance.html" target="_blank">Launched an instance</a> of the AMI you wish to customize.</li>
<li>Customized the instance and it is still running.</li>
<li>Can SSH into the instance with PuTTY.</li>
</ol>
<p>So you&#8217;ve got your image all polished up just the way you want it. Now what? Well, first you need to save your x509 EC2 certificate to the image. The most straight forward way to accomplish this is to open your certificate locally and copy all the text to your clip board. Now hop over to putty, type</p>
<blockquote><p><span style="font-family: System; color: #008000;">vi /mnt/cert.pem</span></p></blockquote>
<p>and hit enter. This will create a file called cert.pem in /mnt and open it for editing. <em>(NOTE: The image bundling utility will ignore certain sub folders when it creates the image. One of those is /mnt which makes it a good place to store things like private key files  and the new image itself that you wouldn&#8217;t want bundled with the image.) </em>Press ESC followed by i to enter INSERT mode. Now you can paste the text of your certificate into PuTTY by simply right clicking in the PuTTY window.</p>
<p>Do the same for your private key file saving it to /mnt/privatekey.pem.</p>
<p>OK, now you&#8217;re ready to bundle the AMI and save the image. run the following command from the <strong><em>console of the AMI you customized</em></strong>:</p>
<blockquote><p><span style="font-family: System; color: #008000;">ec2-bundle-vol -d &lt;path to save the image&gt; -k &lt;path to private key file&gt; -c &lt;path to certificate file&gt; -u &lt;user account number&gt;</span></p>
<p><span style="color: #008000;"><span style="font-family: System;">&lt;path to save the image&gt;</span> </span><span style="color: #000000;">= Where you want to save the AMI that you are bundling. I suggest something like /mnt/ami so that the image won&#8217;t be included in the bundled image. (That would be rather redundant!)</span></p>
<p><span style="color: #008000;"><span style="font-family: System;">&lt;path to private key file&gt;</span> </span><span style="color: #000000;">= The path to your private key file on the image. In this example we used /mnt/privatekey.pem.</span></p>
<p><span style="color: #008000;"><span style="font-family: System;">&lt;path to certificate file&gt;</span> </span><span style="color: #000000;">= The path to your certificate file on the image. In this example we used /mnt/cert.pem.</span></p>
<p><span style="color: #008000;"><span style="font-family: System;">&lt;user account number&gt;</span> </span><span style="color: #000000;">= Your Amazon Web Services account number. You can find this by logging into the AWS site and clicking on Access Identifiers. Your account number is listed near the top right corner right under &#8220;Welcome, Your Name&#8221;.</span></p></blockquote>
<p>Alright, now we need to upload the image S3 so that it will be usable. From the console of the image run the following command:</p>
<blockquote><p><span style="font-family: System; font-size: 85%; color: #008000;">ec2-upload-bundle -b &lt;bucket name&gt; -m &lt;path to manifest file&gt; -a &lt;access key&gt; -s &lt;secret key&gt;</span></p>
<p><span style="font-size: 85%; color: #333333;"><span style="font-family: System; color: #008000;">&lt;bucket name&gt;</span> = The bucket in your S3 account that you want to save the image to.</span></p>
<p><span style="color: #333333;"><span style="font-size: 85%;"><span style="font-family: System; color: #008000;">&lt;path to manifest file&gt;</span> = Path to manifest.xml created by the image bundling tool. In this example /mnt/ami/manifest.xml.</span></span></p>
<p><span style="font-size: 85%; color: #333333;"><span style="font-family: System; color: #008000;">&lt;access key&gt;</span> = Your AWS access key from the Access Identifiers page of AWS.</span></p>
<p><span style="font-size: 85%; color: #333333;"><span style="font-family: System; color: #008000;">&lt;secret key&gt;</span> = Your AWS secret key from the Access Identifiers page of AWS.</span></p></blockquote>
<p>We&#8217;re almost done! Now you just need to register the image with EC2. From your desktop (not the image you customized.) run the following command:</p>
<blockquote><p><span style="font-family: System; color: #008000;">ec2-register &lt;bucket name&gt;/manifest.xml</span></p></blockquote>
<p>Congratulations! You now have a customized AMI ready to be launched.</p>
<p><span style="font-family: System; color: #008000;"> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://geekindulgence.com/virtualization/customize-an-existing-amazon-machine-image-ami-from-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove &#8216;Compress Old Files&#8217; from Disk Cleanup Wizard</title>
		<link>http://geekindulgence.com/tips-and-tricks/remove-compress-old-files-from-disk-cleanup-wizard/</link>
		<comments>http://geekindulgence.com/tips-and-tricks/remove-compress-old-files-from-disk-cleanup-wizard/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 20:58:00 +0000</pubDate>
		<dc:creator>jfrench</dc:creator>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[WinXP]]></category>

		<guid isPermaLink="false">http://www.geekindulgence.com/2008/10/12/remove-compress-old-files-from-disk-cleanup-wizard/</guid>
		<description><![CDATA[Haven&#8217;t had to use this trick in a while since I&#8217;m running Vista on all my machines these days. I was over at my Mom&#8217;s house using her ancient XP box that was almost out disk space. I fired up the disk cleanup wizard and then I remembered why I don&#8217;t like it. It takes ]]></description>
			<content:encoded><![CDATA[<p>Haven&#8217;t had to use this trick in a while since I&#8217;m running Vista on all my machines these days. I was over at my Mom&#8217;s house using her ancient XP box that was almost out disk space. I fired up the disk cleanup wizard and then I remembered why I don&#8217;t like it. It takes about 3 years to scan every file on the disk and suggest that I compress the old ones.  Follow the steps below and you can use the disk cleanup wizard without it trying to compress all your old term papers still on your hard drive!</p>
<ol>
<li>Start&gt;Run type regedit and hit enter.</li>
<li>Cruise on down to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches</li>
<li>Delete the &#8216;Compress Old Files&#8217; key.</li>
<li>Have glass of your favorite beverage and use the Disk Cleanup Wizard to free up some extra space.</li>
</ol>
<p>Of course, if your looking for something that will help you get a better handle on what file are taking up so much space and where they are you should check out <a href="http://www.windirstat.info/">WinDirStat</a>. It will scan your drives and draw a picture of every file on your hard drive so you can see where the big ones are and delete them.</p>
]]></content:encoded>
			<wfw:commentRss>http://geekindulgence.com/tips-and-tricks/remove-compress-old-files-from-disk-cleanup-wizard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Ubuntu 8.04 under Microsoft Virtual PC 2007</title>
		<link>http://geekindulgence.com/virtualization/installing-ubuntu-8-04-under-microsoft-virtual-pc-2007/</link>
		<comments>http://geekindulgence.com/virtualization/installing-ubuntu-8-04-under-microsoft-virtual-pc-2007/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 17:28:00 +0000</pubDate>
		<dc:creator>jfrench</dc:creator>
				<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.geekindulgence.com/2008/10/10/installing-ubuntu-8-04-under-microsoft-virtual-pc-2007/</guid>
		<description><![CDATA[Trying to install Ubuntu on VPC 2007 I kept getting the following error: An unrecoverable processor error has been encountered. The virtual machine will reset now. &#160; &#160; After much searching I landed at a blog post by Robert Cain over at Arcane Code. He has a nice step by step for installing Ubuntu 8.04 ]]></description>
			<content:encoded><![CDATA[<p>Trying to install Ubuntu on VPC 2007 I kept getting the following error:</p>
<blockquote><p><em><strong> An unrecoverable processor error has been encountered.</strong></em></p>
<p><em><strong>The virtual machine will reset now.</strong></em></p>
</blockquote>
<style type="text/css">.csharpcode, .csharpcode pre<br />{<br />	font-size: small;<br />	color: black;<br />	font-family: consolas, "Courier New", courier, monospace;<br />	background-color: #ffffff;<br />	/*white-space: pre;*/<br />}<br />.csharpcode pre { margin: 0em; }<br />.csharpcode .rem { color: #008000; }<br />.csharpcode .kwrd { color: #0000ff; }<br />.csharpcode .str { color: #006080; }<br />.csharpcode .op { color: #0000c0; }<br />.csharpcode .preproc { color: #cc6633; }<br />.csharpcode .asp { background-color: #ffff00; }<br />.csharpcode .html { color: #800000; }<br />.csharpcode .attr { color: #ff0000; }<br />.csharpcode .alt <br />{<br />	background-color: #f4f4f4;<br />	width: 100%;<br />	margin: 0em;<br />}<br />.csharpcode .lnum { color: #606060; }</style>
<p><a href="http://lh6.ggpht.com/jeffdfrench/SO-Q0xSP6yI/AAAAAAAAADs/7-gWChDNYAE/s1600-h/image%5B2%5D.png"><img style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" border="0" alt="image" src="http://lh5.ggpht.com/jeffdfrench/SO-Q1cGYdkI/AAAAAAAAADw/kUAD8AiY-mA/image_thumb.png?imgmax=800" width="244" height="98" /></a>&#160; </p>
<p>&#160;</p>
<p>After much searching I landed at a blog post by Robert Cain over at <a title="Arcane Code" target="_blank" href="http://arcanecode.wordpress.com">Arcane Code</a>. He has a nice step by step for installing Ubuntu 8.04 on VPC 2007, however like myself, many folks were still getting this error. Reading down the comments there were several suggested workarounds. <a target="_blank" href="http://arcanecode.wordpress.com/2008/04/24/installing-ubuntu-804-under-microsoft-virtual-pc-2007/#comment-25153">This one</a> from SteveZ fixed the problem:</p>
<blockquote><p>- At the prompt, press F4 and select &#8220;Safe graphics mode&#8221;.     <br />- Then press F6 and delete the part that says &#8220;quiet splash &#8211;&#8221; and replace it with &#8220;vga=791 noreplace-paravirt&#8221;.</p>
</blockquote>
<p>You can read Robert&#8217;s excellent step by step at:</p>
<p><a href="http://arcanecode.wordpress.com/2008/04/24/installing-ubuntu-804-under-microsoft-virtual-pc-2007/">Installing Ubuntu 8.04 under Microsoft Virtual PC 2007 &#171; Arcane Code</a> </p>
<p>And be sure to check all the way down the comments if you are still having issues. Lot&#8217;s of smart folks chiming in over there.</p>
<p>&#160;</p>
<p>PS: Don&#8217;t forget to edit grub to use those options after you install or you won&#8217;t be able to boot <img src='http://geekindulgence.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://geekindulgence.com/virtualization/installing-ubuntu-8-04-under-microsoft-virtual-pc-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

