<?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>Chorn Sokun's Weblog</title>
	<atom:link href="http://chornsokun.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chornsokun.wordpress.com</link>
	<description>try { divide and conquer; } catch { keep it simple!; } finally { nothing is impossible; }</description>
	<lastBuildDate>Fri, 30 Dec 2011 16:37:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='chornsokun.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Chorn Sokun's Weblog</title>
		<link>http://chornsokun.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chornsokun.wordpress.com/osd.xml" title="Chorn Sokun&#039;s Weblog" />
	<atom:link rel='hub' href='http://chornsokun.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Build monodevelop on ubuntu 11.10</title>
		<link>http://chornsokun.wordpress.com/2011/11/11/build-monodevelop-on-ubuntu-11-10/</link>
		<comments>http://chornsokun.wordpress.com/2011/11/11/build-monodevelop-on-ubuntu-11-10/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 16:12:59 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=692</guid>
		<description><![CDATA[Again? yes but this time I don&#8217;t have to built mono runtine Ubuntu 11.10 packed with mono 2.10.5 which good enough since what I am after is dynamic. However monodevelop I got from Ubuntu Software Center (USC) is 2.6 and the official release is 2.8.x so I take my on my gut to try and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=692&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Again? yes but this time I don&#8217;t have to built mono runtine Ubuntu 11.10 packed with mono 2.10.5 which good enough since what I am after is dynamic.<br />
However monodevelop I got from Ubuntu Software Center (USC) is 2.6 and the official release is 2.8.x so I take my on my gut to try and built me an IDE ;)</p>
<p>This time it much easier what I have to do is get latest copy of the source code from github.com</p>
<p>&gt; git clone git://github.com/mono/monodevelop.git</p>
<p>Then install build dependent by issuing this command</p>
<p>&gt; sudo apt-get build-dep monodevelop</p>
<p>I don&#8217;t know why mono-gmcs was not install as part of the previous command (if you know why please comment) for now I have to install another package</p>
<p>&gt; sudo apt-get install mono-gmcs</p>
<p>and then I&#8217;m ready to</p>
<p>&gt; ./configure<br />
&gt; sudo make &amp;&amp; make run</p>
<p>&gt; monodevelop</p>
<p>BOOM !</p>
<p><a href="http://chornsokun.files.wordpress.com/2011/11/monodevelop-2-8-2-git.png"><img class="alignnone size-full wp-image-695" title="monodevelop-2.8.2-git" src="http://chornsokun.files.wordpress.com/2011/11/monodevelop-2-8-2-git.png?w=700" alt=""   /></a></p>
<pre>MonoDevelop 2.8.2
Installation UUID: b220bfc2-57c6-4b94-840e-ff6c6477632d
Runtime:
	Mono 2.10.5 (Debian 2.10.5-1) (64-bit)
	GTK 2.24.6
	GTK# (2.12.0.0)
Build information:
	Git revision: e047f99f6df7b5c801102c03f903d4dd722b2989-dirty
	Build date: 2011-11-11 15:03:47+0000

Thanks to mono packaging team, you guy rock!</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chornsokun.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chornsokun.wordpress.com/692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chornsokun.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chornsokun.wordpress.com/692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chornsokun.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chornsokun.wordpress.com/692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chornsokun.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chornsokun.wordpress.com/692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chornsokun.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chornsokun.wordpress.com/692/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chornsokun.wordpress.com/692/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chornsokun.wordpress.com/692/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=692&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2011/11/11/build-monodevelop-on-ubuntu-11-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fc60b386b64b2b05c043d7676dde360e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">c.sokun</media:title>
		</media:content>

		<media:content url="http://chornsokun.files.wordpress.com/2011/11/monodevelop-2-8-2-git.png" medium="image">
			<media:title type="html">monodevelop-2.8.2-git</media:title>
		</media:content>
	</item>
		<item>
		<title>LINQ 101 .NET Reflection</title>
		<link>http://chornsokun.wordpress.com/2011/05/07/linq-101-net-reflection/</link>
		<comments>http://chornsokun.wordpress.com/2011/05/07/linq-101-net-reflection/#comments</comments>
		<pubDate>Sat, 07 May 2011 05:39:19 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[.NET Reflection]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[LINQ]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=683</guid>
		<description><![CDATA[In this post I am going over three points listed bellow: What is .NET Reflection? Cut short it refer to a set of API built-in .NET Framework, which give you a greate power to load and manipulate type within assembly (.dll) one of the most favor use is to support late binding. There a whole lot [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=683&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post I am going over three points listed bellow:</p>
<p><strong>What is .NET Reflection?</strong> Cut short it refer to a set of API built-in .NET Framework, which give you a greate power to load and manipulate type within assembly (.dll) one of the most favor use is to support late binding. There a whole lot of explaination available through google! but that all I care for now.</p>
<p><strong>How about LINQ? </strong>stand for .NET Language-Integrated Query,</p>
<blockquote><p> a set of general purpose <em>standard query operators</em> that allow traversal, filter, and projection operations to be expressed in a direct yet declarative way in any .NET-based programming language. The standard query operators allow queries to be applied to any <strong>IEnumerable&lt;T&gt;</strong>-based information source.</p></blockquote>
<p><strong>What it mean to me?</strong><br />
Assume that I had ITrap interface and a bunch of Trap implementation as show in the code bellow:<br />
<pre class="brush: csharp;">
interface ITrap{
  void Setup();
  int OrderNr { get; };
}

class LevelOneTrap: ITrap{
  public void Setup(){
    Console.WriteLine(&quot;LevelOne Setup First&quot;);
  }
  public int OrderNr {
    get { return 1; }
  }
}

class LevelTwoTrap: ITrap{
  public void Setup(){
    Console.WriteLine(&quot;LevelTwo Setup Next&quot;);
  }
  public int OrderNr {
    get { return 2; }
  }
}
</pre></p>
<p>Now I want to Setup all trap by respecting it OrderNr which mean LevelOneTrap.Setup() must execute before LevelTwoTrap.Setup() so far so good? Let see how many lines of code needed:</p>
<p><pre class="brush: csharp;">
var trapInterface = typeof(ITrap);

var trapImplementations = ( from t in trapInterface.Assembly.GetTypes()
                      where t.IsClass &amp;&amp; t.GetInterfaces().Any(x =&gt; x == trapInterface)
                      select (ITrap)Activator.CreateInstance(t)
                  ).OrderBy(k=&gt;k.OrderNr);

// time to play ;)
foreach( var trap in trapImplementations ) {
  trap.Setup();
}

//   LevelOne Setup First
//   LevelTwo Setup Next

</pre></p>
<p>Cool isn&#8217;t it? Life is short so our code!</p>
<br /> Tagged: <a href='http://chornsokun.wordpress.com/tag/net-reflection/'>.NET Reflection</a>, <a href='http://chornsokun.wordpress.com/tag/c/'>C#</a>, <a href='http://chornsokun.wordpress.com/tag/linq/'>LINQ</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/683/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chornsokun.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chornsokun.wordpress.com/683/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chornsokun.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chornsokun.wordpress.com/683/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chornsokun.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chornsokun.wordpress.com/683/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chornsokun.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chornsokun.wordpress.com/683/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chornsokun.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chornsokun.wordpress.com/683/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chornsokun.wordpress.com/683/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chornsokun.wordpress.com/683/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=683&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2011/05/07/linq-101-net-reflection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fc60b386b64b2b05c043d7676dde360e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">c.sokun</media:title>
		</media:content>
	</item>
		<item>
		<title>.NET developer survive on linux</title>
		<link>http://chornsokun.wordpress.com/2011/01/22/net-developer-survive-on-linux/</link>
		<comments>http://chornsokun.wordpress.com/2011/01/22/net-developer-survive-on-linux/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 15:36:16 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[manos]]></category>
		<category><![CDATA[mono-2.8.x]]></category>
		<category><![CDATA[Nancy]]></category>
		<category><![CDATA[OpenSuse-11.13]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=675</guid>
		<description><![CDATA[I&#8217;ve been joking with my friends &#8220;the open source fan boyz&#8221; that I am a Microsoft slave for the fact that I am a dedicated .NET developer. But for all the joke I found some competitive disadvantage for me moving forward. If customer is looking for a low cost solution .NET is not the way to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=675&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been joking with my friends &#8220;the open source fan boyz&#8221; that I am a Microsoft slave for the fact that I am a dedicated .NET developer. But for all the joke I found some competitive disadvantage for me moving forward. If customer is looking for a low cost solution .NET is not the way to go. Base on what I do for a living, I build desktop and web application in .NET. But I tend to focus more on Web Application which dragged me to ASP.NET MVC.</p>
<p>Let taking ASP.NET MVC to build solution <span style="text-decoration:underline;"><strong>for me</strong></span> it yield a great ROI for me</p>
<ol>
<li>I got to learn more about .NET library</li>
<li>it still .NET so I can use all the skill I got</li>
<li>got great IDE support =&gt; productivity is high so and so &#8230;</li>
</ol>
<p><strong>for clients</strong> :/ intranet deploy</p>
<ol>
<li>invest on the server hardware (normal)</li>
<li>software license just take Microsoft Windows Server + SQL Server hmm</li>
</ol>
<p>and for Internet deploy ASP.NET hosting generally more expensive than LAMP stack. If I am about to help client cutting down expenditure cost I got to get rid of the underline infrastructure need to run the application. Possible with Mono but I am keep hearing incompatible issues on ASP.NET + Mono.</p>
<p>Anyway let me (us) forget all about ASP.NET glorious day. Recently, I start caught up with a movement in two different communities. Both of them trying to escape from ASP.NET sandbox and they both  gave birth to two unrelated open source projects <strong><a href="https://github.com/jacksonh/manos">manos</a></strong> and <strong><a href="https://github.com/thecodejunkie/Nancy">Nancy</a></strong> that the cool part.</p>
<p>These two project promised to free its user from underline infrastructure (no more IIS is required!) and it work x-platform.</p>
<blockquote><p>Up to this point I can only make manos serve page, I am keep watching and follow-up with Nancy development. I hope to be able to compare advantage and disadvantage between the two projects in the future.</p>
<p><em>&#8220;Nancy start with a full range of view template to choice from, and I do not think it hard for manos to do the same thing&#8221;.</em></p></blockquote>
<p><strong>Which one is the best?</strong> is not really important at this point, what important is when these projects are matured we can use it to build low cost solution for my clients while still enjoy writing C# &#8220;YES, it pronounced C-Sharp&#8221; :D, <strong>but how?</strong> Here the spec</p>
<ul>
<li>Web Application power by [manos | Nancy] + a few open source libraries</li>
<li>Mono 2.8.x or higher</li>
<li>Server OS OpenSuse 11.13</li>
<li>Back-end database name a few open source DBMS</li>
</ul>
<p>Why OpenSuse? it is mono home&#8217;s os, and if you want to get hot-fix on time that the way to go. So let me end this blah blah post with a teasing screenshot!</p>
<div id="attachment_676" class="wp-caption alignnone" style="width: 710px"><a href="http://chornsokun.files.wordpress.com/2011/01/monos-hello-world.png"><img class="size-full wp-image-676" title="monos-hello-world" src="http://chornsokun.files.wordpress.com/2011/01/monos-hello-world.png?w=700&#038;h=460" alt="" width="700" height="460" /></a><p class="wp-caption-text">Hello World from manos running on OpenSuse 11.13 inside VirtualBox, client access from Ubuntu 10.10 if you care about the environment :D</p></div>
<p>There you go it&#8217;s how a .NET developer survive on linux nice hacking weekend everyone!</p>
<br /> Tagged: <a href='http://chornsokun.wordpress.com/tag/manos/'>manos</a>, <a href='http://chornsokun.wordpress.com/tag/mono-2-8-x/'>mono-2.8.x</a>, <a href='http://chornsokun.wordpress.com/tag/nancy/'>Nancy</a>, <a href='http://chornsokun.wordpress.com/tag/opensuse-11-13/'>OpenSuse-11.13</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chornsokun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chornsokun.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chornsokun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chornsokun.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chornsokun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chornsokun.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chornsokun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chornsokun.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chornsokun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chornsokun.wordpress.com/675/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chornsokun.wordpress.com/675/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chornsokun.wordpress.com/675/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=675&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2011/01/22/net-developer-survive-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fc60b386b64b2b05c043d7676dde360e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">c.sokun</media:title>
		</media:content>

		<media:content url="http://chornsokun.files.wordpress.com/2011/01/monos-hello-world.png" medium="image">
			<media:title type="html">monos-hello-world</media:title>
		</media:content>
	</item>
		<item>
		<title>How to changing default Khmer Unicode Font in Ubuntu</title>
		<link>http://chornsokun.wordpress.com/2010/12/10/how-to-changing-default-khmer-unicode-font-in-ubuntu/</link>
		<comments>http://chornsokun.wordpress.com/2010/12/10/how-to-changing-default-khmer-unicode-font-in-ubuntu/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 01:27:56 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[OSS]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=668</guid>
		<description><![CDATA[In Ubuntu 10.10 release cycle ttf-khmeros version 5.0.3 was included. However the only problem I had with Chrome.  Later on I was told that the fix is by trying various font until we find the one that work properly. So the idea is to change default Khmer Unicode font so let see how we do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=668&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Ubuntu 10.10 release cycle ttf-khmeros version 5.0.3 was included. However the only problem I had with Chrome.  Later on I was told that the fix is by trying various font until we find the one that work properly.</p>
<p>So the idea is to change default Khmer Unicode font so let see how we do it:<br />
<pre class="brush: plain;">
sudo gedit /etc/fonts/conf.d/65-khmer.conf
</pre></p>
<p>you can replace &lt;family&gt;<strong>Khmer OS</strong>&lt;/family&gt; with &lt;family&gt;<strong>Khmer_Unicode_Font_Of_Your_Choice</strong>&lt;/family&gt; or if you do not want to touch the line you can just add another line on top like this:<br />
<pre class="brush: plain;">
&lt;family&gt;Khmer_Unicode_Font_Of_Your_Choice&lt;/family&gt;
&lt;family&gt;Khmer OS&lt;/family&gt;
</pre><br />
next step issue the following command to update font package:</p>
<p><pre class="brush: plain;">
sudo dpkg-reconfigure ttf-khmeros
</pre></p>
<p>logout and log back in again.</p>
<p>Thanks @<a href="http://www.facebook.com/chanrithy.thim">rithy</a> for sharing this technique.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chornsokun.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chornsokun.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chornsokun.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chornsokun.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chornsokun.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chornsokun.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chornsokun.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chornsokun.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chornsokun.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chornsokun.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chornsokun.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chornsokun.wordpress.com/668/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=668&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2010/12/10/how-to-changing-default-khmer-unicode-font-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fc60b386b64b2b05c043d7676dde360e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">c.sokun</media:title>
		</media:content>
	</item>
		<item>
		<title>.NET Database Application Development (C#)</title>
		<link>http://chornsokun.wordpress.com/2010/12/05/net-database-application-development-c/</link>
		<comments>http://chornsokun.wordpress.com/2010/12/05/net-database-application-development-c/#comments</comments>
		<pubDate>Sun, 05 Dec 2010 09:36:32 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[NHibernate]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=664</guid>
		<description><![CDATA[If you are interested in .NET and want to jump start with Database Application Development in no time here is your chance Lady &#38; Gentlemen, boy &#38; girl I present you a .NET Database Application Development (C#) fast track with the following content: C# Programming Introduction Introduction to NHibernate .NET Object Relational Mapping (ORM) Advance Data Processing with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=664&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you are interested in .NET and want to jump start with Database Application Development in no time here is your chance</p>
<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } -->Lady &amp; Gentlemen, boy &amp; girl I present you a <strong>.NET Database Application Development (C#) </strong>fast track with the following content:</p>
<ol>
<li>C# Programming Introduction</li>
<li>Introduction to NHibernate .NET 	Object Relational Mapping (ORM)</li>
<li>Advance Data Processing with 	NHibernate Criteria API</li>
<li>Hand-on practice</li>
</ol>
<p>At the end of the course your will learn tools &amp; technique to develop database application which could talk various Database Management System (DBMS) from Microsoft Access, Microsoft SQL Server, MySQL you name it.</p>
<p>Now the truth about doing this in no time :D I lie :-P I need minimum 10 hours before I can transform a newbie into a <strong>.NET Database Application Development (C#)</strong></p>
<p><strong>Requirement:</strong></p>
<ul>
<li>Basic Programming Concept</li>
<li>Know basic C# Programming</li>
<li>Be able to read and understand this blog post &#8211; otherwise get yourself English tutor</li>
</ul>
<p>If you, your friend interested or your employer got budget to develop your capacity drop me a line I would love to hear about it ;)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chornsokun.wordpress.com/664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chornsokun.wordpress.com/664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chornsokun.wordpress.com/664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chornsokun.wordpress.com/664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chornsokun.wordpress.com/664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chornsokun.wordpress.com/664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chornsokun.wordpress.com/664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chornsokun.wordpress.com/664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chornsokun.wordpress.com/664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chornsokun.wordpress.com/664/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chornsokun.wordpress.com/664/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chornsokun.wordpress.com/664/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=664&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2010/12/05/net-database-application-development-c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fc60b386b64b2b05c043d7676dde360e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">c.sokun</media:title>
		</media:content>
	</item>
		<item>
		<title>Deploy MonoRail on IIS7</title>
		<link>http://chornsokun.wordpress.com/2010/11/04/deploy-monorail-on-iis7/</link>
		<comments>http://chornsokun.wordpress.com/2010/11/04/deploy-monorail-on-iis7/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 09:10:08 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[Castle]]></category>
		<category><![CDATA[MonoRail]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=658</guid>
		<description><![CDATA[Note to myself 1. On Default Web Site, click Add Application 2. Change Application Pools = Classic .NET AppPool , go to Application Pools and click on Classic .NET AppPool then take Advanced Settings 3. Add the following setting to web.config We good to go, hope I don&#8217;t waste my time again on this thing.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=658&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Note to myself</p>
<p>1. On Default Web Site, click <strong>Add Application</strong></p>
<p>2. Change Application Pools = <strong>Classic .NET AppPool</strong> , go to Application Pools and click on <strong>Classic .NET AppPool</strong> then take <strong>Advanced Settings</strong></p>
<div id="attachment_660" class="wp-caption alignnone" style="width: 449px"><a href="http://chornsokun.files.wordpress.com/2010/11/class-aspnet.png"><img class="size-full wp-image-660" title="class-aspnet" src="http://chornsokun.files.wordpress.com/2010/11/class-aspnet.png?w=700" alt=""   /></a><p class="wp-caption-text">Calssic .NET Application Pools, Advanced Settings</p></div>
<p>3. Add the following setting to <strong>web.config</strong></p>
<p><pre class="brush: plain;">
	&lt;system.webServer&gt;
		&lt;handlers&gt;
		  &lt;clear /&gt;
		  &lt;add name=&quot;PageHandlerFactory-ISAPI-2.0-64&quot; path=&quot;*.aspx&quot; verb=&quot;GET,HEAD,POST,DEBUG&quot; type=&quot;&quot; modules=&quot;IsapiModule&quot; scriptProcessor=&quot;%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll&quot; resourceType=&quot;Unspecified&quot; requireAccess=&quot;Script&quot; allowPathInfo=&quot;false&quot; preCondition=&quot;classicMode,runtimeVersionv2.0,bitness64&quot; responseBufferLimit=&quot;0&quot; /&gt;
		  &lt;add name=&quot;PageHandlerFactory-ISAPI-2.0&quot; path=&quot;*.aspx&quot; verb=&quot;GET,HEAD,POST,DEBUG&quot; type=&quot;&quot; modules=&quot;IsapiModule&quot; scriptProcessor=&quot;%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll&quot; resourceType=&quot;Unspecified&quot; requireAccess=&quot;Script&quot; allowPathInfo=&quot;false&quot; preCondition=&quot;classicMode,runtimeVersionv2.0,bitness32&quot; responseBufferLimit=&quot;0&quot; /&gt;
		  &lt;add name=&quot;MonoRail64&quot; path=&quot;*.castle&quot; verb=&quot;*&quot; type=&quot;&quot; modules=&quot;IsapiModule&quot; scriptProcessor=&quot;%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll&quot; resourceType=&quot;Unspecified&quot; requireAccess=&quot;Script&quot; allowPathInfo=&quot;false&quot; preCondition=&quot;classicMode,runtimeVersionv2.0,bitness64&quot; responseBufferLimit=&quot;4194304&quot; /&gt;
		  &lt;add name=&quot;MonoRail&quot; path=&quot;*.castle&quot; verb=&quot;*&quot; type=&quot;&quot; modules=&quot;IsapiModule&quot; scriptProcessor=&quot;%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll&quot; resourceType=&quot;Unspecified&quot; requireAccess=&quot;Script&quot; allowPathInfo=&quot;false&quot; preCondition=&quot;classicMode,runtimeVersionv2.0,bitness32&quot; responseBufferLimit=&quot;4194304&quot; /&gt;
		  &lt;!--
		  &lt;add name=&quot;UrlRewriting64&quot; path=&quot;*&quot; verb=&quot;*&quot; type=&quot;&quot; modules=&quot;IsapiModule&quot; scriptProcessor=&quot;%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll&quot; resourceType=&quot;Unspecified&quot; requireAccess=&quot;None&quot; allowPathInfo=&quot;false&quot; preCondition=&quot;classicMode,runtimeVersionv2.0,bitness64&quot; responseBufferLimit=&quot;4194304&quot; /&gt;
		  &lt;add name=&quot;UrlRewriting&quot; path=&quot;*&quot; verb=&quot;*&quot; type=&quot;&quot; modules=&quot;IsapiModule&quot; scriptProcessor=&quot;%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll&quot; resourceType=&quot;Unspecified&quot; requireAccess=&quot;None&quot; allowPathInfo=&quot;false&quot; preCondition=&quot;classicMode,runtimeVersionv2.0,bitness32&quot; responseBufferLimit=&quot;4194304&quot; /&gt;
		  --&gt;
		  &lt;add name=&quot;StaticFile&quot; path=&quot;*&quot; verb=&quot;*&quot; type=&quot;&quot; modules=&quot;StaticFileModule,DefaultDocumentModule,DirectoryListingModule&quot; scriptProcessor=&quot;&quot; resourceType=&quot;Either&quot; requireAccess=&quot;Read&quot; allowPathInfo=&quot;false&quot; preCondition=&quot;&quot; responseBufferLimit=&quot;4194304&quot; /&gt;
		&lt;/handlers&gt;
	&lt;/system.webServer&gt;
</pre></p>
<p>We good to go, hope I don&#8217;t waste my time again on this thing.</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chornsokun.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chornsokun.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chornsokun.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chornsokun.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chornsokun.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chornsokun.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chornsokun.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chornsokun.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chornsokun.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chornsokun.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chornsokun.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chornsokun.wordpress.com/658/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=658&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2010/11/04/deploy-monorail-on-iis7/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fc60b386b64b2b05c043d7676dde360e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">c.sokun</media:title>
		</media:content>

		<media:content url="http://chornsokun.files.wordpress.com/2010/11/class-aspnet.png" medium="image">
			<media:title type="html">class-aspnet</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu (NHibernate Mono MySQL) Take 2</title>
		<link>http://chornsokun.wordpress.com/2010/10/19/ubuntu-nhibernate-mono-mysql-take-2/</link>
		<comments>http://chornsokun.wordpress.com/2010/10/19/ubuntu-nhibernate-mono-mysql-take-2/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 14:43:08 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[Mono 2.6]]></category>
		<category><![CDATA[NHibernate]]></category>
		<category><![CDATA[OSS]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[MySql]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=649</guid>
		<description><![CDATA[In my previous post I am talking about the setting mono, Nhibernate and MySQL stack on Ubuntu, it was a fun experience. However I made a mistake since I didn&#8217;t intend seriously use mono at the time I just wipe the whole os off my laptop and boom all the sample code and assembly gone [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=649&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my <a href="http://chornsokun.wordpress.com/2009/11/05/nhibernate-mono-mysql-fly-by/">previous post</a> I am talking about the setting mono, Nhibernate and MySQL stack on Ubuntu, it was a fun experience. However I made a mistake since I didn&#8217;t intend seriously use mono at the time I just wipe the whole os off my laptop and boom all the sample code and assembly gone too. But guess what this time I did it again with the combination of</p>
<ul>
<li>Nhibernate 3 (beta build from trunk)</li>
<li>ConfORM (just so I don&#8217;t have to worry about .hbm.xml files)</li>
<li>MySQL driver install via Synaptic Package Manager (cuz I&#8217;m a bit lazy this time)</li>
</ul>
<p>Now see what I got:</p>
<div id="attachment_650" class="wp-caption alignnone" style="width: 690px"><a href="http://chornsokun.files.wordpress.com/2010/10/mono-nhibernate3-beta.png"><img class="size-full wp-image-650" title="mono-nhibernate3-beta" src="http://chornsokun.files.wordpress.com/2010/10/mono-nhibernate3-beta.png?w=700" alt=""   /></a><p class="wp-caption-text">SchemaExport in Action ;)</p></div>
<p>And of cause I do make the sample code &amp; assembly accessible at <a href="http://www.joljet.net/nhibernate3-confORM-mono.tar.gz">http://www.joljet.net/nhibernate3-confORM-mono.tar.gz</a> .</p>
<br /> Tagged: <a href='http://chornsokun.wordpress.com/tag/mysql/'>MySql</a>, <a href='http://chornsokun.wordpress.com/tag/nhibernate/'>NHibernate</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chornsokun.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chornsokun.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chornsokun.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chornsokun.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chornsokun.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chornsokun.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chornsokun.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chornsokun.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chornsokun.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chornsokun.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chornsokun.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chornsokun.wordpress.com/649/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=649&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2010/10/19/ubuntu-nhibernate-mono-mysql-take-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fc60b386b64b2b05c043d7676dde360e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">c.sokun</media:title>
		</media:content>

		<media:content url="http://chornsokun.files.wordpress.com/2010/10/mono-nhibernate3-beta.png" medium="image">
			<media:title type="html">mono-nhibernate3-beta</media:title>
		</media:content>
	</item>
		<item>
		<title>Relative local file path to Uri</title>
		<link>http://chornsokun.wordpress.com/2010/09/11/relative-local-file-path-to-uri/</link>
		<comments>http://chornsokun.wordpress.com/2010/09/11/relative-local-file-path-to-uri/#comments</comments>
		<pubDate>Sat, 11 Sep 2010 03:27:25 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=624</guid>
		<description><![CDATA[It just another weekend in my life time; let write a few line of code for fun. Hope you enjoy your weekend :D<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=624&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It just another weekend in my life time; let write a few line of code for fun.</p>
<p><pre class="brush: csharp;">
// Do you know you can easily conver file with relative path to an Uri object?
// of cause you do :D
var fileInfo = new FileInfo(@&quot;..\Files\TGIS.xls&quot;);
var uri = new Uri(fileInfo.Fullname);
</pre></p>
<p>Hope you enjoy your weekend :D</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chornsokun.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chornsokun.wordpress.com/624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chornsokun.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chornsokun.wordpress.com/624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chornsokun.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chornsokun.wordpress.com/624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chornsokun.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chornsokun.wordpress.com/624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chornsokun.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chornsokun.wordpress.com/624/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chornsokun.wordpress.com/624/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chornsokun.wordpress.com/624/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=624&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2010/09/11/relative-local-file-path-to-uri/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fc60b386b64b2b05c043d7676dde360e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">c.sokun</media:title>
		</media:content>
	</item>
		<item>
		<title>Khmer Collation support in SQL Server 2008</title>
		<link>http://chornsokun.wordpress.com/2010/07/28/khmer-collation-support-in-sql-server-2008/</link>
		<comments>http://chornsokun.wordpress.com/2010/07/28/khmer-collation-support-in-sql-server-2008/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 03:48:04 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Khmer Collation]]></category>
		<category><![CDATA[SQL Server 2008]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=615</guid>
		<description><![CDATA[SQL Server &#8217;08 using default collation as &#8220;SQL_Latin1_General_CP1_CI_AS&#8221; which most/all of us knew that We can store Khmer Unicode (with NVARCHAR, NText etc) Searching Khmer Unicode ? suck ! There are work around if you really want to search content in Khmer Unicode after you stored it; using SQL Server &#8217;08 default collation. How? Method [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=615&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>SQL Server &#8217;08 using default collation as &#8220;SQL_Latin1_General_CP1_CI_AS&#8221; which most/all of us knew that</p>
<ul>
<li>We can store Khmer Unicode (with NVARCHAR, NText etc)</li>
<li>Searching Khmer Unicode ? suck !</li>
</ul>
<p>There are work around if you really want to search content in Khmer Unicode after you stored it; using SQL Server &#8217;08 default collation. How?</p>
<blockquote><p>Method #1: Try to break each word using hidden space</p>
<p>Method #2: Encoding incoming Khmer Unicode content and stored it as ASCI</p></blockquote>
<p>It works but it hurt; there is an althernative SQL Server &#8217;08 introduce a few additional collation algorithm among those &#8220;Khmer_100&#8243; is one of them.</p>
<div id="attachment_616" class="wp-caption aligncenter" style="width: 371px"><a href="http://chornsokun.files.wordpress.com/2010/07/collation_khmer_100.png"><img class="size-full wp-image-616" title="collation_Khmer_100" src="http://chornsokun.files.wordpress.com/2010/07/collation_khmer_100.png?w=700" alt=""   /></a><p class="wp-caption-text">Khmer Collation in SQL Server 2008</p></div>
<p>That awesome all you have to do is changing your column collation from &lt;default collation&gt; to &#8220;Windows Collation -&gt; Khmer_100&#8243; that&#8217;s it no code isn&#8217;t that cool ?</p>
<p>No it&#8217;s not cool, It only works if SQL Server install on Windows Vista or Higher.</p>
<p><strong>Edit</strong>: actually we can also use this</p>
<p><a href="http://chornsokun.files.wordpress.com/2010/07/latin1_general_bin.png"><img class="alignnone size-full wp-image-690" title="Latin1_General_BIN" src="http://chornsokun.files.wordpress.com/2010/07/latin1_general_bin.png?w=700" alt=""   /></a></p>
<br /> Tagged: <a href='http://chornsokun.wordpress.com/tag/khmer-collation/'>Khmer Collation</a>, <a href='http://chornsokun.wordpress.com/tag/sql-server-2008/'>SQL Server 2008</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/615/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/615/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chornsokun.wordpress.com/615/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chornsokun.wordpress.com/615/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chornsokun.wordpress.com/615/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chornsokun.wordpress.com/615/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chornsokun.wordpress.com/615/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chornsokun.wordpress.com/615/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chornsokun.wordpress.com/615/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chornsokun.wordpress.com/615/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chornsokun.wordpress.com/615/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chornsokun.wordpress.com/615/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chornsokun.wordpress.com/615/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chornsokun.wordpress.com/615/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=615&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2010/07/28/khmer-collation-support-in-sql-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fc60b386b64b2b05c043d7676dde360e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">c.sokun</media:title>
		</media:content>

		<media:content url="http://chornsokun.files.wordpress.com/2010/07/collation_khmer_100.png" medium="image">
			<media:title type="html">collation_Khmer_100</media:title>
		</media:content>

		<media:content url="http://chornsokun.files.wordpress.com/2010/07/latin1_general_bin.png" medium="image">
			<media:title type="html">Latin1_General_BIN</media:title>
		</media:content>
	</item>
		<item>
		<title>Mocking ASP.NET MVC 2 Context &amp; Session using RhinoMock</title>
		<link>http://chornsokun.wordpress.com/2010/07/26/mocking-asp-net-mvc-context-sessionstatebase-using-rhinomock/</link>
		<comments>http://chornsokun.wordpress.com/2010/07/26/mocking-asp-net-mvc-context-sessionstatebase-using-rhinomock/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 03:45:38 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[ASP.NET MVC 2]]></category>
		<category><![CDATA[RhinoMock]]></category>
		<category><![CDATA[TDD]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=609</guid>
		<description><![CDATA[Watching video record from #mvcconf about &#8220;Making ASP.NET Apps Testable&#8221; by Eric B. Sowell. He showing how to test ASP.NET MVC Session make me wonder how difficult it is for RhinoMock so I load sample app and here how I test it. Since and the action: So, what you think? it just fine to love [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=609&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Watching video record from #mvcconf about &#8220;<strong>Making ASP.NET Apps Testable</strong>&#8221; by <strong>Eric B. Sowell.</strong> He showing how to test ASP.NET MVC Session make me wonder how difficult it is for RhinoMock so I load sample app and here how I test it. Since</p>
<p><pre class="brush: csharp;">
[Test]
public void TestSession()
{
   // Arrange
   // HttpContextBase, HttpSessionStateBase are abstract classes
   // I can ask RhinoMock to generate stubs for those classes
   var httpContext = MockRepository.GenerateStub&lt;HttpContextBase&gt;();
   var session = MockRepository.GenerateStub&lt;HttpSessionStateBase&gt;();

   session[&quot;Name&quot;] = &quot;Sokun&quot;;
   httpContext.Stub(c =&gt; c.Session)
      .Return(session);

   // act
   controller.ControllerContext = new ControllerContext(httpContext, new RouteData(), controller);
   var result = controller.TestSession() as ViewResult;

   // assert
   Assert.IsNotNull(result);
}
</pre></p>
<p>and the action:</p>
<p><pre class="brush: csharp;">
public ActionResult TestSession()
{
   ViewData[&quot;Name&quot;] = Session[&quot;Name&quot;];
   return View();
}
</pre></p>
<p>So, what you think? it just fine to love ASP.NET MVC 2</p>
<br /> Tagged: <a href='http://chornsokun.wordpress.com/tag/asp-net-mvc-2/'>ASP.NET MVC 2</a>, <a href='http://chornsokun.wordpress.com/tag/rhinomock/'>RhinoMock</a>, <a href='http://chornsokun.wordpress.com/tag/tdd/'>TDD</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/609/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/609/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chornsokun.wordpress.com/609/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chornsokun.wordpress.com/609/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/chornsokun.wordpress.com/609/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/chornsokun.wordpress.com/609/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/chornsokun.wordpress.com/609/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/chornsokun.wordpress.com/609/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chornsokun.wordpress.com/609/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chornsokun.wordpress.com/609/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chornsokun.wordpress.com/609/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chornsokun.wordpress.com/609/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chornsokun.wordpress.com/609/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chornsokun.wordpress.com/609/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&amp;blog=3780464&amp;post=609&amp;subd=chornsokun&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2010/07/26/mocking-asp-net-mvc-context-sessionstatebase-using-rhinomock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/fc60b386b64b2b05c043d7676dde360e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">c.sokun</media:title>
		</media:content>
	</item>
	</channel>
</rss>
