莊周夢蝶

          生活、程序、未來
             :: 首頁 ::  ::  :: 聚合  :: 管理

          2012年7月18日


          很久沒有更新博客,沒想到更新是搬遷公告。這個博客累計的訪問量突破百萬,是我建立的時候完全沒有想過的事情。博客對我來說更多是記錄、記憶的地方,我時常因為想不起某個東西,來翻自己的博客,查找舊知,發現新知。閱讀很多人的博客,也是我跟蹤、學習新知的主要方式。雖然微博興起,不過博客作為更系統性的記錄的地方,不會過時。

          非常感謝blogjava提供這么優秀的平臺。只是我今年給自己的一個目標是建立自己的博客,因此現在要搬遷,加上其實現在也寫的少,其實搬遷不搬遷,意義也不大了。算是一個通告,有興趣的可以訂閱我的新博客,沒興趣的請自行略過,謝謝大家。

          新博客地址:http://blog.fnil.net/
          RSS地址:http://blog.fnil.net/index.php/feed

          新博客的第一篇記憶是《Leiningen教程中文版》,從現在開始,這個博客將不再發布任何新的文章,已有的也不會刪除,部分可能會導到我的知識庫上去。

          最后,祝福blogjava越辦越好。

          posted @ 2012-12-10 01:24 dennis 閱讀(11893) | 評論 (6)編輯 收藏

          It's my weekend project——node-shorten: URL Shortener just like t.cn,goo.gl etc.

          Is is written in NodeJS,using express.js for MVC framework,and using MySQL for storage and Redis for caching.

          A demo online: http://fnil.me/

          The project is at https://github.com/killme2008/node-shorten

          Feel free to modify and use it.Have fun.

          posted @ 2012-11-25 20:31 dennis| 編輯 收藏

          很久沒寫博客,一是工作忙,二是沒有太多的事情可說。

          最近在公司大佬的支持下,建立了一個Clojure語言中文方面的博客和問答網站,歡迎任何對Clojure這門基于JVM之上的函數式語言感興趣的童鞋貢獻原創文章或者資料,申請帳號請看這里

          博客地址:  http://blog.clojure.cn/
          問答網站:  http://ask.clojure.cn/

          歡迎轉發和注冊使用,謝謝。

          郵件列表仍然使用google group:https://groups.google.com/group/cn-clojure/

          posted @ 2012-09-25 12:51 dennis 閱讀(12144) | 評論 (4)編輯 收藏

          Home: https://github.com/killme2008/ring.velocity

          A Clojure library designed to render velocity template for ring in clojure.

          Usage

          Adds dependency in leiningen project.clj:

            [ring.velocity "0.1.0-SNAPSHOT"] 

          Create a directory named templates in your project directory to keep all velocity templates.

          Create a template templates/test.vm:

            hello,$name,your age is $age. 

          Use ring.velocity in your namespace:

            (use '[ring.velocity.core :only [render]]) 

          Use render function to render template with vars:

            (render "test.vm" :name "dennis" :age 29) 

          The test.vm will be interpreted equals to:

            hello,dennis,your age is 29. 

          Use ring.velocity in compojure:

            (defroutes app-routes      
          (GET "/" [] (render "test.vm" :name "dennis" :age 29))
          (route/not-found "Not Found"))

          Use ring.velocity in ring:

            (use '[ring.util.response])   
          (response (render "test.vm" :name "dennis" :age 29))

          Custom velocity properties,just put a file named ring-velocity.properties to your classpath or resource paths.The default velocity properties is in src/default/velocity.properties.

          License

          Copyright © 2012 dennis zhuang[killme2008@gmail.com]

          Distributed under the Eclipse Public License, the same as Clojure.

          Home: https://github.com/killme2008/ring.velocity

          posted @ 2012-07-18 00:07 dennis 閱讀(9504) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 定日县| 元朗区| 囊谦县| 温泉县| 高阳县| 呼玛县| 正蓝旗| 乾安县| 牟定县| 大关县| 来宾市| 华安县| 密山市| 江安县| 华阴市| 大余县| 凤山市| 印江| 浦东新区| 新余市| 都昌县| 延寿县| 磴口县| 宁夏| 宜都市| 汶上县| 漳州市| 安达市| 武安市| 峨眉山市| 工布江达县| 舟曲县| 冷水江市| 浦江县| 噶尔县| 阿图什市| 汤阴县| 策勒县| 绥中县| 临颍县| 襄樊市|