Xquartz

7月 17th, 2005 Comments Off

man Xquartz
有很多 com.apple.x11 相關的參數可以設定
可以在執行 Xquartz 時指定參數
也可以用 defaults 來 read/write 參數

defaults write com.apple.x11 enable_fake_buttons -boolean true
defaults write com.apple.x11 fake_button2 modifiers
(modifiers: Shift, Option, Control, Command, Fn)
defaults write com.apple.x11 fake_button3 modifiers
defaults write com.apple.x11 swap_alt_meta -boolean true
defaults write com.apple.x11 keymap_file filename
defaults write com.apple.x11 no_quit_alert -boolean true
defaults write com.apple.x11 no_auth -boolean true
defaults write com.apple.x11 nolisten_tcp -boolean true
defaults write com.apple.x11 xinit_kills_server -boolean false
defaults write com.apple.x11 fullscreen_hotkeys -boolean false
defaults write com.apple.x11 enable_system_beep -boolean false
defaults write com.apple.x11 enable_key_equivalents -boolean false
defaults write com.apple.x11 depth depth

順便記錄一下我調整過後的 com.apple.x11 設定:

[candyz@ibook:~] defaults read com.apple.x11
{
    "NSWindow Frame x11_prefs" = "314 316 478 338 0 0 1024 746 ";
    "apps_menu" = (
        (gmrxvt, "/usr/local/bin/gmrxvt", j),
        (gurxvt, "/usr/local/bin/gurxvt", u)
    );
    depth = -1;
    "done_xinit_check" = 1;
    "enable_fake_buttons" = 1;
    "enable_key_equivalents" = 1;
    "enable_system_beep" = 1;
    "keymap_file" = "/etc/X11/xinit/.Xmodmap";
    "no_auth" = 1;
    "no_quit_alert" = 1;
    "nolisten_tcp" = 1;
    rootless = 1;
    "sync_keymap" = 1;
}

快被 WordPress 打敗了

7月 17th, 2005 3 Comments »

颱風快來了所以不要出門
閒來沒事,就把 WordPress 裡的文章重新分類一下
在都弄的差不多時,最後才發現,我的 WordPress 全毀了
實在是快受不了了
且這已經不是第一次了
上次,我是把所有的 plugins 全移除,整個 wp 重裝重弄
現在又給我出這種狀況
看來, plugins 還是不要亂玩的好
另一個原因,則是上次重裝時,是選用 svn trunk 版
為了方便更新檔案 (svn up)
沒想到 svn trunk 版的確是很不穩定的版本
有事沒事 svn up 的結果,也是造成我的 wp 問題一堆
且一堆功能失效不能用的主因之一
最後,我只好把備份的 wp_options table 整個還原
目前暫時撐著用
但只要我一進管理介面,進到 Plugin 的管理頁面
惡夢又來了,所有的 Plugins 自動被 disabled,全部不能用了
不知道是什麼原因
只好再把 wp_options table Restore 一次
現在,不敢再進到 plugins 的管理介面去了
等 wp-1.6 Release 後,再來重新裝一次吧

FireStats icon Powered by FireStats