Skip to content

Apple Universe

Top-level category for all Apple, Mac, and OS X related topics.

How I back up my websites

I’ll start off with an admission: I’m a relatively clueluess user of the command line in OS X. Sure, I know my way around the basics such as ls, cp, mv, and I have a working knowledge of vi, and a basic understanding of some of the more advanced programs. But that’s about it—minimal shell scriping skills, no knowledge of regular expressions, and only the most basic understanding of pipes, redirection, combining commands, etc. So I find myself regularly amazed by the power of what (for a Unix wizard) would be an amazingly simple task.

Such was the case yesterday. Earlier in the day, I’d had a bit of a scare with our family blog site (like robservatory, it runs on WordPress). Due to a mix-up on the administrative end, the WordPress database for the site was deleted. Historically, I’ve been very paranoid about backing up the macosxhints’ sites. But for whatever, reason, that same paranoia didn’t extend to my two personal sites. Hence, I had no backup to help with the problem. Thankfully, the ISP did, and the family blog was soon back online without any loss of data. But I resolved to not let this happen again without a local backup of my own.

[continue reading…]



On the strangeness of electrons…

Happy Holidays!

As you may know, I'm in Colorado for the holidays this year, visiting with the family. If you've never been here, the air is extremely dry, especially in the winter. And dry air makes a great breeding ground for static electricity. Coming from humid Oregon, I'd pretty much forgotten about that fact. Until this morning, when I touched the trackpad on my 12" PowerBook G4 and watched a very large, very bright spark travel between my finger and the pad. Zotttt!

Immediately, the trackpad was rendered next to useless. The cursor was generally restricted to a square area of about 200 pixels in the top left corner of the screen--though I could occasionally coerce it into other locations. Knowing what little I know about electricity (stay away from it!), I thought for sure I'd fried some key electronic part that controlled the track pad.

Nonetheless, I tried my usual first troubleshooting step--a restart. While things changed a bit, the trackpad was still basically unusable. I could drag it all over the screen, but only in huge jumps. When I lifted my finger, the cursor would jump to some other spot on the screen. I was now pretty convinced I had a hardware issue.

Then I remembered that I had SideTrack, the replacement trackpad driver, installed. SideTrack is such an essential piece of software for me that I had totally forgotten I had it installed. In the 'why not try' category, I downloaded the newest version and installed it. One restart later, and...presto...I once again had a fully-functional trackpad.

So the question of the day for any of you technical types is: How could a jolt of static electricity permanently affect a software application? It seems very odd to me, especially given that SideTrack isn't the kind of thing (I wouldn't think) that would be writing anything permanent to disk (which might get scrambled by a shock). Any ideas?



10.4 + 0.3 = 311.6??

megabytes to upgrade

Well, it does when you're talking about installing 10.4 from the retail DVD, and then upgrading it to 10.4.3. I re-partitioned a portable FireWire drive tonight, so that I could put both 10.3 and 10.4 on it for testing purposes. I haven't clean installed 10.4 since the release back in April, and I hadn't really noticed just how many megabytes of updates there have been. Suffice it to say, there've been a lot! Seven packages the first time around, then five more after that.

To Apple's credit, I guess?, it only took two restarts to get the system up to date. But I shudder to think about those who lack broadband access to the net; even a moderately-speedy DSL connection would groan under the weight of these updates. Approximate download times for 311.6MB:

Connection SpeedDownload Time (Hrs:Mins)
28.8Kbps25:12
33.3Kbps21:36
56.6Kbps12:50
128Kbps (ISDN)5:40
512Kbps (DSL)1:25
1.5Mbps (Cable)0:29
6Mpbs (Fast Cable)0:07

So what does one do if you only have modem access? From my memories of my 56Kbps days, the modem more routinely connected at about 44Kbps, meaning probably something like 15 hours of download time. And I don't believe Apple allows user groups to distribute update CDs any more (do they?). Anyone out there still on a modem connection? If so, how do you stay current with 100MB+ updates becoming routine nowadays? (Note that this doesn't just apply to Apple's updates; even updates for things like Quicken, Acrobat, etc. are swelling into the multi-megabyte size).



Strangest OS X screenshot …. ever?

Last weekend, I was working on a relatively large--OK, a huge--17.8GB QuickTime movie. This was the raw capture of 35 or so minutes of flying time in X-Plane.

strange screenshotI had the original movie open in QuickTime Player, and I had also exported a notably smaller (200MB) H.264 version, which I was playing with in Motion. Then, for no apparent reason, all heck broke lose--both screens on my system suddenly went 70s psychedelic on me, as seen in the grab at right of a portion of the screen (click for full-size).

In addition to the messed-up colors, things were also not in the right spot on the screen--you can see this with the location of the Smart Folders object in the large screenshot. The system seemed to be working fine; I just couldn't make anything out on either screen--except the menubar (but not the menus themselves). So I used Command-Tab and the 'Q' key to quit various running apps, including QuickTime and Motion.

After quitting nearly everything I had running, the screen returned to nearly normal--the only remaining issue was that objects' shadows were really messed up, showing pieces of other windows instead of a fuzzy gray/black shadow. I logged out and back in, and that fixed that issue.

What this reminded me of, more than anything, was mucking about with my Apple ][ back in the day--if you "poked" some data into the wrong memory locations, you could mess up your display in quite a creative manner! It almost seemed like that's what OS X was doing--I had used all the available RAM, so it started using the video card's RAM for storage instead. Yes, I know this isn't possible, and it's in no way what happened.

Anyway, in five years of OS X usage, this is by far the oddest visual distortion I've ever seen, so I thought I'd share. I was quite impressed that the system itself was still usable--I have yet to restart since that incident, in fact, and all has been fine after the re-login.



I just don’t understand…

I read today that pearworks has been forced to discontinue distribution of their awesome pearLyrics widget--this handy tool downloaded and displayed the lyrics for the currently-playing iTunes song. pearworks received a cease and decist letter from Warner/Chappell Music Limited, requiring that pearLyrics be removed from distribution. You can read more about it here on the pearLyrics site.

The reason for this posting, though, isn't to try to start a groundswell of opinion to get pearLyrics back on the market (though that would be a nice outcome). Instead, there's a Big Picture item here that I just don't get: why do the record companies care about the distribution of lyrics? Regardless of whether I own a CD by Band X or not, why does any record company care if there are lyrics servers out there distributing the words Band X's music? I understand that the lyrics are copyrighted, but it's not like the words do a lot of good to anyone without the music (do they? Is that what I'm missing?). And this isn't a case where someone's done something like scanned the latest Grisham novel and put it online for download--in that case, the product is the words, and the artist is clearly damaged by the distribution of the scanned words. But with songs, the words themselvese aren't really good for much of anything without the accompanying music and vocals, right? So why do the record companies care?

To me, this is completely 100% backwards from how it should be--I would think record companies would want people distributing lyrics to songs. That way, someone might stumble across a song with interesting words, and then go out and (gasp!) purchase the song. Instead, the record companies are going out of their way to prevent the distribution of lyrics. Can someone brighter than I explain exactly why they're concerned about this? Like Windows and $50,000+ Cadillac pickup trucks, I just don't get it, so I assume I must be missing something obvious.



A strange error message

I use Butler as my launcher of choice, which means I launch most apps by typing Control-Space, then typing a few letters of the program’s name. Today, I made a typo and instead of launching my targeted app, Microsoft Graph launched. This little program is usually called from the Office apps, not as a standalone. So I wasn’t too surprised when the app displayed an error dialog on the screen. I was, however, surprised by the contents of the dialog:

Graph Error msg

Hmm, so I can only run Graph within another program, yet I’m given a Yes or No option when asked if it should quit now? Being the type of person I am, I chose No. Graph proceeded to open, and function in a most limited way—most features failed to work, but I was able to build a basic graph of sorts.

Seems to me that if the program is only going to work within another program, that dialog box should only have an “OK” button on it. Click it, and Graph should quit. Ah, the strangeness of error messages. Not quite as good as “No keyboard detected, press F1 to continue,” but it still made me chuckle a bit this morning.



Spotlight’s odd definition of a match

Tonight, while doing some testing for the ever-growing discussion about my Macworld Spotlight writeup, I stumbled across yet another ‘feature’ of Spotlight that I just don’t get. I’m think I remember reading this somewhere in the hazy past, but it slipped my mind when I wrote the long article for Macworld. But after playing around some more, this new ‘feature’ has jumped well up on my list of Spotlight annoyances.

So just what is this ‘feature’ that bothers me so? It’s this:

Spotlight will, by design, not find exactly what you asked it to find.

At this point, you might be saying ‘huh?,’ but let me explain by way of a simple demo.

[continue reading…]



More on Spotlight…

Macworld logoI know that not everyone that visits here reads my stuff over on Macworld's site, so I thought I'd put a quick note here, too. Over on Macworld today, you can read my latest opinion piece, A Dim View of Spotlight.

This piece is a follow-up to my original Shining the spotlight on Spotlight article, which (confusingly enough) appeared here on robservatory in May (I wrote it prior to the Macworld changeover). If you read the original, you can skip the whole "what I said back then" section in the new article, and just read through my latest thoughts on why Spotlight still isn't quite everything it could be.

Executive Summary: I don't like the way Spotlight works at all, but I still think it has great potential. Read the story for the specifics on why I feel that way!



A tale of three hardware interfaces…

As some of you may know, I’m relatively paranoid about backups—you can’t have too many, and you can’t make them often enough :). The macosxhints.com site is backed up twice a day via a set of scripts that use ssh and scp (and are scheduled via cron). For my personal machine, I use two external hard drives. The smaller of these two (an older version of this 250GB Maxtor drive) is used throughout the day to make backups of my key files. It also holds secondary copies of key things such as my iTunes music collection, iPhoto library, and digital video snippets. The larger of the two drives is a LaCie 500GB Triple Disk Extreme. At the end of each day, I run a full backup of the machine to the LaCie disk, and then power it down. But this article isn’t really about my backup strategy; it’s about the three interfaces on the Triple Disk Extreme (TDE), and a simplistic comparison of their performance on my machine (Dual 2.0GHz G5, first gen).

The TDE is so named due to its FireWire2, FireWire, and USB2 interfaces. A recent conversation with Chris Breen about FireWire vs. USB2 on the iPods led me to run a few tests on my hard drive, just to see how each interface performed. What got me started down this road is some stuff that Chris wrote in a couple of different iPod reviews:

In my tests, a dual-processor 2GHz Power Mac G5 filled a 6GB mini in 15 minutes and 17 seconds over USB 2.0. Using a FireWire connection shaved a scant 18 seconds off that time.

The nano is also quicker to sync than other iPods. I synced the same 903-track playlist on a 4GB nano and a 4GB iPod mini. It took 9 minutes and 15 seconds to sync the nano. The mini took nearly 7 minutes longer to sync, finally finishing the job in 16 minutes and 13 seconds.

So while USB 2.0 may not fare so well with other devices, as far as iPods go, syncing performance doesn’t appear to be a problem.

I thought I’d use my TDE to run a few tests in the Finder, just to see how things compared there. Read on for my results…

[continue reading…]



When is a sorted list not a sorted list?

One of the things I like the most about OS X 10.4 is Automator, Apple’s new tool to help automate routine tasks. There’s an amazing amount of power hiding beneath a relatively simple user interface. The fact that users can create their own Automator actions (not workflows, but the actual actions that show up in the Action column), as described in this hint published today, means that Automator can be easily extended by those with a bit of programming experience.

Considering both Actions and Workflows, there are already over 100 entries on Apple’s Automator Actions download page, which is quite cool. (This does, however, pale in comparison to the 1,289 Dashboard widgets currently available for download.) In any event, Automator is a good tool to have around, and I’ve already put it to use on a number of occasions.

Automator sort orderThere is, however, something that irks me about its interface. Consider the screenshot at right of the Actions associated with the Finder Library entry (hover and click to zoom).

If you scan the list of Actions, you’ll find that they’re not in alphabetical order. Well, they’re sort of alphabetized. Look a bit closer, and you’ll see that the list is actually sorted by the relevance indicator, just like the search results in Mac Help. While this makes sense in Mac Help, as you’re searching for something that’s not definite, it makes no sense at all in this context. What is this list relevant to? The Finder Library entry? If that’s the case, then how come “Get Selected Finder Items” sits at the top of the list with 100% while “Filter Finder Items” (which sounds very similar) scores 0% and is sitting down near the bottom?

Within the relevance sort, the sort is then alphabetic, so with some practice, you can eventually find what you’re looking for. But Apple’s use of the seemingly-undefined relevance criteria makes the task much more difficult than it should be. Consider the iTunes Library entry; it has four levels of relevance, which means the alpha sort restarts four times—and one of those times is for one lousy item! It takes way too long to find a given entry in a list ordered in this manner, and there’s no reason for it at all that I can see.

You might think that using the Applications Library entry (the first one in the list) would solve the problem, since it selects all actions and displays them at once. But no, even in this situation, the relevance sort order is maintained! As a result, I never use this entry, as it’s really, really hard to find anything.

The solution seems simple to me: Apple, please sort the Automator actions by alpha, not relevance. If you’re going to insist on a sort by relevance, then at least give us the option to sort by alpha instead…

Sept 16th Update: I emailed Sal Soghoian, the AppleScript Product Manager at Apple (and all-around good guy!) to ask for some clarification. I asked “can you shed any light on exactly how Automator sorts its action lists?” He told me that Automator does indeed sort on relevance, and that “relevance is based on input/output types, keywords, keyword order, categories, and the related actions parameter.” He also mentioned that an alpha sort has been a popular request, so hopefully we'll see it soon...