« April 2005 | Main | June 2005 »

May 29, 2005

....


。。。。@_@

Posted by Roy at 10:53 AM | Comments (0)

May 26, 2005

upgrade to Xorg on Debian?

It's worth trying for sure.
http://john.fremlin.de/diary.html

27 February 2005 - Upgrade from Debian to Ubuntu
It's possible to upgrade to Xorg on Debian by changing your apt sources.list to include the Ubuntu repo. Note that this might mess up your setup. Anyway here's my sources.list

deb http://ftp.uk.debian.org/debian/ unstable main non-free contrib
deb-src http://ftp.uk.debian.org/debian/ unstable main non-free contrib

deb http://archive.ubuntu.com/ubuntu/ hoary main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hoary main restricted universe multive

# mplayer http://marillat.free.fr/

deb ftp://ftp.nerim.net/debian-marillat/ testing main
deb ftp://ftp.nerim.net/debian-marillat/ unstable main

Posted by Jane at 05:49 PM | Comments (0)

hard link things

http://lists.gnu.org/archive/html/bug-fileutils/2002-02/msg00033.html

Although "ln --help" tells you that you can creat hard links to a directory as root, things do not work like that. The truth is that it really depends on the underlying file system. Few systems now allow that since it complicates fsck and may incure loops.

http://lists.gnu.org/archive/html/bug-fileutils/2002-02/msg00037.html
For anyone who is interested, on a Linux system with an ext2 file system
you can achieve the same thing as a hard link to a directory with a
"mount --bind".

Also see http://linuxgazette.net/issue93/tag/2.html

Posted by Jane at 04:54 PM | Comments (0)

体系结构做错一道题

当Virtual Page A由于物理内存不够而被Virtual Page B replace的时候,如果使用physical tagged cache,相应cache block是要被flush的!
我仅从访问A考虑而觉得不会有问题,但考虑B的访问,会误以为该block是他自己的数据!

Posted by Jane at 04:51 PM | Comments (0)

May 23, 2005

Quals suck

http://www.ece.ucsb.edu/Faculty/Parhami/pres_folder/f32-book-parallel-pres-pt4.ppt
shuffle-exchange network is a variant of hypercubic networks.
This question is totally out of the reading list.
Shuffling is just like shifting the bits.
In the rightmost column on page 57, every box is a switch for exchange, and they're connected for shuffle.
http://ocw.mit.edu/NR/rdonlyres/Electrical-Engineering-and-Computer-Science/6-895Fall2003/742690F6-107C-44B9-B828-777D591A41B9/0/lecture18_slide.pdf
is also clear.
On page 36, red means exchange, blue means shuffle.

Another lesson: I should write faster. Hardly any time left to you to reason.

Posted by Jane at 07:17 PM | Comments (0)

May 19, 2005

民族的英文

对于汉族、苗族这个意义上的民族,应该翻译成“ethnic group”,以前总是不知道怎么翻译。
少数民族呢,就是"ethnic minority groups"了

这是MSN space里面一个关于中国少数民族的blog:
http://spaces.msn.com/members/c232osu/PersonalSpace.aspx?_c=

Posted by Roy at 09:41 PM | Comments (0)

May 14, 2005

Stanford Diary

From http://pauillac.inria.fr/~xleroy/, an OCaml guy.

[In 1978,] Streleski killed Prof. Karel DeLeeuw, a popular Stanford
math professor, in his office by smashing his head with a two-pound
hammer. Streleski had spent 19 years at Stanford pursing a doctoral
degree, and he later called the killing a protest over treatment of
graduate students at Stanford.

The Stanford Daily, 4/20/1993

Posted by Roy at 11:53 PM | Comments (0)

May 01, 2005

SSH port forwarding

I ran "ssh -g -L 10010:pri-033:80 monolith" from adder,
and now http://adder.cs.virginia.edu:10010/ rocks!

Cool to know.

http://fanqiang.chinaunix.net/a6/b9/20010912/1200001279.html

# ssh -C -P -f sshaccount@S -L 110:S:110 sleep 7200

解释如下:
-C 使用压缩功能,是可选的,加快速度。

-P 用一个非特权端口进行出去的连接。

-f 一旦SSH完成认证并建立port forwarding,则转入后台运行。

sshaccount 客户C在服务器S上的SSH连接帐号

-L 110:S:110 转发C对本地端口110的连接到远程服务器S的110端口。
也可以用高端端口(普通用户使用,因为普通用户不能在低于1024的端口上建立SSH隧道)
如果用高端端口,如:-L 1110:S:110,这样任何用户都可建立这种加密隧道。

sleep 7200 一般用于script,必须给一个命令,我们给一个sleep等待空 命令,这里为
2小时,你可以
设为更长用于保持整个连接过程, 如 sleep 100000000 。

Posted by Roy at 12:35 AM | Comments (0)