<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Vincent.Chan‘s Blog

    常用鏈接

    統計

    積分與排名

    網站

    最新評論

    2005年12月31日 #

    博客轉移

    本博客決定轉移,請訪問新地址 http://vincentchan.cn/
    另外如果有人有blogjava轉wordpress的博客搬家工具,可以共享一下~~

    posted @ 2010-04-27 19:15 Vincent.Chen 閱讀(246) | 評論 (0)編輯 收藏

    eclipse polish debug error

    I have seen something like that if the option "Suspend execution on uncaught exceptions" in windows/preferences/Java/Debug is checked. It must be unchecked to get the debugger to work.

    posted @ 2009-04-30 09:34 Vincent.Chen 閱讀(199) | 評論 (0)編輯 收藏

    諾基亞軟件

    電源文件
    漢化

    posted @ 2009-04-23 18:55 Vincent.Chen 閱讀(185) | 評論 (0)編輯 收藏

    Axis客戶端調service產生java.lang.reflect.InvocationTargetException錯誤

    Tomcat+Axis客戶端調service產生java.lang.reflect.InvocationTargetException錯誤

    產生這個文題的原因是

    1.server端發布的webservice程序中調用了某些jar或class,而服務器上卻沒有,解決方法是把jar或class拷貝到tomcat\common\lib或虛擬目錄的web-inf\lib目錄下
    2.調用的方法出現了特殊的exception.但是你服務器上面沒有捕獲到

     我一開始用jbuilder開發程序的時候,service端引用了 一些I2的jar,單調service的程序總是成功,一到Client端調用service時,service端就報這個錯誤,于是百度的一把,無意間 看到了CSDN上的一位高手的解釋,于是有點恍然大悟,因為我在jbuilder中設置了環境變量,調式才沒問題,而部署的服務器上沒有這些 jar,service執行的時候找不到從而報錯,而且在我的虛擬目錄下的lib目錄中又新建了個文件夾,把jar放在新建的文件夾下,估計這也是問題之 一,后來我把用到了jar全部考到tomcat\common\lib下,用Client去調service時終于不報錯了,看來這文件還不能亂放阿 (jar一定要放在lib目錄下俄,汗那)

    posted @ 2009-03-23 09:09 Vincent.Chen 閱讀(3484) | 評論 (0)編輯 收藏

    Eclipse + MinGW + Qt開發環境設置

         摘要:   閱讀全文

    posted @ 2009-03-14 13:34 Vincent.Chen 閱讀(403) | 評論 (0)編輯 收藏

    安妮寶貝經典語錄

         摘要:
    ●我喜歡寂寞的人,因為他們善良
    ●傷口是別人給予的恥辱,自己堅持的幻覺。
    ●某天如果我覺得不再愛你了,我就不會再感覺寂寞。
    ●我不相信愛情,但我可以接受它。
    ●當一個女子在看天空的時候,她并不想尋找什么。她只是寂寞。
      閱讀全文

    posted @ 2008-07-04 23:42 Vincent.Chen 閱讀(418) | 評論 (0)編輯 收藏

    最近在網上看到一段話

    女孩子二十歲左右是她最美麗的年華
    這時她心地最善良,有點成熟,又有點孩子氣

    男孩子二十歲左右是他最黯淡的日子,這時他什么都沒有,不能獨立卻又不想依賴,掙扎著
    彷徨著,尋找著自己的位置。
    所以,
    如果一個男孩子在他二十歲左右的時候遇到一個年紀相當的女孩子,那一定要珍惜她,因為
    這個女孩子用自己最美麗的年華陪他走過了最黯淡的日子!女孩只要陪他走過,女孩子將永
    遠幸福下去……

    posted @ 2008-07-01 00:34 Vincent.Chen 閱讀(255) | 評論 (0)編輯 收藏

    轉:被孤獨詛咒了的青春

    那天大姨來看我,一起吃頓飯,又把我循循教導一番,給我舉了表姐單位幾位的大齡女青年
    的例子,告誡我一定不要眼光太高,哪里有十全十美的人云云。

    我只能苦笑,哪里有什么高標準......

    以前很奇怪,為什么一說到這個事情,大家都會不約而同的認定是我眼光高,太挑剔了。后
    來想明白,可能也是大家的仁慈。那么若不是眼光高,那又是為什么呢?他們很奇怪,我也
    很奇怪。

          前言:我知道造成這樣孤獨的生活是我的錯,但不知道自己錯在哪里,所以只好認為
    是被孤獨詛咒了。

    年少時曾經暗戀過的人,早已過上王子公主的幸福生活;

    年輕時深刻愛上的人,早已絕塵而去;

    多年來默默關懷自己的人,實在是不可以執手相望;

    生命中匆匆過往的形形色色的男子,終究也是路人;

    于是這最年輕的年華,很是奇怪的,真的被孤獨詛咒了一樣。


    或許上帝開了個不小的玩笑,一個骨子里自視甚高的女子,一個曾經對感情充滿無限幻想的
    人,卻在現實生活中不得不抬頭面對這樣慘淡而落寞的情路。從那個閉塞的小縣城,一步步
    走到今天,從來都相信通過自己的努力可以改變命運,但是這尷尬的情境,終于讓我懂得,
    有些事情確實不能如自己所計劃的實現。

    這已是我在大學里度過的第七個年頭,多年做學生的生涯終究要落下帷幕。身邊的人你來我
    往,變的總是別人的生活,不變的總是孤獨的自己。變的總是不同的生活軌跡,從家鄉的小
    縣城,到大連,從大連到京城,從京城到上海,不變的總是漫長旅途中孤獨的身影。

    2006年的情人節,境況依舊如往。這個城市有千萬朵玫瑰綻放,沒有一朵是為我而開。剛剛
    告別溫暖的家回校,中午時收到拒電,一份最為盼望的工作希望破滅,晚上去冷清的食堂吃
    了份冰冷的炒面。到了辦公室,空無一人,一種強烈的徹底的失敗感突然襲來,蔓延全身,
    感到了人生走到毫無希望和樂趣的地步,終于支撐不住,趴在桌子上,大哭一場。

    彷佛是被一張無形的巨網罩住,我不想過這樣的生活,可是為什么我總也擺脫不掉!


    將馬思洛的需求層次論用來解釋愛情,給朋友講的頭頭是道,被她評為最經典和創意的愛情
    理論。我曾裝作老道的樣子,告誡她我們一定要尋找到滿足自己最高層次需求的一份感情,
    而如今的自己已再也不敢有此奢望。只求有一人,滿足自己安全的需要,交往的需要,擺脫
    漂泊感和恐懼感的需要。

    人在旅途時,往往更加脆弱。每每奔波在路上,一個人趕車,候車,坐車,慢慢長途中,看
    著身邊的旅伴們, 年輕的,年老的,互相照顧,我甚至覺得哪怕是隨便怎么樣一個人,陪
    在我身邊,為我拉個箱子,為我泡一碗面,或者為我掖掖被角,都能讓我萬分感動。

    這次去上海,住華東理工我高中老友之女朋友宿舍內。同屋另外一個女孩子,端莊秀氣,同
    樣借居于彼。考研、上班,與在上研的男友一起奮斗,薪酬甚為微薄,工作十分忙碌,生活
    極為艱辛。每日眾人酣睡之際,她已起身趕車,顛簸一個多小時,在郊區一小診所作護士,
    每晚下班,要看書復習。臨近大考幾個月,男友每晚都陪她在自習室復習至深夜,再送她回
    來。

    然而造化弄人,連考兩年未果。我去當晚,正逢女孩得知考研分數,難受的不知道怎么好。
    男友極為溫和,陪了她一整天,勸慰她不是她的原因,是自己查分的手太臭。兩人在外面站
    半天,回來時女孩本打算買個土家燒餅給男友吃,又覺得自己考的丟人,對不住他,不好意
    思再對他好,一扭頭跑了回來。

    我是躺在床上,默默地聽這個女孩子的敘述,想象2005年冬天的上海,房間里沒有一絲暖意
    ,那樣的生活.......這樣相濡以沫的愛情,我只是在幻想中有過。我知道女孩看我的眼神
    里,充滿了無限的羨慕,羨慕我的學業、前途如此一帆風順,可是她不知道我對她的羨慕,
    每晚下班Tail看書復習。臨近大考幾個月,男友每晚都陪她在自習室復習至深夜,再送她回
    來。

    然而造化弄人,連考兩年未果。我去當晚,正逢女孩得知考研分數,難受的不知道怎么好。
    男友極為溫和,陪了她一整天,勸慰她不是她的原因,是自己查分的手太臭。兩人在外面站
    半天,回來時女孩本打算買個土家燒餅給男友吃,又覺得自己考的丟人,對不住他,不好意
    思再對他好,一扭頭跑了回來。

    我是躺在床上,默默地聽這個女孩子的敘述,想象2005年冬天的上海,房間里沒有一絲暖意
    ,那樣的生活.......這樣相濡以沫的愛情,我只是在幻想中有過。我知道女孩看我的眼神
    里,充滿了無限的羨慕,羨慕我的學業、前途如此一帆風順,可是她不知道我對她的羨慕,
    羨慕她如此幸運,有這樣一個心地純正的、這樣真心愛她的人。


    日子一天天總會過去,若不是立志獨身,將來總會遇見某個人,與之結婚,一起生活,幸福
    或者不幸福;若不出大的意外,將來總會有更多的錢,房子,車子,總歸會有這樣形式上完
    整的婚姻、丈夫,表面上熱鬧的生活。anyway,以后的生活與現在無關。但是這被孤獨詛咒
    了的一個女子最美好的青春歲月,會成為我一生中永遠揮之不去的遺憾

    posted @ 2008-06-24 00:13 Vincent.Chen 閱讀(233) | 評論 (0)編輯 收藏

    關于ChartDirector的中文問題完美解決

    ChartDirector是一個圖表工具,類似JFreeChart,只是它是商業軟件。那為何還要用它?因為它畫出來的圖表比JFreeChart精細,好看得多。這好像是一個香港公司開發的?!http://www.advsofteng.com/
    它文檔上說了,它內部采用UNICODE編碼。所以應該不會有中文[非英文體系]亂碼問題。但是實際好像還是會出現亂碼,網上搜索了一通大多解決的不是很徹底,根據自己試驗解決如下:
    1、
    JSP中增加:
    <%@ page contentType="text/html; charset=GB2312"%>
    //
    此處的charset要注意設置,也可設置成其他支持中文的編碼,然后注意保存的jsp文件要保存成相應編碼
    //很多亂碼皆由于保存的編碼和這里聲明的編碼不一致導致[用EmEditor等工具保存時可以選擇編碼]
    //這里不聲明默認采用ISO-8859-1編碼讀取,所以有網友說需要將中文編碼為ISO-8859-1即:
    //new String("中文".getBytes("ISO-8859-1"))

    2、設置Chart默認字體:

    BaseChart.setDefaultFonts("simsun.ttc","simsun.ttc","simsun.ttc","simsun.ttc");

    如果在非windows系統下使用,可以拷貝windows系統下的simsun.ttc到classes路徑下,重啟服務器即可顯示中文

    然后其他的一些字體大小等都要一個個設置了,因為默認英文字體大小顯示中文不好看

    這樣就可以很完美顯示中文了。比起JFreeChart來好多了,JFreeChart雖然也可以解決中文顯示問題,但是中文字體發虛,好像目前無法解決。

    posted @ 2008-04-15 20:06 Vincent.Chen 閱讀(5404) | 評論 (5)編輯 收藏

    Topsite

         摘要:   閱讀全文

    posted @ 2008-04-12 09:28 Vincent.Chen 閱讀(392) | 評論 (0)編輯 收藏

    WareZ

         摘要:   閱讀全文

    posted @ 2008-04-12 09:28 Vincent.Chen 閱讀(484) | 評論 (0)編輯 收藏

    WAREZ無形帝國

         摘要:   閱讀全文

    posted @ 2008-04-12 09:25 Vincent.Chen 閱讀(235) | 評論 (0)編輯 收藏

    WareZ與0Day的故事- -

         摘要:   閱讀全文

    posted @ 2008-04-12 09:21 Vincent.Chen 閱讀(530) | 評論 (0)編輯 收藏

    在windows上用源代碼編譯安裝MPlayer【轉載】

         摘要:   閱讀全文

    posted @ 2008-04-02 21:38 Vincent.Chen 閱讀(4225) | 評論 (0)編輯 收藏

    轉:利用JFreeChart繪制股票K線圖完整解決方案

         摘要:   閱讀全文

    posted @ 2008-02-02 20:49 Vincent.Chen 閱讀(3404) | 評論 (0)編輯 收藏

    JFreeChart庫包的簡介【轉載】

         摘要:   閱讀全文

    posted @ 2008-02-02 20:41 Vincent.Chen 閱讀(411) | 評論 (0)編輯 收藏

    JFreeChart中文文檔【轉載】

         摘要:   閱讀全文

    posted @ 2008-02-02 20:34 Vincent.Chen 閱讀(847) | 評論 (0)編輯 收藏

    [轉載]個人對400余部影片的觀后感(純主觀)

         摘要:   閱讀全文

    posted @ 2008-01-20 22:01 Vincent.Chen 閱讀(36466) | 評論 (17)編輯 收藏

    DVDrip、HDrip、BDrip等 知識資料匯總

         摘要:   閱讀全文

    posted @ 2008-01-19 04:08 Vincent.Chen 閱讀(594) | 評論 (0)編輯 收藏

    AppFuse2 建立新project命令

    ArchetypeCommand
    JSF Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-jsf -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Spring MVC Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Struts 2 Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Tapestry Basic mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-tapestry -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    JSF Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-jsf -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Spring MVC Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-spring -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Struts 2 Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Tapestry Modular mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-modular-tapestry -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject
    Core
    (backend only)
    mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-core -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-m5 -DgroupId=com.mycompany.app -DartifactId=myproject

    posted @ 2007-07-18 22:58 Vincent.Chen 閱讀(1024) | 評論 (0)編輯 收藏

    候捷談反射機制(轉)

         摘要: Reflection 是Java被視為動態(或準動態)語言的一個關鍵性質。這個機制允許程序在運行時透過Reflection APIs取得任何一個已知名稱的class的內部信息,包括其modifiers(諸如public, static 等等)、superclass(例如Object)、實現之interfaces(例如Cloneable),也包括fields和methods的所有信息,并可于運行時改變fields內容或喚起methods。本文借由實例,大面積示范Reflection APIs。  閱讀全文

    posted @ 2007-07-02 23:58 Vincent.Chen 閱讀(781) | 評論 (0)編輯 收藏

    (轉)Polymorphism(多態性)很X,大家注意少兒不宜

         摘要: Polymorphism shouldn't be a new concept to anybody. You deal with it every day in the real world. There's more than one class of cat to skin, but you skin 'em the same way, even if the specific instance is completely new to you. Let's say for example you want to fuck a hole. You fuck all holes the same. You don't care if that hole happens to be a mouth, an ass, or a pussy, you're gonna fuck it the same way regardless. However, the mouth, pussy, or ass may respond differently to the fucking.  閱讀全文

    posted @ 2007-07-02 23:54 Vincent.Chen 閱讀(2103) | 評論 (1)編輯 收藏

    Eclipse Europa發布。。。

    Eclipse Europa is the annual release of Eclipse projects. Like last year’s Callisto release, the Europa release is a coordinated release of different Eclipse project teams. This year, the annual release includes 21 projects. By releasing these projects at the same time, the goal is to eliminate uncertainty about version compatibility and make it easier to incorporate multiple projects into your environment.

    While Europa is about the simultaneous release of twenty one projects, it is not a unification of the projects - each project remains a separate open source project operating with its own project leadership, its own committers, and its own project plan.

     

    posted @ 2007-06-29 00:19 Vincent.Chen 閱讀(558) | 評論 (0)編輯 收藏

    Look'N'Stop規則包

    確實很強大,提供網上的規則包下載
    Lns規則20060614.rar
    wifi_secure

    posted @ 2007-06-07 00:01 Vincent.Chen 閱讀(4574) | 評論 (1)編輯 收藏

    WebWork學習小記

    1、集成各種view
    推薦直接使用 result type 集成
    2、在集成freemarker時候需要注意:
    ? 1)<#assign ww=JspTaglibs["/WEB-INF/lib/webwork.tld"] />已不用因為webwork2.2的freemarker的tag支持是內置的,
    ? 2)${wwUtil}已換成${webwork}
    3、使用sitemesh時,一般推薦使用其PageFilter得擴展。
    ? 1)Velocity:VelocityPageFilter
    ? 2)Freemarker:
    FreeMarkerPageFilter
    ? 3)ActionContextCleanUp的作用是告訴會通知FilterDispatcher在正確的時間清除請求.否則,ActionContext將在SiteMesh修飾器訪問數據之前被清除.
    ? ∴ 使用的時候web.xml加聲明(順序很重要)
    <filter>
    <filter-name>webwork-cleanup</filter-name>
    <filter-class>
    ?? com.opensymphony.webwork.dispatcher.ActionContextCleanUp
    </filter-class>
    </filter>
    <filter>
    <filter-name>sitemesh</filter-name>
    <!--?此處的XXX為Velocity或FreeMarker,根據實際而定?-->
    <filter-class>com.opensymphony.webwork.sitemesh.XXXPageFilter</filter-class>
    </filter>
    <filter>
    <filter-name>webwork</filter-name>
    <filter-class>com.opensymphony.webwork.dispatcher.FilterDispatcher</filter-class>
    </filter>

    <filter-mapping>
    <filter-name>webwork-cleanup</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>sitemesh</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>webwork</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>

    posted @ 2006-06-04 17:02 Vincent.Chen 閱讀(793) | 評論 (0)編輯 收藏

    關于ResultSet的關閉問題

    在Connection上調用close方法會關閉Statement和ResultSet嗎?

    級聯的關閉這聽起來好像很有道理,而且在很多地方這樣做也是正確的,通常這樣寫
    Connection con = getConnection();//getConnection is your method
    PreparedStatement ps = con.prepareStatement(sql);
    ResultSet rs = ps.executeQuery();
    ……
    ///rs.close();
    ///ps.close();
    con.close();  // NO!
    這 樣做的問題在于Connection是個接口,它的close實現可能是多種多樣的。在普通情況下,你用 DriverManager.getConnection()得到一個Connection實例,調用它的close方法會關閉Statement和 ResultSet。但是在很多時候,你需要使用數據庫連接池,在連接池中的得到的Connection上調用close方法的時候,Connection可能并沒有被釋放,而是回到了連接池中。它以后可能被其它代碼取出來用。如果沒有釋放Statement和ResultSet,那么在Connection上沒有關閉的Statement和ResultSet可能會越來越多,那么……
    相反,我看到過這樣的說法,有人把Connection關閉了,卻繼續使用ResultSet,認為這樣是可以的,引發了激烈的討論,到底是怎么回事就不用我多說了吧。

    所以我們必須很小心的釋放數據庫資源,下面的代碼片斷展示了這個過程

    Connection con = null;
    PreparedStatement ps = null;
    ResultSet rs = null;

    try {
        con = getConnection();//getConnection is your method
        ps = con.prepareStatement(sql);
        rs = ps.executeQuery();
        ///...........
    }
    catch (SQLException ex) {
        ///錯誤處理
    }
    finally{
        try {
            if(ps!=null)
                ps.close();
        }
        catch (SQLException ex) {
            ///錯誤處理
        }
        try{
            if(con!=null)
                con.close();
        }
        catch (SQLException ex) {
            ///錯誤處理
        }
    }

    很麻煩是不是?但為了寫出健壯的程序,這些處理是必須的。



    上面這東西講得真是精辟。

    posted @ 2006-03-15 23:15 Vincent.Chen 閱讀(4368) | 評論 (0)編輯 收藏

    custom swt widgets, a list...(轉)

    Everybody knows that the basic native widgets in swt lack a lot of flexibility and features. An approach to solve these shortcomings is to build custom swt widgets that do not rely on native widgets but are custom drawn - the same approach that swing took. A good example is KTable. The custom swt widgets - custom drawn and aggergated native ones - I currently know of are:

    • swtplus: http://swtplus.textdriven.com/
      • PGroup: an expandable group widget
      • PLink: an image hyperlink widget
    • Jaret: http://www.jaret.de/index.html
      • timebars: a widget showing intervals in a Gantt chart. The widget implementation is combined for JFC/Swing and the SWT toolkit. Learn more about the timebar widget and it's features here. LICENSE: GPL (commercial license available)
      • table: custom drawn table widget for the SWT toolkit.
      • datechooser: a widget for selecting dates in a classical drop down style featuring the display of holidays and other special days. Learn more
    • novocode: http://www.novocode.com/swt/
      • CustomSeparator: Instances of this class are non-native separator lines.
      • FramedComposite: Instances of this class are composites with a border around the contents.
      • Hyperlink: A hyperlink text label.
      • LiveSashForm: Like a regular SashForm, the LiveSashForm lays out its children in a Row or Column
      • SizeGrip: A non-native size grip which looks (and almost feels) like the native Win32 size grip.
    • Ktable: http://sourceforge.net/projects/ktable
      • KTable is a custom SWT table widget that provides a flexible grid of cells to display data. Since it is custom-drawn, it does not have the restrictions of the native SWT Table control.
    • Gface: http://gface.sourceforge.net/
      • Search Box - Searchable drop-down list
      • Date Picker - UI widget for visually picking a day in a month.
      • Date Combo - Combo box that opens the date picker to select date
      • Hour Selection Combo - CCombo to select hour in a day
    • SWT Dock: http://tweetypie.doc.ic.ac.uk/~jr200/twiki/bin/view/SWTDock/WebHome
      • Eclipse Docking API (2.1) ported back to Java from .NET.

    posted @ 2006-02-21 22:39 Vincent.Chen 閱讀(1088) | 評論 (0)編輯 收藏

    一個高效簡潔的Struts分頁方法

     

    posted @ 2006-02-14 21:27 Vincent.Chen 閱讀(584) | 評論 (0)編輯 收藏

    XSL 學習筆記 —— 中級篇

      

    posted @ 2006-02-14 21:26 Vincent.Chen 閱讀(509) | 評論 (0)編輯 收藏

    XSL 學習筆記 —— 基礎篇

     

    posted @ 2006-02-14 21:24 Vincent.Chen 閱讀(571) | 評論 (0)編輯 收藏

    GOOGLE挑戰賽練習題1及答案(200分)

     

    posted @ 2006-02-14 21:23 Vincent.Chen 閱讀(672) | 評論 (0)編輯 收藏

    GOOGLE挑戰賽練習題2及答案(500分)

     

    posted @ 2006-02-14 21:18 Vincent.Chen 閱讀(597) | 評論 (0)編輯 收藏

    如何把awt或者swing的UI生成一個圖形文件

     

    posted @ 2006-02-14 21:17 Vincent.Chen 閱讀(389) | 評論 (0)編輯 收藏

    三步搞定!水貨商坦言IBM本本驗貨指南

     

    posted @ 2006-02-14 21:16 Vincent.Chen 閱讀(342) | 評論 (0)編輯 收藏

    GOOGLE挑戰賽練習題3及答案(1000分)

     

    posted @ 2006-02-14 21:15 Vincent.Chen 閱讀(374) | 評論 (0)編輯 收藏

    關于分頁設計的一些做法

     

    posted @ 2006-02-14 21:12 Vincent.Chen 閱讀(340) | 評論 (0)編輯 收藏

    JDBC實現oracle blob 出庫入庫


    posted @ 2006-02-14 21:02 Vincent.Chen 閱讀(497) | 評論 (0)編輯 收藏

    https相關


    posted @ 2006-02-14 21:01 Vincent.Chen 閱讀(303) | 評論 (0)編輯 收藏

    學習Log4J筆記(轉)

     

    posted @ 2006-02-13 18:19 Vincent.Chen 閱讀(343) | 評論 (0)編輯 收藏

    KMplayer常見問題整理

     

    posted @ 2006-02-12 22:55 Vincent.Chen 閱讀(499) | 評論 (0)編輯 收藏

    Velocity用戶手冊---中文版

     

    posted @ 2006-02-12 12:59 Vincent.Chen 閱讀(514) | 評論 (0)編輯 收藏

    在網上看到華為java的面試題

     

    posted @ 2006-02-12 11:10 Vincent.Chen 閱讀(1043) | 評論 (1)編輯 收藏

    昨天收到的email(轉:還蠻搞笑)

    本郵件為公益郵件,非營利。隨緣而發,若您有緣收到,讀完全文,心生歡喜,那是您與佛有緣;如果您能將此郵件轉發給10個以上的好友,讓益世文選流通世上,您將得蒙菩薩慈護,福壽綿延,家運日隆
    閱讀全文

    posted @ 2006-02-12 11:08 Vincent.Chen 閱讀(442) | 評論 (0)編輯 收藏

    prototype.js開發筆記

    Prototype是什么?

    或許你還沒有用過它, prototype.js 是一個由Sam Stephenson寫的JavaScript包。這個構思奇妙編寫良好的一段兼容標準的一段代碼將承擔創造胖客戶端, 高交互性WEB應用程序的重擔。輕松加入Web 2.0特性。

    如果你最近體驗了這個程序包,你很可能會發現文檔并不是它的強項之一。像所有在我之前的開發者一樣,我只能一頭扎進prototype.js的源代碼中并且試驗其中的每一個部分。 我想當我學習他的時候記寫筆記然后分享給其他人將會很不錯。

    查看全文

    posted @ 2006-02-12 11:06 Vincent.Chen 閱讀(413) | 評論 (0)編輯 收藏

    prototype1.3.1源代碼解讀

     

    posted @ 2006-02-12 11:04 Vincent.Chen 閱讀(428) | 評論 (0)編輯 收藏

    竹筍炒肉之Junit學習筆記(轉)

    JUnit是由 Erich Gamma 和 Kent Beck 編寫的一個回歸測試框架(regression testing framework),供Java開發人員編寫單元測試之用。

    查看全文


    posted @ 2006-02-12 10:53 Vincent.Chen 閱讀(432) | 評論 (0)編輯 收藏

    MySQL的配置與使用

    1、??? 啟動 MySQL

    c:\mysql\bin\ 下運行 winmysqladmin 啟動

    2、??? 登錄 MySQL

    初始情況下默認登錄用戶名 root ,密碼為空。

    c:\mysql\bin 下運行 mysql -uroot 即可。當我們新建用戶之后按以下方式:

    mysql -h(hostname) -u(username) -p(password)

    3、??? 使用數據庫

    初始安裝之后有一個保存系統表的數據庫—— mysql ,使用以下命令可以訪問數據庫

    use mysql;

    4、??? 新建 MySQL 用戶

    root 帳號登錄后,進入 mysql 數據庫,執行插入語句:

    insert into user (host,user,password) values('localhost','mysql',password('mysql'));

    insert into user (host,user,password) values('%','mysql',password('mysql'));

    flush privileges;

    ?

    這樣就為 MySQL 建立了一個名為 mysql ,密碼為 mysql 的用戶,第一個用于本地登錄,第二個用于遠程登錄。

    <! 注意 : user (host,user,password) 之間必須有空格隔開 >

    <! 注意 : values ('','','') 之間沒有空格隔開,字符串用單引號 >

    5、??? 新建數據庫

    create database test;

    6、??? 退出

    quit;

    7、??? 幾個有用的 SQL 命令:

    2??????? show databases :在剛登錄之后、使用數據庫之前查看現有數據庫;

    2??????? select database 顯示當前數據庫

    2??????? show tables 顯示當前數據庫中的所有表

    describe table_name :顯示某表的結構

    8、??? 備份與恢復

    mysqldump -u username -p --opt? dbname >backupfileName.sql :將數據庫dbname導出到 backupfileName.sql文件中

    mysql dbname < backupfileName.sql:做反向工作。



    posted @ 2006-02-09 00:06 Vincent.Chen 閱讀(714) | 評論 (2)編輯 收藏

    轉載:oracle中的函數

    Oracle已經內建了許多函數,不同的函數有不同的作用和用法,有的函數只能作用在一個記錄行上,有的能夠作用在多個記錄行上,不同的函數可能處理不同的數據類型。常見的有兩類,單行函數和分組函數 。

       查看全文

    posted @ 2006-01-18 00:34 Vincent.Chen 閱讀(529) | 評論 (0)編輯 收藏

    轉載:Tree2實踐

    通過一次小小的實踐,終于了解如何使用tomahawk中的tree2這個組件了,并且寫了小段程序,從xml中讀取樹的結構,生成一個tree,不過tree2不能直接和xml綁定是一個遺憾,那樣就會省不少事情了。記下一點心得,以供后來參考了。

             tree2的操作分為兩部分,一部分是在頁面中通過tag定義樣式相關的東西,一部分就是通過編程添加樹的節點,起初看了sample以后總是以為這東西有多么的復雜,其實邏輯是很簡單的,只是sample中定義了多種不同的樣式的節點,看上去很復雜而已。

    下面附上我對sample簡化過的這段tag來說明一下。

    <t:tree2 value="#{catalog.node}" var="node" id="clientside" varNodeToggler="t" >

        <f:facet name="folder">

            <h:panelGroup>

                <f:facet name="expand">

                    <t:graphicImage value="images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>

                </f:facet>

                <f:facet name="collapse">

                    <t:graphicImage value="images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>

                </f:facet>

                <h:outputText value="#{node.description}"/>

            </h:panelGroup>

        </f:facet>

    </t:tree2>

    tree2的主tag定義了tree的根節點和一些相關的參數。嵌套的那個facet定義了一種節點的樣式,包括展開與關閉時的圖片,以及顯示的文字內容。

    在程序里面,我們root TreeNodeBase = new TreeNodeBase(…)來創建一個root節點,然后通過root.getChildren().add(new TreeNodeBase(…))為其添加子節點,任何一個節點都可以添加任意多的子節點,通過這樣的操作,我們可以很容易的生成一個tree的結構了,實際上,這個tree的結構是通過遞歸從xml中讀取出來,生成一個和xml tree完全相同的結構。

    除了明白如何去用這個tree2之外的收獲就是,終于明白了如何去通過遞歸方法遍歷一個樹形結構,雖然在學校里學過遍歷的算法,也抄過例程,但從來沒有理解過是怎么一回事,終于在實踐中理解了,實踐才是軟件的根本之道。
       程序的其它部分放在附件里面了,如果有興趣了可以和我討論tree2,討論其它JSF的東西。

    源文件下載

    查看 解析Tree2 全文

    posted @ 2006-01-14 03:43 Vincent.Chen 閱讀(640) | 評論 (0)編輯 收藏

    高級 SQL(轉載:約束+觸發器)

    用約束和觸發器實施商業規則

    在商界,我們的確通常需要確保始終實施某些規則。例如,參與項目的雇員必須被雇用。或者想要某些事件有計劃地發生。例如,如果銷售員售出一批商品,則應增加其傭金。

    DB2 通用數據庫為此提供了一套有用的方法。 唯一約束是禁止在表的一列或多列中出現重復值的規則。 參考完整性約束確保在整個指定的表中數據一致性。 表檢查約束是一些條件,它們定義為表定義的一部分,限制一列或多列中使用的值。觸發器允許您定義一組操作,這些操作通過對指定的表進行刪除、插入或更新操作來執行或觸發。觸發器可用于寫入其他表、修改輸入值以及發布警報信息。

    查看全文

    posted @ 2006-01-10 23:42 Vincent.Chen 閱讀(608) | 評論 (0)編輯 收藏

    Eclipse 3 插件大全

    1.MyEclipse  J2EE開發插件,支持SERVLET/JSP/EJB/數據庫操縱等
    www.myeclipseide.com
     
    2.Properties Editor  編輯java的屬性文件,并可以自動存盤為Unicode格式
    http://propedit.sourceforge.jp/index_en.html
     
    3.Colorer Take  為上百種類型的文件按語法著色
    http://colorer.sourceforge.net/
     
    4.XMLBuddy 編輯xml文件
    www.xmlbuddy.com
     
    5.Code Folding  加入多種代碼折疊功能(比eclipse自帶的更多)
    http://www.coffee-bytes.com/servlet/PlatformSupport
     
    6.Easy Explorer  從eclipse中訪問選定文件、目錄所在的文件夾
    http://easystruts.sourceforge.net/
     
    7.Fat Jar 打包插件,可以方便的完成各種打包任務,可以包含外部的包等
    http://fjep.sourceforge.net/
     
    8.RegEx Test 測試正則表達式
    http://brosinski.com/stephan/archives/000028.php
     
    9.JasperAssistant 報表插件(強,要錢的)
    http://www.jasperassistant.com/
     
    10.Jigloo GUI Builder JAVA的GUI編輯插件
    http://cloudgarden.com/jigloo/
     
    11.Profiler 性能跟蹤、測量工具,能跟蹤、測量BS程序
    http://sourceforge.net/projects/eclipsecolorer/
     
    12.AdvanQas 提供對if/else等條件語句的提示和快捷幫助(自動更改結構等)
    http://eclipsecolorer.sourceforge.net/advanqas/index.html
     
    13.Log4E     Log4j插件,提供各種和Log4j相關的任務,如為方法、類添加一個logger等
    http://log4e.jayefem.de/index.php/Main_Page
     
    14.VSSPlugin VSS插件
    http://sourceforge.net/projects/vssplugin
     
    15.Implementors   提供跳轉到一個方法的實現類,而不是接中的功能(實用!)
    http://eclipse-tools.sourceforge.net/implementors/
     
    16.Call Hierarchy 顯示一個方法的調用層次(被哪些方法調,調了哪些方法)
    http://eclipse-tools.sourceforge.net/call-hierarchy/index.html
     
    17.EclipseTidy 檢查和格式化HTML/XML文件
    http://eclipsetidy.sourceforge.net/
     
    18.Checkclipse 檢查代碼的風格、寫法是否符合規范
    http://www.mvmsoft.de/content/plugins/checkclipse/checkclipse.htm
     
    19.Hibernate Synchronizer Hibernate插件,自動映射等
    http://www.binamics.com/hibernatesync/
     
    20.VeloEclipse  Velocity插件
    http://propsorter.sourceforge.net/
     
    21.EditorList   方便的列出所有打開的Editor
    http://editorlist.sourceforge.net/
     
    22.MemoryManager 內存占用率的監視
    http://cloudgarden.com/memorymanager/

    posted @ 2005-12-31 18:38 Vincent.Chen 閱讀(861) | 評論 (1)編輯 收藏

    主站蜘蛛池模板: 国产免费小视频在线观看| 亚洲区小说区激情区图片区| 美女羞羞喷液视频免费| 亚洲日本va中文字幕久久| 亚洲毛片免费视频| 国产亚洲美女精品久久| 国产成人A人亚洲精品无码| 中文字幕无码成人免费视频| 日韩a毛片免费观看| 亚洲第一二三四区| 亚洲国产精品成人| 国产精品免费精品自在线观看| 国产亚洲视频在线观看| 久久夜色精品国产噜噜噜亚洲AV| 国产一区二区三区免费在线观看| 国产精品免费高清在线观看| 亚洲av成人片在线观看| 亚洲av日韩av天堂影片精品| 四虎永久成人免费| 美女裸身网站免费看免费网站| 国产精品成人免费观看| 亚洲日韩乱码中文字幕| 久久丫精品国产亚洲av不卡| 亚洲精品A在线观看| 99视频在线精品免费观看6| 免费精品久久天干天干| 国产精品亚洲二区在线| 亚洲一级毛片免观看| 国产精品国产亚洲精品看不卡| 日批日出水久久亚洲精品tv| 久久国产免费福利永久| 在线观看特色大片免费网站| 黄色免费在线网址| 亚洲日本一线产区和二线| 亚洲精品视频在线播放| 亚洲午夜国产精品无码老牛影视| 免费国产一级特黄久久| 毛片免费在线视频| 在线看片v免费观看视频777 | 农村寡妇一级毛片免费看视频| 亚洲婷婷综合色高清在线|