Tips

Check GMail with IMAP and Mail.app

GMail, when accessed via IMAP tends to do some "interesting" things. There are several settings that lessen the pain:

1 - Click on, 'Settings,' at the top of the GMail web page while you're signed in. Click on "Forwarding and POP/IMAP" and then scroll down to the "IMAP" section.

2 - Update the following settings:
"When I mark a message in IMAP as deleted" - Auto-Expunge off
"When a message is marked as deleted and expunged from the last visible IMAP folder" - Immediately delete the message forever
"Folder Size Limits" - leave as default

WebKit Web Inspector Anywhere

Pretty awesome utility: most people know that you can pull up a web/javascript debugger under Safari. But did you know that you can expose this on (nearly) any WebKit frame? Try this:

defaults write -GlobalDomain WebKitDeveloperExtras -bool true

...and then launch (or, quit and relaunch) any app that exposes a WebKitUIView. Right-click on the WebKitUIView and choose "Inspect Element" - Bingo! Up pops the WebKit web debugger.

Now, some applications block this ability unintentionally, or sometimes very intentionally (Mail.app, I'm looking at *you*).

Careful with that iPhone Data

For everyone getting ready to rid themselves of an iPhone (for whatever reason), please remember: inside the iPhone is simple flash memory. This memory is fairly recoverable, even when a restore is run to "wipe" the contents. WIth the ability to "jailbreak" an iPhone and access the filesystem, the problem of leaving sensitive data on the device becomes a little more problematic.

At this stage, I'd recommend waiting until the version 2 software ships and seeing if there's a true secure wipe before flipping a used iPhone.

OS X 10.5: Important Leopard Docs

Two of the best/most important docs I've found that discuss changes in Leopard:

Daemons and Agents

and

What's New In Mac OS X

Enjoy!

OS X 10.5 Leopard Utility update: sort

As tends to happen between milestone releases, utilities get changed in oh-so-subtle ways. This time, sort broke for me. That's right, sort! Of the things...

10.4 sort accepted the "plus notation" for denoting the position of the key that you wanted to sort on:

ls -l | sprt +5

(OK, terrible example as you can do this completely with ls itself, but, you get the idea).

In OS 10.5, that is gone, and you need the more formal "-k" switch:

ls -l | sort -k 4

Note that the plus notation is zero-based, and the k switch starts at 1.

Be aware!

OS X Leopard Utility: createmobileaccount

Possibly one of the best additions to a scripter's arsenal: createmobileaccount. Buried way down in /System/Library/CoreServices/ManagedClient.app/Contents/Resources is where you'll find this little gem.

Once on (or ssh-ed into) a machine that's tied to OD, simply:

./createmobileaccount -e -v -s -n username

The "-e" switch creates a FileVault home....exceptionally cool. Just "./createmobileaccount" for help.

Thanks again to the engineer that put this one together!

OS X 10.5 Leopard Utility update: syslog

Ah..."syslog -w" also now dumps the last 7 lines of the file. That's a nice touch and improvement over Tiger, which showed nothing until new entries were added to the asl database. Thanks to whichever engineer took care of that!

OS X 10.5 Leopard Utility update: tail

In OS X 10.5 ("Leopard"), tail can now follow multiple files! Look:

bash-3.2# tail -f *

==> DirectoryService.error.log <==
2007-11-06 12:30:52 EST - T[0xB0103000] - Attempt #1 to initialize plug-in PasswordServer failed.
Will retry initialization at most 100 times every 1 second.

==> DirectoryService.server.log <==
2007-11-06 12:40:19 EST - T[0xB0289000] - Registered node /Cache
2007-11-06 12:40:19 EST - T[0xB0289000] - Plug-in Cache state is now active.
2007-11-06 12:40:19 EST - T[0xB0185000] - Plugin "Active Directory", Version "1.6", is set to load lazily.

OS X and Kerberos

OS X Server has used Kerberos as a single sign-on technology for some time now.  It's rare, though, to find a Kerberos server on a workstation, but that's precisely what you'll find on each and every OS X v10.5 workstation.  Single sign-on with no infrastructure.  Very, very cool.  However, it's not really documented very well.  Apple just put this kb article on-line, though:

http://docs.info.apple.com/article.html?artnum=306723

Here's hoping to further implementation details!

MacTech DTrace Article

Mac OS X v10.5 ("Leopard") contains vast changes under the hood.  One of the greatest additions is Sun's dtrace.  The November issue has a fantastic introduction to dtrace, and we were able to put it online this morning!  Go check it out at:

http://www.mactech.com/articles/mactech/Vol.23/23.11/ExploringLeopardwithDTrace/index.html

Syndicate content