<?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>All About Unidev &#187; George Zheng</title>
	<atom:link href="http://blog.unidev.com/index.php/author/gzheng/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.unidev.com</link>
	<description>Custom Software, Website and Mobile Development News</description>
	<lastBuildDate>Wed, 25 Jan 2012 20:54:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PHP &#8211; problem trying to connect with Informix on IIS</title>
		<link>http://blog.unidev.com/index.php/2010/07/07/php-problem-trying-to-connect-with-informix-on-iis/</link>
		<comments>http://blog.unidev.com/index.php/2010/07/07/php-problem-trying-to-connect-with-informix-on-iis/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 22:06:44 +0000</pubDate>
		<dc:creator>George Zheng</dc:creator>
				<category><![CDATA[General Technology]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Informix]]></category>

		<guid isPermaLink="false">http://blog.unidev.com/?p=249</guid>
		<description><![CDATA[I was working on a project which needs PHP talk to Informix database on Windows platform. After installed IBM Informix Client_SDK, included PHP extension php_ifx.dll, and use following command to connect to Informix: $sync_link_id = ifx_connect($database, $username, $password); I got following error: [SQLSTATE=IX 000 SQLCODE=-25560] If you check Informix document from IBM, you know Environment [...]]]></description>
			<content:encoded><![CDATA[<p>I was working on a project which needs PHP talk to Informix database on Windows platform. After installed IBM Informix Client_SDK, included PHP extension php_ifx.dll, and use following command to connect to Informix:</p>
<p><em>$sync_link_id = ifx_connect($database, $username, $password);</em></p>
<p>I got following error:</p>
<p><strong>[SQLSTATE=IX 000  SQLCODE=-25560]</strong></p>
<p>If you check <a href="http://publib.boulder.ibm.com/infocenter/idshelp/v115/index.jsp"><span style="text-decoration: underline;">Informix document</span></a> from IBM, you know Environment variable INFORMIXSERVER must be set. We know how to set up environment variable on Unix and Apache, but the question is how to set it up for IIS?</p>
<p>People may first think this could be environment variable on Windows as well. But this is wrong. Informix client is using Registry KEY on Windows platform. Here is the path on a 64bit machine.</p>
<p><strong>HKEY_LOCAL_MACHINE\Software\Wow6432Node\Informix\Environment\</strong></p>
<p>Second, you should have your default server setup under KEY: </p>
<p><strong>HKEY_LOCAL_MACHINE\Software\Wow6432Node\Informix\SqlHosts\</strong></p>
<p>At here, you need to provide HOST, PROTOCOL and SERVICE, so php_ifx knows how to connect to your Informix server.</p>
<p>After set them up, PHP should be able to talk to Informix.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unidev.com/index.php/2010/07/07/php-problem-trying-to-connect-with-informix-on-iis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paging the query result</title>
		<link>http://blog.unidev.com/index.php/2009/05/01/paging-the-query-result/</link>
		<comments>http://blog.unidev.com/index.php/2009/05/01/paging-the-query-result/#comments</comments>
		<pubDate>Fri, 01 May 2009 21:00:19 +0000</pubDate>
		<dc:creator>George Zheng</dc:creator>
				<category><![CDATA[General Technology]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Sql Server]]></category>

		<guid isPermaLink="false">http://blog.unidev.com/?p=104</guid>
		<description><![CDATA[If you have 5000 products in database, you may like to show them in pages on the screen. It&#8217;s a common request to only retrieve the records on a certain page. This query must be quick and efficient if we are talking about millions of records in a table for an AJAX control. In Oracle, [...]]]></description>
			<content:encoded><![CDATA[<p>If you have 5000 products in database, you may like to show them in pages on the screen. It&#8217;s a common request to only retrieve the records on a certain page. This query must be quick and efficient if we are talking about millions of records in a table for an AJAX control.</p>
<p>In Oracle, we can do this:</p>
<p><code><span style="color: #0000ff;">SELECT * from<br />
(<br />
SELECT *, ROWNUM as rownumber from Product order by name<br />
)<br />
where rownumber between (PageNbr - 1)*PageSize + 1 and PageNbr*PageSize</span></code></p>
<p>As you can see, this query needs to fetch all rows first then narrows down the result. A more efficient query is:</p>
<p><code><span style="color: #0000ff;">select *<br />
from ( select a.*, rownum rnum<br />
from ( select * from product order by name) a<br />
where rownum &lt;= PageNbr*PageSize)<br />
where rnum &gt;= (PageNbr - 1)*PageSize + 1</span></code></p>
<p>Oracle will optimize this query, so it is not as resource intensive as the first one.</p>
<p>In SQL Server 2005, we can do similar query:</p>
<p><code><span style="color: #0000ff;">WITH Temp AS<br />
(<br />
SELECT row_number() OVER (ORDER BY [name]) AS rowNum, * from Product<br />
)<br />
SELECT * FROM Temp<br />
WHERE rowNum between (@PageNbr - 1) * @PageSize + 1 and @PageNbr * @PageSize<br />
ORDER BY [name]</span></code></p>
<p>The query had been optimized in SQL Server as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unidev.com/index.php/2009/05/01/paging-the-query-result/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google App Engine is open for Java Now</title>
		<link>http://blog.unidev.com/index.php/2009/04/08/google-app-engine-is-open-for-java-now/</link>
		<comments>http://blog.unidev.com/index.php/2009/04/08/google-app-engine-is-open-for-java-now/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 21:23:25 +0000</pubDate>
		<dc:creator>George Zheng</dc:creator>
				<category><![CDATA[General Technology]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[App Engine]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://blog.unidev.com/?p=98</guid>
		<description><![CDATA[ Google App Engine Java Overview. You can sign up here.]]></description>
			<content:encoded><![CDATA[<p> <a title="Google App Engine Java Overview" href="http://code.google.com/appengine/docs/java/overview.html ">Google App Engine Java Overview</a>.</p>
<p>You can sign up <a title="Google App Engine Java Sign Up" href="http://appengine.google.com/promo/java_runtime">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unidev.com/index.php/2009/04/08/google-app-engine-is-open-for-java-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Four Pillars of ASP.NET</title>
		<link>http://blog.unidev.com/index.php/2009/03/31/the-four-pillars-of-aspnet/</link>
		<comments>http://blog.unidev.com/index.php/2009/03/31/the-four-pillars-of-aspnet/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 21:20:31 +0000</pubDate>
		<dc:creator>George Zheng</dc:creator>
				<category><![CDATA[General Technology]]></category>

		<guid isPermaLink="false">http://blog.unidev.com/?p=91</guid>
		<description><![CDATA[Paul Litwin posted an interesting article that discusses the four pillars of ASP.NET (Web Forms, MVC, AJAX, and Dynamic Data). He said: &#8220;Microsoft used to present ASP.NET Web Forms vs. MVC as a choice between a car and a motorcycle. Both will get you to your job , but some (the majority of the population, [...]]]></description>
			<content:encoded><![CDATA[<p>Paul Litwin posted an interesting article that discusses the four pillars of ASP.NET (Web Forms, MVC, AJAX, and Dynamic Data).</p>
<p>He said: &#8220;Microsoft used to present ASP.NET Web Forms vs. MVC as a choice between a car and a motorcycle. Both will get you to your job , but some (the majority of the population, I might add) prefer driving a car, while a sizable minority love their motorcycles which give you better gas mileage and independence, but don’t protect you in the rain. To stretch this analogy to its breaking point, let me suggest that ASP.NET AJAX is like riding a bicycle to work (lean and mean, best gas mileage, but it requires you to exercise for your commute and exposes you to the elements like the motorcycle) while Dynamic Data is like taking the bus to work (let metro do the driving for you.)&#8221;</p>
<p>You can read his blog entry <a href="http://weblogs.asp.net/paullitwin/archive/2009/03/30/the-four-pillars-of-asp-net.aspx">here</a>:</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unidev.com/index.php/2009/03/31/the-four-pillars-of-aspnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VS2008 Tips &amp; Tricks</title>
		<link>http://blog.unidev.com/index.php/2008/12/04/vs2008-tips-tricks/</link>
		<comments>http://blog.unidev.com/index.php/2008/12/04/vs2008-tips-tricks/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 17:24:23 +0000</pubDate>
		<dc:creator>George Zheng</dc:creator>
				<category><![CDATA[General Technology]]></category>

		<guid isPermaLink="false">http://blog.unidev.com/index.php/2008/12/04/vs2008-tips-tricks/</guid>
		<description><![CDATA[As a .NET developer, I&#8217;m sure you have your own tricks to make your life easy. But you may still like to know more tricks on Visual Studio. Read this article to see if you know all of them&#8230; Essential Visual Studio Tips &#38; Tricks that Every Developer Should Know]]></description>
			<content:encoded><![CDATA[<p>As a .NET developer, I&#8217;m sure you have your own tricks to make your life easy. But you may still like to know more tricks on Visual Studio. Read this article to see if you know all of them&#8230;</p>
<p><a href="http://stephenwalther.com/blog/archive/2008/10/21/essential-visual-studio-tips-amp-tricks-that-every-developer-should-know.aspx" title="Essential Visual Studio Tips &amp; Tricks that Every Developer Should Know">Essential Visual Studio Tips &amp; Tricks that Every Developer Should Know</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unidev.com/index.php/2008/12/04/vs2008-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Math Error in JavaScript</title>
		<link>http://blog.unidev.com/index.php/2008/10/10/math-error-in-javascript/</link>
		<comments>http://blog.unidev.com/index.php/2008/10/10/math-error-in-javascript/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 20:02:40 +0000</pubDate>
		<dc:creator>George Zheng</dc:creator>
				<category><![CDATA[General Technology]]></category>

		<guid isPermaLink="false">http://blog.unidev.com/index.php/2008/10/10/math-error-in-javascript/</guid>
		<description><![CDATA[Believe it or not, if you do this in JavaScript: 103 x 67.12, you will get 6913.360000000001. This happens on both Microsoft Internet Explorer and Firefox. Try this your self. Basic Math Errors in JavaScript The calculation&#8230; Should equal&#8230; Your browser&#8217;s   answer&#8230; 81.66 * 15 1224.9 103 * 67.12 6913.36 24.88 + 4.35 29.23 [...]]]></description>
			<content:encoded><![CDATA[<p><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span">Believe it or not, if you do this in JavaScript: 103 x 67.12, you will get 6913.360000000001. This happens on both Microsoft Internet Explorer and Firefox. Try this your self.</span></p>
<p><script language="JavaScript">                                              function ShowResults()   {  document.DemoForm.Field1.value = 81.66 * 15;   document.DemoForm.Field2.value = 103 * 67.12;  document.DemoForm.Field3.value = 24.88 + 4.35;  }  function CustomResults()    {   document.CustomForm.CustomResult.value = document.CustomForm.CustomA.value * document.CustomForm.CustomB.value;      }   </script></p>
<hr />
<h3 align="center">Basic Math Errors in JavaScript</h3>
<form name="DemoForm">
<table border="1" cellPadding="4">
<tr>
<td vAlign="top"><strong>The calculation&#8230;</strong></td>
<td vAlign="top"><strong>Should equal&#8230;</strong></td>
<td vAlign="top"><strong>Your browser&#8217;s<br />
  answer&#8230;</strong></td>
</tr>
<tr>
<td vAlign="top">81.66 * 15</td>
<td vAlign="top">1224.9</td>
<td vAlign="top">
<input name="Field1" size="25" /></td>
</tr>
<tr>
<td vAlign="top">103 * 67.12</td>
<td vAlign="top">6913.36</td>
<td vAlign="top">
<input name="Field2" size="25" /></td>
</tr>
<tr>
<td vAlign="top">24.88 + 4.35</td>
<td vAlign="top">29.23</td>
<td vAlign="top">
<input name="Field3" size="25" /></td>
</tr>
</table>
<input type="button" value="Click here to calculate results" onclick="ShowResults()" /> </form>
<hr /><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span">In terms of mathematical accuracy, 81.66 times 15 unequivocally equals 1224.9, as any sixth grader with a pencil and a piece of paper can demonstrate. But computer is in binary world. it has to convert decimal to binary number before calculation and there may be a problem to convert floating point decimal to binary. This is same for all computer languages.</span><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span"> </span><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span">To avoid this, you need to know the scale (the number of decimal positions). Then you can convert the floating point decimal to an integer and scale it back at the end. i.e. (67.12 * 100) * 103 / 100. In Java, BigDecimal can be used to setup the scale.</span></p>
<p><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span"></span><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span"></span><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span"></span><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span"></span><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span"></span><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span">JavaScript has a built-in method &#8211; toFixed, can be used to fix this issue easily as well. </span></p>
<p><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span"></span><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span"></span><span style="word-spacing: 0px; font: 18px 'Times New Roman'; text-transform: none; color: #000000; text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-text-size-adjust: auto; orphans: 2; widows: 2; -webkit-border-horizontal-spacing: 6px; -webkit-border-vertical-spacing: 6px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0" class="Apple-style-span"></span>amount = 103 * 67.12;<br />
result = amount.toFixed(2);</p>
<p><font size="4" face="Times New Roman">So don&#8217;t forget this when you deal with a floating point decimal even for addition or multiplication.</font></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unidev.com/index.php/2008/10/10/math-error-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The custom tool &#8216;MSLinqToSQLGenerator&#8217; failed. Unspecified error</title>
		<link>http://blog.unidev.com/index.php/2008/09/02/the-custom-tool-mslinqtosqlgenerator-failed-unspecified-error/</link>
		<comments>http://blog.unidev.com/index.php/2008/09/02/the-custom-tool-mslinqtosqlgenerator-failed-unspecified-error/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 14:32:40 +0000</pubDate>
		<dc:creator>George Zheng</dc:creator>
				<category><![CDATA[General Technology]]></category>

		<guid isPermaLink="false">http://blog.unidev.com/index.php/2008/09/02/the-custom-tool-mslinqtosqlgenerator-failed-unspecified-error/</guid>
		<description><![CDATA[There is an issue in Microsoft&#8217;s latest SP1 for Visual Studio 2008. If you have a partial class with Using statement at the top of the file for a Linq-To-SQL Data Classes context object. You will get above error. Visual Studio will delete the corresponding &#8220;.designer.cs&#8221; file for your data context and nothing will be compiled. [...]]]></description>
			<content:encoded><![CDATA[<p>There is an issue in Microsoft&#8217;s latest SP1 for Visual Studio 2008. If you have a partial class with Using statement at the top of the file for a Linq-To-SQL Data Classes context object. You will get above error. Visual Studio will delete the corresponding &#8220;.designer.cs&#8221; file for your data context and nothing will be compiled.</p>
<p> To solve this issue, you may have to move &#8220;Using&#8221; statements inside namespace declaration. This is a <a href="http://connect.live.com/VisualStudio/feedback/Workaround.aspx?FeedbackID=361577" title="workaround">workaround</a> provided by Microsoft.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unidev.com/index.php/2008/09/02/the-custom-tool-mslinqtosqlgenerator-failed-unspecified-error/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>A circular reference was detected while serializing an object of type &#8230;</title>
		<link>http://blog.unidev.com/index.php/2008/07/25/a-circular-reference-was-detected-while-serializing-an-object-of-type/</link>
		<comments>http://blog.unidev.com/index.php/2008/07/25/a-circular-reference-was-detected-while-serializing-an-object-of-type/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 16:14:58 +0000</pubDate>
		<dc:creator>George Zheng</dc:creator>
				<category><![CDATA[General Technology]]></category>

		<guid isPermaLink="false">http://blog.unidev.com/index.php/2008/07/25/a-circular-reference-was-detected-while-serializing-an-object-of-type/</guid>
		<description><![CDATA[I ran into an issue earlier when trying to serialize an object return by LINQ. After Googling it, I found following blog which is very helpful. LINQ to SQL and Serialization I believe this is a common issue for LINQ objects and hope this blog can save time for somebody.]]></description>
			<content:encoded><![CDATA[<p>I ran into an issue earlier when trying to serialize an object return by LINQ. After Googling it, I found following blog which is very helpful.</p>
<p><a href="http://www.west-wind.com/WebLog/posts/147218.aspx" style="text-decoration: none">LINQ to SQL and Serialization</a></p>
<p>I believe this is a common issue for LINQ objects and hope this blog can save time for somebody.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unidev.com/index.php/2008/07/25/a-circular-reference-was-detected-while-serializing-an-object-of-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Improve ASP.NET Performance and Scalability</title>
		<link>http://blog.unidev.com/index.php/2008/02/08/improve-aspnet-performance-and-scalability/</link>
		<comments>http://blog.unidev.com/index.php/2008/02/08/improve-aspnet-performance-and-scalability/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 17:04:31 +0000</pubDate>
		<dc:creator>George Zheng</dc:creator>
				<category><![CDATA[General Technology]]></category>

		<guid isPermaLink="false">http://blog.unidev.com/index.php/2008/02/08/improve-aspnet-performance-and-scalability/</guid>
		<description><![CDATA[Do you have performance issue on your ASP.NET website? Do you want to boost your site&#8217;s scalability? Do you know the bottleneck of your site? Do you want your site performs well under 100 times more traffic? Here are some good posts about this: 10 ASP.NET Performance and Scalability Secrets Boost ASP.NET performance with deferred content loading]]></description>
			<content:encoded><![CDATA[<p>Do you have performance issue on your ASP.NET website? Do you want to boost your site&#8217;s scalability? Do you know the bottleneck of your site? Do you want your site performs well under 100 times more traffic? Here are some good posts about this:</p>
<p><strong><a href="http://www.codeproject.com/KB/aspnet/10ASPNetPerformance.aspx">10 ASP.NET Performance and Scalability Secrets</a></strong></p>
<p><a rel="bookmark" href="http://encosia.com/2008/02/05/boost-aspnet-performance-with-deferred-content-loading/" title="Boost ASP.NET performance with deferred content loading"><strong>Boost ASP.NET performance with deferred content loading</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unidev.com/index.php/2008/02/08/improve-aspnet-performance-and-scalability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using UTF-8 in Ajax, PHP, MySQL &amp; ASP.NET</title>
		<link>http://blog.unidev.com/index.php/2007/09/22/using-utf-8-in-ajax-php-mysql-aspnet/</link>
		<comments>http://blog.unidev.com/index.php/2007/09/22/using-utf-8-in-ajax-php-mysql-aspnet/#comments</comments>
		<pubDate>Sun, 23 Sep 2007 03:35:25 +0000</pubDate>
		<dc:creator>George Zheng</dc:creator>
				<category><![CDATA[General Technology]]></category>

		<guid isPermaLink="false">http://blog.unidev.com/index.php/2007/09/22/using-utf-8-in-ajax-php-mysql-aspnet/</guid>
		<description><![CDATA[We have a project which needs to show foreign language, like Chinese, on a web page. And we are using RICO 2.0, PHP, MySQL &#38; ASP.NET in the project. To achieve this, we decide to use UTF-8 character set and the following changes need to be done: MySQL: To store UTF-8 in a table field, [...]]]></description>
			<content:encoded><![CDATA[<p>We have a project which needs to show foreign language, like Chinese, on a web page. And we are using RICO 2.0, PHP, MySQL &amp; ASP.NET in the project. To achieve this, we decide to use UTF-8 character set and the following changes need to be done:</p>
<ul>
<li>MySQL:</li>
</ul>
<blockquote><p> To store UTF-8 in a table field, you need to set column&#8217;s charset =&gt; utf8 and collate =&gt; utf8_unicode_ci</p></blockquote>
<ul>
<li>Web Page:</li>
</ul>
<blockquote><p> To show foreign language in a web page, the page file has to be saved as encoding UTF-8</p></blockquote>
<ul>
<li>PHP:</li>
</ul>
<blockquote><p> The default encoding for PHP 5 is UTF-8, so it supports foreign language. But if you use PHP to retrieve UTF-8 characters from MySQL, you must add <em>mysql_query(&#8216;SET NAMES utf8&#8242;);</em> after connecting to MySQL database for setting up the connection encoding.</p></blockquote>
<ul>
<li>RICO:</li>
</ul>
<blockquote><p> As for RICO Live gird, Ajax response must start with &lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;</p></blockquote>
<ul>
<li>ASP.NET:</li>
</ul>
<blockquote><p>First make sure you have following line in you web.config<br />
&lt;globalization requestEncoding=&#8221;utf-8&#8243; responseEncoding=&#8221;utf-8&#8243; fileEncoding=&#8221;utf-8&#8243;/&gt;<br />
Second, keep both .aspx and code behind file save as the same encoding  UTF-8<br />
If you need to access the UTF-8 characters in MySQL database,  be sure to use MySQL Connector/Net 5.0 or up with undocumented setting: charset=utf8 in connection string. We tried ODBC driver for MySQL, it doesn&#8217;t work properly with UTF-8.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.unidev.com/index.php/2007/09/22/using-utf-8-in-ajax-php-mysql-aspnet/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

