MDA/MDD/TDD/DDD/DDDDDDD
          posts - 536, comments - 111, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          公告

          一些零碎的筆記,希望能對你有用處。


          搜索

          •  

          積分與排名

          • 積分 - 597526
          • 排名 - 80

          最新評論

          Lucene是作為嵌入式的工具包的形式出現的,在核心代碼上沒有提供對群集的支持。實現對Lucene的群集有三種方式:1、繼承實現一個Directory;2、使用Solr 3、使用 Nutch+Hadoop;使用Solr你不得不用他的Index Server ,而使用Nutch你又不得不集成抓取的模塊;
          不選擇使用lucene的6大原因 http://forchenyun.javaeye.com/blog/473779

          Lucene集群? lucene in a cluster
          http://blog.csdn.net/jsea/archive/2006/06/16/803043.aspx
          http://hi.baidu.com/lucenehc/blog/item/4d83c387881ea22fc65cc3a1.html

          Compass的Lucene Jdbc Directory implementation
          Compass simplifies the creation of distributed Lucene index by allowing to store the Lucene index in a database, as well as storing the index simply with Data Grid products such as GigaSpaces, Coherence? and Terracotta
          這部分代碼完全獨立于Compass 的其他模塊,可以使用在純Lucene實現的環境中
          http://robbank.blogbus.com/logs/3509279.html
          http://robbank.blogbus.com/logs/4698460.html

          solr本身支持分布式索引,是利用rsync來做的
          http://paradise-qingfeng.javaeye.com/blog/123673

          Nut是一個Lucene+Hadoop分布式搜索框架
          http://code.google.com/p/nutla/
          http://www.aygfsteel.com/nianzai/


          Nutch 0.9版中,分布式搜索的核心部分只用了不到1000行代碼就搞定了。
          clustering是把查詢請求分發到多臺計算機上,主要是解決并發量的問題。
          Distributed指的是多臺計算機并行處理一個查詢請求,使單個請求的檢索時間降低
          http://lucene-group.group.javaeye.com/group/topic/8983


          談談Hadoop和分布式 Lucene http://www.chinacloud.cn/show.aspx?id=50&cid=12


          1,Doug Cutting (Lucene-Nutch-Hadoop 創始人簡介)http://zhutuncun0.javaeye.com/blog/746019
          2,luke,lucene索引查看工具 http://code.google.com/p/luke/
          3,Alfresco? 看看這種CMS在集群環境下如何使用lucene
          ?? http://wiki.alfresco.com/wiki/Cluster_Configuration_V2.1.3_and_Later#Lucene_index_synchronization

          posted @ 2010-11-19 17:37 leekiang 閱讀(3230) | 評論 (0)編輯 收藏

          ?? 第三方應用通過以下四個步驟來完成認證授權并訪問或修改受限資源
          ?? 1. 獲取未授權的Request Token
          ?? 2. 請求用戶授權Request Token
          ?? 3. 使用授權后的Request Token換取Access Token
          ?? 4. 使用 Access Token 訪問或修改受保護資源
          ? ?
          ? ?
          ? ?
          ? ?
          ? ?
          ?? http://www.williamlong.info/archives/2185.html
          ?? http://www.douban.com/service/apidoc/auth
          ?? http://haolloyin.blog.51cto.com/1177454/412445
          ?? http://haolloyin.blog.51cto.com/1177454/410776
          ?? http://blog.csdn.net/hereweare2009/archive/2009/03/08/3968582.aspx
          ?? http://tools.ietf.org/html/rfc5849

          posted @ 2010-11-18 14:12 leekiang 閱讀(243) | 評論 (0)編輯 收藏

          1,ORM 層將數據庫表映射到類、將記錄映射到對象、將字段映射到對象的屬性。
          類方法用于執行表級別的操作,實例方法則用于執行針對單條記錄的操作。
          2,Action Pack包含了視圖和控制器
          3,rails有三種方式創建動態的模板,其一是使用“構建器”(Builder)這種技術,
          其二是將Ruby代碼嵌入模板中,第三種是rjs在服務器端動態產生js
          4,<% 3.times do %>
          Ho!<br />
          <% end %>
          Merry Christmas!
          <% 3.times do %> 會輸出空格,而<% 3.times do -%> 不會
          5,Rails 的輔助方法h()用于對html符號轉碼
          6,如果貨品的價格發生變化,那么已經下好的訂單不應該受到影響,因此每個訂單條目都應該反映下單時的貨品價格
          7,erb的content_for(:name)標簽里的內容可加到模板<%=yield :name%>所處位置
          8,敏捷書第三版上說金額不要用float字段,而要用decimal字段

          posted @ 2010-11-15 14:57 leekiang 閱讀(271) | 評論 (0)編輯 收藏

          當一個類已經很好的同步以保護它的數據時,這個類就稱為“線程安全的”。
          即使是線程安全類,也應該特別小心,因為操作的線程是間仍然不一定安全。

          import?java.util.Collections;
          import?java.util.LinkedList;
          import?java.util.List;

          public?class?TestThread?{
          ????
          public?static?void?main(String[]?args)?{
          ????????
          final?NameList?nl?=?new?NameList();
          ????????nl.add(
          "aaa");
          ????????
          class?NameDropper?extends?Thread?{
          ????????????
          public?void?run()?{
          ????????????????String?name?
          =?nl.removeFirst();
          ????????????????System.out.println(name);
          ????????????}
          ????????}
          ????????Thread?t1?
          =?new?NameDropper();
          ????????Thread?t2?
          =?new?NameDropper();
          ????????t1.start();
          ????????t2.start();
          ????}
          }

          class?NameList?{
          ????
          private?List?nameList?=?Collections.synchronizedList(new?LinkedList());

          ????
          public?void?add(String?name)?{
          ????????nameList.add(name);
          ????}
          ????
          public?String?removeFirst()?{//removeFirst方法必須同步
          ????????if?(nameList.size()?>?0)?{
          ????????????
          try?{
          ????????????????Thread.sleep(
          100);
          ????????????}?
          catch?(InterruptedException?e)?{
          ????????????????e.printStackTrace();
          ????????????}
          ????????????
          return?(String)?nameList.remove(0);
          ????????}?
          else?{
          ????????????
          return?null;
          ????????}
          ????}
          }



          http://lavasoft.blog.51cto.com/62575/99155

          posted @ 2010-11-15 13:53 leekiang 閱讀(297) | 評論 (0)編輯 收藏

          活用Dynamic Pannel(以下簡稱DP)
          DP的功能很強,幾乎是Axure里的靈魂了。這里介紹一個技巧,幫你系統條理的組織你的文件結構:
          在做RIA或者軟件產品的Prototype時,一般都有N個對話框要用。一般我們都是用 DP來做對話框,默認Hidden,事件觸發時再設為Visiable。
          這里的技巧是,把所有的對話框都做在一個DP里(不同的 State),事件觸發的時候在Set這個DP到相應的State。
          一般,對話框最深層疊是2-3層。我的做法是做3個DP,分別為“一級面板”、“二級面板”、“三級面板”,再把各個對話框做到各自層級的DP里去。
          有時候需要對話框的位置不是都在界面中心的,這里可以把這三個DP的尺寸調整為覆蓋整個界面,那么在編輯State的時候,把內容放在相應的位置即可。
          來源:http://slanyao.blog.163.com/blog/static/76880504201057112324406/

          posted @ 2010-11-11 13:45 leekiang 閱讀(375) | 評論 (0)編輯 收藏

          從“產品需求文檔”(PRD)到“產品設計文檔”(PDD)

          posted @ 2010-11-10 16:17 leekiang 閱讀(253) | 評論 (0)編輯 收藏

          用“看板圖”實現敏捷項目的可視化http://www.infoq.com/cn/articles/agile-kanban-boards
          敏捷項目管理工具初探http://www.yeeach.com/digg/story/20194

          posted @ 2010-11-01 11:53 leekiang 閱讀(364) | 評論 (0)編輯 收藏

          給敏捷團隊中的架構師的10個建議http://www.infoq.com/cn/news/2010/09/Tips-Architect-Agile-Team
          炫目的敏捷架構師http://blog.csdn.net/programmer_editor/archive/2009/06/04/4242453.aspx
          敏捷架構思考http://www.yeeach.com/2010/06/06/%E6%95%8F%E6%8D%B7%E6%9E%B6%E6%9E%84%E6%80%9D%E8%80%83/
          敏捷開發中的架構設計http://tech.it168.com/a2009/0827/669/000000669667.shtml
          在敏捷開發中采用演進式架構設計http://www.agiledon.com/post/Agile/Evolutionary-Design-In-AgileProcess.html
          敏捷開發實踐真的不利于架構設計嗎?http://www.infoq.com/cn/news/2007/07/AgileBadForDesign

          posted @ 2010-11-01 11:51 leekiang 閱讀(305) | 評論 (0)編輯 收藏

          ubuntu上安裝配置netbeans
          http://forum.ubuntu.org.cn/viewtopic.php?f=88&t=256293


          安裝mysql
          http://wiki.ubuntu.org.cn/MySQL
          http://forum.ubuntu.org.cn/viewtopic.php?p=157127

          linux常用命令
          http://linux.chinaitlab.com/special/linuxcom/

          Ailurus
          Ailurus is cross-Linux-distribution GPL software. It is a simple application installer and GNOME tweaker, which aims at making GNOME easier to use.
          小熊貓 Ailurus 是一個 Linux 增強軟件,提供安裝好用的軟件、調整系統設置、提示 Linux 命令技巧等等貼心的功能。
          http://code.google.com/p/ailurus/
          安裝:
          sudo add-apt-repository ppa:ailurus
          sudo apt-get update
          sudo apt-get install ailurus

          安裝jedit
          (1)下載jedit4.3.2install.jar
          (2)java -jar jedit4.3.2install.jar

          安裝Adobe Reader
          到官網,默認下載的是AdobeReader_chs-8.1.7-1.i486.rpm,感覺不妥,手動選擇下載AdobeReader_chs-8.1.7-1.i386.deb,
          執行sudo dpkg -i AdobeReader_chs-8.1.7-1.i386.deb,默認會裝到 /opt 目錄下
          也可以雙擊進行安裝。

          ubuntu Tweak是一款專門為Ubuntu(GNOME桌面)準備的配置、調整工具。
          ubuntu-tweak.com下載deb文件后雙擊安裝,安裝后會出現在應用程序->系統工具里。
          感覺Tweak有的功能 Ailurus都有了。

          還有一些軟件可搜索"喀納斯Ubuntu 10.10 i386中文定制版發布"
          http://www.douban.com/group/topic/14952403/

          posted @ 2010-11-01 00:20 leekiang 閱讀(353) | 評論 (0)編輯 收藏

          http://jqfundamentals.com/book/

          posted @ 2010-10-29 17:16 leekiang 閱讀(407) | 評論 (0)編輯 收藏

          僅列出標題
          共54頁: First 上一頁 8 9 10 11 12 13 14 15 16 下一頁 Last 
          主站蜘蛛池模板: 宜春市| 集安市| 内乡县| 张家港市| 抚州市| 东阳市| 永嘉县| 视频| 新沂市| 子洲县| 香港| 大安市| 济宁市| 酉阳| 铁岭市| 泌阳县| 崇州市| 华宁县| 恭城| 富蕴县| 太保市| 静海县| 库车县| 巩留县| 新丰县| 晋江市| 翁牛特旗| 洛浦县| 新乡县| 柳河县| 长顺县| 通化市| 延长县| 邵武市| 定日县| 霍林郭勒市| 张掖市| 阜新市| 姜堰市| 新田县| 贺州市|