Oo ' Smiling on Java ' oO

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

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

          2006年11月4日 #

          (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內容,并將內容輸出到xml中.  閱讀全文
          posted @ 2007-12-11 23:28 Jwin 閱讀(2230) | 評論 (1)編輯 收藏

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

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

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

          Spring專業網站
          http://www.springframework.com/

          Spring 社區
          http://www.thespringexperience.com

          SourceForge Spring項目網址
          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開發指南
          http://www.xiaxin.net/Spring_Dev_Guide.rar

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

          Juergen Hoeller,Spring協同創始人
          個人介紹: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的創建者
          個人介紹: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相關項目
          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)編輯 收藏

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

          ?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 " ); // 連接驅動
          14 ????????con? = ?DriverManager.getConnection( " jdbc:microsoft:sqlserver://localhost:1433;databaseName=[YourDataBaseName] " , " [User] " ,? " [Password] " ); // 連接數據庫,此處使用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); // 第一個參數是:游標類型,可以自由的前后滾動;第二個是設置只讀????????????
          23 ????????????ResultSet?rs? = ?stmt.executeQuery(sql); // 執行SQL,返回結果集????????????
          24 ???????????? while ?(rs.next())
          25 ???????????? {
          26 ????????????????rs.last(); // 移動到最后一行
          27 ???????????????? return ?rs.getRow(); // 獲得當前行號:此處即為最大記錄數
          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( " 返回的記錄數: " + getUserCount());
          39 ????}
          ????
          40 }

          41


          ?

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

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

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

          主站蜘蛛池模板: 漠河县| 遵义市| 兴化市| 江永县| 页游| 遵义县| 邹城市| 紫阳县| 康定县| 温州市| 淮阳县| 满洲里市| 红原县| 车险| 黄骅市| 浑源县| 日土县| 襄垣县| 孙吴县| 土默特右旗| 郧西县| 咸宁市| 寻乌县| 襄垣县| 镇雄县| 丹棱县| 郓城县| 仙游县| 铁岭市| 渝北区| 咸丰县| 峨边| 固始县| 科技| 聊城市| 革吉县| 措勤县| 焉耆| 文化| 慈利县| 江永县|