Sunday, August 15, 2010

The hidden ever growing iTunes photo cache bug

There's a design flaw/bug in iTunes. When it syncs photos to an iPod or iOS device it creates a photo cache folder. That folder never shrinks, it only grows.

That's merely annoying on the desktop, but it does the same thing in iPhoto. To purge the cache you have to delete it, which requires opening the iPhoto image Package..;
iTunes: Photo sync creates iPod Photo Cache folder
... Control-click the iPhoto Library file and choose Show Package Contents from the shortcut menu.
In the iPhoto Library window, locate the iPod Photo Cache folder and drag it to the Trash...
My hidden iPhoto cache was 1.5 GB.

How exceedingly annoying. 

iPhone for kids: The Achilles Heel

For one brief shining moment I thought Apple had a good kid platform ....
Gordon's Tech: The kid's iPhone - configuration and AT&T
...As a computer, his iPhone has one large advantage over his desktop accounts. On the desktop Apple and Google together have totally broken OS X Parental Controls (MobileMe is the worst). On the iPhone, once you remove Safari and YouTube, you have Wikipanion and and Wolfram Alpha and Google Earth and Public Radio.app and New York Times.app...
That was before my intrepid 13 year old tutored me.

The problem is that a lot of iPhone apps use WebKit, and blocking Safari doesn't block WebKit.

So Google Earth has a Wikipedia layer. Click on the W icons, and it launches WebKit. Click around a while, and eventually you get to places I don't want my kid to go.

Scratch Google Earth.

AppBox Pro has lots of little tools he might like -- but it also includes iGoogle. (Why? Don't ask me.)

Scratch AppBox.

Wolfram Alpha looked good. Math, research, but no web. Oops. Except for the "Search the web" link at the bottom of every page that opens an embedded WebKit page.

Scratch Wolfram Alpha.

Houston, we have a problem.

Update 10/4/10: Google's AdMob ads give YouTube access from Pandora.

Saturday, August 14, 2010

Location sharing on iPhone: Latitude, PlaceTrack and Latitudie


With iOS4's support for background location sharing, I wondered when we'd see something like Latitude. (MobileMe also enables location tracking, but you can't share that information.)

About two months ago ago PlaceTrack tried to do this. Had it been accepted by Apple it would have updated Google's Latitude service. Unsurprisingly, since it's a Google-related product, it was rejected (limbo technically).

Yes, the Google-Apple war sucks.

Surprisingly, there's another App that updates Latitude - Latitudie. I wonder if it was accepted because it was first submitted internationally. It's $2 and has had mixed reviews. It it had better reviews, or if some geek I trust used it, I'd give it a try.

Gowalla shares locations, but it doesn't integrate with Latitude. It also has an annoying business model.

At the moment I'm most interested in Latitudie. I'm wary of putting it on my phone though -- I'd like to read a review from someone I trust.

Configuring iTunes to reference apps from a shared folder

9/25/10: With the latest release of iTunes it doesn't work any more anyway, you no longer get the prompt to find all your missing apps at once. So never was safe, and now doesn't work at all. Retained for historical purposes, plus it has some interesting links and a FairPlay discussion.
---
Oops. Don't do this, it causes iTunes to put every app on every phone synchronized with the share. Evidently iTunes writes metadata into the app file! I wonder if it's an extended attribute on OS X. A terrible design!
----

Sharing DRMd (FairPlay) material, such as videos and iPhone Apps, in a family is fraught. It's technically complex, and it's commercially complex. Rights holders, for example, probably want a BrainLock implant for every customer, so only one person can ever hear an iTunes song.

Given the commercial issues, Apple's FairPlay licensing is surprisingly generous. Wikipedia has the best (only?) summary, though since they're describing music it's obviously dated (Apple store music is rarely DRMd now) ...

  • The track may be copied to any number of iPod portable music players (including the iPhone).[2] (However, each iPod/iPhone can only have tracks from a maximum of five different iTunes accounts)
  • The track may be played on up to five (originally three) authorized computers simultaneously.[2]
  • A particular playlist within iTunes containing a FairPlay-encrypted track can be copied to a CD only up to seven times (originally ten times) before the playlist must be changed.[3]
Fraser Spiers' iPad educational project shows how this works for apps. He configured five authorized computers and one master iTunes account, so all the apps could be distributed to a large number of iPads. (I assume Fraser compensated the App developers somehow as this is a bit outside the usual scope of distribution.)

FairPlay may be generous, but iTunes really expects a single user. Even if every user on a computer shares a single iTunes account (ex: Dad's account), each has its own content collection. With iTunes 9 Apple enabled a sort of sharing, but it requires physically copying files.  Even in the days of TB drivers this can be wasteful.

When it comes to Mobile Applications (.app) this is particularly annoying. Each user's apps get updated separately for example [1]. So if Emily and I share the 1.5GB NAVIGON.app we each have a copy, and each copy is updated separately.

On the other hand, if you have every device sync to a single iTunes, users can't sync to their individual iCal or Address Book and content ratings and Smart Playlists become a bit of a struggle (ex: "last played" rules assume only one listener!). So in the old days many of us geeks gave each iPhone user in the family their own account. We used tricks like iTunes music 'include by reference' feature and its amazingly versatile drag-and-drop media behavior to sort of work around these limitations.

Now that most of sync to Google Apps via Active Sync rather than directly to our desktop accounts it really makes most sense to sync every device to one account (screw ratings). I'm doing that for the kids, but Emily still has her own account. Thanks to the 'include by reference and media drag and drop' technique we do ok with media, but Mobile Apps don't support include by reference. You have to copy them. So I've been using Apple's Family Sharing for apps only; it monitors additions to the master iTunes Library and copies the apps to her iTunes Library.

This had an annoying side-effect that all of our App updates had to be done twice, but when I bought the 1.5GB NAVIGON turn-by-turn GPS app things got really annoying. For geeks of my generation, 1.5GB is a lot of storage to waste (including backup of course).

I tried various tricks to get her iTunes to reference Mobile Apps stored on a Public Share on the computer that holds both our accounts. I tried Aliases and a I tried Symbolic Links to both apps and to the Mobile Application folder. Nothing worked ... until ... by chance ... I stumbled on what did work.

This is what I do now.

First I install apps to her account normally. Since we have Family Sharing setup anything I add to my account will be added to her account.

Then I did something like this (To be honest, I need to play with this a bit more, but if you're a geek this is all the hints you need. My apps are stored in a shared folder for which she has read/write privileges. If you're not a geek you shouldn't be reading this.):
  1. In her account, move her .app files OUT of her iTunes Music:Mobile Applications folder.
  2. Start iTunes for her, and right click on any of her App icons in the App view. I choose 'Get Info'. The App gets an exclamation mark next to it and ITunes asks if I want to locate the file. (Maybe I double clicked on the exclamation point?)
  3. Choose Show In Finder (or ?). iTunes asked me where the file was. I navigated to the file in the shared folder on MY account and it accepted it. iTunes then asked me if I wanted to use the same path to update all other missing apps
That did it. Emily's iTunes now includes my Apps by reference instead of copying them. I only do one set of updates, and NAVIGON.app appears only once. Please note I'm not getting any extra privileges from doing this, I'm just saving disk space and update time.

All I need to do is periodically clean up her Library, update mine, and repeat this trick.

See also
[1] Now that some App updates are iOS 4 specific, this ability to choose when to update may be a feature, but not I'm really getting complicated.

Friday, August 13, 2010

Blogger: a heartfelt cry of anguish about their rich text editor

I know it's pointless, but I had to vent. I posted this in Google's Blogger feedback forum ...
Please fix paragraph definitions. Please, please, please. - Blogger Help 
I've been using Blogger for years. Ever since you moved to using embedded styles in the new editor it's been a misery to use. I won't bother with the details, because if you're not seeing the issues every day you're not bothering to do QA. (If you want to start doing QA, try editing old posts, try using blogthis! on a mac, try editing with Windows Live Writer, etc. Or just hire me to run your QA program.)

It's driving me stark, raving, mad.

Something is really wrong. Something that can't be fixed with a few patches and hacks. You need to drastically rethink your rich text editor strategy, starting with how the editor manages paragraph definitions and then reconsidering the entire approach to style sheets.

For the moment, given where you are in the product life cycle, add a button that removes all styles completely and reformats using only data elements that the rich text editor is able to manipulate.

And, if you have been doing QA, and you don't know about these issues, please fire the SVP for QA.
I need stronger drink.

--My Google Reader Shared items (feed)

Thursday, August 12, 2010

Buying a printer for our home - curiously difficult

I've been fond of our giant-sized five year old Brother MFC-7820N black and white laser printer, scanner and fax machine. It was never as rock solid as our LaserWriter Select 360 (20+ year lifespan if you could find cartridges), but by the standards of 2005 it was a gem. The competition was dismal. HP combined hideous hardware with worse software, and the device drivers for Epson and Canon devices were almost as bad.

The 7820N has come to the end of days though. It jams easily if the paper tray is less than half-full, and the web-based diagnostics [1] tells me the internal print engine is nearing end-of-life. It needs to be replaced. That turns out to be trickier than one would imagine.

It's tricky for several reasons. Printers have been clobbered by ink jet technology churn [1], premature maturation and commoditization [2], brand loss [3], and technology transition (more on that). OS X users have the further problem of very poor device driver support -- you don't want to use anything that doesn't ship with OS X [4].

The technology transition is having a strong impact now. Apple doesn't sell black and white or color laser printers any more and iOS devices like the iPad and iPhone, the future of personal computing, don't print at all. Google's ChromeBooks to come are struggling to print.

Looking at this marketplace in transition it's clear that I need to go as simple as possible. That means black and white (grayscale really) laserwriter with a good record of reliable cartridge availability, long product life cycles, and OS X 10.5 "native" device drivers [5]. That will probably be another Brother printer. I'll also be looking for quiet operation and compact size.

For now I'll put our old MFC into the basement and use it as a standalone fax machine [6] and photocopier. If we keep the paper tray full it should work for years like that, and the occasional jam will be tolerable.

The upside of this transition is I can finally attack the scanning problem with a machine that's designed for producing B&W PDFs off a paper feed. The MFC vendors were never going to provide a good solution for a market as small as this one.

I'll update this post with what I choose, but it's probably going to be the Brother 2170W or  Brother HL-5370DW. Size, cartridge cost and availability, and native OS X support will probably be the determinant (price is almost irrelevant really) - so I'm betting on the 2170W or non-networked equivalent. Given issues with wireless security and peripherals I suspect it will end up being connected to a USB port on a Mac or AirPort Express/Extreme (back to the future!) but it may be useful to have other options.

Note that all laser printers come with "starter cartridges", so after initial testing you need to order a cartridge separately.

Update: I ordered the $80 Brother 2140, the same device I bought for my mother last year. It was $50 less than the 2170W. I used the money I save to order an Airport Express (I gave my old AE to my mother). So for $40 more than the 2170W I get to extend my LAN coverage and I get optional AirTunes support. It uses the very standard and widely available TN360 cartridge and has had native OS X driver support for many years.

Update 8/18/10: Installed the 2140. I didn't bother with Brother's software except to copy the manual to my "reference" folder. I ended up just attaching it to a G5 iMac which is now a print server; the Airport Express wasn't necessary. My 10.5 and 10.6 machines used native drivers. Painless - as expected.
-- 
[1] A miserable technology. It has never worked reliably, and a dying HP trapped the industry into a disposable printer and costly cartridge hidden-price business model.
[2] There's no real reason to go beyond 300 dpi, and that was achieved fifteen years ago. Color would be nice, but we still can't do it well at consumer price points -- and the market has lost interest. In a high tech industry reaching this kind of peak is a problem.
[3] Brands became meaningless and quality plummeted. This afflicted all parts of the computer industry from 1998 to 2008 with one notorious exception.
[4] See my links below on why device drivers are so bad everywhere. In OS X the small market and Apple's complete disinterest made things worse. I think with 10.6 bundled device drivers are tolerable, but you don't want to depend on a manufacturer for drivers.
[5] We still print from a 10.5 machine.
[6] The zombie technology that won't die. Sort of like Adobe Flash but worse.

See also:

Other stuff
My stuff

Wednesday, August 11, 2010

iPhoto unable to import an Aperture JPEG from 16 bit image with grayscale profile

I've just run into a very irritating bug with Aperture 2 and iPhoto 8.1.2.

I scanned a B&W image in as a 16 bit grayscale TIFF. I can edit it in Aperture and I can import the ORIGINAL tiff into iPhoto. I can edit the original in iPhoto.

The problem comes when I export a version as a JPG from Aperture. iPhoto can't import it, though it renders without a problem in Preview!

Grrr.

The only way I was able to get a JPG version [1] of this image into iPhoto was
  1. Edit in Aperture. Export TIFF as 8 bit image.
  2. Import 8 bit TIFF back into Aperture. Export JPEG.
  3. Import JPEG into iPhoto
So iPhoto can handle an 8 or 16 bit grayscale TIFF, but it can't handle the JPGs that Aperture 2 creates from a 16 bit TIFF.

I wonder if this is related to an old iPhoto 6 grayscale bug (iPhoto 8 grayscale inverted, iPhoto 5 version of this bug)...

Update: This is indeed a version of the 5 year old bug referenced above. Instead of fixing the bug, Apple's iPhoto engineer simply blocked import of these images with a cryptic error message. Got the problem solved in record time. He had to use a cryptic error message, or customers would have figured out what was going on.

This is from the Silverfast forum ...
... had this problem and "solved" it. iPhoto is designed to work with RGB images. You can import B&W images into iPhoto, but they need a supported color profile to be able to be read. Most scanners will default the scan of a B&W photo to a Black & White Color profile, rather than RGB. 
If you are using a real silver halide film designate the file as Color of some type before you make your scan. Then you will have no problems. Go to Apple.com > Support > Discussions > iPhoto '09 > Installing and using iPhoto '09 Topic: Interesting iPhoto "unrecognized file" issue. Before I learned of this solution, there was unimaginable frustration.
In Aperture I set the color profile to Adobe RGB on export and iPhoto accepted the JPG.

$%$#!%$%$#%@#$%@ lazy Apple.

It's Alive! Blogger lives!


Now they've introduced their first significant feature change in years.

Blogger has graduated from "Walking Dead" to at least "Sick". It lives.

Now if Google does a mobile version, and gets their greatest geniuses to fix new-editor paragraph spacing (including in the #$!$# blockquotes) and style vs. inline formatting bugs, I'll move it to "Quick".

In honor of Blogger's resurrection with the new comment filtering, I've disabled moderation and captchas on this blog. We'll see how it works!

Monday, August 09, 2010

The kid's iPhone - configuration and AT&T

I thought it would be simple to give my kid my old 3G. I knew it was AT&T locked, but the phone was out of contract.

Turns out the contract rules are much trickier than I'd thought. They are so tricky even AT&T reps violently disagree about the rules. As near as I can tell it didn't matter that I'd paid off the subsidy for my iPhone. I was getting a new iPhone 4 and a new contract, and that ended AT&T's interest in my particular phone.

What seems to be more important was that he didn't have a contract; he'd never had a subsidized phone. So putting his GSM card in my iPhone didn't trigger a mandatory data plan. So far. Grrr!

Thanks to AT&T managed account policies he can't use any data services. When he's in a WiFi setting he gets net access, outside the home he has texting and standalone apps. For very good reasons we've locked out Safari, YouTube and App Installs. He can't purchase music.

His synchronization setup is described in a separate post. We don't use MobileMe (so broken), his Calendar, Contacts and Mail connect via ActiveSync to our Google Apps family domain. I sync selected apps, music and television/movies from our family account. All of the apps, even the games, serve an educational purpose. So he can watch hours of TV, but it's all Blue Ocean documentary. There are good reasons for this.

He loves his iPhone. He's very careful with it, as he was with his prior phone. Obviously things will be trickier when school starts. It's not substantially more costly than many other phones, but it may have more theft appeal.

As a computer, his iPhone has one large advantage over his desktop accounts. On the desktop Apple and Google together have totally broken OS X Parental Controls (MobileMe is the worst). On the iPhone, once you remove Safari and YouTube, you have Wikipanion and and Wolfram Alpha and Google Earth and Public Radio.app and New York Times.app. It's an approach with a future.

See also:

Friday, August 06, 2010

iOS 4 still has iOS 2 text truncation bug

This is an ancient bug, but it's not fixed in iOS 4.
Gordon's Notes: iPhone 2.2: Great phone. Great toy. Not for business (2008)
... Business people always stick travel itineraries into calendar item notes. I stick text versions of CVs into Contacts. The iPhone truncates the text display of my itinerary (what hotel?) and my contact note. It doesn't actually truncate the data, only the display....
I just tested on my iPhone 4. If anything it's worse. The calendar notes view shows only a part of the text. In edit view you see more when you scroll down, but it's truncated now.

Sad.

FileMaker Go for the iPhone

I'd given up on it, but FileMaker has now released a $20 FM Pro companion for the iPhone (and iPad!) -- FileMaker Go. It requires iOS 4. The available documentation is in a technical brief.

It does NOT support synchronization. You copy FM 7 (7!) or later files to the iPhone. It can be a client to a FM server database. From the tech brief it looks like it could be an application development environment (scripting).

It does NOT support encryption. Your data is only as protected as the phone itself; you can't assign a secure password to your password database, for example.

If it had encryption, I'd buy it.

Thursday, August 05, 2010

Pairing an iPhone 4 with an Apple bluetooth keyboard

For the past two years I've been looking forward to using an external keyboard with my iPhone, much as we used to use an external kb with our Palm devices. I now have an iPhone 4, so I tried pairing it with my 27" iMac keyboard (already paired with the iMac).

I followed this user guide procedure, but it didn't work at first:
1. In Settings, choose General > Bluetooth.
2. If Bluetooth isn’t already turned on, tap the Bluetooth switch.
3. Press the power button on the Apple Wireless Keyboard to turn it on.
4. On iPhone, tap the entry for the keyboard under Devices.
Once the keyboard is paired with iPhone, it connects whenever the keyboard is within range (up to 30 feet). You can tell the keyboard is connected if the onscreen keyboard doesn’t appear when you tap in a text field.
The iPhone Bluetooth settings simply showed the spinning "wheel" next to "Devices" and the phrase "Now discoverable". I think the problem was that the keyboard was already paired to my iMac. My Bluetooth peripheral experience is limited, but this seems a sensible if inevitably confusing behavior.

It took a while to get things to work. At one point the iPhone said it found a "Wireless Keyboard" but not an "Apple Wireless Keyboard". I did the following (not all necessary I'm sure):
  1. Went very far away from my iMac and down a flight of stairs. In my house Bluetooth really reaches.
  2. Removed batteries from kb and reinserted.
  3. Followed above procedures but pressed and held the power button until it went off.
  4. Pressed the power button on the kb until it started blinking.
Then the iPhone found the keyboard. I tapped the entry and was asked to enter a code on the keyboard.

They then paired.

Once the two are paired the iPhone's keyboard no longer appears when the kb is in range. I turned off Bluetooth to get it back.

To repair the kb to my iMac I again held the power button until it powered down. Then I held it until it restarted and began blinking. It then reconnected.

This was trickier than I'd expected, but now I know it works. I'll be looking for an iPhone specific bluetooth keyboard that includes a cradle to hold the iphone, an iPhone-touch-screen compatible stylus to facilitate interaction with a mounted device, a form fact that is more compact than Apple's kb, and an optional charger.

Update: A bit more on unpairing from Apple's excellent iPhone iOS4 user guide (it's on my Reader.app bookshelf in my iPhone and it's a default shortcut in Safari on new installs):

Once the keyboard is paired with iPhone, it connects whenever the keyboard is within range (up to 30 feet). You can tell the keyboard is connected if the onscreen keyboard doesn’t appear when you tap in a text field.
Switch the language when using a hardware keyboard: Press and hold the Command key, then tap the space bar to display a list of available languages. Tap the space bar again to choose a different language.
Disconnect a wireless keyboard from iPhone: Press and hold the power button on the keyboard until the green light goes off.
iPhone disconnects the keyboard when it’s out of range.
Unpair a wireless keyboard from iPhone: In Settings, choose General > Bluetooth and tap the entry for the keyboard under Devices, then tap “Forget this Device.”

Wednesday, August 04, 2010

iOS 3 bug with recurring Exchange meetings changed in iOS 4.

Apple just can't manage to get this one right. I tested an old iOS Exchange Server calendaring bug with Outlook 2007 and Exchange 2007.

In iOS 3 if you declined an instance of a recurring meeting you removed all the meetings from your calendar.

In iOS 4 if you decline an instance of a recurring meeting you remove it from your iPhone calendar (good) but not from your Outlook calendar (very bad).

Fail.

Deep sigh. Apple does not deserve its reputation for "quality". Design yes, quality no.

I'll retest with iOS 4.1 when it's out.

Annals of Adobe evil - writing into track 0

I found this occult discussion when searching about encyrption utilities (TrueCrypt in this case) and drive repair (Spinrite) ...

STEVE [GIBSON]: It turns out that another Adobe utility - I don't know what it is with Adobe and track 0. But it turns out that he's learned that their acrotray.exe utility, which is some sort of something that lives down in the tray of Windows, is also writing into track 0 and wiped out TrueCrypt. He rebooted, and he typed in his password. Nothing happened. And he said he saw his life pass before his eyes. Then he realized, wait a minute, I've got that CD. So he booted from the CD. It was able to, of course, restore that track and the boot track, and he was able to get back into Windows. And again, by juggling back and forth a little bit, he figured out what it was that was causing the problem. And so this is two different things now from Adobe relative to, I guess to Macromedia. Or I think Macromedia was the other one. And so it's something DRMish that Adobe is doing is really causing problems. And he did do some browsing around and confirmed that lots of other people are having the same problem with Adobe's software and its collision with the TrueCrypt bootloader.
Writing to track 0 as part of a DRM process is really nasty.

This is the sort of thing that makes geeks want Adobe to go away.

Monday, August 02, 2010

Take Control of Permissions in Snow Leopard

I really wanted this book about six months ago, when I was fighting a losing battle with OS X permissions (they suck) - Take Control of Permissions in Snow Leopard by Brian Tanaka.

It has sentences like this (emphases mine) ...
When a new file or sub- folder is created, the ACL of the enclosing folder is inspected for rules (ACEs) that are marked to be inherited, and those rules are added to the ACL of the new file or folder. ACL inheritance is static—it happens only when the file or folder is created. If the ACL of the enclosing folder changes, the ACLs of items already in the folder will not reflect those changes: only new child items will inherit the new rules.
Permissions are the weakest aspect of OS X. The default framework was archaic in the 90s, and the only slightly less archaic "modern" ACL framework has no GUI tools. All Mac geeks need this book.

It's normally $10, but I got it for $5 since TidBITS is promoting their new customer management system. (Sale ends 8/3, sorry.)

If you're a former TidBITS user you need to do a password reset to get your new password.

The details are in an email you probably deleted. I had a devil of time figuring out how to Login, turns out the "Login" text in top right is not a description for the neighboring navigation drop down, it's an atypical button. Really, they needed to make it either a true button or a true link, not bold formatted text. I love TibBITS, but really guys ...

Anyway, you need the book.
--