最近 IBM developerWorks 中国 刊载了一篇 《UNIX 高手的 10 个习惯》,尽管这个标题有点标题党的味道(英文名字不过是 UNIX tips: Learn 10 good UNIX usage habits),但是从内容上看还是一篇好文章。
先看看这10个好习惯都是什么:
- 在单个命令中创建目录树
- 更改路径;不要移动存档
- 将命令与控制操作符组合使用
- 谨慎引用变量
- 使用转义序列来管理较长的输入
- 在列表中对命令分组
- 在 find 之外使用 xargs
- 了解何时 grep 应该执行计数——何时应该绕过
- 匹配输出中的某些字段,而不只是对行进行匹配
- 停止对 cat 使用管道
如果换个角度,我们可以从中得到 10 个坏习惯。Unix 新手可能或多或少都会有这些毛病。就拿我自己来说,最后的三条的毛病现在就有。..grep 计数的话往往来个 |wc -l , 或者是 cat .. | grep 。这 10 条经验中,有些好习惯我倒是有的,比如第三条的"将命令与控制操作符组合使用", 如果有几十上百次手工编译 Linux Kernel 代码的话,对这一条肯定会潜移默化形成好习惯。
有这样一种说法"习惯是行为不断重复制造出来,并根据自然法则养成",习惯比较容易养成,可究竟是好习惯还是坏习惯,这是一个问题啊。
--EOF--
說到這顆愛心,可是大有來頭喔!不信的話,請你到flcikr網站去搜尋Happy Valentine's day!的字樣,看看是否能找到一堆類似的愛心?
好吧,讓我揭曉答案!這是一位署名fd的flickr玩家所設計的flickr toys,大家可以在這裡看到許許多具有創意的作品。如果你也想用你的flickr的朋友名字組成一顆美麗的愛心,歡迎來這裡瞧瞧!
Happy Valentine's day, Flickr! Sign in and create a customized Valentine's day card from you to your contacts.
a large-scale interactive work for the entrance of One Arts Plaza, Dallas, as an exploration in the creation of memory & the idea of reality as perception. 2 high definition cameras record the edifice's lobby activity, on a daily basis, during a minimum of 8 years. according to specific chance operations, segments of the footage are selected & displayed on two 9 x 9 foot video walls in 4 overlapping layers: 1 from the last 2 minutes & 3 from a distant time period. while standing between the 2 screens, viewers will perceive themselves along with "visual memories" of that place.
[link: www.lincolnschatz.com|via rhizome.org
a distributed web application allowing multiple online users to 'paint' collaboratively, using a physical wall as a common visual canvas. a temperature & a sonar sensor on the wall condition the visual expression & 'visualize' the physical condition of the resulting art work by determining the virtual color palette.
see also collaborative visual mosaic & pixelfest & gridlove & kollabor8.
[link: wallright.com|thnkx Luis]
二月 2007 | ||||||
一 | 二 | 三 | 四 | 五 | 六 | 日 |
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 |