2015年2月23日 星期一

Eclipse Add javax library




Using Eclipse:
  1. Right click your project folder, select Properties at the bottom of the context menu.
  2. Select "Java Build Path"
  3. Click Libraries" tab
  4. Click "Add Library..." button on right (about halfway down)
  5. Select "Server Runtime" click "Next"
  6. Select your Tomcat version from the list
  7. Click Finish

Reference from forumla

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