4/14/2007

I learnt something today

Text is different between Windows and Linux. To convert a window text file, use:
cat log.log | tr -d '\r' > new.log

I also learnt easy_install, which is a python module (easy_install) bundled with setuptools that lets you automatically download, build, install, and manage Python packages. To install an unziped file, use -Z, an upgraded file use -U. For example, to install a newer version of MySQLdb, type:
sudo easy_install -UZ MySQLdb-python

4/07/2007

datetime module in Python

http://pleac.sourceforge.net/pleac_python/datesandtimes.html

3/05/2007

整个单词就会把一个column撑大

如果一个表里面有一个很长的单词,那么这个column的宽度就有这个很长的单词决定,被撑大了。表的布局就会改变了。 如果一个段里面有很多短的单词组成,就会自动换行。