2009年10月9日

               摘要: Read on to see how to add Subversion support to Eclipse and how to perform basic version-control activities from the IDE.  閱讀全文

          posted @ 2010-08-01 15:57 祝嘉 閱讀(376) | 評論 (0)編輯 收藏

               摘要: 通常許多web資源是面向登錄用戶的,如果我們想利用程序自動獲取,則必須要通過程序登錄之後才能實現。java本身提供的標準庫也可以實現客戶端的登錄,但是卻不能自動管理服務器返回的cookie,必須手動管理。這個是十分麻煩和繁瑣的。幸好有APACHE 的 HTTPCLIENT,我們不必在擔心如何管理cookie。所以用hc登錄,獲取資源都是十分簡單和方便的。在這裡用一段源碼記錄如何使用hc等錄一個website,以及如何通過代理登錄和通過代理訪問頁面。  閱讀全文

          posted @ 2010-07-29 10:54 祝嘉 閱讀(448) | 評論 (0)編輯 收藏

               摘要: 使用Apache的HTTPCLIENT獲取網頁的內容  閱讀全文

          posted @ 2010-07-28 20:27 祝嘉 閱讀(329) | 評論 (0)編輯 收藏

               摘要: The PatternLayout is by far the most widely used log4j layout. It formats logging events according to a conversion pattern specified by the user. Conversion patterns are composed of literal text and conversion specifiers. Literal text is output as is. Conversion specifiers consist of the % character followed by an optional format modifier and a mandatory conversion character. For example, %-5p [%t]: %m%n is a conversion pattern composed of a priority (a.k.a. level) conversion specifier followed   閱讀全文

          posted @ 2010-07-28 18:50 祝嘉 閱讀(556) | 評論 (0)編輯 收藏

               摘要: export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'  閱讀全文

          posted @ 2010-07-11 23:51 祝嘉 閱讀(625) | 評論 (0)編輯 收藏

               摘要: ubuntu下的java中文字體文件名為uming.ttc,而不是通用的uming.ttf,解決方法就是為uming.ttc建一個軟鏈接。
          $cd /usr/share/fonts/truetype/arphic/
          $sudo ln -s uming.ttc uming.ttf  閱讀全文

          posted @ 2010-07-10 09:35 祝嘉 閱讀(519) | 評論 (0)編輯 收藏

          posted @ 2010-05-15 13:19 祝嘉 閱讀(365) | 評論 (0)編輯 收藏

               摘要: the approach of writing clone method is:
          1.Implements Cloneable interface
          2.Override the clone method
          2.1 Make the clone method to public method
          2.2 Call super.clone() to produce the new object
          2.3 Clone members  閱讀全文

          posted @ 2010-04-21 10:51 祝嘉 閱讀(379) | 評論 (0)編輯 收藏

               摘要: Eclipse在Ubuntu9.10(或其他Linux系統)中運行時,經常會出現鼠標點擊按鈕無效需要鍵盤的enter鍵才可以的情況。首先這是一個bug,出現這種情況的原因是新版本的GTK和eclipse沖突。解決辦法如下:
          在eclipse目錄下建一個eclipse-patch文件,在該文件中加入如下代碼
          #!/bin/bash
          export GDK_NATIVE_WINDOWS=true
          /你的eclipse目錄/eclipse  閱讀全文

          posted @ 2010-04-18 13:04 祝嘉 閱讀(414) | 評論 (0)編輯 收藏

               摘要: 首先是get方式提交亂碼,修改tomcat的server.xml。在Connector節點添加URIEncoding="UTF-8"  閱讀全文

          posted @ 2010-03-24 10:55 祝嘉 閱讀(809) | 評論 (0)編輯 收藏

          posted @ 2010-03-19 14:15 祝嘉 閱讀(937) | 評論 (0)編輯 收藏

               摘要: 在一般默認的情況下,在linux下安裝netbeans中文版,你會看到好多小方框。
            閱讀全文

          posted @ 2009-12-31 12:21 祝嘉 閱讀(308) | 評論 (0)編輯 收藏

               摘要: 當JDK更新安裝路徑改變后,修改NetBeans的默認jdk路徑  閱讀全文

          posted @ 2009-12-28 23:52 祝嘉 閱讀(5226) | 評論 (0)編輯 收藏

          posted @ 2009-12-15 12:48 祝嘉 閱讀(105) | 評論 (0)編輯 收藏

               摘要: 所有類型的 Java 應用程序一般都需要計劃重復執行的任務。企業應用程序需要計劃每日的日志或者晚間批處理過程。一個 J2SE或者 J2ME 日歷應用程序需要根據用戶的約定計劃鬧鈴時間。不過,標準的調度類 Timer 和 TimerTask 沒有足夠的靈活性,無法支持通常需要的計劃任務類型。在本文中,Java 開發人員 Tom White 向您展示了如何構建一個簡單通用的計劃框架,以用于執行任意復雜的計劃任務。  閱讀全文

          posted @ 2009-12-15 12:14 祝嘉 閱讀(347) | 評論 (0)編輯 收藏

          posted @ 2009-12-14 13:14 祝嘉 閱讀(1077) | 評論 (0)編輯 收藏

          posted @ 2009-11-15 10:18 祝嘉 閱讀(3523) | 評論 (0)編輯 收藏

          posted @ 2009-11-02 23:20 祝嘉 閱讀(1496) | 評論 (1)編輯 收藏

          posted @ 2009-10-24 23:44 祝嘉 閱讀(234) | 評論 (0)編輯 收藏

          posted @ 2009-10-17 09:37 祝嘉 閱讀(101) | 評論 (0)編輯 收藏

          posted @ 2009-10-09 22:52 祝嘉 閱讀(250) | 評論 (0)編輯 收藏

          posted @ 2009-10-09 16:14 祝嘉 閱讀(370) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 灯塔市| 当涂县| 射阳县| 云龙县| 景泰县| 长沙县| 东丽区| 浑源县| 泰州市| 类乌齐县| 东港市| 龙岩市| 沈丘县| 黔江区| 湛江市| 商水县| 辽阳县| 葫芦岛市| 齐齐哈尔市| 双峰县| 蒙城县| 张家港市| 镇坪县| 滨州市| 房产| 社旗县| 海城市| 浪卡子县| 肃宁县| 泸州市| 庄浪县| 肥西县| 乐山市| 庆阳市| 锦州市| 阳城县| 闵行区| 长乐市| 乾安县| 海城市| 三江|