存档

2004年8月 的存档

狂笑 Why India is struggling with localized language computing

2004年8月18日 hufey 评论已被关闭

Why India is struggling with localized language computing (NewsForge)
(Posted Aug 17, 2004 20:02 UTC (Tue) by khim) (Post reply)
“Continuous innovation and improvement!” is good idea but on practice… instead of changes to make programs smarter people just accept computer speak broken english. I can not speak for Indians but here are sample from Russian.
It’s in fact a long story about why not a single one non-native program have correct translation for simple two words phrase “N file(s)”.
Yes, i18n rules dictate separate translation for N == 1 and N > 1.
But does it help much with Russian?
Not at all! Why the hell not?
Well… Here is correct tranlations:
* N = 1: “1 fajl
* N = 2: “2 fajla
* N = 5: “5 fajlov
* N = 10: “10 fajlov
* N = 11: “11 fajlov
* N = 12: “12 fajlov
* N = 21: “21 fajl
* N = 22: “22 fajla
* N = 123: “123 fajla
Now… Can you see the problem ? We have three variants of the same word and it’s not just one for N == 1, other for N == 2,3,4 and still other for N >= 5… I’ve yet to see i18n package where this problem has solution (few Russian programs where I’ve seen correct language – mostly from banking area – use hardcoded algorythms suitable only for Russian).
I’m pretty sure there other similar problems but this is thing I’ve biten the most. Translation of “New->Folder” as “Novy->Papka” is just curious (correct translation is “Novaya->Papka” while “Novy->Papka” is in fact correct russian phrase – it just means “New->Dad”). There are a lot of such problems with other languages, I’m sure…

分类: chating 标签:

linux kernel 历史上第一次出现4个数的版本号

2004年8月16日 hufey 1 条评论

正在编译
2.6.8 release之后马上就被人发现了一个重大bug
Date Sat, 14 Aug 2004 03:41:58 -0700 (PDT)
From Linus Torvalds
Subject Re: Linux v2.6.8 – Oops on NFSv3
On Sat, 14 Aug 2004, Willy Tarreau wrote:
>
> I’ve just compiled and booted 2.6.8 on my dual athlon. Everything went
> OK before I logged in as a non-root user whose home is mounted from
> another linux box over NFSv3/UDP.
Damn. I think the stupid typo in fs/nfs/file.c from the fcntl f_op removal
patch is the problem.
Andrew, since I’m gone in another hour, how about you try to make a
2.6.8.1 with this, since this is clearly a good reason for one?
Linus
— 1.40/fs/nfs/file.c 2004-08-09 11:58:00 -07:00
+++ edited/fs/nfs/file.c 2004-08-14 03:35:11 -07:00
@@ -89,7 +89,7 @@
int res;
res = nfs_check_flags(filp->f_flags);
- if (!res)
+ if (res)
return res;
lock_kernel();
linus本人的看法:
From: Linus Torvalds <torvalds osdl.org>
Subject: Re: Linux v2.6.8 – Oops on NFSv3
Newsgroups: gmane.linux.kernel
Date: Sat, 14 Aug 2004 04:05:56 -0700
On Sat, 14 Aug 2004, Christoph Hellwig wrote:
>
> Cane we make this 2.6.9 to avoid breaking all kinds of scripts expecting
> three-digit kernel versions?
Well, we’ve been discussing the 2.6.x.y format for a while, so I see this
as an opportunity to actually do it… Will it break automated scripts?
Maybe. But on the other hand, we’ll never even find out unless we try it
some time.
Linus
典型的open source project测试不完整导致重大bug

分类: commenting 标签:

man 一个文件

2004年8月16日 hufey 评论已被关闭

man [path]file
当前路径就是 man ./file
奇怪,这个man man和man -h都没有说

分类: saving 标签:

听上了APE,过上了小康音乐生活

2004年8月13日 hufey 评论已被关闭

装了一个XMMS APE plugin
拿BT下了一张碟
听着呢。。。。。。

分类: saving 标签:

shrek2

2004年8月11日 hufey 3 条评论


昨天晚上看了电影SHREK2
每当这只猫这个表情
电影院里所有人就狂笑
:0

分类: chating 标签:

telnetd: getpeername错误

2004年8月10日 hufey 评论已被关闭

多半是tcpd没装

分类: saving 标签:

解决在.config里写启动参数image没写入的问题

2004年8月9日 hufey 评论已被关闭

如果在.config里写入参数,直接make zImage是不会把改动的参数写到binary image的。
需要删去 arch/cpu/boot/common/misc-simple.o 才行

分类: saving 标签:

在北大拍到的

2004年8月7日 hufey 评论已被关闭


数码相机对暗部的处理能力太差了。
用gimp去了躁点,调了亮度

分类: watching 标签:

strip可不能乱用

2004年8月6日 hufey 评论已被关闭

昨天发现lmbench跑的特别快,别人要几个小时我这里居然只要几分钟。
不过马上就下班了,就没细琢磨。
今天发现很多数据都特别好,好的不可思议。明显是workload不够嘛。
回头查lmbench的log,才发现无数的segmantation fault 。
最后自己写了个helloworld,发现跟本没连接对crt1.o。
终于想起来了,原来某天发现自己的home空间不够了,就把fs目录
recursive 地strip了一遍,结果把lib里的.o的符号表都给弄没了。
copy原来的之后,好了!

分类: saving 标签:

700$的遥控器

2004年8月5日 hufey 评论已被关闭


Sony是不是疯了???
What’s under the hood?
The Navitus is based on a 200MHz Motorola i.MX1, a popular ARM920 based application processor that powers several PDAs (including the Royal Linea) and other handheld devices that run Linux. The Navitus boots from 32MB of Flash, using the JFFS2 filesystem, cramfs, tmpfs, and ramfs.
The Navitus measures 4 x 6.5 x 2 inches (120 x 174 x 38 mm) and includes a 3.5-inch backlit touchscreen LCD supporting 65K colors. It weighs in at 12 ounces, for optimal beverage balancing properties. Operating range is 33 feet (10 meters).
I/O ports include a USB port and a memory stick slot. The device is powered by a non-removable Ni-MH battery.
Software side
The Navitus uses a 2.4.18 Linux kernel based on MontaVista Linux, which has supported the i.MX1 processor since July of 2003. Sony lists bash, busybox, and tinylogin among the source packages, and the kernel appears to include support for the processor’s serial interface, suggesting that it may be possible to somehow bring up a shell on the remote control. The kernel also appears to support NFS, possibly for use with a filesystem on a remote development host. These features may have been disabled in the kernel that is included in the production version, however.
The Navitus uses mtools to interface with the memory stick, and appears capable of initializing memory sticks using the msmkdosfs package.
In addition to standard ASCII (iso8859-1)and US English (codepage 437), the Navitus supports Multilingual Latin 1 (NLS codepage 850), suggesting Sony will market the device in Europe.

分类: watching 标签: