Keeping my Intel Mac Pure

Posted by Scott Hughes Mon, 06 Mar 2006 05:08:00 GMT

It’s usually pretty tough living on the bleeding edge, but Apple has made things a lot easier with their switch to Intel. Thanks to Rosetta, you can still run just about all of your PowerPC applications under emulation. Since the emulation is obviously going to be slower, I’m trying to stay clear of any PowerPC apps if I can, especially if they are meant to run all the time (daemons). Apple created a handy logo to identify apps which are Universal (containing binary code for both Intel and PowerPC architectures), but I’ve found that there are some apps that still aren’t using logo. This means I typically have to visit the changelog of my favorite apps and search for the keyword “universal”. Optionally, you can download the app, select it in the finder, and hit Command-I to get its information screen. From there, you can see if it’s a PowerPC app under the “Kind” heading. It’ll read either “Kind: Application (Universal)” or “Kind: Application (PowerPC)”. If I find that it’s a PowerPC app, the url for it gets dragged into my “Waiting For Universal” folder in my Bookmarks Bar.

I did get bit by an app recently and I didn’t see it coming. I noticed a frustrating amount of slowdown on my MacBook Pro, especially when switching tasks. I searched for a long time to figure out which app I had loaded that was slowing me down by so much. My memory usage was extremely low, so disk swapping wasn’t the problem. CPU usage was next to nothing, so I was stumped as to what it could be. I had a 5-10 second delay when switching apps or when bringing up the dashboard, so something was definitely misbehaving. I checked my Console (Applications/Utiilities/Console.App) and I found that I had several plugins for Quicksilver and Mail.app which were throwing linker errors. The errors came from the fact that they are PowerPC plugins that got moved over via the Migration assistant. Even after removing those, I still had the noticable slowdown.

Finally I tried the Activity Monitor (Applications/Utiilities/ActivityMonitor.App). If you right-click on the column headers, you’ll see a drop-down to select which fields are available. Select the “Kind” field. Now sort on that field and you’ll see all of the PowerPC applications (those running under Rosetta) on your machine. These are the most likely to be causing slowdown, especially the daemon apps who are constantly performing work in the background. I found my culprit easily: The Delicious Library Dashboard Widget. Delicious Library was a Universal app, so I wouldn’t have suspected it. But the handy widget included with it has a separate binary component and that’s built as a PowerPC application (either that or the installer for the latest version failed to overwrite my old widget). After removing it from the Dashboard, I was again cruising at full speed. I sent Delicious Monster some feedback about the widget; seems to be an easy enough fix that I’ll bet it’s corrected before my RSS feed is updated.

If your MacBook Pro (or other Intel Mac) is experiencing slowdown (so early in its life!), I’d suggest you perform the same investigation. As an aside, here are some of the apps in my current waiting list now:

Posted in  | Tags , , , ,  | 4 comments

Mac Key Bindings

Posted by Scott Hughes Tue, 28 Feb 2006 17:18:00 GMT

OS X has an annoying (at least, to me) idea about how the Home/End keys should work. For a while, I tolerated it because it was my duty as a switcher. But, going back and forth between my work PC and my home Mac is painful (especially now that my home Mac is sitting next to my work PC). I finally stumbled upon this reference to help over write the default key bindings to come up with something that’s a little more natural for me. Here’s what I used for my new key bindings

/* ~/Library/KeyBindings/DefaultKeyBinding.dict */
{
    /* Home Key */
    "\UF729"   = "moveToBeginningOfLine:";
    "^\UF729"  = "moveToBeginningOfDocument:";
    "$\UF729"  = "moveToBeginningOfLineAndModifySelection:";
    "$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:";

    /* End Key */
    "\UF72B"   = "moveToEndOfLine:";
    "^\UF72B"  = "moveToEndOfDocument:";
    "$\UF72B"  = "moveToEndOfLineAndModifySelection:";
    "$^\UF72B" = "moveToEndOfDocumentAndModifySelection:";

    /* Left Arrow Key */
    "^\UF702"  = "moveWordBackward:";
    "$^\UF702" = "moveWordBackwardAndModifySelection:";

    /* Right Arrow Key */
    "^\UF703"  = "moveWordForward:";
    "$^\UF703" = "moveWordForwardAndModifySelection:";
}

I played around with trying to get the Shift+Delete combo to do a forward-delete (like Windows Delete key, instead of like Backspace), but I couldn’t get that to work. My MacBook Pro keyboard only has the one Delete key, but if I use a Windows keyboard the Windows Delete key works as expected. I’d be interested if anyone else had a tip about a good way to get a convenient forward-delete on my MacBook keyboard.

Update 3/11/2006:
Apparently, on all Apple laptops, the mapping for a forward delete is fn + delete. However, it seems I can’t use fn + [cmd|opt|ctrl] + delete to do any fancier forward deleting (like “forward delete word), because once I press any of the modifier buttons it’s as if the fn button is ignored in the combo.

Posted in  | Tags , , ,  | no comments

MacBookPro's audio port has me stumped

Posted by Scott Hughes Sun, 26 Feb 2006 22:37:00 GMT

Documentation for the MacBookPro’s audio line-in/line-out say that it’s a combined stereo and optical digital plug. If you look down in it, it looks deeper than your standard stereo plug, so I believe them that there is something fiber-optic waiting for me at the end of that tunnel… The problem is: how am I supposed to get to it? If you take a look at the end of your standard optical digital cable, it’s immediately obvious that there is no way that it will plug into the same hole as a headphone jack. I’ve already purchased the DVI-to-S-Video adapter so that I can hook it up to my TV. But I don’t have a good way to get audio out without that plug. Granted, I could just use a stereo-to-RCA adapter, but my home theater setup isn’t easily wired that way. I have all my stuff switched through optical digital boxes, with no connection on the RCA plugs.

Anyone have any guesses about how I’m supposed to access that? I’m hoping someone will tell me that it’s a common enough port and that there are adapters readily available for other brands.

Update Well, thanks to the commenters, I now know that Monster sells exactly what I need.

Posted in  | Tags , , ,  | 3 comments