1. clojure recur

    Thu 15 July 2010
    • 手艺 tags:
    • clojure published: true comments: true

    clojure是函数是编程语言,本身没有循环的语法。要实现类似循环的效果,需要用递归来实现。比如计算从1加到n的和这样一个函数:

    [cc lang="lisp"]
    (defn addup
    ([limit] (addup limit …

  2. fixing "libmozjs" missing when using mongodb on Ubuntu lucid

    Tue 13 July 2010
    • 把戏 tags:
    • mongodb
    • ubuntu published: true comments: true

    Problem When running mongod/mongo/mongos, you got message like this: mongod: error while loading shared libraries: libmozjs.so: cannot open shared object file: No such file or directory

    Solution Make sure you have xulrunner-dev installed: sudo apt-get install xulrunner-dev

    then …

  3. Update1

    Sat 10 July 2010
    • 自话 tags:
    • Life
    • work published: true comments: true

    1. 搬家了,搬了一条街,从马路这边搬到马路那边。从二楼搬到四楼,告别了潮湿发霉的小屋,换了新环境 …

« Page 80 / 133 »