二月 05, 2010

Free but secure login mechanism

blogger.com即将停止支持FTP方式发布blog,而我就是那不幸的0.5%。安装一个blog平台不是特别难,问题是如果我不想自己的密码以明文方式在这个恐怖的网络空间里飞舞,那么就需要SSL,对于dreamhost来说,还要额外为unique IP付费。

不想付。

Google上搜索了一阵,终于找到一个不错的解决方案——使用openid登录。Google啊Yahoo啊都可以。

二月 03, 2010

Download podcast with miro and privoxy

喜欢使用Miro下载、播放podcast,甚至video,然而尴尬的是,有些feed无法正常访问,虽然Miro支持http代理,然而走代理,尤其是通过tor下载会很慢,只好使用Google reader订阅。在线收听的缺点是不适合很长的内容,就像stackoverflow的podcast那样,动辄一个小时以上。

终于被我发现并学会了privoxy

privoxy是一个http代理,它具有firefox插件foxyproxy类似的功能,即有能力为不同的网址选择使用不同的代理,包括不使用代理。privoxy在Ubuntu 9.10上的配置文件位于/etc/privoxy/config,只需添加一行代码,就可以使Miro在抓取feedburner的feed时走tor代理,而下载文件时不使用任何代理。

forward-socks5 feeds.feedburner.com 127.0.0.1:9050 .

注意最后有一个点。

一月 28, 2010

Skip svn branch for git svn clone

通常情况下,git svn clone可以很好的完成任务。比如转换Google v8

git svn clone -s http://v8.googlecode.com/svn/ v8

但是最近experimental branch发生了变化,git svn fetch无法继续。其实我们完全可以忽略这个branch,方法是枚举所有想要fetch的branch,原来的配置如下:

[svn-remote "svn"]
        url = http://v8.googlecode.com/svn
        fetch = trunk:refs/remotes/trunk
        branches = branches/*:refs/remotes/*
        tags = tags/*:refs/remotes/tags/*

修改后如下:

[svn-remote "svn"]
        url = http://v8.googlecode.com/svn
        fetch = trunk:refs/remotes/trunk
        fetch = branches/bleeding_edge:refs/remotes/bleeding_edge
        tags = tags/*:refs/remotes/tags/*