Resetting the System Management Controller (SMC)

Intel-based Macs: Resetting the System Management Controller (SMC)
http://support.apple.com/kb/HT3964

  1. Shut down the computer.
  2. Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
  3. On the built-in keyboard, press the (left sideShiftControlOption keys and the power button at the same time.
  4. Release all the keys and the power button at the same time.
  5. Press the power button to turn on the computer.  
    Note
    : The LED on the MagSafe power adapter may change states or temporarily turn off when you reset the SMC.

Resetting your Mac’s PRAM and NVRAM
http://support.apple.com/kb/HT1379?viewlocale=en_US

Posted in Mac

Disable automatic login in Mac OS X

  1. Open the System Preferences application.
  2. Click on the “Accounts” icon in the System Preferences window.
  3. Click on the “Login Options” item in the list of accounts on the left side of the “Accounts” System Preferences window.
  4. Set the “Automatic login:” option to “Off.”

ที่มา: rit.edu/

Posted in Mac

Quad boot

  1. ใช้ Disk Utilities จัดเตรียม Partition ดังนี้
    • /dev/hda2 MacOS
    • /dev/hda3 Windows 7
    • /dev/hda4 Windows XP
    • /dev/hda5 Ubuntu
    • /dev/hda6 Swap
  2. ติดตั้ง MacOS X
  3. ติดตั้ง rEFIt แล้ว Restart สัก 2 ครั้ง
  4. ติดตั้ง Ubuntu
  5. ติดตั้ง Windows 7
  6. ติดตั้ง Windows XP
  7. กู้คืน bootloader ของ Windows 7
  8. ติดตั้ง dual boot (Windows XP & Windows 7)
  9. กู้คืน GRUB2

Note: GRUB2 ติดตั้งที่ MBR, bootloader ของ Windows ติดตั้งที่ Partition ของ Windows 7

Install MySQL on Mac OS X

Download MySQL Community Server
http://www.mysql.com/downloads/mysql/
File name: mysql-5.5.9-osx10.6-x86_64.dmg
เปิดไฟล์ Image (.dmg) จากนั้นทำการติดตั้ง ดังนี้
1. Install mysql-5.5.9-osx10.6-x86_64.pkg
2. Install MySQLStartupItem.pkg
3. double click MySQL.prefPane

alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin
mysql-macosx-excerpt-5.1-en

Posted in Mac

ติดตั้ง Boot Camp 3 บน Windows 7 x 64

ก่อนอื่นเข้า Mac OS X
แล้วไปที่ Application > Utilities > Boot Camp เพื่อทำการแบ่ง Partition ก่อน
จากนั้นก็ติดตั้ง Windows 7
เมื่อติดตั้ง Windows 7 เสร็จก็ติดตั้ง Boot Camp แต่ว่า
ตอนติดตั้ง Boot Camp บน Windows 7 x64
แล้วเจอ Error ดังนี้ Boot Camp x64 unsupported on this model
ไม่ต้องตกใจ ให้แก้ไขได้ดังนี้

วิธีแก้
If you do see that, it’s no big deal. Just open up command prompt as an administrator (in the start menu type cmd, right click on it and select Run as Administrator, click yes on the UAC prompt).
d:
(assuming your Snow Leopard disk is in the D drive).
cd Drivers\Apple
BootCamp64.msi

เสร็จแล้วก็ Update ด้วย
Download Update: http://support.apple.com/kb/DL979

ที่มา: http://blog.andersonshatch.com/2009/01/11/windows-7-x64-on-a-macbook-pro…

Mac : Lock Screen

  1. Open the Keychain Access application (/Applications/Utilities/Keychain Access).
  2. Open the Preferences panel (menu: Keychain Access->Preferences).
  3. Make sure “Show Status in Menu Bar” is enabled.
  4. Now close the Preferences panel and then the Keychain Access application.

ที่เมนูบาร์ด้านบนจะเห็น icon ก็กด Lock Screen จากตรงนั้นได้เลย แต่ถ้าต้องการสร้าง Keyboard shortcut ก็ไปอ่านต่อได้จากที่มา
ที่มา: Create a screen-locking keyboard shortcut

How to Use Print Screen Function on Mac

ทำได้ 3 วิธีด้วยกัน

  1. Capture ทั้งหน้าจอ Hold down Apple key ⌘ + Shift + 3 simultaneously to get a picture of your entire desktop. If your audio is turn on, you will hear a click similar to that of a camera. You will then find a picture on your desktop entitled “Picture N” ,n being the first unused number.
  2. Capture บางส่วนของหน้าจอที่ต้องการ Hold down Apple key ⌘ + Shift + 4 and release to capture a certain area of the screen. A cropping tool will appear and you can select the area of the screen you would like to capture.
  3. Capture โปรแกรมที่ต้องการ To do a screen capture of a specific application window, Hold down Apple key ⌘ + Shift + 4 and release. Click the spacebar and a camera icon will appear. Move this icon to the application window you want to capture and press “Enter.”

ที่มา: How to Use Print Screen Function on Mac