2008年8月10日星期日

8月10日

昨天和我舅一起回保定,路上我们谈了很多有关工作上面的事情,还谈了奥运会开幕式,这次谈话我感觉比以前轻松多了,回到姥姥家,我和三舅一家,四舅,姥姥一起看奥运比赛,大家一起看电视谈论比赛感觉很轻松,像是回到了大学的暑假。
我舅还送给我们一些奥运会的门票,棒球,手球,排球。还有三舅的足球半决赛的门票,哈哈,很期待。
狗狗好像对奥运会不是很感兴趣,看来只能我一个人去看比赛了。

2008年8月8日星期五

just-so-so的开幕式

一看就是那张一毛的风格,暴发户似的,一点文化都没有,有些东西让人觉得莫名其妙,比如搞的那个京剧的前线木偶,四个老男人往上面一站,头低下来,手在那里上上下下的,离远了看,像是在手淫。
对,他们就是在集体手淫吧,哈哈

2008年8月7日星期四

放假

明天我们也放假一天。
北京市政府在周一的时候就放出话来,北京市的企事业单位没啥鸟事的都放一天假,但是我司就是不说放假的事,还假惺惺的安排8月8号的班车,直到今天中文才发出放假通知;妈的,我司就是不顺利的给你应得的东西,搞得都和赏赐给你的似的。

2008年8月6日星期三

一个人的战争

偶然发现了王小峰原来在歪酷上面的老文章,发现比最近新写的带劲多了。
其中这篇文章《一个人的战争》又让我重新认识了历史

2008年8月5日星期二

x86-30年

June 5, 2008 (Computerworld) Thirty years ago, on June 8, 1978, Intel Corp. introduced its first 16-bit microprocessor,

the 8086, with a splashy ad heralding "the dawn of a new era." Overblown? Sure, but also prophetic.

While the 8086 was slow to take off, its underlying architecture -- later referred to as x86 -- would become

one of technology's most impressive success stories.

今天从computerworld上面看到的一篇文章。

30年了,x86架构真是有着顽强的生命力。

2008年8月2日星期六

powerpc和x86的学习心得(1)

最近又开始学习x86了,以前大学学过之后就一直没有用到,反而是来华为之后才接触的powerpc使用的很多,其实x86都忘的差不多了,从理论上powerpc体系结构更先进,但是商业运作上面输给x86阵营,由于x86的cpu随处可见,用的十分广泛,自己搞linux又绕不开它,所以决定好好学学,这样对比来学,对powerpc的理解也会加深一些。
今天开始总结一下学习心得:
powerpc体系定义了很多通用寄存器(典型的32个),但是具体怎么使用这些寄存器,powerpc并没有规定,而是把这些使用的方法全部推给了编译器来自己来约定,由编译器来定义abi,比如r1做栈指针,r3-r10传参数等等;这样的好处就是灵活,缺点是如果编译器的abi不同,那么编译出来的二进制程序无法相互兼容。

对比来看,x86把自己的寄存器假设了几个应用场景,这个干啥的,那个干啥用,都差不多给你规定好了,你只管用就好了,不存在abi的问题,所以优点是傻瓜式的cpu,简单方便,统一的唯一的abi;缺点是:不灵活,不能自己定制。

我认为这是这两款cpu之间除了risc和cisc的区别以外最大的区别了。

2008年8月1日星期五

KISS

Linux: 有史以来最有趣的自述文件?
matrix 发表于 2008年8月01日 17时18分 星期五 Printer-friendly Email story
来自偶火星?部门
娱乐
gnome-cups-manager是Gnome桌面中的打印机属性管理工具。但是它的自述文件(README File)可能比程序本身更令人感兴趣:
很久很久以前,有一个打印机居住森林里。它很孤独,因为没人知道如何配置它。它希望有人能和它一起玩。
一天,风吹过打印机的小屋,“呼,呼”。打印机开始兴奋起来,也许风可成为它的朋友。
“你愿意做我的朋友吗?”打印机问。
“呼,呼”,风回答。
“什么意思”,打印机问。
“呼,呼”,风回答,它消失了。
打印机搞糊涂了,它把这天剩余的时间都花在思考上,打印纸被卡住了(小小打印机迷糊时就会这么做)。


The Most Interesting README File Ever?
Humor, Linux, Off-Topic July 27th, 2008


Another linux zealot at my old job gave me the heads up on this, it’s directly from gnome-cups-manager, and I thought you would all enjoy it. If you’re not aware, the readme file is for a Gnome graphical front-end for a tool used to manage print queues and adding printers/etc.

The only question is what illicit substances were not consumed during the writing of this file.

gnome-cups-manager
——————

Once upon a time there was a printer who lived in the woods. He was a lonely printer, because nobody knew how to configure him. He hoped and hoped for someone to play with.

One day, the wind passed by the printer’s cottage. “Whoosh,” said the wind. The printer became excited. Maybe the wind would be his friend!

“Will you be my friend?” the printer asked.

“Whoosh,” said the wind.

“What does that mean?” asked the printer.

“Whoosh,” said the wind, and with that it was gone.

The printer was confused. He spent the rest of the day thinking and jamming paper (for that is what little printers do when they are confused).

The next day a storm came. The rain came pouring down, darkening the morning sky and destroying the printer’s garden. The little printer was upset. “Why are you being so mean to me?” he asked.

“Pitter Patter, Pitter Patter,” said the rain.

“Will you be my friend?” the printer asked shyly.

“Pitter Patter, Pitter Patter,” said the rain, and then it left and the sun came out.

The printer was sad. He spent the rest of the day inside, sobbing and blinking lights cryptically (for that is what little printers do when they are sad).

Then one day, a little girl stumbled into the printer’s clearing in the woods. The printer looked at this curious sight. He didn’t know what to think.

The little girl looked up at him. “Will you be my friend?” she asked.

“Yes,” said the printer.

“What is your name?” asked the little girl.

“HP 4100TN”, replied the printer.

“My name is gnome-cups-manager” said the little girl.

The printer was happy. He spent the rest of the day playing games and printing documents, for that is what little printers do when they are happy.