2015年3月27日 星期五

Uninstall Java by deleting the Java Plugin file

Uninstalling Oracle Java involves deleting the Java Plugin file JavaAppletPlugin.plugin.


  1. Click on the Finder icon located in your dock
  2. Click on Applications tab on the sidebar
  3. In the Search box enter JavaAppletPlugin.plugin
  4. This will find the JavaAppletPlugin.plugin file
  5. Right click on JavaAppletPlugin.plugin and select Move to Trash
Alternative method to uninstall Oracle Java using the Terminal

  1. Click on the Finder icon located in your dock
  2. Click on Applications tab on sidebar
  3. Click on the Utilities folder
  4. Double-click on the Terminal icon
  5. In the Terminal window, copy and paste the command: sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin

2015年3月25日 星期三

Mavericks input source is set to US keyboard in login screen

defaults read /Library/Preferences/com.apple.HIToolbox.plist

defaults read ~/Library/Preferences/com.apple.HIToolbox.plist

sudo cp ~/Library/Preferences/com.apple.HIToolbox.plist /Library/Preferences/

sudo chmod 644 /Library/Preferences/com.apple.HIToolbox.plist

restart and it's ok~~

2015年3月20日 星期五

Mac 10.10 & 10.11 can not open IDL 8.1

Use ln in terminal.

relinked the file libz.1.dylib (which on my system is located in: /Applications/exelis/idl82/bin/bin.darwin.x86_64), which in fact is linked to this file in the same folder libz.1.2.3.dylib,  to the file libz.1.dylib in /user/lib/


ln -s /usr/lib/libz.1.dylib libz.1.dylib

2015年3月4日 星期三

Updating Python on OS X


Python 更新方法
  1. sudo rm -R /System/Library/Frameworks/Python.framework/Versions/2.7
  2. sudo mv /Library/Frameworks/Python.framework/Versions/2.7 /System/Library/Frameworks/Python.framework/Versions
  3. sudo chown -R root:wheel /System/Library/Frameworks/Python.framework/Versions/2.7
  4. sudo rm /System/Library/Frameworks/Python.framework/Versions/Current
  5. sudo ln -s /System/Library/Frameworks/Python.framework/Versions/2.7 /System/Library/Frameworks/Python.framework/Versions/Current
  6. sudo rm /usr/bin/pydoc
  7. sudo rm /usr/bin/python
  8. sudo rm /usr/bin/pythonw
  9. sudo rm /usr/bin/python-config
  10. sudo ln -s /System/Library/Frameworks/Python.framework/Versions/2.7/bin/pydoc /usr/bin/pydoc
  11. sudo ln -s /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python /usr/bin/python
  12. sudo ln -s /System/Library/Frameworks/Python.framework/Versions/2.7/bin/pythonw /usr/bin/pythonw
  13. sudo ln -s /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python-config /usr/bin/python-config