2015年2月24日 星期二

LOG4j Simple start and slf4j start


Log4j 

1. Log4j setting explaination Good ExplainationOverview2

2. Example code Simple Example


For Setting in tomcat discussion
Stackup
apache office
Discussion2
Non-web

Slf4j Start

1. Overview ,  overview 2
2. It need the dependence of
  • slf4j-api-1.7.2.jar
  • slf4j-simple
  • logback-classic
  • logback-core
3.If you using log4j in the after you should setting in run command
-Dlog4j.configuration="/home/Andy/workspace/ShiroSource/WebContent/WEB-INF/log4j.properties"





Complete the slf4j and log4j in apache shiro

Summary File



From here

a. Library using 



b.  log4j.properties file  and put in the WEB-INF/






c. Setting the web.xml


d. Create web context listen at web start to load property files






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