<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Musings on Education and Technology</title>
	<atom:link href="http://jefferytay.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jefferytay.wordpress.com</link>
	<description>Listing my findings on technology and the usage of technology in education</description>
	<lastBuildDate>Mon, 16 Jan 2012 02:33:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jefferytay.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Musings on Education and Technology</title>
		<link>http://jefferytay.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jefferytay.wordpress.com/osd.xml" title="Musings on Education and Technology" />
	<atom:link rel='hub' href='http://jefferytay.wordpress.com/?pushpress=hub'/>
		<item>
		<title>ASP.NET MVC String Editor Template which handles the StringLength attribute</title>
		<link>http://jefferytay.wordpress.com/2011/12/20/latest-jquery-javascript/</link>
		<comments>http://jefferytay.wordpress.com/2011/12/20/latest-jquery-javascript/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 08:15:26 +0000</pubDate>
		<dc:creator>kwanann</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MVC]]></category>

		<guid isPermaLink="false">https://jefferytay.wordpress.com/?p=403</guid>
		<description><![CDATA[Interestingly enough I was searching for a way for MVC to automatically handle the stringlength property. Seemed quite straightforward to implement, but somehow there is no available code out there to figure this out. Using the Html.EditorFor just creates a no frills textbox, which is rather irritating. &#160; Logic walkthrough Basically what the template does [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=403&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Interestingly enough I was searching for a way for MVC to automatically handle the stringlength property. Seemed quite straightforward to implement, but somehow there is no available code out there to figure this out. Using the Html.EditorFor just creates a no frills textbox, which is rather irritating.</p>
<p>&nbsp;</p>
<p><strong>Logic walkthrough</strong></p>
<p>Basically what the template does is to attempt to find the StringLength attribute from the ModelMetadata, and from there get the validation parameters.</p>
<p>Once it finds the appropriate parameter (in this case<strong> </strong><em>max</em>), it will assign this to a string dictionary.</p>
<p>Finally all is wrapped up with a call to Html.Textbox</p>
<p>&nbsp;</p>
<p><strong>Usage</strong></p>
<p>to use this ‘custom’ editor template, what you need to do will be</p>
<p>@Html.EditorFor(model =&gt; model.strcolumn)</p>
<p>&nbsp;</p>
<p>or if you want to specify the width as well</p>
<p>@Html.EditorFor(model =&gt; model.strcolumn, new { width = &#8220;300px&#8221; })</p>
<p>&nbsp;</p>
<p><strong>NOTE: This works if you specify Text as the datatype, otherwise you will need to change the top to include the template name</strong></p>
<p>&nbsp;</p>
<p><strong>Code Segment (Text.cshtml)</strong></p>
<p>Note that the following code segment is in razor format, but you can easily change that to a webcontrol.</p>
<p>&nbsp;</p>
<p>@* Specifies that this is for the string data type *@<br />
@model String<br />
@{<br />
//Create a dictionary to hold all the html attributes to be applied, this follows the requirement for the Html.Textbox last property which requires IDictionary&lt;string, object&gt;<br />
var o = new System.Collections.Generic.Dictionary&lt;string, object&gt;();</p>
<p>//add in the default css class, notice that the @ is not required in this case<br />
o.Add(&#8220;class&#8221;, &#8220;text-box single-line&#8221;);</p>
<p>//Attempt to find the validation attribute for maxlength<br />
foreach (var r in ViewData.ModelMetadata.GetValidators(this.ViewContext.Controller.ControllerContext))<br />
{<br />
//What we are looking for is a validator of type StringLengthAttributeAdapter<br />
if (r is StringLengthAttributeAdapter)<br />
{<br />
var attr = (StringLengthAttributeAdapter)r;</p>
<p>var ValidationParameters = attr.GetClientValidationRules().First().ValidationParameters;</p>
<p>//Get the validation parameters, maxlength is a required parameter so it is definately there, but just check in case for some reason it is not there<br />
if (ValidationParameters.ContainsKey(&#8220;max&#8221;))<br />
{<br />
//add the maxlength property to the dictionary<br />
o.Add(&#8220;maxlength&#8221;, (int)ValidationParameters["max"]);<br />
}<br />
}<br />
}</p>
<p>//additional check to see if there is a width property specified<br />
if (ViewData["width"] != null)<br />
{<br />
o.Add(&#8220;style&#8221;, &#8220;width: &#8221; + ViewData["width"].ToString());<br />
}</p>
<p>//Finally emit the html for the textbox<br />
@Html.TextBox(&#8220;&#8221;, ViewData.TemplateInfo.FormattedModelValue, o);<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jefferytay.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jefferytay.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jefferytay.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jefferytay.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jefferytay.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jefferytay.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jefferytay.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jefferytay.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jefferytay.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jefferytay.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jefferytay.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jefferytay.wordpress.com/403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jefferytay.wordpress.com/403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jefferytay.wordpress.com/403/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=403&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jefferytay.wordpress.com/2011/12/20/latest-jquery-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27d3f15ba9242eae1078607670d81806?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kwanann</media:title>
		</media:content>
	</item>
		<item>
		<title>Cloud Shared Notepad&#8211;Beta</title>
		<link>http://jefferytay.wordpress.com/2011/12/16/cloud-shared-notepadbeta/</link>
		<comments>http://jefferytay.wordpress.com/2011/12/16/cloud-shared-notepadbeta/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 08:43:02 +0000</pubDate>
		<dc:creator>kwanann</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Azure]]></category>

		<guid isPermaLink="false">https://jefferytay.wordpress.com/?p=401</guid>
		<description><![CDATA[This is the pre beta version of the cloud shared notepad, its free for all to use (unless it becomes so popular that my azure account starts charging me) Anyway I acknowledge that there are definitely issues with the GUI, so please bear with me for a while. Just some points to note Below the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=401&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the pre beta version of the cloud shared notepad, its free for all to use (unless it becomes so popular that my azure account starts charging me)</p>
<p>Anyway I acknowledge that there are definitely issues with the GUI, so please bear with me for a while.</p>
<p>Just some points to note</p>
<ol>
<li>Below the cloudsharenotepad.cloudapp.net/notes is actually a textbox, you have to enter your note url there (in this example it is <strong>myurlhere</strong>)</li>
<li>You can enter your notify email, I have yet to implement this function, so for now it is purely cosmetic</li>
</ol>
<p><a href="http://jefferytay.files.wordpress.com/2011/12/image8.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://jefferytay.files.wordpress.com/2011/12/image_thumb8.png?w=600&#038;h=337" width="600" height="337" /></a></p>
<p>&#160;</p>
<p>Thanks for your support! <img style="border-style:none;" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://jefferytay.files.wordpress.com/2011/12/wlemoticon-smile.png?w=600" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jefferytay.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jefferytay.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jefferytay.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jefferytay.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jefferytay.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jefferytay.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jefferytay.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jefferytay.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jefferytay.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jefferytay.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jefferytay.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jefferytay.wordpress.com/401/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jefferytay.wordpress.com/401/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jefferytay.wordpress.com/401/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=401&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jefferytay.wordpress.com/2011/12/16/cloud-shared-notepadbeta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27d3f15ba9242eae1078607670d81806?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kwanann</media:title>
		</media:content>

		<media:content url="http://jefferytay.files.wordpress.com/2011/12/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://jefferytay.files.wordpress.com/2011/12/wlemoticon-smile.png" medium="image">
			<media:title type="html">Smile</media:title>
		</media:content>
	</item>
		<item>
		<title>Publishing to Windows Azure from Visual Studio 2010</title>
		<link>http://jefferytay.wordpress.com/2011/12/16/publishing-to-windows-azure-from-visual-studio-2010/</link>
		<comments>http://jefferytay.wordpress.com/2011/12/16/publishing-to-windows-azure-from-visual-studio-2010/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 06:51:07 +0000</pubDate>
		<dc:creator>kwanann</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Azure]]></category>

		<guid isPermaLink="false">https://jefferytay.wordpress.com/?p=396</guid>
		<description><![CDATA[&#160; Here are the steps to publish to Windows Azure from inside Visual Studio 2010 From inside Visual Studio, right click the Azure project (the icon looks like a blue globe) Click on “Publish” You will see the screen below If you have yet to import your publish settings, click on the hyperlink to generate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=396&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Here are the steps to publish to Windows Azure from inside Visual Studio 2010</p>
<ol>
<li>From inside Visual Studio, right click the Azure project (the icon looks like a blue globe)     </li>
<p><a href="http://jefferytay.files.wordpress.com/2011/12/image2.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;margin:0;" title="image" border="0" alt="image" src="http://jefferytay.files.wordpress.com/2011/12/image_thumb2.png?w=284&#038;h=257" width="284" height="257" /></a></p>
<li>Click on “Publish”</li>
<li>You will see the screen below     <br /><a href="http://jefferytay.files.wordpress.com/2011/12/image3.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;margin:0;" title="image" border="0" alt="image" src="http://jefferytay.files.wordpress.com/2011/12/image_thumb3.png?w=244&#038;h=166" width="244" height="166" /></a></li>
<li>If you have yet to import your publish settings, click on the hyperlink to generate the publishing file</li>
<li>Once you get the file, use the import button to import your settings file</li>
<li>You should now have a subscription available for selection     <br /><a href="http://jefferytay.files.wordpress.com/2011/12/image4.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;margin:0;" title="image" border="0" alt="image" src="http://jefferytay.files.wordpress.com/2011/12/image_thumb4.png?w=244&#038;h=166" width="244" height="166" /></a></li>
<li>If you do not have any hosted services, you will see the screen below. Else skip to step 9     <br /><a href="http://jefferytay.files.wordpress.com/2011/12/image5.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;margin:0;" title="image" border="0" alt="image" src="http://jefferytay.files.wordpress.com/2011/12/image_thumb5.png?w=244&#038;h=114" width="244" height="114" /></a></li>
<li>Fill in your hosted service name and preferred data centre location and click “OK”. </li>
<li>In the publish settings, make the necessary changes and click “Publish”</li>
<li>Windows Azure Activity Log will appear and you can see the deployment status there. Do take note that this may take quite a while to deploy even for a simple app.     <br /><a href="http://jefferytay.files.wordpress.com/2011/12/image6.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://jefferytay.files.wordpress.com/2011/12/image_thumb6.png?w=332&#038;h=124" width="332" height="124" /></a></li>
<li>Once it is complete, the status will reflect to show it is completed and you will be able to see the url to your app     <br /><a href="http://jefferytay.files.wordpress.com/2011/12/image7.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://jefferytay.files.wordpress.com/2011/12/image_thumb7.png?w=424&#038;h=109" width="424" height="109" /></a></li>
</ol>
<ol>Enjoy!</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jefferytay.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jefferytay.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jefferytay.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jefferytay.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jefferytay.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jefferytay.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jefferytay.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jefferytay.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jefferytay.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jefferytay.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jefferytay.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jefferytay.wordpress.com/396/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jefferytay.wordpress.com/396/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jefferytay.wordpress.com/396/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=396&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jefferytay.wordpress.com/2011/12/16/publishing-to-windows-azure-from-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27d3f15ba9242eae1078607670d81806?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kwanann</media:title>
		</media:content>

		<media:content url="http://jefferytay.files.wordpress.com/2011/12/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://jefferytay.files.wordpress.com/2011/12/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://jefferytay.files.wordpress.com/2011/12/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://jefferytay.files.wordpress.com/2011/12/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://jefferytay.files.wordpress.com/2011/12/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://jefferytay.files.wordpress.com/2011/12/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Azure TableServiceContext presents an error with CreateQuery function</title>
		<link>http://jefferytay.wordpress.com/2011/12/16/azure-tableservicecontext-presents-an-error-with-createquery-function/</link>
		<comments>http://jefferytay.wordpress.com/2011/12/16/azure-tableservicecontext-presents-an-error-with-createquery-function/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 02:47:12 +0000</pubDate>
		<dc:creator>kwanann</dc:creator>
				<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Azure]]></category>

		<guid isPermaLink="false">https://jefferytay.wordpress.com/?p=382</guid>
		<description><![CDATA[If you were using azure table storage and found the following error when writing the CreateQuery function does not contain a definition for&#8217; ‘CreateQuery’ and no extension method ‘CreateQuery’ accepting a first argument of type.. &#160; What is happening is that other than adding Microsoft.WindowsAzure.StorageClient, you aldo need to add System.Data.Services.Client, which Visual Studio actually [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=382&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you were using azure table storage and found the following error when writing the CreateQuery function</p>
<p><a href="http://jefferytay.files.wordpress.com/2011/12/image1.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://jefferytay.files.wordpress.com/2011/12/image_thumb1.png?w=490&#038;h=211" width="490" height="211" /></a></p>
<blockquote><p>does not contain a definition for&#8217; ‘CreateQuery’ and no extension method ‘CreateQuery’ accepting a first argument of type..</p>
</blockquote>
<p>&#160;</p>
<p>What is happening is that other than adding Microsoft.WindowsAzure.StorageClient, you aldo need to <strong>add System.Data.Services.Client</strong>, which Visual Studio actually tells you when you attempt to build the project.</p>
<p>&#160;</p>
<blockquote><p>Error&#160;&#160;&#160; 1&#160;&#160;&#160; The type &#8216;System.Data.Services.Client.DataServiceContext&#8217; is defined in an assembly that is not referenced. You must add a reference to assembly &#8216;System.Data.Services.Client, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&#8242;.&#160;&#160;&#160; </p>
</blockquote>
<p>&#160;</p>
<p>Once you added the reference, the error will automatically go away.</p>
<p>&#160;</p>
<p><em>Now if only there was an easy way to automatically add the missing reference in since Visual Studio knows the exact error and also what should be done..</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jefferytay.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jefferytay.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jefferytay.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jefferytay.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jefferytay.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jefferytay.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jefferytay.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jefferytay.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jefferytay.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jefferytay.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jefferytay.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jefferytay.wordpress.com/382/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jefferytay.wordpress.com/382/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jefferytay.wordpress.com/382/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=382&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jefferytay.wordpress.com/2011/12/16/azure-tableservicecontext-presents-an-error-with-createquery-function/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27d3f15ba9242eae1078607670d81806?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kwanann</media:title>
		</media:content>

		<media:content url="http://jefferytay.files.wordpress.com/2011/12/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows SQL Azure Firewall</title>
		<link>http://jefferytay.wordpress.com/2011/12/15/windows-sql-azure-firewall/</link>
		<comments>http://jefferytay.wordpress.com/2011/12/15/windows-sql-azure-firewall/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 02:57:59 +0000</pubDate>
		<dc:creator>kwanann</dc:creator>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">https://jefferytay.wordpress.com/?p=377</guid>
		<description><![CDATA[&#160; For those who are new to SQL Azure, there are firewall settings that you need to take note of when you first create a SQL Database. &#160; By default the firewall is set to block ALL external access &#160; So if you wish to enable ALL access (aka disable the firewall), you can use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=377&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>For those who are new to SQL Azure, there are firewall settings that you need to take note of when you first create a SQL Database.</p>
<p>&#160;</p>
<p>By default the firewall is set to block ALL external access</p>
<p>&#160;</p>
<p>So if you wish to enable ALL access (aka disable the firewall), you can use the following settings</p>
<p><a href="http://jefferytay.files.wordpress.com/2011/12/image.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;margin:0;" title="image" border="0" alt="image" src="http://jefferytay.files.wordpress.com/2011/12/image_thumb.png?w=244&#038;h=106" width="244" height="106" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jefferytay.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jefferytay.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jefferytay.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jefferytay.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jefferytay.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jefferytay.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jefferytay.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jefferytay.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jefferytay.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jefferytay.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jefferytay.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jefferytay.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jefferytay.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jefferytay.wordpress.com/377/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=377&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jefferytay.wordpress.com/2011/12/15/windows-sql-azure-firewall/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27d3f15ba9242eae1078607670d81806?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kwanann</media:title>
		</media:content>

		<media:content url="http://jefferytay.files.wordpress.com/2011/12/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Dealextreme Affliate</title>
		<link>http://jefferytay.wordpress.com/2011/12/09/dealextreme-affliate/</link>
		<comments>http://jefferytay.wordpress.com/2011/12/09/dealextreme-affliate/#comments</comments>
		<pubDate>Fri, 09 Dec 2011 07:04:06 +0000</pubDate>
		<dc:creator>kwanann</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jefferytay.wordpress.com/?p=370</guid>
		<description><![CDATA[if you are shopping at dealextreme, click this link and help me get some commission, thanks. http://www.dealextreme.com/default.dx/r.43428218<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=370&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>if you are shopping at dealextreme, click this link and help me get some commission, thanks.</p>
<p>http://www.dealextreme.com/default.dx/r.43428218</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jefferytay.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jefferytay.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jefferytay.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jefferytay.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jefferytay.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jefferytay.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jefferytay.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jefferytay.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jefferytay.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jefferytay.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jefferytay.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jefferytay.wordpress.com/370/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jefferytay.wordpress.com/370/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jefferytay.wordpress.com/370/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=370&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jefferytay.wordpress.com/2011/12/09/dealextreme-affliate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27d3f15ba9242eae1078607670d81806?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kwanann</media:title>
		</media:content>
	</item>
		<item>
		<title>What is this Cloud all about</title>
		<link>http://jefferytay.wordpress.com/2011/11/24/what-is-this-cloud-all-about/</link>
		<comments>http://jefferytay.wordpress.com/2011/11/24/what-is-this-cloud-all-about/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 04:33:44 +0000</pubDate>
		<dc:creator>kwanann</dc:creator>
				<category><![CDATA[Azure]]></category>

		<guid isPermaLink="false">http://jefferytay.wordpress.com/?p=371</guid>
		<description><![CDATA[The cloud term has been used in various forms over the last few Akamai had it with their cached storage, then came google and microsoft with their huge geographically dispersed data centres,and along came facebook. I&#8217;ve never really been a proponent of using the word cloud as i never felt that technology has advanced to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=371&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The cloud term has been used in various forms over the last few Akamai had it with their cached storage, then came google and microsoft with their huge geographically dispersed data centres,and along came facebook.</p>
<p>I&#8217;ve never really been a proponent of using the word cloud as i never felt that technology has advanced to such a stage. In the last 2 years, what cloud meant was that you pay for a &#8220;cloud&#8221; instance and then use it. This was what hosting companies have been doing for the last 5 years via virtual private server (VPS). The difference between VPS and cloud instances is that you are charged for everything you use in the cloud, VPS usually impose a monthly charge.</p>
<p>This to me is just server virtualization, and not a true cloud, there is still server administration that i need to take care of, which is not really what i should be doing.</p>
<p>Recently after getting my hands dirty with Microsoft Azure and new System Centre 2012 and Windows Server 8 offerings, i&#8217;m beginning to feel that Microsoft really does know the direction they are going with cloud. No longer is it server virtualization, it lets you host your app and scale your app. It is no longer really about having to do windows update, restarts, worrying about correct installation of the components, securing the server, it is just about my app, and how to make it run smoothly.</p>
<p>&nbsp;</p>
<p>This i feel is cloud, me as an app owner, managing my app, making it perform as best as it can, and leave the rest to a system that knows very well what it is doing.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jefferytay.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jefferytay.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jefferytay.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jefferytay.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jefferytay.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jefferytay.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jefferytay.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jefferytay.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jefferytay.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jefferytay.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jefferytay.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jefferytay.wordpress.com/371/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jefferytay.wordpress.com/371/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jefferytay.wordpress.com/371/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=371&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jefferytay.wordpress.com/2011/11/24/what-is-this-cloud-all-about/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27d3f15ba9242eae1078607670d81806?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kwanann</media:title>
		</media:content>
	</item>
		<item>
		<title>Eject and Close CD Tray command line utilities</title>
		<link>http://jefferytay.wordpress.com/2011/11/02/eject-and-close-cd-tray-command-line-utilities/</link>
		<comments>http://jefferytay.wordpress.com/2011/11/02/eject-and-close-cd-tray-command-line-utilities/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 00:28:04 +0000</pubDate>
		<dc:creator>kwanann</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://jefferytay.wordpress.com/?p=365</guid>
		<description><![CDATA[Been searching around the internet for a decent command line utility to eject or close the CD tray but can&#8217;t seem to find any. So i decided to write my own command line versions using visual studio 2010 and .net 4. Note that the actual code does not utilize any of .net 4 features so [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=365&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Been searching around the internet for a decent command line utility to eject or close the CD tray but can&#8217;t seem to find any. So i decided to write my own command line versions using visual studio 2010 and .net 4.</p>
<p>Note that the actual code does not utilize any of .net 4 features so you can easily take the same code and compile it against .net 1 or .net 2</p>
<p>The project is currently hosted in codeplex and can be found at <a href="http://ejectclosecdtray.codeplex.com/">http://ejectclosecdtray.codeplex.com/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jefferytay.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jefferytay.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jefferytay.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jefferytay.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jefferytay.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jefferytay.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jefferytay.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jefferytay.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jefferytay.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jefferytay.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jefferytay.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jefferytay.wordpress.com/365/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jefferytay.wordpress.com/365/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jefferytay.wordpress.com/365/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=365&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jefferytay.wordpress.com/2011/11/02/eject-and-close-cd-tray-command-line-utilities/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27d3f15ba9242eae1078607670d81806?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kwanann</media:title>
		</media:content>
	</item>
		<item>
		<title>Building resilient IT systems &#8211; IIS</title>
		<link>http://jefferytay.wordpress.com/2011/11/02/building-resilient-it-systems-iis/</link>
		<comments>http://jefferytay.wordpress.com/2011/11/02/building-resilient-it-systems-iis/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 17:12:37 +0000</pubDate>
		<dc:creator>kwanann</dc:creator>
				<category><![CDATA[Disaster Recovery]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Windows Server]]></category>

		<guid isPermaLink="false">http://jefferytay.wordpress.com/?p=362</guid>
		<description><![CDATA[History Another main component of windows systems is the Internet Information Services aka IIS. This is what runs the web applications which we are so familiar with today. &#160; Previously with IIS 6 and below, there is no easy way to synchronize the IIS metabase between 2 or more servers. The only way to do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=362&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>History</strong></p>
<p>Another main component of windows systems is the Internet Information Services aka IIS. This is what runs the web applications which we are so familiar with today.</p>
<p>&nbsp;</p>
<p>Previously with IIS 6 and below, there is no easy way to synchronize the IIS metabase between 2 or more servers. The only way to do that is to install the IIS metabase editor and do a copy and paste between the source and destination servers.</p>
<p>&nbsp;</p>
<p>With the introduction of IIS 7 and shared configuration, it is now possible to share the configuration between web servers so that the IIS running in all the servers are in sync and have the exact IIS configuration (assuming that the folder structure and user permissions are the same in all the web servers)</p>
<p>&nbsp;</p>
<p>You can use the file share method to point the other web servers to the primary web server, however this may mean that in the event that the primary server is down, the other web servers IIS configuration may not reflect correctly as well. One quick way to work around this is to use DFSR to replicate the IIS configuration folder across the servers and have IIS point to a local path instead.</p>
<p>&nbsp;</p>
<p><strong>How to build a resilient IIS (7.0 and above)<br />
</strong></p>
<p>In order to set up shared configuration, you can refer to this <a href="http://learn.iis.net/page.aspx/264/shared-configuration/" target="_blank">article</a> or this <a href="http://learn.iis.net/page.aspx/453/configuring-a-web-farm-using-iis-shared-configuration/" target="_blank">video</a> guide. In fact there are a whole lot of guide which can easily be found, but in general setting up shared configuration is extremely simple.</p>
<p>&nbsp;</p>
<p>An alternative to using DFSR can be found <a href="http://blogs.iis.net/wonyoo/archive/2009/01/12/setting-up-shared-configuration-on-iis-7-0.aspx" target="_blank">here</a>, where they use offline files to ensure the files are always available. Do note that in the comments, there are mentions that using DFSR might be a better option rather than offline files.<br />
Once you have shared configuration up and running, you will have multiple servers hosting the same IIS content. However this is purely hosting, you still need a load balancing appliance/application to perform the load balancing.</p>
<p>&nbsp;</p>
<p>To solve this, you can either use Windows network load balancing or a hardware load balancer box such as the likes from F5, NetApp, Radware  (in no particular order).</p>
<p>This <a href="http://blogs.iis.net/wonyoo/archive/2009/02/16/the-microsoft-application-request-routing-arr-version-1-for-iis7-has-been-released-to-web-rtw.aspx" target="_blank">link </a>explains how to use Microsoft Application Request Routing and in addition, the article provides 2 links somewhere at the end which teaches you how to integrate IIS with a hardware or software load balancer.</p>
<p>&nbsp;</p>
<p>The benefits of a load balancer appliance is that generally they offer something known as global load balancing, where you have your servers all over the world and the load balancer has the capability to load balance your requests across these servers</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jefferytay.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jefferytay.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jefferytay.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jefferytay.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jefferytay.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jefferytay.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jefferytay.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jefferytay.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jefferytay.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jefferytay.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jefferytay.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jefferytay.wordpress.com/362/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jefferytay.wordpress.com/362/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jefferytay.wordpress.com/362/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=362&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jefferytay.wordpress.com/2011/11/02/building-resilient-it-systems-iis/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27d3f15ba9242eae1078607670d81806?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kwanann</media:title>
		</media:content>
	</item>
		<item>
		<title>Building resilient IT systems &#8211; File Replication</title>
		<link>http://jefferytay.wordpress.com/2011/11/02/building-resilient-it-system/</link>
		<comments>http://jefferytay.wordpress.com/2011/11/02/building-resilient-it-system/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 16:25:44 +0000</pubDate>
		<dc:creator>kwanann</dc:creator>
				<category><![CDATA[Disaster Recovery]]></category>
		<category><![CDATA[Windows Server]]></category>

		<guid isPermaLink="false">http://jefferytay.wordpress.com/?p=360</guid>
		<description><![CDATA[Some history about the File Replication found in Windows Servers Since the days of Windows Server 2000, Microsoft has been providing distributed file system as an add on to the server systems. This service known as File Replication System (FRS) basically detects changed files and copies the entire file to all the servers associated with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=360&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Some history about the File Replication found in Windows Servers</strong></p>
<p>Since the days of Windows Server 2000, Microsoft has been providing distributed file system as an add on to the server systems.</p>
<p>This service known as File Replication System (FRS) basically detects changed files and copies the entire file to all the servers associated with the FRS.</p>
<p>&nbsp;</p>
<p>In Windows Server 2003 R2, Microsoft shipped an updated version of FRS known as Distributed File System Replication (DFSR) which detects the changes in the files and only copies these changes to the other servers, using a technology called Remote Differential Compression (RDC), along with giving you the ability to schedule network usage.</p>
<p>&nbsp;</p>
<p><em>One major caveat to using this technology is the fact that it only works with closed files It is not a suitable candidate for any files which are constantly opened e.g database files.</em></p>
<p>&nbsp;</p>
<p><strong>What is the purpose of DFS and DFSR<br />
</strong></p>
<p>Distributed File System aka DFS is the technology where you access a share via a domain name. So instead of the traditional \\server\fileshare, you will instead type \\domain\fileshare.</p>
<p>There are several purposes of DFS</p>
<ol>
<li><strong>Load balance usage</strong>: There is a limit to how many shares can be created and maintained by a single server, with DFS you can effectively load balance multiple servers to increase the number of available connections.</li>
<li><strong>Reduce network bandwidth</strong> (2003 R2 and above): Since only the changes are compressed and sent, it drastically reduces the amount of data that is being sent. Do note though that this comes at the expense of transmission speed and CPU clock cycles (Windows first needs to find the changes and then compress them before sending it over the pipe)</li>
<li><strong>Added redundancies</strong>: Althought DFS works with at least one server, adding an additional server effectively provides a basic form of redundancy to guard against single server failure. The cost to this then is that the storage requirement of any file is doubled or tripled depending on the number of servers participating in this share.</li>
<li><strong>Virtualize shares</strong>: Since you can effectively remap any share to a main domain share, you are able to then create your own share directory structure and DFS will automatically map it to the appropriate file share for you</li>
<li><strong>Ease of adding new hosts</strong>: Utilizing both DFS and DFSR, adding and synchronizing the new host is done with just a few clicks. DFSR will automatically synchronize the file contents for you in the backgroud</li>
<li><strong>Ease of recovery</strong>: Should you have a host that went down unexpectedly, once it is up, DFSR will automatically synchronize the changes to the host</li>
</ol>
<p>The main role of DFSR is purely to replicate the data for the various DFS shares. One of the main things to note is that although remote differential is good in a WAN setup, if your servers are all connected in a LAN (at least 1gbps), then it becomes a hindrance and you will do better to turn it off. The steps can be found <a title="Windows 2008 R2 DFS doesn’t seem to use all the bandwidth available" href="http://jefferytay.wordpress.com/2011/04/14/windows-2008-r2-dfs-doesnt-seem-to-use-all-the-bandwidth-available/" target="_blank">here</a>.</p>
<p>&nbsp;</p>
<p><strong>Guides to setup DFS</strong></p>
<p>There are already detailed steps for setting up DFS and DFSR for the various Windows Server editions at technet, just click on the server edition which you are using to get the guide.</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc732863%28WS.10%29.aspx" target="_blank">Windows Server 2008</a></p>
<p><a href="http://technet.microsoft.com/en-us/library/cc737358%28WS.10%29.aspx" target="_blank">Windows Server 2003 R2</a></p>
<p><a href="http://technet.microsoft.com/en-us/library/bb727150.aspx" target="_blank">Windows Server 2000</a></p>
<p>&nbsp;</p>
<p><strong>Important links you should take a look at before using DFS</strong></p>
<p><a href="http://technet.microsoft.com/en-us/library/cc782417%28WS.10%29.aspx" target="_blank">Technet : How DFS Works</a></p>
<p><a href="http://www.peersoftware.com/news/white_papers/DFS_LeveragingTheBenefitsAndFillingTheGaps.pdf" target="_blank">DFS Whitepaper</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jefferytay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jefferytay.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jefferytay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jefferytay.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jefferytay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jefferytay.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jefferytay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jefferytay.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jefferytay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jefferytay.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jefferytay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jefferytay.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jefferytay.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jefferytay.wordpress.com/360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jefferytay.wordpress.com&amp;blog=8893556&amp;post=360&amp;subd=jefferytay&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jefferytay.wordpress.com/2011/11/02/building-resilient-it-system/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/27d3f15ba9242eae1078607670d81806?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">kwanann</media:title>
		</media:content>
	</item>
	</channel>
</rss>
