2014年11月2日 星期日

Jetty First

Description
* Jetty is a pure Java-based HTTP (Web) server and Java Servlet container.
* Developed as an independent open source project, in 2009 Jetty moved to Eclipse
* It supports AJP, JASPI, JMX, JNDI, OSGi, WebSocket and other Java technologies


Jetty Notice
* jetty default port is 9080, http://localhost:9080/


Study
Chinese Explaination
Office for First Hello World
Jetty On eclipse Judo install
Jetty on eclispe first

2014年10月29日 星期三

Domain name list

Common useage:


.br Brazil
.at Austria
.au Australia



You can see it for more items
country_suffix

2014年10月19日 星期日

資訊自由法


From wiki
信息自由法, 的主要內容是規定民眾在獲得行政情報方面的權利和行政機關在向民眾提供行政情報方面的義務:
  • 聯邦政府的記錄和檔案原則上向所有的人開放,但是有九類政府情報可免於公開;
  • 公民可向任何一級政府機構提出查閱、索取複印件的申請;
  • 政府機構則必須公布本部門的建制和本部門各級組織受理情報諮詢、查找的程序、方法和項目,並提供信息分類索引;
  • 公民在查詢情報的要求被拒絕後,可以向司法部門提起訴訟,並應得到法院的優先處理;


台灣是傳播權利

2014年3月20日 星期四

echo close file wildcard

Problem:
If you want to separate a string the contain the wildcard such as start *,  in the bach it will display it


Method:
a. Use the quote. echo "*.sh"
b. use the set  -f operator:   (set -f; echo *.sh; set +f)

2014年3月4日 星期二

rsync

USAGE:

rsync -avP /source /destination/
will copy the source folder into destionation.

but  

if rsync -avP /source/ /destination/

will copy the data in source into destionation



Reference
Rsync example

2014年2月6日 星期四

Eclipse java update setting

1. Problem:
We want to update the java 1.6 to java 1.7 and appear error:
java compiler level does not match the version of the installed java project facet


2. Solution:
step a: Install the java jdk 1.7
step b: right chlick -> properties -> choose project facets -> java item (default 1.6, please click the 1.6 icon and choose 1.7)


Reference:
Youtube Solution

2014年1月20日 星期一

Struts2 if tag for string and char comparison

Explanation: 
There are tow tag using in charater: String , character , and there are different in judge, if you using the character you will get false:


Result:
1. String example for work
 
<s:set name="webFramework" value="framework"/>
<s:if test="%{#webFramework=='Struts 2'}">
    This is Struts 2
</s:if>
<s:elseif test="%{#webFramework=='Struts 1'}">
    This is Struts 1
</s:elseif>
<s:else>
    Other framework
</s:else>

2. Character for work
<s:if test='%{#session.IsLogin== ("T")}'>
    Login
</s:if>
<s:else>
    LogOut
</s:else>




Reference:
String compare
character compare


























struts2 session login

Reference:
Sessions in struts2 application

Simple Struts login in example

2014年1月16日 星期四

Eclipse update

For WPT

For Juno :
http://download.eclipse.org/webtools/repository/juno/
For Indigo :
http://download.eclipse.org/webtools/repository/indigo/
 
 
Reference: 
WTP-update