MacPorts and Google's SOC

Monday, March 26

I just read that MacPorts has been selected by Google as a member project of the Summer of Code for 2007.

http://trac.macosforge.org/projects/macports/wiki/SummerOfCode

There are a bunch of tasks on the list, including a re-write of the dependencies system, as well as a GUI, but of particular interest to me is Task #4: Binaries.

MacPorts project does not provide binaries yet (installation of software without compiling them). This project consists in working in concert (or cooperatively) with whomever does (virtual chroot) to setup a mechanism to automatically build packages, send reports on failures and implement a distribution mechanisms to allow users to fetch binary packages.

Before switching to OS X, I was a Linux user. Specifically, I used Ubuntu/Debian, whose apt (Advanced Packaging Tool) package manager is simply wonderful. I realize now how spoiled I was. If OS X lacks anything, it’s a decent package manager. Of course, there’s Fink (which is like apt), but for various reasons I’ve had better luck with (Mac|Darwin)Ports and have developed a preference for it. Now that Apple is (somewhat) behind the MacPorts project, I’m hoping that an ‘official’ package manager will emerge. MacPorts with support for binary ports would rock.

MacBook: the first intel macs are out

Tuesday, January 10

It’s arrived: the new MacBook Pro. And it looks about as badass as its product page.

You’ve dreamed about it long enough. Now it has a name: MacBook Pro. Powered by a dual-core Intel engine. Up to four times the speed of the PowerBook G4. Eight times the graphics bandwidth. With built-in iSight for instant video conferencing on the move. And Front Row with Apple Remote to dazzle everyone in the room. Wait no more.

Apple claims the 1.83GHz MacBook is 4x faster than the Powerbook G4. And it comes fully loaded with a 256MB ATI Mobility Radeon X1600 and 1GB of RAM. The display has a resolution of 1440×900 (we saw this in the last generation Powerbooks too), but is apparently 67% brighter.

Having convinced myself that I need a new computer (my iMac case has tiny little cracks in the clear plastic that keep me up at night) I have been waiting for word on the Powerbook’s successor. Now I can bequeath the iMac to my wife (who will surely welcome it over her sluggish PowerMac G4) and return to the land of laptops where (I must admit) I’m much more at home. I’ve concluded I just don’t like working at a desk.

Update: Engadget has a hands-on first take with some photos. See Hands-on with the MacBook Pro

My iMac is back

Tuesday, December 13

After about three weeks my iMac is back from the shop and perched happily on my desk again. As I had suspected, the problem was a faulty power supply. The fine folks at the mac outpost replaced it and all is right with the world once again.

A broken iMac

Wednesday, November 16

My iMac (G5 2.0GHz, 20”) refuses to stay powered. Since early this afternoon, it has been suddenly shutting off, as though its plug has been yanked from the wall.

The first time it happened I thought the power had gone out. All the symptoms were a match (no warning, no fan noise, no trigger—just poof! and then nothing), but the lights were still on, so a power outage it was not. Puzzled, I turned the machine back on, checked out the crash logs, found nothing out of the ordinary, and continued working away, waiting to see if it would happen again. Sure enough, a few minutes later, it happened, and again I was left staring at a hopelessly useless black screen.

Frustrated, I turned my attention to, and subsequently ruled out, the power cord, the power bar, and the wall outlet. I tried it in another room, in a different outlet, on a different breaker. Each time I thought the problem had vanished, my hopes were dashed by a sudden, inexplicable, shutdown.

During brief stints of uptime, I was able to run a few diagnostics, check a few log files, and try a few tricks, all to no avail. Everything seemed fine. I even opened it up and looked under the hood, as if it were a car, as if I would be able to see something suspicious, or out of line. Not surprisingly, it provided no answers.

After much hair-pulling I gave up. It only stays running for a few minutes at most, and as such is unusable. I have since concluded that the power supply must be faulty and have resolved to box it up and cart it down to my local mac dealer first thing in the morning to have it fixed.

Luckily, it’s still under warranty; luckier still, I have a spare laptop.

This laptop on which I am now typing (a Toshiba M30) has really been around the block. I mean, in recent weeks it’s seen FreeBSD, PCBSD, DesktopBSD, Ubuntu-hoary, and Ubuntu-breezy. We’re talking full installs here—no stinking live-cds. I use it as a testing ground for new operating systems, my only criteria for a successful install being the achievement of a wireless Internet connection with zero configuration.

As chance would have it, I had installed kubuntu-5.10 (ubuntu with KDE) on the weekend—to try it out. It passed the zero-config test, but I had no intention of using it as my primary OS. Only days later, here I am, learning the ins and outs of Debian/Linux. It’s not OS X, (or even FreeBSD), but really, it’s not so bad.

I probably spent more time lamenting the plight of the iMac than I did getting set up on kubuntu. Within a few hours, I had my packages, preferences, software, mail, and the entire Rails stack set up. Now I’m back hacking on typo, working on the next version of Scribbish (which I will post about later).

I’m sure I’ll miss a few of OS X’s comforts, but until the iMac gets fixed, I think I can make myself at home here. I’ve missed working on a laptop.

Notes on Mail.app

Tuesday, September 27

When I first switched to the Mac, I installed and configured my favorite mail client, Thunderbird. OS X’s built-in mail client, Mail.app is (of course) gorgeous, and its tight integration with the OS is nice, but I was worried that it wouldn’t be up to snuff in its IMAP support, Spam filtering capabilities, and sorting features. Moreover, how I was going to use GPG to sign and encrypt my messages (a feature that’s easily added to Thunderbird by the Enigmail extension)? Well, my worrying was all in vain—as it turns out, Mail.app is more capable than I gave it credit for.

To be sure, Thunderbird has an impressive feature set: saved searches, message threading, Global Inboxes, and extension API to name a few. Well, as I found out, so does Mail.app. In fact, Mail.app has Smart Mailboxes which improve on saved searches, better threading features, and I even prefer the way multiple accounts are collected in the Global Inbox. In Thunderbird, you don’t get to group by individual accounts—they’re all just lumped together with no way to tell which is which without looking at the to header.

Spam filtering in Mail.app is just as good (if not better) than it is in Thunderbird, both of which use Bayesian filtering and cumulative rules to ‘learn’ what you consider to be Spam. Mail.app gets bonus points, however, because you can manually set additional rules in the same way you would filters to futher customize and refine things.

As for GPG (a feature I can’t do without), GPGMail for Mail.app is the answer I was looking for. For those who aren’t aware, GnuPG is a free PGP replacement. PGP stands for “Pretty Good Privacy”, and can be used to encrypt text (usually e-mail) and sign messages thus proving the identity of the original author. Simply put, GPGMail allows you to read and send PGP authenticated and/or encrypted messages right from inside Mail.app.

If anything, I’d say Mail.app has a more complete feature set than Thunderbird, although the latter makes up for this by virtue of its extension capabilities. That said, I use an extension in Thunderbird that adds a toolbar button to toggle normal/full headers of messages - in Mail.app, this feature exists out of the box. There’s also a toolbar button that toggles between threaded and un-threading message viewing - something I’ve always wished Thunderbird could do (and for which no extension exists).

Thunderbird is still highly regarded in by book due to the fact that it’s cross platform and open source (when you’re working on Mac, Windows, and Linux, it’s nice to have the same mail client accross the board). If Thunderbird were to improve its Mac support in a few areas, and were to support true OS X aqua theming, I would probably be using it in place of Mail.app for the reasons aforementioned. Sadly, it just feels out of place in an otherwise tightly knit environment. That said, Thunderbird (and Firefox for that matter) really shine on Linux—fast, responsive, and good looking.

A few tips

  • To add multiple email address for an account in Mail.app: In the Preferences for the account, enter all your addresses in the email address field, separated by commas. When composing a new message, you’ll get to select which address you’d like to use in the from header.
  • If you’re down with GPG, you might also be interested in the Mac GPG project which brings a bunch of GUI tools to OS X. Check out GPG Keychain Access which lets you manage and create keys using a friendly GUI, and GPGPreferences for a pretty preference pane in which you can manage GPG’s option file.