One of the big reason that I wanna switch to OSX is Time machine. Take today's backup for example, I go back home, plug my 250G usb HD, the backup begins, backup size is within 50MB, and it takes about 2 or three minutes.
I think there should be some twick in file system or spotlight is helping on this. (to list the last modified file and backup.) Who cares, I just want it to work !
2009年4月29日 星期三
2009年4月28日 星期二
OSX Spotlight
I like this:
http://www.askdavetaylor.com/spotlight_insider_power_search_tricks_mac_spotlight.html
I know this could exist for I once read spotlight related tech detail. To know this way to do query exist still good thing though.
http://www.askdavetaylor.com/spotlight_insider_power_search_tricks_mac_spotlight.html
I know this could exist for I once read spotlight related tech detail. To know this way to do query exist still good thing though.
2009年4月25日 星期六
OSX Finder busy loop eating all cpu.
My OSX Finder eating all cpu in a busy loop, the situation is:
I connect to a samba in my home. I suspend without umount that samba.
I go to another place. I click the umount in Finder.
Then... oops, the fan spin up....
Finally, I use "top -o cpu" to find it's Finder that cause this trouble.
btw, why shouldn't "top -o cpu" be the default ?
Apple just work, if you work in the way they think. Of course, nothing can get rid of this, apple in no exception.
I connect to a samba in my home. I suspend without umount that samba.
I go to another place. I click the umount in Finder.
Then... oops, the fan spin up....
Finally, I use "top -o cpu" to find it's Finder that cause this trouble.
btw, why shouldn't "top -o cpu" be the default ?
Apple just work, if you work in the way they think. Of course, nothing can get rid of this, apple in no exception.
2009年4月19日 星期日
2009年4月11日 星期六
My first automator + applescript
寫的過程中還把 automator 弄掛數次是怎樣啦 !
功能: XXX 檔案有開檔密碼, 密碼用某個規則放在某處 (don't ask me where). 用 automator + apple script 去把密碼抓到來開檔.
其中主要的 apple script 大概是這樣
on run {input, parameters}
repeat with f in input
set kf to balala # sorry, I can't tell you where I get the password !
tell application "Preview"
activate
open f
# activate
tell application "System Events"
keystroke kf
keystroke return
end tell
end tell
end repeat
return input
end run
參考 Orz
功能: XXX 檔案有開檔密碼, 密碼用某個規則放在某處 (don't ask me where). 用 automator + apple script 去把密碼抓到來開檔.
其中主要的 apple script 大概是這樣
on run {input, parameters}
repeat with f in input
set kf to balala # sorry, I can't tell you where I get the password !
tell application "Preview"
activate
open f
# activate
tell application "System Events"
keystroke kf
keystroke return
end tell
end tell
end repeat
return input
end run
參考 Orz
2009年4月6日 星期一
more Mac OSX
插上一個可能有問題的 usb 轉 ide, 用 osx 去 format 會掛掉.. 所以就硬拔線解決. 拔掉以後 Finder 以為那個 item 還在.... 一時找不到方法, 就 reboot os... @_@''
另外, mount 一個 xp dir, xp 先移除那個分享以後, osx gui 無法 umount 掉 (按三角形)... 後來用 command line umount 成功
嘿嘿, terminal 內建設定 server 位址, 可以 ssh / telnet 過去. 奈何我的 server 很多都是非 port 22, Terminal 的設定不支援 ! 後來找到可以建立 filename.command, 就是一個 shell script, 但是點兩下會開一個新 Terminal 視窗去執行 ! That's it ! Doesn't have to bother Apple Script.
下一個, macport variants. 安裝 mysql by macport, 如果裝的時候加上 +server, 就會自動把 mysql 的 launchd 設定檔安裝起來. 安裝 git-core 時, 如果加上 +svn, 就會把 git-svn 裝起來. 這就叫 variant. 如何列出一個
port 的 variants 呢 ? 就 port variants portname (like `port variants git-core`) 囉 ! 簡單 !
另外, mount 一個 xp dir, xp 先移除那個分享以後, osx gui 無法 umount 掉 (按三角形)... 後來用 command line umount 成功
嘿嘿, terminal 內建設定 server 位址, 可以 ssh / telnet 過去. 奈何我的 server 很多都是非 port 22, Terminal 的設定不支援 ! 後來找到可以建立 filename.command, 就是一個 shell script, 但是點兩下會開一個新 Terminal 視窗去執行 ! That's it ! Doesn't have to bother Apple Script.
下一個, macport variants. 安裝 mysql by macport, 如果裝的時候加上 +server, 就會自動把 mysql 的 launchd 設定檔安裝起來. 安裝 git-core 時, 如果加上 +svn, 就會把 git-svn 裝起來. 這就叫 variant. 如何列出一個
port 的 variants 呢 ? 就 port variants portname (like `port variants git-core`) 囉 ! 簡單 !
訂閱:
文章 (Atom)