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

Blog


    May 19

    glibc 2.10.1

    glibc 2.10.1已经出来
    http://udrepper.livejournal.com/20948.html
    有个新特性和龙芯有点关系:Automatic use of optimized function

    不过,glibc-ports-2.10.1还没有tag
    http://sourceware.org/ml/libc-ports/2009-05/msg00025.html
    所以龙芯就暂时还用不上glibc-2.10.1
    May 12

    颐和园

    最近看禁片的瘾上来了
    专找禁片看
    禁哪个看哪个

    颐和园,真是一部刚猛的禁片
    2小时22分56秒的screener版
    又黄又暴力,真是是不禁孰片可禁
    男女主角正面全裸加64事件正面描写
    刚猛之极啊
    May 11

    霸王别姬

    不看霸王别姬,唱不好当爱已成往事……

    刚刚看了霸王别姬
    确实是不错的片子

    联想起之前看过的和你在一起

    想不通陈凯歌怎么就拍出了无极这样一个烂片……

    不行,看完几个小时了,心情还是巨压抑……

    英文版的wikipedia条目比中文版的还要长……
    http://en.wikipedia.org/wiki/Farewell_My_Concubine_(film)
    May 09

    刚看了一篇龙芯3的paper

    里面说他们已经修改过了binutils和gcc
    May 08

    irssi unload script

    /script unload nicklist

    git format-patch --cover-letter --thread

    http://www.linux-mips.org/archives/linux-mips/2009-05/msg00052.html

    经常看到别人发的一串补丁的第一个是对这一系列补丁的总体介绍,还包括文件改动的概况,就像上面这个。
    觉得挺不错的。

    而且觉得这应该是自动生成的,至少这个框架是自动生成的,最多自己往里面填点东西。可是不知道是那个参数。

    刚刚花了点时间看了一下man git-format-patch,发现原来是--cover-letter。
    另外还有一个--thread,这个的作用是让所有补丁变成cover letter的回复。

    看看效果:
    http://www.nabble.com/-PATCH-0-3--Added-uncached-accelerated-CPU-feature-to23440834.html#a23440834

    一个(系列)内核补丁的诞生

    01:58 < r0bertz> Ralf: what about this patch http://dpaste.com/41858/
    01:58 < r0bertz> I just tested on fuloong 2f box
    02:00 < Ralf> And willl crash on R4000, R4100, R4200, R4300, R4400, R4600, R5000 ...
    02:00 < Ralf> They all don't have uncached accelerated.
    02:00 < r0bertz> oh
    02:01 < r0bertz> add some ifdef?
    02:01 < Ralf> NACK :)
    02:02 < r0bertz> :( then what to do?
    02:02 < Ralf> Figure it out dynamically.  Some systems support both CPUs that have and CPUs that don't have
                  uncached accelerated.
    02:02 < Ralf> As a general rule of thumb use #ifdef only if everything else fails.
    02:02 < r0bertz> ok
    02:02 < Fleedwood> | pgprot_uncached_acc;
    02:03 < Fleedwood> which gets set by cpu detection code
    02:03 < Fleedwood> and is simple the same a uncached for cpus not supporting it
    02:03 < r0bertz> thanks
    02:04 < Fleedwood> that would be my way of doing it
    02:05 -!- Fleedwood [n=tsbogend@212.14.95.36] has quit ["Leaving"]
    02:48 < r0bertz> Ralf: this one? http://dpaste.com/41885/
    02:49 < daney> cpu_has_uncached_accelerated should be treated like all the other cpu_has_* things in cpu-features.h
    02:50 < daney> For many cases we want the compiler to be able to resolve it at compile time.
    02:51 < Ralf> ep
    02:52 < Ralf> Yep.
    02:52  * Ralf is off for dinner
    02:52 < r0bertz> indeed, that's better
    ....
    03:25 < r0bertz> Ralf: http://dpaste.com/41904/
    May 07

    使用mplayer从影片中截取片段或者纯声音片段

    假设影片名为sampler.avi
    要输出的片段文件名为test.avi
    要输出的声音片段文件名为test.wav
    开始时间是42分16秒
    持续时间135秒

    截取片段:
    mencoder -oac mp3lame -ovc lavc -ss 00:42:16 -endpos 135 -o test.avi sample.avi

    截取声音片段:
    mplayer -ss 00:42:16 -endpos 135 -ao pcm:file=test.wav sample.avi

    转成mp3:
    lame test.wav test.mp3