統(tǒng)計

          留言簿(1)

          DB

          Others

          QA

          Tech Website

          閱讀排行榜

          評論排行榜

          #

          【轉(zhuǎn)】Android 2.1 源碼結(jié)構(gòu)分析

               摘要:   閱讀全文

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

          Android Coding for Life-Battery Life

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

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

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

          【轉(zhuǎn)】Java學習的30個目標以及系統(tǒng)架構(gòu)師推薦的書

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

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

          學習Python的好網(wǎng)站

          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 閱讀(4389) | 評論 (2)編輯 收藏

          Dom4j解釋XML示例

               摘要:   閱讀全文

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

          【轉(zhuǎn)】《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 閱讀(251) | 評論 (0)編輯 收藏

          Python中的Closure


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

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

          #代碼示例

           1def counter(start_at=0):
           2    count = [start_at]
           3    def incr():
           4        count[0] += 1   #對局部變量的引用
           5        return count[0]
           6    return incr  #返回一個函數(shù)對象
           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 閱讀(1312) | 評論 (0)編輯 收藏

          Trie Tree

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

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

          posted @ 2011-06-14 16:57 XXXXXX 閱讀(1087) | 評論 (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 閱讀(304) | 評論 (0)編輯 收藏

          【轉(zhuǎn)】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 閱讀(343) | 評論 (0)編輯 收藏

          僅列出標題
          共8頁: 上一頁 1 2 3 4 5 6 7 8 下一頁 
          主站蜘蛛池模板: 巴林右旗| 新龙县| 平乡县| 天津市| 渑池县| 岳阳市| 上杭县| 内江市| 盐城市| 靖安县| 连平县| 晴隆县| 盘山县| 辉县市| 东兰县| 兰坪| 永济市| 黑山县| 卓资县| 沙河市| 通州区| 华坪县| 五莲县| 翁牛特旗| 秦皇岛市| 镇坪县| 邛崃市| 宁津县| 昭苏县| 无为县| 隆回县| 南投县| 永州市| 天津市| 高邮市| 封丘县| 汝城县| 兴文县| 弥渡县| 彰化县| 涞水县|