Showing posts with label Macintosh. Show all posts
Showing posts with label Macintosh. Show all posts

Friday, July 12, 2013

Fix Duplicated items in "Open With" menu


In terminal, type
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -all s,l,u; killall Finder

Wednesday, May 30, 2012

Useful Mac OS Command Line Script

Reset Software Update Server
defaults delete /Library/Preferences/com.apple.SoftwareUpdate CatalogURL

lsusb equivalent
system_profiler SPUSBDataType

Saturday, December 04, 2010

Optimized Macports

In /opt/local/share/macports/Tcl/port1.0/portconfigure.tcl
default configure.march {nocona}
default configure.compiler {gcc-4.2}

Friday, December 03, 2010

Resetting OS X Password


To reset your OS X password without an OS X CD you need to enter terminal and create a new admin account:
Reboot
Hold apple + s down after you hear the chime.
When you get text prompt enter in these terminal commands to create a brand new admin account (hitting return after each line):
mount -uw /
rm /var/db/.AppleSetupDone
shutdown -h now
After rebooting you should have a brand new admin account. When you login as the new admin you can simply delete the old one and you’re good to go again!

Wednesday, August 18, 2010

Mac PowerPoint vs. Windows PowerPoint

Apple的使用率在美國還挺高的, 尤其在學界
可是Mac跟Windows 兩個作業系統的PowerPoint的相容性, 實在是不敢恭維
最大的問題是, Mac上的 PowerPoint不會自動轉換多媒體格式, 導致在Mac上做的 PowerPoint移到 Windows上時會沒辦法顯示
就算在 Windows上裝了QuickTime也不能解決

為了看到上課的 slide, Google了一下這個問題
解法如下:
1) Save PPT as Webpage
2) Search for pcz-Files
3) unpack pcz-Files by Gzip or WinRar
4) extract and add extension .pict to the files
5) convert PICT-Files into JPG (QuickTime is needed to be installed)
6) reinsert into PPT

粉麻煩, 但至少有解. 感覺這是 Microsoft在 PowerPoint裡留下的伏筆, 讓 Mac 到 Windows上做簡報變的很難

Saturday, April 24, 2010

The Dungeon of Doom

http://en.wikipedia.org/wiki/The_Dungeon_Revealed

剛剛發現我二十年前玩過的遊戲
在一台黑白的Mac上, 一邊翻著字典一邊玩
以當年的英文能力, 想當然爾, 玩的不知所云 orz
死了千百遍也沒破過, 真是有毅力又有趣的童年

Monday, February 15, 2010

Apple's HFS+ driver for Windows

I need to access the HFS+ partition in my external hard disk. But, Windows does not recognized HFS+ partition. There are few solutions. One is to buy MacDrive which can bring both read and write ability to Windows. But, I don't want to "write" to HFS+ partition which can potentially mess up the file system. Besides, it's not free. Or one can use HFSExplorer which is free and open source. But, one can not operate on the file directly through native Windows interface which is counter-intuitive.
Recently, I found that Apple's Bootcamp contain driver which can let Windows recognized and read HFS+ partition. This let me wonder can I extract the driver from Bootcamp and install the driver in Windows. After some search, bingo!, I found the solution here: http://efixusers.com/showthread.php?p=7388
In short, all you need is two system drivers from Bootcamp, AppleHFS.sys and AppleMNT.sys, and a little registry tweak.
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\AppleHFS]
"Type"=dword:00000002
"ErrorControl"=dword:00000001
"Start"=dword:00000000
"Group"="File System"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\AppleMNT]
"Group"="System Bus Extender"
"Type"=dword:00000001
"ErrorControl"=dword:00000001
"Start"=dword:00000000