2010年4月18日

               摘要: 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) | 評(píng)論 (0)編輯 收藏

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

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

               摘要: 使用Apache的HTTPCLIENT獲取網(wǎng)頁(yè)的內(nèi)容  閱讀全文

          posted @ 2010-07-28 20:27 祝嘉 閱讀(328) | 評(píng)論 (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 祝嘉 閱讀(554) | 評(píng)論 (0)編輯 收藏

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

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

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

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

          posted @ 2010-05-15 13:19 祝嘉 閱讀(364) | 評(píng)論 (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 祝嘉 閱讀(378) | 評(píng)論 (0)編輯 收藏

               摘要: Eclipse在Ubuntu9.10(或其他Linux系統(tǒng))中運(yùn)行時(shí),經(jīng)常會(huì)出現(xiàn)鼠標(biāo)點(diǎn)擊按鈕無(wú)效需要鍵盤(pán)的enter鍵才可以的情況。首先這是一個(gè)bug,出現(xiàn)這種情況的原因是新版本的GTK和eclipse沖突。解決辦法如下:
          在eclipse目錄下建一個(gè)eclipse-patch文件,在該文件中加入如下代碼
          #!/bin/bash
          export GDK_NATIVE_WINDOWS=true
          /你的eclipse目錄/eclipse  閱讀全文

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

          主站蜘蛛池模板: 台山市| 屏边| 肇庆市| 贵州省| 遂昌县| 庄浪县| 长寿区| 连城县| 贵州省| 松阳县| 梁平县| 霍城县| 锡林浩特市| 瓮安县| 秦皇岛市| 古田县| 来宾市| 稻城县| 武威市| 原平市| 富裕县| 清水河县| 林甸县| 刚察县| 元江| 巴青县| 上虞市| 南开区| 措美县| 武强县| 三原县| 望江县| 罗甸县| 滦南县| 周口市| 丘北县| 东丽区| 侯马市| 河池市| 钦州市| 阿克陶县|