2009年4月25日 星期六
Asthma Diary
2009年4月5日 星期日
Journals for Paper Submission
Journal of Computer in Biology and Medicine
Journal of Computer Methods and Programs in Biomedicine
Journal of Medical Internet Research
Journal of American Medical Informatics Association (JAMIA)
International Journal of Health Geographics
2008年3月9日 星期日
Hepatocellular Carcinoma (HCC) Index
中文名稱:阿法胎兒蛋白
臨床用途:
在癌症方面,AFP 可應用於肝硬化、肝癌和男性睪丸癌的追蹤篩檢。在婦產科方面,AFP 應用於評估胎兒神經管缺損及計算唐氏症的發生機率。
Alpha-fetoprotein (AFP) 是一種醣蛋白,在正常生理情況下,由胚胎卵黃囊、胎兒的肝臟及胎兒的消化道合成,是一種懷孕中胎兒合成的正常蛋白質。但胎兒出生後 1 歲以內,血中 AFP 濃度便降到和正常成人相同。正常成人的體內不製造 AFP,因此濃度很低,只在肝細胞病變的患者及男性睪丸癌患者體內發現大量上升的 AFP。
約 70% 的肝癌及肝硬化患者,AFP 會明顯上升,大部份屬於原發性的,而轉移性肝癌大都不引起 AFP 上升。其他肝臟以外造成 AFP 輕度至中度上升的疾病有:酒精性肝病、肝硬化、病毒性及慢性活動性肝炎、內臟器官發炎等,偶爾肝以外的癌症也會造成 AFP 上升。臨床上常用 AFP 配合 β-HCG 來評估男性睪丸癌。
在婦產科方面,測定孕婦的 AFP 被廣泛應用於懷孕第 15 ~ 20 週的婦女,藉由 AFP 濃度評估胎兒神經管缺損及唐氏症機率。若 AFP 明顯過高並伴隨羊水 AFP 濃度也偏高,胎兒罹患神經管缺損 (NTD) 的機率增高。若 AFP 濃度明顯偏低,則提升了胎兒罹患唐氏症的機率。通常這方面的評估會一併測定母血 β-HCG 或 Freeβ-HCG 的濃度,再配合孕婦的懷孕基本資料,做進一步的機率換算。
健保代碼:12007C
正常參考值:<>Albumin (serum)
中文名稱:血清白蛋白
臨床用途:
血清白蛋白常用來評估受檢者的營養狀態、肝臟合成白蛋白的能力、及膠質滲透壓的平衡狀況。
血清中的白蛋白佔總蛋白質的 50%以上,主要由肝臟製造,是體內主要的結合蛋白,具有維持滲透壓及運輸體內藥物、代謝物、毒素及激素等功能。其增減直接左右著總蛋白質的濃度。
因 為白蛋白合成於肝細胞,當嚴重肝病、肝硬化、肝癌發生時,白蛋白的合成會出現障礙,血中濃度明顯下降。腎臟病患者的白蛋白常會通過腎絲球經由尿液流失,因此血清白蛋白濃度也會降低。其他引起「低白蛋白血症」的情況有:水過量、營養不良、吸收不良、急性發炎、嚴重燒傷、Cushing's syndrome、心衰竭等。
白蛋白是維持體內膠質滲透壓的最主要物質,過低時往往導致水腫的發生。白蛋白增加的情況並不多見,大多數以脫水引起居多。
健保代碼:09038C
正常參考值:3.5 ~ 5.0 g/dl檢體處理:血清 0.5 ml,4℃ 可保存 3 天。檢體無溶血及脂血較佳。
------------------------------------------------------
Alkaline Phosphatase; Alk-p; ALP
中文名稱:鹼性磷酸脢
臨床用途:
鹼性磷酸酶大量存在於肝臟、骨骼、小腸及胎盤中,臨床上常使用於肝臟及骨骼方面疾病的評估。
由於 Alk-p 大量存在於骨骼當中,常被視為骨骼生長 (formation) 的指標,因此成長中的兒童、青少年,其血清 Alk-p 濃度經常可達成人正常值的 2 到 3 倍。骨骼疾病如骨癌、多發性骨髓瘤、骨折等,會呈現高度上升的情形,並可能高到正常值的 4 到 5 倍。
肝膽方面的疾病,如肝膿瘍、肝硬化、肝癌、肝外膽管阻塞等,會呈中度上升的情形,大約在正常值的 1.5 到 3 倍之間。其他上升的原因還有惡性腫瘤、敗血症、懷孕等。
健保代碼:09027C
正常參考值:20 ~ 110 IU/L檢體處理:血清 0.5 ml,室溫不安定,4℃ 保存 2 ~ 3 天。EDTA、Oxalate 抗凝劑會抑制其活性,故禁止使用。
-----------------------------------------------------
Alkp Ep ; Alkaline Phosphatase Isoenzyme
中文名稱:鹼性磷酸脢電泳 (同功脢)
臨床用途:
ALK-P 有 9 種同功脢:包括前肝臟型 (pre-liver;fast-liver)、肝臟型 (liver)、骨骼型 (bone)、胎盤型 (placental)、Regan 型、Nagao 型、腎臟型 (renal)、小腸型 (intestinal)、以及 PA 型。一般實驗室最常以加熱法來區分骨骼及肝臟的 ALK-P,骨骼型加熱 56℃,半衰期為 2 分鐘,而肝臟型半衰期約 5 ~ 10分鐘。另外對熱較穩定的有 Regan、Nagao、and renal type。
n Liver Alk-p上升:肝膽阻塞、膽汁鬱積、肝硬化或肝癌。
n Bone Alk-p上升:
1. 正常孩童的 Alk-p 肝臟型約佔 15%,而骨骼型則佔有 85%,所以在嬰幼兒或童年時期的小孩會有短暫的高磷酸血症。
2. 繼發性副甲狀腺亢進會引起骨細胞的活化,進而導致 ALK-P 的增加。
3. 軟骨病、骨質疏鬆、骨癌等,皆會造成 ALK-P 的上昇。
n Placental Alk-p上升:懷孕或妊娠毒血症。
n Intestinal Alk-p上升:常見於胃腸疾病。O 或 B 型血型的人,會較其它血型來得高。
n Regan ALP:惡性疾病。
n Nagao ALP:惡性疾病。
健保代碼:09067B
正常參考值:
Liver - 10 ~ 65 IU/L
Bone - 15 ~ 62 IU/L
Fast liver - 0.0 IU/L
Intestine - 0 ~ 2 IU/L
檢體處理:血清 0.5 ml,室溫不安定,4℃ 保存 2 ~ 3 天。EDTA、Oxalate 抗凝劑會抑制其活性,故不可使用。
-------------------------------------------------------------
ALT; SGPT; GPT
中文名稱:麩丙酮酸轉胺脢
臨床用途:
ALT 的全名為 Alanine aminotransferase,臨床上常用來評估肝細胞受損程度及肝病的急慢性分類,也是肝病治療成效的重要指標。
ALT 是胺基酸代謝相關的細胞內酵素, 大量存在於肝臟及腎臟中,心臟及紅血球中則含有少量的 ALT。當這些部位的細胞受損時,特別是肝細胞受損,血清中 ALT 活性會明顯升高。ALT 對肝細胞受損的特異性大於 AST,在輕微的肝功能異常時,ALT 常會明顯高於 AST,但在較嚴重的肝病時, AST 的數值會愈接近 ALT,甚至會高過 ALT。因此,ALT 和 AST 配合常有下列用途:
n 評估肝病的嚴重程度。
n 評估酒精性肝病 (AST 常高於 ALT)
n 評估病毒性肝炎 (ALT 通常比 AST 高,但若有肝硬化或肝癌傾向時,ALT 常會小於 AST。)
本項目常和 AST (GOT) 共同判讀,異常的程度及相關疾病的關係請參閱 AST (GOT) 。
健保代碼:09026C
正常參考值:8.0 ~ 40.0 U/L檢體處理:血清 0.5 ml,ALT 的活性在血液抽出後便開始逐漸緩慢下降,即使 4℃保存亦然,故須當天檢測,最好立即檢測。
-----------------------------------------------------
AST; SGOT; GOT
中文名稱:麩草醋酸轉胺脢
臨床用途:
AST 的全名是 aspartate aminotransferase,臨床上常用來評估肝臟功能、心臟功能、及肌肉方面的疾病。
AST 是胺基酸代謝相關的細胞內酵素,大量存在於肝臟、心臟組織,肌肉、腎臟、胰臟也存在中等量的 AST。正常血清中 AST 的量很少,只有在這些部位的組織受損時才會釋放到血清中。藉由 AST 數值的高低,可診斷心肌梗塞、肝膽疾病及肌肉障礙等。
1. 血清中 AST 活性升高,常懷疑來自心肌或肝臟損傷,然而腎臟或胰臟的細胞損傷時,往往也出現 AST 升高。
2. 心肌梗塞後 6 ~ 8 小時血清的 AST 即開始上升,48 ~ 60 小時後逐漸降低至正常。
3. 在大部份的肝病中,AST (GOT) 的數值通常會小於 ALT (GPT)。若慢性肝炎有逐漸演變成肝硬化或肝癌的傾向時,AST 的數值常會高過 ALT。
4. 本項目異常的程度及相關的疾病關係如下:
n 顯著增加 (>20倍正常值上限):急性病毒性肝炎、中毒性肝炎。
n 中度增加 (3 ~ 10倍正常值上限):傳染性單核球增多症、肝外膽道阻塞、慢性活動性肝炎、心肌梗塞、肝內膽阻塞。
n 輕度增加 (1 ~ 3倍正常值上限):胰臟炎、酒精性脂肪肝、肝硬化、膽管性硬化、癌症。
n 降低 (低於正常值下限):尿毒症。
健保代碼:
09025C
正常參考值:
8.0 ~ 40.0 U/L
檢體處理:血清 0.5 ml,不建議使用 heparine 以外的血漿,避免溶血,與血球分離後保存。室溫安定 24 hrs,4℃ 可保存 28 天。
-----------------------------------------------
Bilirubin (Total, Direct, Indirect)
中文名稱:總膽紅素、直接膽紅素、間接膽紅素
臨床用途:
總膽紅素通常用於評估二類疾病:肝膽疾病及溶血性疾病。
膽 紅素起源於紅血球裡的血紅素,當衰老紅血球被破壞後,細胞膜發生變化,網狀內皮細胞可以識別並加以吞噬,其內的血紅素被網狀內皮系統轉變成膽紅素,此時的膽紅素為脂溶性,不溶於水,稱為間接膽紅素。間接膽紅素較為亮黃色,容易透過細胞膜沉積在組織中呈現黃色,並對組織細胞有毒性,尤其是腦細胞。例如新生兒 黃疸為間接膽紅素過多,若超過 20 mg/dl容易傷及腦部。由於間接膽紅素是脂溶性,必須轉變成水溶性形式方可代謝,因此在血流中會和白蛋白或α1球蛋白 (以白蛋白爲主) 結合成複合物。這種結合增加了膽紅素在血漿中的溶解度,便於運輸;同時又限制膽紅素自由透過各種細胞膜,不致對組織細胞産生毒性。這些和蛋白質結合的膽紅素被運送到肝臟,經肝臟攝取及肝內轉換脢 (Glucuronyl transferase) 作用後,移至分泌細胞,形成水溶性,較暗黃色,對組織細胞無毒性的膽紅素,稱為直接膽紅素。隨後和其他胆汁成分一起分泌到胆小管,儲存在膽囊。
血 中總膽紅素升高常引起皮膚及眼白變黃,即所謂的「黃疸症」。黃疸症可因上述任何一個環節發生障礙引起,包括膽紅素生成增加、肝臟攝取障礙或結合減少所導致的間接膽紅素升高症,常見的情形是溶血性疾病,例如輸血引起的溶血反應、蠶豆症等。至於直接膽紅素升高常見於膽汁排泄障礙 (膽汁鬱積)。而臨床最為常見者為直接與間接膽紅素同時升高,且直接膽紅素高於間接膽紅素,此現象常見於肝病和膽道阻塞,原因是此類疾病常引起多重功能障礙,引發混合型高膽紅素血症。
在實驗診斷方面,總膽紅素輕度上升時,若 ALT 及 Alk-p 在正常範圍,暗示可能發生溶血或吉伯特氏症 (Gilbert syndrome) 而非肝病,並由間接膽紅素上升即可確診。相反的,黃疸的嚴重程度及分類測定並不能鑑別診斷肝細胞性黃疸或膽汁淤積性黃疸,要靠其他項目加以區分。若血清膽紅素超過 25 ~ 30 mg/dl,通常意味著嚴重的肝病合併溶血或腎功能障礙,因爲單純的肝病很少引起這樣嚴重的黃疸。
健保代碼:09029C
正常參考值:0.5 ~ 1.5 mg/dl檢體處理:血清 0.5 ml,血清應在採血後 1 小時內與血球分離,並且避光保存,溶血檢體不可使用。
------------------------------------------------------
Prothrombin Time ; PT
中文名稱:凝血脢原時間
臨床用途:
PT 的用途在評估外在因子凝血系統 (extrinsic system) 及一般凝血路徑 (commom pathway) 是否正常。它可直接測定 Factor I、II、V、VII、X 的凝血功能,其中任何一個發生缺陷,都會造成 PT 延長。PT 在臨床上使用最多的時機是監控抗凝血藥物的療效,例如監控 warfarin (coumarin)、dicumarol 等藥物治療,一旦控制不佳,可能發生出血或栓塞等嚴重後果。 PT 還可用來評估擴散性血管內凝集 (DIC)、及維生素 K 缺乏症。
Prothrombin 由肝臟合成,並在 thromboplastin 的作用下轉變成 thrombin,為血液凝固的必須物質。因此在肝臟疾病時,肝細胞無法合成 prothrombin,導致 PT 時間延長。
PT 的檢驗不僅要報告檢體測試的結果,還要報告對照血漿 (control plasma) 的測試結果,以利醫師比對。如果醫師認為有必要,還需將結果換算成 INR 值,以利抗凝血藥物療效的追蹤。
有關 INR 值的說明:
長期服用抗凝血藥物治療的患者須定期監控 PT,以防止劑量過高造成出血或劑量不足形成血栓。然而不同廠牌的儀器及試藥測定出來的 PT 皆不盡相同,造成療效監控上的困擾。因此在 1980 年代,世界衛生組織 (WHO) 提供標準檢體給各儀器試藥製造商要求進行 PT 的測試比較,校正出各廠牌的 ISI 值 (International Sensitivity Index),日後檢體可經由 ISI 的計算求出 INR 值 (International Normalized Ratio)。藉由這樣的方法 計算 INR 值,可減少各實驗室間因方法及試藥不同所產生的差異。
INR = [患者的測定結果 / 正常人的平均結果](ISI)
健保代碼:08026C
正常參考值:
n 11 ~ 15 秒 (不同試藥廠牌會有很大的差異) 或 0.8 ~ 1.4 INR。
n 使用抗凝血藥物治療時,正常參考值約為 1.5 ~ 2.0 倍的 control plasma 秒數,或 2.0 ~ 3.0 INR。 檢體處理:使用 3.8 % Na citrate為抗凝劑,與血液比例為 1:9 混合。建議採用 Na citrate 0.2 ml,加血液 1.8 ml,均勻混合。室溫僅安定 2 小時,4℃ 安定 4 ~ 8小時,保存過久會導致測定結果上升。
-----------------------------------------------------
2007年8月21日 星期二
How to setup Java Connector Samples for ArcIMS
The jspsamples.war can be found in {$ArcIMS_Home}\Samples\Java.
Copy it to {$Tomcat_Home}\webapps for automatically depolying as web site jspsamples.
In this case, {$Tomcat_Home} would be set to C:\Tomcat5.5
Step I. Modify web service document
The map file is stored in {$ArcIMS_Home}\Samples\TutorialData\AXL, while the corresponding shape files are saved in the
folder under {$ArcIMS_Home}\Samples\TutorialData\
It is able to use ArcIMS Author to make sure it is available to load.
Before that, in the map file SantaClara.axl, following tag must be revised to indicate where the shape files exist.
child_tag:SHAPEWORKSPACE name="shp_ws-0" directory="D:\arcgis\ArcIMS\Samples\TutorialData\SantaClara"
tag:WORKSPACES
Under the folder {$Tomcat_Home}\conf\Catalina\localhost
Create a xml file, say JavaConnSample.xml, with following content:
tag:Context docBase="D:\GISProj\ArcIMSTest\Output" path="/JavaConnSample"
Then, ArcIMS will create map images and output to D:\GISProj\ArcIMSTest\Output
The WebSite can present these images from http://snowlin:8000/JavaConnSample through the configuration of xml file.
The jspsamples web site will drive ArcIMS service by jspsamples.properties file that is located at
{$Tomcat_Home}\webapps\jspsamples\WEB-INF\classes
The default value is as following
host=localhost
port=5300
arcmapservice=arcmapSample
service=SantaClara
streamservice=SantaClaraStream
where, the host and port conduct ArcIMS service site, service and streamservice will be mapped to the configuration in Step
II.
Step II. Configuration in ArcIMS Administrator
1. Check out map file
The map file SantaClara.axl is stored in {$ArcIMS_Home}\Samples\TutorialData\AXL.
It is able to use ArcIMS Author to make sure it is available to load.
2. Create Service SantaClara with following Service Information
Service Name: SantaClara
Map File: D:\arcgis\ArcIMS\Samples\TutorialData\AXL\SantaClara.axl
Virtual Server: ImageServer1
herein, the Service Name and Map File are defined by jspsamples.properties.
3. Server Output - Create an output folder to save temporary map images and display through URL
Image Type: JPG, PNG...(Select one)
Directory Location: D:\GISProj\ArcIMSTest\Output
HTTP Location(URL): http://snowlin:8000/JavaConnSample
where, "Directory Location" and "URL" are the same setting as "docBase" and "path"
Note: The default sample is presenting Santa Clara city map, there're other samples like San Francisco, World, Canada, etc.
Just following steps above and change "SantaClara" as "SanFrancisco", then create new service in ArcIMS.
While both SanataClara and SanFrancisco services are running, jspsamples.properties file will be the key to decide which
service is linked.
2007年5月28日 星期一
Web 2.0 時代下的幾個 Java Web Framework
http://nettrace.blogspirit.com/tag/wicket
在這 Web 2.0 的時代,現今的 Java Web Framework 也與過去第一代的 Java Web Framework 有些不同,先列出我所關注的幾個:
Spring Framework
- Spring Framework - http://static.springframework.org/
輕量級的 Java 應用程式容器,同時支援 Rich Client、Web及 Java EE 應用系統之開發。 - Spring Web MVC Framework - http://static.springframework.org/spring/docs/2.0.x/refer...
Spring Web MVC 是一簡單易用的 web MVC 套件,可讓開發人員把 View, Controller 及 Model 分離,開發出容易維護的 Web 程式碼。由於其 View 端採用 pluggable 方式設計,可搭配 JSP, Struts 或 JSF 展示框架使用。
由於 Struts 架構因限制特定用途且開發動能不足,目前已呈老化之趨勢,開發新專案時,不建議採用。對過去只採用 JSP 的系統來說,採用 Spring Web MVC + JSP 將是最可行而簡易的升級方案。 - 中文版的 Spring Framework 教材 - http://caterpillar.onlyfun.net/Gossip/SpringGossip/Spring...
良葛格寫的,其中對 Spring Framework 有深入淺出的介紹。若對 Spring Framework 不熟悉,建議先看這裡的介紹,大致上看完後對基本的應用就足夠了。若有不足處,可再參考官方參考手冊(http: //static.springframework.org/spring/docs/2.0.x/reference/)。 - Spring Web Flow - http://opensource.atlassian.com/confluence/spring/display...
Spring Web Flow 讓開發人員定義一組態設定檔,透過定義 page 及 action 的 binding,完成 page flow 的定義。令人興奮的是,在 Spring IDE(http://springide.org/project/wiki/SpringideFeatures) 中,提供對 Spring Web Flow 的支援,讓開發人員可以透過視覺化的方式(http://springide.org/project/wiki/WebFlowEditor), 來定義 網頁流程。
- Echo2 - http://www.nextapp.com/platform/echo2/echo/
支援 Ajax 最徹底的 Web Framework,其特色是 Echo2 將網頁元素完全物件化,透過它所開發出來的網頁程式,不用寫到一行 HTML, javascript 程式碼。如果開發者對 Swing 熟悉,那麼開發 Echo2 程式將會輕而易舉。想要了解 Echo2 所開發出來的程式風格,可參考其 demo(http://www.nextapp.com/platform/echo2/echo/demo/)。 看過 Echo2 令人印象深刻的展示程式後,會覺得其他 Web Framework 的展示程式是那麼軟弱無力。
另外,我發現 Echo2 的社群也是非常活躍,像是其 forum(http://forum.nextapp.com/forum/) 或 wiki(http://wiki.nextapp.com/echowiki/) 裡,可以找到不錯的參考資源。而 EndPointNG (http://wiki.nextapp.com/echowiki/EchoPointNG) 則提供了許多額外的元件,像是 Tree, TreeTable, PageableTable 等。
在應用上,把所有 web 元素通通轉換成 Java 資源放在 session 裡面,對於使用者眾多的應用程式將非常不利(但若是像我們公司這類程式由於非訴諸一般 end user,則無所謂)。
- Google Web Toolkit - http://code.google.com/webtoolkit/
Google 所出品的 Java Ajax Web Framework。其實說它是 Java Web Framework 有些不對,因為它在開發的過程中,採用與 Echo2 類似的 Approach,是以 Java 物件來代表/處理 Web 元素。但是真正佈署前,必須將這些 Java 物件 compile 成 HTML 及 Javascript,再佈署這些轉譯後的 web 資源。因此這些資源極有可能佈署至一般的 web server 內(如 Apache),而不需要特定的 Java web container(如 tomcat)。由於 GWT 已經實際應用於 Google 的產品線(如 Gmail、Google Calendar 等)由於 Google 的Ajax 技術已經過實際應用,因此可以確認的是它的效能不成問題。另外由於它的展現層與邏輯層完全分離,兩者之間採用 jscon 或 RPC 的方式進行呼叫,因此 server 端完全免除 UI 的 loading,只要專注於 service 的邏輯即可。再加上它可透過 JavaScript Native Interface (JSNI) 來整合既有 javascript 撰寫的網頁元件,對於 third-party 的元件,將較容易整合與移植。結論是:GWT 是一適用於高負載,運用彈性靈活的 web framework。
- Wicket - http://wicket.sourceforge.net/
Wicket 是 web 應用程式中,將 Java 程式與 HTML 源碼切割的最乾淨的一套 web framework。與 JSP 一樣,Wicket 將 view 端的 UI 定義在 HTML 中,但與 JSP 不同的是,它並不是採用 <%%> 這類特殊的 tag 來夾注 server 端的邏輯,而是利用 XML namespace 的方式,在一般的 html tag 中加注 Wicket id 來達到 server 端邏輯連結的效果。
Wicket 與 Echo2 一樣,將所有的 UI 元素都轉換成 Java 物件存在 session 裡,對於流量大的應用程式非常不適用。實際試用 Wicket 之後,發現在使用既有元件的情況下,要完成相同的工作,它所需的程式碼要比 Echo2 來的多。且由於 Echo2 是所謂 "一頁式" 的 web 應用程式,而 Wicket 可支援多個頁面,因此它在 URL 連結及 session 的處理上更為複雜。所得到的益處是,Wicket 同時支援 Ajax 與 refresh based 的 web 應用程式開發,且支援 bookmarkable URL。
另外,由於 Wicket 使用 HTML 作為網頁元素樣版,因此可以在美工人員與程式設計師之間作良好的分工。而既有的 javascript 在整合上,也會較 Echo2 來的簡易。
接下來,我想透過分析以上幾個 frameworks,檢視應用程式框架發展、轉變背後所隱含的意義:
支持輕量級開發
所謂輕量級開發,可以由幾個角度來檢視,一個是元件模型,UI 與 Server 端的邏輯是否容易連結。另一是在開發應用程式的過程中,是否需要採用特殊的工具,如特殊的 GUI Builder 或 configure file editor。最後,則是其執行環境是否單純,或是需要特定的 web 容器。
在第一點上,個人認為 Wicket 及 Echo2 皆有良好的表現。因為它們所採用的方式,是直接撰寫視覺元件的 action listener,與 Swing 的作法一致。而 Spring Web Framework 則承襲第一代 web framework,採用 dispatcher/handler 的作法,在觀念是 request/response 模式。至於 GWT,由於 client 端邏輯純粹由 javascript 負責,它所提供的 javascript 包含 RPC 呼叫程式,用來呼叫 server 端的應用程式邏輯。而 GWT 的 server 端邏輯,是一種特殊型式的 servlet。因此,如果系統中後端邏輯複雜多變,需要多個 server 端元件時,採用 GWT 預計就要維持很多個 servlet,可能會令人相當頭疼。
第二點,應用程式之開發環境,在 GWT, Wicket 及 Echo2 中,都是直接以既有的 Java IDE 即可開發,至於 Spring Web Framework 在這一點上,因為其 View 端採 plugable 設計,基本上是獨立的。不過其 config file,個人認為若有合適的 editor,會較容易使用。最仰賴 GUI builder 的,我想是 JSF,不過也不排除有存在樂於 hand coding JSF tags 的天才。
最後是運行環境,這方面的贏家是 GWT,因為它在運行時甚是不需要 server 環境。至於 Spring、Wicket 及 Echo2 等,則需要(只要)一搬的 java web container, 加上 framework 特有函式庫即可。
另外,這裡我並未強調元件模型是否為 POJO,因為繫結視覺元素與後端邏輯,本身就是 glue code。你只能看它是否夠不夠簡易,而無需用 model layer 的標準來要求,
支援新一代的動態網頁技術
Wicket、Echo2 及 GWT 都支援所謂的 Ajax 技術。在使用上,Echo2 的方式相當靈活,因為它讓你可以動態的在 clinet 端加入與移除視覺元件。Wicket 在使用上感覺就有些限制,因為它要求 Web UI 元件與後端的處理元件,需存在一對一的對應。
對於標準的支持
這一項有些含糊,因為每個 framework 所重視的標準不一。像是 GWT 重視的是平台的獨立性,而 Spring 重視的是支援既存的各種 framework,達到中立性。Wicket 重視的是 HTML 語法的相容性,而 Echo2 重視的則是瀏覽器的相容性,以及 Swing 風格的設計思路。不過總而言之,新一代的 web framework 在這個面向已進步許多。
視覺元件與程式邏輯更明確的分割
這可分為「看起來是」與「實際上是」,像是 Wicket 就做到看起來是。有趣的是,Echo2 是看起來不是,但實際上卻是。至於 GWT 嗎,由於它的 server 端的邏輯是另外寫成 service,而 client 端的視覺元素在開發時也是以 java 撰寫。兩者採用一致的方式,不過卻必須分開撰寫,可以說它是實際上是,至於看起來是不是,就見仁見智了。
2007年2月24日 星期六
Running ArcIMS9.1 with Tomcat5.5 in Windows - Part C: Configure Virtual Directory
1. Create ArcIMS Website and Ouput folders at desired location, for example,
D:\arcgis\ArcIMS\Website
D:\arcgis\ArcIMS\Output
Note: both of folders have been created in
2. Create xml-format context files for both directories in Tomcat, they are put in
<...Context path="/ArcIMS_WebSite" docBase="D:\arcgis\ArcIMS\Website" debug="0" privileged="true" /...>
<...?xml version="1.0" encoding="UTF-8"?...>
<...Context path="/ArcIMS_OutputSite" docBase="D:\arcgis\ArcIMS\Output" debug="0" privileged="true" /...>
3. Run ArcIMS Administrator, with correct login username and password, the web folder, server and service will be listed.
4. Check view->site properties, input data for ArcIMS Site and Server Ouput tags:
in ArcIMS Site tag, make sure hostname and host alias are correct, then input HTTP Location (URL) and Web Site Directory. For example:
http://server_name:8000
D:\arcgis\ArcIMS\Website
in Server Output tag, input Directory Location and HTTP Location (URL), e.g.
D:\arcgis\ArcIMS\Output
http://server_name:8000/ArcIMS_OutputSite
5. Check service item, and create new service. Herein, in Service pan, the name, map file and virtual server are required. For example, set them as
ServiceTest
mapfile.mxd
ImageArcMapServer1
Note: as selecting map file, if mxd format file is selected, the virtual server must be ImageArcMapServer; if axl format file is selected, the virtual server would be ImageServer. The mxd file is created by ArcMap tool, the axl file is created by ArcIMS Author tool.
6. Then, go to check service output in the same panel, the image type should be jpeg format, the output directory and URL should be the same as setup above, i.e.
D:\arcgis\ArcIMS\Output
http://server_name:8000/ArcIMS_OutputSite
7. Click OK! If the service works, the service status would be running.
8. It is also available to create a virtual server by selecting server item and indicating server type. The new virtual server can be assigned to service.
9. Check Tools->Start Designer, input a web site directory, say ShapeTest, the folder “ShapeTest” will be created under D:\arcgis\ArcIMS\Website\ and include all material related to display image map.
10. Determinate a hostname and connect it, then select a service for display map.
Note: the hostname will be a key to browse it from the client site. For example, if the hostname is servername in this case, it might be only browsed at local machine or local network; e.g., http://server_name:8000/.... If the hostname is intranet IP address, such as 192.168.1.2, or internet IP like 140.128.65.114, it would be able to work through internet.
11. Follow up indication for choosing viewer such as html or Java viewer and click OK. HTML viewer will be recommended for easy setup.
12. When it is done, click “create site” button to complete.
Open the browser, type the website to view. For example in this case,http://server_name:8000/ArcIMS_WebSite/ShapeTest
if the hostname is IP like 192.168.1.2, the it would be
http://192.168.1.2:8000/ArcIMS_WebSite/ShapeTest
Running ArcIMS9.1 with Tomcat5.5 in Windows - Part B: Configure Real Directory
1. Create ArcIMS Website and Ouput folders under
C:\Tomcat5.5\webapps\ROOT\Website
C:\Tomcat5.5\webapps\ROOT\Output
Note: both of folders have been created in
2. Run ArcIMS Administrator, with correct login username and password, the web folder, server and service will be listed.
3. Check view->site properties, input data for ArcIMS Site and Server Ouput tags:
in ArcIMS Site tag, make sure hostname and host alias are correct, then input HTTP Location (URL) and Web Site Directory. For example:
http://server_name:8000
C:\Tomcat5.5\webapps\ROOT\Website
in Server Output tag, input Directory Location and HTTP Location (URL), e.g.
C:\Tomcat5.5\webapps\ROOT\Output
http://server_name:8000/Output
4. Check service item, and create new service. Herein, in Service pan, the name, map file and virtual server are required. For example, set them as
ServiceTest
mapfile.mxd
ImageArcMapServer1
Note: as selecting map file, if mxd format file is selected, the server type of virtual server “ImageArcMapServer
5. Then, go to check service output in the same panel, the image type should be jpeg format, the output directory and URL should be the same as setup above, i.e.
C:\Tomcat5.5\webapps\ROOT\Output
http://server_name:8000/Output
6. Click OK! If the service works, the service status would be running.
7. It is also available to create a virtual server by selecting server item and indicating server type. The new virtual server can be assigned to service.
8. Check Tools->Start Designer, input a web site directory, say ShapeTest, the folder “ShapeTest” will be created under C:\Tomcat5.5\webapps\ROOT\Website\ and include all material related to display image map.
9. Select a service for display map; then, follow up the indication for choosiPublishng viewer such as html or Java viewer and click OK. HTML viewer will be recommended for easy setup.
10. When it is done, click “create site” button to complete.
Open the browser, type the website to view. For example in this case,http://server_name:8000/Website/ShapeTest