Rocking the blogosphere

Archive for the 'Computers' Category

Preventing Quicksilver’s Clipboard History window from popping up when quitting applications

A few months ago, I noticed that Quicksilver’s Clipboard History window would pop up unexpectedly when I used Cmd+Q to quit applications. Mildly annoying.

I finally decided to search for a solution and I found a workaround at least:

Basically, the workaround is to dock the Clipboard History window to one of the sides of the screen.

Xcode/iPhone error 0xE8000001: problem and fix

As you all probably know, I’ve written a word game for the iPhone called Word Up!

<shameless-plug>
reacquainted - 288 points
</shameless-plug>

Tonight, I started getting an error while trying to run my app from Xcode on my device (provisioned for development). The error was:

Your mobile device has encountered an unexpected error (0xE8000001)
during the install phase: Copying file.
Try disconnecting and powering off the device; then power the device
on and reconnect it.

I tried resetting the device a number of times and rebooting my MBP as well to no avail. It was beginning to look like I was going to have to do the dreaded restore and then lose all the cool jailbreak stuff that I’ve become so accustomed to. And then that made me remember that because my device is jailbroken, I can ssh to it and poke around. I wondered if a previous failed copy left some garbage on the device that was causing subsequent copies to fail.

iPhone:/ root# find . -name 'Word Up*'
./private/var/mobile/Media/PublicStaging/Word Up!.app
iPhone:/ root# cd /var/mobile/Media/PublicStaging/
iPhone:/var/mobile/Media/PublicStaging root# rm -rf Word\ Up\!.app/

Bingo. That fixed it. So if you hit this problem and you happen to have access to the filesystem of the device, give it a shot.

Test post from WordPress iPhone app

Test post from WordPress iPhone app

Yay

OS X 10.5.5

You can now grab OS X 10.5.5 from Software Update.

OS X 10.5.5

What does it have? From http://support.apple.com/kb/HT2405:

General

  • Includes recent Apple security updates.
  • Addresses stability issues with video playback, processor core idling, and remote disc sharing for MacBook Air.
  • Addresses an issue in which some Macs could unexpectedly power on at the same time each day.
  • Resolves a stability issue in TextEdit that could be found when accessing the color palette.
  • Improves Spotlight indexing performance.
  • Fixes an issue in which contacts might not sync properly with PalmOS-based devices.
  • Improves iPhone sync reliability with iCal and Address Book.
  • Includes improvements to Active Directory (see this article for more information).
  • Improves Speech Dictionary.
  • Fixes Kerberos authentication issues for Mac OS X 10.5 clients that connect to certain Samba servers, such as Mac OS X Server version 10.4.
  • Includes extensive graphics enhancements.

Address Book

  • Addresses stability issues that may occur when creating a Smart Group.
  • Resolves a printing issue with address cards containing information that spans more than one page.

Disk Utility and Directory Utility

  • Improves reliability when rebuilding a software mirror RAID volume in Disk Utility.
  • Improves reliability of server status displayed in Directory Utility.

iCal

  • Updates iCal to more accurately handle repeating events.
  • Improves performance when choosing meeting attendees.
  • Resolves an issue in which the “Refresh All” option may be dimmed (”grayed out”) in the contextual menu for certain calendars.
  • Fixes issues with read-only calendars.
  • Addresses an issue that prevents an invitee from moving an event to a different calendar.
  • Resolves an issue with syncing published calendars.

Mail

  • Addresses performance issues related to displaying IMAP messages.
  • Resolves an issue with SMTP settings for AIM, Compuserve, Hanmail, Yahoo!, and Time Warner Road Runner email accounts.
  • Addresses stability issues that may occur when dragging a file to the Mail icon in the Dock.
  • Addresses an issue with the “Organized by Thread” view in which the date does not appear when the thread is collapsed.
  • Resolves an issue in which RSS feeds could temporarily disappear from the sidebar.
  • Improves Mail robustness when sending messages.
  • Improves reliability when saving drafts that have attachments.

MobileMe

  • Improves overall sync reliability.
  • Improves Back to My Mac reliability.

Time Machine

  • Improves Time Machine reliability with Time Capsule.
  • Addresses performance issues that may affect initial and in-progress backups.
  • Fixes an issue in which an incorrect alert message could appear stating that a backup volume does not have enough free space.
  • Time Machine can now back up iPhone backups that are on your Mac, as well as other items in (~/Library/Application Support).

Updated my Treo 680 to software 2.11

Finally got around to installing the 2.11 update released in December. The coolest new addition is the instant messaging application which allows you to connect to Yahoo, AOL, and Microsoft IM networks.

I haven’t played with it enough to come to any conclusion on whether stability is any better (my phone often reboots when I answer it!) or if the Web browser is any smarter (it doesn’t seem to be very good about using its cache).

Python ternary operator

Today’s Python discovery:

Python doesn’t have the C style ?: ternary operator (e.g.: cond ? valueIfTrue : valueIfFalse).

But as of Python 2.5 it has a ternary operator with its own syntax: value_when_true if condition else value_when_false

For example:

>>> 'a' if 1 == 1 else 'b'
'a'
>>> 'a' if 1 == 0 else 'b'
'b'

This is actually clearer and more Pythonic than that ?:

Unfortunately, for Python versions < 2.5, you don’t have this. I’ve seen people use: (condition and [value_when_true] or [value_when_false])[0]

IMHO, this is clever – in a bad way. Yuck. Personally, I think I’d rather just do:


def if_cond_val1_else_val2(cond, val1, val2):
   if cond: return val1
   else: return val2

This adds 3 lines to your program (or 1 if you stick it in a module that you import from your programs) and won’t cause your colleagues to hate you.

New MacBook Pro Firmware

MacBook Pro EFI Firmware Update 1.5.1 just popped up in Software Update:

MacBook Pro EFI Firmware Update 1.5.1

After installing and rebooting:

MacBook Pro EFI Firmware Update 1.5.1

Next Page »