Le's profileSomething like a home pa...PhotosBlogListsMore Tools Help

Blog


    December 31

    find找出除某一目录外所有符合某条件的文件

    假如我要找到所有/home/zhangle目录之外的owner为zhangle的文件
    find / -path '/home/zhangle' -prune -o -user zhangle
    这样结果里会有一个/home/zhangle,但不会有其他任何/home/zhangle里的文件
    December 29

    Linux in 2009: Recession vs. GNU

    Pundits and business executives alike are predicting gloomy economic times for 2009. But when the talk turns to free and open source software (FOSS), suddenly the mood brightens.
    http://itmanagement.earthweb.com/osrc/article.php/3793286/Linux+in+2009:+Recession+vs.+GNU.htm

    December 27

    begin twittering

    i know i am out of date
    -_-
    updated links:
    http://www.gentoo-cn.org/wiki/User:Zhangle#Links

    December 23

    政法大学砍死教授男生披露作案动机 称不后悔

    这是新浪的一个新闻
    http://news.sina.com.cn/c/2008-12-23/085316902542.shtml
    这是被顶的最高的头两个评论
     2008-12-23 09:39:09 新浪网友 IP:116.70.4.*(北京)
    年 轻的无知和冲动!女人永远只会献身于他们崇拜和欣赏的男人,而不是你这种纯洁的,善良的小男生。你多经历几次感情便会明白这个道理,如果希望得到女人的芳 心,你只能努力 提高自己。你想象中的那么美好的完美的感情在现实中不存在,尤其在北京这样的大城市。我替你惋惜,真的不值得,无论是那个女人还是那个教授,你应该做的是 抛弃那个女人,好 好努力,以后自然会有青睐你的女生,好好对待你的父母和真正爱你的人,不要被这种丑陋的东西影响到你的人生观和价值观。现在社会上这种事情很多,你无法改 变什么,你能保持 的就是你的自我! [41条回帖]
    [举报]

     2008-12-23 11:14:34 手机用户 手机看新闻
    他人笑我太疯颠,我笑他人看不穿!兄弟一路走好,敬重你是条汉子!现在有血性的中国人越来越少啦,佩服你!可惜生不逢时,否则也是响当当的英雄好汉! [19条回帖]
    [举报]

    写了个Gentoo upgrade脚本

    #!/bin/bash

    # cronjob
    cflag=
    # only upgrade, do not sync
    oflag=
    # verbose
    vflag=

    while getopts cov opt
    do
        case "$opt" in
          c)  cflag=1;;
          o)  oflag=1;;
          v)  vflag=1;;
          \?)
                echo >&2 "usage: $(basename $0) [-c|-o|-v] "
          exit 1;;
        esac
    done
    shift `expr $OPTIND - 1`

    if [[ -z $oflag ]]
    then
        sudo layman -S && sudo eix-sync
    fi

    eflag="--keep-going -tvuDN"

    if [[ -z $cflag ]]
    then
        eflag="$eflag -a"
    fi

    if [[ -z $vflag ]]
    then
        eflag="$eflag -q"
    fi

    sudo emerge $eflag world
    December 22

    Custom kernel in Fedora

    http://fedoraproject.org/wiki/Docs/CustomKernel

    因为我未来可能还需要跟fedora打交道
    所以记录一下
    December 21

    X Japan香港演唱会

    票卖完了……
    http://www.hkticketing.com/Ticketek/event/nswcms_event.asp?id=2699&Title=X%20JAPAN%A5@%AC%C9%A8%B5%BAt%AD%BB%B4%E4%BAt%B0%DB%B7%7C%20(%AA%F9%B2%BC%A5%FE%A4w%B0%E2%C1j)

    周五从Lee Gardens出来,经过时代广场,在大电视上看到了X的Last Live的片段
    觉得自己像是在做梦
    同时眼睛有点湿润
    然后看到原来这是他们香港演唱会的广告!!!

    可惜今天再看,票竟然买完了

    只能说我这个X迷不够铁杆
    伪X迷……

    这活比我想象的简单

    差不多搞定了,还有一些收尾的工作
    December 20

    接了个活,为期3天

    拿人钱财,替人消灾
    没有办法
    Firefox的事情先放一放,下周一重新开始

    December 19

    我要让Firefox 3.0在MIPS N32 ABI userland里跑起来

    需要从头写几个文件
    涉及c++和汇编
    发现了一个test case,可以供我了解一下那几个函数的作用
    明天开始详细研究

    还有这两个链接
    https://developer.mozilla.org/en/xptcall_FAQ
    http://mxr.mozilla.org/mozilla/source/xpcom/reflect/xptcall/porting.html
    December 17

    转用ibus

    ibus是一个比较新的中文输入法
    http://code.google.com/p/ibus/wiki/PinYinUserGuideCN
    gentoo china overlay和gentoo中文文档的活跃贡献者余钰炜(acevery)有份参与开发这个输入法

    gentoo gcc optimization

    http://www.gentoo-cn.org/gitweb/?p=gentoo-cn;a=commitdiff;h=34d4064fc032b50d8a962166fe7d429cec5fa693
    http://www.gentoo.org/doc/zh_cn/gcc-optimization.xml

    我感觉,很多人翻译只是把翻译当作强迫自己把文档好好看一遍的手段
    当然,有人参与翻译已经是求知不得了
    所以,还是知足常乐吧

    December 16

    解决了龙芯2F盒子上的两个有关声音的问题

    http://www.lemote.com/bbs/viewthread.php?tid=20324

    foxsen给我提了个我4年前就知道答案的“建议”……
    一晃竟然4年了……
    真是唏嘘不已啊……

    December 14

    gNewSense MIPS port项目主页改了地址

    http://wiki.gnewsense.org/Projects/GNewSenseToMIPS

    我还不清楚我将会做些什么
    这个项目将怎样运作
    参和参和吧

    December 12

    感谢所有关心我的人

    我曾经跟很多人谈起过,我只要有网络,有吃有喝有住的地方,我就能很好的生活
    如果把自己的要求放低,幸福感就很容易获得

    http://en.wikipedia.org/wiki/Cynicism

    The classical Greek and Roman Cynics regarded virtue as the only necessity for happiness, and saw virtue as entirely sufficient for attaining happiness. Classical Cynics followed this philosophy to the extent of neglecting everything not furthering their perfection of virtue and attainment of happiness, thus, the title Cynics, derived from the Greek word κύων, ("dog" in English) because they allegedly neglected society, hygiene, family, money, etc, in a manner reminiscent of dogs. They sought to free themselves from conventions; become self-sufficient; and live only in accordance with nature. They rejected any conventional notions of happiness involving money, power, or fame, to lead entirely virtuous, and thus happy, lives.[1]

    One aspect of the Cynic way of life involved criticism of the types of behaviours, such as greed, which the Cynics viewed as causing suffering. Emphasis on this aspect of their teachings led, in the 19th century, to the modern understanding of cynicism as "an attitude of scornful or jaded negativity, especially a general distrust of the integrity or professed motives of others."[3] This modern definition of cynicism differs markedly from the ancient philosophy, which emphasized "virtue and moral freedom in liberation from desire."[4]