How I split up my workstation's disk space
There's a lot of different ways to partition disks and split outfilesystems. Mine isn't necessarily the best one, it's just whatI use, partly because I am cautious and conservative.
My workstation has two disks, partitioned identically and generallymirrored. I split the filesystems up like so:
/bootis a separate and non-mirrored filesystem. I have a/boot2on the second disk which I synchronize by hand every so often (usuallynot, to be honest, which is
「回到起點」
繼續跳舞
《信報》要我寫聖誕及新年願望。但我Daisy從來不許什麼願望,今次如果硬要我因為交稿而許個願,fine,我希望錢由樹生出來,從天掉下來。這就是我的願望。所謂「許願」,本身就是這麼不切實際的一回事。
對我來說,
How to help programmers (part 1): the os.listdir() problem
How to help (Unix) programmers: silently omit data under certaincircumstances. From the Python 3000 release notes :
Note that when
os.listdir()returns a list of strings, filenamesthat cannot be decoded properly are omitted rather than raisingUnicodeError.
(Background: in Python 3k, os.listdir() is normally called with adirectory name that is a str Unicode object.)
Yes, os.listdir() had problems , butthis is not a solution; this is making
One of Python's problems with packages
One of the problems with Python's current approach to CPAN-like packagesis, to put it in a particularly blunt way, that it hasn't quite sunk inthat not everyone has root.
(I am aware that Python doesn't have an approach to packages as such;it's all done by distutils et al, although distutils is part of thestandard library. That's part of the overall problem.)
Oh, sure, you can use distutils to install packages in places besides
學習攻擊 贏得寵愛
話說九十年代,台灣報界和文學界,有一風頭小子名曰「大頭春」,在中時晚報上有個反應極佳的專
On line endings and honesty
Dear software, I have a small and simple request, from a working systemadministrator:
Please stop pretending that \r\n and \n are the same thing.
That is, please stop pretending that MS-DOS line endings and Unix lineendings are the same thing, because they are not. Pretending that theyare is one of those collective hallucinations that only work if absolutely everyone is playing along. Sooner or later(usually sooner) you will run into a program that does not play along,and things