You are on page 1of 68

sUmeKarBCUnBr nigGbGrsaTry:agesµaHGs;BIdYgcitþ

CUncMeBaH

Ék]tþm sM cMerIn RbFannaykdæan RksYgbrisßan
kñúg»kasEdlÉk]tþmRtUv)nEtgtaMgCa TIRbwkSaRksYgbrisßanmanzan³esµIGKÁnaykbEnßmelImuxgarbc©úb,nñ
sUmÉk]tþmmansuxPaBl¥bribUrN_ GayuyWnyUrkmøaMgxøaMgkøa R)aCJaQøasév edIm,IrYmcMENkkñúgkar GPivDÆn_
RbeTs[rIkcMerInbEnßmeTot eRkammaK_adwknaMd¾Qøasévrbs; semþcGKÁmhaesnabtIeteCa
h‘un Esn naykrdæm®nþI énRBHraCaNacRkkm<úCa nig sUmÉk]tþm nig elakCMTavCYbEtesckþIsux
suPmgÁl nig RbkbedayBuT§BrTaMg5RbkarKW Gayu vNѳ sux³ Bl³ nig bdiPaN³kMubIeXøógXøateLIy .

eKarBCUnBrBI
GñkRsI qay cinþa GKÁnaykrgRkumh‘un Usoft Technology Co.,Ltd RBmTaMgshkarI
nig shkarinIeRkam»vaTTaMgGs;én Rkumh‘un Usoft Technology Co.,Ltd
eKhTMB½rCUnBr³ http://www.ant.com.kh/h.e/Sam-Chamroeun/
bTGtßaFib,ayRbcaMelx
bc©úb,nñesÞIrEtRKb;EpñkTaMgGs;kñúgkargarRKb;RKgsuT§swgEt BwgEp¥keTAelIkuMBüÚT½r rab;bBa©ÚlTaMgkareFVICMnYjCalkçN³RKÜsar
pgEdr . mü:ageToteyagtambTBiesaFn¾rbs;´eTAelIkargarbeRgonEpñksresrkmµviFIkuMBüÚT½relImuxviC¢amYycMnYndUcCa C,
C++, Visual C++, C#, JSP, ASP.Net, nig E-Commerce ry³eBlCag7qñaMmkenH nigKYbpSMCamYybTBiesaFn¾kargar

CamYynwg EpñkB½t’manviTüaknøgmkenH ´yl;eXIjfa nisSitmYycMnYnFMenABuMTan;mansmtßPaBRKb;RKan;kñúgGVIEdlCatMrUvkar
TIpSabc©úb,nñenAeLIyeT . etIvamanmUlehtuGVI)anCadUecñH ebIsalaCaeRcIn)anekIteLIgsMrab;EpñkB½t’manviTüaenaH?

bBaðaenHCabuBVehtuénktþaepSg²CaeRcIn b:uEnþGVIEdlsMxan;KW³ kmµviFIbeRgon smtßPaBrbs;saRsþacarü ÉksarRsavRCav kar
RbkYtRbECg nigkarelIkTwkcitþdl;GñkEdlxitxMRsavRCav . TsSnavdþI Gan “ANT” nwgmineFVIkarGtßaFib,ayeTAelIkmµviFI
beRgon b¤k¾smtßPaBrbs;sa®sþacarüenaHeT b:uEnþTsSnavdþI Gan “ANT” nwgcUlrYmCa ÉksarRsavRCav nigbegáItnUvkmµviFI
RbkYtRbECg nigelIkTwkcitþCaR)ak;rgVan; nigpþl;lixitsresIr RBmTaMgeFVIkarcuHpSayBIsñaédGñkTaMgenaH Caerogral;énkar
cuHpSayrbs;xøÜnpgEdr ehIyTsSnavdþI Gan “ANT” k¾sUmRbkaspgEdr nUvkarsVaKmn¾dl;elak-elakRsI nigb¥Ún²sisS
nisSitEdlmanbMNgbgðajsñaédrbs;xøÜnCuMvijEpñkB½t’manviTüaEdlxøÜnman .

TsSnavdþI Gan “ANT” Gacnwgcat;TukpgEdrfaCaTsSnavdþITImYy kñúgRBHraCaNacRkkm<úCa elIEpñkRsavRCavPasasresr
kmµviFIkuMBüÚT½r ehIyk¾snüapgEdrfanwgxitxMBRgwgKuNPaB nigkarRsavRCavbnþCamYyGs;elak-elakRsInigb¥Ún²sisSnisSit
kñúgbuBVehtuCa ÉksarRsavRCav kñúgvis½y programming ehIy ANT k¾ebIkcMhrsMrab;karshkarCamYysaklviTüal½y
nig Rkúmh‘unepSg² nUvsñaédRsavRCavrbs;xøÜneday\tKitéføpgEdr .

CacugbBa©b;kñúgnam´ sM kkáda CaGKÁnaykRkúmh‘un USoft Technology nigCacaghVagpSayénTsSnavdþI Gan “ANT” ´
sUmEføgGMNrKuNd¾RCaleRCAnUvkarKaMRTkmµviFIpSaynig)anCavTsSnavdþIeyIg´ enHKWCakayvikarénkarcUlrYmKaMRTkñúgvis½y
B½t’manviTüaénRBHraCaNacRkkm<úCaBIsMNak; Gs;elak-elakRsInigb¥Ún²sisSnisSit ehIyk¾rgcaMTTYlpgEdrnUvkarriHKn;
kñúgn½ysßabna .

caghVagkarpSay nig niBnænayk

sM kkáda
rcnasm<½n§ matika TMB&r
1> GVIEdlekIteLIgfµI - What’s happening 7
TIRbwkSa³ 1. Hardwares - etIGñkdwgGVIxøHBI iPhone? 7

2. Softwares - manGVIfµIsMrab; Adobe Photoshop CS4 9
CMTav Ca nag 3. Internet - lkçN³Biessrbs; IE 8 10
caghVagkarpSay nig niBnænayk³ 4. Games - Age Of Empire III 12

elak sM kkáda 2> TMB½rKnøWHsMxan;² - Computer best practice 14
naykcat;karTUeTA³ 1. Hardwares - viFIsaRsþkñúgkardMeLIgkuMBüÚT½redayxøÜnÉg 14

2. Softwares - ebIk Gmail CamYy Microsoft Outlook 17
GñkRsI qay cinþa
3. Internet - karbegáIt nig Post Blog CamYyeKhTMB½rExµryUnIkUd 18
RbFanniBnæEpñk Internet nig System³ 4. Network - KnøwH10y:ageFVIeGay Wireless Network kan;EtRbesIr 20
elak qay sMbUr 3> RbB½næ nig bNþaj - System & Networking 22
RbFanniBnæEpñk Games nig Security³ 1. rebobdMeLIg Mail Server CamYy Exchange Server 22

elak hgS suP½Rkþ 4> karrcna nig begáIteKhTMB½r - Web Design & Development 25
1. begáIt Dynamic Menu 25
EpñkB½t’man³ 2. kareRbIR)as; Master Page kñúg Visual Studio 2008 27

elak qay tula 3. EsVgyl;BI AJAX (Asynchronous JavaScript And XML) 31

Epñkrcna³ 5> karsresr nig begáItkmµviFI - Desktop Development 35
1. EsVgyl;BIPasa C# (CSharp) 35
elak ehg menarmü 2. begáItkmµviFI Chat Client 38

3. RKb;RKgkarlk;esovePAtamry³ C++ 44
kBaaØ G‘ug can;DI
Epñklk;³ 6> karbegáIt nig RKb;RKgTinñn½y - Database Management 51
1. eKalkarN_ nig smasFaturbs; Relationship 51
elak TIn savuD 2. EsVgyl;BI T-SQL CamYy MS SQL Server 2005 55

EpñkTIpSar³ 7> Pasa Actionscript - Actionscript Language 58

elak evOg tula 1. Hello! ANT eday ActionScript 3.0 58

elak )an rtna 8> TMB½rduHxatxYrk,al - Testing Your Clever 60

9> karRblg nig RbkYtRbECg - Test & Contest 63

10> bBaða nig dMeNaHRsay - ANT Forum 64

Gas½ydæanTMnak;TMngTsSnavdþI Gan "ANT" e)HBum<eday³
pÞHelx 47eb pøÚvelx 199 sgáat;TMnb;Twk x½NÐcMkarmn RkúgPñMeBj STC (JSRC) Printing House

EpñkpSayBaNiC¢kmµ niglk;³ 016 666 653 / 011 394 175 TItaMg³ kñúgbrievnsalabwgRtEbk
E-mail: advertise@usofttechnology.com.kh

Website: www.ant.com.kh
Magazine Outline

GtßRbeyaCn¾énCMBUknimYy²
1> GVIEdlekIteLIgfµI - What’s happenging
nwgpþl;nUvB½t’manEdleTIbEtekItmaneLIgfµI²sMrab;TIpSar ]bkrN_eGLicRtUnic, hardware, software, ]bkrN¾b¤kmµviFIEdlBak;B½n§
bec©kviTüa internet, nig games fµI² .
2> TMB½rKnøWHsMxan;² - Computer best practice
CaGtßbTsþIBIrebobeRbIR)as;]bkrN¾ rW Hardware epSg² kardMeLIg nigKnøWHkñúgkarRKb;RKg Network, nigebobeRbIR)as;kmµviFIepSg²
EdlmanRbeyaCn¾sMrab;GñkGan .
3> RbB½næ nig bNþaj - System & Networking
pþl;nUvGtßbTsMrab;RsavRCavBIeKalkarN¾ nigkarRbRBwtþiénRbB½n§ nig bNþajrbs;kuMBüÚT½r nig]bkrN¾epSg²k¾dUcCakarbgðajBIRTwsþIén
dMeNIrkar telecommunication pgEdr .
4> karrcna nig begáIteKhTMB½r - Web Design & Development
Gs;elak-elakRsI nigb¥Ún²nisSitnwgGacTTYl)annUvcMeNHdwg nig bTBiesaFn¾GMBIkarbegáIteKhTMB½r GMBIkareRbIR)as; HTML/XHTML,
CSS, JavaScript, ASP.NET, AJAX nig bec©kviTüafµI²EdlTak;TgeTAnwgkarbegáIt nig RKb;RKgeKhTMB½r .

5> karsresr nig begáItkmµviFI - Desktop Development
CMBUkenHKWTsSnavdþI Gan "ANT" nwgelIkykPasakmµviFIcMnYn2 mkeFVIkarENnaMsMrab;GñkEdlkMBugerobcMxøÜneGayeTACaGñksresrkmµviFI
kuMBüÚT½rKW Pasa C# nig Pasa C++ . tamry³Pasa C# TsSnavdþI Gan “ANT” )aneFVIkarEbgEckecjCa2RbePTGtßbTKW C# sMrab;
GñkminTan;ecH nig C# sMrab;GñkEdlecH nigmankMritmFümeLIg .
6> karbegáIt nig RKb;RKgTinñn½y - Database Management
edayemIleXIjBItMrUvkarx<s;kñúgkarRKb;RKgTinñ½ytambNþalRkúmh‘unCaeRcIn eTIbTsSnavdþI Gan “ANT” )anbegáItnUvTMB½renHeLIg
edayepþateTAelIrebobeRbIR)as;Pasa T-SQL CaPasasMrab;EsVgrkTinñn½y nig begáItRbB½n§Tinñn½ytamry³ Microsoft Access .
7> karRblg nig RbkYtRbECg - Test & Contest
Ca]_kasmYyd¾RbesIrbMputsMrab;elak-elakRsI nigb¥Ún²nisSitGacbeBa©jnUvsmtßPaBrbs;xøÜnkñúgkarRbkYtRbECgC½ylaPIRbcaMRtImas
sMrab;karbegáItkmµviFIkuMBüÚT½r b¤eKhTMB½re .
GñkQñHnwgTTYl)anR)ak;lanEdl]btßmÖedayTsSnavdþI nigBIbNþaRkúmh‘unepSg² RBmTaMgmanpþl;nUvlixitbBa¢ak; nig cuHpSayCaGñk
BUEkRbcaMRtImas EdlenHCalkçNBiessmYysMrab;elak-elakRsInigb¥Ún²kñúg]_kassMPasn¾rkkargartambNþaRkúmh‘unepSg² .
8> TMB½rdusxat;xYrk,al - Testing Your Clever
CaTMB½rEdlelak-elakRsI nigb¥Ún²GaceFVIkarvas;sÞg; nig hVwkhat;kMritR)aCJarbs;xøÜnCamYynwg 20sMnYrCaerogral;Ex . GñkEdlmanBinÞú
x<s;CageKKWCaGñkEdl)anC½ylaPI RBmTaMgTTYl)ankarelIkTwkcitþCafvikar nig karcuHpSay CaGñkmanR)aCJax<s;RbcaMExpgEdr .
9> bBaða nig dMeNaHRsay - ANT Forum
CaTMB½rebIk]_kaseGayelakGñksYrBIbBaðaEdlGñkCYbRbTH nig eqøIysMnYrrbs;mitþGñkGanedIm,IbgðajBIbTBiesaFn_rbs;Gñk .

6 July 2008 | Issue 1
What‘s happening?

Hardwares

etIGñkdwgGVIxøHBI iPhone
qay sMbUr
eRbICaTUrs½BÞ
iPhone Cakarvivtþn_fµIénTUrs½BÞcl½tEdlGnuBaØatGñkeFVIkarehAecjedaykarbeNþIr nig b:HelIeQµaH b¤ elxTUrs½BÞkñúg address
book, favorites list b¤ call log rbs;Gñk . vaeFVIkarsV½yRbvtþikñúgkarrkSaTuk contact rbs;GñkeTAkñúg Windows PC, Mac b¤

Internet ehIyGnuBaØateGayGñkeRCIserIs nig sþab;sarCasMelg)anRKb;eBl . iPhone manBIrRbePTKW 8GB nig 16GB .

karehAecj³ CamYy iPhone GñkGaceFVIkarehAecj)any:aggayRsÜl . elIsBIenHeTAeTotGñkGaceFVIkarbegáItnUv favorite list
sMrab;elxTUrs½BÞEdlGñkeBjcitþkñúgkarniyayTUrs½BÞrYmKña (conference calls) )any:aggayRsÜl .
karepJIrsar³ iPhone )anbBa©ÚlnUvkmµviFI SMS CamYy QWERTY soft keyboard y:agévqøatkñúgkarkarBar nig EktMrUvBaküEdlxus
gayRsÜleRbI nig manRbsiT§iPaBCag smartphone CaeRcInepSg²eTot . iPhone eFVIkarbgðajsar SMS dUcCa chat nig GnuBaØat
eGayGñkepJIrsareTAkan;mnusSeRcInGñkkñúgeBldMNalKña .
sarCasMelg³ GñkGaceFVIkarsþab;nUvsarCasMelgmYyNaEdlGñkcg; (manlkçN³dUceTAnwgsarCaGkSrEdr) .
rUbPaB³ CamYynwgkaemr:a @-megapixel nig kmµviFIsMrab;RKb;RKgrUbPaB iPhone QanmuxeKsMrab;TUrs½BÞbc©úb,nñ . vaedaysV½yRbvtþieFVIkar
rkSaTukrUbPaBcUleTAkñúgkuMBüÚT½r (PC b¤ Mac) eBlEdlGñkP¢ab;eTAkan;kuMBüÚT½r nig eFVIkarbgðajrUbPaBCalkçN³esovePA (albums)
)any:agRss;s¥at .
sMelgeraT׳ GñkGaceFVIkarbegáItsMelgeraT×elI iTunes Store CamYynwgbTcMerogCag 500>000 bT .
eRbICa iPod
iPhone KWCa widescreen iPod Edlman touch screen 3.5 inch nig EpñkepSg²eTotdUcCabTcMerog sMelg vIedGU TUrTsSn_ nig
ExSPaBynþ . vaGnuBaØateGayGñkftcMlgEpñkTaMgenHBI iTunes library BIkuMBüÚT½rrbs;Gñk (PC b¤ Mac) .
cMerog³ CamYynwg iPhone GñknwgmanPaBgayRsÜlkñúgkarcak; nig emIlbTcMerogCamYy lyrics EdlGñk)anbBa©ÚlBIkuMBüÚT½rtamry³
iTunes library rbs;Gñk .

vIedGU³ CamYynwgeGRkg; 3.5 inch GñknwgmanPaBgayRsÜlkñúgkaremIlTUrTsSn_ nig ExSPaBynþBIkñúg iPhone b¤kñúg iTune Store )an
y:aggayRsYledayRKan;EteRbI touch screen bBa¢a .
Wi-Fi Store: iTones Wi-Fi Music Store elI iPhone nwgeFVIeGayGñkgayRsÜlkñúgkaremIl Tij nig download bTcMerogEdlGñk

eBjcitþ .

www.ant.com.kh | ANT Magazine 7
What‘s happening? Hardwares

Internet

iPhone mannUv HTML email nig Safari ehIysV½yRbvtþieFVIkarftcMlg bookmarks BIkuMBüÚT½rrbs;Gñk nigeFVIeGayGñkmanPaBgay
RsÜlkñúgkarEsVgrktamry³ Google nig Yahoo . elIsBIenHeTAeTot iPhone mannUv multitask EdlGaceGayGñkniyayTUrs½BÞ
kMLúgeBlebIk internet )an .
Safari: CamYynwg Safari GñknwgGacemIleKhTMB½r)any:agRss;s¥atCag smartphone CaeRcInepSgeTot . eFVIkarBRgIkeKhTMB½r

tamry³ Multi-Touch touchscreen . begáItnUv Web Clip sMrab;eKhTMB½rEdlGñkeBjcitþ .
Mail: iPhone eRbInUv rich HTML email client EdlGaceGayelakGñkeRbICamYy POP3 b¤ IMAP mail services nig bgðajrUbPaB

RkaPic nig GkuSr)any:agRtwmRtÚv .
EpnTI³ CamYyPaBGs©arürbs; iPhone Map GñknwgmanPaBgayRsÜlkñúgkarEsVgrkTItaMg nig B½t’mancracr CamYynwg Multi-Touch
interface elI iPhone .

Widgets (Gadget b¤ Google Desktop): CakmµviFIeRbIsMrab;bgðajBIB½t’mansMxan;²dUcCaGakasFatu B½t’manfµI² nig B½t’manCaeRcIn

eTot .
YouTube: iPhone mannUv YouTube player BiessmYyEdlGaceGayGñkTsSnavIedGUBIeKhTMB½rrbs; YouTube nig epJIrvIedGUeTA

kan;mitþP½®kþrbs;Gñk)any:aggayRsÜl .
eRbIR)as;nUvbec©kviTüax<s;
iPhone KWCakarvivtþn_fµIénTUrs½BÞcl½t edayeRbInUvbec©kviTüafµI²CaeRcIndUcCa Multi-Touch touchscreen kmµviFI nig karrcna .
Multi-Touch: GñkGaceRbIGVITaMgGs;enAkñúg iPhone edayeRbIEtRmamédCamYynwg Multi-Touch touchscreen d¾FMmYy . GñkGac

eRbI keyboard emIlrUbPaB BRgIkBRgÜmeKhTMB½rtamry³ iPhone Multi-Touch .
OS X: iPhone eRbInUv OS X EdlGaceGayGñkeRbInUvkmµviFIl¥²CaeRcIndUcCa rich HTML email, full-featured web browsing,

address book nig calendar . elIsBIenH iPhone eRbInUv multitasking EdlGaceGayGñkebIkeKhTMB½r kMLúgeBl download

email rbs;Gñk .

Wireless: iPhone eRbInUv quad-band GSM, the global standard sMrab; wireless communications . vak¾GaceRbI)anCamYy

AT&T’s EDGE network, 802. 11b/g Wi-Fi, nig Bluetooth 2.0 sMrab;P¢ab; headset rbs; Apple . RKan;EtbgVilmYyCuMGñknwg

bþÚredaysV½yRbvtþirvag EDGE nig Wi-Fi .
Accelerometer: eFVIkarcab;nUvskmµPaBeBlEdlGñkbgVil iPhone BIedkeTAQr b¤ BIQreTAedk edayeFVIkarbþÚrkarbgðajrbs;va)an

edaysV½yRbvtþi .
Proximity Sensor: eBlEdlGñkelIkTUrs½BÞeTACitRtecokrbs;Gñk proximity sensor nwgeFVIkarbiTBnøWrbs;eGRkg; edaysV½yRbvtþi

edIm,IsnSMfµ nig karBarkarb:HedayécdnürhUtdl;TUrs½BÞdkecjBIRtecok . mü:ageTotvaeFVIkarpøas;bþÚrkarbeBa©jBnøWeTAtamBnøWxageRkA
edaysV½yRbvtþiEfmeTotpg .

8 July 2008 | Issue 1
What‘s happening?

Softwares

manGVIfµIsMrab; Adobe Photoshop CS4
ehg menarm ü
Adobe KWCaRkumh‘und¾FMmYyEdl)anbegáItnUvkmµviFIsMrab;kuMBüÚT½rl,I²CaeRcIndUcCa Adobe Photoshop, Adobe Illustrator, Adobe
Acrobat, Adobe InDesign, Adobe Design Premium nig Adobe Photoshop Element . naeBlfµI²enHRkumh‘un Adobe

eTIbEtTijRkumh‘un Macromedia ehIyeFVIkarbBa©ÚlnUvplitplrbs; Macromedia eTAkñúgplitplrbs;xøÜnEdlmandUcCa³ Adobe
Flash, Adobe Dreamwaver nig Adobe Flex . PaBrIkcMerInrbs;Rkumh‘un Adobe )aneFVIeGayplitplrbs;eKQandl;CMnan; CS3

ehIyeRKagnwgecjnUvCMnan; CS4 kñúgeBlqab;²enH . xageRkamenHKWCalkçN³BiessmYycMnYnsMrab;kmµviFI Photoshop CMnan; CS4 .
1> eFIVkarEkERbBI 32-bit version eTACa 64-bit version
karEkERbenHsMrab;Et Window b:ueNÑaHminEmnsMrab; Mac OS eT . CaTUeTAral;karEkERbnUvlkçN³BiessfIµ²rbs;Rkumh‘un Adobe
EtgEtEfrkSalkçN³BiessenaHeGaydUcKñarvag Window nig Mac OS etIehtuGIVeBlenHRkumh‘un Adobe minGacmanlTæPaBeFVI
dUcmun ? enHKWmkBIkarpøas;rbs; Apple kalBIqñaMmuneTACa Mac’s programming underpinnings .
etI 64-bit énkuMBüÚT½rmanplRbeyaCn_GIV? tamry³ nutshell )anniyayfa kuMBüÚT½r 64-bit GaceGaykmµviFIeRbIR)as; memory
)aneRcInrhUtdl;eRcInCag 4GB . enHKWCasmßtPaBd¾Gs©arüEdlGaceGayGñkbegáItnUvrUbPaBEdlman resolution FM² nig eRbInUv
bec©kviTüa Lightroom EdlRtUvkar RAM d¾eRcInsMrab;begáIt .

2> begIánnUvsmtßPaBrbs; dodge nig burn tool
3> muxgarrbs; “True Edge” RtUv)aneKdak;cUlkñúg Refine Edge én Photoshop
True Edge enHvaCYyeFIVeGayRbesIreLIgénEKm rW Cay²én selection rbs;Gñk .
3> Liquid Resize Feature :

bec©kviTüaenHRtUv)aneKehAfa Seam Carving vamannaTIGnuBaØatieGayGñkGacBRgIk rW bRgYmrUbPaBedaymineFVIeGayplb:HBal;dl;
KuNPaBénrUbeLIy.
4> Real-time filters with no color depth restrictions

Cabec©kviTüafIµrbs; Adobe RtUv)aneKehAfa Hydra vamantYnaTIGnuBaØatieGay filters eRbIR)as;nUv graphics card power enAkñúg
eBldMenIrkarrUbPaBCMnYs CPU . enaHmann½yfa RKb;RbtibtiþkarTaMgGs;nWgdMeNIrkarelOnCagmuneRcIn. Hydra filters sÁal;nUvRKb;
color depths )any:agl¥.

5> 3D kñúg Adobe Photoshop

www.ant.com.kh | ANT Magazine 9
What‘s happening?

Internet

lkçN³Biessrbs; IE 8
qay tula
Internet Explorer 8 Bata1 (IE8) KWCaRbePT browser d¾manRbCaRbiy
Computer / Processor
fµIbMput EdlRtÚvdak;eGayeFVIkarsakl,geRbIR)as;edayRkúmh‘un Microsoft .
kuMBüÚT½rEdlman 233MHz processor b¤ x<s;CagenH
Browser fµIenHvamanbgáb;nUvKuNsm,tþid¾Gs©arümYycMnYneTAelIkareRbIR)as;
¬Pentium kan;Etl¥¦
Cascading Style Sheets (CSS), Layout, Programming Model, Per-
Operating System
formance Reliability ehIynig Service Integration . cMeBaH IE8 enH
• Windows Vista x64 and x86
nwgeFVIeGayGñkbegáIt (developer) Gñkrcna (designer) nig GñkTsSna • Windows Vista (SP1) x64 and x86
• Windows XP (SP2)
eKhTMB½rmanGarmµN_ Ebøk nig xusEbøkepSgBI IE mun² eRBaHfa browser fµIenH • Windows XP (SP3)
RtÚv)aneKdak;bBa©ÚlnUvlkçN³BiessfµI²CaeRcIn ehIycMeBaHkarebIkeKhTMB½r • Windows XP Professional x64
• Windows Server 2008 x64 and x86
vijKWmanPaBrh½s nig gayRsÜleRbICagmunEfmeTotpg . • Windows Server 2003 (SP2) x64 and x86

lkçN³BiessEdl)andak;bBa©Úlkñúg IE8 RtÚv)anEckecjCaBIrEpñkepSgKña ³ Memory
I. lkçN³BiesssMrab;GñkbegáIt (developer) nig Gñkrcna (designer) • Windows Vista - 512MB
1. User agent changes • Windows Vista (SP1) - 512MB
2. Accessibility improvement • Windows XP (SP2) - 64 MB
3. Non-administrator and per-site ActiveX • Windows XP (SP3) - 64 MB
4. Loosely-couple IE • Windows XP Professional x64 - 128 MB
5. DEP,NX memory protection and manage add-ons • Windows Server 2003 (SP2) - 64 MB
6. Activities • Windows Server 2003 (SP2) ia64 - 128 MB
7. WebSlices • Windows Server 2008 – 512MB
8. Improvements in CSS
9. Innovation in AJAX Display
10. Functionality improvement
11. In DOM L2 core support Super VGA (800 x 600) CamYynwg 256BN’ b¤
12. Integrated developer Tools x<s;CagenH
II. lkçN³BiesssMrab;GñkTsSnaeKhTMB½r (End-User)
1. Activities
2. WebSlices
3. Favorites Bar
4. Automatic Crash Recovery
5. Improved Phishing Filter

edIm,IeGay)ankan;Etc,as;BIlkçN³BiessxagelI eyIgsUmBnül;bEnßmeTAelI lkçN³BiessTIBIr Edlmansar³RbeyaCn_sMrab;Gñk
TsSnaeKhTMB½r (End-User) .

10 July 2008 | Issue 1
Internet What‘s happening?

Activities Favorites Bar

Activities KWCa Contextual Service EdleFVIkarTajyk Favorites Bar b¤ehAfa favorite list eFVI[manPaBgayRsÜlkñúg
esvakmµBIeKhTMB½repSg² )any:agqab;rh½s . GñkTsSna karebIkeKhTMB½rEdlGñkeBjcitþ nig GaceFVIkarCamYylkçN³
eKhTMB½rGac copy nig paste BIeKhTMB½rmYyeTAeKhTMB½rmYy
Biess²epSgeTotdUcCa ¬Feeds nig WebSlices) .
epSgeTot)an mü:ageTot Activities GacP¢ab;TMnak;TMngrvag
RbFanbTBIrepSgKña . ]TahrN_³ GñkTsSnamñak;mancMNab; Automatic Crash Recovery (ACR)
GarmµN_ cMeBaHePaCnIydæanmYykEnøg ehIyKat;cg;dwgBITItaMg
kEnøgenaH Kat;GaceRbI Activities edIm,IemIlTItaMgrbs;ePaCnIy bgálkçN³gayRsÜlenAeBlEdl eKhTMB½r b¤ IE8 manbBaða
dæanenaH)an . dUecñH Activities kñúg IE8 GacCYysMrYlPaBgay edayRbkarNamYy . ACR GacCYykuMeGay)at;bg;nUvkargar
RsÜldl;elakGñkkñúgkarEsVgrkTItaMg niymn½yrbs;Bakü Tij rbs;Gñk)an edayeFVIkarEsVgrk RtLb;mkvijtamry³ Tab
TMnij EsVgrkB½t’manBIGVImYy nigepSg²CaeRcIneTot . Recovery .

Improved Phishing Filter

Improved Phishing Filter KWCacMnucsMxan;Nas;sMrab;Gñk
TsSnakñúgkarTb;sáat;karebIkeKhTMB½rEdlcg;lYcykB½t’man
pÞal;xøÜn b¤k¾ B½t’manhirBaØvtßúrbs;GñkTsSna . cMeBaHbBaðaEbbenH
IE8 GacCYyedaHRsay)anedayeRbIR)as;nUv Safely Filter edIm,I

Webslices karBareKhTMB½rNaEdlxusc,ab; . cMeBaH IT administrator
GaceFVIkarlubecalelIRbePTGñkeRbIR)as;Na EdlmaneQµaHdUcKña
WebSlices GaceGayGñkemIleKhTMB½r nig B½t’manrbs;eKhTMB½r
nig GacraraMgkarebIkeKhTMB½rEdlBuMRsbc,ab; .
Edlmankñúg favorite b¤ bookmark rbs;Gñk)any:aggayRsÜl
nig pøas;bþÚr)anPøam² . ]TahrN_ GñkeFVIkarbBa©ÚleKhTMB½r msn
eTAkñúg favorite list rbs;Gñk enAeBlEdlGñkdak; mouse
pointer elI msn kñúg favorite list enaHGñknwgeXIjB½t’manfµI² sMrab;cMgl; nig eyabl;epSg² sUmepJIrsareGLicRtÚnic
Edlmankñúg msn . mkkan; developer@usofttechnology.com.kh b¤
epJIrsMbuRttamGasydæankñúgTMB½rTI 4 .

www.ant.com.kh | ANT Magazine 11
Age of Empires III (AOE3) KWCaRbePT PC Game fµI EdlCaplitplrbs;Rkúmh‘un Microsoft . PC Game enHvapþl;
bTBiesaFn_ nig karriHKitdl;Gñkelg[ecHKitBicarNariHrkRKb;dMeNaHRsayedIm,ITb;Tl; karBarnig vaybkeTAsRtÚvvij . AOE3 Ca
PC Game EdlmanlkçN³sRgÁamBit² Edlkñúgkarelg GñkelgRtÚveFVIeGayGarüFm’rbs;xøÜn[rIkcMerInRKb;vis½y EdlGacjúaM[vis½y
eyaFakan;EtxøaMgxøa nig sasnakan;EtrugerOg . Rkúmh‘un Microsoft )anGPivDÆn_ AOE3 [manPaBkan;EtRbesIreLIggayRsÜlkñúg
karelg rUbPaBPøWc,as;lkçN³Ca 3D briyakaskñúg Game manTidæPaBdUcFmµCatiBit²man Campaign fµI²nig Multi-play EdlGñk
elgGacelgtamry³ Network b¤ Internet .

British
Dutch
French
German
Native American
Ottoman
Portuguese
Russian
Spanish
Japan
China
India
Sioux
Iroquois
Aztec
Microsoft® Windows® XP or higher qay tula
1.4 Ghz or higher processor that supports SSE evOg tula
256 MB of system RAM
AOE 3: 2.0 GB of Hard Disk space
AOE 3 Warchiefs: 0.9 GB
AOE 3 Asian Dynasties: 2.0 GB
32x speed or faster of CD-ROM drive
64 MB Video Card (VGA) with HT&L
Sound card with speakers or headphones
Microsoft Mouse or compatible pointing device
56.6 Kbps or better modem for online play
DirectX 9.0c or above

Cheat Code
cuc rYcvayBaküsMgat;dUcxageRkam
Enter

X marks the spot: ebIkEpnTIeGayemIleXIjc,as;RKb;TIkEnøg

Medium Rare Please: TTYl)anGahar 10000

Give me liberty or give me coin: TTYl)anmas 10000

Nova & Orion: TTYl)anbTBiesaFn_ 10000

<censored>: TTYl)aneQI 10000

<nature is cured>: TTYl)aneQI 10000

Speed always wins: begáInel,Onkñúgkarsagsg 100dg

A recent study indicated that ¡00° of herdables are
obese: bEnßmstVTaMgGs;elIEpnTI
Ya gotta make do with what ya got: begáItGavuFepøagenA Home

City rbs;Gñk
Sooo Good: ebIk “Musketeer’ed!”

tuck tuck tuck: begáItrfynþBN’Rkhmd¾FMEdlGacebIkkat;RKb;TIkEnøg
Where’s that axe?: George Crushington

Shiver me Timpers¡: bMpøajTUkrbs;sRtÚv
this is too hard: QñHEtmñak;Ég
Best Practices

Harwares

viFIsaRsþkñúgkardMeLIgkuMBüÚT½redayxøÜnÉg
hgS suP½Rkþ
kuMBüÚT½rCa]bkrN_eGLicRtÚnicmü:agEdlgayRsÜlkñúgkardMeLIgeRBaHkuMBüÚT½r)anEckCaEpñkepSg² nigdac;edayELkBIKñadUcCa System
Unit, Monitor, Mouse, Speaker nig Keyboard . kñúgcMenam]bkrN_xagelI System Unit CaEpñksMxan;CageKrbs;kuMBüÚT½r eRBaH

ral;kargarTaMgGs;rbs;kuMBüÚT½rRtÚvqøgkat; System Unit rYceTIbbBa©ÚneTAkan; Monitor EdlCaGñkbgðajB½t’man . xageRkamenHCa
rebobkñúgkardMeLIg System Unit:
1> munnwgdMeLIg
- sUmykrbs;epSgecjeRkARbGb;TaMgGs;
- sUmGankarENnaMmYycMnYnrbs;]bkrN_epSg²munnwgGñkcab;
epþImdMeLIg
- enAeBlyk]bkrN_ecjBIRbGb;RtÚvdak;eGaydac;edayELk
nig q¶ayBIKña edIm,IecosvagkarRclM

Case

2> erobcM Case eGayrYcral;sMrab; Motherboard
- IO Shield CabnÞHmYyEdlP¢ab;mkCamYy Motherboard
ehIyCYnkal IO Shield manTMhMxusKñaeTAnwg Motherboard
dUecñHRtÚvyk IO Shield ecjehIyCMnYseday IO Shield Edl
enACab;nwg Motherboard .
Motherboard nig Cables

IO Shield

HDD, VGA, Power Supply, Sound Card, RAM, CD-
ROM nig Floppy Drive
14 July 2008 | Issue 1
Hardwares Best Practices

kEnøg IO Shield enAelI Case
- enAeBlelakGñkTij Case fµImkmanP¢ab;mkCamYynUvex©AmYy
cMnYn kñúgenaHmanex©A mYyRbePTsMrab;eRbIeGay Motherboard
3> dMeLIgEpñkepSg²EdlenAelI Motherboard
- muneBlGñkdMeLIg Memory (RAM) enAelI Motherboard
manKMlat (Spacer) ecjBI Case edIm,IkarBarqøg . RtÚvcaMfa Motherboard rbs;Gñk support nwg RAM RbePTNa
(dUcCa DDR1 b¤ DDR2) ehIysUmeRCIserIs slot EdlRtÚvnwg

RbePT RAM rYccab;epþImdMeLIgenAelI Motherboard edaydMbUg
sUmebIk tap rbs; RAM rYcdak; RAM cUlehIybiT tap vij .

ex©AKMlat P¢ab;ex©AenAelI Case
- \LÚv IO Shield nigKMlatrvag Case nig Motherboard )an
erobcMrYcral;ehIy dl;eBlEdlRtÚvdMeLIg Power Supply enA
cMnucxagelIén Case . enAkñúg Power Supply mankgðarmYy
sMrab;CYysMrYlsItuNðPaBrbs; Power Supply dUecñHsUmdak;mux
kgðarecjeTAeRkAén Case ehIymYrex©AP¢ab;dUcrUbxageRkam .
- eRkayeBldMeLIg RAM rYcehIy dl;eBlEdlRtÚvdMeLIg
CPU b:uEnþkñúgkardMeLIg CPU sUmeFVIeGay)anRbúgRby½tñeRBaH

CPU CaeRKOgEdlsMxagCageKkñúgdMenIrrbs;kuMBüÚT½r. kardMeLIg

eyageTAtamRbePTrbs; CPU dUcCa Intel Socket 478, Intel
Socket T (LGA775), AMD K7 dUecñHsUmGannigemIlesovePA

- sUmRtÜtBinitü IO Shield, Spacer nig Power Supply ENnaMkareRbIR)as;rbs; CPU EdlP¢ab;mkCamYynwg CPU Edl
sarCafµIeGay)anRtwmRtÚv enAeBlrYcral;Gs;ehIy dl;eBlEdl elakGñk)anTij .
- enAelI CPU mankgðarmYysMrab;CYysMrYlsItuNðPaBrbs;
RtÚvdMeLIg Motherboard eTAkñúg Case edaydak; Case epþk
CPU . kgðarenHmanExSePøIgmYysMrab;P¢ab;mk Motherboard
ehIyyk IO panel eGaycM IO Shield ehIydak; screwholes sMrab;TajykGKÁIsnImkeRbI ehIyTItaMgénkaredatExSenHman
enAelI Motherboard eGaycMex©AEdlykmkeFVICa Spacer . dUcrUbxageRkam .

www.ant.com.kh | ANT Magazine 15
Best Practices Hardwares

- bnÞab;BIdMeLIg CD-Rom rYcral;ehIydl;eBlEdleyIgRtÚv
dMeLIg HDD edayyk HDD mkdak;xagkñúgén Case (dUcrUb
xageRkam) . bc©úb,nñenH HDD PaKeRcIneRbI SATA ehIyeRbIExS
enHmkP¢ab;mkCamYy Motherboard CMnYs IDE bnÞab;mksUmP¢ab;
ExS Power eGay HDD rYcCakareRsc .

- Motherboard dMeNIrkar)anRtÚvkarGKÁIsnIdUecñHdl;eBlEdl
eyIgRtÚvP¢ab;ExSrbs; Power Supply mkkan; Motherboard
ehIyTItaMgP¢ab;mk Motherboard GaRs½yeTAtamRbePTén
Motherboard nImYy² . dUecñHsUmGannigemIlesovePAENnaM

kareRbIR)as;rbs; Motherboard EdlP¢ab;mkCamYynwg Moth-
erboard EdlelakGñk)anTij .

- dMeLIg CD-Rom b¤ DVD-Rom CadMbUgsUmdkbnÞHmYyenA
xagmux Case rYcyk CD-Rom mkdak;bBa©ÚlBImuxmkxagkñúg
Case rYccab;ex©AedIm,IkarBarkarcl½trbs; CD-Rom .
SATA Cable

- kardMeLIg VGA card manlkçN³gayRsÜledaydMbUgelak
GñkRtÚvdkykbnÞHEdkmYyenAxageRkayén Case sMrab;eGayman
CacenøaHeGay VGA card ecjeTAxageRkA ehIysUmyk VGA
card mkedatenAelI AGP b¤ PCI slot KWGaRs½yeTAtamRbePTén

VGA card rbs;elakGñk .
sUmP¢ab;ExS IDE BI CD-Rom mkkan; Motherboard nigP¢ab;
GKÁisnIBI Power Supply mkkan; CD-Rom .

ExS IDE ExS Power Supply

16 July 2008 | Issue 1
Best Practices

http://www.gmail.com
Softwares

eRbI Gmail CamYy Microsoft Outlook
hgS suP½Rkþ
edIm,IGansareGLicRtUnic (e-mail) )aneyIgRtÚvebIkkmµviFI browser rYccUleTA website rbs; Gmail ehIyeFVIkar login eTIbeyIg
GacGan mail )an. b:uEnþmanviFImYyeTotEdlmanPaBgayRsÜl CagviFIxagelI edayeyIgGacGan mail rbs; Gmail )anCamYynwg
kmµviFI Microsoft Outlook 2007 .
viFIsMrab; Configure
- dMbUgRtÚvebIk brower ehIyebIk website rbs; Gmail rYc - sUmcucelI Finish button
eFVIkar sign in nUv account mail rbs;Gñk bBa¢ak;
- rYcsUmcucelIBakü Setting enAEpñkxagelIxagsþaM ehIycucelI
Forwarding and POP/IMAP
RbsinebImindMeNIkarRtÚveFVIdUcxageRkam³
- sUmeRCIserIsyk Enable POP for all mail bnÞab;sUmcucelI - sUmcucelI Tool menu > Account Setting > double

click elIeQµaH account rbs;Gñk
Save change button

- sUmebIkkmµviFI Ms Outlook 2007 rYcsUmcucelI Tools

menu > Account setting > New button

- sUmeRCIyerIsyk Microsoft Exchange, POP3, IMAP, or
HTTP bnÞab;mkcuc Next button - sUmcucelI More Setting… button bnÞab;sUmcucelI Out-
- sUmbBa©ÚlB½t’manrbs; account mail dUcrUbxagsþaMehIycuc going Server
Next button - rYcsUmeRCIserIsykBakü My outgoing server (SMTP)
require authentication

- CacugeRkaysUmcucelI
OK button

www.ant.com.kh | ANT Magazine 17
Best Practices http://www.khmeros.info

Internet

karbegáIt nig Post Blog CamYyeKhTMB½rExµryUnIkUd (KhmerOS)
qay tula
GVICa KhmerOS ?
Khmer OS KWCaeKhTMB½rmYyEdlRbmYlpþúMeTAedayB½t’manfµI²Tak;TgeTAnwgPasaExµryUnIkUd . kñúgeKhTMB½renHGñkGaceFVIkar down-
load nUvkmµviFIsMrab;kuMBüÚT½rCaPasaExµr)aneday\tKitéføEfmeTotpg . eRkABIkmµviFIkuMBüÚT½rCaPasaExµr eKhTMB½renHmannUvEpñkEdl

KYreGaycab;GarmµN_mYycMnYneTotdUcCa³kmµviFIsikSa, Forums nig Blog . xageRkamenH´nwgelIykmkbgðajGñkBIrebobkñúgkarbegáIt
Blog nig kar post Blog .

karbegáIt Blog
- CadMbUgGñkRtÚvman Internet connection nig E-mail Address Camunsin
- ebIk browser NamYyNak¾)an rYcvay http://www.khmeros.info kñúg Address Bar
- EsVgrkBakü Register enAkñúgeKhTMB½rEdl)anbgðajdUcxageRkam³

- bnÞab;mkcucelIBakü Register eBlenaHvanwgbgðajB½t’manmYycMnYnsMrab;[Gñk Register
- enAeBlbMeBjcb;sBVRKb;sUmcuccucelI button “Create new account"
- bnÞab;mkGñknwg)an Password sMrab; Log in enAkñúg E-mail rbs;Gñk

18 July 2008 | Issue 1
Internet Best Practices

- ebIk E-mail rbs;GñkrYc copy yk Password enaHmk paste enAkñúg page log in kñúgRbGb; Password
- vayeQµaH Username rbs;Gñk
- cuc button “login”
kar Post Blog
- bnÞab;BIGñk)an Log in rYcGñkGacmansiTi§eFVIkar post nigemIlGVIEdlGñkFøab;)an post GacEk b¤ pøas;bþÚrB½t’manpÞal;xøÜnrbs;Gñk b¤k¾
eRbIR)as; Forums
- cucelIBakü My blog enAEpñkxageqVgkñúgRbGb; Navigation vanwgbgðajBIGVIEdlGñkFøab;)an post
- cucelIBakü Post new blog entry .

- bMeBjcMngeCIg nig BiBN’naBIGVIEdlGñkFøab;)an post .
- cucelI button “Preview” edIm,IRtÜtBinitümunnwgpSay
- CacugeRkaycucelI button “Submit” edIm,IpSay .

sMrab;cMgl; nig eyabl;epSg² sUmepJIrsareGLicRtÚnic
mkkan; developer@usofttechnology.com.kh b¤
epJIrsMbuRttamGasydæankñúgTMB½rTI 4 .

www.ant.com.kh | ANT Magazine 19
Best Practices

Network

KnøwH10y:ageFVIeGay Wireless Network kan;EtRbesIr
hgS suP½Rkþ
RbsinebIelakGñkkt;sMKal;faRbB½n§ network wireless rbs;elakGñkman signal exSay nig connection mankardac;CaRbcaM b¤k¾
Bi)akeRbIenaHmann½yfakarerobcMbNþaj network rbs;GñkmankarxVHcenøaHNamYyCaminxaneLIy . xageRkamenHCaviFIsaRsþedIm,I
CYyeGayRbB½n§ network wireless rbs;elakGñkmanPaBRbesIrCagmun³
1>dak; Wireless Router b¤ Wireless Access Point enAcMcMnuckNþalénRbB½n§ Network
RtÚveRCIserIskEnøgEdlCacMnuckNþal edIm,Idak;
Wireless Router b¤ Wireless Access Point

eRBaH signal wireless exSayenAeBl)aMg
CBa¢aMg rW enAq¶ayBIkuMBüÚT½r .

2>kuMdak; Router enApÞal;dI nigenACitCBa¢aMg b¤ enACit]bkrN¾EdlmanrlksBaØamYycMnYn
eRBaHvaGaceFVIeGay signal exSay.
3>pøas;bþÚrTItaMgGg;Etnrbs; Router
Gg;Etnrbs; router eFVIkarpSaypÞal;eTACuMvij router
ehIyRbsinGg;Etn enACab;CBa¢aMgpÞHeFVIeGay signal
Bak;kNþalecjeTAeRkApÞH . CaTUeTAPaKeRcInén router
minGnuBaØateGaybegáIn power output eT b:uEnþeyIgGaceFVI
eGayRbesIrCagmun)an edayeRbI]bkrN¾CMnYyKW Hi-gain
antenna EdlGaceFVIeGay signal rbs; router pSayeTAkan;eKaledAmYyEdleyIgcg;)an nigbegáIncMgayrbs; signal .

4>pøas;bþÚr Wireless Adapter rbs;kuMBüÚT½r
dMenIrkarrbs; wireless eFVIkarTaMgBIrEpñkKW router send signal mkkuMBüÚT½rehIykuMBüÚT½r send Rtlb;mk router vij . eBlxøH
router pSay signal xøaMgmkdl;kuMBüÚT½r b:uEnþkuMBüÚT½rrbs;;GñkminGac rWexSaykñúgkarpSay signal mkkan; router vij . dUecñHelakGñk

KYEtpøas;bþÚr Wireless Adapter Edlmanel,OnelOnvij .

20 July 2008 | Issue 1
Network Best Practices

5>bEnßm Wireless Repeater
bEnßm wireless repeater eTAkan;RbB½n§ network rbs;elakGñk
eGayenAcMnucBak;kNþalén wireless router nigkuMBüÚT½redIm,IbegáIn
cMgayrbs; signal .

6>pøas;bþÚr Wireless Channel
BüayamEsVgrk channel NamYysMrab; wireless router rbs;
elakGñkEdleFVIeGay signal l¥CageK edayRKan;Etpøas;bþÚrenAelI configuration page rbs; router ehIymin)ac;eFVIkarpøas;bþÚr
kuMBüÚT½r configuration eTeRBaHkuMBüÚT½rnigEsVgrk channel fµIedayxøÜnÉg .
7>kat;bnßykarrMxan Wireless
RbsinebIenAkñúgpÞHmaneRbITUrs½BÞ rW]bkrN¾ wireless electronics mYycMnYnGaceFVIeGaymankarrMxandl; signal rbs; network

wireless dUecñHsUmeCosevogkareRbIR)as; wireless electronics Edlmane®hVkg; 2.4GHz .

8>Update Firmware nig Network Adapter Driver
eFVIkar update firmware rbs; router nig network adapter driver edIm,IeGay performance rbs; router l¥Cagmun . edIm,I
update sUmcUleTAkan; website rbs;plitplEdlelakGñkeRbIR)as; (ex. D-Link, Linksys….) ehIy download ykmk

update .

9>eRCIserIsplitplEtmYy
RbsinebIelakGñkeRbIR)as; router m:akNamYy (ex. D-Link, Linksys….) KYrEteRCIserIs network adapter Edlmanm:akdUcnwg
router EdlkMBugeRbI .

10>Upgrade 802.11b devices eTACa 802.11g
802.11g elOnCag 802.11b R)aMdg dUecñHebI network wireless rbs;elakGñkeRbI ehIyelakGñkcg;R)as;bþÚrsUm
802.11b

eRCIserIs 802.11g (802.11b networks typically get 2-5Mbps. 802.11g is usually in the 13-23Mbps range) .

www.ant.com.kh | ANT Magazine 21
System & Networking

System

rebobdMeLIg Mail Server CamYy Exchange Server 2003
hgS suP½Rkþ
Microsoft Exchange Server KWCakmµviFIkuMBüÚT½rEdlRtÚv)anbegáIteLIgedayRkúmh‘un Microsoft eRbIsMrab;eFVIkarepJIr nig rkSaTuksar
eGLicRtÚnic . vaCakmµviFIsMrab;eRbIkñúgRkúmh‘un GgÁkar b¤ shRKasFM² . kñúgkardMeLIg Microsoft Exchange Server mankar
sµúKsµajnig xusEbøkBIkardMeLIgkmµviFIkuMBüÚT½rFmµta . xageRkamenHCarebobkñúgkardMeLIg ³
- bBa©Úl Exchange Server 2003 CD bnÞab;mkelakGñknwg
eXIgdUcrUbxageRkam rYccucelIBakü Exchange Deployment
Tools

- sUmcucelI Deploy the first Exchange 2003 server dMNak;kalTaMg *
dMNak;kalTI1³ tMrUveGayRbBn§½dMenIrkarCa Windows

2000 Server SP3, Windows 2000 Advanced Server

SP3 eLIgeTArW Windows server 2003 eTIbGac setup

Exchange 2003 server )an
dMNak;kalTI2³ tMrUveGay setup service mYycMnYndUcCa
SMTP, NNTP nig WWW ehIyRbsinelakGñkeRbI Windows
- sUmcucelI New Exchange 2003 Installation @00# RtÚvdMeLIg ASP.NET . viFIdMeLIg Service xagelIman
dUcxageRkam³
- sUmcuc Start menu » Control Panel » Add or
Remove Programs » Add,Remove Windows

Components

- sUmeRCIsykBakü Application Server » sUmcuc De-
tails.. button » ykBakü ASP.NET » yk Internet In-
- kñúgkar setup Exchange 2003 server man * dMNak;kal formation Service(IIS) » sUmcuc Details… button »

22 July 2008 | Issue 1
System System & Networking

yk NNTP Service, SMTP service nwg World Wide Web
Service

- bnÞab;sUccuc OK button » OK button » Next button » dMNak;kalTI6³ Run ForestPrep tool edIm,IeFVIkarBRgIkeTAelI
Finish Active Directory Schema CamYynwg Exchange 2003

dMNak;kalTI3³ tMrUv Setup SUPTOOLS.MSI EdlmanenAkñúg server ehIyedIm,I Run ForestPrep tool sUmcucenAelIBakü
Windows 2003 server ehIyedIm,I Setup dMbUgRtÚvbBa©Úl Run ForestPrep Now bnÞab;mksUmcuc Next button ehIy

CD Windows rYccUleTAkan; …\Support\Tools folder eRCIserIsyk “I Agree” rYcsUmcuc Next button sUmeRCIs-

rYc double click elI file SUPTOOLS.MSI rYcsUmcuc Next erIs ykBakü ForestPrep dUcrUmxageRkam ehIysUmcuc Next
button » sUmeRCIserIs Agree » Next button » sUmbBa©Úl button rgcaMrhUtdl;cb;kar Install rYcsUmcuc Finish button

User Name nig Organization Name rYccuc Next button »

rgcaMrhUtdl;cb; rYcsUmcuc Finish button
dMNak;kalTI4³ Run DCDiag(Domain Controller Diagnostics)
tool edIm,IeFVIkar test network connectivity nig DNS Reso-

lution sMrab; Domain controller . edIm,I Run DCDiag RtÚv

cUleTAkan; Command Promt (cmd) rYcvay dcdiag ehIy
TTYl)anlT§pldUcrUcxageRkam³
dMNak;kalTI7³ Run DomainPrep sMrab; Group nig
Permission EdlcMa)ac;sMrab; Exchange server edIm,I Read

nig Modify user attributes . edIm,I Run DomainPrep sUm-
cucelIBakü Run DomainPrep Now bnÞab;sUccuc Next but-
dMNak;kalTI5³ Run NETDIAG(Network Diagnostics)
ton ehIyeRCIserIsyk I Agree rYcsUmcuc Next button
tool edIm,I run network diagnostics test ehIyedIm,IRtÚv cU-
sUmeRCIserIsykBakü DomainPrep dUcrUmxageRkam ehIy
leTAkan; Command Promt (cmd) rYcvayBakü netdiag
sUmcuc Next button rgcaMrhUtdl;cb;kar Install rYcsUmcuc
rYcTTYl)anlT§pldUcrUcxageRkam
Finish button

www.ant.com.kh | ANT Magazine 23
System & Networking System

- sUmeRCIserIyyk Create a New Exchange Organi-
zation rYccuc Next button

dMNak;kalTI8³ CadMnak;kal Setup Exchange server ehIy
edIm,I Setup sUmcucelIBakü Run Setup Now
- sUmcuc Next button - sUmbBa©ÚleQµaH Organization rYccuc Next button
- eRCIserIsyk I Agree rYcsUmcuc Next button
- sUmeRCIyerIyyk Custom ehIyeRCIyerIyyk Install rYc
sUmcuc Next button

- rgcaMrhUtdl;kar Install cb;rYcsUmcuc Finish button .

- sUmcuc Next button
sMrab;cMgl; nig eyabl;epSg² sUmepJIrsareGLicRtÚnic
mkkan; developer@usofttechnology.com.kh b¤
epJIrsMbuRttamGasydæankñúgTMB½rTI 4 .

24 July 2008 | Issue 1
http://www.ant.com.kh/2008/07/ Web Design & Development

Xhtml / Css / Javascript

begáIt Dynamic Menu
qay sMbUr
kñúgGtßbTenH´nwgelIkykBIrebobkñúgkarbegáIt dynamic dropdown
menu mkbgðajelakGñkedayeRbIR)as; XHTML, CSS nig Javascript

bBa©ÚlKña . sUmemIlrUbxagsþaM³
cMnaM³ Gñkk¾GacykKMrUenHeTAeRbICamYy HTML, PHP, ASP(.NET), JSP b¤
PasaepSgeTotEdlsÁal; Javascript .
dMbUgeyIgeFVIkarbegáIt menu Fmµta dUckUdxageRkam³
<h2>Dynamic Dropdown Menu</h2>
<div id=”menu” class=”mainmenu”>
<ul>
<li><a href=”http://www.ant.com.kh”>Home</a></li>
<li><a href=”http://www.ant.com.kh/magazines/” rel=”dmMag”>Magazines</a></li>
<li><a href=”http://contest.ant.com.kh/”>Contest</a></li>
<li><a href=”http://forums.ant.com.kh/” rel=”dmForums”>Forums</a></li>
<li><a href=”http://quiz.ant.com.kh/”>Quiz</a></li>
<li><a href=”http://wiki.ant.com.kh/”>Wiki</a></li>
</ul>
</div>
<br style=”clear: left” />

kUdxagelIeyIgkt;cMnaMeXIjRtg;bnÞat;TI 5 (Magazines) nig bnÞat;TI 7 (Forums) mannUv attribute “rel” EdleRbIsMrab;ehA
dropdown menu

<!-- drop down menu for magazine -->
<div id=”dmMag” class=”dropmenu”>
<a href=”http://www.ant.com.kh/2008/07/”>July 2008</a>
<a href=”http://www.ant.com.kh/2008/08/”>August 2008</a>
<a href=”http://www.ant.com.kh/2008/09/”>Septempber 2008</a>
<a href=”http://www.ant.com.kh/2008/10/”>Octorber 2008</a>
<a href=”http://www.ant.com.kh/2008/11/”>November 2008</a>
<a href=”http://www.ant.com.kh/2008/12/”>December 2008</a>
</div>
<!-- drop down menu for forums -->
<div id=”dmForums” class=”dropmenu” style=”width: 230px”>
<a href=”http://forums.ant.com.kh/network/”>Network Forum</a>
<a href=”http://forums.ant.com.kh/web/”>Web Development Forums</a>
<a href=”http://forums.ant.com.kh/desktop/”>Desktop Development Forums</a>
<a href=”http://forums.ant.com.kh/database/”>Database Management Forums</a>
</div>

www.ant.com.kh | ANT Magazine 25
Web Design & Development Xhtml / Css / Javascript

“rel” attribute enAkñúg mainmenu eRbIsMrab;Ca id rbs; dropdown menu (mandUcCa³ dmMag, dmForums) .
rebobehA Javascript function
enAEpñkxageRkameKbg¥s;rbs; <body> eyIgeFVIkarehA function rbs; javascript edIm,IP¢ab; mainmenu CamYynwg dropdown
menu .

<script type=”text/javascript”>
tabdropdown.init(“menu”, 2);
</script>

- tabdropdown.int KWCarebobkñúgkarehA function rbs; dropdown menu
- “menu”: KWCa id rbs; mainmenu (sUmemIlkUdEpñkxagelIeKbMput)
- 2: KWCaTItaMg menu EdleyIgcg;eGay active (sUmemIlrUbxagelI menu eQµaH contest KWCa menu Edl active) .
Kitcab;epþImBIelx 0 eTA .
rebobehA Javascript nig CSS file
edIm,IeGay javascript function xagelIdMenIrkareyIgRtÚvehA javascript file EdlmaneQµaH dropdownmenu.js . edIm,IeGay
menu manrUbrag nig BN’dUcrUbxagelIeyIgRtÚvehA css file EdlmaneQµaH style.css . sMrab;rebobehAsUmemIlkUdxageRkam³

<head>
<title>Using XHTML, CSS and Javascript for Creating Drop Down Menu</title>
<script type=”text/javascript” src=”dropdownmenu.js”></script>
<link rel=”stylesheet” type=”text/css” href=”style.css” />
</head>

CaTUeTAsMrab;karehA javascript nig css file eyIgGacehAkñúg <head> element rbs; HTML , XHTML . tamry³karehA
javascript nig css file xagelIbBa¢ak;fa html, javascirpt nig css file KWenAkñúg folder dUcKña .

bBa¢ak;³ edaysarkUdEdlenAkñúg javascript nig css file mancMnYneRcIn ehIyeCosvagelakGñkvaykUdTaMgenHmankarBi)ak nig
GacmannUvkMhus dUecñH´min)ansresrkUdTaMgBIrenHkñúgGtßbTenHeT . GñkGacTTYl)ankUd javascript, css nig project TaMgmUl
rbs;GtßbTenHedayeFVIkar download tamry³eKhTMB½rdUcxageRkam³
http://www.ant.com.kh/2008/07/

sMrab;cMgl; nig eyabl;epSg² sUmepJIrsareGLicRtÚnic
mkkan; developer@usofttechnology.com.kh b¤
epJIrsMbuRttamGasydæankñúgTMB½rTI 4 .

26 July 2008 | Issue 1
Web Design & Development

Asp.net

kareRbIR)as; Master Page kñúg Visual Studio 2008
qay sMbUr
edIm,IbegáIteKhTMB½rmYyeGaymanPaBgayRsÜlkñúgnamCa web designer b¤ web developer RtÚveFVIkarerobcMTMrg;rbs;eKhTMB½r
(web template) eGay)anRtwmRtÚv . eKhTMB½r PaKeRcInEtgEteRbITMrg;mYy b¤ BIrkñúgkarbegáIt .

GVICaTMrg;rbs;eKhTMB½r (Master Page enAkñúg Visual Studio 2005 nig 2008)?
sUmemIl]TahrN_xagsþaMsMrab;eKhTMB½r Cambodia Career
http://careers.ant.com.kh/

CaTUeTAeKhTMB½rPaKeRcInmanEpñkxagelI (ehAfa header Edlman
logo nig menu) nig EpñkxageRkam (ehAfa footer) dUcKña . kñúgkrNI

EdlGñkcg;eFVIkarEkERbGkSrenAkñúgEpñkxagelI b¤ EpñkxageRkam GñkRtÚv
eFVIkarEkRKb;TMB½rTaMgGs;EdlenHCaehtueFVIeGayGñkGacmankMhusenA
eBlEdlGñkePøcEkTMB½rNamYy ehIyEfmTaMgcMnayeBlevlaeRcInkñúg
EkERbEfmeTotpg ]TahrN_eKhTMB½rrbs;Gñkman @0 TMB½r . TaMgenH
CacMnucEdlGñkRtÚvEtRbúgRby½tñ nig ykcitþTukdak; .

xagsþaMenHCaTMrg;rbs; Cambodia Career EdleRbI master page

karbegáIteKhTMB½redayeRbI Master Page
edIm,IeFVIkarbegáIt master page dMbUgGñkRtÚveFVIkarbegáIt ASP.NET website b¤ web application Camunsin . sMrab;kñúg]TahrN_
enH´sUmelIkykkarbegáIt ASP.NET website eRBaH ASP.NET website mannUvRKb; version rbs; Visual Studio TaMgGs; . Rbsin
ebIGñkcg;eRbI web application enaH k¾)anEdr RKan;EtrebobcucmanlkçN³xusKñabnþic .
!> ebIk Visual Web Developer b¤ Visual Studio
@> cuc File menu -> New -> Web Site...
#> kñúg Templates eRCIsyk ASP.NET Web Site
$> enAEpñkxagsþaMxagelIeRCIsyk .NET Framework
%> enAEpñk Location eRCIsyk File System nig TItaMgEdlGñkcg;Tuk website

www.ant.com.kh | ANT Magazine 27
Web Design & Development Asp.net

^> enAEpñk Language eRCIsyk Visual C# b¤ Visual Basic .
sMrab;]TahrN_enH´sUmelIkyk Visual C#
&> rYccuc button OK
eBlenaHGñknwg)annUv website mYyEdlman App_Data,
Default.aspx nig web.config edaysV½yRbvtþi . EtenAeBl

enHGñkminRtÚvkarTMB½r Default.aspx enHeT . dUcenHGñkGaclub
TMB½renHeday select elIvarYccuc Delete.
karbegáIt Master Page
!> cuc File menu -> New -> File...
@> kñúg Templates eRCIserIsyk Master Page
#> kMnt;eQµaHeGay master page CamYynwg extension
“.master”

$> eRCIserIsykPasa (Visual C# b¤ Visual Basic) EdleRbI
sMrab; code behind kñúg master page
5> Place code in separate file: mann½yfa HTML nig code
behind enAkñúg file BIrepSgKña

^> Select master page: eRbIsMrab;eRCIserIsyk master page
&> rYccuc button Add
<%@ Master Language=”C#” AutoEventWireup=”true” CodeFile=”Template1.master.cs”
Inherits=”Template1” %>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/
DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head runat=”server”>
<title>Untitled Page</title>
<asp:ContentPlaceHolder id=”head” runat=”server”>
</asp:ContentPlaceHolder>
</head>
<body>
<form id=”form1” runat=”server”>
<div>
<asp:ContentPlaceHolder id=”ContentPlaceHolder1” runat=”server”>
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>

Visual Studio nwgbegáIt master page CamYykUddUcxageRkam³
bnÞat;TI1R)ab;BI server-side language (C#) nig B’tmanGMBITItaMg nig inheritance én code-behind class rbs; master page

28 July 2008 | Issue 1
Asp.net Web Design & Development

bnÞat;TI2 nig TI3 sMrab;kMnt;fanwgeRbI XHTML CMnYs HTML .
ContentPlaceHolder control Ca control EdleRbIsMrab;eFVIkarpøas;bþÚr content tamTMB½rnimYy² .

karbegáItTMrg;eKhTMB½rsamBaØmYy
\LÚveyIgcab;epþImbegáIt master page mYyEdlman Epñkxag
elI (header) EpñkxageqVg (left) EpñkxagsþaM (right) nig Epñk
xageRkam (footer) . EpñkxagsþaM (EpñkEdlmanbnÞat;Rkh
mB½TæCuMvij) KWCaEpñkEdleFVIkarpøas;bþÚreTAtamTMB½rnimYy² .
edIm,I)andUcrUbxagelI sUmvaykUdxageRkamcUlkñúg master
page rbs;Gñk .

<%@ Master Language=”C#” AutoEventWireup=”true” CodeFile=”Template1.master.cs”
Inherits=”Template1” %>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/
DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head runat=”server”>
<link href=”style.css” rel=”stylesheet” type=”text/css” />
<asp:ContentPlaceHolder id=”cphHead” runat=”server”>
</asp:ContentPlaceHolder>
</head>
<body>
<form id=”form1” runat=”server”>
<div id=”wrapper”>
<div id=”header”> <h1> GtßbTsþIBI
Master Page</h1> </div>
<div id=”left”> <a href=”#”> emeronTI1
</a> </div>
<div id=”right”>
<asp:ContentPlaceHolder id=”cphRight” runat=”server”>
</asp:ContentPlaceHolder>
</div>
<br style=”clear:both”>
<div id=”footer”> <p> rkSasiTæiRKb;y:ageday
<b> TsSnavdþI Gan
“ANT Magazine”</b></p> </div>
</div>
</form>
</body>
</html>

cMeBaHkarrcnasMrab;eKhTMB½renH´)aneRbIR)as; Cascading Style
Sheets (CSS) mYyEdlmaneQµaHfa style.css . edIm,I)an file

style.css sUmeFVIdUcxageRkam³

*> cuc File menu -> New -> File...
(> eRCIserIsyk Style Sheet rYckMnt;eQµaHfa style.css rYcvay
kUdxageRkamcUlkñúg file style.css

www.ant.com.kh | ANT Magazine 29
Web Design & Development Asp.net

*{ margin: 0; padding: 0; }
body{ color: #000; font-family: Verdana,Arial,sans-serif; font-size: 13px; margin: 0pt;
background-color: #e8e8e8; line-height: 2.3em; }
p{padding: 5px 0;}
h2{margin: 0 0 10px 0;}
#wrapper{ width: 770px; margin: 0 auto; background-color:#fff; }
#header{ border-bottom:1px solid #44A5D8; padding: 20px 0 20px 30px; margin-bottom: 5px; }
#header h1{ font-family: Khmer OS Freehand,Khmer OS System,Khmer OS,DaunPenh;
font-size: 28px; color: #c0504d; }
#left{ float: left; width: 200px; padding: 10px; }
#right{ float:left; width: 520px; padding: 10px; border-left: solid 1px #44A5D8; }
#right h2{color: #1f497d;}
#footer{ margin-top: 5px; background-color: #F4F3F2; padding: 5px 10px; }

bBa©Úl (add) file default.aspx EdleRbI master page
Template1.master eday

!> cuc File menu -> New -> File...
@> eRCIserIsyk Web Form kMnt;eQµaHfa default.aspx rYc
Check elIBakü Select master page

rYcvaykUdxageRkamcUlkñúg file default.aspx

<%@ Page Language=”C#” MasterPageFile=”~/Template1.master” AutoEventWireup=”true”
CodeFile=”default.aspx.cs” Inherits=”_default” Title=”Untitled Page” %>

<asp:Content ID=”Content1” ContentPlaceHolderID=”cphHead” Runat=”Server”>
<title> GtßbTsþIBI
Master Page</title>
</asp:Content>
<asp:Content ID=”Content2” ContentPlaceHolderID=”cphRight” Runat=”Server”>
<h2> sUmsVaKmn_
</h2>
<p> sUmsVaKmn_karTsSnaeKhTMB½rsþIGMBI
<b>” GtßbTsþIBI
Master Page”</b> GtßbTenHnwgeFVIkarBnül;GñkBIrebobkñúg
kareRbIR)as;
Master Page kñúg
Visual Studio 2008 . Gñkk¾GacGnuvtþn_karBnül;enHCamYy
Visual Studio 2005 )anEdr
.</p>
</asp:Content>

emIllTæplrbs;eKhTMB½rEdlGñk)anbegáIteday select elI page EdlGñkcg; run (default.aspx) ehIycuc Ctrl + F5 .
GñkGaceFVIkar download project TaMgmUlénGtßbTenHtamry³eKhTMB½r http://www.ant.com.kh/2008/07/
sMnYr³ cUreFVIkarbegáIteKhTMB½redayeRbIR)as; Master Page EdlmanTMrg;dUcrUbxagsþaM
CamYynwgkmµviFI Visual Studio 2005, 2008 b¤ Visual Web Developer .

BinÞú³ 20duløa sMrab;GñkQñH

30 July 2008 | Issue 1
Web Design & Development

Ajax (Asynchronous JavaScript And Xml)

EsVgyl;BI AJAX (Asynchronous JavaScript And XML)
qay sMbUr
etIGVICa AJAX ?
AJAX mkBIBakü “Asynchronous Javascript And XML” sMedAeTAbec©kviTüaGVIk¾edayEdleRbIedIm,IeFVIkarbegáIteKhTMB½reGayman
PaBrs;revIk nig Tak;Taj (dynamic and interactive web content) .
AJAX dMbUgRtÚv)anENnaMedayelak Jesse James Garrett én Adaptive Path kñúgsMenrrbs;Kat;EdlmaneQµaHfa “AJAX: A New

Approach To Web Application” Edlmann½yfa “AJAX: Cakarmkdl;fµIrbs; Web Application” . niyayeGaygay AJAX KWCa

bec©kviTüamYyEdleRbI Javascript edIm,IeFVIkarpøas;bþÚrGtßbTkñúgEpñkNamYyéneKhTMB½rBI web server edaymin refresh eKhTMB½r
TaMgmUl . Gtßn½yenHKWpÞúyBIviFIsaRsþFmµtakñúgkarpøas;bþÚr (update) eKhTMB½r EdltMrUveGay browser (]TahrN_ ie, firefox b¤
opera) eFVIkar refresh eKhTMB½rTaMgmUledIm,IbgðajGtßbTEdl)anpøas;bþÚr .

bec©kviTüadUcKñaenHRtÚv)aneRbIR)as;kñúgeKalbMNgénkarlYccUl (hack) .
karmkdl;rbs; AJAX RtÚv)aneRbIR)as;eday website mYycMnYndUcCa Khmer TV Online, Microsoft, Google Maps, Yahoo
Mail Beta nig Gmail EdlCa website manPaBTak;Tajx<s; .

AJAX RtÚv)andwg nig eRbIR)as;y:agTUlMTUlay EdleFVIeGay website kan;EtmanPaBrbs;revIk nig Tak;TajCagBImun . vaRtÚv)an

eRbIR)as;CalkçN³eRcInsNæandUcCa edit-in-place text, drag-and-drop, CSS animation nig viFIepSg²eTot . GtßbTenHnwg
ENnaMGñkeGaysÁal;BI AJAX nig bec©kviTüamYycMnYneTotEdlcUlrYmKñakñúgkarbegáIteGayman AJAX .
AJAX Web Application

AJAX Cabec©kviTüamYyd¾Gs©arü vaswgEtnwgGacCaeFVIeGay web application manlTæPaBeFVIkargarCMnYs desktop applications
)an . AJAX minRKan;EtbEnßmPaBRss;s¥atdl; website rbs;Gñkb:ueNÑaHeT RbsinebIGñkeRbIvaeGay)anRtwmRtÚvvanwgbEnßmnUv user’s
experience dl; website rbs;GñkEfmeTotpg . AJAX GaceFVIeGay website rbs;Gñkkan;EtelOn gayRsÜleRbI nig kan;Et

eBjcitþ .
CYnkal AJAX web application manlkçN³dUcCa desktop application kñúg browser dUecñHEdr . RKan;Et AJAX web
application KWCa remote application ehIy desktop application KWCa local application . AJAX web application RtÚvEt

eFVIkarP¢ab;eTAkan; (connect to) distant server edIm,ITajykTinñn½y .
sMKal;³ edIm,IeFVIkarTajykTinñn½yBI database server developer RtÚveRbIR)as; server-side language dUcCa ASP, JSP, PHP b¤
CGI .

www.ant.com.kh | ANT Magazine 31
Web Design & Development Ajax (Asynchronous JavaScript And Xml)

RbvtþiénkarkekIt AJAX
Nesting Framesets

manviFIsa®sþmYyedIm,IeCosvagkar load page TaMgmUl KWeRbI frameset kñúg frameset epSgeTot . bec©kviTüaenHGnuBaØateGay
developers eFVIkarpøas;bþÚrEtEpñkEdl)aneRCIserIsb:ueNÑaH . vaRtÚv)aneRbIkñúglkçN³Ca tab-style navigation . bec©kviTüaenHpþl;

nUvlTæplminl¥eTeRBaH unmaintainable code nig page maneQµaHEvgEfmeTotpg (dUcCa UserAccountEditTopLeft.asp) .
The Hidden iframe

iframe mancab;taMgBI Internet Explorer 4, developers eFVInUv HTTP requests eTA server edayeRbI hidden iframe bnÞab;mk
eFVIkarbBa©ÚlGtßbTeTAkñúgeKhTMB½redayeRbI Javascript nig DHTML . viFIxagelIenH)anpþl;nUvsmtßPaBkñúg submit Tinñn½yeday
Kµankar reload page ehIylTæplRtÚv)anbBa©ÚnBI server eTA iframe rYceRbI Javascript edIm,IeFVIkarTajTinñn½yBI iframe mkvij .
Remote Scripting

Remote Scripting Cabec©kviTüamYyepSgeTotEdlmanlkçN³dUceTAnwg AJAX . vakMnt;nUv src attribute rbs; <script> edIm,I
eFVIkar load GtßbTrbs;eKhTMB½rEdlRtÚv)anbegáIteday Javascript .
viFIenHsamBaØCag hidden iframe hack edayeRbI Javascript edIm,IbegáItGtßbTenAelI server ehIy load eTAkñúgeKhTMB½r .
eTaHCay:agNak¾eday viFIenHeRbI)anEtCamYy GET request Etb:ueNÑaH .
GVIEdleFVIeGay AJAX manPaBGs©arü
CMnYskarepJIrGVI²TaMgGs;eTA server ehIy server eFVIkarepJIreKhTMB½rfµImYymkvij web developers GaceFVIkarepJIreTAkan; server
nUvTinñn½yd¾tUcmYy ehIyeRCIserIsEpñkNamYyéneKhTMB½redIm,IeFVIkarpøas;bþÚrBwgEp¥kelIkar response rbs; server tamry³kar
request rbs; web developers . bec©kviTüaenHRtÚv)anehAfa asynchronous EdlCaBakümYyrbs; AJAX (Asynchronous

Javascript And XML) .

Asynchronous system pÞúyBI synchronous system . kñúg synchronous system GVITaMgGs;ekIteLIgtamlMdab;lMeday .

]TahrN_ synchronous system CamYynwgkarRbNaMgLan LanNaEdlcab;epþImenAmuxeKnwg eTAdl;TImuneK ehIyLanNaEdlcab;
epþImTIBIrnwgeTAdl;TIBIr dUcKñaEdr sMrab;LanepSg²eTot Rbsin ebImanLanNaxUcLannUvxageRkay
RtÚvrg;caM . enHKWCaerOgEdlFujRTan; nig xateBlevla . karRbNaMgLankñúgRbB½næ asynchronous
mann½yfaLanEdlcab;epþImBIxageRkayGacmkTIkñúglMdab;TI 2 b¤ TI 3 . HTTP request BI
browser edayeRbI AJAX eFVItamrebobenH .

eKhTMB½rEdlFmµtaeRbInUv synchronous system GñkRtÚvEtrg;caMrhUtTal;Et server bBa©ÚnnUv
eKhTMB½rTI1rYceTIbGñkGacrequesteKhTMB½rTI2)an.cMENkÉeKhTMB½rEdleRbIbec©kviTüaAJAXeRbInUv
asynchronous system EdlGñkTsSnaminmankarrg;caMsMrab;karbBa©ÚneKhTMB½rTaMgmUlBI server

enaHeT. Synchronous System

32 July 2008 | Issue 1
Ajax (Asynchronous JavaScript And Xml) Web Design & Development

FatupSMedIm,IbegáIt AJAX
AJAX RtÚv)anbegáIteLIgedayeRbInUvbec©kviTüaepSg²d¾éTeTotmandUcCa³ XML, DOM, CSS,

XMLHttpRequest nig Javascript . bec©kviTüaTaMgGs;rYmbBa©ÚlKñabegáIt)anCa AJAX .

xageRkamCakarBnül;BIbec©kviTüanimYy² EdlrYmKñakñúgkarbegáIt AJAX .
Tinñn½yEdlbBa©Ún³ XML
XML CaBaküEdlpSMeGayman GkSr “X”) . vaCa main data format EdleRbIkñúg
AJAX (

asynchronous HTTP request kñúgkarTMnak;TMngrvag browser nig server kñúg AJAX Asynchronous System

application BIeRBaH XML KWCa format data EdlsamBaØ nig gayRsÜlkñúgkarbBa©Ún nig

eRbIR)as; .
XML KWCa Markup
eKhTMB½rEdleRbI AJAX application mannUv XHTML markup EdlmanlkçN³dUceTAnwg XML . XHTML CaPasaEdll¥Ca HTML
ehIymanlkçN³RbEhlnwg HTML Edr . XHTML RtÚv)anpSMeday HTML CamYynwg valid rbs; XML . xageRkamenHCaKuNsm,tþi
rbs; XHTML:
- vapþl;nUv tools nig script libraries CaeRcInsMrab; emIl EkERb nig validate XML .
- vaeRbI)any:agl¥CamYy browser fµI²EdlsÁal; XML .
- vaeFVIkarTaMgCamYynwg HTML Document Object Model (DOM) nig XML DOM
- vagayRsÜlkñúgkaremIlkñúg non-browser agents .
W3C Document Object Model

The Document Object Model (DOM) KWCa object-oriented rbs; XML nig HTML documents vapþl;nUv API sMrab;eFVIkar
pøas;bþÚr content, structure nig style én documents TaMgenaH . CaTUeTA browser eRbIR)as; HTML documents edayeRbI
Javascript xus²Kña . DOM RtÚv)anbegáIteday World Wide Web Consortium (W3C) edIm,Ipþl;nUvrebobTUeTAkñúgkareRbIR)as;

HTML document edayeRbI Javascript . DOM eFVIkarbgðaj structure rbs; XML b¤ HTML document CazananuRkm

(hierarchy) .

kareRbIR)as; DOM Methods
Javascript mannUv API y:ageRcInsMrab;eFVIkarTak;TgCamYynwg DOM . enHCarebobsMxan;kñúgkarbegáIt AJAX application .
DOM Events

muxgarsMxan;mYyeTotrbs; DOM KWeFVIeGay Javascript GacP¢ab;TMnak;TMngCamYy elements enAkñúg web page . vaGacbegáIt
eGayman drag-and-drop EdlGaceGayGñkeRbIR)as;TajEpñkepSg²rbs;eKhTMB½reTATItaMgepSg (vamanlkçN³dUcCakarTaj
icon enAelI desktop dUecñHEdr) .

www.ant.com.kh | ANT Magazine 33
Web Design & Development Ajax (Asynchronous JavaScript And Xml)

karbgðaj nig rUbrag³ CSS
CSS (Cascading Style Sheets) pþl;nUvviFIedIm,IeFVIkarRKb;RKgrUbragrbs; elements kñúg web application . GñkGaceRbI CSS
edIm,IeFVIkarpøas;bþÚresÞIrEtRKb;EpñkTaMgGs;rbs;eKhTMB½rdUcCa TMhMGkSr BN’ KMlat nig TItaMgrbs; elements .
kñúg AJAX application CSS RtÚv)aneRbIedIm,IbEnßmPaBTak;Tajdl;GñkeRbIR)as; (dUcCabþÚrBN’ b¤ rUbragenAeBlEdl mouserovers)
CSS RtÚv)aneRbIkan;EteBjniymkñúgkarbegáIteKhTMB½r .

karTMnak;TMng³ XMLHttpRequest
XMLHttpRequest KWCa Javascript class EdleRbIy:aggayRsÜlkñúgkarbBa¢Ún nig TTYl HTTP request BI nig response eTA
web server . XMLHttpRequest class KWCatYGgÁsMxan;kñúgkarbegáIt web application . HTTP request )anbegáItCamYy

XMLHttpRequest enAeBlEdl browser eFVIkar request FmµtaedIm,I load page rW submit form edayGñkeRbIR)as;min)anbiT

eKhTMB½rEdl)an load fµI² .
Microsoft dMbUg)anbegáIt XMLHttpRequest kñúg Internet Explorer 5 sMrab; Windows dUcCa ActiveX object . Apple )an

bBa©Úl XMLHttpRequest eTA Safari taMgBI version 1.2 . cMENk Mozilla k¾)anbBa©Úl XMLHttpRequest eTA Firefox taMgEt
BIdMbUg (version 1.0) Edr .
kar response BI server eTaHbICa XML b¤ string k¾edayk¾GaceFVIkarbBa©ÚneTA Javascript )anEdr .
kareRbIR)as;bBa©ÚlKña³ Javascript
Javascript KWCa “kav” sMrab;P¢ab;smasFaturbs; AJAX bBa©ÚlKña . vamantYnaTICaeRcInkñúgkarbegáIt AJAX:
- RtÜtBinitü HTTP request EdlRtÚv)anbegáIteday XMLHttpRequest
- Parsing lTæplEdlbBa©ÚnBI server edaykareRbI DOM method, XSLT, b¤ viFIsa®sþepSgeTotedIm,Ipøas;bþÚrTinñn½y
- bgðajlTæplénTinñn½yeTAkñúg user interface, edaykareRbI DOM method edIm,IbBa©ÚlGtßbT b¤ rUbPaBeTAkñúgeKhTMB½reday
karpøas;bþÚr innerHTML rbs; element b¤ edaykarpøas;bþÚr CSS rbs; element .
Javascript CaPasa programming EdlmantaMgEtBIyUrNas;mkehIy vamannUvlkçN³BiessCaeRcIn vaCa dynamic language

EdleRbIR)as; object-oriented programming .
segçb
kñúgGtßbTenH eyIg)aneFVIkareRbobeFobeKhTMB½rBImun nig TMB½rEdleRbIR)as; AJAX ehIybgðajBIPaBl¥RbesIry:ageRcInkñúgkareRbIR)as;
AJAX . ehIyGñk)anyl;BIeKalkarN_ nig RTwsþImYycMnYnrbs; AJAX nig bec©kviTüaEdlcUlrYmkñúgkarbegáIt AJAX mandUcCa³ XML,

DOM, CSS, XMLHttpRequest nig Javascript .
sMrab;cMgl; nig eyabl;epSg² sUmepJIrsareGLicRtÚnic
mkkan; developer@usofttechnology.com.kh b¤
epJIrsMbuRttamGasydæankñúgTMB½rTI 4 .

34 July 2008 | Issue 1
C# (CSharp - suIsðab) CaPasakmµviFIfµImYyEdlbegáIteLIgeday
Desktop Development
Rkúmh‘un Microsoft EdlCakarvivtþn¾d¾FMmYy ehIyRtUv)aneRbIR)as;
enAkñúgbec©kviTüa .NET ehIycab;epþImeGay GñksresrkmµvIFIeRbICa
sakl,gkñúgqñaM2000 . C# for Beginner

C# CaRbePT OOP (Object-Oriented Programming) dUcKñaeTA

nwgPasa C++, Java pgEdr bc©úb,nñ C# man CMnan;cugeRkayrbs;
EsVgyl;BIPasa C# (CSharp)
sM kkáda
xøÜnKWCMnan;TI3 EdlmanenAkñúg Visual Studio 2008 .
munnwgelak-elakRsInigb¥Ún²cab;epþImsikSanUvkmµviFIPasa
lkçN³BiessxøH²rbs; C# C# sMrab;Gñkcab;epþIm CamYyTsSnavdþI Gan “ANT“ qñaM-
Object oriented: KWkareRbIR)as; objects én classes enAkñúg
TI1 c,ab; 01 ´sUmeFVIkarbgðajBIrebobdMeLIg Microsoft
dMeNIrkar énkmµviFIedayQrelIeKalkarN¾bIKW³ encapsulation, Visual Studio 2005 EdlCakmµviFImanRbeyaCn¾mYysMrab;
inheritance, nig polymorphism .
karGnuvtþn¾emeronEdlnwg beRgontamry³TMB½rGñksresr
Namespaces: CaTItaMgsMrab;pÞúk classes, structs, interface,
kmµviFIsMrab; WindowsénTsSnavdþI Gan “ANT“ k¾dUcCakar
enums, delegates, nig namespaces d¾éTeTot mann½ydUcKñaeTA
eqøIyeTAnwgsMnYr niglMhat; edIm,IykC½ylaPIkñúgemeron
nwg package enAkñúgPasa Java . nimYy² nigerogral;elxpgEdr .
Garbage collection: CalkçN³Biessrbs; .Net enAkñúgkar
rebobdMeLIg Microsoft Visual Studio 2005
RKb;RKg memory sMrab;kmµviFIEdleRbIbec©kviTüarbs;xøÜn .
1> RtÚvman CD rW DVD Microsoft Visual Studio 2005
Type-safe variables: CakarkarBar variables BuMeGayman
rW kmµviFIenHenAkñúg hard disk rYceFVIkardMeLIgpÞal;Etmþgk¾
kareRbIR)as;rMelaPeTAelIEdnén memory rbs;xøÜnedayeFVIkarpÞúyKña
)an . eRkayBI)anbBa©Úl CD rW DVD rW double clicked
eTAnwg pointer rbs; C++ .
eTAelI file setup.exe eyIgnwgeXIjrUbPaBxageRkam
Jagged arrays: CakareRbI Array enAkñúg Array .

Operator overloading: CakareRbImuxgar operator eTAelI

classes .
cucelIBaküenH
Indexers: eRbInUvbec©kviTüa Array kñúgkarcab;yktMélenAkñúg

classes enaHtamry³kareRbI index eTAelI object . 2> bnÞab;mkcuc Next
Delegates: Ca object tMNageGay method rW function Na

mYy , method enaHnwgeFVIkarenAeBlNaEdl object RtÚv)anehA
CaTUeTA compiler nwgcMenjeBl kñúgkarBuMcaM)ac;dwgCamunnUvGVIEdl
manenAkñúg method enaH. eyIgGacniyay)anfa delegate man cucelIBaküenH rYccuc Next
muxgardUcKñaeTAnwg function pointer rbs; C++ . 3> bnÞab;mkcuc Next
Data types: enAkñúgPasa C# manbIRbePTTinñ½yKW Value types, 4> eRkayBIcuc Install button pÞaMg Installing Compo-
Reference type, Boxing nig Unboxing . nents nwgRtÚv)anbgðaj. GñkRtÚvrgcaMkar install cb;rYccuc

Next edIm,IbBa©b;.

www.ant.com.kh | ANT Magazine 35
Desktop Development C# for Beginner

eKalbMNgénemeron bIcMnucdMbUgKYcgcaM
- bgðajBITMrg;énkmµviFIEdldMeNIrkareday C# - enAkñúgPasa C# ral; statements, variables, functions
- yl;BIeKalkarN¾eRbIR)as; Namespace rW methods KWCa case-sensitive
- GVIeTAEdlehAfa Class - Source file Pasa C# KWCa file Edlman extension (.cs)
- sÁal;BIkatBVkic© Main function - Statements nimYy²bBa©b;edaysBaØa ;
- rebob Input,Output (I,O) tamry³ Console
using System; // enHCakarRbkas Namespace EdlRtÚveRbI
class WelcomeANT // enHCakarbegáIt class Edlman
begáItkmµviFI C# tamry³ Notepad
// eQµaH fa WelcomeANT eyIgGaccab;epþImkarbegáItkmµvIFI C# dMbUgtamviFIdUcteTA³
{ // enHCakarcab;epþIm block rbs; class 1> Mouse cuceTAelI “Start“ rYc Programs, Accessories,
static void Main() // enHCakarbegáIt Main() method Notepad

{ // enHCakarcab;epþIm block rbs; Main() method 2> vaykUdEdl)aneXIjeTAkan; notepad
// Welcome to ANT Magazine nwgbgðajmkelI 3> Save Code edaycucelIBakü File kñúgkmµviFI Notepad,
// screen tamry³ WriteLine method rYcyk Save As, vayBakü “welcomeANT.cs” enAkñúgRbGb;
Console.WriteLine(”Welcome to ANT Magazine!”); File Name, bnÞab;mkcuc Save.

// What is your name?: nwgbgðajmkelI (kñúgrUb C1) eyIgGacdwgfa welcomeANT.cs RtÚv)an save

// screen tamry³ Write method eTAkñúg folder mYyénfas; C: EdlmaneQµaHfa csharp
Console.Write(”What is your name?: “); 4> cucelI “Start“ rYc Programs, Microsoft Visual Studio
// ReadLine() Ca method sMrab;bBa©ÚlB½t’maneRkayBI 2005, Visual Studio Tools, bnÞab;mkyk Visual Studio

// bBa©b;karbBa©ÚlB½t’manedaykarcuc Enter Bakü Hello, 2008 Command Promt

// nwgRtÚvbgðaj B½t’man)anbBa©ÚlnwgCMnYsenAkEnøg {0} 5> bnÞab;mkeRbI CSC command (C-Sharp Compiler)
Console.Write(”Hello, {0}! “, Console.ReadLine()); sMrab; compile source file eGayeTACa executable file
} // enHCakarbiT block rbs; Main() method

} // enHCakarbiT block rbs; class WelcomeANT
rebob Run tam Command Prompt
1> vay cd\ rYccuc Enter
2> vay cd c:\csharp rYccuc Enter (mann½yfacUleTAkan;
csharp folder kñúgfas C: Edlman file welcomeANT.cs)

3> vay csc welcomeant.cs rYccuc Enter
(eyIgnwg)an file welcomeant.exe kñúg csharp folder Edl
rUb C1
eyIgGacykeTAdMeNIrkarCamYym:asuInNamYyk¾)an)

36 July 2008 | Issue 1
C# for Beginner Desktop Development

EsVgyl;BIkUd (Code)
tamry³karsresrkUdeyIgnwgTTYl)anlT§pldUcrUbxagsþaM³
rUb C2
etIlT§plenH)anmkBIGVI?
CaFmµtakmµviFIbegáItedayPasa C# nwgeFVIkargarrbs;xøÜncab;ecjBIbnÞat;TImYyén block rbs; Main() method
etI Main() mantYnaTICaGVI?
Main() Ca method d¾sMxan;minGacKµan)ansMrab;ral;kmµviFIEdlbegáIteLIgedayPasa C# vaCacMnuccab;epþIméndMeNIrkarkmµviFI .
kñúgPasa C# bnÞat;EdlmanTMrg;dUcxageRkamminRtÚv)an compile eday C# compiler enaHeT³
// GVIEdlsresrenAeRkaysBaØaenHminRtÚv)aneFVIkareday C# compiler eTenHRtÚv)ancat;TukCa comment

/* GVIEdlsresrenAcenøaHsBaØaenH

minRtÚv)aneFVIkareday C# compiler eTTaMgenHRtÚv)ancat;TukCa comments */
dUecñHlT§plEdlGñk)aneXIjkñúgrUb C2 KW)anmkBI Console.WriteLine(“Welcome to ANT Magazine!”) CabnÞat;TImYy nig
Console.Write(“What is your name?:”) CabnÞat;TI2én block rbs; Main() .

etI WriteLine() nig Write() CaGVI?
WriteLine() Ca method mYykñúgcMeNam methods epSg²eTotrbs; class Console, EdlCa class mYykñúgcMeNam classes
CaeRcIneTotEdlsßitenAkñúg System EdlCa namespace eRbIenAkñúgkmµviFIdMbUgénkareron C# rbs;eyIgenH.
Write() nig WriteLine() mantYnaTInigrUbmnþénkareRbIR)as;dUcKña b:uEnþsMrab; WriteLine() cursor nwgsßitenAedImbnÞat;bnÞab;BIbnÞat;én

karbgðajB½t’man (b¤ WriteLine() bgðajB½t’manCa line) .
WriteLine() mantYnaTIbgðajB½t’man (output stream) mkkan; screen edaymanrUbmnþénkareRbIR)as;dUcxageRkam³

rUbmnþ³ WriteLine(<String>); WriteLine(<Number>); WriteLine(<Char>);

]TahrN¾³ Console.WriteLine(“Welcome to ANT Magazine”); Welcome to ANT Magazine
Console.WriteLine(532); 532
Console.WriteLine(‘a‘); a

Console.WriteLine(“a={0}, b={1}, a+b={2}”, 2,5,2+5); a=2, b=5, a+b=7

eRkABIkarbgðajB½t’mandUcrUb C2 User RtÚveFVIkarbBa©ÚleQµaH rW GVIepSgeTotk¾)anrYccuc key Enter bBa¢ak;facb;karbBa©ÚlB½t’man.
tamry³kUdemeronenH ReadLine() mantYnaTICaGñkcab;yknUvral;nimµitsBaØaepSg²Edl)anbBa©Últamry³ keyboard elIkElgEt
key Enter EdlCa key bBa¢ak;BIkarbBa©b; line b¤karbBa©ÚlB½t’man.

rUbmnþ³ public static string ReadLine ()
sMnYr³ cUrbegáItkmµviFIfµImYyepSgeTotEdlmanlkçN³Rbhak;RbEhlnwgkmµviFIenAkñúgemeronenH . (BinÞú 20duløa sMrab;GñkQñH)

www.ant.com.kh | ANT Magazine 37
Desktop Development http://www.ant.com.kh/2008/07/

C# for Developer
vaCakargayRsÜlEsVgyl;BIkUd ebIelak-elakRsI nig b¥Ún²nisSit)andwgxøH² GMBI
eKalkarN¾ Network, multi-thread, events, nigkareRbIR)as; delegate objects
begáItkmµviFI Chat Client kñúgPasa C# . ehIyvak¾caM)ac;bMputEdlelak-elakRsI nigb¥Ún²nisSitRtÚvecHBIrebobén
sM kkáda karbegáIt windows application project tamry³ Visual Studio 2005 pgEdr.
eyIgFøab;)andwgnUvkmµviFImYycMnYndUcCa Yahoo Messenger, MSN Messenger, ICQ, Gmail Talk .l. EdlkmµviFITaMgenaH)an
pþl;nUvRbeyaCn¾eGayeyIgkñúgkarTMnak;TMngKñatamry³RbB½n§kuMBüÚT½redaykarepJIrsaCaGkSr sMelg rUbPaB b¤GaceFVIkarbeRgontamry³
online pgEdr. dUecñHedIm,ICaKnøwHkñúgkarGPivDÆn¾kmµviFIEbbenH TsSnavdþI Gan “ANT“ sUmelIk ykBIkarbegáItkmµviFICECkkMsanþxñat

tUcmYytamry³Pasa C# mkeFVIkarBnül; ehIyvaCamUldæanmYykñúgkarQaneTA rkkarbegáItkmµviFIdUcxagelICamYykarENnaMrbs;
TsSnavdþI Gan “ANT“ naeBlxagmuxenH .
CaFmµtakmµviFICECkkMsanþmYytMrUveGayeyIgeFVIkarbegáItkmµviFI2dac;edayELkBIKñaKWmYyeFVIkñúgnamCa chat client EdleRbIR)as;sMrab;
epJIr messages eTAkan;Gñkd¾éT nigmankatBVkic©rg;caMTTYl messages BI server Edl)anepJIreday clients epSg²nigmYyeTotCa
chat server EdlmanmuxgarcaMTTYlkar connecting BI clients nigEbgEck messages eTAtamRKb; clients Edl)an connected

mkkan;va . rUb C1 CarUb chat client application EdleyIgnwgsikSavaenAelxenH.
Gac Download kmVviFIb¤ kUdtamry³eKhTMB½r http://www.ant.com.kh/2008/07/
begáIt Chat Client (dUcrUb C1)
vaman protocols CaeRcInEdlRtÚv)aneRbIkñúgkareFVIeGaymanTMnak;Kñarvag applications
TaMgLay b:uEnþsMrab;eBlenHeyIgnwgelIkyk Transmission Control Protocol (TCP)
mkGnuvtþkñúgTsSnavdþI Gan “ANT“ elxenH .
kñúgkarbegáIt chat client tamry³ TCP eyIgnwgman 4cMnuckñúgkarsikSakUd:
1> begáIt TcpClient object (tMrUvkar System.Net.Sockets) sMrab; connect eTA rUb C1
kan; server edaykareRbI Connect() method rbs; TcpClient object
private TcpClient clienObj = new TcpClient();
clientObj.Connect(serverIpAddr, serverPortNumber);

2> eRbI GetStream() method rbs; TcpClient edIm,IbegáIt object NetworkStream kñúgkarepJIrnigTTYl messages BI server
private NetworkStream output = clientObj.GetStream();

3> CatMNak;kalEdl client RtÚveRbIR)as; thread object kñúgkarGnuvtþn_ loop sMrab;cab;yknUv messages fµI²BI server
4> CadMNak;kalEdlRtÚveRbI Close() method rbs; TcpClient, NetworkStream, BinaryReader, BinaryWriter kñúgkareBl
shutdown b¤ bBaÄb;karepJIrsar .

\LÚvenHelak-elakRsInigb¥Ún²RtÚveFVIkar design form eGaydUcKñaeTAnwg rUb C1 eday controls TaMgGs;mankareRbIR)as; font
khmer unicode .

38 July 2008 | Issue 1
C# for Developer Desktop Development

TextBox TI1 mantYnaTIsMrab;bBa©Úl IP address rbs;m:asuInem (Server) Edl chat client nwg connect eTAkan; . TextBox TI1
maneQµaHfa txtIp .
TextBox TI@ mantYnaTIsMrab;bBa©ÚleQµaHsMrab;eGayGñkd¾éTeTot)aneXIjkñúgeBlCECkkMsanþ . TextBox TI@maneQµaHfa txtUser

Button EdlmanBaküfa P¢ab;bnÞb;kMsanþ sMrab;bBa¢aeGay chat client eFVIkar connect eTAkan; chat server enAeBlEdlkartP¢ab;

)aneCaKC½yBakü P¢ab;bnÞb;kMsanþ nwgRtÚv)anCMnYsedayBaküfµIKW Qb;snÞna ebIsinCa user cuceTAelIBaküenHkarCECkkMsanþnwgRtÚv
)ankat;pþac;. Button enHmaneQµaHfa btnConnect .
TextBox TI# mantYnaTIsMrab;bgðaj text Edl)ansnÞna . TextBox TI# maneQµaHfa txtLog, CaRbePT multiline Gac ScrollBars

CalkçN³ horizontal b¤ vertical, nigminGacEkB½t’man)an ReadOnly .
TextBox TI$ mantYnaTIsMrab;bBa©Úl message EdlRtÚvepJIreTAkan;Gñkd¾éT. TextBox TI$ maneQµaHfa txtMessage .

Button EdlmanBaküfa epJIrsa sMrab;bBa¢aeGay chat client eFVIkarepJIrsaeTAkan;Gñkd¾éT . Button enHmaneQµaHfa btnSend .

xageRkamenHCa code sMrab; chat client
using System;
using System.Windows.Forms; Ca namespaces EdlRtÚvbEnßmBIelI wizard Edlpþl;eGaykñúgbMNgdUcxageRkam³
using System.Net;
System.Net Ca namespace sMrab;eRbI IPAdrees class
using System.Net.Sockets;
using System.IO; System.Net.Socket Ca namespace sMrab;eRbI NetworkStream, nig TcpClient
class
using System.Threading;
System.IOCa namespace sMrab;eRbI StreamWrite, nig StreamReader class
namespace ChatClient System.Threading Ca namespace sMrab;eRbI Thread class
{
public partial class Form¡ : Form
{
// Ca variable sMrab;rkSaTukeQµaHkñúgeBlCECkkMsanþ
private string UserName = “Unknown”;
private StreamWriter swSender; // begáIteLIgsMrab; write stream eTAkan; NetworkStream
private StreamReader srReceiver; // begáIteLIgsMrab; read stream BI NetworkStream
private NetworkStream output; // Ca NetworkStream object nwgmantYnaTIkñúgkarbBa¢ÚnTinñ½ytamry³ Network
private TcpClient tcpServer; // Ca TcpClient object EdltMNageGay chat client
// Ca delegate object EdlnwgeRbIsMrab; update txtLog box kñúgeBlEdlmankarepJIrnigTTYl message
private delegate void UpdateLogCallback(string strMessage);
// Ca delegate object EdlnwgeRbIsMrab; disconnect enAeBlEdlmanbBaðakñúgeBl connect eTAkan; chat server
private delegate void CloseConnectionCallback(string strReason);
private Thread thrMessaging;
private IPAddress ipAddr;
private bool Connected; // eRbIsMrab; record eGaydwgfa chat client )an connect b¤min connect eTAkan; server
// Connected = true mann½yfa)an connect, Connected=false mann½yfamin)an connected

www.ant.com.kh | ANT Magazine 39
Desktop Development C# for Developer

public Form1()
{
InitializeComponent();
}
private void btnConnect_Click¬object sender, EventArgs e)
{
// ebIsinCa chat client BuMTan;)an connected eTAkan; chat server
if (Connected == false)
{
P¢ab;bnÞb;kMsanþ
// cab;epþIm connect eTAkan; server eBlEdl button xagelI)ancuc
InitializeConnection();
} eBl function enHGnuvtþ button xagelInwgbþÚreTACa button enH Qb;snÞna
else
{
CloseConnection(” kar connect rbs; client RtÚv)ankat;pþac;.”);
}
}
nwgbBaÄb;karCECkkMsanþebIsin button enH)ancuc

private void InitializeConnection()
m:asuInem³ 202.71.38.80
{
// bMElg IP address EdlvaybBa©Úlkñúg txtIp eTACa IPAddress object
ipAddr = IPAddress.Parse(txtIp.Text); enHCadMNak;kalTI1 énkareFVIeGay chat client P¢ab;eTAkan; chat
tcpServer = new TcpClient(); server . vaCakarcaM)ac;Edl Connect method rbs; TcpClient ob-
tcpServer.Connect(ipAddr, 1986);
ject RtÚvdwgBI IP address nig port NamYyénm:asuInEdlvanwg eFVIkar
Connected = true;
UserName = txtUser.Text; connect . 1986 Caelx port sMrab;P¢ab;eTA server eyIgGacbþÚrelx

enH)ankñúgcenøaHBI 1025 eTA 65535 .
txtIp.Enabled = false; // karBarmineGaybBa©Úl IP fµIeBl chat client kMBug connect eTAkan; chat server
txtUser.Enabled = false; // karBarmineGaybBa©Úl User fµIeBl chat client kMBug connect eTAkan; chat server
txtMessage.Enabled = true;
btnSend.Enabled = true;
btnConnect.Text = “ Qb;snÞna”; // btnConnect nwgbþÚrBIBakü P¢ab;bnÞb;kMsanþ eTACaBakü Qb;snÞna
output = tcpServer.GetStream();
enHCadMNak;kalTI2 Edl chat client RtÚveRbIR)as; GetStream()
swSender = new StreamWriter(output); method rbs; TcpClient object kñúgeKalbMNgbegáIt Network-
swSender.WriteLine(txtUser.Text); Stream edIm,IGaceGay chat client GaceRbIR)as; StreamWriter
// sMGat stream Edl)anepJIrBI memory
object sMrab;epJIr message eTAkan; server nigGaceRbI Stream-
swSender.Flush();
Reader object sMrab;TTYl message BI server .

40 July 2008 | Issue 1
C# for Developer Desktop Development

thrMessaging = new Thread(new ThreadStart(ReceiveMessages));
thrMessaging.Start();
} enHCadMNak;kalTI3 Edl chat client RtÚveRbIR)as; Thread kñúgkarehA Re-
ceiveMessage() EdlCa function eyIgbegáIteLIgd¾sMxan;mYysMrab;rgcaMTTYl mes-
private void ReceiveMessages()
{ sages fµI²Edl)anepJIrBI clients epSg²eTottamry³ server b¤k¾BI server pÞal;.

// eRbI StreamReader object edIm,Icab;yk message BI NetworkStream Edl)anepJIrecjBI chat server
srReceiver = new StreamReader(tcpServer.GetStream());
string ConResponse = srReceiver.ReadLine(); // ReadLine()eRbIsMrab;TajB½t’manBI StreamReader object
// ebIsinCa message Edl StreamReader TTYl)anmansBaØaTI1Caelx ¡
// mann½yfakarP¢ab; client eTAkan; server )aneCaKC½y
if (ConResponse[0] == ‘1’)
{
// chat clientnwgeFVIkarehAfunction UpdateLog() edIm,IbgðajBakü “kartP¢ab;)aneCaKC½y¡” eTAkan; user
this.Invoke(new UpdateLogCallback(this.UpdateLog), new object[] { “kartP¢ab;)aneCaKC½y¡” });
}
// ebIsinCa message Edl StreamReader TTYl)anmansBaØaTI1 minEmnCaelx ¡,
// mann½yfakarP¢ab; client eTAkan; server min)aneCaKC½y
else
{
string Reason = “Not Connected: “;
// enHCakarcab;ykehtuplénkarP¢ab;rbs; chat client min)aneCaKC½yEdlepJIreday server, eyIgnwg
// )andwgfaetI message Edl)anepJIreday server manTMrg;dUcemþc tamry³TsSnavdþI ANT enAelxeRkay
Reason += ConResponse.Substring(2, ConResponse.Length - 2);
// chat client nwgeFVIkarehAfunction CloseConnection() edIm,IbgðajehtuplrYcpþac; connection
this.Invoke(new CloseConnectionCallback(this.CloseConnection), new object[] { Reason });
return; // function ReceiveMessages() nwgbBa©b; kartP¢ab;edayeCaKC½y
}
// enHCakarGnuvtþn¾ loop edIm,IrgcaMTTYl messages fµIBI server sarBIm:asuInem³ ANT Magazine
while (Connected) )ancUlrYmkñúgbnÞb;kMsanþ
{
// Messages nwgRtÚvbgðajeTAkan; txtLog box
this.Invoke(new UpdateLogCallback(this.UpdateLog), new object[] { srReceiver.ReadLine() });
}
}
private void UpdateLog(string strMessage)
{
txtLog.AppendText(strMessage + “\r\n”);
}
// eBl button epJIrsa )ancucvanwgehA function SendMessage() edIm,IepJIr message eTAkan; server

www.ant.com.kh | ANT Magazine 41
Desktop Development C# for Developer

private void btnSend_Click(object sender, EventArgs e)
{
epJIrsar
SendMessage();
}
private void CloseConnection¬string Reason)
{
try
{
txtLog.AppendText(Reason + “\r\n”);
txtIp.Enabled = true;
txtUser.Enabled = true;
txtMessage.Enabled = false;
btnSend.Enabled = false;
btnConnect.Text = “P¢ab;bnÞb;kMsanþ”;
Connected = false;
enHCadMNak;kalTI4 Edl chat client eRbIR)as; Close() meth-
thrMessaging.Abort();
swSender.Close(); od rbs; StreamWriter, StreamReader, nig TcpClient object

srReceiver.Close(); edIm,IbBa©b;karP¢ab;eTAkan; chat server .
tcpServer.Close();
Connected = false Ca record variable sMrab;eGaydwgfa chat client
}
catch(Exception er) min)an connect eTAkan; chat server eT .
{
MessageBox.Show(er.Message);
}
}
private void SendMessage() 202.71.38.80 epJIrsar
{
if (txtMessage.Lines.Length >= 1)
{
swSender.WriteLine(txtMessage.Text); // epJIr message Edl)anvaykñúg txtMessage box eTAkan; chat
// server
swSender.Flush();
txtMessage.Lines = null;
}
txtMessage.Text = “”;
}
private void Form1_Load(object sender, EventArgs e)
{
}
// ebI KeyPress event sMrab; txtMessage box

42 July 2008 | Issue 1
C# for Developer Desktop Development

private void txtMessage_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)13) // ebI user cuc Enter karepJIr message nwgcab;epþIm
{
SendMessage();
}
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (Connected == true)
{
Connected = false;
thrMessaging.Abort();
swSender.Close();
srReceiver.Close();
tcpServer.Close();
}
}
}

enHCa chat server EdlTsSnavdþI Gan “ANT“
nwgelIkykmkBnül;enAelxeRkay

sMnYr³ etI Object GVIEdlsMxan;kñúgkarbBa¢Ún Data
rvag Chat Client nig Chat Server?
Bnül;mUlehtu? (BinÞú 20duløa sMrab;GñkQñH)

www.ant.com.kh | ANT Magazine 43
Desktop Development http://www.ant.com.kh/2008/07/

C++

RKb;RKgkarlk;esovePAtamry³ C++
sM kkáda
C++ KWCaPasamUldæansMrab;GñkEdlsikSaEpñkviTüasaRsþkuMBüÚT½r b¤ visVkrEdlTak;Tg GtßRbeyaCn¾RbFanbT
eTAnwgkarbegáItkmµviFIkuMBüÚT½r nigmanbNþarRbeTsCaeRcIneRbIR)as;Pasa C++ enAkñúg elak-elakRsInigb¥Ún²nwgdwgBIrebobénkar
kMritviTüal½ysMrab;sisSrbs;eKEsVgyl;eTAelIGtßRbeyaCn¾viTüasaRsþ kuMBüÚT½rkñúgEpñk eRbIR)as; Graphics, begáIt Menu, sÁal;BI
KNitviTüak¾dUcCamuxviC¢aviTüasa®sþepSg²eTot . key code rbs; keyboard, eRbIR)as; éf¶
C++ k¾CaPasamYyd¾sMxan; sMrab;karGPivDÆn¾kmµviFIsMxan;² EdlTak;TgeTAnwgRbB½n§
Ex, begáIt class nig struct, eRbIR)as;
RbtibtþkarN¾rbs;kuMBüÚT½r ehIyvaKWCaPasaEdlmankMrit security x<s;sMrab;karlYc file kñúg save, update, nig delete, dwgBI
cMlg nigbMEbkkUdrbs;va ehtuplenHehIy)anGñksresrkmµviFICaeRcInykvaeTAeRbI rebobénkar sort b¤ search Tinñn½y elIsBI
kñúgeKaledAbegáItnUv libraries (.dll file) sMrab;kmµviFIBaNiC¢kmµrbs;BYkeK . enH elak-elakRsInigb¥ÚnGacykvaeTARKb;
edayQrenAelIbTBiesaFn¾ nig ckçúvis½yEbbenHeTIbTsSnavdþI Gan "ANT" )anbegáIt RKgkargarxñattUcEdlRbhak;RbEhlnwg
eLIgnUvTMB½rEdlTak;TgeTAnwgkareRbIR)as; Pasa C++ CaRbcaMExrbs;xøÜn . Cakarcab; ]TahrN¾enH)anpgEdr.
epþImsMrab;c,ab;TImYyenHTsSnavdþI Gan “ANT” nwgelIkykkmµviFIRKb;RKgkarlk;esov
ePAtamry³ C++ mkBnül; .
begáItkmµvIFIRKb;RKgkarlk;esovePA
elak-elakRsI nigb¥Ún²RtÚvmankmµviFI Turbo C++ CamunsinkñúgkarGnuvtþén project enH b¤k¾ download tamry³eKhTMB½r
http://www.ant.com.kh/2008/07/

1> eRkayBI download sUmBnøavaeTAkan; drive c: nigbegáIt Temp folder enAkñúg drive C: (lkçNÐenHvaBuMcaM)ac;eTebIsinelak-
elakRsInigb¥Ún²manbTBiesaFn¾kñúgkareRbIR)as;kmµviFI Turbo C++ enHehIy)
2> cab;epþImkmµviFI Turbo C++ eday double clicked eTAelI TC.EXE Edlsßitkñúg C:\TC\BIN GñknwgeXIjdUcrUb TC1
épÞBN’exovCakEnøgsMrab;bBa©ÚlkUd
File -> New sMrab;begáItépÞBN’exovfµI

F3 sMrab; Open file Ctrl + Insert sMrab; Copy

Ctrl+F9 sMrab; Run Ctrl + Del sMral;lb;GVIEdl select

rUb TC1 Shift + Insert sMrab; Past Ctrl + Y sMrab;lb; current line

Shift + Del sMrab; Cut Alt + BackSpace sMrab; Undo

munnwgeyIgbnþkarsresrkUdsUmemIlrUb TC2 edIm,IdwgBIEpñkEdlRtÚvBiPSa code kñúgelxenH.

44 July 2008 | Issue 1
C / C++ Desktop Development

Topbar()
advertise()
mainWindow()

appWindow()
crossLine()
menuBox()
taskbar()
rUb TC2
3> vaynigsikSakUddUcxageRkam³
- #include directive Ca statement eRbIsMrab;GnuBaØatþkñúgkareRbIR)as; functions
TaMgLayenAkñúgkUdeRBaHral; functions Edl compiler GaceFVIkar compile )anva
caM)ac;RtÚvdwgnUv definition rbs; functions TaMgenaH edayeKdwgfavaRtÚv)ansßitenAkñúg
library file KW file Edlman extension.h dUecñH #include directive CaGñkd¾sMxan;kñúg

karehA library file .
- window() Ca function mYysßitenAkñúg conio.h library edaymantYnaTIbegáIt
window (tMbn; b¤ block) enAkñúg text mode . vamanrebobeRbIR)as;dUcxageRkam³
window(left, top, right, bottom);
(left,top)

(right,bottom)

CaFmµta full screen sMrab; text mode 80 columns KW window(1,1,80,25) nig
window(1,1,40,25) sMrab; text mode 40 columns .

- textbackground() Ca function sßitkñúg conio.h mantYnaTICaGñkkMNt;BN’én
épÞ text mode . vamanrebobeRbIR)as;dUcxageRkam³
textbackground(ColorName|ColorNumber);

eyIgGacCMnYselx b¤eQµaHBN’dUcmanenAkñúgtaragenH eTAkan; parameter én
textbackground .

- clrscr() k¾Ca function sßitkñúg conio.h Edl
manmuxgarCaGñksMGat window .
bNþa 3 functions xagelI GaceRbIrYmKñakñúgkarpat;
BN’eTAelI block NamYyén text mode screen .
]TahrN¾ dUcCa normalwindow() EdlCa function
eyIgbegáIteLIgsMrab;kardak;BN’ eGayénépÞ screen
TaMgmUy.

www.ant.com.kh | ANT Magazine 45
Desktop Development C / C++

- textcolor() Ca function sßitkñúg conio.h vamanmuxgarCaGñk
kMNt;BN’eGaytYGkSrenAkñúg text mode . vamanrebobeRbIR)as;
dUcxageRkam³
textcolor(ColorName|ColorNumber);

- gotoxy() Ca function sßitkñúg conio.h Edr vamanmuxgarkñúgkar
bMlas;TItaMgén cursor enAkñúg text window tamry³Gab;suIs nig
G½redaenr . vamanrebobeRbIR)as;dUcxageRkam³
gotoxy(x, y); Edl x CaGab;suIs y CaG½redaenr rbs; window

- cputs() Ca function sßitkñúg conio.h manmuxgarCaGñk output
text eTAkan; window. kar output tamry³ cputs() vanwgBuMman

muxgarcuHbnÞat;nigeTAedImbnÞat;eRkayBIkar output enaHeT.
]TahrN¾³
window(10, 10, 80, 25);
cputs(“Hello ANT!”);
cputs(“ANT Magazine”);

vanwgxusKña
window(10, 10, 80, 25);
cputs(“Hello ANT!\n”);
cputs(“ANT Magazine”);

vak¾nwgxusKñapgEdr
window(10, 10, 80, 25);
cputs(“Hello ANT!\n\r”);
cputs(“ANT Magazine”);

- puts() Ca function sßitkñúg stdio.h vamanmuxgarCaGñk output
text eTAkan; standard output (screen, printer) vanwgmanmuxgar

cuHbnÞat;nigeTAedImbnÞat;eRkayBIkar output .
enAkñúgkUd k¾dUcCarUbPaBTI C2 eyIgeXIjfa topbar() Ca function fµI
EdleyIgbegIátvaeLIgsMrab;KUsnigbgðajnUvBakü
Exit <Press Esc> Abort < Press F1> eTAkan; kUG½redaenrEdl

kMNt;eday gotoxy() .
crossLine() begáItkñúgeKaledA sMrab;eFVIkarKUsbnÞat;ExVgenAelI

background énépÞ main window rbs;kmµviFI . kñúg definition

én crossLine() eyIgeXIjmankareRbIR)as; array én characters
cMnYn2KW line nig cline EdlmancMnYn charactes x<s;bMputKW @%%

46 July 2008 | Issue 1
C / C++ Desktop Development

characters etIGVIeTACa Array én Characters ?
Array enAkñúgn½yd¾xøIsMrab;PasasresrkmµviFI KWCakartMerobnUv

TItaMgTinñ½yCalMdab;kñúg memory block (RAM) rbs;kuMBüÚT½r
ehIyTItaMgTaMgenaHRtÚvsßitenAeRkamkarRKb;RKgedayeQµaHmYy
Cak;lak; EdlTItaMgnimYy²RtÚv)anehAfa elements (Faturg)
rbs; Array . dUecñH Array én characters KWCakartMerobén
characters eGay)aneTACaB½t’manmYy EdleyIgehAfa Text b¤

String ]TahrN¾³

Index: 0 1 2 3 4 5 6 7

Element: A N T N E W S
Array

eKGacbegáIt Array kñúg C++ tamrUbmnþdUcxageRkam³
DataType ArrayName[Size]; //Array mYyTMhM

DataType ArrayName[Size][Size]; //Array @TMhM

- for Ca statement mYykñúgcMeNam loop statements epSg
eTotkñúgPasa C++ EdlmandUcCa while, do…while . Loop
statement KWCakareFVInUvGVImYydEdlCalkçN³ circle rhUtdl;

eBlNaEdlvaCYblkç½NÐbBa©b; . rebobénkareRbIR)as;va³
for(<intialExp>;<conditional>;<changeInitial>)

block; // CaGVIEdlRtÚveFVIkñúg loop
]TahrN¾³
for(int i=1; i<5; i++)
cout << I << “ , “;

enHKWCalT§pl³ 1 , 2 , 3 , 4 ,
- cprintf() Ca function Edlsßitkñúg conio.h vamantYnaTI
Rbhak;RbEhlnwg cputs() Edr b:uEnþ cprintf() eKGacbEnßmkar
erobcMTMrg;B½t’manmunnwgeFVIkar output mkkan; text window .
]TahrN¾³
window(10, 10, 80, 25);
cprintf(“2 + 3 = °d”, 2 + 3);

- delay() Ca function Edlsßitkñúg dos.h vamantYnaTIkñúgkar
BnüaeBlevlaén execution rbs; code edayeBlevlaenaH
www.ant.com.kh | ANT Magazine 47
Desktop Development C / C++

KitCa Milliseconds . ]TahrN¾³
puts(“Hello! Please wait in 200 milliseconds”);
delay(200);
puts(“ANT”);

- getch() Ca function Edlsßitkñúg conio.h vamantYnaTI
cab;yk id character Edl)anbBa©ÚlBI keyboard (eBlEdl
mankarcucelI key NamYyvanwgcab;yk ASCII code én key
enaH) . ]TahrN¾³
cprintf(“°d”, getch());

- putch() Ca function Edlsßitkñúg conio.h vamantYnaTI
output character eTAkan; text window . viFIeRbIR)as;
putch(int charCode);

// charCode Caelx ASCII énGkSr rW sBaØaepSg²
]TahrN¾³
int ch = getch();
putch(ch);

- _setcursortype() Ca function Edlsßitkñúg conio.h
vamantYnaTIkMNt;RbePT cursor EdlbgðajenAkñúg text
window . viFIeRbI³
_setcursortype(int corsorID);
// cursorID GacCa
_NOCURSOR
_SOLIDCURSOR
_NORMALCURSOR

]TahrN¾³
_setcursortype(_SOLIDCURSOR);

- goto Ca keyword mantYnaTI move compiler eGayeTAeFVI
karnUvTItaMgNamYytamry³eQµaH label . ]TahrN¾³
Ag: // enHCaeQµaH label
// do sth here or block

goto Ag; //vanwgRtlb;eTAeFVIkarRtg;Epñk do sth never done
- strlen() Ca function Edlsßitkñúg string.h vamantYnaTIpþl;
eGaynUvRbEvg text (cMnUntYGkSrb¤sBaØa) . ]TahrN¾³
int numChar = strlen(“Hello! ANT”);
cprintf(“°d”, numChar); // output 10

48 July 2008 | Issue 1
C / C++ Desktop Development

- strcat()
Ca function Edlsßitkñúg string.h vamantYnaTICaGñkP¢ab;rvag
text mYyeTAkan; text mYyepSgeTot. ]TahrN¾³
char* dest = “ab”;
char* source = “cd”;
strcat(dest, source);
puts(dest); // output : abcd

- strcpy() Ca function Edlsßitkñúg string.h vamantYnaTI copy text
eTAkan; text mYyepSgeTot. ]TahrN¾³
char* dest;
char* source = “cd”;
strcat(dest, source);
puts(dest); // output : cd

- if
CaRbePT statement EdlsikSalkçNÐdUc switch statement Edr .
ral; block rbs; if nwgeFVIkarnUveBlNaEdllkçNÐrbs;vaBit epSgBIenH
(else) vanwgbBa©b; . xageRkamenHKWCarebobeRbI if statement .
if(<conditionalExp>)
block1; // block1 nwgeFVIebIsinCa conditionalExp Bit (true)
else
block2; // block2 nwgeFVIebIsinCa conditionalExp minBit (false)

sUmeFVIkar download kmµviFI Turbo C++ tamry³
http://downloads.ant.com.kh/

nig source code tamry³eKhTMB½r
http://www.ant.com.kh/2008/07/

EsVgyl;karRKb;RKgTinñny½tamry³kmµviFIenH
enAelxeRkayeTot
sMnYr³ cUrbgðajBIkareRbIR)as; nigPaBxusKñarvag
cputs(), puts(), cprintf(), putch(), nig getch().

(BinÞú 20duløa sMrab;GñkQñH)

www.ant.com.kh | ANT Magazine 49
Database Development

Microsoft Access

eKalkarN_ nig smasFaturbs; Relationship
qay cinþa
enAkñúg Ms. Access RbsinebIelakGñkcg;begáIt database mYyeGay)anl¥RbesIrenaH elakGñkRtÚvyl;nUveKalkarN_ én Relation-
ship Camunsin .

I. karkMnt; Primary Key Foreign Key: kñúg One-to-many relationship, foreign

key KWCa field mYyb¤Rkúmén field enAkñúg record kUn ("Child"
Primary key KWCa field mYyb¤Rkúmén field EdlminGnuBaØat record) .
eGaybBa©ÚltMélsÞÜnkñúg record nImYy² .
1> R)akdfaKµan record BIrkñúg table EtmYymantMélsÞÜn II. karbegáIt Relationship
enAkñúg field mYyb¤Rkúmén field vaRtÚv)ankMnt;fa Primary Key Relationship eRbIedIm,IkMnt;TMnak;TMngrvag table nig ta-
2> Field EdlCa Primary key minGacmantMél Null )aneT ble edIm,IcUlrYmbegáItCa forms, queries nig reports, field
Primary Key mYyGacekIteLIgeday field mYyb¤k¾ field BIr Edl manTMnak;TMngKñaRtÚvEtman data type dUcKña elIkElgEt

b¤eRcIn eBlEdlBIr b¤k¾eRcIn field RtÚv)ankMnt;faCa Primary primary key field Ca Autonumber field .
Key, enaHeyIgminKitelI field NamYykñúgcMenam BYkvamantMél enaHGñkGacPöab; Autonumber field CamYy Number field

sÞÜneT . RbsinebI FieldSize property én field TaMgBIrdUcKña .
luHRtaEtkarrYmpSMén field TaMgGs;EdlkMnt;faCa Primary key 1> biT table TaMgLayNaEdlGñk)anebIkva
mantMélsÞÜnKñaenaHeTIbeyIgminGnuBaØatieGaybBa©Úl . 2> cuc Relationship enAelI toolbar b¤ Tool Menu »
Relationship

3> RbsinebIGñkminTan;)ankMnt; Relationship, enaH Show
Table dialog box nigbgðajedays½VyRbvtþi

4> RbsinebIGñkRtÚvkarbEnßm table Edlcg;Pöab; Relationship,
ehIy show Table Dialog box min)anbgðajeLIg cucelI
Show Table enAelI Toolbar .
edIm,IkMnt; Primary Key mYyRtÚvGnuvtþn_dUcxageRkam³
1> eRCIserIs field Edlcg;kMnt;Ca primary key mYy
2> RbsinebIGñkeRCIserIseRcIn field, cuc CTRL Key eGayCab;
ehIycuc row epSg²Edl cg;kMnt;
3> cuc Primary Key toolbar button b¤eRCIserIs Edit
Menu - Primary Key
5> cucBIrdgelIeQµaH table Edlcg;Pöab; Relationship bnÞab;
mkcucbiT Show Table dialog box .

www.ant.com.kh | ANT Magazine 51
Database Development Microsoft Access

6> GUs field EdlGñkcg;Pöab; Relationship BI table mYyén
field EdlmanTMnak;TMngeTA field én table mYyepSgeTot .

7> edIm,IGUseRcIn filed kñúgeBlEtmYy cuc CTRL key, ehIycuc
field nImYy²ehIyGUsBYkva.
Example One to One Relationship
8> Cajwkjab;GñkGUs primary key field (GkSrRkas (bold
Record nImYy²enAkñúg table tbl_Manager KWerobrab;BIB½t’man
text)) BI table mYyeTA field Rbhak;RbEhlKña (CaTUeTAman
rbs; Manager mñak;²Edl record nImYy²enaHmanTMnak;TMng
eQµaHdUcKña) ehAfa foreign key enAkñúg table mYyepSgeTot .
EtmYy record b:ueNÑaHenAkñúg table tbl_Department . ehIy
9> Edit Relationship dialog box )anbgðajeLIg GñkR)akd
record nImYy²enAkñúg table tbl_Department manTMnak;TMng
fa field name )anbgðajeLIgkñúg column TaMgBIr .
EtmYy record b:ueNÑaHenAkñúg table tbl_Manager .
10> kMnt;elI relationship options bEnßmeTotkñúgkrNIcaM)ac;
kñúg One-to-one relationship table Nak¾GacCa Primary b¤
11> cucelI OK button edIm,IbegáItnUv relationship
Parent table Edr .
12> Gnuvtþn_nUvCMhanenHmþgeTotsMrab;KUén table EdlGñkcg;
Pöab;TMnak;TMng 2> begáIt One to Many Relationship
One-to-many (1:∞) relationship mann½yfa record mYy
kñúg table A GacKµanTMnak;TMng TMnak;TMngmYy b¤ eRcIn record
kñúg table B . ehIy record eRcInenAkñúg table B GacmanTMnak;
TMngeTA record mYyenAkñúg table A . \TæiBlén relationship
KWmansar³sMxan;Nas;Edl record EtmYyenAkñúg table A Gac
KµanTMnak;TMngeTA record enAkñúg table B b¤GacmanTMnak;TMng
mYy b¤eRcIn record .
sMKal;³ GñkGacbegáIt relationship eRbIkñúg queries
manlkçN³l¥dUckñúg tables Edr . eTaHbICa referental in-
tegrity min)ankMnt;enAkñúg query k¾eday .

1> begáIt One to One Relationship Example One to Many Relationship

Pöab;TMnak;TMngrvag one-to-one (1:1) relationship mann½yfa Record nImYy²enAkñúg table tbl_Department KWerobrab;BI
record nImYy²enAkñúg Table A manTMnak;TMngEtmYyKt;eTAnwg B½t’mannigTItaMgrbs; Department nImYy² ehIymanTMnak;TMng

record mYyenAkñúg Table B . ehIy record nImYy²enAkñúg eTAeRcIn record enAkñúg table tbl_Employee . mann½yfa

Table B manTMnak;TMngEtmYyKt;CamYy record mYyenAkñúg Department mYyGacmanbuKÁlikeRcInGñkeFVIkar .

Table A .

52 July 2008 | Issue 1
Microsoft Access Database Development

3> begáIt Many to Many Relationship field kñúg table tbl_Employee nigeFVIkarEkERbedaysV½yRbvtþi.
many to many (∞:∞) relationship mann½yfa eFVIkarbegáIt sMKal;³ RbsinebI primary key kñúg table em (prima-

nUv table TIbIEdlehAfa Junction table ehIybEnßmenAkñúg ry table) eRCIserIsRbePTCa Autonumber field karkMnt;
Junction table nUv field fµIEdl)anmkBI primary key field Cascade Update Related Fields Kµan\TæiBleT BIeRBaHGñk

én table BIrepSgeTot . kñúg Junction table, primary key minGacpøas;bþÚtMélén AutoNumber field eT .
fields mantYnaTICa foreign keys . GñkGacbEnßm field epSg
Cascade Delete Related Records: eBlEdlkMnt; relation-
eTotenAkñúg junction table dUc table d¾éTeTotEdr . ship rYcral;ehIy-ehIyeBlNamYyGñkeFVIkarlub record kñúg
kñúg juction table karkMnt;nUv primary key KWCakarrYmbBa©ÚlnUv table em (Primary table), Microsoft Access edaysV½yRbvtþi
primary key fields Edl)anmkBI table BIrepSgeTot .
nwglubnUv record TaMgGs;kñúg table EdlmanTMnak;TMng.
]uTahrN_ : Primary key enAkñúg tbl_Emp&Pro ekIteLIgeday ]TahrN_³ RbsinebIGñkeFVIkarlubelxsMKal; Department mYy
ID field ehIynig P_Nº field .
BI table tbl_Department, enaHRKb;B½t’manTaMgGs; Edlman
TMnak;TMngnwgRtÚv)anlubecjBI table tbl_Employee .
III. Join Property

GñkGaceRbI Join Property (Join Type) edIm,IkMnt;nUvkarbgðaj
Tinñn½yEdl)anmkBI table b¤ Query EdlmanTMnak;TMngKña .
Example Many to Many Relationship
- Tool Menu » Relationship » cuc mouse sþaMelIExS Rela-
Referential Integrity tionship » eRCIserIs Edit Relationship » cucelI Join Type
Enforce Referential Integrity: GñkGacR)akdfaTMnak;TMngrvag
button .
record kñúg table EdlmanTMnak;TMngKñaGacykCakar)an (RtÚv

)an Valid) eday enforcing referential Integrity kñúg
1> ebIk Query CalkçN³ Design View
Microsoft Access ehIyGñkKµanbBaðakñúgkarlub b¤ karpøas;bþÚr
2> cucBIrdgelIExS Join (sßitenAcenøaH table b¤ queries)
Tinñn½yEdlmanTMnak;TMngKña .
sMKal;³ RbsinebIExS Join (b¤ExS relationship) min)anb-
Cascade Update Related Field: eBlEdlkMnt;nUv relation-
gðaj eLIgmann½yfa table b¤ Query TaMgenaHminTan;)anPöab;
ship ehIykñúgeBlmYyGñkeFVIkarpøas;bþÚnUv record én primary
relationship dUecñHGñkRtÚvPöab; relationship eGayvasin.
key field kñúg table em (primary table), Microsoft Access

edaysV½yRbvtþinwgeFVIkarEkERb primary key eTACatMélfµIkñúg !> ( Inner Join ) : bgðajnUv record TaMgLayNaEdl field
record TaMgGs;EdlmanTMnak;TMngKña . Pöab;Kña (Join field) )anmkBI table TaMg2esµIKña .
]TahrN_ RbsinebIGñkeFVIkarpøas;bþÚrelxsMKal; Department Only include rows where the jointed field from both
mYy (Dep_Nº) kñúg table tbl_Department enaH Dep_Nº table are equal

www.ant.com.kh | ANT Magazine 53
Database Development Microsoft Access

@> ( Left Join ) : bgðajnUv record TaMgGs;)anmkBI "tbl_Employee" ehIynig record xøH²)anmkBI "tbl_Emp&Pro" Edl field
Pöab;Kña (Join field) mantMélesµIKña .
Include ALL records from "tbl_Employee" and only those records from "tbl_Emp&Pro" where the joined field are

equal .
#> ( Right Join ) : bgðajnUv record TaMgGs;)anmkBI "tbl_Emp&Pro" ehIynig record xøH²)anmkBI "tbl_Employee" Edl
field Pöab;Kña (Join field) mantMélesµIKña .

Include ALL records from "tbl_Emp&Pro" and only those records from "tbl_Employee" where the joined field are

equal .

sMnYr
smµtikmµ
saklviTüal½ymYy)anerobcMbegáIt database mYysþIGMBIkarRKb;RKgbNÑal½y EdlmantMrUvkardUcxageRkam³
- RtÚvkarrkSaTukB½t’manrbs;esovePA nImYy²dUcCa³ BookID (elxkUdesovePA), Title (eQµaHesovePA), DateIn (éf¶naMcUlesovePA)
Author (eQµaHGñkniBnæ), Year (qñaMe)aHBum<), Pages (cMnYnTMB½r), Cost (tMél), Category (RbePTesovePA) .

- RtÚvkarrkSaTukB½t’manrbs;nisSitmñak;²dUcCa³ StudentID (Gtßelx), StudentName (eQµaHnisSit), Sex (ePT), DateofBirth
(éf¶ExqñaMkMenIt), Department (Epñk), Year (qñaM), Session (eBlsikSa), Academic Year (qñaMsikSa) , Photo (rUbft)

- enAeBlEdlnisSitx©IesovePA eyIgRtÚvkarrkSaTuknUv B½t’manbEnßmdUcCa³ éf¶x©IesovePA (DateOut), éf¶sgesovePA (DateIn),
eQµaHbuKÁlikeGayx©I (StaffName)
sMnYr
1- cUrbegáItTMnak;TMng (Relationship) rvag table TaMgGs;enH
2- begáItnUv Query mYyEdlman field dUcCa (BookID, Title, StudentID, DateOut, DateIn, StaffName) - edIm,IbgðajnUv
esovePATaMgGs; (esovePAmanGñkx©I nig KµanGñkx©I)
bBa¢ak;
sYsþIelak-elakRsI nigb¥Ún²sisSnisSitTaMgGs;CaTIrab;Gan edaysarkarecjpSayrbs;TsSnavdþI Gan "ANT" enHCaelxdMbUgdUecñH
RkúmniBnænaykeyIg´)anerobcMnUvsMnYrEdlmanlkçN³gayRsÜl edIm,IeGayb¥Ún²gayRsÜlkñúgkareqøIy EttamBitkargarRKb;RKg
bNÑal½yminman lkçN³gayRsÜly:agenHeT. b:uEnþenAelxbnþbnÞab;eToteyIgnWgBRgIk Databse EdlTak;TgnwgkargarRKb;RKg
bNÑal½yenHeGaymanlkçN³FMTUlaybEnßmeTot .

BinÞú³ 20duløa sMrab;GñkQñH

54 July 2008 | Issue 1
Database Development

T-Sql

EsVgyl;BI T-SQL CamYy MS SQL 2005
sM kkáda

GVIeTAEdlehAfa T-SQL ?
T-SQL CaBakükat;én Transact-Strutured Query Language vaRtÚv)aneRbIR)as;eday Microsoft SQL Server nig Sybase kñúg
karRKb;RKgRbB½n§Tinñ½y (Database) TaMgmUl BIeRBaHva)anBRgIknUvmuxgarmYycMnYneToteTAelI SQL dUcCa³
1> muxgarRtÜtBinitülkçxNÐ b¤ block (Flow control)
Flow control Edlpþl;eday T-SQL mandUcCa BEGIN, END, BREAK, CONTINUE,
GOTO, IF, ELSE, RETURN, WAITFOR, nig WHILE . rUbxagsþaMCa]TahrN¾énmuxgar

flow control rbs; T-SQL .

2> GacbegáItGefrkñúg block (Local variables)
eKGacbegáItGefrenAkñúg block én script T-SQL kñúgeKaledArkSaTuknUvtMél
CabeNþaHGasnñkñúgeBledaHRsaybBaðaNamYyeday T-SQL . CaFmµta T-SQL
minmanlkçN³GaceFVIkar)anCamYy Global Variables )aneT eKGacbegáIttMél
sMrab;GefrenAkñúg T-SQL eday SET keyword sUmemIl]TahrN¾xagsþaM³
3> bEnßmsmtßPaBeTAelIkarlb;nigEkERbTinñ½y (Delete nig Update statements)
eyIgGaceRbIR)as; JOIN statement b¤ statements epSg²eToteTAkan;BYkvaTaMg2 dUc
]TahrN¾xagsþaM³
karcab;epþIm T-SQL CamYyTsSnavdþI Gan "ANT"
xageRkamenHKWCakarEsVgyl;kMritbzménkareRbIR)as; T-SQL tamry³TsSnavdþI Gan "ANT" sMrab;elxeRkay²eTot TsSnavdþI Gan
“ANT” nwgelIkykBIKnøwHrYmTaMgl,icsMxan;²EdlTak;TgeTAnwgkareRbIR)as; T-SQL kñúgkarGnuvtþn¾eTAelIbNþamuxgarEdl)an erobrab;

xagelI.
eRbI SQL statement kñúgkarbegáIt Database

eyIgnwgbegáIt database edayeRbI T-SQL tamry³ Database Engine Query EdlCa Tool mYyrbs; Microsoft SQL Server
2005 dUcxageRkam³

www.ant.com.kh | ANT Magazine 55
Database Development T-Sql

bnÞab;mkyk mouse cucelI icon dUcrUbenH

tMrUveGayeyIgeFVIkar connect eTAkan; database
server NamYyEdlcg;Gnuvtþn¾ TSQL . ebIsinCaBuM-

mankarpøas; database server nig authentication
eT eyIgGaccuceTAelI Connect button

xageRkamenHCa TSQL (statement) eRbIsMrab;begáIt database
CREATE DATABASE ANTTSQLDemo CaeQµaH database EdleyIgcg;begáIt
eRkayBIsresr statement xagelIcb;RtÚvcucelIBakü
Execute edIm,IGnuvtþn¾kUd nig)anlT§pl

enHCaeQµaH database eRkayBIkar Execute TSQL xagelI

Command(s) completed successfully. BaküenHeyIgnwg)aneXIjenAkñúg
Messages tab bBa¢ak;fa statement xagelIBuMmankMhusnigTTYl)aeCaKC½y

56 July 2008 | Issue 1
T-Sql Database Development

begáIt Tables
eyIgGacbegáIt tables enAkñúg database )antamry³ CREATE TABLE statement rbs; SQL tamrUbmnþdUcxageRkam³
TableName: dak;eQµaH table EdlRtÚvbegáIt
CREATE TABLE TableName
coloumname: dak;eQµaH column EdlRtÚvmankñúg table
(columnname datatype[(size)] ,
datatype: bBa¢ak;RbePTTinñ½yEdleRbIeday column enaHebICaRbePT char
columnname datatype[(size),
……..) eyIgGacbBa¢ak;cMnYn (size) characters eRcInbMputpgEdr bnþrBIenHGacCa
[constraint], [primary key], [identity]…

xageRkamenHCa]TahrN¾énkarbegáIt table EdlmaneQµaHfa Customers eTAkan; ANTTSQLDemo database

lTæpl

USE anttsqldemo - eKeRbI USE statement kñúgbMNgpøas;bþÚr database Edlcg;eGay T-SQL eFVIkarCamYy.
CaFmµta database EdlmaneQµaHfa master KWCa default database EdlRtÚv)an selected edaysV½yRbvtþeRkayBIkar login .
tamry³kUdenH T-SQL nwgeFVIkarsMrab; ANTTSQLDemo database .
CusID, CusName, CusAdr, Tel CaeQµaH fields b¤ columns én Customers table . CusID Ca field TI1 manRbePTCa

IDENTITY column (Ca column EdlmantMéleTAnwg Autonumber enAkñúg Microsoft Access) CaFmµta column RbePTenHk¾Ca

RbePT PRIMARY KEY column pgEdr .
CusName Ca character column EdlGñkeRbI (Users) GacbBa©ÚlB½t’man)anminelIsBI50tY . vamanlkçN³Rbhak;RbEhlKñaenH

pgEdrsMrab; CusAdr, nig Tel columns . xageRkamenHKWCa Data type EdleRbIeday T-SQL³
Exact Numerics Approximate Numerics Character Strings sMnYr³ cUrBnül; nigeRbobeFob
bigint float char
int real varchar
PaBxusKñarvag char, varchar,
smallint text text, nchar, nvarchar nig
Date & Time
tinyint
datetime Unicode Character Strings ntext?
bit
smalldatetime nchar
decimal
nvarchar
numeric Others BinÞú 20duløa sMrab;GñkQñH
ntext
money cursor

smallmoney sql_variant Binary Strings
table binary
uniqueidentifier varbinary
xml image

www.ant.com.kh | ANT Magazine 57
ActionScript Language

ActionScript Language

Hello! ANT eday ActionScript 3.0
sM kkáda
GVIeTAEdlehAfa Actionscript ?
ActionScript KWCaPasakmµviFImYy EdlmanmUldæanecjBI ECMAScript. CaFmµta ActiopnScript RtÚv)aneRbIR)as;enAkñúgeKhTMB½r
nig Software EdlmankareRbIR)as; Adobe Flash Player b:uEnþeKk¾GaceRbIR)as; ActionScript enAkñúg database applications
pgEdr . elak-elakRsInigb¥Ún²nwg)ansikSanUvkareFVIEbbenHtamry³TsSnavdþI Gan "ANT" enAelxxagmux²eTottamlMdab;lMeday.
ActionScript RtÚv)anbegáIteLIgCadMbUgeday Macromedia ehIybc©úb,nñenHvaCakmµsiT§rbs;Rkúmh‘un Adobe kñúgkarGPivDÄn¾bnþ.

karekItmannUv ActionScript kñúgeKalbMNgRKb;RKgeTAelIKMnUsCIvclEdlmanlkçN³Ca 2 Dimensional (rUbPaBkñúgbøg;Fmµta
minEmnCarUbPaBkñúglMh) b:uEnþCMnan;eRkayrbs;va)anbEnßmnUvmuxgarelIsBIenH EdleKGacykvaeTAeRbIR)as;CaRbeyaCn¾kñúgkarbegáIt
kmµviFI Games EdlGacElg)antamry³ Internet nigkarbegáItkmµviFIemIlvIedGU sþab;cMerog nigkmµviFICECkkMsanþeTotpg.
begáItkmµviFI Hello! ANT eday ActionScript 3.0
muneFVIkarEsVgyl;BIkareRbIR)as;kUd ActionScript 3.0 tamry³TsSnavdþI Gan “ANT” sUmGñkdwgBIrebobénkareRbI ActionScript
kñúgkmµviFI Adobe Flash CS3 Camunsin . ral;dMNak;kalxageRkamenHnwgbegáItnUvkmµviFIKMrUedIm,IbgðajBakü “Hello! ANT” .
1> begáIt Hello Class (b¤begáIt ActionScript file)
ebIkkmµviFI Adobe Flash CS3 cUl File menu » New (dUcrUb A1)
- eRCIserIs ActionScript File
- bnÞab;mkcuc OK rYcvaykUddUckñúgrUb A2 (enHCa Script window)
- package Ca statement sMrab;RKb;RKg classes manmuxgardUcKñaeTA
rUb A1 nwg namespace rbs; C# (sUmemIlkñúgTMB½r C# sMrab;Gñkcab;epþIm) .
- import Ca statement sMrab;R)ab;eTA ActionScript compiler nUv
eQµaH packages rbs; classes EdlRtÚveRbIkñúgkUd . flash.display
rUb A2 nig flash.text CaeQµaH package .
- Sprite Ca class pþl;nUvmuxgar graphics nigCa container sMrab; ob-
jects epSg², Sprite Ca object dUcKñanwg Movie clip Edr . kñúgkar

begáIt user interface b:uEnþ Sprite BuMcaM)ac;eRbIR)as; timeline eT .
- TextField Ca class eRbIsMrab;begáIt Text object edIm,Ibgðaj text b¤
bBa©Úl text . eKGacbegáIt CSS (Cascading Style Sheet) b¤ HTML
page tamry³ TextField object pgEdr .

58 July 2008 | Issue 1
ActionScript Language ActionScript Language

kñúg]TahrN¾enH myText KWCa TextField object EdlRtÚv)ane)aHtMél “Hello! ANT Magazine” eTAkan; text property rbs;va
- extends Ca keyword bBa¢ak;nUvPaBrNb (child class) én class mYyeTAkan; class mYyepSgeTot . ]TahrN¾³
public class helloANT extends Sprite (bBa¢ak;fa helloANT Ca class Edlrg\T§iBlBI Sprite class (parents class) .

- helloANT() Ca function vaeFVIkarkñúgnamCa constructor én helloANT class eKdwgfavaCa constructor edaysarvaCa
member nigmaneQµaHdUcKñaeTAnwg helloANT class . ral;bNþalkUdEdlsßitkñúg block rbs; constructor nwgeFVIkaredaysV½y

RbvtþinUveBlNa object rbs; class enaH)anekItmaneLIg .
- addChild Ca method én DisplayObjectContainer (kñúg]TahrN¾RtÚv)andwgfaCa Sprite) sMrab;karbBa©ÚlnUv objects
epSg²eTA kan; object EdleRbIva (kñúg]TahrN¾enHsMedAelI Flash Player) .
- bnÞab;BIvaykUdxagelIrYcehIyRtÚveFVIkarrkSaTuktamry³karcuc Ctrl+S b¤cUl
File » Save As eyIgnwg)andUcrUb A3

- helloANT KWCaeQµaH file
- .as sMKal;faCa file rbs; ActionScript
- cuc Save
rUb A3
2> begáIt Flash File
eRkayBIkarbegáIt Hello class vaCadMNak;EdlRtÚvbegáIt Flash File edIm,IGnuvtþn¾kargarrbs;vatamry³ Flash Player
- cUleTA File menu » New (rUb A4)
- eRCIserIs Flash File (ActionScript 3.0) rYccuc OK
- bnÞab;mkcUl File » Save As rYcdak;eQµaH main CaeQµaH
file Edlnwg Save ¬eQµaHenHGacpøas;bþÚr)an) . RtÚv Save

eTAkan;TItaMgdUcKñaeTAnwgkar Save ActionScript file xagelI .
- fla sMKal;faCa file rbs; Adobe Flash .
rUb A4 - bnÞab;mkcuc Save
- bBa©ÚleQµaH class Edl)anbegáItxagelIeTAkan; Document class
viFIbegáIt Variable enAkñúg ActionScript 3.0 box emIlrUb A5 (n½yfa Flash File enAeBlenHCa object én hel-
1> var VarName : DataType; loANT class) .
2> var VarName : DataType = <value>; - edIm,IetsþemIllT§plRtÚvcuc Ctrl+Enter .
viFIbegáIt Object enAkñúg ActionScript 3.0
1> var ObjName : ClassName = new
ClassName;
2> var ObjName : *;
3> var ObjName; rUb A5

www.ant.com.kh | ANT Magazine 59
Testing Your Clever

Testing Your Clever

TMB½rdusxatxYrk,al
sM kkáda
CaTMB½rEdlelak-elakRsInigb¥Ún²Gacsakl,gR)aCJarbs;xøÜnCamYynwglkçNxageRkam
1> eRbIeBlevla 30naTI kñúgkareqøIyeTAnwg20sMnYredayxøÜnGñkpÞal; .
2> cUrepJIrcMelIyrbs;GñkeTAtamkarENnaMrbs;TsSnavdþI Gan "ANT" enAkñúgTMB½rTI 63 .
3> elak-elakRsInigb¥Ún²RtÚvcgcaMnUvcMelIyrbs;xøÜnedIm,IepÞogpÞat;BinÞúeTAnwgcMelIyénTsSnavdþI Gan “ANT” EdlnwgecjenAelx
bnÞab;CamYynwgRbB½n§vaytMélBinÞúEdlmanPaBCak;lak;mYy .
4> elak-elakRsInigb¥Ún²Edl)anepJIrcMelIymuneKkñúgcMeNamGñk)anBinÞúx<s;CageKnwgTTYl)anC½ylaPICaGñkmanR)aCJax<s;CageK
RbcaMExedaymanR)ak;rgVan; 20duløa .
5> elak-elakRsInigb¥Ún²Cab;C½ylaPIRtÚvsnüayl;RBmkñúgkarpSayrUbft nigbTBiesaFn¾rbs;xøÜntamry³eKhTMB½r nig TsSnavdþI
Gan “ANT” kñúgTMB½rCnEdlmanR)aCJaRbcaMExénTsSnavdþI Gan “ANT”
6> cMnYn6ExTsSnavdþI Gan “ANT” nwgbUksrubGñkCab;C½ylaPIeRcInCageKedIm,ITTYl)anC½ylaPICaGñkmanR)aCJax<s;CageKRbcaMqmas
edaymanR)ak;rgVan;150duløa rYmCamYyrgVan;elITwkcitþepSgeTot .
sMnYr
1> cUreRCIserIsBaküNamYyEdlmanTMnak;TMngeTAnwgextþkMBt 2 BinÞú 9> cUrbMeBjelxEdl)an)at; 5 BinÞú
k> RtIsmuRT x> ekagkag K> FUern X> RkÚc g> eBat 12 47 21
2> cMlas;GkSrkñúgBakünimYy²edIm,IrkBaküNamYyminEmnCastV 5 BinÞú 24 85 15
k> qcEcák x> RsIviy½t K> RsINaytþ X> xMdabøg g> kB;sukEt 6 18
3> cMlas;GkSrkñúgBakünimYy²edIm,IrkeQµaHNamYyCaGñkcMerog 5 BinÞú 10> cUrbMeBjelxEdl)an)at; 5 BinÞú
k> nusamIsusitu x> b:usUT§nIl K> GMeKOgsn; X> xMsVagéG g> vIetsaD 9, 10, 13, 22, 49,...

4> cMlas;GkSrkñúgBakünimYy²edIm,IrkBaküNamYyCasMelokbMBak; 5 BinÞú 11> cUrbMeBjelxEdl)an)at; 6 BinÞú
k> saLúkegAGuI x> PUTevAeso K> BMsUlht; X> Ehbdwk g> TUEk,gesCI ..., 80, 64, 56, 52, 50, 49

5> RbeTsNamYyCaRbeTssmaCikGas{an 2 BinÞú 12> cUrbMeBjelxEdl)an)at; 7 BinÞú
k> Cb:un x> cin K> TIm½rxagekIt X> m:aeLsuI g> GURsþalI 5 9 15
6> cUrEsVgrkBaküeBjeGay)anR)aMénBakü “ANT” 6 BinÞú 45 33 23
7> cUrbMeBjelxEdl)an)at; 4 BinÞú 59 75
93, 88, 84, 81,..., 78

8> cUrbMeBjelxEdl)an)at; 4 BinÞú
35, 32, 28, 25, 21,…,14,11

60 July 2008 | Issue 1
Testing Your Clever

13> eKmanctuekaNEkgmYyEdlmanbeNþayesµInwg2dgénTTwgrbs;vanigmanbrimaRtesµInwgkaer:EdlmanépÞRklaesµI1 . cUreRCIs
erIs cMelIyNamYyxageRkamEdlCaTMhMépÞRklaénctuekaNEkgenaH? 6 BinÞú
k> 1 x> 6 K> 2/3 X> 4/3 g> 8/3
14> ebIbc©úb,nñ´manGayu #¡ (# hVak;tUrIEyl) etI´nwgmanGayub:unµanqñaMbEnßmGayubc©úb,nñeTAnwg $¡ ? 6 BinÞú
15> eKmankMb:ugmYyEdlmankak;BN’elOgcMnYn10 nigBN’RkhmcMnYn30. eKcg;eGaykMb:ugenaHmankak;BN’elOgcMnYn ^0° én
kak;TaMgGs; etIeKKYrEfmkak;BN’elOgb:unµaneToteTAkñúgkMb:ugenaH? 7 BinÞú
k> 35 x> 60 K> 40 X> 30 g> 25
16> eKmanelxEdlGacEckdac;EtxøÜnÉgcMnYn3elx edaybUkcUlKñaesµI100 kñúgenaHeKdwgfamanmYyelxEdlFMCagmYyelx-
epSgeTotcMnYn 36. etIelxTaMgenaHmanelxGVIxøH? 6 BinÞú
17> emIlrUbPaB etIrUbPaBelxb:unµanEdlnwgCMnYssBaØaExVg? 7 BinÞú

1 2 3

X
4 5 6

18> emIlrUbPaB etIrUbPaBelxb:unµanEdlnwgCMnYssBaØaExVg? 5 BinÞú

1 2 3

X 4 5 6

www.ant.com.kh | ANT Magazine 61
Your Brain’s Score

19> emIlrUbPaB etIrUbPaBelxb:unµanEdlnwgCMnYssBaØaExVg? 5 BinÞú

1 2 3

X 4 5 6

20> emIlrUbPaB etIrUbPaBelxb:unµanEdlnwgCMnYssBaØaExVg? 5 BinÞú

1 2 3

X 4 5 6

kMritmnusSEdlman cMelIyEdleqøIyRtUv nieTÞs
0.6% 18 - 20 kMrnwgman
ticCag 2% 15 - 17 Gs©arü
5% 13 - 14 l¥Nas;
9% 10 - 12 l¥
10% 7 - 9 elImFüm
50% 5 - 6 mFüm
25% 0 - 4 eRkammFüm

62 July 2008 | Issue 1
http://www.ant.com.kh/
TMB½rbBaða nig dMeNaHRsay CaTMB½rpþl;eGaymankarcUlrYmBiPakSaelIbBaðaEdl)anecaTsYrBIsMNak;elak-elakRsI nig
b¥Ún²CuMvijnUvGVIEdl)anekItmankñúgvis½yB½t’manviTüa ]TahrN¾dUcCa³
1> bBaðakñúgkareRbIR)as;kuMBüÚT½r (End-User) rYmman³ kmµviFIkñúg Office (Word, Excel, Power Point, …), kareRbIR)as;
fonts nig Shortcut, karkMcat;emeraK .l.

2> bBaðasMrab;GñksrsrkmµviFI (Developer) rYmmanbBaðakMhusqÁgepSg²EdlekItmanelIkUdkñúgkarbegáIteKhTMB½r nig
kmµviFIkuMBüÚT½r bBaðaekItmaneBlEdlkmµviFIdMeNIrkar CuMvijbBaðaRbB½n§RbtibtþkarN¾ suvtßiPaBkUd nig requirements .l.
3> bBaðakñúgkarRKb;RKgTinñ½y (Database Administrator) rYmmankarviPaKTinñ½y nig RbB½n§ KnøWHkñúgkar Queries
epSg²BI Microsoft Access, SQL Server, MySql .l.
4> bBaðasMrab;GñkviPaKRbB½n§ nig KMerag (System Analysis and Project Management) rYmmanviFIsa®sþviPaKeTAelIKMe
ragsMNg;kmµviFI nig karkMNt;bBaða RBmTaMgeBlevlakñúgkarbBa©b;KMerag.
vaBuMEmnmanEtcMnucTaMgbYnxagelIenHeTEdlelakGñkGacecaTsYr nigRtÚv)anedaHRsay b:uEnþGacCaGVIepSg² EdlBak;B½n§kñúg
EpñkB½t’manviTüa.
elak-elakRsI nigb¥Ún²GaceFVIkareqøIy nigedaHRsay b¤pþl;CaKnøWHral;bBaðaEdl)anecaTsYr edaymitþGñkGanepSgeTot
eTAtamGVIEdlCabTBiesaFn¾Føab;man ehIycMelIy nigbTBiesaFn¾TaMgenaHGacnwgmankarbdiesFn¾kñúgn½yCaTsSn³eyabl;
bEnßm edaymitþGñkGanepSgeTot²pgEdr .
TMnak;TMng nig eKalkarN¾
- elak-elakRsInigb¥Ún²GacepJIrbBaðanigsMnYr b¤ cMelIynigbTBiesaFn¾mkkan;kariyal½yniBn§TsSnavdþI Gan “ANT”
tamry³sareGLicRtUnic (E-mail) xagelI b¤Gas½ydæandUcmanenAkñúgEpñkTMnak;TMngénTsSnavdþIGan “ANT” kñúgTMB½rTI4 .
- B½t’mandUcCaeQµaH elxTUrs½BÞ sareGLicRtUnic b¤GgÁPaB rbs;elak-elakRsInigb¥Ún²Edl)ancUlrYmCamYyTMB½renHKW
caM)ac;RtÚvP¢ab;mkCamYy .
- cMelIyTaMgLayKWCakarTTYlxusRtÚvedaym©as;cMelIy .
- bBaða b¤dMeNaHRsayEdl)anepJIrmkGacnwgpSayenAelxbnþbnÞab;tamlMdab;erogEdl)anepJIrmk .
- TsSnavdþIGan “ANT” rkSasiT§mincuHpSaynUvcMelIyTaMgLayNa EdlmanlkçN³riHKn;F¶n;² kñúgn½ybgárCaCMelaH b¤
b:HBal;kitþiyseTAkan;GñkcUlrYmpþl;cMelIyepSg²eTot .
- bBaða b¤ dMeNaHRsayEdl)anepJIrmknwgRtÚv)ancuHpSayelIeKhTMB½rTsSnavdþI Gan “ANT” kñúgEpñk Forums (forums.
ant.com.kh) .
GtßbTKMrUsMrab;dMeNaHRsay nig bBaða
sMnYr
RbsinebI´manKMeragmYycab;epþImenAéf¶enH ehIyKMeragenHmanry³eBl 20 éf¶ . ´cg;bgðajB½t’manBIEf¶ExEdl´RtÚv
bBa©b;KMeragtamry³ Microsoft Excel @00& .

cMelIy
- TImYyelakRtÚvcUlkmµviFI Excel b¤ebIknUv Workbook EdlelakkMBugeFVIkarrYceFVIkarvayrUbmnþTODAY() eTAkan; cell
B1 dUckñúgrUbxageRkam . rYccuc Enter elaknwg)aneXIj éf¶Exbc©úb,nñ .

- TIBIrelakvayrUbmnþ TODAY() + 20 eTAkan; cell B2 dUckñúgrUbxageRkam
(elx@0 CacMnYnéf¶Edlnwg bBa©b;KMeragrbs;elak)

- TIbI elakGacvaybEnßmnUvB½t’maneTAkan; cell A3 dUc text xageRkam³
= "ebI project cab;epþImenAéf¶ " & TEXT(B1, "MM,DD,YYYY") & ", ry³eBl 20 éf¶rbs;´kñúgkareFVI project
nwgbBa©b;enAéf¶ " & TEXT(B2,"MM,DD,YYYY") &"."

lTæpl³
Job Seeker Employer Membership

• Jobs added daily! • Easy for Post Job! • Membership is FREE!
• Easy to use! • Unlimited Post Job! • Easy to Register!
• Free documents & advices! • Easy to find Candidate! • Get Your Personal Page!
• Easy to find Education! • All above is FREE! • Recommend from Usoft!

Resume Wizard Job Alerts Students

• Professional Templates! • Free Job Alerts! • Get the latest scholarship!
• Six simple steps! • Unlimited Alerts! • Easy to find Education!
• Complete in seconds! • Jobs emailed daily! • Post your resume!
• Access and view online! • Get jobs as posted! • Free documents & advices!