[[PageOutline]] = 2008-11-17 = * SC'08 * SC'08 Gala * 19:00-21:00 sign up CUDA Expert Day time slot at the NVIDIA booth(!#833) during the Exhibits Opening Gala * 22:00 !JavaChopper theme bike in the Sun booth (!#1021) * Cray booth (!#532): Wii golf tournament. * QLogic booth (!#333): unveiling uber networking box and giving away a Ducati motorcycle. * SC'08 Booth * HLRS booth (!#1353): MPI-2.1 Standard Book for USD$ 22. == BUGFIX: jfbterm (3) == * (續 [wiki:jazz/08-11-15 08-11-15@GMT-6 BUGFIX: jfbterm (1)]) * (續 [wiki:jazz/08-11-16 08-11-16@GMT-6 BUGFIX: jfbterm (2)]) * 編輯 GRUB 的 menu.lst 就可以不用每次都跑 modprobe {{{ #!diff --- menu.lst.org 2008-11-19 06:56:47.000000000 +0800 +++ menu.lst 2008-11-19 06:56:21.000000000 +0800 @@ -125,7 +125,7 @@ title Ubuntu 8.10, kernel 2.6.27-7-server uuid 574912ac-8bd6-4cc7-90c6-8c5362033fec -kernel /boot/vmlinuz-2.6.27-7-server root=UUID=574912ac-8bd6-4cc7-90c6-8c5362033fec ro quiet splash +kernel /boot/vmlinuz-2.6.27-7-server root=UUID=574912ac-8bd6-4cc7-90c6-8c5362033fec ro quiet splash vga=0x305 initrd /boot/initrd.img-2.6.27-7-server quiet }}} * mmap 的 offset 參數必須是 sysconf 中定義 _SC_PAGE_SIZE 的倍數。('''offset''' must be a __'''multiple of the page size'''__ as returned by sysconf(_SC_PAGE_SIZE).) * 使用 gdb 設定中斷點在 fbcomm.c 第 566 行並觀察變數狀態,可以知道送到 mmap 函數的 offset 參數內容為 1572864 。 {{{ (gdb) p p->slen $5 = 1572864 }}} * 為了確認 offset 參數是否為 _SC_PAGESIZE 的整數倍,先撰寫測試程式,用 sysconf 取得目前系統的 _SC_PAGESIZE 屬性。 {{{ root@intrepid:~# cat > get_sc_pagesize.c << EOF #include #include int main() { printf("_SC_PAGESIZE = %ld\n",sysconf(_SC_PAGESIZE)); } EOF root@intrepid:~# gcc get_sc_pagesize.c -o get_sc_pagesize root@intrepid:~# ./get_sc_pagesize _SC_PAGESIZE = 4096 }}} * 根據 mmap 的 manpages,產生 EINVAL 錯誤的另一個原因是 length 等於零(從 Linux 2.6.12 以後),確認主因為 length 參數 = p->mlen = 0 {{{ MMAP(2): void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); MMAP(2): EINVAL (since Linux 2.6.12) length was 0. 566 p->mmio = (u_char*)mmap(NULL, p->mlen, PROT_READ|PROT_WRITE, 567 MAP_SHARED, p->fh, p->slen); (gdb) p p->mlen $3 = 0 }}} == CUDA == * [http://tech.digitimes.com.tw/print.aspx?zNotesDocId=0000113005_KC914HJZL7PLYB6JU0RK0 x86多媒體加速指令設計新趨勢-善用GPGPU加速多媒體運算] * [http://tech.digitimes.com.tw/print.aspx?zNotesDocId=0000113009_W4P15HZSLEQMW3LQOSE0D x86多媒體加速指令設計新趨勢-NVIDIA CUDA語言程式設計模型指令分析] == Linux Kernel Security == * [http://www.howtoforge.com/hardening-the-linux-kernel-with-grsecurity-debian Hardening The Linux Kernel With Grsecurity (Debian)] == Linux Kernel OOPS == * http://www.kerneloops.org/ * [http://packages.debian.org/sid/kerneloops debian kerneloops package] == Wireless Security == * [http://people.debian.org.tw/~chihchun/2008/11/17/wpatkip-is-vulnerable/ WPA/TKIP is vulnerable ?!] == 未來競爭力 == * [http://www.cw.com.tw/article/print.jsp?id=36149 啟動對學習的熱情 青春,鍊成金] * 「不是不夠聰明,是沒有動機。」 * 台灣這種「訓練而非教育」的方式,製造出會考試、接收指令的學生,但這些能力被證明已不適用。 * 全方位均衡的人才: * 一、扎根專業與技術:持續學習新知,並加以運用,長期目標是建立專業的自主。 * 二、扎根態度與倫理:積極自我管理的能力、對工作的承諾,對生命的熱情。 * 三、扎根創新與感性:跨界學習,加強溝通、美感等感性能力,平衡理性基礎,左右腦並用。