統計

          留言簿(1)

          DB

          Others

          QA

          Tech Website

          閱讀排行榜

          評論排行榜

          #

          【轉】Android 2.1 源碼結構分析

               摘要:   閱讀全文

          posted @ 2011-07-09 09:37 XXXXXX 閱讀(250) | 評論 (0)編輯 收藏

          Android Coding for Life-Battery Life

          關于Android編程中如果省電的講解

          可以作為開發者的參考 :)

          posted @ 2011-07-08 09:37 XXXXXX 閱讀(1583) | 評論 (0)編輯 收藏

          【轉】Java學習的30個目標以及系統架構師推薦的書

               摘要: 2.你需要學習JAVA語言的基礎知識以及它的核心類庫 (collections,serialization,streams,networking, multithreading,reflection,event,handling,NIO,localization,以及其他)。  閱讀全文

          posted @ 2011-06-18 15:25 XXXXXX 閱讀(698) | 評論 (1)編輯 收藏

          學習Python的好網站

          1)http://www.pythonchallenge.com/
            提供了不同level的Python題目,非常有趣的題目。做完一題后,把URL中的pc改為pcc可以看到上一題的答案

          2)http://projecteuler.net/
            里面有200多道題目,不要要求提交代碼,只要最終答案,提供用各種語言來解決問題。這里(http://dcy.is-programmer.com/posts/8750.html)有部分題目的答案

          非常好玩,有興趣的朋友,快來試試吧

          看看 project euler 的第一道題:

          If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000.

          用 python 語言寫出來是:

           

          print sum(i for i in xrange(11000if i % 3 == 0 or i % 5 == 0)

           


           

          posted @ 2011-06-17 20:26 XXXXXX 閱讀(4392) | 評論 (2)編輯 收藏

          Dom4j解釋XML示例

               摘要:   閱讀全文

          posted @ 2011-06-15 17:53 XXXXXX 閱讀(375) | 評論 (0)編輯 收藏

          【轉】《InfoQ Explores: REST》介紹

          This is the first edition of what is expected to become a recurring series on InfoQ. The idea behind this minibook is that a number of InfoQ articles and interviews which deal with a particular topic (in this case, REpresentational State Transfer, or REST) are combined together to provide a detailed exploration suitable for both beginners and advanced practitioners.

          Read More: http://www.infoq.com/minibooks/emag-03-2010-rest;jsessionid=1E2375E822D980824403DAD46588FAFE

          posted @ 2011-06-15 12:39 XXXXXX 閱讀(254) | 評論 (0)編輯 收藏

          Python中的Closure


          #定義:如果在一個內部函數里,對在外部作用域(但不是在全局作用域)的變量進行引用,那么內部函數就被認為是閉包(closure)
          分解來說,包含下面3個條件:
          1) 需要函數嵌套, 就是一個函數里面再寫一個函數.
          2) 外部函數需要返回一個內部函數的引
          3) 外部函數中有一些局部變量, 并且, 這些局部變量在內部函數中有使用
          一些概念:
          1)自由變量: 外部函數中定義的局部變量, 并且在內部函數中被使用
          2) 閉包: 那個使用了自由變量并被返回的內部函數就稱為閉包

          #支持閉包的語言有這樣的特性:
          1)函數是一階值(First-class value),即函數可以作為另一個函數的返回值或參數,還可以作為一個變量的值
          2)函數可以嵌套定義,即在一個函數內部可以定義另一個函數

          #代碼示例

           1def counter(start_at=0):
           2    count = [start_at]
           3    def incr():
           4        count[0] += 1   #對局部變量的引用
           5        return count[0]
           6    return incr  #返回一個函數對象
           7
           8
           9if __name__ == '__main__':
          10    c = counter(3)
          11    print type(c)
          12    print c()
          13    print c()
          14


           

          posted @ 2011-06-15 07:31 XXXXXX 閱讀(1315) | 評論 (0)編輯 收藏

          Trie Tree

               摘要: #Trie Tree的基本特點
          1)根節點不包含字符,除根節點外每個節點只包含一個字符
          2)從根節點到某一個節點,路徑上經過的字符連接起來,為該節點對應的字符串

          3)每個節點的所有子節點包含的字符串不相同
            閱讀全文

          posted @ 2011-06-14 16:57 XXXXXX 閱讀(1091) | 評論 (0)編輯 收藏

          Bloom Filter

               摘要: The Bloom filter, conceived by Burton Howard Bloom in 1970, is a space-efficient probabilistic data structure that is used to test whether an element is a member of a set.False positivesare possible, but false negatives are not. Elements can be added to the set, but not removed (though this can be addressed with a counting filter). The more elements that are added to the set, the larger the probability of false positives
            閱讀全文

          posted @ 2011-06-12 23:58 XXXXXX 閱讀(308) | 評論 (0)編輯 收藏

          【轉】How Google Tests Software - A Brief Interlude

               摘要: These posts have garnered a number of interesting comments. I want to address two of the negative ones in this post. Both are of the same general opinion that I am abandoning testers and that Google is not a nice place to ply this trade. I am puzzled by these comments because nothing could be further from the truth. One such negative comment I can take as a one-off but two smart people (hey they are reading this blog, right?) having this impression requires a rebuttal. Here are the comments:  閱讀全文

          posted @ 2011-06-06 16:03 XXXXXX 閱讀(357) | 評論 (0)編輯 收藏

          僅列出標題
          共8頁: 上一頁 1 2 3 4 5 6 7 8 下一頁 
          主站蜘蛛池模板: 广东省| 五指山市| 屏东县| 郸城县| 密山市| 浑源县| 德钦县| 沧源| 鹤岗市| 寿宁县| 荃湾区| 大石桥市| 重庆市| 延边| 灯塔市| 惠安县| 石台县| 嘉荫县| 滦平县| 天水市| 疏附县| 乐至县| 漳浦县| 台安县| 阿克苏市| 马山县| 达拉特旗| 哈密市| 临沂市| 平罗县| 莱州市| 洛扎县| 七台河市| 确山县| 澄迈县| 富民县| 平安县| 扎兰屯市| 砀山县| 格尔木市| 大城县|