<?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>SeanW.com</title>
	<atom:link href="http://www.seanw.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.seanw.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Tue, 15 Jun 2010 03:24:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>E3 Week: New Star Wars: The Old Republic Trailer</title>
		<link>http://www.seanw.com/2010/06/e3-week-new-star-wars-the-old-republic-trailer/</link>
		<comments>http://www.seanw.com/2010/06/e3-week-new-star-wars-the-old-republic-trailer/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 03:24:05 +0000</pubDate>
		<dc:creator>seanwcom</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.seanw.com/?p=175</guid>
		<description><![CDATA[This is the week that my inner gamer geek comes out. Ok, I&#8217;m sure it peeks out more than one week a year, but this week is E3&#8230; what a fun week. Here&#8217;s a new trailer for SWToR that looks &#8230; <a href="http://www.seanw.com/2010/06/e3-week-new-star-wars-the-old-republic-trailer/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is the week that my inner gamer geek comes out. Ok, I&#8217;m sure it peeks out more than one week a year, but this week is E3&#8230; what a fun week.</p>
<p>Here&#8217;s a new trailer for SWToR that looks amazing. I have my doubts about the game itself, but there is no doubting the fact that Bioware makes some amazing cinematics. Right up there with Blizzard in my opinion. Here&#8217;s the video:</p>
<p><center><object width="580" height="330"><param name="movie" value="http://cdn-www.swtor.com/sites/all/themes/swtor/en/assets/mediaPlayerInterior.swf" /><param name="allowFullScreen" value="true" /><param name="flashvars" value="title=undefined&#038;description=undefined&#038;source=http://cdn-www.swtor.com//sites/all/files/en/vc/E32010/hpcg0615/hope_cinematic_trailer.flv&#038;fullscreen_source=/&#038;comment_url=/media/trailers/hope-cinematic-trailer#comments&#038;download_1=header|Windows Media Video (.wmv),thumb|null,filesize|253M,resolution|1280x720,url|http://cdn-www.swtor.com//sites/all/files/en/vc/E32010/hpcg0615/hope_cinematic_trailer_wmv.zip&#038;download_2=header|Quicktime (.mov),thumb|null,filesize|301M,resolution|1280x720,url|http://cdn-www.swtor.com//sites/all/files/en/vc/E32010/hpcg0615/hope_cinematic_trailer_mov.zip&#038;lang=EN&#038;age_gate=0" /><embed src="http://cdn-www.swtor.com/sites/all/themes/swtor/en/assets/mediaPlayerInterior.swf" type="application/x-shockwave-flash" allowfullscreen="true" width="580" height="330"flashvars="title=undefined&#038;description=undefined&#038;source=http://cdn-www.swtor.com//sites/all/files/en/vc/E32010/hpcg0615/hope_cinematic_trailer.flv&#038;fullscreen_source=/&#038;comment_url=/media/trailers/hope-cinematic-trailer#comments&#038;download_1=header|Windows Media Video (.wmv),thumb|null,filesize|253M,resolution|1280x720,url|http://cdn-www.swtor.com//sites/all/files/en/vc/E32010/hpcg0615/hope_cinematic_trailer_wmv.zip&#038;download_2=header|Quicktime (.mov),thumb|null,filesize|301M,resolution|1280x720,url|http://cdn-www.swtor.com//sites/all/files/en/vc/E32010/hpcg0615/hope_cinematic_trailer_mov.zip&#038;lang=EN&#038;age_gate=0" /><br />
</object></center><br/></p>
<p>That&#8217;s pretty impressive. Definitely making me look forward to the game&#8230; I&#8217;m sure we have a long time to wait though. Anyway, watching that video, one thing stood out for me. Take a look at the image below:</p>
<p><a href="http://www.seanw.com/wp-content/uploads/2010/06/nintendo_glove.png"><img src="http://www.seanw.com/wp-content/uploads/2010/06/nintendo_glove.png" alt="" title="Darth Power Glove" width="573" height="316" class="aligncenter size-full wp-image-180" /></a></p>
<p>Now look at this very cool guy: </p>
<p><a href="http://www.seanw.com/wp-content/uploads/2010/06/WII23.feat_.nes_glove3-article_image.jpg"><img src="http://www.seanw.com/wp-content/uploads/2010/06/WII23.feat_.nes_glove3-article_image.jpg" alt="" title="Power Glove" width="418" height="542" class="aligncenter size-full wp-image-181" /></a></p>
<p>See it? No? Look again, I&#8217;ll wait. See it? Darth Dude is wearing a Power Glove! Sweet!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanw.com/2010/06/e3-week-new-star-wars-the-old-republic-trailer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uhmm&#8230; PS4! Pffft. Yeah right.</title>
		<link>http://www.seanw.com/2010/06/uhmm-ps4-pffft-yeah-right/</link>
		<comments>http://www.seanw.com/2010/06/uhmm-ps4-pffft-yeah-right/#comments</comments>
		<pubDate>Fri, 11 Jun 2010 00:50:46 +0000</pubDate>
		<dc:creator>seanwcom</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.seanw.com/?p=167</guid>
		<description><![CDATA[I didn&#8217;t spend much time researching it, but this is either fake &#8211; or it&#8217;s Sony releasing a viral video. I can&#8217;t imagine enough time has passed for a PS4 already. Maybe this will be a new firmware update. Of &#8230; <a href="http://www.seanw.com/2010/06/uhmm-ps4-pffft-yeah-right/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I didn&#8217;t spend much time researching it, but this is either fake &#8211; or it&#8217;s Sony releasing a viral video. I can&#8217;t imagine enough time has passed for a PS4 already. Maybe this will be a new firmware update. Of course, I wouldn&#8217;t mind being wrong at all.</p>
<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/RyFmxNLH0YA&#038;hl=en_US&#038;fs=1&#038;color1=0x3a3a3a&#038;color2=0x999999&#038;hd=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/RyFmxNLH0YA&#038;hl=en_US&#038;fs=1&#038;color1=0x3a3a3a&#038;color2=0x999999&#038;hd=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanw.com/2010/06/uhmm-ps4-pffft-yeah-right/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apollo 11 Saturn V Launch (HD) Camera E-8</title>
		<link>http://www.seanw.com/2010/06/apollo-11-saturn-v-launch-hd-camera-e-8/</link>
		<comments>http://www.seanw.com/2010/06/apollo-11-saturn-v-launch-hd-camera-e-8/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 17:14:37 +0000</pubDate>
		<dc:creator>seanwcom</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.seanw.com/?p=28</guid>
		<description><![CDATA[Wow&#8230; I ran across this video on Vimeo &#8211; very cool. The embedded video isn&#8217;t in HD, so click through and watch it on Vimeo for the best experience. Apollo 11 Saturn V Launch (HD) Camera E-8 from Mark Gray &#8230; <a href="http://www.seanw.com/2010/06/apollo-11-saturn-v-launch-hd-camera-e-8/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Wow&#8230; I ran across this video on Vimeo &#8211; very cool. The embedded video isn&#8217;t in HD, so click through and watch it on Vimeo for the best experience.</p>
<p><object width="640" height="360"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=4366695&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=4366695&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="360"></embed></object>
<p><a href="http://vimeo.com/4366695">Apollo 11 Saturn V Launch (HD) Camera E-8</a> from <a href="http://vimeo.com/user1634425">Mark Gray</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>This clip is raw from Camera E-8 on the launch umbilical tower/mobile launch program of Apollo 11, July 16, 1969. This is an HD transfer from the 16mm original. Even more excellent footage is available on our DVDs at our website at http://www.spacecraftfilms.com</p>
<p>The camera is running at 500 fps, making the total clip of over 8 minutes represent just 30 seconds of actual time. Narration is provided by Mark Gray (me), Executive Producer for Spacecraft Films. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanw.com/2010/06/apollo-11-saturn-v-launch-hd-camera-e-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linq To CSV</title>
		<link>http://www.seanw.com/2010/06/linq-to-csv/</link>
		<comments>http://www.seanw.com/2010/06/linq-to-csv/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 14:39:32 +0000</pubDate>
		<dc:creator>seanwcom</dc:creator>
				<category><![CDATA[Linq]]></category>

		<guid isPermaLink="false">http://www.seanw.com/?p=18</guid>
		<description><![CDATA[This was originally just a temporary post to make sure my syntax highlighting was working. I decided to go ahead and flesh it out and keep it here. The code below is some C# I&#8217;ve used recently to do some &#8230; <a href="http://www.seanw.com/2010/06/linq-to-csv/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This was originally just a temporary post to make sure my syntax highlighting was working. I decided to go ahead and flesh it out and keep it here. </p>
<p>The code below is some C# I&#8217;ve used recently to do some custom querying against a SQL database. I was given a list of about 1600 devices that needed to be imported into the database. Some of the work had been done, so I needed to get a list of devices that weren&#8217;t already there.</p>
<p>The code uses a library called LINQtoCSV. You can read more about that library <a href="http://www.codeproject.com/KB/linq/LINQtoCSV.aspx">here</a>. In fact, you will find all the information you need there, and then some. This snippet is a VERY basic use of the library.</p>
<p>Depending on what I&#8217;m working on, I usually start by writing my &#8220;proof of concept&#8221; snippets in <a href="http://www.LINQPad.net">LINQPad</a>. In this case, I only needed this to work once. In other words, I had no need to keep this code running, no need to optimize it, support it, etc&#8230; I just needed it to do the job once.</p>
<p>Here&#8217;s a few lines from the CSV file I was given. I needed to query my database for devices using the names below (&#8217;2B5-A-1&#8242; for example):</p>
<pre class="brush: plain; light: true; title: ; notranslate">
Name,Description,ServiceTag,Model,Owner,Zone,ExistingLocation,Building,Location,SRN,MoveDate
2B5-A-1,110V,,1587H24A1,ATC,1,,QTS,100.17,RIGHT,4/26/2010
2A8-A-1,110V,,1587H24A1,ATC,1,,QTS,100.17,LEFT,4/26/2010
AT-EDBO-3560-D15,SWITCH,FOC1036Z0V1,3560G,ATC,1,,QTS,100.17,46,4/26/2010
</pre>
<p>Diving into the code, I first defined a class that fit each CSV row, essentially defining my column contents:</p>
<pre class="brush: csharp; title: ; notranslate">
class Device {
  [CsvColumn(FieldIndex = 1, CanBeNull = true)]
  public string Name { get; set; }

  [CsvColumn(FieldIndex = 2, CanBeNull = true)]
  public string Description { get; set; }

  [CsvColumn(FieldIndex = 3, CanBeNull = true)]
  public string ServiceTag { get; set; }

  [CsvColumn(FieldIndex = 4, CanBeNull = true)]
  public string Model { get; set; }

  [CsvColumn(FieldIndex = 5, CanBeNull = true)]
  public string Owner { get; set; }

  [CsvColumn(FieldIndex = 6, CanBeNull = true)]
  public string Zone { get; set; }

  [CsvColumn(FieldIndex = 7, CanBeNull = true)]
  public string ExistingLocation { get; set; }

  [CsvColumn(FieldIndex = 8, CanBeNull = true)]
  public string Building { get; set; }

  [CsvColumn(FieldIndex = 9, CanBeNull = true)]
  public string Location { get; set; }

  [CsvColumn(FieldIndex = 10, CanBeNull = true)]
  public string SRN { get; set; }

  [CsvColumn(FieldIndex = 11, CanBeNull = true)]
  public string MoveDate { get; set; }
}
</pre>
<p>Then I created a file description defining a comma as the separator and that the first line has column names. Then I created a context and read the file into an IEnumerable using the class from above:</p>
<pre class="brush: csharp; title: ; notranslate">
CsvFileDescription inputFileDescription = new CsvFileDescription {
  SeparatorChar = ',',
  FirstLineHasColumnNames = true
};

CsvContext cc = new CsvContext();

IEnumerable&lt;Device&gt; devices = cc.Read&lt;Device&gt;(@&quot;c:\path\to\Book2.csv&quot;, inputFileDescription);
</pre>
<p>Now that the rows are in an IEnumerable, I can loop through them. For each row, I query my SQL database and get the name of the device found. If no device was found, I populate a new List<>. Last, dump that list to the console (this is a LINQPad function), and write it to a new CSV file.</p>
<pre class="brush: csharp; title: ; notranslate">
List&lt;Device&gt; notFound = new List&lt;Device&gt;();

foreach(var device in devices) {

  string name = (
    from e in tblEquipment
    where e.Name == device.Name
    select e.Name
  ).FirstOrDefault();

  if(string.IsNullOrEmpty(name)) {
    notFound.Add(device);
  }
}

notFound.Dump();

cc.Write(notFound, @&quot;C:\path\to\new\file.csv&quot;, inputFileDescription);
</pre>
<p>I&#8217;m sure there are better ways to do this, but this wasn&#8217;t for any sort of a long term project. This is a quick one-off script I needed for a one-time use purpose.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanw.com/2010/06/linq-to-csv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oops</title>
		<link>http://www.seanw.com/2010/06/oops/</link>
		<comments>http://www.seanw.com/2010/06/oops/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 14:12:00 +0000</pubDate>
		<dc:creator>seanwcom</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.seanw.com/?p=6</guid>
		<description><![CDATA[I thought I&#8217;d attempt an upgrade to a RC version of WordPress. I ended up deleting all my old posts. Hahaha&#8230; good thing I didn&#8217;t have much to say before anyway. :) EDIT: I managed to recover them.]]></description>
			<content:encoded><![CDATA[<p>I thought I&#8217;d attempt an upgrade to a RC version of WordPress. I ended up deleting all my old posts.  Hahaha&#8230; good thing I didn&#8217;t have much to say before anyway.  :)</p>
<p><strong>EDIT</strong>: I managed to recover them.  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanw.com/2010/06/oops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy birthday to my beautiful wife!</title>
		<link>http://www.seanw.com/2010/01/happy-birthday-to-my-beautiful-wife/</link>
		<comments>http://www.seanw.com/2010/01/happy-birthday-to-my-beautiful-wife/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 13:45:00 +0000</pubDate>
		<dc:creator>seanwcom</dc:creator>
		
		<guid isPermaLink="false">http://www.seanw.com/2010/01/happy-birthday-to-my-beautiful-wife/</guid>
		<description><![CDATA[Happy birthday darling, I hope you have a great day!!]]></description>
			<content:encoded><![CDATA[<p>Happy birthday darling, I hope you have a great day!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanw.com/2010/01/happy-birthday-to-my-beautiful-wife/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Year&#039;s Eve Already???</title>
		<link>http://www.seanw.com/2009/12/new-years-eve-already/</link>
		<comments>http://www.seanw.com/2009/12/new-years-eve-already/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 14:57:33 +0000</pubDate>
		<dc:creator>seanwcom</dc:creator>
		
		<guid isPermaLink="false">http://www.seanw.com/2009/12/new-years-eve-already/</guid>
		<description><![CDATA[It&#8217;s really hard to believe that this year is almost over. I guess now that we have a kid things are just going to get faster and faster, but it seems like just last week that we were trying to &#8230; <a href="http://www.seanw.com/2009/12/new-years-eve-already/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s really hard to believe that this year is almost over. I guess now that we have a kid things are just going to get faster and faster, but it seems like just last week that we were trying to get Jack to wear a Halloween costume.</p>
<p>Jenny, Jack, and I have made some great memories this year and I can&#8217;t wait to see what 2010 has in store for us! Happy New Year everyone (a day early)!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanw.com/2009/12/new-years-eve-already/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Posting from iPhone</title>
		<link>http://www.seanw.com/2009/12/posting-from-iphone/</link>
		<comments>http://www.seanw.com/2009/12/posting-from-iphone/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 21:57:36 +0000</pubDate>
		<dc:creator>seanwcom</dc:creator>
		
		<guid isPermaLink="false">http://www.seanw.com/2009/12/posting-from-iphone/</guid>
		<description><![CDATA[I just installed the WordPress app on my iPhone so now I can make my updates from anywhere. Good stuff. :)]]></description>
			<content:encoded><![CDATA[<p>I just installed the WordPress app on my iPhone so now I can make my updates from anywhere. Good stuff. :)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanw.com/2009/12/posting-from-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Christmas was awesome&#8230; Jack had such a&#8230;</title>
		<link>http://www.seanw.com/2009/12/christmas-was-awesome-jack-had-such-a/</link>
		<comments>http://www.seanw.com/2009/12/christmas-was-awesome-jack-had-such-a/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 17:47:15 +0000</pubDate>
		<dc:creator>seanwcom</dc:creator>
		
		<guid isPermaLink="false">http://www.seanw.com/2009/12/christmas-was-awesome-jack-had-such-a/</guid>
		<description><![CDATA[Christmas was awesome&#8230; Jack had such a good time. Jenny and I kept gifts simple between us; the real joy was watching Jack. This was his second Christmas, but he was only 9 months old last year, so he had &#8230; <a href="http://www.seanw.com/2009/12/christmas-was-awesome-jack-had-such-a/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Christmas was awesome&#8230; Jack had such a good time.  Jenny and I kept gifts simple between us; the real joy was watching Jack.  This was his second Christmas, but he was only 9 months old last year, so he had no idea what was going on. This year he didn&#8217;t understand what was going on, and didn&#8217;t really grasp the idea of opening presents, but he did understand that he got a LOT of new toys to play with.  That boy really raked it in this year! Hahah&#8230;</p>
<p>I&#8217;ve got a lot of pics up on flickr, but you&#8217;ll need to be marked as a friend or family to see them (because of internet creeps): http://www.flickr.com/photos/seanw/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanw.com/2009/12/christmas-was-awesome-jack-had-such-a/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enjoying Christmas Eve with my family. I&#8230;</title>
		<link>http://www.seanw.com/2009/12/enjoying-christmas-eve-with-my-family-i/</link>
		<comments>http://www.seanw.com/2009/12/enjoying-christmas-eve-with-my-family-i/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 03:53:44 +0000</pubDate>
		<dc:creator>seanwcom</dc:creator>
		
		<guid isPermaLink="false">http://www.seanw.com/2009/12/enjoying-christmas-eve-with-my-family-i/</guid>
		<description><![CDATA[Enjoying Christmas Eve with my family. It&#8217;s been a great day so far, and Jenny and I are just relaxing now before hitting the sack. Santa&#8217;s coming soon, so we better be asleep before he gets here!! :) Be sure &#8230; <a href="http://www.seanw.com/2009/12/enjoying-christmas-eve-with-my-family-i/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Enjoying Christmas Eve with my family. It&#8217;s been a great day so far, and Jenny and I are just relaxing now before hitting the sack.  Santa&#8217;s coming soon, so we better be asleep before he gets here!!  :)  Be sure to check out our site at www.jennyandsean.com to read more details about our Christmas Eve&#8230;  goodnight!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.seanw.com/2009/12/enjoying-christmas-eve-with-my-family-i/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

