<?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>Abnormalogue</title>
	<atom:link href="http://www.abnormalogue.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.abnormalogue.com</link>
	<description>Discussion of the world of abnormalities, and then some...</description>
	<lastBuildDate>Tue, 07 Feb 2012 19:16:12 +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>Hungry Jack</title>
		<link>http://www.abnormalogue.com/2012/01/21/hungry-jack/</link>
		<comments>http://www.abnormalogue.com/2012/01/21/hungry-jack/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 19:42:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Abnormalities]]></category>
		<category><![CDATA[abnormal]]></category>
		<category><![CDATA[funny]]></category>
		<category><![CDATA[humorous]]></category>
		<category><![CDATA[hungry jack]]></category>
		<category><![CDATA[off the shelf]]></category>

		<guid isPermaLink="false">http://www.abnormalogue.com/?p=693</guid>
		<description><![CDATA[Humorous Factor: 7.0 Immaturity Factor: 8.5 Disturbing Factor: 5.5 Queasiness Factor: 0.5 Abnormality Factor: 5.4 Today I went shopping with my wife. My favorite part was when she took the Hungry Jack off the shelf.  Tee-hee.]]></description>
			<content:encoded><![CDATA[<p>Humorous Factor: 7.0</p>
<p>Immaturity Factor: 8.5</p>
<p>Disturbing Factor: 5.5</p>
<p>Queasiness Factor: 0.5</p>
<p><strong>Abnormality Factor</strong>: 5.4</p>
<p>Today I went shopping with my wife.</p>
<p>My favorite part was when she took the Hungry Jack off the shelf.  Tee-hee.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abnormalogue.com/2012/01/21/hungry-jack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Electronics is fun</title>
		<link>http://www.abnormalogue.com/2012/01/20/electronics-is-fun/</link>
		<comments>http://www.abnormalogue.com/2012/01/20/electronics-is-fun/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 21:06:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[9-volt battery]]></category>
		<category><![CDATA[make electronics]]></category>
		<category><![CDATA[multimeter]]></category>
		<category><![CDATA[ohms]]></category>
		<category><![CDATA[taste the power]]></category>

		<guid isPermaLink="false">http://www.abnormalogue.com/?p=689</guid>
		<description><![CDATA[I recently took up a new hobby. Electronics. As I mentioned before in another post, I am not really good with real world physical things. That&#8217;s why I&#8217;m, luckily, a software engineer. I do, however, like the challenge of writing software that controls real world things. Electricity astounds me in the fact that I have [...]]]></description>
			<content:encoded><![CDATA[<p>I recently took up a new hobby. Electronics. As I mentioned before in another post, I am not really good with real world physical things. That&#8217;s why I&#8217;m, luckily, a software engineer. I do, however, like the challenge of writing software that controls real world things.</p>
<p>Electricity astounds me in the fact that I have absolutely no knowledge of how it works. Until I bought the book <a href="http://www.amazon.com/gp/product/0596153740/ref=as_li_ss_tl?ie=UTF8&amp;tag=abnormalogue-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0596153740">Make: Electronics (Learning by Discovery)</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=abnormalogue-20&amp;l=as2&amp;o=1&amp;a=0596153740" alt="" width="1" height="1" border="0" />, which is a wonderful guide that really assumes you know nothing about electricity and teaches the theory behind it, if you care to read it, which I do, along with examples that reinforce the theories. Today I did the first experiment which was tasting the power of a 9-volt battery (ouch!) and learning how to use a strange device called a multimeter. I can finally measure the resistance between two points. And the measurement is ohms. Wow, look at me.</p>
<p>Anyone scared or fascinated by electronics should really pick up a copy of this expertly crafted workbook.</p>
<p>Now, on &nbsp;to Experiment 2. Here&#8217;s hoping I&#8217;m not sticking a fork into a toaster, and tasting the power of AC current.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abnormalogue.com/2012/01/20/electronics-is-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bread: Old Hobby New Again</title>
		<link>http://www.abnormalogue.com/2012/01/20/bread-old-hobby-new-again/</link>
		<comments>http://www.abnormalogue.com/2012/01/20/bread-old-hobby-new-again/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 20:24:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[BreadMaking]]></category>
		<category><![CDATA[bread]]></category>
		<category><![CDATA[breadbakers apprentice]]></category>
		<category><![CDATA[hobby]]></category>
		<category><![CDATA[potato]]></category>
		<category><![CDATA[potato rosemary]]></category>
		<category><![CDATA[rosemary]]></category>

		<guid isPermaLink="false">http://www.abnormalogue.com/?p=675</guid>
		<description><![CDATA[Back a couple of years ago I was lucky to pick up a copy of the The Bread Baker&#8217;s Apprentice: Mastering the Art of Extraordinary Bread by Peter Reinhart which is an extraordinary book on not just recipes but about the multiple processes that take place when baking bread from scratch. Somewhere along the way, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.abnormalogue.com/wp-content/uploads/2012/01/PotatoRosemary.png"><img class="alignleft size-full wp-image-677" title="PotatoRosemary" src="http://www.abnormalogue.com/wp-content/uploads/2012/01/PotatoRosemary.png" alt="" width="300" height="227" /></a>Back a couple of years ago I was lucky to pick up a copy of the <strong><a href="http://www.amazon.com/mn/search/?_encoding=UTF8&amp;tag=abnormalogue-20&amp;linkCode=ur2&amp;camp=1789&amp;creative=390957&amp;field-keywords=breadmakers%20apprentice&amp;url=search-alias%3Dstripbooks&amp;sprefix=breadmakers%20a%2Caps%2C624" target="_blank">The Bread Baker&#8217;s Apprentice: Mastering the Art of Extraordinary Bread</a></strong> by <strong>Peter Reinhart</strong> which is an extraordinary book on not just recipes but about the multiple processes that take place when baking bread from scratch. Somewhere along the way, I had stopped baking bread but I have recently started again, with this book as a guide and I am enjoying it immensely. There is nothing more satisfying than creating artisan bread with nothing but simple ingredients and your bare hands.</p>
<p>Now I know I have blogged recently about my concerns over people taking pictures of their meals and displaying them as a Smörgåsbord&nbsp;on Facebook <a title="here" href="http://www.abnormalogue.com/2012/01/15/plated-food/">here</a> for others to laud about but my picture of bread here represents art, yes, and I guess food. I&#8217;m sure many of you might see this as the same thing, which is fair.</p>
<p>Regardless, I urge anyone with a love for cooking, or creating, or art, to pick up this book and try a few recipes. He even has three simple recipes for creating white bread. The breads range from the simple, to the more complicated artisan breads, to even the sourdough varieties which requires diligence to keep the yeast starter alive, essentially forever, in your fridge. At one point I kept the starter alive for roughly two months. Going on vacation was not favorable for it, and the smell was not a nice welcome home (it smells almost as bad on day one).</p>
<p>So here, I present my picture of Potato Rosemary Bread (made with the optional garlic). It is delicious.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abnormalogue.com/2012/01/20/bread-old-hobby-new-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple CSS Code Indentation</title>
		<link>http://www.abnormalogue.com/2012/01/19/simple-css-code-indentation/</link>
		<comments>http://www.abnormalogue.com/2012/01/19/simple-css-code-indentation/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 18:12:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[engineer]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.abnormalogue.com/?p=516</guid>
		<description><![CDATA[Since I will be frequently supplying code examples, I initially devised a way to handle code indentation through css. &#160;My first attempt works, but was pretty sad, not to mention a space waster. And anyone who develops web pages knows the important of css as opposed to styling in an html document. First, it separates [...]]]></description>
			<content:encoded><![CDATA[<p>Since I will be frequently supplying code examples, I initially devised a way to handle code indentation through css. &nbsp;My first attempt works, but was pretty sad, not to mention a space waster. And anyone who develops web pages knows the important of css as opposed to styling in an html document. First, it separates content from presentation, and it also reduces the download size to your end user. And smaller file sizes means your content will load in their browsers more quickly, taking away the variable of server load, of course.</p>
<p>So here is my first attempt:</p>
<div><strong>style.css</strong></div>
<div class="code">
<div>.codeindent-3 {</div>
<div class="indent">padding-left: 10px;</div>
<div>}</div>
<p />
<div>.codeindent-3 {</div>
<div class="indent">padding-left: 20px;</div>
<div>}</div>
<p />
<div>.codeindent-9 {</div>
<div class="indent">padding-left: 30px;</div>
<div>}</div>
<p />
<div>.codeindent-12 {</div>
<div class="indent">padding-left: 40px;</div>
<div>}</div>
<p />
<div>.codeindent-15 {</div>
<div class="indent">padding-left: 50px;</div>
<div>}</div>
<p />
<div>.codeindent-18 {</div>
<div class="indent">padding-left:60px;</div>
<div>}</div>
</div>
<div><strong>code.html</strong></div>
<div class="code">
<div>&lt;html&gt;</p>
<div class="indent">&lt;head&gt;</p>
<div class="indent">&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot; /&gt;</div>
<div>&lt;/head&gt;</div>
</div>
<div class="indent">&lt;body&gt;</p>
<div class="indent">&lt;div&gt;method Test()</p>
<div class="indent">&lt;div&gt;{&lt;/div&gt;</div>
<div class="indent">&lt;div class=&quot;codeindent-3&quot;&gt;int a = 0;</p>
<div class="indent">&lt;div&gt;for (int = 0; i &lt; 5; ++i)&lt;/div&gt;</p>
<div>&lt;div&gt;{&lt;/div&gt;</div>
<div>&lt;div class=&quot;codeindent-6&quot;> a = a + i;&lt;/div&gt;</div>
<div>&lt;div&gt;}&lt;/div&gt;</div>
</div>
<div>&lt;/div&gt;</div>
<div>&lt;div&gt;}&lt;/div&gt;</div>
</div>
<div>&lt;/div&gt;</div>
</div>
</div>
<div class="indent">&lt;/body&gt;</div>
</div>
<div>&lt;/html&gt;</div>
</div>
<p>Now if you copy the above examples into a stylesheet file name style.css and code.html you will see that the html is rendered with a perfectly formatted code example. However, looking at the example it certainly takes a lot of selectors to handle nesting of lines of code. In some complex code examples further indenting selectors would beed to be defined which is not sustainable.</p>
<p>As a software engineer, I wanted to simplify this greatly. Here is the simplified version. Note that the simplicity comes from the css itself, not necessarily from the markup. It completely alleviates the need to defined multiple nesting levels in your stylesheet.</p>
<div><strong>style.css</strong></div>
<div class="code">
<div>div.indent {</div>
<div class="indent">padding-left: 2em;</div>
<div>}</div>
</div>
<div><strong>code.html</strong></div>
<div class="code">
<div>&lt;html&gt;</p>
<div class="indent">&lt;head&gt;</p>
<div class="indent">&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot; /&gt;</div>
<div>&lt;/head&gt;</div>
</div>
<div class="indent">&lt;body&gt;</p>
<div class="indent">&lt;div&gt;method Test()</p>
<div class="indent">&lt;div&gt;{&lt;/div&gt;</div>
<div class="indent">&lt;div class=&quot;indent&quot;&gt;int a = 0;</p>
<div class="indent">&lt;div&gt;for (int = 0; i &lt; 5; ++i)&lt;/div&gt;</p>
<div>&lt;div&gt;{&lt;/div&gt;</div>
<div>&lt;div class=&quot;indent&quot;> a = a + i;&lt;/div&gt;</div>
<div>&lt;div&gt;}&lt;/div&gt;</div>
</div>
<div>&lt;/div&gt;</div>
<div>&lt;div&gt;}&lt;/div&gt;</div>
</div>
<div>&lt;/div&gt;</div>
</div>
</div>
<div class="indent">&lt;/body&gt;</div>
</div>
<div>&lt;/html&gt;</div>
</div>
<p>At some point it&#8217;d be nice to write a quick C# program to generate the indented text. Even with the simpler example, it&#8217;s still quite the pain to get the formatting just right for display in a div area for copying the examples.</p>
<p>I hope this has helped anyone who needs to embed formatted code examples in their web pages</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abnormalogue.com/2012/01/19/simple-css-code-indentation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>REST Easy</title>
		<link>http://www.abnormalogue.com/2012/01/16/rest-easy/</link>
		<comments>http://www.abnormalogue.com/2012/01/16/rest-easy/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 01:02:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[code examples]]></category>
		<category><![CDATA[engineer]]></category>
		<category><![CDATA[rest]]></category>

		<guid isPermaLink="false">http://www.abnormalogue.com/?p=407</guid>
		<description><![CDATA[I recently had the opportunity to work on a project in which we implemented REST as part of a solution. Since REST simply uses the HTTP protocol, how it is used is open to the desired architecture of the solution as long as it follows the HTTP protocol. The REST vs SOAP debate is blogged [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had the opportunity to work on a project in which we implemented REST as part of a solution. Since REST simply uses the HTTP protocol, how it is used is open to the desired architecture of the solution as long as it follows the HTTP protocol.</p>
<p>The REST vs SOAP debate is blogged about all over the place so I&#8217;m not going to go into that here. I believe, but have no proof, that anywhere SOAP is used, so too can REST with the added benefit that any stream can be returned with REST instead of just xml.</p>
<p>In this post, I am going to present the simplest code sample possible for implementing REST in .Net. In this example I will be returning a stream (formatted to xml, although JSON is certainly another option) and will be doing an HTTP GET to retrieve the information.</p>
<p>So here is the simplest example to get REST in .Net up and running.</p>
<p>This example assume the use of the .Net Framework 4.0.</p>
<p>First create a new WCF Service Application and ensure that you create a reference to the 4.0 .Net library System.ServiceModel.Activation.</p>
<p>The code base consists of three files.</p>
<div><strong>Global.asax.cs</strong></div>
<p />
<div class="code">Global.asax.cs</p>
<div>using System;</div>
<div>using System.ServiceModel.Activation;</div>
<div>using System.Web;</div>
<div>using System.Web.Routing;</div>
<div>namespace SimpleRest</div>
<div>{</div>
<div class="codeindent-3">public class Global : System.Web.HttpApplication</div>
<div class="codeindent-3">{</div>
<div class="codeindent-6">public void Application_Start(object sender, EventArgs e)</div>
<div class="codeindent-6">{</div>
<div class="codeindent-9">RouteTable.Routes.Add(new ServiceRoute(&#8220;simplerest/&#8221;, new WebServiceHostFactory(), typeof(SimpleRestService)));</div>
<div class="codeindent-6">}</div>
<div class="codeindent-3">}</div>
<div>}</div>
</div>
<div><strong>SimpleRestService.cs</strong></div>
<p />
<div class="code">
<div>using System;</div>
<div>using System.ServiceModel;</div>
<div>using System.ServiceModel.Web;</div>
<div>using System.ServiceModel.Activation;</div>
<div>using System.Text;</div>
<div>using System.Xml;</div>
<div>using System.IO;</div>
<div></div>
<div>namespace SimpleRest</div>
<div>{</div>
<div class="codeindent-3">[ServiceContract]</div>
<div class="codeindent-3">[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]</div>
<div class="codeindent-3">[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]</div>
<div class="codeindent-3">public class SimpleRestService</div>
<div class="codeindent-3">{</div>
<div class="codeindent-6">[WebGet(UriTemplate = "", BodyStyle = WebMessageBodyStyle.Bare, ResponseFormat = WebMessageFormat.Xml)]</div>
<div class="codeindent-6">public Stream HTTPGetRequest()</div>
<div class="codeindent-6">{</div>
<div class="codeindent-9">WebOperationContext.Current.OutgoingResponse.ContentType = &#8220;text/plain&#8221;;</div>
<div class="codeindent-9">String action = WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters["Action"].ToLower().Trim();</div>
<div class="codeindent-9">MemoryStream ms = new MemoryStream();</div>
<div></div>
<div class="codeindent-9">if (action == &#8220;getnumbers1to&#8221;)</div>
<div class="codeindent-9">{</div>
<div class="codeindent-12">UriTemplateMatch match = WebOperationContext.Current.UriTemplateMatch;</div>
<div class="codeindent-12">string lastNumber = match.QueryParameters["lastnumber"];</div>
<div></div>
<div class="codeindent-12">using (XmlWriter writer = XmlWriter.Create(ms))</div>
<div class="codeindent-12">{</div>
<div class="codeindent-15">writer.WriteStartDocument();</div>
<div></div>
<div class="codeindent-15">writer.WriteStartElement(&#8220;numbers&#8221;);</div>
<div></div>
<div class="codeindent-15">for (int i = 0; i &lt; int.Parse(lastNumber); ++i)</div>
<div class="codeindent-15">{</div>
<div class="codeindent-18">writer.WriteStartElement(&#8220;number&#8221;);</div>
<div></div>
<div class="codeindent-18">writer.WriteString((i + 1).ToString());</div>
<div></div>
<div class="codeindent-18">writer.WriteEndElement();</div>
<div class="codeindent-15">}</div>
<div></div>
<div class="codeindent-15">writer.WriteEndElement();</div>
<div></div>
<div class="codeindent-15">writer.WriteEndDocument();</div>
<div></div>
<div class="codeindent-12">}</div>
<div></div>
<div class="codeindent-12">ms.Position = 0;</div>
<div class="codeindent-12">return ms;</div>
<div class="codeindent-9">}</div>
<div class="codeindent-6">}</div>
<div class="codeindent-3">}</div>
</div>
<p />
<div><strong>web.config</strong></div>
<div class="code">
<div>&lt;configuration&gt;</div>
<div class="codeindent-3">&lt;system.serviceModel&gt;</div>
<div class="codeindent-6">&lt;serviceHostingEnvironment aspNetCompatibilityEnabled=&#8221;true&#8221; multipleSiteBindingsEnabled=&#8221;true&#8221;/&gt;</div>
<div class="codeindent-9">&lt;standardEndpoints&gt;</div>
<div class="codeindent-12">&lt;webHttpEndpoint&gt;</div>
<div class="codeindent-15">&lt;standardEndpoint name=&#8221;" helpEnabled=&#8221;true&#8221; automaticFormatSelectionEnabled=&#8221;true&#8221;></div>
<div class="codeindent-12">&lt;/webHttpEndpoint&gt;</div>
<div class="codeindent-9">&lt;/standardEndpoints&gt;</div>
<div class="codeindent-6">&lt;/system.serviceModel&gt;</div>
<div class="codeindent-6">&lt;system.web&gt;</div>
<div class="codeindent-6">&lt;compilation debug=&#8221;true&#8221;/&gt;</div>
<div class="codeindent-3">&lt;/system.web&gt;</div>
<div>&lt;/configuration&gt;</div>
</div>
<div><strong>What this example does:</strong></div>
<p>It&#8217;s a fairly simple example. I&#8217;ve created a REST URI format of the type http://server/simplerest?getnumbers1to&amp;lastnumber=12. If you compile the example and debug it and type that url into the web browser you will see something like this:</p>
<p><span style="color: #ffffff;">&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;&lt;numbers&gt;&lt;number&gt;1&lt;/number&gt;&lt;number&gt;2&lt;/number&gt;&#8230;&lt;number&gt;[lastnumber]&lt;/number&gt;&lt;/numbers&gt;</span></p>
<p><strong>What is happening in the code:</strong></p>
<p>The web.config file is there for one reason only. The setting up of routes for REST requires the code base to require ASP.NET compatability. &nbsp;That&#8217;s it.</p>
<p>The Global.asax.cs file sets up the REST route table. Essentially you specify as many routes as you want. In this example we picked simplerest which then is required to be part of a query. The route table can also be version friendly, so we could set up a route such as simplerest/v1.0 and so on. You&#8217;ll notice the type of the service class is passed to add the new route.</p>
<p>Finally the SimpleRestService is the WCF service. In this example I don&#8217;t have an interface because my goal is to make the code base as small as possible. This is the meat of processing the REST GET request. It gets the action for the incoming request, ex. ?action=getnumbersfrom1to. Then it uses the current UriTemplateMatch object to get the lastnumber value. It checks if it&#8217;s the one action we support and creates a MemoryStream which contains an xml-friendly format to be displayed in the browser by using an XmlTextWriter.</p>
<p><strong>Why I wrote this example:</strong></p>
<p>To figure out how to do this I did a number of things. First, I bought the following book, which I highly recommend.</p>
<p><a href="http://www.amazon.com/gp/product/0596519206/ref=as_li_ss_il?ie=UTF8&amp;tag=abnormalogue-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=0596519206"><img src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&amp;Format=_SL110_&amp;ASIN=0596519206&amp;MarketPlace=US&amp;ID=AsinImage&amp;WS=1&amp;tag=abnormalogue-20&amp;ServiceVersion=20070822" alt="" border="0" /></a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=abnormalogue-20&amp;l=as2&amp;o=1&amp;a=0596519206" alt="" width="1" height="1" border="0" /></p>
<p>I love tech books and I wanted to add this to my library. Then, because I didn&#8217;t have the luxury of studying the book, I googled many sites until I figured out how to implement REST for my solution. The problem was, even after googling many sites there was still not a short cohesive example that I could find for setting up REST in the easiest manner possible. For this post, I condensed my knowledge to under 50 lines of code.</p>
<p><strong>What is wrong with this example:</strong></p>
<p>Well, everything, really. The one thing the code does right is it works. Let&#8217;s say I was your manager and I asked you to create me a RESTful .Net service and I gave you the REST interface I wanted supported and you delivered me the above piece of code. You&#8217;d be fired immediately. The code does not follow an object-oriented design paradigm, there is no error handling, no loose coupling, non-extensible, not data driven, and I can go on. The purpose of this code is so you can take the simplest possible example of what it takes to get a REST service up and running and deploy it in a sound architecture of your choosing.</p>
<p>I hope you enjoyed this REST example as much as I did writing it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abnormalogue.com/2012/01/16/rest-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unemployed, but still a Software Engineer</title>
		<link>http://www.abnormalogue.com/2012/01/16/unemployed-but-still-a-software-engineer/</link>
		<comments>http://www.abnormalogue.com/2012/01/16/unemployed-but-still-a-software-engineer/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 22:26:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[engineer]]></category>
		<category><![CDATA[freeware]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[reviews]]></category>
		<category><![CDATA[senior]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[shareware]]></category>
		<category><![CDATA[software engineer]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.abnormalogue.com/?p=399</guid>
		<description><![CDATA[So I&#8217;ve been thinking about what to do with this archive. At my last two positions which lasted for a total of 11 years, I have been working as a senior software engineer working with mainly .Net technologies. I go beyond a simple coder in that I can do everything from the database, including design, [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been thinking about what to do with this archive.</p>
<p>At my last two positions which lasted for a total of 11 years, I have been working as a senior software engineer working with mainly .Net technologies. I go beyond a simple coder in that I can do everything from the database, including design, to the middle-tier (or n-tier) to the UI layer &nbsp;(not design, mind-you, shudder), machine maintenance, builds, manage IIS, and all sorts of other various technical tasks. So I realize there are tons of software blogs out there covering any topic I can and will discuss. However, I plan to use this archive as a place for these things:</p>
<ul>
<li>Things that interest me relating to software.</li>
<li>A log of answers to common problems that I find myself going to the Internet for again and again.</li>
<li>Software topics that are beyond my main skills&#8211;I like to keep sharp and as current as possible with my discipline.</li>
<li>Reviews of software, whether it be retail, or open source.</li>
<li>Answers to anyone&#8217;s questions relating to software engineering. If it&#8217;s not a topic that I&#8217;m familiar with, I will do my best to find the answer.</li>
</ul>
<p>I kind of want to make this a repository of sorts. There are so many things I can do within the realm of software development that I just inherently know how to do. However, time and time again I find myself quickly googling stuff I&#8217;ve done a million times before. How to I create a new anonymous type? How do I serialize an object to xml? I&#8217;ve done that millions of times, and yes it is only three lines of code. Why can&#8217;t I remember? And, as always, this forum is also for you to discuss, bring up more topics, and hopefully make this a place where developers can come to chat, solve problems, learn, and simply have fun.</p>
<p>Disclaimer: All code examples presented in my blog have been written and tested by me. Use them at your own risk. I will not be responsible for any use of the code in this blog for descriptive or example purposes. The code is not production nor enterprise ready. That being said, feel free to use, modify, and distribute the examples as you wish.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abnormalogue.com/2012/01/16/unemployed-but-still-a-software-engineer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stay Away from my Retina</title>
		<link>http://www.abnormalogue.com/2012/01/16/stay-away-from-my-retina/</link>
		<comments>http://www.abnormalogue.com/2012/01/16/stay-away-from-my-retina/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 14:18:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[cats]]></category>
		<category><![CDATA[hospital]]></category>
		<category><![CDATA[laser]]></category>
		<category><![CDATA[laser pointer]]></category>
		<category><![CDATA[pointer]]></category>
		<category><![CDATA[retina]]></category>

		<guid isPermaLink="false">http://www.abnormalogue.com/?p=389</guid>
		<description><![CDATA[Well, here it is. My first one. A laser pointer. Truthfully, I&#8217;ve never gotten one of these because I have kids and I wouldn&#8217;t want to make a midnight trip to the hospital because one of them blew out his retina(s). Then I&#8217;d have to throw the laser pointer away and go cross-country as a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.abnormalogue.com/wp-content/uploads/2012/01/LaserPointer.png"><img class="alignleft size-full wp-image-391" title="LaserPointer" src="http://www.abnormalogue.com/wp-content/uploads/2012/01/LaserPointer.png" alt="" width="300" height="225" /></a>Well, here it is. My first one. A laser pointer. Truthfully, I&#8217;ve never gotten one of these because I have kids and I wouldn&#8217;t want to make a midnight trip to the hospital because one of them blew out his retina(s). Then I&#8217;d have to throw the laser pointer away and go cross-country as a road scholar preaching against the dangers of laser pointers in the proximity of retinas. I keep this one under lock and key to prevent such a situation from ever occurring. The only two reasons I can think of why people have laser pointer is they are frequent presenters or they have cats or dogs. I have three cats. And let me tell you the fun never stops at least until after the first 10 minutes. But now I can claim I am in that higher echelon of humans that owns a laser pointer. Now how many can admit that?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abnormalogue.com/2012/01/16/stay-away-from-my-retina/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plated Food</title>
		<link>http://www.abnormalogue.com/2012/01/15/plated-food/</link>
		<comments>http://www.abnormalogue.com/2012/01/15/plated-food/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 19:36:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Abnormalities]]></category>
		<category><![CDATA[abnormal]]></category>
		<category><![CDATA[carnegie deli]]></category>
		<category><![CDATA[food]]></category>
		<category><![CDATA[pictures]]></category>
		<category><![CDATA[plated food]]></category>
		<category><![CDATA[spaghetti]]></category>
		<category><![CDATA[steak]]></category>
		<category><![CDATA[taco]]></category>
		<category><![CDATA[tuna melt]]></category>

		<guid isPermaLink="false">http://www.abnormalogue.com/?p=376</guid>
		<description><![CDATA[Humorous Factor: 5.0 Immaturity Factor: 0.5 Disturbing Factor: 3.0 Queasiness Factor: 1.5 Abnormality Factor: 2.5 As Facebook and blogs have slowly invaded all of our lives it seems that the one constant is that people seem to post pictures of what they are about to consume or have consumed. While it might be exciting for [...]]]></description>
			<content:encoded><![CDATA[<p>Humorous Factor: 5.0</p>
<p>Immaturity Factor: 0.5</p>
<p>Disturbing Factor: 3.0</p>
<p>Queasiness Factor: 1.5</p>
<p><strong>Abnormality Factor</strong>: 2.5</p>
<p><a href="http://www.abnormalogue.com/wp-content/uploads/2012/01/PlatedFood1.png"><img class="alignleft size-full wp-image-378" title="Plated Food" src="http://www.abnormalogue.com/wp-content/uploads/2012/01/PlatedFood1.png" alt="Plated Food" width="300" height="225" /></a>As Facebook and blogs have slowly invaded all of our lives it seems that the one constant is that people seem to post pictures of what they are about to consume or have consumed. While it might be exciting for someone to share with the world the consumables that they will place into their mouth, chew, swallow, digest, and eventually pass as waste, it seems like such odd behavior. They say a picture is a thousand words but a picture of your food deducts 2000 points. So the next time a succulent steak, or a meaty sandwich from the Carnegie Deli in New York City, or a simple tuna melt is begging to have its picture taken, please don&#8217;t. No one wants to see it. Really.</p>
<p>And by the way, the picture posted here is what I had for lunch. Taco spaghetti. You should really try it some time. It is delicious.</p>
<p>Abnormality Factor: 5.6</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abnormalogue.com/2012/01/15/plated-food/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>H.R. Pufnstuf</title>
		<link>http://www.abnormalogue.com/2012/01/13/hr-pufnstuf/</link>
		<comments>http://www.abnormalogue.com/2012/01/13/hr-pufnstuf/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 15:49:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Abnormalities]]></category>
		<category><![CDATA[abnormal]]></category>
		<category><![CDATA[abnormalogue]]></category>
		<category><![CDATA[bat]]></category>
		<category><![CDATA[clang]]></category>
		<category><![CDATA[cling]]></category>
		<category><![CDATA[flute]]></category>
		<category><![CDATA[freddy]]></category>
		<category><![CDATA[freddy flute]]></category>
		<category><![CDATA[golden]]></category>
		<category><![CDATA[hr]]></category>
		<category><![CDATA[hr pufnstuf]]></category>
		<category><![CDATA[island]]></category>
		<category><![CDATA[jimmy]]></category>
		<category><![CDATA[kroft]]></category>
		<category><![CDATA[living]]></category>
		<category><![CDATA[living island]]></category>
		<category><![CDATA[magic]]></category>
		<category><![CDATA[magical]]></category>
		<category><![CDATA[marty]]></category>
		<category><![CDATA[orson]]></category>
		<category><![CDATA[poo]]></category>
		<category><![CDATA[pufnstuf]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[seymour]]></category>
		<category><![CDATA[sid]]></category>
		<category><![CDATA[spider]]></category>
		<category><![CDATA[stupid]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[vulture]]></category>
		<category><![CDATA[Witchie]]></category>
		<category><![CDATA[witchie-poo]]></category>

		<guid isPermaLink="false">http://www.abnormalogue.com/?p=270</guid>
		<description><![CDATA[Humorous Factor: 8.5 Immaturity Factor: 2.0 Disturbing Factor: 6.0 Queasiness Factor: 1.0 Abnormality Factor: 4.4 While I hate to admit it, even in my most feverish nightmare, I have to agree with Pop Culture Ninja when he expresses that H.R. PufnStuf should be on the top 10 list of retro movies ready for a big [...]]]></description>
			<content:encoded><![CDATA[<p>Humorous Factor: 8.5</p>
<p>Immaturity Factor: 2.0</p>
<p>Disturbing Factor: 6.0</p>
<p>Queasiness Factor: 1.0</p>
<p><strong>Abnormality Factor</strong>: 4.4</p>
<p><a href="http://www.amazon.com/gp/product/B00465I188/ref=as_li_ss_il?ie=UTF8&amp;tag=abnormalogue-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=B00465I188"><img src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&amp;Format=_SL110_&amp;ASIN=B00465I188&amp;MarketPlace=US&amp;ID=AsinImage&amp;WS=1&amp;tag=abnormalogue-20&amp;ServiceVersion=20070822" alt="" border="0" /></a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=abnormalogue-20&amp;l=as2&amp;o=1&amp;a=B00465I188" alt="" width="1" height="1" border="0" />While I hate to admit it, even in my most feverish nightmare, I have to agree with <a title="Pop Culture Ninja" href="http://popcultureninja.com/2011/06/30/top-ten-retro-kids-shows-ready-for-the-big-screen/" target="_blank">Pop Culture Ninja</a> when he expresses that H.R. PufnStuf should be on the top 10 list of retro movies ready for a big screen remake.  The fact that he lists it as number one, I believe, does this strange series, not born out of the pits of Tartarus, but of the minds of two gents named Sid and Marty Kroft, great justice.</p>
<p>Here&#8217;s why.</p>
<p>Growing up I was too young to enjoy the series in its first run.  It&#8217;s a good thing my parents didn&#8217;t plop me down for an episode or two like I did with my kids and Teletubbies, for surely my infant brain would have melted.  (Apologies to my kids here).  I did catch it in reruns, though.  And I&#8217;m glad I did.</p>
<p>Every episode I would sit enrapt by the struggle of Jimmy, H.R. Pufnstuf and his gang to protect Jimmy&#8217;s dearly loved magical talking flute named Freddy from Witchie-Poo.  Basically it was a battle between the good, Jimmy, Freddy, the titular H.R Pufnstuff, and Cling and Clang, and the bad, Witchie-Poo, the vulture, the spider, and the bat.  This is exactly what my still forming neurons needed to make me who I am today.  And the fantastical trippy set pieces never disappointed.</p>
<p>With that said, there was always a certain amount of queasiness I experienced when I saw Jimmy, I&#8217;m assuming because of his outfit, Freddy (who wouldn&#8217;t feel disturbed by a shimmery golden talking flute?), H.R. Pufnstuf&#8211;who knew at my age that he was a dragon?&#8211;and especially Witchie-Poo and her Vroom Broom who made the Wicked Witch of the West look like a grandmotherly type who made the most awesome oatmeal cookies one has ever tasted.</p>
<p>Kudos to you Mr. And Mr. Kroft for making my childhood a lot more interesting and substantially more surreal.  Your brainchild deserves a big theater wide release.  Shoot for the stars, or at least Living Island, with an IMAX/3D release.</p>
<p><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.abnormalogue.com/2012/01/13/hr-pufnstuf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Abnormalogue Guided Tour</title>
		<link>http://www.abnormalogue.com/2012/01/12/abnormalogue-guided-tour/</link>
		<comments>http://www.abnormalogue.com/2012/01/12/abnormalogue-guided-tour/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 16:09:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Abnormalities]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[360]]></category>
		<category><![CDATA[3ds]]></category>
		<category><![CDATA[abnormal]]></category>
		<category><![CDATA[abnormalogue]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[ds]]></category>
		<category><![CDATA[engineer]]></category>
		<category><![CDATA[logue]]></category>
		<category><![CDATA[nintendo]]></category>
		<category><![CDATA[playstation]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[vita]]></category>
		<category><![CDATA[wii]]></category>
		<category><![CDATA[xbox]]></category>

		<guid isPermaLink="false">http://www.abnormalogue.com/?p=233</guid>
		<description><![CDATA[Pages Home will take you to the last 20 posts in the blog. Mission Statement will tell you why our blog exists Contact Us will tell you how to contact Abnormalogue if you are too meek to comment or want to discuss a matter in private. Categories Home will take you to the twenty most recent posts in the [...]]]></description>
			<content:encoded><![CDATA[<div><strong><a href="http://www.abnormalogue.com/wp-content/uploads/2012/01/Featured-24.png"><img class="size-full wp-image-366 alignright" title="Abnormalogue Tours" src="http://www.abnormalogue.com/wp-content/uploads/2012/01/Featured-24.png" alt="Abnornalogue Tours" width="301" height="225" /></a>Pages</strong></div>
<ul>
<li><a title="Home" href="http://www.abnormalogue.com/">Home</a> will take you to the last 20 posts in the blog.</li>
<li><a title="Mission Statment" href="http://www.abnormalogue.com/mission-statement/">Mission Statement</a> will tell you why our blog exists</li>
<li><a title="Contact Us" href="http://www.abnormalogue.com/contact-us/">Contact Us</a> will tell you how to contact Abnormalogue if you are too meek to comment or want to discuss a matter in private.</li>
</ul>
<div><strong>Categories</strong></div>
<ul>
<li><a title="Home" href="http://www.abnormalogue.com">Home</a> will take you to the twenty most recent posts in the blog.</li>
<li><a title="Abnormalities" href="http://www.abnormalogue.com/category/abnormalities/">Abnormalities</a> is the meat of this site.  My list of abnormal ramblings and things that I rate with an abnormal factor.  Agree or disagree, feel free to comment!</li>
<li><a title="Software" href="http://www.abnormalogue.com/category/software/">Software</a> is for anything software related, being the software engineer I am.  That was Senior Social Engineer at my last job.  Hmph!</li>
<li><a title="Interests" href="http://www.abnormalogue.com/interests">Interests</a> contains subcategories  in things besides abnormalities that I blog about. They are <a title="Gaming" href="http://www.abnormalogue.com/gaming">Gaming</a>, <a title="Movies" href="http://www.abnormalogue.com/movies">Movies</a>, <a title="TV" href="http://http://www.abnormalogue.com/tv">TV</a>, <a title="Tech" href="http://www.abnormalogue.com/tech">Tech</a>, <a title="Reading" href="http://www.abnormalogue.com/reading">Reading</a>, <a title="Writing" href="http://www.abnormalogue.com/writing">Writing</a>, <a title="BreadMaking" href="http://www.abnormalogue.com/breadmaking">BreadMaking</a>, <a title="Electronics" href="http://www.abnormalogue.com/electronics">Electronics</a>, <a title="Movie Making" href="http://www.abnormalogue.com/moviemaking">Movie Making</a>, and <a title="Stop Motion Animation" href="http://www.abnormalogue.com/stopmotionanimation">Stop Motion Animation</a>.</li>
</ul>
<p>This site is for you, my future fans. Feel free to enjoy, use it as you will, and visit frequently.</p>
<p>Sincerely,</p>
<p>Abnormal</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abnormalogue.com/2012/01/12/abnormalogue-guided-tour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Welcome to Abnormalogue</title>
		<link>http://www.abnormalogue.com/2012/01/11/welcome-to-abnormalogue/</link>
		<comments>http://www.abnormalogue.com/2012/01/11/welcome-to-abnormalogue/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 16:34:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Abnormalities]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[360]]></category>
		<category><![CDATA[3ds]]></category>
		<category><![CDATA[abnormal]]></category>
		<category><![CDATA[abnormalogue]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[ds]]></category>
		<category><![CDATA[engineer]]></category>
		<category><![CDATA[logue]]></category>
		<category><![CDATA[nintendo]]></category>
		<category><![CDATA[playstation]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[vita]]></category>
		<category><![CDATA[wii]]></category>
		<category><![CDATA[xbox]]></category>

		<guid isPermaLink="false">http://www.abnormalogue.com/?p=183</guid>
		<description><![CDATA[Ok, let&#8217;s get this out of the way. &#160;No one reads the first post of a new blog that google hasn&#8217;t had the chance to index yet and is a mere speck of the web. &#160;And who am I kidding? &#160;A first post by an out of work software engineer who registered a domain name [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.abnormalogue.com/wp-content/uploads/2012/01/Featured-1.png"><img class="alignleft size-full wp-image-248" title="Featured-1" src="http://www.abnormalogue.com/wp-content/uploads/2012/01/Featured-1.png" alt="" width="300" height="225" /></a>Ok, let&#8217;s get this out of the way. &nbsp;No one reads the first post of a new blog that google hasn&#8217;t had the chance to index yet and is a mere speck of the web. &nbsp;And who am I kidding? &nbsp;A first post by an out of work software engineer who registered a domain name and got a blog up in a couple of hours.</p>
<p>Stick with me, though. &nbsp;I plan to post at least once a day and in my next post, I&#8217;ll give you the guided tour.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.abnormalogue.com/2012/01/11/welcome-to-abnormalogue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

