原创 Linux操作系統下三種配置環境變量的方法

1.修改/etc/profile文件 如果你的計算機僅僅作爲開發使用時推薦使用這種方法,因爲所有用戶的shell都有權使用這些環境變量,可能會給系統帶來安全性問題。   (1)用文本編輯器打開/etc/profile   (2

原创 Problem about Flexiframe

問題1:位置無法正確顯示在指定的位置 解決方法: a.修改你的html模板,如修改index.template.html,將文檔聲明修改爲 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Tran

原创 Binding to array object elements' demo

1.自定義對象類 package { public class UserVO { //--------------------------------------------------------------------

原创 Socket policy request process

Flash player 與 遠程服務器建立TCP Socket Connection時,需要先取得策略文件,得到遠程服務器的允許, 纔可以建立socket connection,以下爲請求policy file的過程圖解:   相關知

原创 How to insert a SWF file in an ASDoc API documentation ?

ASDoc API documentation is well designed for developers but remain difficult to read for others. Some of my co-workers

原创 FLEX組件CLICK事件中帶參數

1.組件中聲明處理的事件及參數 <s:Button label="Click" id="okBtn" click="okBtn_clickHandler(event, 1)" /> 2.處理事件中聲明需要處理的參數 private fu

原创 郵件發送失敗( connection failed,Can't send command to SMTP host,Broken pipe)

問題:用JAVA MAIL發送郵件的時候報以下錯誤: Mail server connection failed; nested expection is javax.MessagingException: Can't send comm

原创 符號鏈接,硬鏈接,目錄聯結

window系統下,可用MKLINK [[/D] | [/H] | [/J]] Link Target創建各種鏈接,簡單解釋如下 1.符號鏈接(symbolic link) 可簡單理解爲window下的快捷方式,保存着源文件的路徑等信息

原创 Tomcat應用向所在的linux環境中的文件寫入中文字符亂碼

Problem Tomcat中的應用向所在的linux環境的某個文件寫中文字符,在linux下查看該文件中的中文字符顯示亂碼。Solution 修改Tomcat目錄下的/bin/catalina.sh文件,將CATALINA_OPTS的變

原创 Difference between clone and copy

Clone --  Creates another reference (Pointer) to the same location.(Shadow copy,即複製引用) Copy --  Creates two different r

原创 對象分層

1.背景 在做SOA項目時,很糾結於VO的混亂,項目中VO又作爲給Client的output,又作爲Service層與DAO層之間傳輸的對象,甚至更恐怖的是作爲插入,更新DB的對象,無語。。。 2.思考結論 思考了下,覺得對象應該分下層,

原创 spark二次開發eclipse環境搭建

Java Build Path -> Source : spark/src/java Java Build Path -> Libraries : spark/build/lib/* , spark/build/lib/dist

原创 Openfire Plugin FastPath NullPointerException

問題描述: 在linux環境下,openfire的plugin FastPath,點擊group name時,就會報錯,查服務器日誌,錯誤信息爲 java.lang.NullPointerException      at org.ji

原创 Spring Annotations Cheat Sheet

Spring Annotations By Craig Walls SPRING ANNOTATIONS From its beginning, Spring's most common means of configuratio

原创 BOSH vs WebSockets:

BOSH vs WebSockets: latency: While the BOSH draft document claims very low-latency, it will be difficult for BOSH to