February 24, 2005

手机上的mozilla


恭喜mozilla
祝Open Source 革命成功,打倒微软帝国主义!

Posted by hufey at 11:38 AM | Comments (0)

gentoo

历尽千辛万苦,费了九牛二虎之力,终于装上了GENTOO.
持续时间月余。
开始是给下载用的分区太小
然后是SATA硬盘传给kernel的参数不对(应该是root=080x,x是分区号)
期间还有修那个该死的HP机器的破声卡
终于看到了login,哈哈

本来应该写在昨天的blog的,可是昨天太兴奋了

Posted by hufey at 10:41 AM | Comments (0)

February 23, 2005

gcc -S

以前改的也存下档吧,省得找不到了

为了查汇编文件输出

Rule.make

...
[snip]
%.o: %.c
$(CC) $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -S $<
$(CC) $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -c -o $@ $<
[snip]
...

Posted by hufey at 03:13 PM | Comments (0)

gcc -E -P

man gcc
[snip]
-E Stop after the preprocessing stage; do not run the compiler proper.
The output is in the form of preprocessed source code, which is
sent to the standard output.

Input files which don't require preprocessing are ignored.
[snip]
-P Inhibit generation of linemarkers in the output from the preproces-
sor. This might be useful when running the preprocessor on some-
thing that is not C code, and will be sent to a program which might
be confused by the linemarkers.

2.4 kernel /driver/block/blkpg.c 在用了新编译器后有问题,需要输出preprocess信息检查
改/driver/block/Makefile如下

#
# Makefile for the kernel block device drivers.
#
# 12 June 2000, Christoph Hellwig
# Rewritten to use lists instead of if-statements.
#
# Note : at this point, these files are compiled on all systems.
# In the future, some of these should be built conditionally.
#

O_TARGET := block.o

export-objs := ll_rw_blk.o blkpg.o loop.o DAC960.o genhd.o

obj-y := ll_rw_blk.o blkpg.o genhd.o elevator.o

[snip] ... [snip]

include $(TOPDIR)/Rules.make

blkpg.o: blkpg.c
$(CC) $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -E -P $<
$(CC) $(CFLAGS) $(EXTRA_CFLAGS_nostdinc) -DKBUILD_BASENAME=$(subst $(comma),_,$(subst -,_,$(*F))) $(CFLAGS_$@) -c -o $@ $<

Posted by hufey at 03:08 PM | Comments (0)

February 20, 2005

moto要出一个带skype的手机

技术上讲,这是很容易的
走CDMA1x速度足够了
GPRS也许困难点
如果skype是open source编译一下就可以了
为啥slashdot上那么兴奋?

Posted by hufey at 03:09 PM | Comments (0)

February 17, 2005

INTERNET PIONEERS CERF AND KAHN TO RECEIVE ACM TURING AWARD

难道他们俩以前没拿到图灵奖么?
晕,我还以为早拿过了呢

Posted by hufey at 06:07 PM | Comments (1)

分辨率缩写

128 x 96 = subQCIF
176 x 144 = QCIF
176 × 220 = QCIF+
160 x 120 = QQVGA
320 x 240 = QVGA
320 x 200 = CGA
352 x 288 = CIF
640 x 350 = EGA (记得应该是640 x 400)
640 x 480 = VGA
800 x 600 = SVGA
1024 x 768 = XGA
1280 x 1024 = SXGA
1366 x 768 = WXGA
1400 x 1050 = SXGA+
1600 x 1200 = UXGA
1600 x 900/1200 = WSXGA
1680 x 1050 = WSXGA+
1920 x 1200 = WUXGA
2048 x 1536 = QXGA
2560 x 2048 = QSXGA
3200 x 2400 = QUXGA
3840 x 2400 = WQUXGA
PAL D1 = 720x576
HDTV 720p = 1280x720 progressive
HDTV 1080i = 1920x1080 interlaced

Posted by hufey at 01:07 PM | Comments (2)

February 16, 2005

水仙花开

Posted by hufey at 11:53 PM | Comments (2)

February 15, 2005

节后上班第一天

昨晚想着,节后上班第一天,给领导一个好印象吧,早点去。
透过窗帘,外边灰蒙蒙的。赶紧起床,一看表,8点半了。
拉开窗帘,原来是鹅毛大雪。坏了,下大雪,就开不了车了,
开车也开不快,可能还不如坐地铁快呢。
不过这个点坐地铁肯定迟到了,好印象是留不下了。 :(
找出买车前还剩的几张地铁车票。因为以前坐地铁如果现买票
都要排长队,一般我都一买就是一百块前的,买车的时候还剩下
了不少。想着今天坐地铁不用排长队了,哈哈。
顶着鹅毛大雪走了10分钟走到地铁站,奇怪,地铁里没多少人嘛。
没几个人排队,到底下坐车的人也不多。
嗯,肯定是已经快9点了,该上班的都到了。一路上很顺,10点多
到了单位,哈哈,单位停车场都空着啊,原来他们也觉得雪太大,
都坐地铁来的。
上楼,怎么这么安静啊。
到单位,屋里黑着灯,没人。太不像话了,都10点多了,居然还没人,
下大雪也不是迟到的理由啊。
所有邻居公司也没人。
别,别是我记错了吧???
开门进公司,开电脑找到邮件:

>> 春节放假时间
>> Date: Wed, 19 Jan 2005 09:23:15 +0800
>> 2005年2月7日--2005年2月15日放假
>> 2005年2月16日正式上班

今天是情人节第二天,2月15号。

Posted by hufey at 10:41 AM | Comments (2)

February 04, 2005

关注 L4Ka

Microkernels are minimal but highly flexible kernels. Both conventional and non-classical operating systems can be built on top or adapted to run on top of them. Microkernel-based architectures should particularly support extensibility and customizability, robustness including reliability and fault tolerance, protection and security. After disastrous results in the early 90's, the microkernel approach now seems to be promising, although it still bears a lot of research risks.

The L4Ka research project aims at substantiating and establishing a new methodology for system construction that helps to manage ever-increasing OS complexity and minimizes legacy dependence. Our vision is a microkernel technology that can be and is used advantageously for constructing any general or customized operating system including pervasive systems, deep-computing systems, and huge servers.

The technology should help to manage ever-increasing OS complexity, enable stepwise innovations in OS technology while preserving legacy compatibility, and lead to a widely-accepted foundation of system architecture.

Posted by hufey at 07:03 PM | Comments (2)

February 02, 2005

比较全的Makefile介绍

比较全的Makefile介绍

Posted by hufey at 11:56 AM | Comments (1)

在eclipse上给nokia手机开发j2me

ibm deverloperworks有一片文章介绍在eclipse上给nokia手机开发j2me程序。
我折腾了一天。
首先是serial number:在www.forum.nokia.com/tools上request serial number
出来的都是for windows的,for linux必须在安装的时候假装自己
不是forum member,在让你申请member的时候假装自己申请好了,
再把自己的id添进去自动从网站那边request。
然后是没按文章描述的那样出菜单,最后闹明白是
nokia deverloper suite的路径要设好,而且必须要chmod a+x.
还有就是nokia 的sdk基本上都是for windows的,我就纳闷,
不是都玩java了吗?怎么sdk还没有搞成write once, run anywhere.
肯定还用C写的亚
不过suite已经做成eclipse的plugin了,UI和文章也对不上
看来人家还是为windows准备地

TNND!!!

Posted by hufey at 10:48 AM | Comments (2)

为啥Apple要搞一键鼠标?

http://www.gearlive.com/index.php/news/article/why_apple_makes_a_one_buttoned_mouse_01280820/
给了答案
看起来很牵强
不过第一点还是很有说服力地
比如俺给俺爹妈买电脑数年了,
俺爹妈学电脑数年了
虽然没有英文right的歧义
到现在还要问我“拿鼠标点一下”是左键点还是右键点

Posted by hufey at 10:47 AM | Comments (2)

庆贺泡网重开!

Posted by hufey at 10:46 AM | Comments (0)