<?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&#039;s Weblog</title>
	<atom:link href="http://chornsokun.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://chornsokun.wordpress.com</link>
	<description>Conquer inner fear, push it to the limit!</description>
	<lastBuildDate>Wed, 22 May 2013 05:25:25 +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&#039;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>Use jQuery select an option from dropdown</title>
		<link>http://chornsokun.wordpress.com/2012/11/11/use-jquery-select-an-option-from-dropdown/</link>
		<comments>http://chornsokun.wordpress.com/2012/11/11/use-jquery-select-an-option-from-dropdown/#comments</comments>
		<pubDate>Sun, 11 Nov 2012 05:02:06 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Website Development]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=746</guid>
		<description><![CDATA[Self note Using index: Or select by value: &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=746&#038;subd=chornsokun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Self note</p>
<pre class="brush: jscript; title: ; notranslate">
&lt;select id=&quot;target&quot;&gt;
&lt;option selected&gt;--- blank&lt;/option&gt;
&lt;option value=&quot;21&quot;&gt;test1&lt;/option&gt;
&lt;option value=&quot;12&quot;&gt;test2&lt;/option&gt;
&lt;option value=&quot;30&quot;&gt;test3&lt;/option&gt;
&lt;/select&gt;
</pre>
<p>Using index:</p>
<pre class="brush: jscript; title: ; notranslate">
  $('#target&gt;option:eq(1)').attr('selected', true);
  // test1 will be select
</pre>
<p>Or select by value:</p>
<pre class="brush: jscript; title: ; notranslate">
  $(#target&gt;option[value=30]').attr('selected', true);
  // test3 will be select
</pre>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/746/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/746/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=746&#038;subd=chornsokun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2012/11/11/use-jquery-select-an-option-from-dropdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.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>Yii overwrite accessRules in base class</title>
		<link>http://chornsokun.wordpress.com/2012/10/22/yii-overwrite-accessrules-in-base-class/</link>
		<comments>http://chornsokun.wordpress.com/2012/10/22/yii-overwrite-accessrules-in-base-class/#comments</comments>
		<pubDate>Mon, 22 Oct 2012 08:34:13 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[OSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Yii]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=735</guid>
		<description><![CDATA[Suppose you defined a base class Controller with basic accessRules and you want to add (overwrite) rules in derived class, using array_merge here how you do it: As best practice your base class default access rule is deny all by default. Tagged: PHP, Yii<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=735&#038;subd=chornsokun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Suppose you defined a base class Controller with basic accessRules</p>
<pre class="brush: php; title: ; notranslate">
class Controller extends CController
{
  public function filters()
  {
    return array(
      'accessControl',
      'postOnly + delete',
    );
  }

  public function accessRules() {
    return array(
      // allow authenticated user to perform 'create' and 'update' actions
      array('allow', 'actions'=&gt;; array('index', 'view'), 'users' =&gt; '@'),

      // deny all users
      array('deny', 'users'=&gt;'*'),
    );
  }
}
</pre>
<p>and you want to add (overwrite) rules in derived class, using array_merge here how you do it:</p>
<pre class="brush: php; title: ; notranslate">
class Site extends Controller
{
  public function accessRules()
  {
    return array_merge(
      // allow all user to perform 'help' actions
      array( array('allow', 'actions'=&gt; array('help'), 'users' =&gt; '*') ),

      // parent go last
      parent::accessRules()
    );
  }
}
</pre>
<p>As best practice your base class default access rule is deny all by default.</p>
<br /> Tagged: <a href='http://chornsokun.wordpress.com/tag/php/'>PHP</a>, <a href='http://chornsokun.wordpress.com/tag/yii/'>Yii</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/735/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/735/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=735&#038;subd=chornsokun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2012/10/22/yii-overwrite-accessrules-in-base-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.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>Code Reading Skills for ExtJS newbie</title>
		<link>http://chornsokun.wordpress.com/2012/05/05/code-reading-skills-for-extjs-newbie-8/</link>
		<comments>http://chornsokun.wordpress.com/2012/05/05/code-reading-skills-for-extjs-newbie-8/#comments</comments>
		<pubDate>Sat, 05 May 2012 09:23:22 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[OSS]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Socialize]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[codereading; tips&tricks]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=731</guid>
		<description><![CDATA[@samnangchhun wrote a blog post talking about this particular subject, I just want to share my experience exploring a new tool especially the ExtJS library from sencha.com Now there is something special about sencha.com which I love, they put alot of effort in documenting their library API as well as sample projects in every release. [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=731&#038;subd=chornsokun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://twitter.com/#!/samnangchhun">@samnangchhun</a> wrote a <a href="http://wowkhmer.com/2012/05/05/you-should-invest-in-code-reading-skills/">blog post</a> talking about this particular subject, I just want to share my experience exploring a new tool especially the ExtJS library from sencha.com</p>
<p>Now there is something special about sencha.com which I love, they put alot of effort in documenting their library API as well as sample projects in every release.</p>
<p>But like any other developers out there the only page in the document that I would read slowly is getting start, once I could say hello I would try to solve my problem with this new library/framework. That the only way that keep me focus and dig deeper into the document, source code, sample project, testing unit whatever available. At the end of the day I would know that this is the right tool or not.</p>
<p>How do i get this quick in adapting with new environment? I walk the same path as what @samnangchhun described in his blog and I did it enough that I can quick capture the convention and pattern of the thing I want to know. So if you haven&#8217;t read enough code do it now ;)</p>
<p>Great weekend everyone.</p>
<br /> Tagged: <a href='http://chornsokun.wordpress.com/tag/codereading-tipstricks/'>codereading; tips&amp;tricks</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/731/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/731/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=731&#038;subd=chornsokun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2012/05/05/code-reading-skills-for-extjs-newbie-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.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>Play!</title>
		<link>http://chornsokun.wordpress.com/2012/05/05/play/</link>
		<comments>http://chornsokun.wordpress.com/2012/05/05/play/#comments</comments>
		<pubDate>Fri, 04 May 2012 17:05:39 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Entertainment]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[ExtJS; HTML5; jQuery; PHP]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=707</guid>
		<description><![CDATA[Out of my boredom I usually tune in some random Khmer Oldies Songs just to remind myself the glorious era where sound of the music would flew into the deepest of my heart and cheer me up. What I did in the pass was collect all my favorite songs and classified it manually and sometime after [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=707&#038;subd=chornsokun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Out of my boredom I usually tune in some random Khmer Oldies Songs just to remind myself the glorious era where sound of the music would flew into the deepest of my heart and cheer me up. What I did in the pass was collect all my favorite songs and classified it manually and sometime after clean up my station I let iTune screw up my collection a big pain in the a^^ and as my habit of trying out new os release like Ubuntu every 6 months I got to remind myself backup the music collection before I do something silly. That works out quiet well until I am get lazy and decided not to waste my time move back and force I truth the Internet to play me my favorite songs :) which mean I optimize my money Internet expend when I am not using it for some secrecy works ;)</p>
<p>How it works out for me? YouTube! Yeah, what can&#8217;t be find on YouTube right? Except that streaming video on my connection is damn slow and like chopping my head every time the buffer loading. So I tried something lighter pure sound and that tons of site offer free mp3 and I do enjoy using those site which some of you may already know and love. But I am just too demand I want some control over what I want to listen, I want to be able to easily share my playlist with my close friends so they can rejoice in hearing the songs. It turn out that a few site does offer these ability, why am I still not happy? Because the site need to know about me want me to become a member and I kind of like what the f???ck. It like I have to tell my radio who I am before it play me the song kind of thing.</p>
<p>So enough is enough, I thought to myself &#8220;look geek if it doesn&#8217;t work out, do it yourself&#8221; ah huh, that was what I use to talk with my dest friend (sad he&#8217;d gone) why don&#8217;t we do something about it, It&#8217;d be fun. Now that I am bored it justified enough that I block sometime to deliver our plan and so I start prototype the project #sidekick and show it to a few friends get their feedback some -/+ and finally I got it out of the door &#8220;<strong>JolJET Hits</strong>&#8221; or should I call it &#8220;<strong>JolJET Hits Online Music Player</strong>&#8221; still have an issue of naming it properly but here how it looks:</p>
<div id="attachment_753" class="wp-caption alignnone" style="width: 640px"><a href="http://play.joljet.net"><img class=" wp-image-753 " title="JolJET Online Music Player" alt="JolJET Player v2" src="http://chornsokun.files.wordpress.com/2012/05/72508_431229963615175_870194741_n.png?w=630&#038;h=469" width="630" height="469" /></a><p class="wp-caption-text">JolJET Player v2</p></div>
<p>A typic music player portable as it should be since it developed using HTML 5 and Sencha ExtJS technology blah blah blah not so interesting for an engineer to talk about tools. But hey it&#8217;s not bad for the cost of home stay during Khmer New Year instead of enjoying myself sight seeing Thansur Bokor Resort and weeks after to stabilize. But as the passion fill up I glad I spend my time develop this little product so that what I can do now:</p>
<ul>
<li>On first visit to the site the app will load up default playlist fill with about 250 songs enough  if you want to just hear some noise the whole day</li>
<li>If you so obsess about what you want to hear then <strong>Clear all</strong> and start adding your favorite songs from: a) Library b) Artist Collection or c) Blind search</li>
<li>when you found it select it (multiple select is supported) and click on <strong>Add to playlist</strong> to append selected song to your current playlist</li>
<li>or if you so want to hear the song immediately just double click it and you got it</li>
<li>Not just that if your like to listen to the music during your work hours (I usually did :D) close your browser as soon as your boss walk to your desk, and revisit the site after he/she gone nice trick yeah ;) who never cheat. But I had implemented is the app will remember not only your selected song but it remember your last play song and resume it for you (Thanks Sothy Chanty for  his suggestion)</li>
<li>But how about I want my friend to listen to a song. NO NOT 1 songs my collection, well we got you covered from Now Playing tab you find a menu call Sharing just select your favorite sharing technical twitter/facebook and you done</li>
</ul>
<p>Now that more like an ado why don&#8217;t you jump to the site and experience it yourself? Here the link <a title="JolJET Hits Online Music Player" href="http://play.joljet.net" target="_blank">http://play.joljet.net</a> as always I love to hear your comments/suggestions you can do it here or post on facebook page <a title="Facebook Page JolJet Hits Online Music Player" href="http://www.facebook.com/play.joljet.net" target="_blank">http://www.facebook.com/play.joljet.net</a></p>
<p>Hope you enjoy the sound LIKE if you LIKED for sharing is caring and have a great weekend ;)</p>
<br /> Tagged: <a href='http://chornsokun.wordpress.com/tag/extjs-html5-jquery-php/'>ExtJS; HTML5; jQuery; PHP</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/707/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/707/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=707&#038;subd=chornsokun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2012/05/05/play/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.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/2012/05/72508_431229963615175_870194741_n.png" medium="image">
			<media:title type="html">JolJET Online Music Player</media:title>
		</media:content>
	</item>
		<item>
		<title>[mac os x lion] Reset a user&#8217;s password in single user mode</title>
		<link>http://chornsokun.wordpress.com/2012/03/02/mac-os-x-lion-reset-a-users-password-in-single-user-mode/</link>
		<comments>http://chornsokun.wordpress.com/2012/03/02/mac-os-x-lion-reset-a-users-password-in-single-user-mode/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 04:42:36 +0000</pubDate>
		<dc:creator>Chorn Sokun</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[mac-osx-lion]]></category>

		<guid isPermaLink="false">http://chornsokun.wordpress.com/?p=704</guid>
		<description><![CDATA[Lesson learn for mac newbie, always show input method in login screen otherwise here how you going to get back into your machine. Boot into single user mode (press Command-S at power on) Type fsck -fy Type mount -uw / Type launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist Type dscl . -passwd /Users/username password, replacing username with the targeted user and password with the desired password. Ignore [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=704&#038;subd=chornsokun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<div>Lesson learn for mac newbie, always show input method in login screen otherwise here how you going to get back into your machine.</div>
<ol>
<li>Boot into single user mode (press Command-S at power on)</li>
<li>Type <tt>fsck -fy</tt></li>
<li>Type <tt>mount -uw /</tt></li>
<li>Type <tt>launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist</tt></li>
<li>Type <tt>dscl . -passwd /Users/username password</tt>, replacing <tt>username</tt> with the targeted user and <tt>password</tt> with the desired password. <strong>Ignore the error message!</strong></li>
<li>Reboot</li>
</ol>
<br /> Tagged: <a href='http://chornsokun.wordpress.com/tag/mac-osx-lion/'>mac-osx-lion</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chornsokun.wordpress.com/704/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chornsokun.wordpress.com/704/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=704&#038;subd=chornsokun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://chornsokun.wordpress.com/2012/03/02/mac-os-x-lion-reset-a-users-password-in-single-user-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.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>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 [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=692&#038;subd=chornsokun&#038;ref=&#038;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> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=692&#038;subd=chornsokun&#038;ref=&#038;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>11</slash:comments>
	
		<media:content url="http://0.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 [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=683&#038;subd=chornsokun&#038;ref=&#038;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:</p>
<pre class="brush: csharp; title: ; notranslate">
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>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>
<pre class="brush: csharp; title: ; notranslate">
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>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> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=683&#038;subd=chornsokun&#038;ref=&#038;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://0.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 [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=675&#038;subd=chornsokun&#038;ref=&#038;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> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=675&#038;subd=chornsokun&#038;ref=&#038;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://0.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 [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=668&#038;subd=chornsokun&#038;ref=&#038;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:</p>
<pre class="brush: plain; title: ; notranslate">
sudo gedit /etc/fonts/conf.d/65-khmer.conf
</pre>
<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:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;family&gt;Khmer_Unicode_Font_Of_Your_Choice&lt;/family&gt;
&lt;family&gt;Khmer OS&lt;/family&gt;
</pre>
<p>next step issue the following command to update font package:</p>
<pre class="brush: plain; title: ; notranslate">
sudo dpkg-reconfigure ttf-khmeros
</pre>
<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> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=668&#038;subd=chornsokun&#038;ref=&#038;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://0.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 [&#8230;]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=664&#038;subd=chornsokun&#038;ref=&#038;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> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chornsokun.wordpress.com&#038;blog=3780464&#038;post=664&#038;subd=chornsokun&#038;ref=&#038;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://0.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>
