1. Some python segments

    Tue 22 September 2009
    • 把戏 tags:
    • python published: true comments: true

    import MySQLdb
    import subprocess
    from smtplib import *
    from datetime import date, timedelta

    class StatEntry(object):
    def __init__(self, name, count):
    self.name = name
    self.count = count
    def __str__(self):
    return "%s\t%d" % (self.name, self.count)

    def fetchdb(date):
    conn = MySQLdb …

  2. 烧饭再

    Sun 20 September 2009
    • 自话 tags:
    • food
    • Life
    • shaofan published: true comments: true

    看了烧饭1,就想看烧饭2.可是我思前想后,烧饭2这个标题总有那么一点不太对劲(大家自己体会),于是还是叫烧饭再吧。

    今天介绍 …

  3. GeoHash

    Sat 19 September 2009
    • 手艺 tags:
    • GIS
    • ruby published: true comments: true

    今天偶然看到一个Ruby的GeoHash库,功能非常简单,就是将经纬度坐标哈希成字符串,并且,利用这个字符串可以粗 …

« Page 119 / 133 »