• 2008-04-26

    打造自己的VIM - [VIM]

    越来越习惯了VIM,趁着期中考结束,趁着刚安装完成ubuntu8.4,参考了wooin的教程,弄一个自己用着顺手的VIM,wooin教程中提到的很多功能对我来说不是很实用,我现在只是写一些很小的代码而已,所以只安装自己需要的功能。

    记录过程如下:

    1.ubuntu里面系统装的VIM是"精简版",所以要安装一个完整版本的:

    sudo apt-get install vim-full

    2. 安装中文帮助。将在http://vcd.gro.clinux.org下载的压缩包解压后,其中有个doc文件夹, 将其中内容全部复制到~/.vim/doc, 或者vim安装目录下的doc目录中, 在vim输入:help就能看到中文的帮助了。

    3. 设置自动缩进、行号等等东西

    直接写到~/.vimrc中

    4.设置语法高亮,新建~/.vim/syntax/c.vim,写入以下内容

    "========================================================
    " Highlight All Function
    "========================================================
    syn match cFunction "\<[a-zA-Z_][a-zA-Z_0-9]*\>[^()]*)("me=e-2
    syn match cFunction "\<[a-zA-Z_][a-zA-Z_0-9]*\>\s*("me=e-1
    hi cFunction gui=NONE guifg=#B5A1FF

    "========================================================
    " Highlight All Math Operator
    "========================================================
    " C math operators
    syn match cMathOperator display "[-+\*/%=]"
    " C pointer operators
    syn match cPointerOperator display "->\|\."
    " C logical operators - boolean results
    syn match cLogicalOperator display "[!<>]=\="
    syn match cLogicalOperator display "=="
    " C bit operators
    syn match cBinaryOperator display "\(&\||\|\^\|<<\|>>\)=\="
    syn match cBinaryOperator display "\~"
    syn match cBinaryOperatorError display "\~="
    " More C logical operators - highlight in preference to binary
    syn match cLogicalOperator display "&&\|||"
    syn match cLogicalOperatorError display "\(&&\|||\)="

    " Math Operator
    hi cMathOperator guifg=#3EFFE2
    hi cPointerOperator guifg=#3EFFE2
    hi cLogicalOperator guifg=#3EFFE2
    hi cBinaryOperator guifg=#3EFFE2
    hi cBinaryOperatorError guifg=#3EFFE2
    hi cLogicalOperator guifg=#3EFFE2
    hi cLogicalOperatorError guifg=#3EFFE2
    5. 安装ctags,去http://ctags.sourceforge.net下载最新的ctags,5.7版本的,然后安装
    tar -xzvf ctags-5.7.tar.gz
    cd ctags-5.7
    ./configure 
    make
    sudo make install
    安装完成。
    在任意一个有源代码的目录下执行ctags -R ,在该目录下就生成了tags文件
    进入vim,输入命令:set tags=./tags就能使用tag功能了。我直接把:set tags=./tags这句加到.vimrc中了
    免得每次都要输入命令。呵呵。 
     现在就可以使用C-]和C-T在代码中自如的跳动了。
    6.安装插件: TagList
    http://www.vim.org/scripts/script.php?script_id=273下载最新的TagList,解压到~/.vim
    然后在~/.vimrc中加入以下两句
    let Tlist_Show_One_File=1
    let Tlist_Exit_OnlyWindow=1
    然后打开任意一个有tags的源代码文件,敲入命令:Tlist,就可以看到tag了,很方便 
    7.安装插件: WinManager
    http://www.vim.org/scripts/script.php?script_id=95中下载winmanager.zip,然后解压到在 ~/.vim
    进入VIM后在普通模式下按下wm就可以看到各个窗口了,用c-w在各个窗口之间切换光标
    8.安装插件: MiniBufExplorer 
    下载http://www.vim.org/scripts/script.php?script_id=159,然后放到 ~/.vim/plugin
    当只编辑一个buffer的时候MiniBufExplorer派不上用场, 当打开第二个buffer的时候, MiniBufExplorer窗口就自动弹出来了
    在~/.vimrc中加入
    let g:miniBufExplMapCTabSwitchBufs = 1
    可以实现
    <C-Tab> 向前循环切换到每个buffer上,并在但前窗口打开
    <C-S-Tab> 向后循环切换到每个buffer上,并在但前窗口打开
    在~/.vimrc中加入
    let g:miniBufExplMapWindowNavVim = 1
    可以实现用<C-h,j,k,l>切换到上下左右的窗口中去,就像:
    C-w,h j k l    向"左,下,上,右"切换窗口.
     
     
    到此,VIM设置基本完成。其他更复杂的功能我目前还用不上,就不弄了。
    下面是我的vimrc
    syntax enable
    syntax on
    colorscheme advantage
    :set nu
    :set cindent shiftwidth=4
    :set ru
    set encoding=utf-8
    set ts=4
    set helplang=cn
    set tags=./tags

    let Tlist_Show_One_File=1
    let Tlist_Exit_OnlyWindow=1
    let g:winManagerWindowLayout='FileExplorer|TagList'
    nmap wm :WMToggle<cr>
    let g:miniBufExplMapCTabSwitchBufs = 1
    let g:miniBufExplMapWindowNavVim = 1
    if has("gui")
    set guifont=Courier\ 10\ Pitch\ 10
    endif
     上面所需要的安装文件都在这个包里了,免得以后再下载
    http://memorise.blogbus.com/files/12091419520.gz
     
  • 2008-04-19

    越长大越孤单 - [Life]

    越长大越孤单

    多年以后 你回到我身边
    不安全 充满了你疲倦的双眼
    看着我 也告诉我
    你是否 依然相信童话
    你曾对我说 每颗心都寂寞
    每颗心都脆弱都渴望被触摸
    但你的心 永远的燃烧着
    永远的 不会退缩
    越长大越孤单 越长大越不安
    也不得不看梦想的翅膀被折断
    也不得不收回曾经的话问自己
    你纯真的眼睛哪去了
    越长大越孤单 越长大越不安
    也不得不 打开保护你的降落伞
    也突然间 明白未来的路 不平坦
    难道说 这改变是 必然


    多年以后 你回到我身边
    不安全 充满了你疲倦的双眼
    看着我 也告诉我
    你是否 依然相信童话
    你曾对我说 每颗心都寂寞
    每颗心都脆弱都渴望被触摸
    但你的心 永远的燃烧着
    永远的 不会退缩
    越长大越孤单 越长大越不安
    也不得不看梦想的翅膀被折断
    也不得不收回曾经的话问自己
    你纯真的眼睛哪去了
    越长大越孤单 越长大越不安
    也不得不 打开保护你的降落伞
    也突然间 明白未来的路 不平坦
    难道说 这改变是 必然

    你曾对我说 每颗心都寂寞
    每颗心都脆弱都可望被触摸
    看着我 也告诉我 你的心依旧燃烧着
    ..End..
  • 2008-04-08

    劝勉联 - [Life]

    书到用时方恨少;事非经过不知难。
    ——佚名撰 格言联
    【鉴赏】这是一副劝勉联,对联虽浅显易懂,却蕴含着深刻的哲理。如果说上联是劝勉人们要“贵学”,那么下联“事非经过不知难”,就是强调“行”的重要性, 光“学”不“行”终是无益。宋代陆游在《冬夜读书示子聿》中云:“纸上得来终觉浅,绝知此事要躬行”,明周立说:“一语不能践,万卷徒空虚”,也是此理。 宋代的朱熹和清代的王夫之更把“知”“行”关系说得明白。朱熹说:“论先后,知为先;论轻重,行为重”,王夫之在《尚书引义》中云:“知之非艰,行之惟 艰。……且夫知也者,因以行为功者也;行也者,不以知为功者也。行焉可以得知之效也,知焉未可以得行之效也”,均是说“知”“行”的关系,“知”是手 段,“行”是目的,不“行”,无以奏“知”之效,也无以知“事”之艰难,免不了落个“纸上谈兵”的下场。
    本联用明白易懂的语言,将“知”“行”有机地结合起来,给人以深刻的感受。
    本联在艺术上的特色是用词平淡,不事雕琢,雅俗共赏,语言自然却韵味无穷,深得孟浩然《春晓》的艺术真谛。本联对仗也工整自然,意义相对,尤其深刻、贴切,故千百年来成为劝勉联中的精品。
  • 2008-02-11

    无聊的假期 - [Life]

    回家已经有10多天了,非常无聊。

     

    天气一直都不是很好, 断断续续的下雪,尽管每次都下得很少,但是确让我我期盼的晴天迟迟不肯露面。如果能够一次下完,然后好好的晴上一段时间该多好。

     无聊的 不仅仅的是假期 还有 虚伪的 聚会。

    仅仅十多天而已,我就开始数着日历盼望开学。

    街道上非常脏,泥泞。

  • 2008-02-01

    I‘m back - [Life]

    几经周折,总算回到家了。在家里敲键盘的感觉果然很舒服。

     

    1月26日放假。

    1月27日下午15:45火车出发

    1月28日傍晚18:30左右到达贵阳站

    1月29日、30日由于严寒的天气封路,所以困在贵阳

    1月31日抵达毕节

    2月1日下午15:00左右回到家

     

    在毕节游荡着等车的时候感觉自己背着行李像个出来流浪的人。头发又脏又长,很没有精神状态。不过我的运气很好,我决定买一本杂志来打发无聊时间——我在一个还在营业的报刊亭里买到了最后一份《萌芽》,08年的第一期,很漂亮的封面,或者说是我很喜欢的风格。

    没几分钟老妈的车开来了。。。

     

    该死的气候让我在路上耽误了这么长的时间 ,不爽。不过回来就是好的。

     

    洗澡睡觉。

  • 2008-01-18

    雪+梦+考试 - [Life]

    不管怎么样,今天离散数学是考完了。

     

    从上个星期五到今天,已经是足足的一个周了,雪一直在下。这是我所经历的最长的一次雪天。校园里一片白色,我非常不想出去,不是怕冷,而是眼睛很不舒服,感觉非藏亮,也许是雪盲吧。温度也是我第一次体会到的低温:零下5度——甚至更低。以前从来没有体会过如此低温,手冻得好痛,没知觉。

    很喜欢在公寓旁边有人堆的雪人情侣,不知道是哪个有创意的家伙弄的,很漂亮,每次去餐厅吃饭路过的时候都会关注一下,还有很多人和情侣雪人拍照,感觉在这个理工学校能有如此情调,感觉相当的欣慰。遗憾的是雪人这几天好像遭到了破坏,美好的事物为什么都不能长久的保存呢?

    最近老是做梦,而且内容很一致,甚至可以用“单调”来形容 :我最近老是梦见自己在飞。

    我也不知道这是一种什么样子的精神状态才有这样的梦,我一直很怀疑我的精神状态是否正常。醒来后能清晰的记得我向前跑动,然后双手像翅膀那样振动,然后我就飞起来了。在空中我可以俯瞰地上的一切,现在印象最深刻的是地面上弯弯曲曲的道路,很多,很弯。从空中看下来感觉颜色和地面其他物体不一样,很深的颜色。

    我在空中可以很自如的控制自己的飞行,我可以很轻松地从餐厅吃饭出来然后振动手臂飞起来,在公寓的花园上空转一圈,然后从容地降落在宿舍的阳台上。我记得我飞起来的时候感觉很放松,还有在空中我没有感觉到风,不知道鸟在飞的时候是否会感觉到有风在吹动。

     也有很紧张的情形,有人追我,似乎很凶相的样子,我最后飞了起来,没有人能抓到我。我脑海里面现在还有两幅残留的图画,一个是我起飞时候的场景,画面上方是天空,灰蓝色,前方是学校的两座公寓,公寓中间还是天空,似乎是从下向上看的视角,我从它们中间飞了出去,这个过程有点像是穿越一段不是很长的隧道,飞出来的时候看到了金色的阳光。另一个是我飞行时候的状态,奇怪的是我在另外一个角度看到了我在飞! 我在一个峡谷的底部看到我在峡谷上方飞行,峡谷是垂直的峭壁,在峭壁的顶端是茂密的绿色草本植物,绿色很葱郁,但是没有疯长。我像鹰一样迅速滑过这段峡谷,我在峡谷底部看到了我滑过峡谷的整个过程,很短暂。我在峡谷上空飞行,而我梦境里面的视角是从峡谷往上看,这让我更加的怀疑我是否精神有问题,我自己都在怀疑我是不是正在构思一个飞行的故事。然而,我每次睡醒都可以记得我飞过。更奇怪的是我在不断的梦到自己在飞。

     醒来会想刚才的会不会是真的,自己都想振动手臂试试,看我到底能不能飞起来。不过又会很坚决地告诉自己,那不过是梦境而已。

     

    接下来还有很多科目要考试。同学说他的同学都陆续开始回家了,春节的气味逐渐在空气中传来,我深深地吸了一口,很好的味道。

    看书吧。

  • 2008-01-07

    聚餐 - [Life]

    今天叫上参与杂志制作的兄弟姐妹们去竹园三楼腐败了一把。哈哈。

    竹园三楼菜的水平有点下降了……

    离散数学试题好多不会,尽管看了书,知识点还是记不住,可惜考试的时候不能翻书。

    继续复习。

  • 函数名: sleep
    功 能: 执行挂起一段时间
    用 法: unsigned int sleep(unsigned int seconds);
    程序例:

    #include <unistd.h>
    #include <stdio.h>

    int main(void)
    {
    int i;

    for (i=1; i<5; i++)
    {
    printf("Sleeping for %d seconds\n", i);
    sleep(i);
    }
    return 0;
    }

     

    另:

     VC++中的Sleep函数原型为:

     void Sleep(
       DWORD dwMilliseconds
     );

    linux下的sleep函数原型为:

     unsigned int sleep(unsigned int seconds);

    MFC中的是微秒,linux下的是秒。linux下用微秒的线程休眠函数是:

     void usleep(unsigned long usec);
              int usleep(unsigned long usec); /* SUSv2 */

    或者用select函数+timeval结构也可以(最多精确到微秒),

    或者用pselect函数+timespec(可以精确到纳秒,足够精确了!)

     

     NAME
                  fflush   -   flush   a   stream

    SYNOPSIS
                  #include   <stdio.h>

                  int   fflush(FILE   *stream);

    DESCRIPTION
                  The     function     fflush()     forces   a   write   of   all   user-space   buffered   data
                  for   the   given   output   or   update   stream   via   the   stream’s   underlying   write
                  function.     The   open   status   of   the   stream   is   unaffected.

                  If     the     stream     argument     is     NULL,     fflush()     flushes   all   open   output
                  streams.

                  For   a   non-locking   counterpart,   see   unlocked_stdio(3).

    RETURN   VALUE
                  Upon   successful   completion   0   is   returned.     Otherwise,   EOF     is     returned
                  and   the   global   variable   errno   is   set   to   indicate   the   error.

    ERRORS
                  EBADF     Stream   is   not   an   open   stream,   or   is   not   open   for   writing.

                  The   function   fflush()   may   also   fail   and   set   errno   for   any   of   the   errors
                  specified   for   the   routine   write(2).

    NOTES
                  Note   that   fflush()   only   flushes   the   user   space   buffers   provided   by     the
                  C     library.       To     ensure   that   the   data   is   physically   stored   on   disk   the
                  kernel   buffers   must   be   flushed   too,   e.g.   with   sync(2)   or   fsync(2).

     

    用途:清空缓冲区,可以避免一些错误

    当输出语句太多     用:fflush(stdout)

     

    以上两个函数的例子程序:

    #include <stdio.h>
    #include <unistd.h>

    int main()
    {
       int i,j;

       for(i=0;i<=100;i++)
       {
          j = 1000;
          printf("%d\n",i);
          fflush(stdout);
          sleep(1);
       }
       return 0;

     

    以上程序实现了动态显示1到100的数值。

  • 2008-01-06

    杂志发布啦 - [Life]

    今天下午把杂志发放到各年纪宿舍了。跑来跑去弄得全身都是汗,不过成果出来总是让人开心的。杂志犯了一个错误:有篇文章的作者是06级的学生,被弄成07级了。。真遗憾啊,赶紧一阵道歉。

    时间又流过不少。抓紧~!

  •  时间有限,今天翻译不完了。不打算熬夜干,明天还有正事要做呢。翻译不是认识单词就完了,要把英文组织成符合我们中文思维的方块字确实需要考虑好多东西, 有时候一个句子就要推敲半天。尽管才是翻译了一部分,感觉学到不少东西。剩下的内容有时间再继续弄完,目前这个基本上是草稿版本,最后完成后做一个优化版本。呵呵。

    翻译原帖地址:http://forum.ubuntu.org.cn/viewtopic.php?t=99414 

    原文如下: 

    From: http://itmanagement.earthweb.com/osrc/article.php/12068_3719096_1
    By Roy Schestowitz

    It is sometimes forgotten that GNU/Linux is more than just a desktop operating system. Linux, being a well-engineered kernel, is used extensively and also funded for its important role in several different areas of computing. One needs to look for evidence of growth not only in desktops. Judgment must be based on multiple areas where GNU/Linux gains traction. This ought to cover some disruptive trends that are yet to be reckoned with.

    As time goes by, appliances might inherit the important role of traditional desktops. Mobile and ultra-mobile devices could gradually replace laptops and servers to become more predominant owing to Web-based software, which also moves storage toward the back end. Let's explore how GNU/Linux fits this broader vision and discover just how ubiquitous it is, with growth consistently on the upside.

    Supercomputers

    In supercomputing, GNU/Linux has become extremely popular and sometimes irreplaceable. Its selection is a matter of scalability and reliability, not just cost. Among the world's top computers, taking virtualization into account as well, Linux climbed from 86% installed base in 2006 up to 91% at the end of 2007. This relative growth in 2007 might not seem great, but it comes to show that GNU/Linux still tightens its grip on this domain, rather than loosen any. Inertia is likely to ensure that such domination is maintained, if not further expanded in years to come.

    In the past couple of years, SGI, Sun Microsystems and Microsoft have all attempted to gain or regain ground in supercomputing. SGI conceded UNIX in favor of GNU/Linux, whereas Microsoft and Sun stuck to their guns and they have yet to demonstrate actual growth with Windows and Solaris, respectively. Based on the world's top 500 computers, their ambitions led to very limited success. IBM's AIX holds on to a share of 4.8%, Sun's Solaris is at 0.4% and Mac OS X maintains 0.4%. GNU/Linux is still seen as a de facto platform in this domain. Faith in this platform is increasing owing to maturity and its hard-earned reputation.

    Mobile Phones

    EDN highlighted the success of Linux in mobile phones last year. It pointed to exceptionally high popularity in Asia thanks to NEC, Panasonic, Motorola and others. In 2006, Linux was said to have powered approximately a quarter of all feature phones shipped in the previous year, according to market analysts cited by Webb. Growth seems to have been persistent since then, but there was one barrier that was finally passed in 2007.

    Linux-powered handsets are said to be suffering from fragmentation in their development, but the Linux Phone Standards(LiPS) Forum has created a formal liaison and a technical framework for cooperation. Google's Open Mobile Alliance (OMA) emerged later in the year 2007 and it can exist in a state of collaboration and harmonize with LiPS. OMA develops open specifications for content and services, whereas LiMO concentrates on specifications and standards for these services. At the center of OMA you will find Android, which is a Linux/Java-based stack for developers. It is a common framework that leads to greater centralization, essentially replacing that notorious fragmentation with unification.

    All in all, in the mobile space, growth continued at a rapid pace, especially in Asia. The effect of LiMO and Google's Android is to be seen in years to come. Google has already spent hundreds of millions of dollars on its endeavors in the mobile space, the company's spectrum-related investments aside. We shall see the first product that uses Android in the first quarter of next year. Many large companies will be actively involved and HTC might lead the way.

    Desktops

    On the desktop, the outlook seems increasingly bright. Two independent user surveys, one from LinuxDesktop.com and another from the Linux Foundation, saw participation more than doubling in just one year. This indicates strong growth that cannot normally be measured. When it comes to free software, obtaining absolute numbers is different from studying trends. If you extrapolate these figures, as some industry watchers have already done, then it's almost safe to assume that the presence of GNU/Linux on the desktop has doubled in the past year.

    In 2007, several major OEMs (Original Equipment Manufacturers) such as Dell, Acer, Hewlett-Packard, Lenovo and Epson have all begun offering GNU/Linux options for PCs that they stock. Other companies such as Toshiba have spoken in the press about the possibility of offering such choice in the near future.

    Preinstalled GNU/Linux became more commonplace among smaller computer shops too. Some attribute this trend to Windows Vista backlash and -- in particular -- its steep hardware requirements that elevate cost. It appears like only a matter of time before offering GNU/Linux as an affordable option becomes the norm everywhere. With availability, a system that was once perceived as 'exotic' or a hobbyist's choice suddenly becomes mainstream.

    Acceptance of GNU/Linux by the world's largest OEMs was only the beginning. Large retailers such as Tesco and Wal-Mart began offering cheaper GNU/Linux computers, adding more choice to past offerings that were less attractive, scarcely advertised, lacked support, and suffered from limited availability.

    Wal-Mart's offer of the Everex gPC was a success. They sold out within a couple of weeks and this was not an isolated incident. Dell's sales figures of GNU/Linux PCs exceeded the company's initial expectations as well, so they expanded their offers to more models and brought GNU/Linux options to more parts of the world. 2007 will be remembered as the year when GNU/Linux became not only available, but also properly preinstalled on desktops and laptops by the world's largest companies.

    Low-end Laptops and Tablets

    In recent months, a wave of highly anticipated laptops finally arrived. Some insist on calling them gadgets because they are on the verge of being intuitive and affordable enough to suit every person and even be sold over the counter just like any consumable electronic item. These laptops are small and their use of GNU/Linux permits them to use modest hardware that is inexpensive. The Linux-based Eee PC is probably the most recent example.

    It was only a couple of months ago that ASUSTek introduced the Eee PC, whose sales figures have so far exceeded the company's initial expectations. It soon became one of the most sought-after Christmas gifts and the company cannot manufacture these fast enough to meet overwhelming market demand. Just before Christmas, the company revised its sales forecast positively, made this product its second-most valuable asset, and even predicted that it would occupy a 20% market share among laptops within years.

    The Eee PC is just one among several success stories that involve portable low-end products. They all happen to be Linux-based for a reason. Other similar laptops and tablets include: Zombu notebook (powered by Gentoo Linux), Nokia's Internet tablets (running the Debian-based Maemo), Intel's ClassMate (running Mandriva Linux) and PepperPad. Even Wal-Mart is poised to deliver a notebook equivalent of the Everex desktop mentioned above. It will be called Cloudbook.

    The One Laptop Per Childmakes another case study that isn't very ordinary. It is misunderstood by those who review it because its target audience is underprivileged children in parts of the world where computing is more rare. The laptop is highly innovative -- and thus it seems almost outlandish -- but at the same time a not-for-profit organization stands behind it. The laptop, which runs XO on top of Fedora Linux, strives to reach children all across the globe and become a universal educational tool. It is proving quite popular even among adults in United States where it is sold under the ”Give one, get one” program (closing at the end of this month, so you can still order yours and help bridge the digital divide).

    New laptops of this kind keep coming at a rapid pace, owing to relatively low and ever-decreasing costs that are associated with producing hardware nowadays. This makes other expenses -- any expenses for that matter -- highly undesirable. Costs that are tied to software should constantly be escaped for a competitive edge, so manufacturers find haven in free software. Such new imbalance between the cost of hardware and software typically promotes the use of GNU/Linux.

    Program scale and 'weight' (and therefore speed of the software) come into play also. Since Linux presents a flexible platform that facilitates tweaking, things like complexity, battery consumption and various other aspects are easier to have customized. Amazon's Kindle, for example, runs Linux and it employs an underlying design that exploits this key trait. It reduces consumption of battery power, thereby increasing its actual capacity. Generic and rigid systems cannot achieve this without considerable investment.

    Consoles

    Crossing over to the world of gaming, which is loosely related to computing, the GP2Xhandheld is definitely worth mentioning. It is one of the most hackable Linux-based consoles of its type and there are other similar gadgets such as the Sony Mylo, which came to the limelight in 2007. (Part 2 of this article will discuss such devices in greater depth.)

    When it comes to next-generation consoles, GNU/Linux is never left neglected. A full-blown platform can trivially be installed on the PlayStation 3 and hacks also exist which enable GNU/Linux to run on Nintendo's Wii and Microsoft's XBox360. The latter requires a firmware downgrade, however, and it is not considered quite so ethical. By all means, it does demonstrate the versatility and adaptability of the Linux kernel. There is almost no electronic circuit that Linux is unable to cope with nowadays. The kernel supports literally dozens of different architectures.

    Media Players and Set-up Boxes

    There are many examples of the use of GNU/Linux in media (e.g. video, audio, pure graphics). The MythTV family, for instance, is cutting-edge free software that can turn old PCs into powerful media servers and set-up boxes. Pre-built appliances already exist for those who cannot handle the complexity of installation. 2007 gave birth to several businesses (mostly system integrators) that capitalize on the need for support in this space.

    Many commercial equivalents thrive without their users paying attention to the underlying system. Tivo is an excellent example of this because it runs Linux at its heart. Tivo customers are usually oblivious to this fact.

    Among televisions, including consideration for IPTV, some have called Linux a de facto choice. Rarely does it get the attention of ordinary viewers to whom a box is just a box, no matter what programs run on it.

    The next part of this article, which covers embedded Linux and also Linux devices, covers more about portable audio players and film production. This first part of the article presented just some of the many areas where the use of GNU/Linux continues to grow. The next part puts greater emphasis on areas of Linux growth that are more remote from people's sight. We will cover growth in devices, robotics and servers, including large-scale services powered by mainframes and cloud computing.

     

    译文如下:

    2007年GNU/Linux 增长路线图
    有时候会忘记GNU/Linux不仅仅是一个桌面操作系统。Linux,作为一个设计优秀的内核,被广泛地应用并且在不同的计算领域扮演着重要的角色。寻 找Linux的增长迹象不应该仅仅局限于桌面操作系统。评定必须基于那些GNU/Linux得到青睐的诸多领域。这就必须对一些分化趋势进行认真的考虑。
    随着时间的推移,电器可能会继承传统桌面的重要角色。由于基于网络的软件发展,手机和ultra-mobile设备会渐渐的取代笔记本和服务器成为主导,(1)同样这也将数据存储推向后端。现在我们来一起探寻GNU/Linux是怎样适应(此处this broader vision不知道该怎么翻译),一起看看它是怎样的无所不在,并且在一直不断的增长中。

    超级计算机
    在超级计算领域,GNU/Linux已经成为非常受欢迎甚至不可替代的系统。选择它是因为它的伸缩性和可靠性,而不是因为价格。在全世界的超级计算机中, 把虚拟化技术也考虑在内,Linux的占有率从2006年的86%上升到2007年年末的91%。这样比较2007年的增长算不上巨增,但是却显示出 GNU/Linux在这个领域的地位不仅没有松动,而是更加的紧固的控制,惯性可能会使得这样的控制地位继续维持下去(此处if not further expanded in years to come不知道怎么翻译好)。
    在过去的几年中,SGI,Sun Microsystems和微软一直试图增加或者恢复自己在超级计算领域的份额。SGI在UNIX的退让有利于GNU/Linux,相反微软和Sun公司(2)奋起直追, 并且他们也证明了Windows和Solaris的增长。在世界500强计算机中,他们的野心只得到了非常有限的成果。IBM的AIX继续占有4.8%, Sun公司的Solaris占有0.4%,Mac OS X保持在0.4% 。GNU/Linux依旧是这个领域中的统治性平台。对这个平台的不断增长的信任来源于它的成熟和来之不易的声誉。

    手机
    EDN强调了Linux去年在手机领域的的成功。它指出,由于NEC,松下,摩托罗拉和其他手机制造商的功劳,Linux在亚洲受到了空前的欢迎。根据市 场分析师引用自Webb观点,在2006年,Linux为前一年(shipped在这里怎么翻译比较流畅呢?)提供了大约四分之一的特性(这一句相当没有 感觉,求高手指点)。似乎增长从那个时候就一直持续,曾经一度存在的障碍也在2007年消除了。
    基于(Linux-powered怎么翻译更加舒服一些,请老手讲解)Linux的手持设备在其开发阶段就面临不同的构架之争(这里我感觉把 fragmentation翻译成本意破裂太生硬,后文是将Google的Android的统一性,所以用意译了),但是Linux手机标准(LiPS) 论坛已经为合作建立了正式的联系渠道和技术构架。Google的开放移动联盟(OMA)在2007年年末的出现说明了它能够与LiPS合作并和谐地共存。 OMA为内容和服务开发开放的规范,然而LiMo却专注于这些服务的规范和标准。在OMA中心,你会看到Android,对开发者而言,它就是一个 Linux和java的堆积品。事实上它是一个引导至高度统一的公共构架,以其统一性从本质上改变目前众所周知的零散状况。
    总而言之,手机市场继续高速增长,尤其在亚洲。LiMO和Google的Android的影响将在数年后看出来。Google为其在移动领域的 努力已经花费了数以百万的美元,(the company's spectrum-related investments aside这句不知道怎么翻译)。我们应该可以在明年第一季度看到第一个使用Android构架的产品。许许多多的大型企业都会积极加入其中,并且HTC 也许会是领头羊。

    桌面
    在桌面市场,前景似乎更加的光明。分别来自LinuxDesktop.com和Linux基金会的两项独立的使用者调查表明,参与到Linux阵营中的人 在一年中翻了两倍多。如此强势的增幅是无法常规地估量的。(此处When it comes to free software, obtaining absolute numbers is different from studying trends.不知道怎么翻译好,求论讨老手指点)。如果你像某些产业观察家一样推断这些数字,保守地说,当前GNU/Linux在桌面市场的占有率已经 是去年的两倍。
    在2007年,数个主要的OEM例如戴尔、宏基、Hewlett-Packard、联想和爱普生已经开始为他们的PC提供GNU/Linux作为一种选择 (此句相当生硬,求指点)。其他公司,例如东芝已经在媒体宣布在不久的将来为其产品提供Linux作为一种选择的可能性。
    在规模较小的电脑销售商中,预装GNU/Linux已经变得越来越平常,有人将此趋势归因于人们对Windows Vista的强烈不满,尤其是Vista对硬件过高的要求提升了电脑的价格。照此,只需要很短的时间,安装GNU/Linux作为一种选择将会改变为一个 到处都遵守的标准。随着Linux易用性的发展,Linux这个曾经被认为是怪人和业余爱好者选择的系统将会突然成为主流。
    沃尔马的Everex gPC就是一个成功的例子。他们在几个星期内被销售一空并非是一个个例。戴尔预装GNU/Linux系统的PC销售量也超出了公司的最初期望,于是他们提 供更多的型号的产品并将GNU/Linux系统作为一种选择,扩大到更多的地区。2007年将会因为GNU/Linux系统从不仅仅是可以使用,到被世界 上最大的公司合适地地预装到了台式机和笔记本电脑中而被铭记。

    低端笔记本和平板电脑
    在最近几个月,一批被寄以厚望的笔记本终于下线了。因为该产品兼得出色的外观和低廉得足以让每个人都买得起的价格,甚至可以像其他电子消费品一样放在柜台 上出售,于是有人坚持称其为“小玩意”。这些小巧的笔记本由于使用GNU/Linux系统使得它们可以使用合适却不昂贵的硬件。基于Linux的Eee PC就是最近的一个例子。
    仅仅是在几个月前华硕才引入Eee PC的概念,几个月后它的销售量就远远地超出了公司的预期。很快它就成为了最火热的圣诞礼物,华硕的产能已经不能满足空前的市场需求。就在圣诞前,华硕积 极地修正了它的销售预测,使得这一产品成为华硕价值为第二的资产,甚至有预言称Eee PC可能会在几年内占有20%的笔记本市场份额。
    Eee PC仅仅是众多低端便携式产品的成功故事中的一个。这些成功的便携式产品的共同的原因就是它们基于Linux。其他类似的笔记本和平板电脑有:Zombu 笔记本(使用Gentoo Linux),诺基亚的因特网平板电脑(运行基于Debian的Maemo),英特尔的ClassMate(运行Mandriva Linux),还有PepperPad.甚至沃尔马也打算放出一款与上面提到的Everex desktop相当的笔记本,可能会被叫做Cloudbook。
     

    感谢6楼同学的指点,文中红色字体标注(1)、(2)处来自于6楼ideas的贡献。

  • 上图先。

    我喜欢简单的色调和简单的构架。

    我认为黑白是最能铭刻记忆的色彩,不过我设计的封面很多人都不喜欢。呵呵。其实也怪自己太粗心,在电脑上做的时候看见对比度很好的,没有考虑到印刷出来铜版纸会反光,而且印刷质量对灰色的渐变效果影响很严重 。打算在星期一发布。

  •     还是坚持坐到最后一分钟出场。很多题都没感觉,复习的时候看懂了的最小二乘法在考试的时候一点也想不起来,还有很多奇怪的公式……出来之后遇到的同学大都是一片哀嚎。

        明天又是周末,两天的空闲时间,好好利用起来复习一下。 

  •     早上的英语课上讨论了一下情人节和玫瑰的话题,老师问及到大家是否会选择在情人节这天送玫瑰花给自己的另外一半的时候,似乎很多观点都是:会。不过接下来老师又问了一个问题:Will you take the price into consideration?毕竟都是理工学生,加之现代人都现实得不行,这次也比较统一:Of course.

        听了大家的观点后,老师说了一段自己的观点,顺便给我们分享了一下她的爱情生活:

         I don't think love can be evaluated by money , but practical gifts will be better choice for me . Because I think roses will fade in several days , but a book or a dictionary can be reserved and cherished for ever and become a best witness of our love.

        一段很舒服的英文。

     

         今天果然在听到闹钟后起来了,不过郁闷的是地热水停止供应,事先也没有个通知,真不爽,已经连续两天停止供应地热水了。开始复习,毕竟期末考只有两个周左右就会来临,硬着头皮看离散数学,自己看的感觉怪怪的,似乎有点囫囵吞枣的感觉。还有概率论、电路、物理、马克思主义哲学,让人很心烦的课程!明天晚上是物理实验考试,宿舍兄赵依旧WOW,其实很自然了,大家都差不多,对考试似乎麻木了,对通过与否已经不再像大一那样在乎。据说,以后的日子会变本加厉的改变我们曾经单纯的目标,我似乎看到了一片迷雾森林。

        这段时间很想简单的回到过去,不停地怀恋过去的那种很纯粹的简单的生活,自习,看书而已,每天都是充实的,每天都能写一下blog就很好了。 

        我们的杂志《指间沙》即将印刷结束,跟印刷厂订的协议是在1月5号之前完成。很期待!关于这个杂志,做过了才体会到上任主编的不容易,也许我现在可以理解到他那么坚决的离开的原因了,杂志从技术角度而言不存在任何问题,很是简单。不夸张的说,至多只要3个人就可以完成技术工作,关键是人心很散,队伍不好带啊。似乎人们都是3分钟热度,计划期间都雄心勃勃,在实现期间却不断逃避退缩……很多很多。也许这期杂志将会是一个终点,这是我不希望见到的结局。有时候很容易听到“人各有志”这句话,不过这句话似乎是一个逃避的借口,在开脱自己管理不好的责任。推卸责任甚于不负责任。

        我一直很想不通的是为什么股份制不好,其实学院如果肯做的话完全可以以参股的形式加入,无外乎是最大股东。在那次会议上我还期待着学院新上任的领导能够做一个有新意的决定,实情却是我也要很“理解”的赞同学校的方案。有时候反思自己是不是太幼稚,学院怎么会在乎这样一份刊物呢?我能用什么来说服我的他们给我的”风险投资“呢?我有的只是满腔热情和打算做一点事情的勇气。每次听到大家声讨学校,声讨学院的时候,也很是懊恼,既然大家都认识到这里是一个古板的环境,为什么我还在有打算坚持下去的想法。现在大家都很明白这是一个相互利用的关系,我身边的兄弟姐妹们还打算继续下去吗?

        天气好冷。

        但这并不影响曹B的日语学习热情。用阿超的调调来说就是”人各有志“了,哈哈。 

  • 看了《色戒》,看了若干影评,觉得这篇写得很有味道,转载之,留下记号。

    以下内容转载自http://swallowtailbutterfly.blogbus.com/logs/10593290.html

    原作者: swallowtailbutterfly

     

    《色,戒》----以“色”为媒

    马德里九月的一天,我在一条大街的拐角处等待同伴,那里有一个露天咖啡馆,三三两两散坐着一些顾客,其中一个正在翻阅报纸。就在他打开报纸另一个版面的瞬间,李安和他所亲吻的金狮在我眼前惊鸿一瞥,于是我知道《色,戒》征服了威尼斯。
    昨夜,原本想去看第一场在上海的公映,结果经不住越吹越寒的风回了家,今天起床后的第一件事情便是去了附近的电影院,因为我想知道李安是凭什么第二次拿到了金狮,说实话,对于《断臂山》在那年的奥斯卡上败给了《CRASH》我是持认同观点的,尽管有评论说是因为《断臂山》所讨论的情感问题太过险隘而《CRASH》所牵涉的关于种族、贩毒等社会问题更符合评委的口味,但我觉得李安在那部影片上并没有超越他自己,或者说,我觉得他还是一贯温情。

    然而,这一次他做到了,他成功的隐藏了温情,凸显了“杀气”。

    相比无数人津津乐道的“天涯歌女”片段,让我印象深刻的是结局。易先生在那里怔怔地坐在王佳芝以前的房间里,打发了易太太,眼里隐隐泛着地是他初听王佳芝唱起《天涯歌女》时的泪光。
    这一段是李安加上去的,而在张爱玲的原作里,“他又站在他太太背后看牌,心里想着王佳芝。”这个改编是李安式的温情,不过这次那些煽情的电影音乐并没有再次响起,也没有闪回,取而代之的是和那场戏里同景别的易先生的脸部特写和宣告着女主人公命运终结的钟声……在我看来,当一个导演不再借助背景音乐和闪回这样的好莱坞初级视听语言来营造氛围的时候,他离“大师”就不远了。

    当然,那几段被广为传诵的床戏作为大陆观众估计要等很久才能得见庐山正面目,但是李安亲自做的删节版并没有多大程度上影响本片的完整性,至少今天在影院看了删节版的我和在香港看了完整版的M一样心情沉重。

    对于王佳芝,很多人的评语是“入戏太深,人戏不分”以至于最后妄自送了性命。不过,从一个女人地观点坦白地说,王佳芝并非不分,而是没有选择,从一开始她就没有选择。

    当初,一腔热情地她还没有从文艺演出的掌声中回过神来,就被邝裕民和其他同学送上了“战场”,邝裕民对她有感情,也信誓旦旦地说过要保护她,可实际行动却是把她当作了自己的“工具”,抽几根香烟的时间里就讨论好了把她送上了别人的床。
    梁润生在生理上完成了把王佳芝变为一个女人的道路,易先生却从阴道里找到了通往这个女人心里的道路,因此,在她心里,易先生才是她的第一个男人,也才配做她的第一个男人。那几个穷学生酸腐的只会在暗杀计划前讨论“麦先生”是否该有胡子,而眼前这个蛇一般的男人却直直地要钻入她的身体和内心。
    这两个人也算是棋逢对手,就如同当年的张爱玲遇见胡兰成,如此聪慧的女子一旦遇见了旗鼓相当的对手,又怎会让一个汉奸的头衔而挡住了共赴鸳梦的去路,正如爱玲所说,“虽然她恨他,她最后对他的感情强烈到是什么情感都不相干了,只有感情。他们是原始的猎人与猎物的关系,虎与伥的关系,最终极的占有。她这才生是他的人,死是他的鬼。”
    戏演到高潮,王佳芝用了另一种方式喊了“停”,她没有成全邝裕民,她选择了成全自己,其实她这个时候的选择不是杀不杀眼前这个汉奸,而是选择自己死还是情人死,可惜,多数时候,在感情里都是女人沉沦,男人脱身。于是,她低声说:“快走”。他立刻明白,跳下楼梯,夺门而出,而她平静地面对一切。

    钟敲十下以后,易先生终会走出王佳芝以前的房间,但若是换一个结局,王佳芝怕是永远走不出易先生的影子。

  • 2008-01-02

    时间再度死亡。 - [Life]

        四级结束后一直腐烂,腐败的气味弥漫身边。元旦3天假期两天没有睡觉,不是复习期末考而是下棋,于是,时间就这样挂了。

        很多时候都在计划和打算,落实与实施似乎是个笑话。自己的笑话,一年多了,只有06年下半年还有点人样,剩下的时间都死掉了,自己的笑话。

        2008到了,4月Ubuntu的新版本即将面世,8月北京奥运即将开始,9月我即将进入倒数第二年的保鲜期……时间过得异常的快。还有10年就2017,10X365还要死多少?

        写下3条计划:

        1.每天听到闹钟就起床。

        2.学会专注,有效率的行动。

        3.无论何时,记住Life Rewards Action.

     

        New Start!

      

  • 2008-01-02

    A New Start - [Life]

    Here is the New Start.

    Memorise.