THE PORTABLE WEBSITE.docx
- 文档编号:3511620
- 上传时间:2023-05-06
- 格式:DOCX
- 页数:14
- 大小:24.69KB
THE PORTABLE WEBSITE.docx
《THE PORTABLE WEBSITE.docx》由会员分享,可在线阅读,更多相关《THE PORTABLE WEBSITE.docx(14页珍藏版)》请在冰点文库上搜索。
THEPORTABLEWEBSITE
THEPORTABLEWEBSITE
ByDanaiKuangparichat
ABSTRACT
Thispaperdescribesanimplementationofaportablewebsite:
asite=carriedaroundonandupdatedthroughalaptopcomputer.Thesiteissupposedto=mirrorasiteontheWorldWideWeb;whenthelaptopisconnectedtotheInternet,the=publicsiteistobeupdatedtomatchthesitecurrentlyonthelaptop.Mirrorsiteson=othercomputersneedtobeallowedtobecreated,too.Beforeembarkingonatrip,the=updaterofthesitetakesasnapshotofthesiteontoaCD-ROM.Theapproachtakeninthis=paperistosetupadirectoryofsymboliclinksonthelaptop=92sharddrive,andto=copyoverthoselinkswhentheuserwishestomodifyafileontheCD.Thisapproachkeeps=trackofchangestothesiteviaupdatefiles,whicharekeptbothonthelaptopand=atthepublicsite.
INTRODUCTION
Withtoday=92sexplosivegrowthoftheInternet,webserversarepoppingup=everywhere.Likewise,moreandmorepeoplearelearninghowtogetaroundtheNetevery=day.AlthoughtheInternethasspreadthroughoutallofAmerica,aswellasmanyother=countries,therestillexistmanyplacesintheworldthathaveverylimitedaccesstothe=Internet,andsomethathavenoaccessatall.Whenonetravelstoanareawithlimited=Internetaccess,hemaydesiretoupdatearemotewebsitefrequently;however,due=totheunavailabilityoftheInternet,thisupdatingisnotalwayspossible.
Thesolutionistodesignaportablewebsite,asystemtohandlethe=organizationofthewebsitechangesbetweenInternetsessionssothatduringthesesessions,=theremotewebsitecanbeupdatedquicklyandeasily.Thissystemcanbestoredona=laptopwhichiscarriedaroundbythewebsite=92sowner.Whenevertheownerdesiresto=makeachangetothesite,hechangesitlocally;thenthenexttimeheconnectstothe=Internet,heuploadsallofthechangeshehasmadetotheremotewebsite.
Ofcourse,theownerisnottheonlypersonwhowillwanttoaccesshisweb=site.Althoughtheremotewebsitecanbemadepubliclyaccessible,theremaybe=interesteduserswhoonlyhavelimitedaccesstotheInternet;thus,theymayalsowant=tokeeplocalcopiesofthewebsite.Therefore,thesystemalsoneedstoallow=easycopyingofthesitefromthelaptopandeasydownloadingofupdatesonthewebsite.
Severalassumptionsaretobemadewhendesigningthissystem.Thewebsite=ontheInternetisstoredonaUNIXfilesystem.Thelaptopontowhichthesiteis=copiedalsousesaUNIXfilesystemandincludesaCD-ROMdrive,afloppydiskdrive,=andaharddrive.BeforeeachtriptoanInternet-deprivedarea,theowneroftheweb=sitecancopyitscurrentcontent(andmaybeotherfiles)ontoanynumberofCD-ROMs;=however,theCD-ROMcannotberewrittenduringthetrip.Therefore,localupdatescan=onlybemadetothelaptop=92sharddrive(andanyfloppydiskstheownermaywantto=carry).Theothercomputersontowhichthewebsiteiscopiedanddownloaded,however,mayuse=anymodernfilesystem,andmightnotevenincludeaCD-ROMdrive.Thepagesofthe=sitemaycontainlinktootherpagesinthesamesite,butnonetoothersites.Itisalso=assumedthatthepersonwhokeepsthelocalwebsiteonthelaptopistheonlypersonwho=haswriteaccesstotheremotewebsite.
Topreventconfusion,Iwilldefineherethelocalwebsiteasthe=sitestoredontheowner=92slaptop;theclonesitesasthecopiesofthesiteon=otheruser=92scomputers;andthehomesiteasthesiteontheWorldWideWeb.=Ownerreferstothepersonwhomanagesthehomesiteandcarriesthelocal=site.
Inthesystempresentedhere,theorganizationoffilesonthelocalsite=andclonesitesusessymboliclinkstotheCD-ROMextensivelyinordertosaveharddrive=space.However,thehomesite(andanyclonesiteonasystemthatdoesnotallowlinksor=doesnothaveaCD-ROMdrive)doesnotuselinksatallbecauseallofthepagesarestored=onthesamedevice;sosavingspaceisnotanissue.Thissystemalsousesseveral=filestokeeptrackofwhichpageshavebeenmodified,andwhentheyweremodified.These=filesareusedtofacilitateuploading,downloading,andcopyingofthesitesothat=copyingeveryfileisnotalwaysnecessary.
DESIGNCRITERIA
Theportablewebsitemustsupportthefollowingfeatures:
Localsiteupdating.Anytimetheownerdesirestomodifythesitein=anyway,hecandosoimmediatelyonhislaptop.Thelocalsiteshouldcontainthemost=up-to-dateversionatalltimeswhentheowneristravelling.
Homesiteupdating.WhentheownerconnectstotheInternet,hecan=updatethehomesitetomatchthecurrentlocalsite.
Clonesitecreationfromlocalsite.Theownercancreateanewclone=siteonanothercomputerfromhislaptop.Thisnewsitewouldmatchthecurrentlocalsite.=TheothercomputermightormightnotuseaCD-ROM,anditmaybeusinganymodern=filesystem.
Otherfeaturesthatshouldbeaddedifpossibleincludethefollowing:
Clonesitecreationfromhomesiteoranotherclonesite.Anyuser=shouldbeabletocreateanewclonesitethatmatchesthesitefromwhichitwascreated.
Clonesiteupdating.Naturally,onewaytoupdateaclonesitewouldbe=toeraseit,andthencopyordownloadthenewestversiontorecreatetheclone.But=havingasystemthatcanupdateclonesitesquickly,eitherfromthehomesiteorthelocal=site,ismuchmoredesirable.
Thereareanumberofwaystoimplementthesefeatures.However,someways=aremoredesirablethanothers.Herearethecriteriatobeusedtodeterminethe=usefulnessofthesystem:
Easeofuse.Alltheoperations--downloading,uploading,copying--=shouldnotonlybeeasytoperform,butalsoeasytoexplain.Thefewerstepsanoperation=requires,thelessroomthereisforusererror.Additionally,theownerwillneedto=explaintousersofclonesiteshowtoupdatetheirclones;iftheprocessistoo=complicated,theymaymisunderstandorforgettheowner=92sexplanation.
Simplicityindesign--Complexsystemsleavelotsofroomforerror.=Theyarealsodifficulttoimplementanddebug.
Efficientuseofdiskspace--Portablecomputerscanonlycarryso=much..Thus,weneedtomanagethediskspacewellatthelocalsite,butstillinclude=filesnecessarytoalloweasyupdatingandcreationofwebsites.Becausewedonotknowhow=powerfulthecomputersareonwhichclonesiteswillbecreated,weshouldpreparefor=theworstandassumethattheirdiskspaceswillbelimitedalso.Althoughthehomesite=shouldalsoprovideefficientdiskspacemanagement,itisnotasimportantasforthe=othertwotypesofsites.Ifthehomesiterunsoutofdiskspace,theownercansimplybuy=anewharddrive.Newharddrivesmaynotbeaspracticalonlaptopsandthecomputers=carryingtheclonesites,though.
Speed.Mostpeopledesirenottowaitalongtimewhendownloading,=uploading,orcopyingfiles.Naturally,ifthewebsiteislarge,suchwaitingmaybe=unavoidable,butthesystemshouldminimizethetimeittakestoupdateandcreateweb=sites.
Flexibilityfortheowner.Thesystemshouldplaceasfewconstraints=aspossibleontheupdatingofthelocalwebsite.Ideally,theownershouldbeableto=modifythelocalsitetothesameextentthathecanmodifythehomesite.Asimpleexample=wouldbeaddinganewpage:
Naturally,thelocalsiteisvirtuallyrequiredtoallow=suchanoperation.Amorecomplicatedexamplewouldbereorganizingdirectories:
=Movingfilesbetweendirectories,creatingnewdirectories,orremovingdirectoriesmay=notbeeasytoupdateonthehomesiteorclonesites;thus,somedesignsofthesystemmay=restrictsuchactions.
Flexibilityincreatingclones.Thesystemshouldbeabletobecloned=onawidevarietyofcomputers.Themorepeopletherearethatcanclonethesite,=themoreusefulthewebsitewillbe.
Reliability.Thesystemshouldnotleavealotofroomforfailure.=Thechancesoffailurearelesslikelyiftheprocessesaremadesimpler,andiftheuser=isnotgivenalotofrestrictions.Thesystemshouldalsodoredundantcheckstoseeif=everythingisoperatingasexpected.
DESIGNDESCRIPTION
FILEORGANIZATION
Thissystemrequiresthatwebpagesuserelativeurlsforlinkstoother=pages.Becausethepagesaregoingtobecopiedtoothersites,absoluteurlswouldbe=illogical:
Oncethepageiscopiedover,anabsoluteurlwouldbecomeinvalid.Although=thisrequirementdecreasestheflexibilityonwhattheownercando,itismucheasierthan=allowingabsoluteurls,andthenchangingallthoseurlsineachpagecopiedto=anothermachine.
Beforetheownerembarksonatravel,theCD-ROMshouldcontainallofthe=websitefilesastheyareorganizedonthehomesite;inotherwords,allfilesshouldbe=containedinthesamedirectoriesastheonesatthehomesite.Thedirectorystructure=shouldalsobecreatedonthelaptop=92sharddrive.Withinthesedirectories,symbolic=linksshouldbecreatedforeachfileinthewebsite(butnotforthedirectories).These=linksshouldhavethesamenamesasthefileswithwhichtheyarelinkedandshouldbein=thesamedirectories(butontheharddriveinsteadoftheCD-ROM).Whenevera=browserisopenedonthelaptop,itshouldonlyreaddirectlyfromtheharddrive.Although=therecreationofthedirectorystructureontheharddrivetakesextrawork,itmakes=updatingthesitemucheasier.BecausetheCD-ROMisread-only,readingdirectlyfromthe=CD-ROMwouldberatherimpractical;anytimeapageischanged,therewouldbenowaytolet=thebrowserknownottoreadfromtheCD-ROMforthatpage.
Iftheownerdecidestomodifya
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
下载 | 加入VIP,免费下载 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- THE PORTABLE WEBSITE
