Archive for August 2009

IPython的彩色显示

无论刚安装完IPython还是Engthought的套装,IPython默认的命令行上没有彩色显示。原因是IPython接受一些命令行参数,而默认安装后“colors”和“color-info”这两个magic函数并没有被调用。下面我们看怎样打开彩色显示:

Continue reading ‘IPython的彩色显示’ »

zip files from stdin

Zip command in bash can read file list from stdin or from pipe.
e.g.

1
tar *.txt|zip file.zip -

Continue reading ‘zip files from stdin’ »

How to exclude files from wildcard matches in bash

Just make a note:  http://oss.bestsolution.at/bash/exclude_files.html.en

Wiggle stereoscopy

这是一种简单而有趣的显示立体照片的方法,利用两张(或多张)视角稍有不同的照片合成出一张动态图像,以一定时间间隔(越100ms)切换照片,从而达到一种景深效果。由于图片视角不同,会产生摆动效果,所以就有了如题的英文名称。个人觉得译作“摆动立体图”较好。 Continue reading ‘Wiggle stereoscopy’ »