Archive for March, 2009

Tip: Two ways to lock your Mac

Thursday, March 26th, 2009
security.png

It’s my Mac—stay away!

Lock on Sleep or Screensaver

1. Open System Preferences.
2. Select Security.
3. Enable Require password to wake this computer from sleep or screen saver

Now, anyone trying to wake your Mac or exit the screensaver will be asked for the password.

keychain.png

Lock on command

1. Open Keychain Access (in your Utilities folder).
2. Choose Keychain Access > Preferences.
3. Enable Show Status in Menu Bar.

You should now see a little lock.png menu in the upper-right corner of your screen. Choosing Lock Screen from that menu will start your screensaver. Anyone trying to exit the screensaver will be asked for the password.

lock_screen_menu.png

O Ternary Operator

Tuesday, March 24th, 2009

Spoken language is informal and therefore sometimes verbose:

“If Harold is on a diet, serve him a bowl of berries, otherwise give him a piece of pie.”

You see this informal verbosity in code as well:

if (onDiet) {
    serveDessert(Dessert.BERRIES);
} else {
    serveDessert(Dessert.PIE);
}

But code should be neither informal, nor verbose. If performing one action, code should appear to be performing one action. The Ternary Operator can help:

serveDessert(onDiet ? Dessert.BERRIES : Dessert.PIE);

Used skillfully, the Ternary Operator keeps your code laconic, yet still perfectly clear:

“If Harold’s on a diet, give him berries, otherwise pie.”

Apple’s Quick Tips are great

Friday, March 13th, 2009

If you haven’t seen Apple’s Quick Tips yet, take a look. The brief 1-3 minute videos feature Apple Geniuses who show you how to get more out of your Mac. They’re also available as a video podcast.

genius_1.pngquick_tip_two.png

Here’s a small sample of the topics they cover:

Advanced Find
Download Defensively
Open Finder from Spotlight
Finder Path Bar
Managing Multiple Windows
Customizing Keyboard Shortcuts
Securing PDFs
Mighty Mouse Customization
Multiple Accounts in Mail
BCC in Mail
Select All Mail Messages
Bookmark Multiple Tabs
Move Windows Between Spaces

Special Characters
Volume Adjustments
Help Pointers
Give Guests Access
Shortcuts Explained
Boolean Spotlight Searches
Organizing RSS
Download Source
Organize Your Workspaces
Dragging Files
Locking Files
Smart Folders
Easy Photo Edits

How iMovie 8 shifts your focus

Saturday, March 7th, 2009

An insightful piece by Systems Boy on how iMovie 8’s no-timeline design encourages you to regard your piece in other ways:

In iMovie 8 you’re forced to get a sense of the timing of the piece by watching your piece. This, at least for me, allowed for a true shift in focus. Suddenly I found myself much more engaged in the sound and imagery than the timing. And in my own sense of time, rather than that of actual, precise, numeric time. This was somewhat magical. — iMovie 8, systemboy.com, March 7, 2009

A nice detail in the Mac OS X screenshot tool

Sunday, March 1st, 2009

The screenshot tool in Mac OS X contains a nice detail: when you press Command+Shift+4 to select a region, the screen position of the cursor you’re shown before you click are replaced (when you click) by the dimensions of the rectangular region you’re selecting.

I’ve used that tool surely thousands of time, but only recently noticed it when I found myself wishing that it would show me the dimensions of the selection—and discovered that it did.