Geeks R Us

Archive for the 'Macintosh' Category

Backup Bouncer helps verify your backups

Thursday, February 28th, 2008

I have not tried this yet but looks interesting:

Backup Bouncer

Note: This is a geek tool at the moment - Requires XCode, etc.

The latest failure of the Mac Finder UI

Friday, February 22nd, 2008
  1. I see file I want on dock, drag to Finder window.
  2. Poof sound and animation heard. Crap, I just deleted my Downloads stack off the dock
  3. See downloads in said Finder window. Drag to dock.
  4. Poof sound and animation heard. Crap, I just deleted my Downloads sidebar item, also.

/sigh

MacBook / MacBook Pro Keyboard update

Tuesday, February 19th, 2008

It’s on your software update. And here I thought it was my lame typing or iSkin that was causing the first character I typed to be lost!

How to fix screenshots from a broken scale value

Saturday, February 16th, 2008

From Tim:

Don’t know whether you’ve ever tried:

        defaults write NSGlobalDomain AppleDisplayScaleFactor 1.50

to set the global scaling (works pretty well except some apps actually go all fuzzy and others look fabulous)? It turns out it breaks the cmd-shift-4 to snapshot the screen and save the image to a file. The general advice if you google this stuff is to do:

        defaults write NSGlobalDomain AppleDisplayScaleFactor 1.00

to revert to normal size - which indeed it does but snapshotting is still broken. What you need to do to both revert and repair snapshotting is:

        defaults delete NSGlobalDomain AppleDisplayScaleFactor

Why you should use Time Machine

Thursday, February 14th, 2008

Let me tell you a somewhat long tale about the week I’ve had. This will get a little geeky, but you’d find out exactly why you should be using Time Machine and maybe a few tips to help your disaster recovery process.

Time Machine is Mac OS X 10.5’s automatic backup system. You attach a drive to the computer and after a simple dialog, you’re backed up.

Time Machine backs up every hour, quite quickly, and then keeps the last day’s changes and one set of changes every week.

If your computer has a 140gb hard drive and you have a 300gb Time Machine, you can easily keep 3-4 months worth of data in your Time Machine. This allows you to go “back in time” and get a file you just ruined, etc.

I have three Time Machines:

  1. One I keep offsite, that I plug in once a week or so to update. This is in case the house burns down
  2. One I keep downstairs in the office
  3. One I keep next to the couch

To switch Time Machines, you simply attach the drive, open the Time Machine preferences and select the different Time Machine.

Last Tuesday I had been on the couch using Time Machine as normal, then we went to lunch. As I usually do, I unplugged the Time Machine to take it with me, so that way, again if the house burns down, the laptop is lost, but not my data. Call it paranoid, but I did have a tree fall on my house once :)

We come back from lunch and get back to work. Later that night, around 7pm I am checking out World of Warcraft and noticing i have very slow graphics, like 8-9 frames per second.

Being a developer, I download the 10.5.2 graphics update 1.0 and reapply this to my Mac, thinking it couldn’t hurt.

Well, on reboot, my video was dead. Black screen of death. Over the next couple hours I tried everything, reset the SMC, the PRAM, try an external monitor, boot off DVD, boot off the repair disk, safe boot, you name it, I tried it.

Well this sucks. We are shipping Sophie this week and my machine is dead.

I have a second laptop, which Elizabeth uses, so I decide to use that. Now both of these machines have user accounts for me and both have the same ’short’ name. This proved to be very important.

I log into my user on the backup machine and attach my Time Machine. Then I use Browse Other Time Machines by holding down option when I choose the Time Machine menu in 10.5.2. I select my Time Machine drive and wham, there are my files!

So I go back in time, and the last backup is from 1:57pm, when we went to lunch. Crap! I had not plugged the time machine in again.

Since I knew the laptop was working, I removed the Time Machine from the backup machine, booted the now-video-less laptop, attached the Time Machine and waited. Then I logged in by typing blindly.

I then waited and waited until I saw the disk being used and yes, Time Machine was backing up. This took an hour, but you can start it by ssh if you are a geek - Another article on that topic later.

So after the Time Machine disk stopped accessing, I pressed power, then return to safely shut down. I plugged the Time Machine back into the backup laptop and wham, the most recent backup was now the current time.

I restored my email and work data and went back to work.

I took the laptop into the Apple store at 8:30pm and they said they didn’t have the motherboard. I called the next morning and Bridgeport Village had one. By 12pm Wednesday Apple had my machine and I headed home to get back to work.

This morning, Thursday at 8:30am I get a call. My laptop is repaired! Sweeet! So I go pick it up at 10am and notice they forgot to reset the serial number. This was a sure sign I did indeed get a whole new motherboard. They reset the motherboard and I come home. Talk about great service!

I use the time machine on the backup laptop (A different time machine disk) to restore the data I had worked on from the previous day and a half, remove the second time machine and plug in my downstairs time machine.

I didn’t want to touch my most recent time machine, and did this prove to be wise.

You see, my machine name is ’serenity’ and while I had a new motherboard, I had the same hard drive. So, I should just plug in the Time Machine, select Backup Now and be good to go, right?

Nope. “Not enough space to back up, please choose another Time Machine”

What? Alright fine. I look on the Time Machine disk and there are now two folders, ’serenity’ and ’serenity 2′ Oh noes, Time Machine thinks this is a new computer

Sure enough, with help from friends I found this article on Mac OS X Hints that describes how Time Machine records the Ethernet MAC address of your computer with the folder associated with your machine.

This data is kept at a very geeky layer, hidden in the Access Control Lists, so repairing this was not for the faint of heart. That is another article topic for later as well.

After a lot of mucking around, and an all important reboot, I had my time machine understanding that this new machine is really the computer for this time machine.

I’ll have to repeat these steps with my other two time machines. Joy.

So, after all of this, what did I learn that I can pass on to you?

  1. Keep your Time Machine plugged in 100% of the time, so you always have your latest data
  2. Do not use an internal disk for a Time Machine. Convenient? Yes. Easily usable on an emergency computer? No.
  3. Keep file sharing turned on just in case your computer’s video dies.
  4. Spend the money and buy multiple drives for Time Machines.
  5. Be aware that if a computer repair replaces your motherboard, you likely won’t be able to use your old time machines for backing up. You can get the data off, but likely not put more data on, depending on the size of the drive.

I can see why Apple doesn’t just use a machine name to map computers to Time Machines. There are many scenarios where someone could wipe out a Time Machine by either naming their machines the same, or getting a new computer and wiping the time machine out by backing up an empty drive, etc.

However, Apple does need to handle this use case where nothing but the motherboard changed.

Regardless, use Time Machine. Use many Time Machines. Keep them running 24/7.

It will save your butt when Murphy’s Law strikes.

MS Posts Office 2008 security notice, then pulls it

Friday, January 25th, 2008

Update:Microsoft has reposted the instructions


In my RSS was a Mac Mojo post from Eric Schwiebert about the 502 error in the Office 2008 Installer. I went to read the rest of the post but it has been removed, and seemingly not replaced yet. Here is what my RSS reader cached:

You may have seen recent reports on the web of a security issue in the installer for Mac Office 2008. The issue is that our installer is incorrectly granting ownership of the files to a particular local user as it installs them, so that if your Mac actually has a second local user and that user is not an administrator on your Mac, they could modify your Office 2008 install. The issue does not expose the Office 2008 install to modifications by any networked user account or to any local account other than the second one created on your Mac.

Microsoft and the MacBU take all security issues seriously, and we intend to fix this situation in several ways. First of all, if you have already installed Office 2008, you can run a command in the Terminal to fix the file ownership and remove the security concern (see instructions below). Second, the MacBU is working on an update to Office 2008 that will automatically fix the file ownership for you… …

Office 2008 sets user ID to 502

Tuesday, January 22nd, 2008

Sigh, Microsoft. I can confirm the report at bruned that the Microsoft Office 2008 installer sets the owner to user 502, which is the second user on your machine.

In this case, my test user. Nice. What a security hole.

This installer also mucks with other user ids, so be careful.

I ran repair permissions in Disk Utility and it didn’t fix anything.

So I fixed them in the Terminal, which is a pain:

  • sudo chown -R root:admin /Library/Fonts/Microsoft
  • sudo chown -R root:admin /Library/Application\ Support/Microsoft/
  • sudo chown -R root:admin /Applications/Microsoft\ Office\ 2008/

The Finder doesn’t make it possible to change the owner of a file in Leopard, at least I have not figured it out.

Hey Apple, how about some dialog love

Saturday, January 19th, 2008

image of "some items I don't have permission for" dialog

Really, this is useful. Thanks, now I get to sort out which of the 50 items I am administer for I don’t have permissions on.

It really is too bad the computer doesn’t know which items I don’t have permissions to replace, because if the computer knew, it could give me a list, that I could copy and email to the admin. That would be nice.

</sarcasm>

Bought MacHeist Bundle

Friday, January 18th, 2008

Alright, I know the bru-ha-ha over MacHeist, but seeing one of the chaching guys push the bundle made me at least feel that due to the success of MH1, the developers are getting a better deal this time around.

Why did I buy it?

Because I loathe Intuit. I am tired of their Mac apps being behind Windows, I am tired of paying for nothing more than bug fixes, and while chaching falls short of what I need, I want to support them somehow.

If the midnightapps guys add splits, I’d be set.

Now for what I was using QuickBooks for. Not accounting, just invoicing. I found a much, much better solution:

Billings2 is a nice Mac app that tracks jobs by time, by task, expenses, prints nice invoices, can auto save to disk with a filename of your liking, can auto email, integrates with address book, etc, etc. Very nice and for around $60, affordable.

I love where the Mac is these days. With indies giving huge corporations like Intuit a run for their, well, money, I am a very happy Macintosh user.

I completely disagree with John Gruber on Time Capsule and here’s why

Wednesday, January 16th, 2008

In response to John’s Keynote Roundup about Apple’s new Time Capsule, I wrote to him:

Hi John,

I saw your glowing review of Time Capsule and wanted to point out a few things.

1) Backups should be reliable.

Sure, a “server grade” hard disk that supports the proper buffer flush commands is great, but you are wedding a router and a backup. What happens when:

1a) The router dies, and you lose the backup while the router is fixed. 1b) You find out the router does not pass the new VPN your fiancé’s company uses (like I am stuck with in the current router), and now you have a very expensive WAP, just to have a backup 1c) Your hard drive dies, and you lose your router while the hard disk is replaced.

2) Backups should be movable

Again, being stuck inside of the router makes it impossible to move this backup offsite for any reason. You need another backup, or a second time capsule. You should be able to take a full time machine and archive it if you like. You cannot with the Time Capsule. You have to allow files to be deleted, or stop using it altogether.


What Apple should have done:

A) Made the USB port on existing extremes work. AirDisk works very poorly now.

B) Supplied this disk as a USB/FW drive, with the proper flush commands.

C) Sold Time Capsule as a Airport Extreme N router with firewire, and the drive from B.

Ca) Or even better, had a drive sit below the router on a eSata bus connector, so you can buy/swap more capsules.

Summary

This is an awful product because it ties people’s sense of backup security in with another piece of hardware, a router, which can fail, or need to be replaced, thus putting either component of the capsule at risk. It is similar to using two drives striped Raid 0 for a backup, thus doubling your chance of backup failure.

Steve

I have a large amount of respect for John and his body of work. I just don’t want to see customers use this product expecting to have a reliable backup system.

Office 2008 Font Issues

Wednesday, January 16th, 2008

It seems that the Office 2008 installer leaves several copies of their fonts in /Library/Fonts/

The older versions are named such as “Courier New” while the newer versions are named “Courier New.ttf”

Sadly, Font Book as disabled the new fonts and offers to delete them over the old fonts. Yuck.

I am not sure what caused this, but I am guessing it is due to the migration of Tiger to Leopard, copying the old MS fonts, but since i had never reinstalled Office, the office 2008 installer found nothing to uninstall, including the older fonts. Sigh.

I cleaned this up very simply:

  • Use Font Book to look for duplicates
  • Scroll through your font list and look for a black dot next to a font name
  • Turn down the disclosure triangle for the font
  • Select a font and press CMD-I to show the info pane
  • Select two of the same faces (say bold) and compare. One of the info fields is location, look for the font name with .ttf and delete the other (So if you have Andale bold and Andale bold, select each bold, compare versions and names, then delete the non .ttf file)
  • You can easily remove a font by right clicking the font and choosing remove font.

You’ll find you have something like:

  • Andale ** bold ** bold ** italic ** italic

etc. Once you delete the non-ttf file, all duplicates for Andale will disappear.

Move on to the next black dotted duplicate font.

MacWorld 2008 - Time Capsule

Tuesday, January 15th, 2008

Ok this product is a joke. Apple has a bad enough record with routers as it is (My 10 month old router still does not allow Elizabeth’s VPN to connect, wheres linksys and d-link do) but check this scenario out:

  • Back up to Time Capsule, oh laptop kernel panics. Reboot. Wait 9 hours while it scans disk and backup over wifi.

  • Hard disk fails for some reason. Oh explain to the wife/etc that you have no network for days now while hard drive is replaced in router.

ROFL What were they thinking? Don’t buy this. Wait for them to fix the external port on the current base station, or support Macs as time machines over wifi.

Summary - DUD

NetNewsWire is *FREE*!!!!

Wednesday, January 9th, 2008

Yahoo!

If you read RSS on the Macintosh then you likely know that Brent Simmon’s NetNewsWire has been the best app around. Vienna is very nice and gave NNW competition, especially in the price category.

Well now, Newsgator has announced that NNW is free! Yes, free! You have no excuses now:

Download NetNewsWire For Free!

If you don’t read your news via RSS, you might want to consider it!

Spotlight is extension sensitive

Thursday, January 3rd, 2008

I created a file titled Foobar 3.0 in TextMate with the words “hello world” in it.

I did a spotlight search for Hello World but my file did not show in the list. I clicked Show All and it was not in the full list either.

With the full list open, I renamed my file from Foobar 3.0 to Foobar 3.0.txt and immediately, my file showed in the spotlight list.

So, Spotlight does filter files based on extension, and really does not like .0 extensions :)

How good is Leopard’s Time Machine?

Sunday, December 30th, 2007

I leave a hard disk on the floor next to the couch backing up with time machine. Today I was installing a new copy of vBulletin, but they use an awful disk structure of code+resources in one folder, so when I replaced my forums folder with theirs, I inadvertently wiped out the images that my forums user interface uses.

Well, time machine to the rescue!:

  • Navigate to my images folder
  • Click Time Machine on the dock
  • Click back arrow
  • See the missing “a2″ folder, select it
  • Click restore
  • Upload files to server

Done!

Awesome, awesome, awesome.

Sophie and QuickLook for Leopard

Friday, November 16th, 2007

John implemented saving a preview of the first page of a Sophie Book into the document bundle and I wrote my first QuickLook plugin:

Watch

Future of Time Machine

Tuesday, November 13th, 2007

I think it is clear that Time Machine is a hit - Easy to set up, works invisibly in the background to keep you up to date - Excellent!

Where can Time Machine go in the future?

Maybe Time Machine will replace .Mac’s Backup application. You could choose some plans to run and have time machine back up just those plans to your iDisk. Instead of Backup’s horrible excuse for versioning, you could have the great Time Machine methodology.

What do you think?

Leopard is here - What does it mean to you?

Tuesday, October 30th, 2007

Every now and then Apple releases a major upgrade to their operating system. The last major release was 10.4, code named “Tiger.” Last Friday Apple released 10.5, code named “Leopard”

Apple releases major operating systems for several reasons:

  • Money - Operating system updates make money and sell Macintoshes. Each major OS release pushes the envelope of what the hardware can do and for some people, these features are the tipping point to upgrading their machines.
  • Software Advancement - It is with the major releases that Apple can make large, sweeping changes to the internals, which may break compatibility with some hardware and software, but it is done infrequently enough that it is not as much of a pain as a “dot” release, such as 10.4.11.
  • Keeping a lead on Microsoft - Apple jumped over Microsoft with OS X and has been slowly gaining market share. This is good for Apple - See Money :)

Apple’s latest cat is a very nice upgrade. Not only are there very visible features, such as Coverflow and QuickLook, but there are nice updates to Spotlight, the Finder is nicer, and there are many new low level upgrades that users will never see but will surely benefit from.

Applications written for Leopard can take advantage of garbage collection, which simply means it is easier to write applications that have few if none common memory bugs.

Apple has connected syncing with their built in database, Core Data, which means that we should see more applications using Core Data and gaining benefits of backup via Time Machine.

Speaking of Time Machine, Apple has made it so incredibly easy to back up your Mac that you’ll wonder why this wasn’t done before. The answer is simple - In order to have something so simple and integrated as Time Machine, Apple needed to add features to the core operating system, such as FSEvents, which lets the operating system track when files are updated.

On top of that, QuickLook, which is the technology that lets you peek at documents without launching the document’s application, had to be invented so you could look at very old documents that might not have their application installed anymore.

Apple changed the dock, taking away the ability to put simple folders on the Dock and folders now become “Stacks,” which let you peek into a folder, such as your recent downloads folder.

Another thing that changed under the hood is networking. Leopard will fine tune itself for the network you are currently on, which is a boon for those of us fortunate enough to have Verizon’s fiber optic network, FIOS. No longer do we need to run tuners - Leopard does it for us. Nice.

For security, Leopard supports signed applications. While there are reports this functionality is wreaking havoc for some applications, which Apple will fix, this is great news for us Mac users. We’ve been blessed to not have any viruses nor trojan horses for our platform, but that could change. Apple is trying to head hackers off at the pass by allowing developers to put a “seal” on their applications. If a hacker edits any part of the application, the “seal” is broken and the operating system can alert the user.

Apple tweaked the UI by making the menu bar translucent, which some like, some hate. They changed the default folders look, such as Movies and Music, and most hate them.

Spotlight is much faster and even supports boolean searches, as long as you use AND, NOR or OR. Capitalization is required. You can even use parenthesis to group search expressions. For example, you can search for:

dog AND (cat OR bird)

to find any document that contains the word dog AND at least cat or bird. Simple, eh?

If you’re a scriptor, Automator has received a large overhaul and makes it much easier to write some very sophisticated scripts with just some dragging and dropping.

The new Help system has search right from the menu and can find menu items matching your search. This is great for finding hidden menus that deal with “size” or “image” in large applications. The only thing I hate is that the help system uses a floating palette which sits on top of all windows. Who thought this was a good idea?

Launching application is faster and the general feel of Leopard is faster than Tiger was.

iChat received a lot of updates - New visual effects, tabbed chatting and integrated file sharing is fantastic. Toss in screen sharing with audio and I can now support my mom’s computer from hundreds of miles away.

Some users are having awful upgrading experiences, but since Apple sold 2 million copies in a few days, I don’t think the overall experience has been poor. My install went fine and I even restored from Time Machine.

If you plan to upgrade to Leopard, be sure to see my Moving to Leopard article for tips that might make your migration to this new cat smoother.

Windows disappear? - It might be Spaces

Sunday, October 28th, 2007

If your windows simply disappear into thin air, it might be Spaces at work.

But in order for this bug to occur, you need to have had:

  • Enabled Spaces
  • Assigned applications to a space other than space 1
  • Disabled Spaces

With spaces off, it seems something triggers the window manager to still move the windows to the now offscreen spaces and thus, windows are gone.

If this happens, use the Spaces dock icon to open up Spaces preferences, enable spaces and you’ll find your windows.

Potential security risk with “Back to my Mac”

Sunday, October 28th, 2007

[isfym](http://www.isfym.com/site/blog/Entries/2007/10/27Don’tgoBacktoMyMac.html] has an article alarming about a security risk in .Mac’s “back to my mac” feature, which allows your Mac on the road to connect to your Mac at home.

The gist is this: If you have enabled “Back to my Mac” and someone knows your .Mac password, your machine at home is wide open to them.

This is not much different than if they knew the password to your machine. Their one concern is somewhat weak to me

Most people use weaker .Mac passwords. They do.

I don’t. My data is backed up on iDisk, I have email there, I don’t want anyone having an easy time at getting to that data, so I chose a password with various types of characters.

If you have an online service, use a strong password.

Now having said that, I think they are right that logging into .Mac should be different than logging into your Mac. Let the road Mac remember the .Mac password and when you connect at home, enter your machine password as a second line of defense.

Categories