Luận văn Nghiên cứu một số phương pháp cải biến dữ liệu trong hệ thống nhúng PDA phục vụ trong e-Learning

NGHIÊN CỨU MỘT SỐ PHƯƠNG PHÁP CẢI BIẾN DỮ LIỆU TRONG HỆ THỐNG NHÚNG PDA PHỤC VỤ TRONG E-LEARNING NGUYỄN ANH TUẤN Trang nhan đề Mục lục Chương 1: Tổng quan. Chương 2: E-Learning và PDA. Chương 3: Cải biến dữ liệu. Chương 4: Cài đặt thực nghiệm. Chương 5: Kết luận và hướng phát triển. Tài liệu tham khảo

pdf38 trang | Chia sẻ: maiphuongtl | Lượt xem: 2356 | Lượt tải: 0download
Bạn đang xem trước 20 trang tài liệu Luận văn Nghiên cứu một số phương pháp cải biến dữ liệu trong hệ thống nhúng PDA phục vụ trong e-Learning, để xem tài liệu hoàn chỉnh bạn click vào nút DOWNLOAD ở trên
-64- Chll'O'ng4. Cai d~tth,!c nghi~m 4.1 Thietkegiao di~ntrenPocketPC Cai d~tcho PocketPC D6ngh6 Heth6n2:4.1.1 Giao di~n Pocket PC Tqmgthai k~tn6iNutStart ThanhtacVl,l Cacchuangtrinh thuemgdung Hinh 25.Giaodi~nHomecuaPocketPC PocketPC lam<)tthi~tbi cogiaodi~nkha1~mit sov6'inhungm~ytinhd~ban thongthuangmanguaidungdaquellsudl,lng. Giaodi~nPocketPC thuemglam<)tmanhinh240x320van~mth~ngdung(khac v6'icacmayd~ban,manhinhn~mngang) T~im<)tthaidi~mthiPocketPC chihi~nthim<)tcuas6cuam<)tungdl,lng.Khong gi6ngnhuDestopconhi~ucuas6ch6nglennhautrenDesktop. TrangPocketPC,nut@ n~mgocphflitrenmanhinhthuemgcotacdl,lnglathunh6 cuas6,khongcoy nghlalak~thucchuangtrinh.Dododoikhitabftmvaonutnay cuas6 chuangtrinhdongl~ilamta lfimtuangla dak~tthucnhungthvcchftt chuangtrinhnayv~ncondangch~ytrongh~th6ng. -65- li m;r,~..~~_-«Bt"~~4:~~1[~~~Wf.~t;~:~' '-I'DI~ I Foe Edit 'Tie"" Fa"otlt~s Tools' Help I lit I- -.. '" Q Back, ".,' -iH~,",::':,~,:,' ~~~ , ;:T61~-- ~~'%?'": AQdr~ssI file "",.:" ,I,f/II.,- My1'000, " ' ..: '" .. "'. ""'i!~,.,-~,,;.;,...,,_,'Lift5'~ DBusine-! Eue ~dit ~ie>"F!!'/orites100/5 tjelp I ,'t11!,. A AQdI~"1I!. ., ~ ~' I ,', . "'.--; ' persor-luBack T,~ ,'" ._, ..- . ,~ L ..'-~ ~_. ~-"".. """ »1 0 Tempi,GO! .. ~.tjl1...m"I."1[0],W'Jr,r,:';;;;"I["'~1ollill.~°m7i-':I iiiiij;i;"'--4.i!'Wl~;:r,':;,~' -rf:il~ r :Address~ '" " . IfJICITDS !" ':<B1 , e. ~dit ,, ' \!iew ", Insert , FQI1M.t , 100l ., S , T , !!bI , e , , ~in , dO " W "" , tlelp ", Type.;qU~stiontolheiP T X 'asnap ]'GoogleT r;; ... ,-0,2 [, , """ ':b. !~ j "" I... ,-:1= -- . ~ ' m iasnap leq :Q LOJ .!Z'! J~:ei ~)1bIo.!1a.i2<~.;,~.;',,~,,;.~.:i" W:I.~,i~ ,100% T i [Q ~eadJa iasnap I ;Normal. TtmesNewROI1IiW1. 13. I B I U I ==~ I =:=Q T A . ,ra. 0 - - - E.I III - V"-iasnap iasnap iasnap iasnap iasnap iasnap ,.1 ~Go [g ""'40"""'&0"""'80"""'100"""'120"""'140',,'," , ~ '..' .' ' '~'~""""'L"""'" ,'ft, ~ ,g trinh - ~ ~ EfJ.J.. 0.~ - lung "~~ Index , ._-- "'iasnap Glossary ~MJj'ieSY!K~ mnh 26.M:mhinhnhi~ucil'as6chi3ngleunhaucitaDesktop I~~ffi~fE~'~J~;~;:~,;~~;.~~:aj ~20'm Memory ~~~ti~9s,;:~~~p,~r~l!~.~;~"~,:2r~~~,~Ii lfile://\windows\defaulthtm ...1(t ~~~~k~tIn ernef~-p'or~r RunningProgramlist: -'/'Jelc:c,-ittCI !:'Cicfe+ Internet -', r--!c;'fliw,,?",I'::]:"FwdDuT ho, ~::'qetconnected3ndsalle offlinecontent. ac:tr !,'ActivateI E Stop ] I Stop An I fi' Avant (,()' PocketPC.com ~ StorageCardI RunningProgramsC RemoveDrooramsto free storagememory, Findlargefilesusingstoragememory, View Tools ..~~" G1 9r mnh 27.CacchU'o'ngtrinhdangch~ytrenPocketPC f)~t~tmQtungdt,mgkh6ih~thfmgtadungnhihlgti~nichcungd.pb6'ih~th6ng ho~cdungchucnangStopchuangtrinhtrongmvcSetting~ RunningPrograms Trongkhil~ptrinhtacoth~dungcachamexitOd~dongh~nungdt,mg. ,Name ... IA ScreenShot f- InternetExplorer FileExplorer - CITD-[l.1edia@2004! f--... -66- 4.1.2 PhU'O'ngphapthi~tk~ Nh~mlamchonguaihQccoth~dedangti~pc~nvaih~th6ngthivi~cthi~tk~giao di~nthu~nti~nclingc~nduQ'cquailtam.-D?cbi~tla d6i'vaicacthi~tbi PDA thuangcomanhinhnh6. Ii moh 28.Thi~tk~giaodi~o 4.2 Gi&i thi~uh~thongchLPO'ngtrinhE-Iearning Xuyensu6tchud~cualu~nvan,chungtoit~ptrungvi~cxaydl,l'ngcaclingdl,mg trenPDA saochotumQthi~tbinh6gQn,giathanhthftpcothedaplingduQ'cnhu du hQct~ptuxachocachQcviencohoancanhlamvi~cvahQct~ptrongmoi truangdi dQng.ChuangtrinhE-IeaminglamQth~th6ngph~nm~mgiupchohQc vienhQct~p,xembaigiangtuxaclingnhutheodoicacbatgiangduQ'clUlltrittren mayPDA. H~th6ngchuangtrinhE-Ieaming6m2ph~nchinh: . Ph~nch?ytrenPocketPC: Baog6mcacchuangtrinhxemSlidebaigiang d?nganh,chuangtrinhmultimediastreammingnh~ntrl,l'ctuy~ncacbat giangamthanhvahinhanh,d6ngthaituangtacvaiserver. ,at';:f!...":":';:i:..+ 04El:3 .v. Thanh ceng C1,1 Thanh ceng C1,12 Milnhlnhchinh Thtfc ddn x -67- Slide, / ;,:;~~~:,:~~~;,:"~""~;'"I~WmJ~,,~~~~~!I~.'M",y. ,."'~_.,~;"'""~ ~~.."oq~"",,1; ..~~:"::~ ,";;.,' ~ ;;;;~ ,. ,~!H.eoLesSpll}t£;!:rd;!ictiOIi!l1 . }?'~/ .': :~; ,.,""',,~ Bl "n':-~~ '",., .:co" '".. " ",....:-i, .:,.;:-. "';;':""'~' J. ;~ """r,::;,, mnb 29.Giaodi~nChu'Ol1gtrinbE-IearningireDPocketPC . Phftnch~ytrenServer:M<)tServerchuyenxu Iy cacyellcftucuaclientvaITa v€ n<)idungthichhgpthothi€t bi cuanguaidung. Xay d1,l11gh~th6ngph\lcV\lchuangtrinhE-Ieaming: H~th6ngE-Ieamingduqctrienkhaitrencacphftntungsau: MayPocketPC AcernlOch~yh~di€u hanhWindowsPocketPC 2003 Cardm~ngCF-WirelessSennao802.11b CiscoAccess-point LinuxServer:as RedHat9.0: . ApacheWebServer:TomcatServer,Cocoon,httpd . Squid Proxy Server 4.3 Cac chU'O'ngtrinh trenPocketPC 4.3.1 ChU'O'ngtrinh Pocket-Slide M<)tling d\lngdftulienca bannhfttd6lakhanangxemeaebaigiangdlJoclUll tru trenPocketPc. Baigiangsaukhiduqcbienso~ntrenmaytinhIansitd\lngeae tongC\lso~nthaoslidethongd\lngnhuPowerPointva duqelUll duaid~ganh -68- lPG. Chuangtrinhsehi~nthilfinIUQ1:cacfmhnayvath~hi~ntrenPocketPC thee d;;mgng~ngQnho~cdfiymanhinh. DayIagiaodi~nchinhcuachuangtrinh. Ii; CFCard---Business lit Personal Ii; Templates - ProgramFiles Hinh 30.Giaodi~nchu'o'ngtrinhPocketslide Chuangtrinhsud\lngcacbQthuvi~nth~hi~nvaxu Iy anh.BQthuvi~nnaydil duQ'cait~oI~ichophuhQ'Pv6'imoitruangWindowsCEo CXlmage,lPeg:BQthuvi~ndungxu IycacanhlPEG CDIBSectionLite:Thuvi~nchovi~chi~nthianh ChuangtrinhduQ'cphattri~nb~ngbQcongC\lEmbeddedVisualC++3.0 IIg:~'~dtY:- Insertfroject~IOoIs W:~, t1eb JJ~ I'~ Iii) "j JI; ~ ~I :d,~';~!~~I[i8"fJilreo!~rmt~!-_~_Iream_dala II CPockeiSlideView ..:::J116Jcia::member:) .:::.110"0,,.L. .' . IPocketSlide ..:::JIPam.:izePC2.11 ..:::JIWn32(\lICESH3)Debug,".. .. ~d~ 'r; ""'I"""m<i~r"i " ,~ (j;)IWOIk:pace 'PocketS tide': 4 lXoject(:j EH.~ D<lmagefile: S.~ DbSectionlitefile: IB~JPegfjes B~ PocketSlid,,'lile- S -tsl SoUleeFile: . ~ FolderView,cpp ,. ~ ~. MainFrm.epp :...,i; PocketSide.cpp :.q,i; PocketSide.re , , ,i; PockeIS!deDoc.cpp -., !. PockelSideVoew.c .~ ST_SplitterWndcpp .. ~ StdAf..cpp s-D HeaderFoe: ffi .D ResourceFie: '. ~D<lmage W\1DibSectiortie .~ ReadMe.be! it I ~ .~Cla..Viewl~ Resour...I ~ FileView Ready -69- or; 3lPam-size PC2.11EnUation ;j I ,-- ,'/ CPocketSii-deVie«messagehandlers void CPocketSlideView: :OnKouseKove(UINTnFlags. CPoint pain! { if(nFlags ..KK_LBUTTON){ desPoint +- point - prvPoint; if(desPoint.x ) 0) desPoint.x - 0; if(desPoint.y ) 0) desPoint.y - 0; if(desPoint.x < minPoint.x) desPoint.x'minPoint.x; if(desPoint.y < minPoint,y) desPoint,y. minPoint.y; J prvPoint . point; Invalidate(FALSE); } CView::OnKouseKove(nFlags. point); void CPocketSlideView: :OnLButtonDown(UINTnFlags. CPoint po: { prvPoint =point; CView::OnLButtonDown(nFlags. point); ~ iREC[55L[5'\iRI EAD,.iILn-177-;-tOJ 1 moh 31.MilD hioh pMt tri~o Ii; CFCard ra; IvJyDocuments L!tj:J~I~Ji ~ Personal lit Templates " ProgramFiles ~"'~ GIOI Tm~;ULlNUX lit CFCard lit MyDocuments ~ jm~~I~mi ~ Personal ~ Templates lit ProgramFiles T LichsirLinux \. , ,,'" I'm u"", T",,~I1j,".1""""'..' 1""""".~<"'I"I"..~,.~II.t,,.MI~ ':",,.. tim,"" ~ r:tun III"" dich",tlJreach...' 13mOt l"'d..~"""ht""""~tri",IY")PC"". "\lr h 11'1"" , "!""l)-""I'~Jt.Lw,u.,,Mro"""""'1II " IOO"~1>30""" <C<t1p""'"1""" ~"r"'H«!"J":)","".""h"I."""~, """"""""""",,~~I"""'",. ~ ~P' Tools ~II [] I~ I J.. ~ IQJ Tools~I [] ,.. I J.. ~ IQJ Hioh 32.Giaodi~ochu'o'ngtrioh: MilDhiohchioh -70- Khi gQichuangtrinhPocketSlidelen,chuangtrinhsecogiaodi~nnhuhinh13. Cuas6chuangtrinhsedm)'chia2: Ph~ntren:timrathum\lCcochuacacslidebaigiang. Chuangtrinhsel~nluQ'tdQccacslide N~utaclickvaobi~utUQ'Ilgslideshowthichuangtrinhsel~nluQ'thi~nthicacslide chod~nh~t. IffilSlide1/3-x ~ A .' .~ "'.1\U GIOI THI~~l1LlNUX , vII.1"""""""" 110 ,... -4 ~F To~is.,.~i [] 1.1J~ ~ IQJ. -.- mnh 33.XemdAymanhlnh LichsirLmux '\ . ">In1"" I""" T",nU, ,mb\Ow:-.-' 1"""""~"""'Ii<l...~,.p'..nb""~'..u.. ~ ""'«!~!""' . "":.PI"':"b.t'.1,... U"" ... "" mo-,did,"Clu",'uncad"" .. no'" t.;,d";"",nJ,l.r""t..""",mi.'P(,,,.,'" """, I.", ""'IV. .X""':""'nll.",...rn.'110""""""'" .. om.:;Il» ore"C""'I>'" oxru. ~"'"""'dUd'~'="""\";L""" ~. \ mnh 34.Xoaymanhlnhd~hi~nthj roho'ntheochi~uciiaslide -71- Vi mayPocketPC 1£1thi€t bi thuemgcomanhinh240x320,dehinhaM dugcthe hi~nr6netvad~tkichthuac100nhftt,tacothexoayaM sangnfimngangded~t dugck€t quabienthit6tnhftt Trongchuangtrinh,nhfimthehi~nt6tnhfttbucanhtrenmanhinhcuaPocketPC, tadonphaithaydbikichthuacchophilhgpvaimanhinhbienthi. Cacbi€n toanCl,lCnhfimlUllgiftcacgiatrianhdangdugcthamchi€uvatr~gthai chuangtrinh public: CStringArray m_FilePaths;11 Lay Path chua cae slides int m_nCurrentImg; m_nTotalImg; II Con tro den cae Images II Cho anh vua van vao man hinh II Xoay anh ngang II Slideshow II Day man hinh II Anh bien tai dang chieu CDIBSectionLite *m_pImg; BOOL m_bFix; BOOL m_bVertical; BOOL m_bSlideShow; BOOL m_bFullScreen; int II Tong so anh 4.3.2 ChU'O'ng trinh VideoStreamingOnline 4.3.2.1 GiOithi~uungd1}ngMediaStream D~tal nayclingxay d1J11gmQtlrngdl,lngMediaStream,co thetruy~n StreamingMedia(Wave,MP3, WMV, ASF) choPocketPc. TrongIInhvtJce- learningthiduli~ud~ngvideo1£1rfttquailtrQng.HQcviena xakhongthethamgia. ITtJCti€p vaolaphQccothexemcacbatgiangdugclUlltmtrenServer.Vai nhung hQcviencodi~uki~nlamvi~cthucmgxuyendichuyenthivi~csirdl,lngPDA nhu1 thi€t bi h6trghQct~p1£1rfttti~ndl,lng.Tuy nhienthi€t bi I;>DA1£1rftth~nch€ v~tal nguyentrongkhi kich thuaccuadu li~uvideothucmg1£1rfttIan. Do do,d~tal se ti€p c~ntheehuOOgstreamingmediachoPocketPC d€ kh~cphl,lckhokhandoh~n ch€ v~lull tru. -72- 4.3.2.2 C~utrucchffangtrinh Chuangtrinh,Slrd\mgbQ cong Cl,lphattri€n WindowsMedia Player SDK va DirectX(DirectShow)cuaMicrosftd€ phMtri€n. Chuangtrinhh6trq d~mgfile wmv,asf,wma.D€ co thedungstreamingmediata phaicaitienvi~cSlrdl,lngcacham. Chuangtrinhcotheketn6iVaGmQtmediaserverd€ lfiyrat~ptinmotadil'li~ubai giangcotrenserver:media.xml. ChuangtrinhsetMt~ptinmedia.xmlv€ may PDAr6id9Cracacfiledil'li~uchonguaidungh.rach9n :::-,~-y:d~~[jeinafi:~r~:j>;~~~...~ ;ro:5~{-to EntertheAddress Ihttp:jjwww.vnuitedu.vnjI [&gJ ¥' ~ewEdit Tools ~ ~ 8 'W.. 1!1I1'" Hinh 35.Giaodi~nmanhlnhchinhtalt~ptinmedia.xml Chuangtrinhseparset~ptinmedia.xmlvachonguaidungh.rach9nt~ptindil'li~u sestreamingv€ mayPDA. GiaSlrnguaidungch9nlinux.wmvthichuangtrinhse b~td~uch~yhi€nthit~ptinvideocothubaigiangLinux. -73- III][O'.::If';1'4!II! File' T~~f~H;;lp7;f~)-;7\,~~t. Hinh 36.SaukhiclickchQnt~ptin linux.wmv Ta xaydlJnghamDownloadPaged€ tait~ptinmedia.xml int DownloadPage(LPTSTR szAddress) int nRetCode = Oi DWORDdwAccessTy~e = PRE_CONFIG_INTERNET_ACCESSi canst TCHAR szHeaders[] = _T(IIAccept: text/*\r\nUser-Agent: MFC_Http_Sample\r\n") i DWORDdwHttpRequestFlags =INTERNET_FLAG_NO_~UTO_REDIRECTi BOOL bSuccess =TRUEi CFile ITl_pFilei CMyHttpSession session(CString((LPCTSTR)IDS_HTTPAPP), dwAccessType) i CHttpConnection* pServer =NULLi CHttpFile* pFile =NULLi TRY { (DWORD)this, strObject, II check to see if this is a reasonable URL CString strServerNamei CString strObjecti INTERNET_PORT nporti DWORDdwServiceTypei if ( !AfxParseURL (szAddress, nport) II dwServiceType != INTERNET_SERVICE_HTTP) dwServiceType, strServerName, SetDlgltemText(IDC_EDIT_PAGE, CString((LPCTSTR)IDS_ERROR1))i ThrowHttpException(kErrorl) i } session.EnableStatusCallback(TRUE)i pServer = session.GetHttpConnection(strServerName, nPort)i -74- strObject, pFile = pServer->OpenRequest(CHttpConnection::HTTP_VERB_GET, NULL, (DWORD)this, NULL, NULL, dwHttpRequestFlags); pFile->AddRequestHeaders(szHeaders) ; pF~le->SendRequest(); DWORDdwRet; pFile->QuerylnfoStatusCode(dwRet) ; if (dwRet ==HTTP_STATUS_DENIED) { MessageBox (L"Access to the secured http denied!", L"Error", MB_OK); II now an error page should be downloaded site is } CString strNewLocation; pFile->Querylnfo(HTTP_QUERY_RAW_HEADERS_CRLF, strNewLocation) ; II were we redirected? II these response status codes come from WININET.H if (dwRet ==HTTP_STATUS_MOVED II dwRet ==HTTP_STATUS_REDIRECTII dwRet ==HTTP STATUS REDIRECT_METHOD) CString strNewLocation; pFile->Querylnfo(HTTP_QUERY_RAW_HEADERS_CRLF, strNewLocation) i int nPlace =strNewLocation.Find(_T("Location: ")); if (nPlace ==-1) { SetDIgItemText(IDC_EDIT_PAGE, CString((LPCTSTR)IDS_ERROR2) ); ThrowHttpException(kError2) ; strNewLocation =strNewLocation.Mid(nPlace + 10); nPlace = strNewLocation.Find('\n'); if (nPlace > 0) strNewLocation = strNewLocation.Left(nPlac:e); pFi1e->Close () ; delete pFU..e; pServer->Close() ; delete pServer; CString cs!Y]sg CString((LPCTSTR)IDS_CAUTION) + s t rNeV1Loca tion; SetDIgltemText(IDC_MESSAGE, csMsg); strServerName, II figure out what the old place was if (!AfxParseURL(strNewLocation, strObject, nport)) { dwServiceType, SetDlgItemText(IDC_EDIT_PAGE, CString((LPCTSTR)IDS_ERROR3)) ; -75- ThrowHttpException(kError2) ; if (dwServiceTy?e != INTERNET_SERVICE_HTTP) { SetDIgItemText(IDC_EDIT_PAGE, CString((LPCTSTR)IDS_ERROR4)) ; ThrowHttpException(kError2); II try again at the new location pServer = session.GetHttpConnection(strServerName, npon:) ; pFile >OpenRequest(CHttpConnection: :HTTP_VERB_GET, strObject, NULL, pServer- (DWORD) this, NULL, NULL, dwHttpRequestFlags); pFile->AddRequestHeaders(szHeaders) ; pFile->SendRequest(); pFile->QueryInfoStatusCode(dwRet) ; if (dwRet != HTTP_STATUS_OK) ThrowHttpException(kError2) ; TCHAR* 5zWEBPage =new TCHAR[MAX_WEBPAGE_SIZE+l]; if (szvJEBPage) { 8zWEBPage[O] =L'\O'; TCHAR* 5Z =new TCHAR[BUFFER_SIZE+l]; TCHAR* SZWED: =new TCHAR[(BUFFER_SIZE+l)*2]; 8Z[O] = L'\O'; szwBu:[O] = L'\O'; int 11 = 0; pFile->SetReadBufferSize(BUFFER_SIZE*2) ; while (pFile->ReadString (5Z, .BUFFER_SIZE)) { wce_AsciiToWide (szwBuf, . (const char*) 5Z) ; n += _tcslen(szwBuf); if(n >= MAX_WEBPAGE_SIZE) break; _tcscat(szWEBPage, szwBuf); } delete [] sZ; delete [] szwEuf; } II My Function: XML Parser II XML file was saved to szWEBPage MyXMLParser(szWEBPage); delete [] szWEBPage; pFile->Close () ; pServer->Close() ; } CATCH (CInternetException, { pBx) -76- II catch things wrong with parameters, etc if (pEx->m dwError < kErrorMin) { - TCHAR szError[MAX_PATH]=TEXT("\O"); , pEx->GetErrorMessage (szError, MAX_PATH, NULL) ; SetDlgItemText(IDC_EDIT_PAGE, 82E1'ro1'); } bSuccess =FALSE; } AND CATCH (CMemoryException, { - pMemory) II catch things wrong with memory SetDlgltemText(IDC_EDIT_PAGE,CString((LPCTSTR)IDS_MEMORYEXCEPTION)) pMemory->Delete() ; bSuccess = FALSE; } END CATCH ALL if (pFile != NULL) delete pFile; if (pServer != NULL) delete pServer; session.Close() ; if (bSuccess) SetDlgItemText(IDC_MESSAGE, CString((LPCTSTR)IDS_DOWNLOADED)); return nR.etCode; } Ta xfty dllng hamMyXMLParser(CString m_strlnput) tin t11file media.xml void CVideoDemandView: :MyXMLParser(CString m_strInput) del~yracaethong CString m_strVideo, m_strAudio , m_strTemp=""; int i,length; int head=O, cail=O; BOOL stop=FALSE; 1.=0; length=m_8t:clnput.GetLength() ; while (! stop) { head= m_strInput.Find(TEXT("") ,i); tail= m_strInpuLFind (TEXT ("") ,i); ",_strVideo=m_strInput .Mid (head+7, tail-head-7) ; .:=ta.i1-1; head= m_strlnput.Find(TEXT("") ,i); tail= m_strlnput.Find(TEXT("") ,i); ",_strAudio=m_strInput .Mid (head+7, tail-head-7) ; i=tail-l; if ((head>O)&& (taibO)) { m_strTemp=m_8trTemp+"\r\n\r"+m_strVideo; "'_ctrLi8tr'1edi.a.AddString (m_strVideo) ; I I Add video URL to ListBox ",_strTernp=m_scrTemp+"\r\n\r"+m_strAudio; ",_ctrListMedia.AddString(m_strAudio) ;11 Add audio URL to ListBox }else { stop=TRUE; -77- Ilexit the while loop } } Ilwhile } Cai d~tmoitruemglamvi~c: D~biendichlingd\lngnaythanhcongtaphaichliyca.cb{)thuvi~nh6trql~ptrinh trenPocketPC: commctrl.libcoredll.libaygshell.libatlce300.lib ProjectSettings',~;,:.; ~ettingsFor:IWin32['WCEARM) Debug ,:;",1':",' ';; :1;1~ >.It' '~()~ff~1f~I ::,';:t:::::"'::"""~='-,j,"~,-".-::.., ~",,;;r, !B"iF=~~'~T.fp-,.l:f.I.' figse!')- ~,.~.",," .,0utpl.lffile.oame:. d~RM~bg/StreamMedia.elle , >0.,,' ,0 {'bbi~c;t)j;Dr?r~mO9ules:: I commctrUibcoredll.lib a~gshell.libatlce300.lib P' generatedebuginfo r Generatemapfile r~:lgnorealldefaultli12raries ProjectQ.ptions: commctrUibcoredll.liba.vgshell.libatlce300.libInologo.... Ibase:"0>:0001DODO"Istack:01l10000,0111000 := ~:I/entr.v:"WinMainCRTStartup"lincremental:.ves ..::.J I Cancel)OK mob 37.Citid~tmoitru-irngbiendjch Thu vi~nquailtrQngthli hai chovi~cchaicacfile videotrenPocketPC la PlayerOCx.Thuvi~nnaycotrongb{)SDKcuaMicrosft. Hai3bi~ntoanC\lCquailtrQngnhfttcuachuangtrinhnayla CAxWindow m_wndView; II Windows dung hi en thi Windows Media Player control CComPtr rn_sp~1f4PPlayer ; II Con tro tro den giao dien Windows Media Player control CComPtr m_spConneetionPoint; II Diem ket noi khi eae su kien duDe xu ly -78- . CachamquailtrQng . m_spWMPPlayer->get_BaseURLO:Liy diachin€n cilanai chuat~ptin videodangiruy€n.Khongkerntheetenfile. . m_sp\VMPPlayer->get_BandwidthO:Liy giatri bangthongcilam~ng.hi~n t~i.N~unh6ban1giatri quydinhnaodothitasexuit ra 1thongbaola duangtruy€nkhongdilnhanhdedaplIngchovi~ctruy€nmedia.Chucnang naygi6ngnhu1GongCl}BandwithProbing. . m_sp\VMPPlayer->get_AudioStrearn(""):Dungdeliy lu6ngfuTIthanh . In-sp\VMPPlayer->get-ChanneIURL("II):Dungdeliy kenhURL . m_sp\VMPPlayer->put_BaseURLO:Thi~tl~pdiachin€n cilanaichuat~p tinvideochuAnbi truy€n.Khongkerntheetenfile. . ll1_sp\VMPPlayer->get_Fi1eNameO:liy tent~ptinvideosetruy€n Vi dl}:Ta cotheliy filevideodexemt~imayCl}Cbe>haya xa. In sp\VMPPlayer->get-FileName("") m- sp\VMPPlayer->get_FileName("") 111-sp\VMPPlayer->get-FileName("\\linux.wmv") . In_sp\VMPPlayer->PlayO:Saukhidathi~tl~pxongcacthams6tagQiham naydexemvideo. -79- Hinh 38.Giaodi~nchu'o'ngtrinh Thi€t l~pmGhinhthunghi~m: May chuWeb StreamingServer (RedHatLinux9- ApacheServer) l~t. D " ... -.;-, '..'--'_. CiscoAironet AccessPoint PDA c6 ke'tn6i khong day Hinh 39.Mo hinhthu'nghi~m -80- Tranglingd\lngthunghi~mtruy~nb~ngm~ngkhongday,chungtoidathutruy~n filevideocodungluQ'ng112MB. K~tquachoth~ylachuangtrinhch~ykhi '6ndinhtrongdi~uki~nlamvi~cbinh thuemg.6daytacothephaisud\lngngu6ndi~n goaideclingdp nangluQ'ngcho PocketPC.Baivi cothePocketPC h~tnangluQ'ngn~uxem1dQanvideokhi dai. (rngd\lngdatrienkhaitrangmoitruo-ngm~ngkhongdaydu6'icaeduemgtruy~n 6ndinhvakhich~tluQ'ngduQ'ngtruy~nkern Chuangtrinhclingdathunghi~mkhich~tluQ'ngdUO-figtruy~ngiamd~ntu 100% xu6ngd~n13%, N~uth~pbannuathingaycaph~nk~tn6ilienthongv6'im~ngclingkhongthedip lingduQ'c State: l~ssociated".00:16;.96,!§§:§6:5Z6}'I CurrentChannel:~ CurrentTxRate:[J tvlb/sec [Th,ooghput(byt"i"')..JTx: 10' I Rx: lio22." LinkQuality: Excellent(100%) IIIIIIDJD SignalStrength:Excellent(100%) IIIIIIDJD Hinh 40.Tinhtqmgk~t06iWireless -81- Du6i daylatinhtr<;1ngk~tn6igil1aPocketPC vaom<;1ng ~~ State: 'ASSOciated-'00:40:96:58:86:57 CurrentChannel:I§] Q~i~ppJ~:!ra9.iq CurrentTxRate:@:J Mb/see ~PU' (by"'!'"')~Tx. 236 "",j Rx. ~ LinkQuality: Good(60%) liliiii ,,',;oiL '1 SignalStrength:fair(46%) IDIDI I """"""~""""""""":""""..,..+, , ;."".), ~WLANSettings';~',;f>;};i+".-4El:25j{.'0.."",.,."""""..'"""",..""""",.."",;"",.,.",""""""",:" , ~~~ci~~!~i~'~~:.~'~~~iJit~~J,~s;,! ~l;~r~ J 6 State: IAssoCiat-gd;-00:40:96:58:86:57 CurrentChannel:m CurrentTxRate:~Mb/see Throughput(bytes/see) Tx: LinkQuality: SignalStrength: Hinh 41.Caetr~ngthaiehfttlu'o'ngou'o'ngtruy~nkhaenhau. Va hinhimhthuduQ'c . .FileToolHeip Hinh 42.K~tquathuomrc Khi truy~nbing modemt11serverxu6ngclientthit6cdQcoh<;1nch~nhungthai giandaplingclingch~pnh~nduQ'c.D111i~usech~mbandovi~ctruy~nquamodem thit6cdQt6idad<;1tduQ'clingkhoimg33.6Kbps -82- May cM Web StreamingServer (RedHatLinux9- ApacheServer) RAS Server . ." . D '.. "" ... (11,;"",~,::,;,;%;~ ModemBank Hinh 43.Thlrnghi~mdungModem 4.4 tfngdlJng CC/PP irony ApacheWebServer 4.4.1 Moi tnJ'<yngphattri~n H~th6ngadaptivewebduQ'cd\IatrenApachewebserver,vah~di€u hanhLinux. Frameworkbaog6mmQtadaptivewebserver,khoCC/PP,vacacclient.Chiti~t g6mcaethanhph~nsau: 1. H~di€uhanh:RedHatLinux9.0vaApacheWebServer 2. C6ngC\,l:Tomcat4.,Java2PlatformStandardEditionv 1.4 3. Ph~ncling: a. Servers:Desktopcomputers,IntelPentiumIII 450MHz b. Clients:NotebookPC,PDA(iPaq3600,AcernIO) c. CiscoWirelessAccessPoint d. SENNAOCompactFlashWirelessCardforPDA e. NetworkHUB -83- 4. Chuangtrinhphcitri~n:modunapache- content-adapt.cg~nthemvao Apached~caibi€n n(>idung Vaitracuacacthi€tbi duQ'chotronghinh14.Maytinh,PDA dongvaitraclients, vacacmaycanl:;tidongvaitrawebservervakhoCCIPP. Mo telphinm~mduQ'cdungtrongcacclients Bang 1:Mo taphanmemtrencacclient Tni (oi kha nang cua !hiet bi ~~0_= !1~£~;:',.!~'4~~;. , '~~:,",, ' , ;:,ii.it" DIT li~u thich h<;ipcho clients 0 0 .. 0 0.. = Xu 1yCCIPP ==== == =.. ="" ==- Hoi cackhanangcuathietbi == =='==' == == == =- ,- -- -= ===== Khochii'a CCIPP WebServer (Apache) Cocoon Server Adaptation Server IS! g ;9 (bJ CeUphone pc pc Cacclients khacnhau mnb 44.Vai frociiacacthi~tbi Network type kieu trinh duyt ,'- Thiet bi clientype Notebook Ethernet * trinhduyt CC/PP PC * CC/PP trinhduyt khongco (MSIE) PDA 802.lIB11Mbps * withoutCCIPP trinhduyt (MS IE) * trinhduyt coCCIPPSmil -84- Cacprofilecuaclient Bang 2Caeprofileeuaclient 4.4.2 C~uhinhApache DedapungduQ'cactruyvftncoCCPPtathi€tl~pcftuhlnhcO'bfmchoApache Ngonngii'm~cdjnh: LoadModule negotiation_module modules/mod_negotiation. so Directorylndex index.html index.html.var DefaultLanguage vn Languagepriority en vn da nl et fr de el it ja kr ChucDangtype-map: B~tchucnangnaychophepApachehienthicacthongtincuacactrangWebv6i cacngonngii'khacnhaukhi cacclientcoPreferedLanguagekhacnhautruyvftn vao.Vi d\ltrongm9tbrowsercuanguaidungthi€t l~plahQdang6 Vi~tNamva ngonngii'uathichlaTi€ng Vi~tthiusertroyvftnvaosenh~nduQ'ctrangWebb~ng Ti€ng Vi~t AddHandler type-map var cfiutruccuat~ptintype-mapvarlam9tt~ptinvanbfm,m6ingonngii'duQ'cghi trongph~nkhaibaanhusail: Content-language: vn vn- Cact~ptinseduQ'clull du6idl;mg*.html.var Vi d\l:index.html.var PC Kich Am Video Anh Mimsac Thai thuac thanh giandQ'i mimhinh PC 1O24x768Co Co Co Co 1Os Laptop 1O24x768Co Co Co Co 10s PDA 240*320 Co Co Co Co 1Os -85- Khi nguaidungtroyv§.nvaothichivi~cgQitent~ptin*.htmlmakh6ngdn thay d6igica.Serversedamnh~nhi~mVl,lh;rachQn Qidungchothichhgp Vi d\l: Content-language: vn Content-type: textjhtml Body: vn-- Phan nQi dung ti~ng Vi~t duQc chen vae day . . . . . '" vn- Content-language: de Content-type: textjhtml Body: de-- Phan nQi dung Ti~ng Duc duQc chen vae day de-- Content-language: en Content-type: textjhtml Body: en-- Phan nQi dung ti~ng Anh duQc chen vae day en-- Content-language: fr Content-type: textjhtml Body: fr-- Phan nQi dung ti~ng Phap duQc chen vae day fr- -86- f)~thilnghi.~m,chungtakhaibaacaengonnguuathichtrongtrinhduy~t. .'I"IIPoll'~""'-"""ro .., '" >"... - .' SomeWeb,sitesoffer contentinrriultipfelangL~g~siVou'can"", choo.>",s~~erallanguagesbelowj'theY;Wilfb{Ereat~d)no~der9f priority. u '~1.'".,~~, ;~'il-: ;~I~; ,~ '~~~1{~ !Ii) English(UnitedStates)[en-us] "MoveDown IFrenc (France)[fr] ",.""--~" . . , ::, .Rembv~~J add... J Menusanddialogboxesarecurrentlydisplayed inEnglish(UnitedStates). OK Cancel Hinh 45.Cach thi~tI~pngonngu"u"athich trong Browser Thi~tl~pb('>kYt\1'm~cdinhh6trqchoclient AddDefaultCharset ISO-8859-l Ngoairataconcoth~thi~tl~ph~th6ngd~choserverbi~tcaed~ngclientk~tn6i VaG BrowserMatch IMozilla/2" nokeepalive BrowserMatch "MSIE 4\.Ob2;" nokeepalive downgrade-l.O force-response-l.O BrowserMatch "RealPlayer 4\.0" force-response-l.O BrowserMatch IJava/l\.O" force-response-l.O BrowserMatch IJDK/l\.O" force-response-l.O "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SALT 1.0.4613.0 0111 Developer; .NET CL R 1.1.4322) II "Mozilla/4.0 (compatible; MSIE 4.01; Windows CE; SmartPhone; l76x220)" "Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; PPC; 240x320)" "Mozilla/2.0 (compatible; MSIE 3.02; Windows CE)" -87- 4.4.3cciuhinh Apache Reverse Proxy ApacheReverseProxydamnh~ nhi~mV\)lak~tn6itfmghgpcaeserverkhacnhau bell trongva chuy€ncaeyell ciu tu clientm('>tcachtrongsu6td~nadaptation server. V6'icachnay,tacoth€ xaydlJngnhi~userveradaptationsird\)ngnhi~ucongngh~ khacnhaumakhongph\)thu('>cvaoh~di~uhanh. ServerNamecocoon.vnuitedu.vn ServerAdminwebmaster@vnuitedu.vn ProxyPassI ProxyPassReverseI ErrorLoglogs/cocoon.vnuit-error_log CustomLoglogs/cocoon.vnuit-access_logc mmon 4.4.4 cciu hinh Cocoon CacphienbancuaCocoond~uphaidugcbiendichtru6'ckhi coth€ ch~ytrenh~ th6ng D€ biendichdugctaphaicaid~tb('>JDK choh~th6ng.D6i v6'iCocoon2.1.4thi cin phaidungb('>JDK 1.3tralen.Trongh~th6ngnaychungtasird\mgJDK-1.4 Thi~tl~pbi~nmoitruangJAVA_HOME [root@fedora cocoon-2.1.4]# export JAVA_HOME=/usr/java/j2sdkl.4.2_01 [root@fedora cocoon-2.1.4]# echo $JAVA_HOME /usr/java/j2sdkl.4.2_01 [root@fedora cocoon-2.1.4]# Saildobiendichcocoonb&ngscriptsbuild.sh -88- Tuy theoc~uhinhph~nclIngh~th6ngmatasecok€t qua.TrangthlJcnghi~m chungWidabiendichh~th6ngtren2h~serverkhacnhauvachok€t qua Bang 5.Sosanhthirigianbiendjchtren2h~tMng SaukhibiendichxongtagQicocoonlend~ch~y./cocoon.shservlet" All 12 .° ~ pocgpc ~D o. .0 Thlfc hien hanhvi Contcnt Adaptalion XU' ly conlent Adaptation XU'Iy lh6ng tin lit khach hangaliauen Hinh 46.Mo hinhtri~nkhai D6i v6'icocoon-2.0.1thic~nphaid~trongTomcatServerd~ch~y. Nhu trangmohinhhinh24tren. Khi ch~ycocoonl~nd~utientaseth~ycocacthongbaosauhi~nraphfaserver [root@fedora cocoon-2.1.4]# ./cocoon.sh servlet ./cocoon.sh: using ./build/webapp as the webapp directory Loading -------------------- Processing repository: ./tools/jetty/lib Adding jar: ./tools/jetty/lib/jetty-4.2.14.jar Adding jar: ./tools/jetty/lib/servlet-2.3.jar Processing repository: ./lib/endorsed Adding jar: ./lib/endorsed/xalan-2.5.2.jar Adding jar: ./lib/endorsed/xercesImpl-2.6.1.jar Adding jar: ./lib/endorsed/xml-apis.jar Executing ----------------- Main Class: org.mortbay.jetty.Server 23:44:52.483 EVENT Checking Resource aliases 23:44:54.391 EVENT Starting JettY/4.2.14 IBM e240Server PC BaseServer 2CPUXeon1GHz 1CPUPIlI 450MHz 1GBRAM 256MBRAM Thaigianbiendich4phut Thaigianbiendich28phut CocoonAdaptation FrameWork Yeudu ail xU'Iy Yeudu J-.. Yeudu ' v ApachehttpdServer Adapted JakartaTomcat Adapled (ReverseProxy) "Conlcnt Server < Conlent " -89- 23:44:56.574 EVENT Started WebApplicationContext[/, ./build/webapp] Opening database: /usr/local/cocoon-2.1.4/build/webapp/WEB- INF/db/cocoondb HSQLDB ~erver 1.7.1 is,running Use SHUTDOWNto close normally. Use [Ctrl]+[C] to abort abruptly Tue Apr 19 23:45:21 ICT 2011 Listening for connections... context: /usr/local/cocoon-2.1.4/build/webapp INFO [main] (DirectSchedulerFactory.java:295) - Quartz scheduler 'Cocoon INFO [main] (DirectSchedulerFactory.java:298) - Quartz scheduler version: 1,2,3 INFO [main] (QuartzScheduler. j ava: 327) - Scheduler Cocoon_$_Tue_Apr_19_23:45:37_ICT_2011 started. 23:45:39.684 EVENT Started SocketListener on 0.0.0.0:8888 23:45:39.686 EVENT Started org.mortbay.jetty.Server@291aff DungmQttrinhduy~tWebd€ ki€m traxemh~th6ngdilhQatdQngchua -.Ifj () Back.~ y 0 ~..f.llPSearch'~?FaVorites*~'M~d~~~~~t,~,;:;~';':;.D;j~fElj~.~.Illl .AgdressI~ ...:.If] Go.I Links» I Coogle.I -. .:::.II~J SearchWeb.1~ I ~'~97j~()cked~AutoFiIIf).ol~ Optior» ... Welcome to Apache Cocoon! Congratulations!If youarereadingthispage,it meansthatyourApacheCocooninstallation wassuccessful. To knowmoreaboutCocooncapabilities,lookat thesamples, Here you find the Cocoon DOCL!rCB~ntation. HereyoufindtheJava APIdocumentationof theCocooninternals, Copyright@ 1999-2004The p,pacheSoft'0!ar'eFoundation. All rights reserved, i) .:J r-r-r-Itt Internet .d Hinb 47.Giaodi~ncuaApacheCocoon Ki€m tratinhnangcuah~th6ngxemcodaplIngcacyeuc~ud€ xayd1lngcaclIng d\mgWebc<,tibi~n Qidung: Ta seduqccacthams6cuarequestnhusau: [Ljava.lang.5tring;@f086d7IgetparameterNameS image/gift image/X-Xbitmapr~image/jpegr image/pjpegrapplication/vnd.ms-excelrlapplication/vnd.ms- powerpointr application/mswordr application/x:"shockwave- i flashr*/* f - - Mozilla/4.0 (compatible; I f get-header user-agent MSIE 6.0; Windows . NT 5.2; getHeader .NETCLR1.1.4322L - get-headers accept- [Ljava.lang.5tring;@6f10ef getHeaders language(as array) iget-header-names (asI I I [Ljava.lang.String;@228521getHeaderNames ,array) I I Iget-attributeattr 'TestAttributeValue!!! IgetAttribute Iget-attribute-names(as I . . I. ) [Ljava.lang.Stnng;@490a12getAttnbuteNames,array I i I t t d I I -ur . . i Imples/xsp/java/request Iget-remote-address 1192.168.1.111 IgetRemoteAddr Iget-remote-user I _1~LetRemoteUser Iget-context-path I !getContextPath Iget-path-info I !getPathInfo -90- xsp-requestlogicsheetoutput !Logicsheetag loutput !get-uri l/sam~les/xsp/java/request Iget-sitemap-uri Uava/request !get-scheme Ihttp I r--- jget-character-encoding IISO-8859-1 jget-content-Iength Fi Iget-content-type[ 'get-locale [fr . . !get-Iocales ![Ljava.utiI.Locale;@9b429 !get-parameter r get-parameter with .[d f Itdefault e au get-parameter-values Inull(as array) r get-parameter-names (as array) I i i get-headeraccept getHeader !Java method IgetRequestURI IgetScheme IgetCharacterEncoding !<;tetContentLength letContl!tType IgetLocale IgetLocales IgetParameter Igetparametervalues -91- [get-server-name Iget-server-port Iget-method Iget-query-string- Iget-protocol Iget-remote-host lis-secure Iget-servlet-path Iget-user-principal Iget-auth-type lis-user-in-role get-requested--session- id Iget-session-id fgetServerName IgetServerPort IgetMethod IgetQueryString IgetProtocol IgetRemoteHost lisSecure -- IgetServletP~th - l~t~tUserPrincipal IgetAuthType lisUserInRole getRequestedSessionId !getSession.getId [192.168.1.13 18888 IGET [ [HTTP/1.1- 1192.168.1.111 Ifalse 1/sampiesLxsp/java!r~quest [ [ [false ~uPifen3u4 Imcaupifen3u4 htt ISO-8859-1 -1 fr .ava.util.Collections$6@130gec get-headeraccept (as I java.utiI.Collections$6@24c6ab image/gift image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,application/x-shockwave- flash,*/* Mozilla/4.0 (compatible;MSIE 6.0; Windows NT 5.2: .NETCLR1.1.4322get-headeruser-agent accept-language 192.168.1.111 -92- 192.168.1.13 8888 GET false mcaupifen3u4 mcaupifem3u4 xsp-requestlogicsheetoutput(xml) get-uri <xsp- request:uri>/samples/xsp/java/request get-sitemap-uri java/request</xsp- request:sitemap-uri> . get-scheme http get-character-encoding ISO-8859- l get-content-length -l</xsp- request:content-length> get-content-type get-locale fr get-locales fr vi de de CH -93- en US el es -I ko ru nb NO nn NO . pt ro sv FI sv get-parameter <xsp-request:parameter name="param">null -94- get-parameter with default <xsp-request:parameter name="param">default get-parameter-values get-parameter-names _ get-header accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x- shockwave-flash, */* get-header user-agent <xsp-request:header name="user- agent">Mozilla/4.0 (compatible; MSIE 6.0; Windows NT,S.2; .NET CLR 1.1.4322) get-header-names Accept Referer Accept-Language Accept-Encoding User-Agent Host Connection Cookie get-lilt-header - no sample get-date-header - no sample get-headers fr viiq=0.93 de;q=0.87 de-ch;q=O.80 en-usiq=O.73 el;q=O.67 es;q=O.60 ko;q=0.S3 ruiq=O.47 nb-no;q=O.40 nn-noiq=O.33 pt;q=O.27 roiq=O.20 sv-fiiq=O.13 sv;q=O.O7 get-attribute attr Test Attribute Value!! ! get-attribute-names attr get-requested-url <xsp-request:requested- url></xsp- request:requested-url> get-remote-address <xsp-request:remote- address>192.168.1.111 get-remote-user get-context-path </xsp- request:context-path> get-path-info get-server-name request: server-name> 192.168.1.13</xsp- -95- get-server-port request: server-port> get-method get-query-string get-protocol request:protocol> get-remote-host request:remote-host> is-secure request:secure> get-path-translated get-servlet-path <xsp-request:servlet- path>/samples/xsp/java/request get-tiger-principal get-auth-type is-user-in-role <xsp-request:user-in-role role="admin">false get-requested-session-id <xsp-request:requested-session- id>mcaupifen3u4 get-session-id mcaupifen3u4</xsp- request:session-id> 8888</xsp- GET HTTP/l.l</xsp- 192.168.1.111</xsp- false</xsp- K€t quathuduqckhi thunh6caeanh :;..- ,i"""'Y'~~i ~ ':':':1:/1.",-'.,,- Hinh 48.Anh <Hithu nM 1/4 -96- ,.4' I .",q::;::l:t:<I::lC1.o\'Xk. ,"<:~f;~~~~ ~."' :,' , ' ~ "' ~'~~i;;"~::'- " ' ,,, ' , '- , " , ,~,; , ,' ""'~~..r-~:, , Hinh 49.AnhthunM 1/2 . ~~,'- ,:;' ,~(";.":.;;:,, Hinh 50.Anh CIathu nM 3/4 -97- Hinh 51.Anhg6c GocImagejpg I 37508 Thu nh6 4894 13.05% Thu nh6 1/2 13569 36.18% Thunh6% 24996 66.64% -98- :¥In,,-. ..., r~~ Die !;.dit \!iew !:~... @ ...~ .,,;tJ 1<:3 I "~'~ " I U FirefoxHelp LJ Fire/oxSupport LJPlug-inFAQ D<:3Apache(ocoon2.1.4 L- (XI This site was powered by Apache Software Foundation This source was modified by to support the research at VNU-HCMC. .. ~ Version: 2.1.4 Orthogonal views: Content Prett" content links IMain examples page. Back - to Cocoonexamplesmainpage I ImageScaling Imaqe- Image of original size of chapter 1 Imaqe 176x220 - Images of chapter 1 size 176 x 220 Imaqe 240:,180 - Images of chapter 1 size 240 x 180 Irnaqe 320x240 - Images of chapter 1 size 320 x 240 Irnaqe 1024x768 - Images of chapter 1 size size 1024 x 768 Irnaqe- Imageof originalsize of chapter 1 Imaqe 176x220- Imaqesof chapter 1 size 176x 220 .:.J iDone Ai Hinh 52.Trang imagescaling .! Ici'e ~dit ~iew§o !lookmarksIoois t[elp I~~ .~ ~ I DFirefoxHelpDFirefoxSupportDPIU!;jCin~AE{ ',. .. ,.,", 00 j 0000 0000 00 '0 . ','4."', ", ..' D}~~~..;171)"!.l~.~.\P.;.1 '3 ..::lQI~ \l "-<,I j I J [Xl ~ A o~'-'\6U. GIOIUufL UNllX "'n.m"""'h1i..n..",,.~IM'~"", >-". ,."... A,:."' ~~' [Done AI, Hinh 53.Anh g6cdii du'Q'ctho nhi)thanh176x132pixel ( phil hQ'pchosmartphone) -99- -I ol~J ImageProperties Location:' Width:, Hcii8Bt:~y~~ Sizeof File:' Alternatetext: Hinh 54. ThuQctinh iinh dii du'Q"cthu nhO176x132pixel 1.i'!i;11rr;r!n~jnl~~"""'-'I'!.:II:.I.;l! I ". "¥%' ",' >';'0"""'0""'."';'", ,<. ', ~ , ¥ ,,:'~~~.~~' , "'"-: ,":':d.~:""'~'""':"7'h"W' ; "';"". ,DF~efoxHelpDF~efoxSupportUPlug in FAQ . ;"",'.,,'," ':,i' " 'Llhttp:llwww.vnuit,ed;;isampleslxspituananh'C':Jslido;lh-O(JPEGImage.9GOx7Z0pix... I ' " 'fX) J ~ fDone ~ A Hinh 55.Anh g6c - Jol2£J ImageProperties Location: Width: 960px Height:'. -J20PX " SizeofFile: ,; :'69.4KB(71070bytesr , ,'" ' ". Alternatetext: Theimage'11ttp:ll~ww.vn Hinh 56.ThuQctinh iinh g6c.Anh naydU'(;>,cIu'ut!,liserver Ki~mtrat~iserver [root@Fedora images] # pwd /export/cocoon-2.1.4/build/webapp/samples/imagescaling/chapterl/images -100- 4.4.4.1 Xii'If requestcuaclienttheouser-agent Tliytheoclient18.lo~iuser-agentilOthitasechorak~tquahi€nthikhacnhau. Tronglingd\lnghi€n thicacslidetrenweb.V6i clingmQtrequestvaomaychu, nhungcacclientkhacnhausenh~nduQ'cacmanhinhhi€n thikhacnhauchophil hqpv6ikhananghi€nthi. i'!1;LinUHT eHt Editor . ' .:; MicrosoftInternef EM'plor-e{i~l'tJ;'i~~,;(Wi~'0p.;}.~~:~~~'i~E{~~;.;,,~4;;3 . . . i... '. . ..' .;r.:'w\","~- ';'~~',.::J.gJ 29 ~~l~~;X~di.t'..~e~', ~k~~flt~2r"ii6~~f~i(@pl~in Ill' ,0 Back'..0 ~. 0 @ ~ItP,~~.artJL;'tlF.~vgrit~s~@"M di(j.'eJ\~~".~ "@!.".0 IE) » AQdressl~ "'natuan/teaching/slides/html/chapter3J'iles/fraIDe,htID .:J Links» Google..I .:.II ~.~ear~h~eb.."l'~ 1..~..{?:J58bloc\(.ed.~AutoF » .Yl ~..I [search[!w.~b:d~lp7j;tBJM~iCE .My.vahod',.~ . r. ~SlideShow rrrie Internet #. moh 57.Biii giaogau'Q'chi~othiaAyautrenIE 6.0 [root@Fedora images]# 11 slide1* -rw-r--r-- 1 natuan natuan 75609 May 30 16:46 slide10h.jpg -rw-r--r-- 1 natuan natuan 71070 May 30 16:46 slide1h.jpg [root@Fedora images]# -101. Hinh 58.TrangWebdu'Q'cadaptedhi~nthj theochi~ungang Hinh 59.TrangWebdU'l}'cadaptedhi~nthj theochi~udQc

Các file đính kèm theo tài liệu này:

  • pdf5.pdf
  • pdf0.pdf
  • pdf1.pdf
  • pdf2.pdf
  • pdf3.pdf
  • pdf4.pdf
  • pdf6.pdf
  • pdf7.pdf
Tài liệu liên quan