2010年9月29日 星期三

再玩一次Dvorak!!

在Linux裡:
setxbmap dvorak

改回原本
setxbmap us




至於emacs, 承常用到的C-x是原本qwerty的B的位置, 和C-u換會比較好打.
(keyboard-translate ?\C-x ?\C-u)
(keyboard-translate ?\C-u ?\C-x)

2010年9月16日 星期四

Dropbox without Gnome/Nautilus

1. Download the closed source Dropbox Linux client from http://www.getdropbox.com/download?plat=lnx.x86 (x86_64 for 64 bit)
2. Extract the contents and you should get a .dropbox-dist folder out of the archive. Move the folder to $HOME
3. Run ~/.dropbox-dist/dropboxd.

via: http://antrix.net/posts/2008/dropbox-without-gnome/

worked in my KDE/Dolphin

在HP/compaq nc4000安裝OpenSUISE 11.3

之後開機出現
Error Loading Operating System after

grub的問題,參考討論串,重開機就可以了

2010年8月10日 星期二

OpenSUSE 11.3 KDE版本不時出現Network Management Disable

然後就不能上網,
只要到var/lib/NetworkManager/NetworkManager.state
把NetworkingEnabled=false改成true就好了

真的莫名其妙...

2010年6月9日 星期三

[maemo] ash的init file

Nokia N900 busybox的shell是用ash, init file是.profile

2010年5月31日 星期一

[筆記] Hankbreak備份DVD影片

Handbreak是一套整合各著名codecs的轉檔程式,介面簡單好用~

備份DVD影片的話,我把Video Size的寬縮成352,高是按"Keep Aspect Ratio"照比例。然後Video Quality選Constant Quality: 60% RF:20左右,其他都是預設(Video Codec用x264,Audio Codec用faac)。

一個多小時左右的影片(4G)壓出來大概三百G左右。

2010年5月7日 星期五

[Lisp] 九九乘法表

練習loop和collect的使用:
(loop for x from 1 to 9
collect (loop for y from 1 to 9
collect (* x y)))

結果:
((1 2 3 4 5 6 7 8 9) (2 4 6 8 10 12 14 16 18) (3 6 9 12 15 18 21 24 27) (4 8 12 16 20 24 28 32 36) (5 10 15 20 25 30 35 40 45) (6 12 18 24 30 36 42 48 54) (7 14 21 28 35 42 49 56 63) (8 16 24 32 40 48 56 64 72) (9 18 27 36 45 54 63 72 81))

The Common Lisp Cookbook - The Loop Macro