Friday, November 13, 2009

Safari 4: Getting Links to Open in Tabs

Although I generally love my Mac after using it for nearly a year now, there are still some things about Apple applications that annoy the hell out of me. For instance, I really want my browser window to take up my entire screen. Why do I have to use a 3rd party hack to do this? Ridiculous.

In that same vein, why can't I get Safari links to open in a new tab by default? As an example, I use Gmail and Google Calendar in lieu of an Apple Mail or Outlook-based system. If I click on the Calendar link within Gmail, why does Safari insist on opening this in a new window? ANNOYING.

Anyway, it appears I have found a solution.

Open a terminal, and type the following:

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

Hit enter. Restart Safari. That should do it.

Wednesday, January 28, 2009

Stop your MacBook/Pro from waking up in your bag

Shortly after I got my MacBook Pro, I started running into situations where the machine was waking up in my bag on the way to wherever I was going and overheating. This is a problem, obviously, because shutting down is simply not an option--it's too inconvenient.

After doing some research and implementing some of the things I found, I am happy to say that I am no longer experiencing any issues.

Here are some simple suggestions to try:
  1. Unplug everything before your put Mac to sleep. As you may or may not know, plugging in or unplugging ANYTHING on your MacBook will wake the computer.
  2. Disable "Allow Bluetooth devices to wake this computer." If you have any kind of bluetooth mouse or other peripheral in your bag, one small bump can wake your Mac from sleep mode. To do this, go into your System Preferences, then Bluetooth, then click the Advanced button, and uncheck "Allow Bluetooth..."
If you still experience problems, you can change the settings so that putting your Mac to sleep will actually put it in hibernate mode. Hibernate mode is like Sleep, only instead of keeping your state in memory (which uses battery life), it writes your state to the hard drive (which uses no battery life). This is kind of a compromise between sleep and shut down. It takes a little longer to come back when you wake it up, but you don't have to close any applications or lose any work.

The command-line trick to this is the following:
  • Open up a terminal window (Applications > Utilities > Terminal)
  • Check to see what sleep setting you are using. Type: pmset -g | grep hibernatemode
  • If you are using setting 3, which should be the default, you can change to setting 1 which is hibernate only by typing: sudo pmset -a hibernate mode 1
  • Of course, if you ever want to switch back to the default, just set it back to 3
The GUI trick to this is the following (this way is nicer):
Finally, if you STILL have problems, you might want to try resetting the memory and the controller chip. Disclaimer: I have no idea if this will actually work, but this is a set of instructions provided by AppleCare to someone having this issue who doesn't have Bluetooth even enabled:
  1. Turn off your Mac.
  2. Remove the battery and unplug the power cord.
  3. Press down the power button and leave it pressed for 15 seconds.
  4. Put the battery back in, then plug in the power cord.
  5. Turn on your Mac while pressing the following button combination: command+option+P+R.
  6. Keep the buttons pressed until the Mac restarts three times.
If you've tried all of the above and are still having problems, good luck! At that point, I would consider the possibility that you have a lemon.