<?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>Dan Appleyard &#187; Dan</title>
	<atom:link href="http://www.danappleyard.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.danappleyard.com</link>
	<description>Developer&#039;s Thoughts on Tech, Life, &#38; Stuff</description>
	<lastBuildDate>Thu, 21 Jul 2011 21:43:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Enabling or disabling a validator control in javascript</title>
		<link>http://www.danappleyard.com/2011/07/21/enabling-or-disabling-a-validator-control-in-javascript/</link>
		<comments>http://www.danappleyard.com/2011/07/21/enabling-or-disabling-a-validator-control-in-javascript/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 21:39:36 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[web forms]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=709</guid>
		<description><![CDATA[Recently I had to have a form that had a requiredfieldvalidator that was supposed to validate only on certain conditions. I did not want the validator to validate its control (textbox B) unless textbox A had a value in it. I decided the best way to do this was to capture the keyup event of [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had to have a form that had a requiredfieldvalidator that was supposed to validate only on certain conditions.  I did not want the validator to validate its control (textbox B) unless textbox A had a value in it.  I decided the best way to do this was to capture the keyup event of textbox A and if there was a value in the textbox, to turn the validator for textbox B on.  To do that via javascript, you have to utilize the asp.net built in javascript function ValidatorEnable.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
    <span style="color: #003366; font-weight: bold;">var</span> makeEnabled <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span>
    <span style="color: #003366; font-weight: bold;">var</span> validatorControl <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;%= RequiredFieldValidator1.ClientID %&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    ValidatorEnable<span style="color: #009900;">&#40;</span>validatorControl<span style="color: #339933;">,</span> makeEnabled<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2011/07/21/enabling-or-disabling-a-validator-control-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Budapest Table Sorting Plugin</title>
		<link>http://www.danappleyard.com/2011/06/18/budapest-table-sorting-plugin/</link>
		<comments>http://www.danappleyard.com/2011/06/18/budapest-table-sorting-plugin/#comments</comments>
		<pubDate>Sat, 18 Jun 2011 13:35:36 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=645</guid>
		<description><![CDATA[Budapest is a jQuery plugin that allows for simple table sorting. It allows the developer to have full control over the sorting. Basic usage: $&#40;&#34;table&#34;&#41;.budapest&#40;&#41;; Advanced usage: $&#40;&#34;table&#34;&#41;.budapest&#40;&#123; headers: &#123; 0: &#123; sortable: true&#125;, 1: &#123; sortable: true&#125;, 2: &#123; sortable: true&#125; &#125;, sortIndex: 2, sortDirection: &#34;asc&#34;, onSort: function&#40;index, val1, val2, direction&#41;&#123; //provide your own [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danappleyard.com/budapest/">Budapest</a> is a jQuery plugin that allows for simple table sorting. It allows the developer to have full control over the sorting.</p>
<h3>Basic usage:</h3>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;table&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">budapest</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<h3>Advanced usage:</h3>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;table&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">budapest</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
  headers<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #CC0000;">0</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> sortable<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
    <span style="color: #CC0000;">1</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> sortable<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
    <span style="color: #CC0000;">2</span><span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> sortable<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
  sortIndex<span style="color: #339933;">:</span> <span style="color: #CC0000;">2</span><span style="color: #339933;">,</span>
  sortDirection<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;asc&quot;</span><span style="color: #339933;">,</span>
  onSort<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>index<span style="color: #339933;">,</span> val1<span style="color: #339933;">,</span> val2<span style="color: #339933;">,</span> direction<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">//provide your own sorting algorithm for each column!</span>
    <span style="color: #006600; font-style: italic;">//must return either -1, 0, or 1</span>
  <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
  onSorted<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>index<span style="color: #339933;">,</span> direction<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #006600; font-style: italic;">//this event is fired after each sort!</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><a href="http://www.danappleyard.com/budapest/">Check out the full documentation.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2011/06/18/budapest-table-sorting-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create an ical file in ASP.NET MVC</title>
		<link>http://www.danappleyard.com/2011/03/15/create-an-ical-file-in-asp-net-mvc/</link>
		<comments>http://www.danappleyard.com/2011/03/15/create-an-ical-file-in-asp-net-mvc/#comments</comments>
		<pubDate>Tue, 15 Mar 2011 12:55:48 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=629</guid>
		<description><![CDATA[I recently had to write some code that generates an ical file and sends it to the browser. I decided to utilize the awesomeness that is asp.net mvc and try it like that. Following the information I got from reading Stephen Walther&#8217;s blog entry on using MVC to generate files to download, I started by [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had to write some code that generates an ical file and sends it to the browser.  I decided to utilize the awesomeness that is asp.net mvc and try it like that. Following the information I got from reading <a href="http://stephenwalther.com/blog/archive/2008/06/16/asp-net-mvc-tip-2-create-a-custom-action-result-that-returns-microsoft-excel-documents.aspx">Stephen Walther&#8217;s blog entry on using MVC to generate files to download</a>, I started by creating a MVC controller that processes the request.</p>

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #FF8000;">Public</span> <span style="color: #0600FF;">Class</span> ICalController
        <span style="color: #0600FF;">Inherits</span> Controller
&nbsp;
        <span style="color: #FF8000;">Private</span> _sessionRepo <span style="color: #FF8000;">As</span> ISessionRepository
        <span style="color: #FF8000;">Private</span> _locationRepo <span style="color: #FF8000;">As</span> ILocationRepository
&nbsp;
        <span style="color: #FF8000;">Public</span> <span style="color: #0600FF;">Sub</span> <span style="color: #FF8000;">New</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sessionRepo <span style="color: #FF8000;">As</span> ISessionRepository, _
                             <span style="color: #FF8000;">ByVal</span> locationRepo <span style="color: #FF8000;">As</span> ILocationRepository<span style="color: #000000;">&#41;</span>
            _sessionRepo <span style="color: #008000;">=</span> sessionRepo
            _locationRepo <span style="color: #008000;">=</span> locationRepo
        <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span>
&nbsp;
        <span style="color: #FF8000;">Public</span> <span style="color: #0600FF;">Function</span> SessionEvent<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> sessionID <span style="color: #FF8000;">As</span> <span style="color: #FF0000;">Long</span><span style="color: #000000;">&#41;</span> <span style="color: #FF8000;">As</span> ActionResult
            <span style="color: #0600FF;">Dim</span> s <span style="color: #FF8000;">As</span> SessionsEntity <span style="color: #008000;">=</span> _sessionRepo.<span style="color: #0000FF;">GetSession</span><span style="color: #000000;">&#40;</span>sessionID<span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">Dim</span> <span style="color: #0600FF;">loc</span> <span style="color: #FF8000;">As</span> LocationsEntity <span style="color: #008000;">=</span> _locationRepo.<span style="color: #FF8000;">Get</span><span style="color: #000000;">&#40;</span>s.<span style="color: #0000FF;">LocationID</span><span style="color: #000000;">&#41;</span>
            <span style="color: #FF8000;">Return</span> ICalEvent<span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;session.ics&quot;</span>, <span style="color: #0600FF;">loc</span>.<span style="color: #0000FF;">CodeAndName</span>, _
                                   s.<span style="color: #0000FF;">SessionName</span>, s.<span style="color: #0000FF;">SessionName</span>, _
                                   s.<span style="color: #0000FF;">StartDateUTC</span>, s.<span style="color: #0000FF;">EndDateUTC</span><span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Function</span>
    <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Class</span></pre></div></div>

<p>I then created a custom ActionResult that creates the actual ical file.  Not surprisingly I called it ICalEventResult.  I created an DateTime extension method to format the utc dates into the correct format for the ical file (I won&#8217;t include it here).</p>

<div class="wp_syntax"><div class="code"><pre class="vbnet" style="font-family:monospace;"><span style="color: #FF8000;">Public</span> <span style="color: #0600FF;">Class</span> ICalEventResult
        <span style="color: #0600FF;">Inherits</span> ActionResult
&nbsp;
        <span style="color: #FF8000;">Private</span> _startUtc <span style="color: #FF8000;">As</span> DateTime
        <span style="color: #FF8000;">Private</span> _endUtc <span style="color: #FF8000;">As</span> DateTime
        <span style="color: #FF8000;">Private</span> _summary <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
        <span style="color: #FF8000;">Private</span> _description <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
        <span style="color: #FF8000;">Private</span> _location <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
        <span style="color: #FF8000;">Private</span> _fileName <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>
&nbsp;
        <span style="color: #FF8000;">Public</span> <span style="color: #0600FF;">Sub</span> <span style="color: #FF8000;">New</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> startUtc <span style="color: #FF8000;">As</span> DateTime, <span style="color: #FF8000;">ByVal</span> endUtc <span style="color: #FF8000;">As</span> DateTime, _
                       <span style="color: #FF8000;">ByVal</span> summary <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>, <span style="color: #FF8000;">ByVal</span> description <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>, _
                       <span style="color: #FF8000;">ByVal</span> location <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span>, <span style="color: #FF8000;">ByVal</span> fileName <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">String</span><span style="color: #000000;">&#41;</span>
&nbsp;
            _startUtc <span style="color: #008000;">=</span> startUtc
            _endUtc <span style="color: #008000;">=</span> endUtc
            _summary <span style="color: #008000;">=</span> summary
            _description <span style="color: #008000;">=</span> description
            _location <span style="color: #008000;">=</span> location
            _fileName <span style="color: #008000;">=</span> fileName
&nbsp;
        <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span>
&nbsp;
        <span style="color: #FF8000;">Public</span> <span style="color: #FF8000;">Overrides</span> <span style="color: #0600FF;">Sub</span> ExecuteResult<span style="color: #000000;">&#40;</span><span style="color: #FF8000;">ByVal</span> context <span style="color: #FF8000;">As</span> System.<span style="color: #0000FF;">Web</span>.<span style="color: #0000FF;">Mvc</span>.<span style="color: #0000FF;">ControllerContext</span><span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">Dim</span> <span style="color: #0600FF;">str</span> <span style="color: #FF8000;">As</span> <span style="color: #FF8000;">New</span> StringBuilder<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">With</span> <span style="color: #0600FF;">str</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;BEGIN:VCALENDAR&quot;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;VERSION:2.0&quot;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;BEGIN:VEVENT&quot;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">String</span>.<span style="color: #0600FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;DTSTART:{0}&quot;</span>, _startUtc.<span style="color: #0000FF;">ToUniversalTimeString</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">String</span>.<span style="color: #0600FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;DTEND:{0}&quot;</span>, _endUtc.<span style="color: #0000FF;">ToUniversalTimeString</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">String</span>.<span style="color: #0600FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;SUMMARY:{0}&quot;</span>, _summary<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">String</span>.<span style="color: #0600FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;DESCRIPTION:{0}&quot;</span>, _description<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #FF8000;">String</span>.<span style="color: #0600FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;LOCATION:{0}&quot;</span>, _location<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;END:VEVENT&quot;</span><span style="color: #000000;">&#41;</span>
                .<span style="color: #0000FF;">AppendLine</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;END:VCALENDAR&quot;</span><span style="color: #000000;">&#41;</span>
            <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">With</span>
            context.<span style="color: #0000FF;">HttpContext</span>.<span style="color: #0000FF;">Response</span>.<span style="color: #0000FF;">ContentType</span> <span style="color: #008000;">=</span> <span style="color: #808080;">&quot;text/calendar&quot;</span>
            context.<span style="color: #0000FF;">HttpContext</span>.<span style="color: #0000FF;">Response</span>.<span style="color: #0000FF;">AddHeader</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;Content-disposition&quot;</span>, <span style="color: #FF8000;">String</span>.<span style="color: #0600FF;">Format</span><span style="color: #000000;">&#40;</span><span style="color: #808080;">&quot;attachment; filename={0}&quot;</span>, _fileName<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
            context.<span style="color: #0000FF;">HttpContext</span>.<span style="color: #0000FF;">Response</span>.<span style="color: #0600FF;">Write</span><span style="color: #000000;">&#40;</span><span style="color: #0600FF;">str</span>.<span style="color: #0000FF;">ToString</span><span style="color: #000000;">&#41;</span>
            context.<span style="color: #0000FF;">HttpContext</span>.<span style="color: #0000FF;">Response</span>.<span style="color: #0600FF;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Sub</span>
    <span style="color: #0600FF;">End</span> <span style="color: #0600FF;">Class</span></pre></div></div>

<p>Finally I created a controller extension method called ICalEvent that simply returns an instance of the ICalEventResult.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2011/03/15/create-an-ical-file-in-asp-net-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Index option disabled</title>
		<link>http://www.danappleyard.com/2011/03/04/new-index-option-disabled/</link>
		<comments>http://www.danappleyard.com/2011/03/04/new-index-option-disabled/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 10:59:05 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=627</guid>
		<description><![CDATA[I&#8217;ll make this short and sweet. I was trying to create an index on a new table I had created through SQL Management Studio 2005. I right clicked the Index folder under the table and noticed that the option of New Index was grayed out (disabled). I figured out that Management Studio will disable that [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll make this short and sweet.  I was trying to create an index on a new table I had created through SQL Management Studio 2005.  I right clicked the Index folder under the table and noticed that the option of New Index was grayed out (disabled).  I figured out that Management Studio will disable that option if you have the table schema-locked in another window.  Close any of those windows, and try again &#8211; it should be enabled again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2011/03/04/new-index-option-disabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2011 Goals</title>
		<link>http://www.danappleyard.com/2011/01/02/2011-goals/</link>
		<comments>http://www.danappleyard.com/2011/01/02/2011-goals/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 23:32:12 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=604</guid>
		<description><![CDATA[Goodbye 2010, hello 2011. 2010 brought the launch of this blog and my decision to start doing freelance work. I decided to start learning new programming languages to widen my talent. At the end of 2010, where do I stand? Well clearly this blog is still running. I know some Django (Python&#8217;s web framework), and [...]]]></description>
			<content:encoded><![CDATA[<p>Goodbye 2010, hello 2011.  2010 brought the launch of this blog and my decision to start doing freelance work.  I decided to start learning new programming languages to widen my talent.  At the end of 2010, where do I stand?  Well clearly this blog is still running.  I know some Django (Python&#8217;s web framework), and some Ruby on Rails.  Unfortunately, I have yet to start freelance work.  Well with a new year comes new goals.</p>
<h3>2011 Goals</h3>
<h4 class="list">Start freelance work</h4>
<p>Last year, I decided to start doing freelance work.  In addition to the extra income, I wanted to do work on the side to give me opportunities to use new technologies that I do not normally use during my day job (asp.net).  With the current economy starting a new business is not that easy.  How does one market themselves, letting potential customers know that I exist?  Do I use old-fashion means &#8211; ads in newspapers, flyers, or is the internet the answer?  A business focused site may be the answer for that.  I created this blog to be a place where I could share both my personal thoughts AND professional thoughts on technologies, etc.   I think perhaps I may need to create a site to focus more on my freelance services.</p>
<h4 class="list">Be more physically fit and active</h4>
<p>It wouldn&#8217;t be the worst thing in the world if I lost about 15-20 lbs.  I am tall and have a slender build, but certain part of my body (waist) tend to bulge.  I lost some weight before my wedding in 2008, but have since put it back on.  I want to lose the weight by the summer (nothing is happening in the summer, just a random selection).</p>
<h4 class="list">Be more organized</h4>
<p>I always try to be organized, but I will admit there are times where I run around like a chicken with my head cut off looking for something.  I want to improve on that (the organization, not my headless chicken impersonation).</p>
<h4 class="list">Be more assertive and get what I want when I want it</h4>
<p>I just feel that sometimes I get bullied into things I don&#8217;t want.  I am not an aggressive person, so I feel like people walk all over me at times.  With out getting into specific details that will make this post sound like a hate-filled rant, let me just say that I want to be more assertive.</p>
<p>So those are my goals for this year.  Will I succeed in all of them, or will I fail?  I am going to try to update my progress for each of these goals each and every month.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2011/01/02/2011-goals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Numeric padding in T-SQL</title>
		<link>http://www.danappleyard.com/2010/12/29/numeric-padding-in-t-sql/</link>
		<comments>http://www.danappleyard.com/2010/12/29/numeric-padding-in-t-sql/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 10:52:07 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=594</guid>
		<description><![CDATA[I was recently trying to find a way to padding a number in T-SQL and decided to share what I found. Let us say I wanted to pad the number 123 into the string &#8217;00123&#8242;, here is how to do it. SELECT REPLACE(STR(123, 5), ' ', '0') FROM SomeTable I found this little bit of [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently trying to find a way to padding a number in T-SQL and decided to share what I found.  Let us say I wanted to pad the number 123 into the string &#8217;00123&#8242;, here is how to do it.</p>
<pre class="brush:sql">SELECT REPLACE(STR(123, 5), ' ', '0') FROM SomeTable</pre>
<p>I found this little bit of useful information <a href="http://foxtricks.blogspot.com/2007/07/zero-padding-numeric-value-in-transact.html">here at FoxTricks</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/12/29/numeric-padding-in-t-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If Browsers were Celebrities</title>
		<link>http://www.danappleyard.com/2010/12/06/if-browsers-were-celebrities/</link>
		<comments>http://www.danappleyard.com/2010/12/06/if-browsers-were-celebrities/#comments</comments>
		<pubDate>Mon, 06 Dec 2010 11:43:36 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=578</guid>
		<description><![CDATA[I take no credit in this &#8211; I just find it funny and true. If Web Browsers Were Celebrities is brought to you by Wix.com Use creative design to make a Flash website. You are most welcome to share this infographic with your audience.]]></description>
			<content:encoded><![CDATA[<p>I take no credit in this &#8211; I just find it funny and true.<br />
<a title="Website Builder" href="http://walyou.com/wp-content/uploads/2010/11/celebrities-web-browsers-walyou.png"><img style="border:none;" title="If Web Browsers Were Celebrities" src="http://walyou.com/wp-content/uploads/2010/11/celebrities-web-browsers-walyou.png" alt="If Web Browsers Were Celebrities" width="500px;" /></a></p>
<p>If Web Browsers Were Celebrities is brought to you by Wix.com<br />
Use creative design to make a <a href="http://www.wix.com/" target="_blank">Flash website.</a><br />
You are most welcome to share this infographic with your audience.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/12/06/if-browsers-were-celebrities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rename objects in SQL Server</title>
		<link>http://www.danappleyard.com/2010/11/23/rename-objects-in-sql-server/</link>
		<comments>http://www.danappleyard.com/2010/11/23/rename-objects-in-sql-server/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 13:46:46 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=556</guid>
		<description><![CDATA[Recently I had to rename some columns and a couple of tables in a database that I work on. Clearly I could go through SQL Server Management Studio and rename them, but I wanted something I could save to a script and run. Ladies and gentlemen, boys and girls, let me introduce a little stored [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I had to rename some columns and a couple of tables in a database that I work on.  Clearly I could go through SQL Server Management Studio and rename them, but I wanted something I could save to a script and run.  Ladies and gentlemen, boys and girls, let me introduce a little stored procedure called <a href="http://msdn.microsoft.com/en-us/library/ms188351.aspx">sp_rename</a>.</p>
<h3>Rename database columns</h3>
<p>To rename a column in a database table, simply execute the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #AF0000;">sp_RENAME</span> <span style="color: #FF0000;">'TABLENAME.COLUMNNAME'</span>, <span style="color: #FF0000;">'NEWCOLUMNNAME'</span>, <span style="color: #FF0000;">'COLUMN'</span>
GO</pre></div></div>

<p><em>While the first and second parameter are to be replaced with your specific objects, the third parameter is the string literal &#8220;COLUMN&#8221;.</em></p>
<h3>Rename database tables</h3>
<p>To rename a table, simply execute the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="tsql" style="font-family:monospace;"><span style="color: #AF0000;">sp_RENAME</span> <span style="color: #FF0000;">'TABLENAME'</span>, <span style="color: #FF0000;">'NEWTABLENAME'</span>
GO</pre></div></div>

<p><em>Notice the lack of a third parameter.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/11/23/rename-objects-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silent Auction</title>
		<link>http://www.danappleyard.com/2010/11/14/silent-auction/</link>
		<comments>http://www.danappleyard.com/2010/11/14/silent-auction/#comments</comments>
		<pubDate>Sun, 14 Nov 2010 21:49:51 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=530</guid>
		<description><![CDATA[Last night I attended a silent auction run by my in-law&#8217;s church. My father in-law is in charge of the event and basically puts it all together. A few years ago, he asked me to create some sort of application to help him manage the whole thing. It started as a desktop application, and last [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter" title="gavel" src="http://www.first4numbers.co.uk/site/files/Auction.gif" alt="silent auction gavel" width="400" height="300" />Last night I attended a silent auction run by my in-law&#8217;s church.  My <a href="http://twitpic.com/36llu3">father in-law</a> is in charge of the event and basically puts it all together.  A few years ago, he asked me to create some sort of application to help him manage the whole thing.  It started as a desktop application, and last year was revamped into a web app.  Installed on his laptop, he was able to streamline it into a much more organized process than before (using excel documents).  Anyway, back to last night &#8211; I have thought of new features to put in the next version.  The current version utilizes asp.net webforms and telerik ajax controls; the next one will be pure mvc and open source javascript libraries (jquery &#8211; no third party tools).  I also want to consider opening the app up to be commercially sold to other groups needing to run an auction.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/11/14/silent-auction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun Filled Friday</title>
		<link>http://www.danappleyard.com/2010/11/13/fun-filled-friday/</link>
		<comments>http://www.danappleyard.com/2010/11/13/fun-filled-friday/#comments</comments>
		<pubDate>Sat, 13 Nov 2010 20:32:49 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.danappleyard.com/?p=516</guid>
		<description><![CDATA[Last night we were going to have homemade pizza.  Tasty right?  Well let me tell you how it went&#8230; I get home from work.  It is around 5:30PM.  My wife and I agreed that we would need a pizza stone.  Whenever we have made homemade pizza the crust has never been solid through the pizzas. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://danappleyard.files.wordpress.com/2010/11/pizza.jpg"><img class="aligncenter size-medium wp-image-518" title="pizza" src="http://danappleyard.files.wordpress.com/2010/11/pizza.jpg?w=300" alt="" width="300" height="195" /></a>Last night we were going to have homemade pizza.  Tasty right?  Well let me tell you how it went&#8230;</p>
<p>I get home from work.  It is around 5:30PM.  My wife and I agreed that we would need a pizza stone.  Whenever we have made homemade pizza the crust has never been solid through the pizzas.  Pizza stones (basically a form of tile) raise the heat in the oven and direct it towards the crust.  But where does one get it?  We did some research, and while they are available at places like Bed Bath &amp; Beyond, they can be pricey.  People recommend that getting a basic limestone tile from any hardware store works and is much cheaper too.  We decided to do that&#8230;</p>
<h3>The Fellowship of the Stone</h3>
<p><a href="http://danappleyard.files.wordpress.com/2010/11/pizza-stone1.jpg"><img class="alignright size-full wp-image-523" title="pizza stone" src="http://danappleyard.files.wordpress.com/2010/11/pizza-stone1.jpg" alt="" width="200" height="200" /></a></p>
<p>We first went to the Home Depot near our apartment.  Did they have any limestone or terra cotta tile?  &#8220;No, but try Century Tile.&#8221;  So we then leave and try the Lowes which is basically next door before we try Century Tile.  No luck there.  We then go to Century Tile.   By the two cars in the parking lot, clearly this is a popular place.  We go in and are greeted by a sales person.  We tell him what we are looking for.  He shows us what he offers and we make a decision.  Ideally we would want a 16&#215;16 tile.  Well they don&#8217;t offer that size, only 12&#215;12 or 18&#215;18.  He offers to make a single cut to end up with a 16&#215;18.  We say fine, but then he goes on how it may not be ideal to have a cut because of the lack of the factory edge or something.  We remind him that we only care about functionality, not eastetics.  So we pay for it and wait for the cut.  15 minutes later we leave with a piece of tile and head on home.  It is about 7:45 PM at this point.  We are hungry and tired.</p>
<p>We get home and start getting ready.  I put the stone in the oven and crank it to 11 (500 degrees).  While it heats up, I start making my pizza.  I make it on a large greased up cookie sheet.  As I am making the pizza, I realize that we will not have enough cheese for both my wife and I&#8217;s pizzas.  So I drop what I was doing and drive to the store to get more cheese.  This is about 8:15 PM.</p>
<h3>An unstoppable force meeting an unmovable object&#8230;</h3>
<p><a href="http://danappleyard.files.wordpress.com/2010/11/shredded-cheese-thumb15721931.jpg"><img class="alignleft size-full wp-image-521" title="shredded cheese" src="http://danappleyard.files.wordpress.com/2010/11/shredded-cheese-thumb15721931.jpg" alt="" width="300" height="206" /></a>I get home and finish my pizza.  When I try to put it in, I can&#8217;t get it to slide off the greased cookie sheet onto the stone.  What the hell was the night worth if I can&#8217;t put my stupid pizza onto the stone?!?  I decide to cook it a bit on the sheet and when it is firm enough, slide it onto the stone.  I put it in and about 7 minutes later, try to slide is on.  Well most of it made it on.  I cook it the rest of the way, and try to take it out.  It will NOT come off the stone.  Using the will of God himself and a flat spatula, I managed to dig it off.  With holes and all, i manage to finally have my pizza.  This is around 8:45 PM.</p>
<p>Now the wife.  With my pizza done, she goes for it.  She made her pizza&#8217;s crust a bit thinner than mine, so it is nearly impossible to get it off the silpat she used.  She gives up and just rolls it up.  If she can&#8217;t have a pizza, she will try to have a bastardized version of a calzone.  She &#8220;somewhat&#8221; manages to get that onto the stone and off it goes.  About 10 minutes later she attempts to flip it &#8211; it falls apart.  She isn&#8217;t even having a calzone anymore, bur rather an unnamed italian dough dish.</p>
<p>But what about the stone?  Did it prove itself to be worth the trouble?  Well, my pizza was still a little bit soft.  The stone started off being a shade of brown.  Now the stone is a shade of black between nightfall and utter black death.  So how was your Friday?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.danappleyard.com/2010/11/13/fun-filled-friday/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

