#osxchat blog
Wednesday, October 5th
1:29am

以上是小麥注音輸入法的一些螢幕擷取畫面。

Thursday, September 29th
2:54pm

8 notes
小麥注音:一套簡單的自動選字輸入法

本站 (#osxchat) 的 mjhsieh 還有 zonble 開發了一套簡單的自動選字輸入法「小麥注音」,特色有:

  1. 輕巧簡單,容易安裝
  2. 選字及標點符號符合台灣使用者習慣
  3. 介面依循 Mac 標準
  4. 支援標準、倚天、許氏、倚天26 鍵以及漢語拼音鍵盤配置
  5. 程式反應快速,目前的詞庫也有相當的準確性,應該能夠有效幫助大家輸入國語
  6. 開放原始碼,有興趣研究改進輸入法及選字原理的人可從本專案開始著手

需要下載的朋友,可以前往小麥注音網站取得。

Sunday, November 28th
9:49pm

9 notes

這才找到 如何讓 Cmd-shift-3 在抓視窗時不抓陰影:

defaults write com.apple.screencapture disable-shadow -bool true
killall SystemUIServer
Friday, November 5th
10:16pm

(via maniacalrage)

40 notes
maniacalrage:

Best Dialog on Earth

If you’ve put a “Crash” button in your dialog, you’ve failed. Then again, it does make application crashes more like a little minigame… Do I give up and burn it all or do I try to continue and see what this apocalyptic world looks like? (Spoiler: Every time I’ve ever hit “Continue” the app has crashed moments later.)



Worse, if you hit Continue, the resulting .xib may surprise you later in the most unwanted ways imaginable.

maniacalrage:

Best Dialog on Earth

If you’ve put a “Crash” button in your dialog, you’ve failed. Then again, it does make application crashes more like a little minigame… Do I give up and burn it all or do I try to continue and see what this apocalyptic world looks like? (Spoiler: Every time I’ve ever hit “Continue” the app has crashed moments later.)

Worse, if you hit Continue, the resulting .xib may surprise you later in the most unwanted ways imaginable.

Sunday, June 20th
3:40am

1 note
Extracting audio from flv, asf, and some.

This is a note for myself on the issue of extracting audio from different audio/video containers/formats using CLI commands on the Mac. However I thought it might be also useful for readers of #osxchat.

Best-case scenario: it can be played by mplayer, so almost no programs are required to be installed, since we all installed MPlayer OSX Extended. Here is how to do it in a bash script:
#!/bin/bash
mplayer="/Applications/MPlayer OSX Extended.app/\
Contents/Resources/Binaries/mpextended.mpBinaries/\
Contents/mpextended.mpBinaries/Contents/MacOS/mplayer"
cd ~/Downloads/ for myfile in *.flv *.avi; do
    myfn=${myfile%\.*}
    "$mplayer" -vo null -ao pcm:file=${myfn}.wav $myfile
done

Thursday, April 8th
12:07am

macport 裡面的 policykit 在安裝時會加入 polkituser 這 user,但解除安裝時並不會移除他。但只要不移除,process list 就會多一個 mdworker 佔去 6MB 左右的記憶體。由於 ~polkituser 目錄為 /dev/null,我猜測這只是在白做工。因此決定移除。

在 Leopard / Snow Leopard 移除 user 與 group 的方式為:

dscl -rm /Users/polkituser
dscl -rm /Groups/polkituser
Monday, February 8th
12:45am
不看 Log 不知道

Evernote 會寫好玩的 Log Message,但那個 INSERT-HANG-DETECTED 看來則十分可怖:

Feb  8 13:30:24 yra Safari[942]: Evernote Safari Clipper Plugin version 70149 at your service!
Feb  8 13:30:24 yra Safari[942]: EVERNOTE: This is where I try to get the Safari toolbar button inserted.
Feb  8 13:30:24 yra Safari[942]: EVERNOTE: Have we already done our first time insertion: 1
Feb  8 13:30:24 yra Safari[942]: EVERNOTE: Updating toolbar from prefs.
Feb  8 13:30:24 yra Safari[942]: EVERNOTE: Found Safari 4 toolbar prefs
Feb  8 13:30:24 yra Safari[942]: EVERNOTE: Safari toolbar items: (\n    BackForwardToolbarIdentifier,\n    "com.evernote.SafariClipperPlugin.ClipToEvernote",\n    InputFieldsToolbarIdentifier\n)
Feb  8 13:30:24 yra Safari[942]: EVERNOTE:   Found Elephant in Safari toolbar items at index 1
Feb  8 13:30:24 yra Safari[942]: EVERNOTE:   Inserting Elephant at index 1
Feb  8 13:30:24 yra Safari[942]: EVERNOTE: Finished toolbar customization.
Feb  8 13:30:42 yra Safari[942]: INSERT-HANG-DETECTED: Tx time:15.132826, # of Inserts: 13, # of bytes written: 544723, Did shrink: NO
Feb  8 13:30:50 yra Safari[942]: INSERT-HANG-DETECTED: Tx time:3.637967, # of Inserts: 2, # of bytes written: 25916, Did shrink: NO
Feb  8 13:30:57 yra Safari[942]: INSERT-HANG-DETECTED: Tx time:4.879544, # of Inserts: 5, # of bytes written: 11255, Did shrink: NO
Feb  8 13:31:21 yra Safari[942]: INSERT-HANG-DETECTED: Tx time:3.874133, # of Inserts: 6, # of bytes written: 98498, Did shrink: NO
Feb  8 13:40:14 yra Safari[942]: EVERNOTE: The toolbar is changing.
Feb  8 13:40:14 yra Safari[942]: EVERNOTE: I'm in the toolbar.
Feb  8 13:40:20 yra Safari[942]: INSERT-HANG-DETECTED: Tx time:3.581643, # of Inserts: 5, # of bytes written: 12320, Did shrink: NO
Feb  8 13:40:33 yra Safari[942]: INSERT-HANG-DETECTED: Tx time:6.223324, # of Inserts: 9, # of bytes written: 40224, Did shrink: NO
Sunday, January 17th
3:30am

1 note
裝完一個再裝一個,一共要裝四次。通常只有在 Windows Update 上才會看到的場景。

又:Mac OS X 10.5.x 上面也是這樣。

裝完一個再裝一個,一共要裝四次。通常只有在 Windows Update 上才會看到的場景。

又:Mac OS X 10.5.x 上面也是這樣。

Wednesday, January 6th
4:37am

1 note
10.6 file open/save dialog box 的幾個新功能

  • 按 Space 可以 quick look
  • 按 Cmd-Shift-Period (⌘⇧.),可以暫時看到隱藏檔案
  • 使用 list view 的時候,double-click 調整欄位寬度的地方,可以讓欄位自動調整到能顯示所有內容的寬度

Tuesday, December 22nd
9:50pm

1 note