<?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>Ajaxus place on the net</title>
	<atom:link href="http://ajaxus.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://ajaxus.net</link>
	<description>Newly published articles on web 2.0 topics and ASP.NET controls</description>
	<lastBuildDate>Thu, 15 Dec 2011 08:08:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Validate asp.net multiline TextBox</title>
		<link>http://ajaxus.net/validate-asp-net-multiline-textbox/</link>
		<comments>http://ajaxus.net/validate-asp-net-multiline-textbox/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 08:08:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET 3.5]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[multiline]]></category>
		<category><![CDATA[TextArea]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=546</guid>
		<description><![CDATA[Because it is rendered to TextArea the MaxLength property does not work. One way around this is to attach a regular expression validator to that control. What is important is to set the ValidationExpression to something like &#8220;^[\s\S]{0,255}$&#8220;. Where 255 &#8230;<p class="read-more"><a href="http://ajaxus.net/validate-asp-net-multiline-textbox/">Read more &#187;</a></p>
No related posts.]]></description>
			<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/validate-asp-net-multiline-textbox/"></g:plusone></div><p>Because it is rendered to TextArea the MaxLength property does not work. One way around this is to attach a regular expression validator to that control. What is important is to set the  ValidationExpression to something like &#8220;<strong>^[\s\S]{0,255}$</strong>&#8220;. Where 255 is the maximum length allowed.</p>
<p>Hope this helps <img src='http://ajaxus.net/wp-includes/images/smilies/icon_smile.gif' alt="icon smile Validate asp.net multiline TextBox" class='wp-smiley' title="Validate asp.net multiline TextBox" /> </p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/validate-asp-net-multiline-textbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is coming with VS2011 and Framework 4.5</title>
		<link>http://ajaxus.net/what-is-coming-with-vs2011-and-framework-4_5/</link>
		<comments>http://ajaxus.net/what-is-coming-with-vs2011-and-framework-4_5/#comments</comments>
		<pubDate>Sat, 24 Sep 2011 00:28:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET 4.5]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[vNext]]></category>
		<category><![CDATA[VS 2011]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=539</guid>
		<description><![CDATA[Read here from Scott Hanselman&#8217;s post. Download Links You likely only need this one download: Visual Studio 11 Developer Preview Visual Studio Team Foundation Server 11 Developer Preview Visual Studio Agents 11 Developer Preview Visual Studio 11 Developer Preview Remote &#8230;<p class="read-more"><a href="http://ajaxus.net/what-is-coming-with-vs2011-and-framework-4_5/">Read more &#187;</a></p>
Related posts:<ol>
<li><a href='http://ajaxus.net/what-is-the-difference-between-vb-9-vbx-and-silverlight-scott-wisniewski/' rel='bookmark' title='What is the difference between VB 9, VBx and Silverlight? (Scott Wisniewski)'>What is the difference between VB 9, VBx and Silverlight? (Scott Wisniewski)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/what-is-coming-with-vs2011-and-framework-4_5/"></g:plusone></div><p><img src="http://ajaxus.net/wp-content/uploads/2011/09/ASPNET_vNext.png" alt="ASPNET vNext What is coming with VS2011 and Framework 4.5" title="What is coming with VS2011 and Framework 4" width="198" height="145" class="alignleft size-full wp-image-540" />Read <a target="_blank" href="http://www.hanselman.com/blog/NewToolsAndNewContentASPNETVisualStudio11WebAndNET45DeveloperPreviewWithCommentary.aspx">here</a> from Scott Hanselman&#8217;s post.</p>
<h3>Download Links</h3>
<ul>
<li><strong>You likely only need this one download: <a href="http://go.microsoft.com/fwlink/?LinkId=225709">Visual Studio 11 Developer Preview</a></strong>
<ul>
<li><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Visual Studios - Living together" border="0" alt="image c0e3415f 6823 4c1f a405 099d87a9d0bf What is coming with VS2011 and Framework 4.5" src="http://www.hanselman.com/blog/content/binary/Windows-Live-Writer/ASP.NET-Visual-Studi.5-Developer-Preview_BB14/image_c0e3415f-6823-4c1f-a405-099d87a9d0bf.png" width="288" height="56" /> </li>
</ul>
</li>
<li><strong><a href="http://go.microsoft.com/fwlink/?LinkId=225714">Visual Studio Team Foundation Server 11 Developer Preview</a></strong> </li>
<li><strong><a href="http://go.microsoft.com/fwlink/?LinkId=225758">Visual Studio Agents 11 Developer Preview</a></strong> </li>
<li><strong><a href="http://go.microsoft.com/fwlink/?LinkId=225757">Visual Studio 11 Developer Preview Remote Debugger</a></strong> </li>
<li><strong><a href="http://go.microsoft.com/fwlink/?LinkId=225767">.NET Framework 4.5 Developer Preview</a></strong> </li>
</ul>
<p>Related posts:<ol>
<li><a href='http://ajaxus.net/what-is-the-difference-between-vb-9-vbx-and-silverlight-scott-wisniewski/' rel='bookmark' title='What is the difference between VB 9, VBx and Silverlight? (Scott Wisniewski)'>What is the difference between VB 9, VBx and Silverlight? (Scott Wisniewski)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/what-is-coming-with-vs2011-and-framework-4_5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Readmission to hospital within 28 days of discharge</title>
		<link>http://ajaxus.net/readmission-to-hospital-within-28-days-of-discharge/</link>
		<comments>http://ajaxus.net/readmission-to-hospital-within-28-days-of-discharge/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 11:02:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MS SQL]]></category>
		<category><![CDATA[28 readmissins]]></category>
		<category><![CDATA[HES]]></category>
		<category><![CDATA[NHS]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=525</guid>
		<description><![CDATA[This is very common question when we deal with patients in NHS data. Here is how the task is defined &#8211; Readmission rates and HES. In short we need to know how many times(or when) a patient was readmitted within &#8230;<p class="read-more"><a href="http://ajaxus.net/readmission-to-hospital-within-28-days-of-discharge/">Read more &#187;</a></p>
No related posts.]]></description>
			<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/readmission-to-hospital-within-28-days-of-discharge/"></g:plusone></div><p>This is very common question when we deal with patients in NHS data. Here is how the task is defined &#8211; <a target="_blank" href="http://www.hesonline.nhs.uk/Ease/servlet/ContentServer?siteID=1937&#038;categoryID=927">Readmission rates and HES</a>. In short we need to know how many times(or when) a patient was readmitted within 28 days of his last hospital discharge. Here is how I do that in SQL with self join.</p>
<p>The dates are being transferred from &#8220;DDMMYYYY&#8221; to SQL server datetime &#8220;YYYY-mm-dd&#8221;.</p>
<p>You can always ad disease code or any other conditions to the query. Hope it helps!</p>
<p>The columns are:<br />
[Column 8] &#8211; Patient identifier<br />
[Column 11] &#8211; Admission date<br />
[Column 15] &#8211; Method of admission<br />
[Column 19] &#8211; Discharge date<br />
[Column 28] &#8211; Spell end &#8211; Yes/No<br />
[Column 123] &#8211; PCT code<br />
[Column 187] &#8211; Unique record ID</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#93;</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">'PatientID'</span><span style="color: #66cc66;">,</span> a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">15</span><span style="color: #66cc66;">&#93;</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">'Method of Admission'</span><span style="color: #66cc66;">,</span>
<span style="color: #993333; font-weight: bold;">CONVERT</span><span style="color: #66cc66;">&#40;</span>datetime<span style="color: #66cc66;">,</span> STUFF<span style="color: #66cc66;">&#40;</span>STUFF<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">11</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">6</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">'Admission Date'</span><span style="color: #66cc66;">,</span>
<span style="color: #993333; font-weight: bold;">CONVERT</span><span style="color: #66cc66;">&#40;</span>datetime<span style="color: #66cc66;">,</span> STUFF<span style="color: #66cc66;">&#40;</span>STUFF<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">19</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">6</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">'Dischrage Date'</span><span style="color: #66cc66;">,</span>
<span style="color: #993333; font-weight: bold;">MIN</span><span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">CONVERT</span><span style="color: #66cc66;">&#40;</span>datetime<span style="color: #66cc66;">,</span> STUFF<span style="color: #66cc66;">&#40;</span>STUFF<span style="color: #66cc66;">&#40;</span>b<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">11</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">6</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">'Readmission Date'</span><span style="color: #66cc66;">,</span>
<span style="color: #993333; font-weight: bold;">LEFT</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">123</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">'PCT'</span><span style="color: #66cc66;">,</span>
DateDiff<span style="color: #66cc66;">&#40;</span>dd<span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CONVERT</span><span style="color: #66cc66;">&#40;</span>datetime<span style="color: #66cc66;">,</span> STUFF<span style="color: #66cc66;">&#40;</span>STUFF<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">19</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">6</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">MIN</span><span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">CONVERT</span><span style="color: #66cc66;">&#40;</span>datetime<span style="color: #66cc66;">,</span> STUFF<span style="color: #66cc66;">&#40;</span>STUFF<span style="color: #66cc66;">&#40;</span>b<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">11</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">6</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> <span style="color: #ff0000;">'How many days'</span>
<span style="color: #993333; font-weight: bold;">FROM</span> Readmissions_data a
<span style="color: #993333; font-weight: bold;">INNER</span> <span style="color: #993333; font-weight: bold;">JOIN</span> Readmissions_data b <span style="color: #993333; font-weight: bold;">ON</span> a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">=</span> b<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#93;</span>
	<span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #993333; font-weight: bold;">CONVERT</span><span style="color: #66cc66;">&#40;</span>datetime<span style="color: #66cc66;">,</span> STUFF<span style="color: #66cc66;">&#40;</span>STUFF<span style="color: #66cc66;">&#40;</span>b<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">11</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">6</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">BETWEEN</span> <span style="color: #993333; font-weight: bold;">CONVERT</span><span style="color: #66cc66;">&#40;</span>datetime<span style="color: #66cc66;">,</span> STUFF<span style="color: #66cc66;">&#40;</span>STUFF<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">19</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">6</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AND</span> DATEADD<span style="color: #66cc66;">&#40;</span>dd<span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">28</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">CONVERT</span><span style="color: #66cc66;">&#40;</span>datetime<span style="color: #66cc66;">,</span> STUFF<span style="color: #66cc66;">&#40;</span>STUFF<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">19</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">6</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">WHERE</span> a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">28</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'Y'</span> <span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">19</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&lt;&gt;</span><span style="color: #ff0000;">''</span> <span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">RIGHT</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">19</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'09'</span> <span style="color: #993333; font-weight: bold;">OR</span> <span style="color: #993333; font-weight: bold;">RIGHT</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">19</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'10'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">187</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&lt;&gt;</span>b<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">187</span><span style="color: #66cc66;">&#93;</span>
<span style="color: #993333; font-weight: bold;">GROUP</span> <span style="color: #993333; font-weight: bold;">BY</span> a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">8</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">15</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">LEFT</span><span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">123</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">CONVERT</span><span style="color: #66cc66;">&#40;</span>datetime<span style="color: #66cc66;">,</span> STUFF<span style="color: #66cc66;">&#40;</span>STUFF<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">11</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">6</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">CONVERT</span><span style="color: #66cc66;">&#40;</span>datetime<span style="color: #66cc66;">,</span> STUFF<span style="color: #66cc66;">&#40;</span>STUFF<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">19</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">6</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">ORDER</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #993333; font-weight: bold;">CONVERT</span><span style="color: #66cc66;">&#40;</span>datetime<span style="color: #66cc66;">,</span> STUFF<span style="color: #66cc66;">&#40;</span>STUFF<span style="color: #66cc66;">&#40;</span>a<span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span><span style="color: #993333; font-weight: bold;">COLUMN</span> <span style="color: #cc66cc;">11</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">3</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">6</span><span style="color: #66cc66;">,</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">'-'</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">105</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/readmission-to-hospital-within-28-days-of-discharge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clean whole database from unwanted string</title>
		<link>http://ajaxus.net/clean-whole-database-from-unwanted-string/</link>
		<comments>http://ajaxus.net/clean-whole-database-from-unwanted-string/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 12:43:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[MS SQL]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=518</guid>
		<description><![CDATA[Often we end up having an unwanted string injected into our database. It might be a virus or any text that you don&#8217;t need. This stored procedure is doing the hard work to remove all the unwanted instances. SET ANSI_NULLS &#8230;<p class="read-more"><a href="http://ajaxus.net/clean-whole-database-from-unwanted-string/">Read more &#187;</a></p>
No related posts.]]></description>
			<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/clean-whole-database-from-unwanted-string/"></g:plusone></div><p>Often we end up having an unwanted string injected into our database. It might be a virus or any text that you don&#8217;t need. This stored procedure is doing the hard work to remove all the unwanted instances.</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SET</span> ANSI_NULLS <span style="color: #993333; font-weight: bold;">ON</span>
<span style="color: #993333; font-weight: bold;">GO</span>
<span style="color: #993333; font-weight: bold;">SET</span> QUOTED_IDENTIFIER <span style="color: #993333; font-weight: bold;">ON</span>
<span style="color: #993333; font-weight: bold;">GO</span>
<span style="color: #993333; font-weight: bold;">ALTER</span> PROC <span style="color: #66cc66;">&#91;</span>dbo<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">.</span><span style="color: #66cc66;">&#91;</span>UpdateAllTables<span style="color: #66cc66;">&#93;</span>
<span style="color: #66cc66;">&#40;</span>
	@SearchStr nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">AS</span>
<span style="color: #993333; font-weight: bold;">BEGIN</span>
&nbsp;
	<span style="color: #993333; font-weight: bold;">SET</span> NOCOUNT <span style="color: #993333; font-weight: bold;">ON</span>
&nbsp;
	<span style="color: #993333; font-weight: bold;">DECLARE</span> @TableName nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">256</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> @ColumnName nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">128</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> @SearchStr2 nvarchar<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">110</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #993333; font-weight: bold;">SET</span>  @TableName <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">''</span>
	<span style="color: #993333; font-weight: bold;">SET</span> @SearchStr2 <span style="color: #66cc66;">=</span> QUOTENAME<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'%'</span> <span style="color: #66cc66;">+</span> @SearchStr <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">'%'</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">''</span><span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #993333; font-weight: bold;">SET</span> @SearchStr <span style="color: #66cc66;">=</span> QUOTENAME<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">''</span> <span style="color: #66cc66;">+</span> @SearchStr <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">''</span><span style="color: #66cc66;">,</span><span style="color: #ff0000;">''</span><span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
	WHILE @TableName <span style="color: #993333; font-weight: bold;">IS</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>
	<span style="color: #993333; font-weight: bold;">BEGIN</span>
		<span style="color: #993333; font-weight: bold;">SET</span> @ColumnName <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">''</span>
		<span style="color: #993333; font-weight: bold;">SET</span> @TableName <span style="color: #66cc66;">=</span> 
		<span style="color: #66cc66;">&#40;</span>
			<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">MIN</span><span style="color: #66cc66;">&#40;</span>QUOTENAME<span style="color: #66cc66;">&#40;</span>TABLE_SCHEMA<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">'.'</span> <span style="color: #66cc66;">+</span> QUOTENAME<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">TABLE_NAME</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #993333; font-weight: bold;">FROM</span> 	INFORMATION_SCHEMA<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">TABLES</span>
			<span style="color: #993333; font-weight: bold;">WHERE</span> 		TABLE_TYPE <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'BASE TABLE'</span>
				<span style="color: #993333; font-weight: bold;">AND</span>	QUOTENAME<span style="color: #66cc66;">&#40;</span>TABLE_SCHEMA<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">'.'</span> <span style="color: #66cc66;">+</span> QUOTENAME<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">TABLE_NAME</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&gt;</span> @TableName
				<span style="color: #993333; font-weight: bold;">AND</span>	OBJECTPROPERTY<span style="color: #66cc66;">&#40;</span>
						OBJECT_ID<span style="color: #66cc66;">&#40;</span>
							QUOTENAME<span style="color: #66cc66;">&#40;</span>TABLE_SCHEMA<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">'.'</span> <span style="color: #66cc66;">+</span> QUOTENAME<span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">TABLE_NAME</span><span style="color: #66cc66;">&#41;</span>
							 <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'IsMSShipped'</span>
						       <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">0</span>
		<span style="color: #66cc66;">&#41;</span>
&nbsp;
		WHILE <span style="color: #66cc66;">&#40;</span>@TableName <span style="color: #993333; font-weight: bold;">IS</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AND</span> <span style="color: #66cc66;">&#40;</span>@ColumnName <span style="color: #993333; font-weight: bold;">IS</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #993333; font-weight: bold;">BEGIN</span>
			<span style="color: #993333; font-weight: bold;">SET</span> @ColumnName <span style="color: #66cc66;">=</span>
			<span style="color: #66cc66;">&#40;</span>
				<span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #993333; font-weight: bold;">MIN</span><span style="color: #66cc66;">&#40;</span>QUOTENAME<span style="color: #66cc66;">&#40;</span>COLUMN_NAME<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
				<span style="color: #993333; font-weight: bold;">FROM</span> 	INFORMATION_SCHEMA<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">COLUMNS</span>
				<span style="color: #993333; font-weight: bold;">WHERE</span> 		TABLE_SCHEMA	<span style="color: #66cc66;">=</span> PARSENAME<span style="color: #66cc66;">&#40;</span>@TableName<span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span>
					<span style="color: #993333; font-weight: bold;">AND</span>	<span style="color: #993333; font-weight: bold;">TABLE_NAME</span>	<span style="color: #66cc66;">=</span> PARSENAME<span style="color: #66cc66;">&#40;</span>@TableName<span style="color: #66cc66;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
					<span style="color: #993333; font-weight: bold;">AND</span>	DATA_TYPE <span style="color: #993333; font-weight: bold;">IN</span> <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'char'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'varchar'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'nchar'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'nvarchar'</span><span style="color: #66cc66;">&#41;</span>
					<span style="color: #993333; font-weight: bold;">AND</span>	QUOTENAME<span style="color: #66cc66;">&#40;</span>COLUMN_NAME<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&gt;</span> @ColumnName
			<span style="color: #66cc66;">&#41;</span>
&nbsp;
			<span style="color: #993333; font-weight: bold;">IF</span> @ColumnName <span style="color: #993333; font-weight: bold;">IS</span> <span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">NULL</span>
			<span style="color: #993333; font-weight: bold;">BEGIN</span>
				<span style="color: #993333; font-weight: bold;">EXEC</span>
				<span style="color: #66cc66;">&#40;</span>
					<span style="color: #ff0000;">'UPDATE '</span> <span style="color: #66cc66;">+</span> @TableName <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">' SET '</span> <span style="color: #66cc66;">+</span> @ColumnName <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">'=REPLACE('</span> <span style="color: #66cc66;">+</span> @ColumnName <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">','</span><span style="color: #66cc66;">+</span> @SearchStr <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">','</span><span style="color: #ff0000;">''</span><span style="color: #ff0000;">') WHERE '</span> <span style="color: #66cc66;">+</span> @ColumnName <span style="color: #66cc66;">+</span> <span style="color: #ff0000;">' LIKE '</span> <span style="color: #66cc66;">+</span> @SearchStr2
				<span style="color: #66cc66;">&#41;</span>
			<span style="color: #993333; font-weight: bold;">END</span>
		<span style="color: #993333; font-weight: bold;">END</span>	
	<span style="color: #993333; font-weight: bold;">END</span>
&nbsp;
<span style="color: #993333; font-weight: bold;">END</span></pre></div></div>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/clean-whole-database-from-unwanted-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thursdays links part 2</title>
		<link>http://ajaxus.net/thursdays-links-part-2/</link>
		<comments>http://ajaxus.net/thursdays-links-part-2/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 22:24:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=516</guid>
		<description><![CDATA[What is Node.js? Let&#8217;s start with V8. V8 is the JavaScript implementation used within Chrome. It utilises &#8220;Just In Time&#8221; compilation to achieve performance that was previously unattainable in JavaScript. In fact, these improvements lift V8 JavaScript into the same &#8230;<p class="read-more"><a href="http://ajaxus.net/thursdays-links-part-2/">Read more &#187;</a></p>
No related posts.]]></description>
			<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/thursdays-links-part-2/"></g:plusone></div><p><a href="http://blogs.msdn.com/b/ukmsdn/archive/2011/06/01/featured-article-hello-node.aspx" target="_blank">What is Node.js?</a> </p>
<blockquote><p>Let&#8217;s start with V8. V8 is the JavaScript implementation used within Chrome. It utilises &#8220;Just In Time&#8221; compilation to achieve performance that was previously unattainable in JavaScript. In fact, these improvements lift V8 JavaScript into the same realms of performance as Clojure, Java or Go.</p></blockquote>
<p><a href="http://www.hanselman.com/blog/ShouldIUseHTML5OrSilverlightOneMansOpinion.aspx" target="_blank">Should I use HTML5 or Silverlight?</a></p>
<blockquote><p>I was in Belgium and The Netherlands this last week presenting and talking to folks in the community. After I presented on ASP.NET MVC 3, HTML5 and jQuery, one fellow came up after and said, &#8220;Should I use Silverlight or HTML5. I don&#8217;t understand what Microsoft&#8217;s strategy is or what to use in my app.&#8221;</p></blockquote>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/thursdays-links-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thursdays links</title>
		<link>http://ajaxus.net/thursdays-links/</link>
		<comments>http://ajaxus.net/thursdays-links/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 10:39:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[Sencha]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=514</guid>
		<description><![CDATA[Countdown to Ext JS 4: Drawing and Charting Build a Data-Driven Enterprise Web Site in 5 Minutes Understanding the Dynamic Keyword in C# 4 Related posts: Couple of interesting links
Related posts:<ol>
<li><a href='http://ajaxus.net/couple-of-interesting-links/' rel='bookmark' title='Couple of interesting links'>Couple of interesting links</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/thursdays-links/"></g:plusone></div><p><a target="_blank" rel="nofollow" href="http://www.sencha.com/blog/ext-js-4-preview-drawing-and-charting/">Countdown to Ext JS 4: Drawing and Charting</a></p>
<p><a target="_blank" rel="nofollow" href="http://msdn.microsoft.com/en-gb/magazine/gg535665.aspx">Build a Data-Driven Enterprise Web Site in 5 Minutes</a></p>
<p><a target="_blank" rel="nofollow" href="http://msdn.microsoft.com/en-gb/magazine/gg598922.aspx">Understanding the Dynamic Keyword in C# 4</a></p>
<p>Related posts:<ol>
<li><a href='http://ajaxus.net/couple-of-interesting-links/' rel='bookmark' title='Couple of interesting links'>Couple of interesting links</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/thursdays-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programming Windows Phone 7 Free eBook</title>
		<link>http://ajaxus.net/programming-windows-phone-7-free-ebook/</link>
		<comments>http://ajaxus.net/programming-windows-phone-7-free-ebook/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 17:05:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows Phone 7]]></category>
		<category><![CDATA[Charles Petzold]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=511</guid>
		<description><![CDATA[This book is from the famous Charles Petzold. Here is the introduction: This book is a gift from the Windows Phone 7 team at Microsoft to the programming community, and I am proud to have been a part of it. &#8230;<p class="read-more"><a href="http://ajaxus.net/programming-windows-phone-7-free-ebook/">Read more &#187;</a></p>
No related posts.]]></description>
			<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/programming-windows-phone-7-free-ebook/"></g:plusone></div><p><img src="http://ajaxus.net/wp-content/uploads/2010/12/ProgWinPhone7-246x300.jpg" alt="ProgWinPhone7 246x300 Programming Windows Phone 7 Free eBook" title="Programming Windows Phone 7 Free eBook" width="246" height="300" class="alignleft size-medium wp-image-512" />This book is from the famous Charles Petzold. Here is the introduction:</p>
<blockquote><p>This book is a gift from the Windows Phone 7 team at Microsoft to the programming community, and I am proud to have been a part of it. Within the pages that follow, I show you the basics of writing applications for Windows Phone 7 using the C# programming language with the Silverlight and XNA 2D frameworks.<br />
Yes, Programming Windows Phone 7 is truly a free download, but for those readers who still love paper—as I certainly do—this book will also be available (for sale) divided into two fully-indexed print editions: Microsoft Silverlight Programming for Windows Phone 7 and Microsoft XNA Framework Programming for Windows Phone 7.<br />
With the money you’ve saved downloading this book, please buy other books. Despite the plethora of information available online, books are still the best way to learn about programming within a coherent and cohesive tutorial narrative. Every book sale brings a tear of joy to an author’s eye, so please help make them weep overflowing rivers.<br />
In particular, you might want to buy other books to supplement the material in this book. For example, I barely mention Web services in this book, and that’s a serious deficiency because Web services are likely to become increasingly important in Windows Phone 7 applications. My coverage of XNA is limited to 2D graphics and while I hope to add several 3D chapters in the next edition of this book, I don’t really get into the whole Xbox LIVE community aspect of game development. Nor do I discuss any programming tools beyond Visual Studio—not even Expression Blend.<br />
My publisher Microsoft Press has a couple additional Windows Phone 7 books coming soon: Windows Phone 7 Silverlight Development Step by Step by Andy Wigley &#038; Peter Foot offers a more tools-oriented approach. Although Michael Stroh’s Windows Phone 7 Plain &#038; Simple is a guide to using the phone rather than developing for it, I suspect it will give developers some insights and ideas.<br />
Moreover, I also hear that my old friend Doug Boling is working hard on a Windows Phone 7 enterprise-programming book that is likely to be considered his masterpiece. Be sure to check out that one.</p></blockquote>
<p>To download click <a target="_blank" href="http://download.microsoft.com/download/5/0/A/50A39509-D015-410F-A8F2-A5511E5A988D/Microsoft_Press_ebook_Programming_Windows_Phone_7_PDF.pdf">here</a>.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/programming-windows-phone-7-free-ebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Tips for Writing Quality Code</title>
		<link>http://ajaxus.net/10-tips-for-writing-quality-code/</link>
		<comments>http://ajaxus.net/10-tips-for-writing-quality-code/#comments</comments>
		<pubDate>Wed, 20 Oct 2010 07:30:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quality Code]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=504</guid>
		<description><![CDATA[Pre-Development &#8211; Gather all the requirements from clients up front. Schorr recommends thinking of these in terms of &#8220;stories&#8221; as &#8220;it&#8217;s more in line with how the non-developer thinks.&#8221; &#8211; Clarify what is necessary and what&#8217;s just &#8220;nice-to-have.&#8221; &#8211; Refuse &#8230;<p class="read-more"><a href="http://ajaxus.net/10-tips-for-writing-quality-code/">Read more &#187;</a></p>
No related posts.]]></description>
			<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/10-tips-for-writing-quality-code/"></g:plusone></div><p><img src="http://ajaxus.net/wp-content/uploads/2010/10/quality_code_matrix.jpg" alt="quality code matrix 10 Tips for Writing Quality Code" title="10 Tips for Writing Quality Code" width="150" height="150" class="alignright size-full wp-image-505" /><strong>Pre-Development</strong><br />
 &#8211; Gather all the requirements from clients up front. Schorr recommends thinking of these in terms of &#8220;stories&#8221; as &#8220;it&#8217;s more in line with how the non-developer thinks.&#8221;<br />
 &#8211; Clarify what is necessary and what&#8217;s just &#8220;nice-to-have.&#8221;<br />
 &#8211; Refuse to reproduce lousy code. In other words, turn down work if you&#8217;re going to be asked to reproduce a poorly designed system &#8211; unless you are being given the freedom to do it right. (This begs the question, of course: How do you define &#8220;lousy code&#8221;?)<br />
 &#8211; Reject unrealistic timelines<br />
<strong>Development</strong><br />
 &#8211; Out-engineer user-error as much as possible. &#8220;In other words,&#8221; writes Schorr, &#8220;never trust that the user will do what you expect, especially when entering data.&#8221;<br />
 &#8211; Be open to including other languages and technologies where appropriate.<br />
 &#8211; Don&#8217;t reinvent the wheel.<br />
<strong>Post-Development</strong><br />
 &#8211; Review your code for speed, stability, security, and usability.<br />
 &#8211; Have non-technical people do real-world testing on your product.<br />
 &#8211; Revisit old code periodically and see what you would&#8217;ve done differently.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/10-tips-for-writing-quality-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Silverlight 4 and SharePoint 2010 Integration</title>
		<link>http://ajaxus.net/microsoft-silverlight-4-and-sharepoint-2010-integration/</link>
		<comments>http://ajaxus.net/microsoft-silverlight-4-and-sharepoint-2010-integration/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 07:44:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Microsoft Silverlight 4]]></category>
		<category><![CDATA[RIA]]></category>
		<category><![CDATA[SharePoint 2010]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=500</guid>
		<description><![CDATA[Download free chapter which consists of 42 pages from here. Techniques, practical tips, hints, and tricks for Silverlight interactions with SharePoint Develop Silverlight RIAs that interact with SharePoint 2010 data and services Explore the diverse alternatives for hosting a Silverlight &#8230;<p class="read-more"><a href="http://ajaxus.net/microsoft-silverlight-4-and-sharepoint-2010-integration/">Read more &#187;</a></p>
Related posts:<ol>
<li><a href='http://ajaxus.net/silverlight-has-jus-been-anounced/' rel='bookmark' title='Silverlight has jus been anounced!'>Silverlight has jus been anounced!</a></li>
<li><a href='http://ajaxus.net/rich-internet-application-technology-comparison-ajax-flash-silverlight/' rel='bookmark' title='Rich Internet Application Technology Comparison: AJAX, Flash, Silverlight'>Rich Internet Application Technology Comparison: AJAX, Flash, Silverlight</a></li>
<li><a href='http://ajaxus.net/scott-guthries-silverlights-thoughts/' rel='bookmark' title='Scott Guthrie&#8217;s Silverlights thoughts'>Scott Guthrie&#8217;s Silverlights thoughts</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/microsoft-silverlight-4-and-sharepoint-2010-integration/"></g:plusone></div><p>Download free chapter which consists of 42 pages from <a href="http://ajaxus.net/wp-content/uploads/2010/09/chapter1.pdf" target="_blank"><strong>here</strong></a>.</p>
<p><P>Techniques, practical tips, hints, and tricks for Silverlight interactions with SharePoint </p>
<ul>
<li> Develop Silverlight RIAs that interact with SharePoint 2010 data and services</li>
<li>Explore the diverse alternatives for hosting a Silverlight RIA in a SharePoint 2010 Page </li>
<li>Work with the new SharePoint Silverlight Client Object Model to interact with elements in a SharePoint Site </li>
<li>Use Visual Studio 2010&#8242;s new features to debug Silverlight RIAs that interact with SharePoint 2010 </li>
<li>Learn to perform CRUD (Create, Read, Update, and Delete) operations on SharePoint 2010 lists from Silverlight </li>
<li>Access and interact with external data sources and WCF Data Services</li>
<li>Use themes and work with multiple interactive animations and effects to create distinct User eXperiences (UX) in a SharePoint environment</li>
<li>Develop Silverlight RIAs that interact with SharePoint Visual Web Parts</li>
<li>A step-by-step, fast-paced book that guides you in implementing Silverlight 4 applications in SharePoint 2010 environments</li>
</ul>
<p>  <P><b>In Detail</b></p>
<p>  <P>Silverlight is a powerful development platform for creating engaging, interactive user experiences for the Web, desktop, and mobile applications. Integrating Silverlight RIAs in SharePoint 2010 offers amazing opportunities to combine the power and flexibility offered by SharePoint. It is easy to create great user experiences when you have a step-by-step guide to implement Silverlight 4 applications on SharePoint 2010 sites.</p>
<p>  <P>This book is not a primer on Silverlight 4 or SharePoint 2010. This book focuses on the integration of Silverlight 4 and SharePoint 2010 and provides step-by-step guidelines for implementing Silverlight RIAs in SharePoint. It is filled with real-world examples that depict the various techniques for interacting with data and services provided by this powerful business collaboration platform, for the enterprise and the Internet. As you sit reading this, you might have already started thinking about the benefits of implementing multiple Silverlight applications in a SharePoint environment. This book will help bring those thoughts to fruition.</p>
<p>  <P>This book begins with the fundamental concepts of integrating Silverlight 4 with SharePoint 2010, such as the preparation of the development environment to create applications using Silverlight 4 and the addition of one or more Silverlight RIAs to a SharePoint site. Then, it moves on to the SharePoint Silverlight Client Object Model world, using step-by-step examples to combine a Silverlight application and a SharePoint module. It also covers methods to deploy and debug the Silverlight application while it runs as Silverlight Web Part in a SharePoint page. The book teaches you to take advantage of the new features offered by Visual Studio 2010 to browse SharePoint lists. </p>
<p>  <P>Once the reader has control over the SharePoint Silverlight Client Object Model and its asynchronous operations in Silverlight applications, it is time to access external databases through the new Business Connectivity Services (BCS) and interact with workflows. Then, the book explains to perform CRUD operations by consuming the new SharePoint 2010 WCF Data Services in Silverlight. In the end, you&#8217;ll learn to utilize Silverlight 4&#8242;s rich media features to add effects and interactive animations to images and videos, thus offering the final touches to the Silverlight 4 and SharePoint 2010 integration learning experience.</p>
<p>  <P> By the end of this book, you&#8217;ll learn to take advantage of the unique features offered by Silverlight in order to create impressive UX that interact with SharePoint 2010.</p>
<p>  <P>A hands-on guide packed with real-world examples for integrating your Silverlight 4 applications in a SharePoint 2010 environment.</p>
<p>Related posts:<ol>
<li><a href='http://ajaxus.net/silverlight-has-jus-been-anounced/' rel='bookmark' title='Silverlight has jus been anounced!'>Silverlight has jus been anounced!</a></li>
<li><a href='http://ajaxus.net/rich-internet-application-technology-comparison-ajax-flash-silverlight/' rel='bookmark' title='Rich Internet Application Technology Comparison: AJAX, Flash, Silverlight'>Rich Internet Application Technology Comparison: AJAX, Flash, Silverlight</a></li>
<li><a href='http://ajaxus.net/scott-guthries-silverlights-thoughts/' rel='bookmark' title='Scott Guthrie&#8217;s Silverlights thoughts'>Scott Guthrie&#8217;s Silverlights thoughts</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/microsoft-silverlight-4-and-sharepoint-2010-integration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New stuff in ASP.NET world!</title>
		<link>http://ajaxus.net/new-stuff-in-aspnet-world/</link>
		<comments>http://ajaxus.net/new-stuff-in-aspnet-world/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 10:10:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[ASP.NET “Razor”]]></category>
		<category><![CDATA[IIS Developer Express]]></category>
		<category><![CDATA[SQL Server Compact Edition]]></category>
		<category><![CDATA[WebMatrix]]></category>

		<guid isPermaLink="false">http://ajaxus.net/?p=498</guid>
		<description><![CDATA[Last week Scott Gu posted about several new things coming up onto the ASP.NET scene. They are: IIS Developer Express: A lightweight web-server that is simple to setup, free, works with all versions of Windows, and is compatible with the &#8230;<p class="read-more"><a href="http://ajaxus.net/new-stuff-in-aspnet-world/">Read more &#187;</a></p>
Related posts:<ol>
<li><a href='http://ajaxus.net/creating-packaged-aspnet-setup-programs-with-vs-2005/' rel='bookmark' title='Creating Packaged ASP.NET Setup Programs with VS 2005'>Creating Packaged ASP.NET Setup Programs with VS 2005</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div name="googleone_share_1" style="position:relative;z-index:5;float: right; margin-left: 10px;"><g:plusone size="medium" count="1" href="http://ajaxus.net/new-stuff-in-aspnet-world/"></g:plusone></div><p>Last week Scott Gu posted about several new things coming up onto the ASP.NET scene. They are:</p>
<p><strong>IIS Developer Express</strong>: A lightweight web-server that is simple to setup, free, works with all versions of Windows, and is compatible with the full IIS 7.5.</p>
<p><strong>SQL Server Compact Edition</strong>: A lightweight file-based database that is simple to setup, free, can be embedded within your ASP.NET applications, supports low-cost hosting environments, and enables databases to be optionally migrated to SQL Server.</p>
<p><strong>ASP.NET “Razor”</strong>: A new view-engine option for ASP.NET that enables a code-focused templating syntax optimized around HTML generation.  You can use “Razor” to easily embed VB or C# within HTML.  It’s syntax is easy to write, simple to learn, and works with any text editor.</p>
<p><strong>WebMatrix:</strong> A new lightweight web development tool that also integrates the above technologies, and makes it even easier for people to get started with web development using ASP.NET.  This tool is free, provides core coding and database support, integrates with an open source web application gallery, and includes support to easily publish/deploy sites and applications to web hosting providers.</p>
<p>Related posts:<ol>
<li><a href='http://ajaxus.net/creating-packaged-aspnet-setup-programs-with-vs-2005/' rel='bookmark' title='Creating Packaged ASP.NET Setup Programs with VS 2005'>Creating Packaged ASP.NET Setup Programs with VS 2005</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://ajaxus.net/new-stuff-in-aspnet-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

