Oo ' Smiling on Java ' oO

          從夢里回來,依然記得夢里有你...

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            8 隨筆 :: 0 文章 :: 10 評論 :: 0 Trackbacks

          2006年11月1日 #

          (Lucene Side)Heritrix & Nutch

          http://crawler.archive.org/
          ?

          http://crawler.archive.org/downloads.html

          http://lucene.apache.org/nutch/

          .http://bbs.langsin.com/viewthread.php?tid=7512

          posted @ 2008-09-16 17:11 Jwin| 編輯 收藏

               摘要: 讀取FTP服務器文件到本地  閱讀全文
          posted @ 2007-12-14 00:44 Jwin 閱讀(561) | 評論 (0)編輯 收藏

               摘要: POI讀取excel內(nèi)容,并將內(nèi)容輸出到xml中.  閱讀全文
          posted @ 2007-12-11 23:28 Jwin 閱讀(2230) | 評論 (1)編輯 收藏

          01. 不說"不可能"三個字.
          02. 凡事第一反應:找方法,而不是找借口.   
          03. 遇到挫折對自己大聲說:太棒了!   
          04. 不說消極的話,不落入消極情緒,一旦出現(xiàn)立即正面處理  
          05. 凡事先訂立目標,并且盡量制作"夢想版".   
          06. 凡事預先作計劃,盡量將目標視覺化.   
          07. 工作時間.每一分,每一秒都做有利于生產(chǎn)的事情.   
          08. 隨時用零碎的時間(如等人、排隊等)做零碎的事情.   
          09. 守時.   
          10. 寫下來,不要太依靠腦袋記憶.   
          11. 隨時記錄靈感.   
          12. 把重要的觀念,方法寫下來,并貼起來,以隨時提示自己.
          13. 走路比平時快30%,走路時腳尖稍用力推進,肢體語言健康有力,不懶 散,萎靡.
          14. 每天出門照鏡子,給自己一個自信的微笑.   
          15. 每天自我反省一次.   
          16. 每天堅持一次運動.   
          17. 聽心跳一分鐘,指在做重要事情前,疲勞時,心情煩躁時,緊張時.   
          18. 開會坐在前排.   
          19. 微笑.   
          20. 用心傾聽,不打斷對方說話.   
          21. 說話時聲音有力.感覺自己聲音似乎能產(chǎn)生有感染力的磁場.
          22. 說話之前,先考慮一下對方的感受.   
          23. 每天有意識,真誠地贊美別人三次以上.   
          24. 及時寫感謝卡,哪怕是用便箋寫.   
          25. 不用訓斥,指責的口吻跟別人說話.   
          26. 控制住不要讓自己做出為自己辯護的第一反應.   
          27. 每天做一件"分外事".  
          28. 不管任何方面,每天必須至少做一次"進步一點點".   
          29. 每天提前15分鐘上班,推遲30分鐘下班.   
          30. 每天在下班前用5 分鐘的時間做一天的整理工作.   
          31. 定期存錢.   
          32. 節(jié)儉.   
          33. 時常運用"頭腦風暴".   
          34. 恪守誠信,說到做到.
          35. I am the best One!!!

          覺得好有道理...我也會盡量做到的...
          posted @ 2006-11-26 17:23 Jwin 閱讀(235) | 評論 (0)編輯 收藏

          (轉(zhuǎn)自:JavaEye:原文網(wǎng)址http://yongzhao.javaeye.com/blog/27372)
          Spring英文資源
          Spring官方網(wǎng)站
          http://www.springframework.org/

          Spring專業(yè)網(wǎng)站
          http://www.springframework.com/

          Spring 社區(qū)
          http://www.thespringexperience.com

          SourceForge Spring項目網(wǎng)址
          http://sourceforge.net/projects/springframework/

          Spring論壇
          http://forum.springframework.org/

          Spring郵件列表
          http://sourceforge.net/mail/?group_id=73357

          Spring Confluence
          http://opensource.atlassian.com/confluence/spring

          Introducing to Spring Framework
          http://www.theserverside.com/articles/article.tss?l=SpringFramework

          CKNY's Very Quick Wiki
          http://ckny.eatj.com/wiki/jsp/Wiki?Spring

          Spring中文資源
          Spring中文論壇
          http://spring.jactiongroup.net

          Introducing to Spring Framework(中文版)
          http://spring.jactiongroup.net/viewtopic.php?t=453

          Spring開發(fā)指南
          http://www.xiaxin.net/Spring_Dev_Guide.rar

          Spring相關(guān)個人
          Rod Johnson,Spring之父
          個人介紹:http://www.springframework.com/people/rod.html
          blog:http://blog.springframework.com/rod/

          Juergen Hoeller,Spring協(xié)同創(chuàng)始人
          個人介紹:http://www.springframework.com/people/juergen.html
          blog:http://blog.springframework.com/juergen/

          Bruce Tate,知名Java/Spring圖書作者
          個人介紹:http://www.springframework.com/people/bruce.html
          blog:http://today.java.net/pub/au/186

          Colin Sampaleanu,Spring核心成員
          個人介紹:http://www.springframework.com/people/colin.html
          blog:http://blog.exis.com/colin/

          Keith Donald,Spring核心成員,Spring Rich Client Project的創(chuàng)建者
          個人介紹:http://www.springframework.com/people/keith.html
          blog:http://jroller.com/page/kdonald

          Alef Arendsen
          個人介紹:http://www.springframework.com/people/alef.html

          Spring Live,《Spring Live》作者的Blog
          http://jroller.com/page/raible

          Craig's stack trace,《Spring in action》作者的blog
          http://jroller.com/page/habuma

          Spring子項目
          Spring Rich Client Project
          http://sourceforge.net/projects/spring-rich-c

          Spring IDE for Eclipse
          http://www.springframework.org/spring-ide/eclipse/

          Spring相關(guān)項目
          Spring For .NET
          http://www.springframework.net/

          Acegi Security System
          http://acegisecurity.sourceforge.net/

          JSF-Spring
          http://jsf-spring.sourceforge.net/

          Spring-Validator
          http://sourceforge.net/projects/js-validation/

          posted @ 2006-11-17 11:28 Jwin 閱讀(521) | 評論 (0)編輯 收藏

          ??????這兩天在回來寫一些業(yè)務代碼的時候,發(fā)現(xiàn)需要一個需要獲得表的記錄數(shù),其實可以通過循環(huán)獲得,不過,那也是實在效率低的可憐。因為之前沒有用過,現(xiàn)在用起來,還真是有點小問題,起初使用JDBC,都是使用 預編譯方式PreparedStatement執(zhí)行SQL語句的,發(fā)現(xiàn)rs.last()不能用,那當然rs.getRow()也得不到數(shù)據(jù)記錄數(shù)啦。然后問了朋友半天,發(fā)現(xiàn)還有個 Statement ,蠻好用的,實現(xiàn)對數(shù)據(jù)庫的一般查詢。
          ????? 一、不帶參的:
          ??????Statement stmt=con.createStatement();
          ??????ResultSet rs=stmt.executeQuery("select * from DBTableName");?
          ????? 以上這種方式是可行的,但是就需要獲得記錄數(shù)來說,這個實現(xiàn)起來恐怕還是有點麻煩,那么就需要來個帶參的:Statement stmt =?
          ????? con.createStatement(?ResultSet.TYPE_SCROLL_INSENSITIVE,?ResultSet.CONCUR_READ_ONLY);
          ????? ResultSet rs=stmt.executeQuery("select * from DBTableName");?
          ????? 這樣就能夠很輕松的得到一個記錄集行數(shù)了。
          ????? 至于以上取值方式和PreparedStatement是一樣的,就不說了。。。
          ????? 具體的實現(xiàn)方式:只要把連接驅(qū)動修改一下,就可以直接運行。我睡覺去了。。
          ????? 如果要看具體點的可以點擊這里啦...

          ?1 package ?sqlpersistent;
          ?2
          ?3 import ?java.sql.Connection;
          ?4 import ?java.sql.DriverManager;
          ?5 import ?java.sql.ResultSet;
          ?6 import ?java.sql.Statement;
          ?7
          ?8 public ? class ?GetCountTest
          ?9 {
          10 ????Connection?con = null ;
          11 ???? public ?GetCountTest()? throws ?Exception?
          12 ???? {
          13 ????????Class.forName( " com.microsoft.jdbc.sqlserver.SQLServerDriver " ); // 連接驅(qū)動
          14 ????????con? = ?DriverManager.getConnection( " jdbc:microsoft:sqlserver://localhost:1433;databaseName=[YourDataBaseName] " , " [User] " ,? " [Password] " ); // 連接數(shù)據(jù)庫,此處使用microsoft的????
          15 ????}

          16 ????
          17 ???? public ? static ? int ?getUserCount()?
          18 ???? {
          19 ????????String?sql? = ? " select?*?from?[YourTableName] " ;?
          20 ???????? try
          21 ???????? {
          22 ????????????Statement?stmt? = ? new ?GetCountTest().con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY); // 第一個參數(shù)是:游標類型,可以自由的前后滾動;第二個是設置只讀????????????
          23 ????????????ResultSet?rs? = ?stmt.executeQuery(sql); // 執(zhí)行SQL,返回結(jié)果集????????????
          24 ???????????? while ?(rs.next())
          25 ???????????? {
          26 ????????????????rs.last(); // 移動到最后一行
          27 ???????????????? return ?rs.getRow(); // 獲得當前行號:此處即為最大記錄數(shù)
          28 ????????????}
          ????????????
          29 ????????}

          30 ???????? catch ?(Exception?e)
          31 ???????? {
          32 ????????????e.printStackTrace();????????????
          33 ????????}

          34 ???????? return ? - 1 ;
          35 ????}

          36 ???? public ? static ? void ?main(String[]?args)
          37 ???? {
          38 ????????System.out.println( " 返回的記錄數(shù): " + getUserCount());
          39 ????}
          ????
          40 }

          41


          ?

          posted @ 2006-11-07 01:46 Jwin 閱讀(7931) | 評論 (9)編輯 收藏

          ?????????今天寫了個J2EE小小的Demo,雖然基本框架還是那個樣子,不過發(fā)現(xiàn)這段時間對_Net的學習還是沒有白費,至少,今天寫的東西規(guī)范了很多.命名和重構(gòu)這些以前不注意的現(xiàn)在都改了,感覺代碼看起來舒服多了...
          ?????????代碼規(guī)范點就是不錯....
          ?????????明天還得寫OA....用NHibernate+Spring.Net....郁悶

          posted @ 2006-11-04 23:58 Jwin 閱讀(294) | 評論 (0)編輯 收藏

          嗯!今天終于在這里安家了!找到了這么一個好地方,以后就是你了....
          Are you feeling somebody with black eyes staring at you outside the window?
          If so,congratulations upon you!
          Today ,ghosts are around you!
          Have a nice Halloween!
          現(xiàn)在就先不說什么啦,見諒啦! 因為明天還要面試哦....
          smile,smile...

          posted @ 2006-11-01 21:56 Jwin 閱讀(284) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 溧水县| 恩施市| 喀喇沁旗| 繁峙县| 白朗县| 青阳县| 任丘市| 金溪县| 海口市| 惠东县| 荆州市| 宜黄县| 昌乐县| 静安区| 富裕县| 张家口市| 承德市| 施秉县| 延津县| 定州市| 云南省| 三台县| 大安市| 永仁县| 建始县| 巴楚县| 丰城市| 那曲县| 寿阳县| 政和县| 简阳市| 昌黎县| 太康县| 百色市| 东乌| 中超| 抚顺县| 抚顺市| 密云县| 怀柔区| 韩城市|