Kanru’s 探險日誌

這裡應該會放一些我每日遊覽的站台及一些心得,就當作是我的學習筆記吧^^。

測試新版 Safari for Windows

without comments

嗯,裝完之後發現介面變成中文了

Bug report 按鈕不見

也不會隨便當掉了

跟輸入法 (IME) 配合的很好

不過字型的問題,那個用在介面的細明體顯示的亂七八糟,AntiAlias 用下去整個不清楚

還好之前設定的黑體還在

唔… Safari 的動畫效果,搜尋時的 highlight… 整個 UI 都很有趣

Written by kanru

March 19th, 2008 at 10:33 am

Posted in 未分類

Tagged with

WinXP 安裝 IPv6

without comments

cmd.exe

打 ipv6 install

出現錯誤 0×800704b8

使用 esentutl /p %windir%\security\Database\secedit.sdb 修復後

可繼續安裝

Written by kanru

March 8th, 2008 at 3:49 pm

Posted in 未分類

Tagged with ,

E680i

without comments

從胖貓那裡拿到的新玩具,等不到 Neo 就先玩這個吧 :P

感謝 OpenEZX、Angstrom、OpenEmbedded、OpenMoko 計劃,我從 Angstrom 拿預編好的 2.6.23 kernel 跟 openmoko image 還有 gpe image 來測試,都可以正常開機,openmoko 的 image 還有 bootsplash,開機的時候還有音效(聲音正常運作),但是這版的介面怪怪的,時常會有多個好像是 title bar 的東西在螢幕中央跳動,然後我在 task menu 連點兩下之後,他就不見了 XD,然後游標就露出來…

GPE 倒是運作的不錯,不過因為是 minimalist 的 image,所以裡面什麼東西都沒有,只有一個 terminal,開啟之後還沒有螢幕鍵盤可以打 XD

先這樣吧,改天再繼續玩 :D

Written by kanru

February 23rd, 2008 at 9:37 pm

Posted in Linux

Tagged with , , ,

C Runtime Error R6002

with one comment

某學長在寫一隻簡單的分析程式時出現的問題:fscanf(”%f”, &value); 總是會出現 runtime error!

google 之後才知道,光只有使用 fscanf 是不會把浮點運算必須的函式庫 link 進去的,參考 MSDN

不知道 gcc 怎麼處理?回宿舍之後試試 :p

Update:

答案是不會錯…,下次試試 VC8

Written by kanru

February 22nd, 2008 at 10:32 pm

Posted in Programming

Tagged with , ,

Emacs 使用 Xft

with one comment

emacs-unicode-2 branch 已經 merge 到 trunk 了,用 xft 來顯示的部份也 merge 到 trunk。

更好的是,已經有 deb 可以用了,emacs-snapshot 請到 http://emacs.orebokech.com/ 取用。

設定方法,XftGnuEmacs 仍有一定參考價值。

.Xresources:

Emacs.FontBackend: xft
Emacs.Font: Dejavu Sans Mono-9

.emacs:

(set-fontset-font "fontset-default" 
                  'han '("cwTeXHeiBold" . "unicode-bmp"))

Written by kanru

February 11th, 2008 at 1:10 am

Posted in Debian

Tagged with , , ,

An update from Debian release team

without comments

http://lwn.net/Articles/267722/

重點是 Release goal:

  • Drop debmake from Debian
  • UTF-8 debian/changelog and debian/control
    • xcin 也在名單上…
  • Switch /bin/sh to dash

也許應該在過年前把 chewing 翻修一下…

Written by kanru

February 5th, 2008 at 1:12 pm

Posted in Chewing, Debian, Linux

Tagged with

LDAP & nss_ldap on FreeBSD

without comments

最近在弄 LDAP 帳號中心,主機是 FreeBSD。理想中應該是帳號的資料庫換成 LDAP,在 /etc/nsswitch.conf 加上 LDAP 後就完成了,交給 nss_ldap 去煩惱取得、更新資料的事。

但是事情沒有這麼美好,FreeBSD 在這方面的支援顯然跟我想像的有落差,passwd, chpass 等程式幾乎不支援修改 LDAP 中的資料。passwd 有一個 pr,看來短時間內沒有好解法,chpass 則是只能從 nss_ldap 撈到資料,修改過的內容會直接寫到 /etc/passwd…

紀錄一下,有時候 log 內總會出現 nss_ldap 沒辦法連線到 slapd 的訊息,參考這個網頁,加入

nss_reconnect_tries 2

然後把 bind policy 改成 hard 似乎可以解決。

Written by kanru

February 2nd, 2008 at 8:45 pm

Posted in Server

Tagged with ,

CellWriter - 手寫工具

with 2 comments

在 GnomeFiles 上看到的專案,是可以進行手寫辨識的工具。CellWriter 可以在訓練之後辨識出你在寫什麼,基於 Unicode,辨識方法無關語言,所以也可以輸入中文,但是因為訓練困難(太多字),加上我是用滑鼠畫的… 就只 demo 一個字囉。

CellWriter screenshot1

CellWriter screenshot2

介面挺好用的,辨識效果也不錯,不過檔案格式效率不高,字數過多時訓練不易,還有很多可以加強的地方。

Written by kanru

January 27th, 2008 at 6:39 pm

TTYRec and TTYShare

without comments

ttyrec 是類似於 script 指令,可以用來紀錄 tty 下一切動作,然後可以用 ttyplay 來播放,所有的動作、時間都會紀錄下來,播放的時候就好像源源本本的在你面前操作一樣。是在教學的時候很有用的指令。

ttyshare 則是類似於 nopaste 服務的網站,讓你可以直接在網路上分享播放 ttyrec 的紀錄,非常有趣!

ps. 今天原本想上傳自己的 demo 的,結果傳不上去,怎麼了呢… Orz

pps. ttyshare 好像是日本人做的網站,ttyrec 也是日本人寫的喔。

Written by kanru

January 27th, 2008 at 12:12 pm

Posted in Linux, 小工具, 爬網探險

Tagged with ,

GNOME Applet for monitoring Debian bugs

without comments

臨時想要監控某個 debian bug 但是嫌訂閱 bug 麻煩嗎?利用這個 GNOME Applet 讓你方便紀錄 debian bts 的動態。

dba-applet screenshot

取得方法

% git-clone git://git.chris-lamb.co.uk/debian-bts-applet

ps. 我還沒測試過 :p

Written by kanru

January 27th, 2008 at 11:25 am

Posted in Linux, 小工具, 爬網探險

Tagged with , ,