» tagged pages
» logout

sorted by: recent | see : popular
Content Tagged with User:marc + x

Finding the Love

In March of this year, having largely finished writing my first book on web application programming with PHP and MySQL, I realised it was time to find another contract. I hadn’t worked in nearly a year, and the reserves were getting a little bit lower than I would normally like.

Around then, I started getting a number of emails and phone calls from people interested in having me come work for them for a while. Most of the jobs were to write some .NET applications or tools, or otherwise C/C++ things related to OLE2/COM that I did all the time when I worked for Microsoft in the 1990s. The money for these contracts is usually good, and I was relieved to learn I wasn’t going to be smashing open the piggy bank for extra funds.

Cool Link #1: AdiumX, an excellent chat client for OS X.
www.adiumx.com

When I went to talk with the various people about the contracts, however, I suddenly found myself extremely unenthused about the work being offered. None of it sounded terribly difficult, but at the same time, none of it sounded in the least bit interesting. At all. Had I completely bottomed out on the whole computer thing? After six months of full-time writing a book and programming PHP and MySQL, was I so burned out that I needed a break from computing, or worse, a complete change of career? It certainly felt so. At the peak (trough?) of my self-doubt, taking a job for pennies above minimum wage at the local café where I get my daily fix sounded more interesting than taking any of the offered jobs.

I made a commitment to myself: no more jobs that sucked. While I can’t honestly say that any of the offered jobs were what anybody would call ‘terrible work’ – they pay well and treat me well – at the end of the day they just weren’t any fun, and I’ve long espoused that life is too short to do crappy stuff that makes you crabby. So, I turned all those jobs down and took a job doing some open source work with PHP and MySQL which payed reasonably well, and figured I’d be fine.

Cool Link #2: FireFox for OS X
www.mozilla.org

And then I lost my Dell laptop—it was taken to Europe by Samantha, who was doing a study abroad program in Rome. I still had some more work to do on my book, and since that absolutely had to be done at the caf√©, I needed a new laptop.

On a whim, I went down to the local Apple Store (Seattle is now swarming with them) and bought a 12” Powerbook. I took it home, spent a good half hour trying to get it to find my crappy 64-bit WEP encoded wireless router (which was so old it’s a miracle that anybody finds it) and started playing.

In the early 1990s, McGill University’s School of Computer Science (SOCS) purchased a number of NeXT computers for laboratory use. They were very cool, if somewhat ahead of their time, and I had heard that the new OS X was based on this, and thus wouldn’t suck as much as I’ve always perceived OS 9 and predecessors. I had also read that FreeBSD, an operating system of which I’ve long been a fan, would form a key part of the new operating system.

I had no idea how cool the new computer would be. Within the hour, I had the developer tools and compiler downloaded and was building and installing my favourite software. OS X appeared to be what I had long dreamed of: Unix with a non-sucky GUI on top of it. I was hooked.

Cool Link #3: Microsoft Resources for the Mac
www.microsoft.com

I finished my book on the new machine, and then the ladyfriend came back from Europe, at which point it was deemed that the Dell laptop was dead (or at least really sleepy). She became the new owner of the 12” Powerbook, and I ended up with a 15”. A horrific amount of money for the two new machines, but we both use them constantly. There was almost no learning curve for her with the new machine. A couple of questions about what programs mapped from Windows to the new system, but otherwise, none of the usual troubles. She now finds herself using the computer much more than she ever used the old Dell, and is turning into a computer nerd herself.

I am now in the final stretch of a reasonably long contract for PHP and MySQL, and my co-worker whom I sit beside every day is entirely sick of me asking him if I’ve ever told him how much fun my new computer is. At some point almost every day, I get this giddy feeling of happiness when using this machine. From multimedia to programming to writing to simple web surfing, this machine is a hoot. My co-worker’s wife, a computer professional herself, is already pestering him for one too.

Cool Link #4: The Apple Store
store.apple.com

Major concerns with moving to OS X for me had always been keyboard accelerators and internationalisation. I am very lazy and hate to reach for the mouse unless necessary. I also tend to write a lot of messages and such in many different languages, and if the new machine was not going to let me write in Japanese, Arabic, or Korean without hassle, it was going to be a non-starter. Fortunately, OS X has solved all of these problems, and a few others too. I find the way in which I used other operating systems has completely changed based on how I use this one now, and there are a few features (Exposé definitely) that I find annoying that other operating systems don’t have.

I, once again, find computers fun to use again. I’ve got a list swirling in my head of applications, utilities, and scripts that would be fun to write and I’ve already begun to tackle this list, even with other projects in the offing. For those claiming that my finding the love again is an isolated case, go sit in a café with Wi-Fi or attend a conference that’s not Microsoft XXX or some such thing—Apple is gaining mind-share rapidly. Here’s to hoping they don’t screw it up.

Cool Link #5: VLC, An Excellent Media Player
www.videolan.org

User:marc: Chipmunk Ninja Technical Articles

When Apples go Bad

Last night, after a nice weekend of varying activities (yoga, studying, yoga, sleeping), the plan was to lie in bed and read some Apple Developer Connection documentation for a while and generally learn more about some stuff I’ve been working on lately.

So, it was with some dismay that I sat down with Samantha’s PowerBook G4, clicked on Safari and got … nothing. The icon bounced twice and then stopped. System logs showed nothing, and the application appeared to be all fine in its folder in /Applications.

Uuuuuh. Now what? Oh yes, the System Console, in /Application/Utilities. It gave me the following very helpful message:

2006-08-20 22:32:29.825 Safari[249] Unable to load nib file: MainMenu, exiting

For those not familiar with Mac OS X (or NeXTStep) development, NIB files are files that contain the structure and connections used by the various user Interface elements used by OS X Cocoa applications. These are usually only modified by the Interface Builder application used to develop applications.

So what was wrong with mine? Some searching around the Intarwebs suggested that it might be a permissions thing. So I fired up the Disk Utility and that said that a bunch of permissions were all wrong (how did that happen?) and fixed them.

It really works...

Still no dice with Safari. There was another button on the Disk Utility to “Verify Disk”. That did not go well. Lots of red text and scary messages, and finally “exiting”.

So, in the end, I had to actually boot the PowerBook into single user mode (when the machine is booting up, hold down CMD/Apple + S), and run

/sbin/fsck -fy

to get everything working again. It took running this program twice to get everything fixed, and even then, one of the sub-nib files in the MainMenu.nib/ directory for Safari.app was still corrupted, and had to be copied from somewhere else. Luckily, we’ve got another PowerBook G4 here in Beijing, or I would have had to harrass somebody overseas for the file.

None of this is particularly new, shocking, or difficult to figure out, especially for those who have run various flavours of Unix for some time. I’ve just grown so used to my PowerBook being extremely reliable (in three years of owning a Dell Laptop running XP, I never once had half the average uptime I get on my PowerBoook) that it’s so shocking when there is a problem, I’m taken off guard.

There is an interesting point to be made here though, and that is that there no way Samantha would have been able to figure out and do this by herself. She still would have had to go to an Apple Geek Lab (or whatever they’re called) – of which there are none here in Beijing – and get somebody to look at it for her, or beg a friend (who might not have known what s/he was doing and suggested “wiping and reinstalling everything”). As nice as it can be to use, personal computing software still has a long way to go.

User:marc: Chipmunk Ninja Technical Articles