<?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>Green Folly<title>&#187; Tech</title>
</title>
	<atom:link href="http://ericharrigan.com/blog/category/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericharrigan.com/blog</link>
	<description></description>
	<lastBuildDate>Sun, 08 Aug 2010 04:34:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Poor man&#8217;s file compare with Powershell</title>
		<link>http://ericharrigan.com/blog/tech/poor-mans-file-compare-with-powershell/</link>
		<comments>http://ericharrigan.com/blog/tech/poor-mans-file-compare-with-powershell/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 22:41:24 +0000</pubDate>
		<dc:creator>greenguy</dc:creator>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[file compare]]></category>
		<category><![CDATA[windiff]]></category>

		<guid isPermaLink="false">http://ericharrigan.com/blog/?p=44</guid>
		<description><![CDATA[Frustration levels went high today as I was burned by another bad config in our prod environment.  While we wait for a more robust config file management tool that will handle all our web app configs and service configs, we have relied on a Powershell script that stages code for prod and tweaks the config [...]]]></description>
			<content:encoded><![CDATA[<p>Frustration levels went high today as I was burned by another bad config in our prod environment.  While we wait for a more robust config file management tool that will handle all our web app configs and service configs, we have relied on a Powershell script that stages code for prod and tweaks the config files so that any environment specific changes for prod are made.  In the latest case, a bad config was checked into our repository and the Powershell script failed to catch the new pattern.  To get around running a diff tool against each file before each release (we have dozens of configs), I wrote the following script that serves as an indication as to what files are out of sync.  Operations can now run this script to understand what config changes are about to happen.</p>
<pre></pre>
<p><font color="#808080">function CompareFileContents([string]$filepath1, [string]$filepath2, [string] $logFile)<br />
{<br />
write-output &#8220;Comparing $filepath1 to $filepath2&#8243; | out-file $logFile -append<br />
Compare-Object -referenceObject $(Get-Content $filepath1) -differenceObject $(Get-Content $filepath2)  -syncWindow 0 | out-file $logFile -append<br />
}</font></p>
<p><font color="#808080">$date = Get-Date<br />
$configDiffLogFile = &#8220;D:\builds\ConfigFileCompare{0}{1:d2}{2:d2}-{3:d2}{4:d2}.txt&#8221; -f $date.year,$date.month,$date.day,$date.hour,$date.minute<br />
write-output &#8220;The config file diff output will be stored at $configDiffLogFile&#8221;</font></p>
<p><font color="#808080">CompareFileContents \\qapapp01\e$\SAJServices\ReleaseStage\PriorRelease\svc\SnagAJob\SAJ.EmployerSearch\SnagAJob.EmployerSearch.WinHost.exe.config \\qapapp01\e$\SAJServices\ReleaseStage\ReleaseToDeploy\svc\SnagAJob\SAJ.EmployerSearch\SnagAJob.EmployerSearch.WinHost.exe.config $configDiffLogFile</font></p>
<p>Couple of items on the script:</p>
<ol>
<li>The &#8220;-syncWindow 0&#8243;option ensures that each lines match sequentially. So if someone moves a line further down in the difference file, even though it has a match in the reference file, the change will be logged.</li>
<li>The filename format came from <a href="http://www.vistax64.com/powershell/62763-add-date-time-filename.html#post305384" target="_blank">this post</a> about a nifty way to use the -f format operator</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ericharrigan.com/blog/tech/poor-mans-file-compare-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Day 1:  Moving to Linux</title>
		<link>http://ericharrigan.com/blog/tech/day-1-moving-to-linux/</link>
		<comments>http://ericharrigan.com/blog/tech/day-1-moving-to-linux/#comments</comments>
		<pubDate>Sat, 17 May 2008 02:14:38 +0000</pubDate>
		<dc:creator>greenguy</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[new user]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://ericharrigan.com/blog/?p=33</guid>
		<description><![CDATA[Intro When it was time to get a new laptop, the decision I have been putting off for a while now needed to be made.  Do I move to Vista or jump over to Linux.  Up until now, I was the proverbial Charlton Heston:  you can pry XP from my cold dead hands.  My main [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Intro</strong></p>
<p>When it was time to get a new laptop, the decision I have been putting off for a while now needed to be made.  Do I move to Vista or jump over to Linux.  Up until now, I was the proverbial Charlton Heston:  you can pry XP from my cold dead hands.  My main PC had so much Windows specific baggage that a full jump to Linux would have been too disruptive.  In addition, I don&#8217;t have a lot of resources left to support a dual boot set up.  However, with a new laptop to order, all that baggage did not exist.  I ultimately decided to make the move to Ubuntu but I wussed out and still ordered the <a href="http://www.dell.com/content/products/productdetails.aspx/inspnnb_1520?c=us&amp;cs=19&amp;l=en&amp;s=dhs&amp;~ck=mn" title="laptop">laptop</a> with XP Home on it.  The idea was to make a dual boot system so that I could use Ubuntu for my main work but keep XP on the side for a failsafe.</p>
<p><strong>Ordering the laptop</strong></p>
<p>The biggest fear I had was that I would order hardware that was incompatible with Ubuntu or other Linix distributions.  Dell has an Ubuntu <a href="http://www.dell.com/content/topics/segtopic.aspx/ubuntu?c=us&amp;cs=19&amp;l=en&amp;s=dhs&amp;dgc=IR&amp;cid=11973&amp;lid=471885">site</a> that I used for reference.  I built a laptop from that site and used that to drive the specs for the laptop with XP I wanted to get.  The only change I needed to make to the laptop specs was the wireless card.  I needed to upgrade the card to match what was spec&#8217;d on the Ubuntu laptop from Dell.  A couple google searches confirmed that the default card that came with the XP 1520 laptop would have issues in Ubuntu.  After making that change, I ordered the laptop.  After getting over the disappointment that the laptop would not just simply materialize after I clicked &#8220;Confirm Order&#8221;, I waited.  In turns out that perhaps Dell follows the <a href="http://www.urbandictionary.com/define.php?term=Scotty+Principle" title="scotty principle">Scotty Principle</a>.  My laptop arrived 3 days earlier than they estimated.</p>
<p><strong>Prep for the install</strong></p>
<p>After getting the laptop, I ran it through its paces on the XP side just to make sure all was well.  Once that was complete, I needed to burn an Ubuntu install disk.  Ubuntu&#8217;s <a href="https://help.ubuntu.com/community/Installation">instructions</a> for this were very clear and made no assumptions on the technical savviness of the user.</p>
<p><strong>Install</strong></p>
<p>Once the disk was ready, I popped it into the laptop and turned it back on.  The laptop&#8217;s boot sequence had the CD drive listed second so I needed to interrupt the boot and choose to boot from the CD.  Once this was done, the <a href="https://help.ubuntu.com/community/GraphicalInstall">graphical install</a> kicked in and Ivwas on my way.  I partitioned my hard drive to account for the fact that I wanted a dual boot system.  The install was basically hands off.  I was able to do the install, watch my 3 year old and get dinner going at the same time.</p>
<p><strong>Did it work?</strong></p>
<p>I rebooted the laptop to see what would happen.  I expected a boot menu to come up so I could choose the OS I wanted to use.  It did come up and I went into Ubuntu.  It came up fine.  Wireless connectivity worked.  Since it is a new laptop with no baggage, there was not a lot of extra config/installs that I needed to worry about.  My laptop has an embedded webcam as well but I have not tried that as of yet.</p>
<p><strong>First application install</strong></p>
<p>As my kids watched a movie, I moved on to the important stuff:  how to get back into Twitterland.  I use twhirl on my Windows boxes for a client but they don&#8217;t have a version for Ubuntu due to Adobe Air.  I searched and found some other clients that would work and I downloaded the app called gTwitter.</p>
<p>Here is where I hit my first roadblock.  How to install?  I am a lifelong Windows user.  I was focused on installing and did not realize that the menu option Applications &#8211;&gt; Add/remove existed.  I did another help search and found another helpful <a href="http://www.psychocats.net/ubuntu/installingsoftware">article</a>  that explained in detail why I was overthinking things. I did a quick search from the Add/remove window on the term &#8220;twitter&#8221; and up popped gTwitter.  I selected it and installed it with no issue.  Now I can get my tweet fixes.</p>
<p><strong>Day 1 conclusions/thoughts</strong></p>
<ol>
<li>Ubuntu is very easy to install and there are helpful instructions all over the place.</li>
<li>I would have had hardware issues if I did not start with the end in mind when ordering the laptop</li>
<li>I have found a way to avoid Vista for home use.  I think I danced a little jig when all went well with this install.</li>
<li>My kids don&#8217;t know how to react when they see their dad dance a little jig.</li>
<li>Twitter is worse than crack</li>
<li>twhirl is my crack pipe of choice.  Adobe Air has an alpha version (<a href="http://blog.sethyates.com/index.php/2008/04/25/running-twhirl-on-ubuntu-710/">one guy&#8217;s results</a>)that will run on Ubuntu so that is next on the list to install.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ericharrigan.com/blog/tech/day-1-moving-to-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
