Chorn Sokun's Weblog

Conquer inner fear, push it to the limit!

Archive for the ‘Geek’ Category

.NET Database Application Development (C#)

leave a comment »

If you are interested in .NET and want to jump start with Database Application Development in no time here is your chance

Lady & Gentlemen, boy & girl I present you a .NET Database Application Development (C#) fast track with the following content:

  1. C# Programming Introduction
  2. Introduction to NHibernate .NET Object Relational Mapping (ORM)
  3. Advance Data Processing with NHibernate Criteria API
  4. Hand-on practice

At the end of the course your will learn tools & technique to develop database application which could talk various Database Management System (DBMS) from Microsoft Access, Microsoft SQL Server, MySQL you name it.

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 .NET Database Application Development (C#)

Requirement:

  • Basic Programming Concept
  • Know basic C# Programming
  • Be able to read and understand this blog post – otherwise get yourself English tutor

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 ;)

Written by Chorn Sokun

December 5, 2010 at 4:36 pm

What is it about WP that makes it so hacker friendly?

leave a comment »

@shanselman twitted an interesting message with an interesting response.

What to remember “With great power come great responsibilities”, if you want to be hot remember this defense in depth

Written by Chorn Sokun

June 29, 2010 at 11:42 am

Posted in Geek, Rumor

Weekend => app.goLive ;)

with one comment

Early this month I got into a busy schedule in order to release my new database application. I needed to run & check a final test, wrote up manual and do some paper work to invite my colleague across the country (2 staffs from each province X 24) to attend a 3 days training workshop in total we get approximately 48 staffs which is too much for an IT training so we split it into 2 batches 12 provinces each.

In term of the actual database I allocated 2 days and for the first day of the training I leave it for general IT update lesson which include Khmer Unicode orientation half morning, and for that session alone I am very lucky to have Mr. CHEA Sok HuorCountry Project Leader from PAN and his colleague came in for help. Without them I wouldn’t know where to get such precise Khmer Unicode Orientation somewhere else, so thank you from the deepest of my heart.

Oh! Talking about helping there is another gentle who I owe him as well, that gentle is Mr. Tuy Pheap my long colleague. We share room in the last 3 years before he moved on to his current job and come back to seat behind my back :) “Again :D”.  I disturb him from time to time :D policing what my system do against his employer needs (the World Bank) not only that he also help me correct my Khmer Translation + Spelling :) and this phrase “ខ្ញុំយល់ហើយ!!!” for a button which in English say “I Understand” was his innovation :) let me tell you about this joke

In our new application if there are any problems or errors detected a list of detail explanation will show up ( jQuery modal )  what I originally did was to have user click on “Ok” button to close the message. But without anything special user might just click “Ok” and go on … that not fun. So we came up with an idea instead of naming the button “Ok” we called it “I Understand” :))

And as a side effect during the training we forget to translate a few messages so default message showed. Since the user  do not read English and he dare not click on the button to close the message :(

I am glad with the result as it turn out and thanks to all the backend libraries that I used without them I wouldn’t know how much I would need to damage my brain cells to get this job done :)

What I used?

  • NHibernate
  • Castle (MonoRail, ActiveRecord)
  • Rhino-Tool (Rhino.Security, Rhino.Common)
  • Oh ! ASP.NET for sure :) but I a brail devil don’t blame me for not using webform
  • Log4net
  • jQuery & it plug-in(s)

Challenges:

  • For the past 5 years most of them get use to do data entry in desktop mode (VB6)
  • Some of them using the Internet for the first time; right this is (1==1).
  • The amount of data that we collect had increase 1.5X
  • More restriction in term of data modification – they used to have full control over there data and that cause me alot of headache over the past years.

At the end of training session I got a request to setup a demo URL (http://db.ncdd.gov.kh/pid-train) so that when participant get back to their duty province they can teach their colleague, by doing this I get a few additional feedback on how to improve the process of data entry as well as knowing how user interact with the application.

For sure: “No one is perfect” and “No software ever release bug free” as long as it could do it main job properly I would call it V1.

Now the weekend is coming I had to switch on actual URL and for that mean I had to copy a folder change connection string to get another URL up and running KOOL stuff ;)

Written by Chorn Sokun

July 24, 2009 at 3:59 pm

Posted in Community, Development, Geek

Tagged with

Myth of Cambodia Geography Identification Code

with one comment

How many of you are familiar with Cambodia Geography Identification code. Do you know the myth behind it code assignment? Well, it’s all started like this:

  • There are 4 levels of administration
    • Province
      • District
        • Commune
          • Village
  • Each level add up 2 digits begin with Province 2 digits
  • Identification code are stored in numberic form (Integer)

That mean valid village code length bewteen 7 and 8 for example code 24020406 would identified as:

  • Village Name = Ou Ressey Loeu (24020406)
  • In Commune  = Ou Andoung (240204)
  • In District = Sala Krau (2402)
  • In Province = Pailin (24)

Now suppose these Geography represent in 4 separate tables (SQL Server for ghost shack!) 

geography

By knowing a village code (eg:  24020406) I want to extract province code and I want the quickest way possible any thought? Oh ! there will be a reward for best answer.

Written by Chorn Sokun

April 28, 2009 at 5:27 pm

Game? I’m suck! Help

with 24 comments

Last night while I went out to TnC for a reason I saw some friends Vannak & Ratha surprisingly they was having a good time in JXII world ;)

Talking about game when I was young (g! am I old) nah that time I was probably 12-15 years old and I love playing video game. My favorite was(is) “Street Fighter” but dear I hardly play those game anymore after my 2nd big brother punished me for always leaving home for game :( kids you know. Alright so what the deal? I moved my focus from game to computer and it end up with me being a computer programmer.

Suddenly in the late 2008 a friend who is a graphic designer Sambath persuaded me to play the game (JXII) well since I got a copy of the game during BarCamppp and consider the level of stress I had during working day I decided I should try something fun and there it started. But man, I may have been “‘smarter” figure out how code work, but it seem like all the time when I try to be a gamer (computer game) I feel suck.

If you are my dear reader a JXer willing to help me becoming a better player please drop your suggestion base on the following spec:

Characters & skills Learnt

I am WuDang Sword sect, current lv 59, learn almost all available skill elements.
No school book went to HS a few times with deadly result :D even wounded.
Any tips, tricks … :) let play the game.

Written by Chorn Sokun

March 25, 2009 at 11:21 am

Posted in Geek, Socialize

Screencast TortoiseSVN Intro

with 2 comments

This is my first screencast uploaded on YouTube don’t know why the video quality was reduced check this out

Anyway this is just a preview see how it works if you happen to know a better way to publish the video “to get high quality, which exclude solution to host file on my own server :)” and where still open for me to embed the file in my blog please knock me up.

Ah huh! want to try high quality video? get it here http://rapidshare.com/files/149121598/SVN.avi. To view the downloaded version you must first download and install the Techsmith Video Codec (160 K)

Written by Chorn Sokun

September 28, 2008 at 9:35 pm

Posted in Geek, Tips & Tricks

Tagged with ,

StackOverFlow Gentlements, & Ladies

leave a comment »

I hang around in StackOverFlow.com recently and I wanted to wait long enough so that I can describe how the experience like G do I ever told you I hate sleeping? but it seem like Jeff Atwood also doesn’t sleep & blogging; so why don’t we just read what he got to say about his toy shall we?

 

StackOverFlow

StackOverFlow

 

http://www.codinghorror.com/blog/archives/001169.html

Written by Chorn Sokun

September 20, 2008 at 6:16 am

Posted in Geek, OSS

Tagged with