Tuesday, January 06, 2004

Macintosh iLife: iPhoto Links

Macintosh iLife: iPhoto
Nice collection of iPhoto links and digital photography resources.

Panther and Journaling: Carbon Copy Cloner and reformatting system disk

Apple - Discussions - Panther: iPhoto freeze, black screen of death
Based on the hypothesis that the primary problem is a disk defect not detectable by Apple's disk utility, I did the following.

1. Formatted my iPod as HFS (journaled) and used CarbonCopy Cloner to clone my iBook drive to the iPod. Repaired privileges before and after.
2. Booting from the iPod I erased and formatted my iBook drive (not just the volume, the entire drive) as HFS (journaled) including OS 9 drivers.
3. Used Carbon Copy Cloner to clone iPod to iBook drive. Repaired permissions -- this time some major (.core) privileges were repaired. Ran Disk Repair again, as usual no problems.
4. Restarted from iBook and tested. Found the icon for the CD/DVD system preferences was missing though the preferences worked. Switched users and the icon was back, so I located the cache for the System Preferences in usr/Library and deleted it. This restored the icon. Unsettling!
5. Restored the iPod (reset to factory, then applied iPod updater then synched with iTunes).

A few preferences did not make the round trip -- which is again unsettling. The power preferences, for example, had to be reset.

If I were to do it again, I'd like to see if I could install a basic version of Panther to the iPod w/ CCC, but do my cloning to a sparse disk image and restore from the sparse image. Given my experience with sparse disk images on an SMB share I could actually put the sparseimage file on an SMB share and use the iPod just for booting.

I've done some preliminary testing and not experienced the problems seen earlier, but I need to use the system a lot more before I start to trust it.

At this point I still suspect the problem is switching to journaling on a file system first formatted under OS X 10.x then subject to various lockups, repairs, crashes and severe file fragmentation through 10.1 to 10.3. (However the S.M.A.R.T test shows valididated, so the disk mechanism appears intact.).

Dry Creek Photo: ICC profiles to get great results at Costco and other digital print vendors

Dry Creek Photo
We offer a database of freely available Fuji Frontier and Noritsu digital printer Icc profiles for mini labs everywhere.  In the US, these include most Costco, Wal-Mart, and Ritz Camera locations, among others. If your local Frontier or Noritsu lab is not listed in our database, download and print our profiling target. We will build a basic profile for you at no charge.

You can use these profiles to get the best color fidelity from your digital prints.

Great stuff, especially for Mac users. Most printers are set for standard PC gamma and other settings and print Mac images as somewhat dark. I will try this out.

Sunday, January 04, 2004

Panther's Best: Sparse Disk Images on an SMB share

Apple - Discussions - Disk Images on an SMB share
Other than a more robust file system, the single best feature of Panther for my purposes may be the ability to host a sparseimage (sparse disk image) on an SMB share. Jaguar did not allow sparseimage nor regular HFS+ disk images to be mounted when hosted on an SMB share unless the images were quite small.

[Addendum 1/9/04: From a MacDev article - FileVault uses sparse image -- "FileVault uses a special disk image format: USDP or SPARSE. These files have a .sparceimage extension. Their specificity is that the resulting volume expands as needed to accommodate more data without requiring you to manually create a new image and copy data back and forth -- or requiring the system to do so."]

Using Disk Utility one can create a sparse image (not a read/write image) on a local drive or a share, including an SMB share. The file created has the extension "sparseimage". The size one specifies in the create image dialog is the MAXIMUM size, the actual file created is quite small -- about 4MB where the maximum size is DVD size (4.7 GB). Even over an 802.11b WLAN connection it only takes a few minutes to create and format the image.

Once the image is created and mounted one can copy files to it. I experimented with copying a 500MB iPhoto Library to the disk image. The sparseimage file grows only as needed to incorporate the added files, so the physical file grew 500MB after copying. (The Finder reports 4.2GB free, as far as the Finder knows this is a 4.7GB disk.)

The image can be quickly mounted and dismounted. Using a G3 iBook and a slow 802.11b connection the 500MB sparseimage (4.7GB capacity) mounts in seconds.

Once mounted it is accessed like an HFS+ share. Using iPhoto Library over the effective 2mbps (802.11b) connection I loaded the 500MB library into iPhoto 2.0. Access was quite fast with a delay of a few seconds when displaying a full screen image for the first time. I expect there'd be no perceptible delay on a 100mbps wired LAN.

Why is this so valuable? SMB storage is very cheap. Any ancient box running Win2K and some dirt cheap IDE controllers easily host 5 or so inexpensive 120GB drives. Unfortunately the OS X SMB client cannot take full advantage of this. Problems with character encoding and perhaps permissions mean some HFS+ data cannot be placed on an SMB share. In particular iPhoto 2.x libraries, which can require a large amount of storage, cannot be moved to an SMB share. (If you try you will get messages that some files cannot be copied.) They can, however, be quite safely copied into a disk image on an SMB share. One might consider the same approach for iTunes, though I've been hosting my iTunes files on an SMB share using the standard approach without known problems.

The main drawback is backup. If one is doing backup via the SMB host then changing a single bit in a file on the disk image will alter the disk image. Even the kind of disk based backup I use [1] will run out of space. I will probably exempt the disk image from my standard backup and just copy it weekly to my backup store, while doing monthly DVD burns of the sparseimage to provide serial backup. I will experiment with Retrospect server to see if Retrospect will do a file level backup if I simply leave the image mounted on my laptop overnight.

I await reports from other experimenters!

john
jfaughnan@spamcop.net
www.faughnan.com/ibook.html

[1] http://www.faughnan.com/backup.html

meta: jfaughnan, jgfaughnan, OS X, diskimage, disk image, sparse image, sparse disk image, SMB, windows, share, network, iPhoto, backup, server, storage management, Panther, 10.3, 10.3.2

Saturday, January 03, 2004

Running older games in XP: Broderbund

Broderbund Customer Support - Tech Tip: Running Programs in Windows® XP Using Compatibility Mode"
Very well written, a nice reference for managing games w/ XP. I am awed by how well XP handles ancient software.

Panther calculator - take two

Mac OS X Panther (10.3.2): "Re: Hidden capabilities in the Panther Calculator

Russell Stephany
In response to 'Hidden capabilities in the Panther Calculator' by Norman Palardy, adding these plug-ins can also be accomplished by using the 'plug-ins' section of the Get Info window. The only unusual thing is that you must click the 'open' button (or, presumably, double-click) when on the .calcview folder.

There is also an rtf file in the ExpressionSheet.calcview/Contents/Resources/.lproj with information about the expression syntax.


Michael Merwin
The tip from Norman Palardy 'Hidden capabilities in the Panther Calculator ' prompted me to look more closely at the calculator and to discover its conversion capabilities including currency conversion with an update feature which takes into account the fluctuation of the dollar on the world markets. "

Thursday, January 01, 2004

More recommendations on the care and feeding of LiOn batteries

iPod Battery FAQ
Q: What is the best way to handle charging/discharging/storage of lithium ion batteries?

... Lithium ion batteries are good for 300-500 charge/discharge cycles. A 'charge/discharge' cycle generally consists of an extended charging period, and an extended discharging period. A quick charge, listening for 30 minutes, and charging again, for example, does not constitute a full 'charge/discharge cycle', but could rather be considered a portion of one.

Also, many, many factors affect how much you get out of each charge, as well as how long the battery will last overall. The main factors include charging patterns, the routine amount of discharge (i.e., Do you use it until it dies? Use it for an hour or two and recharge?), temperature, storage, usage frequency, etc. Lithium ion batteries do not take kindly to frequent full or complete discharges. When possible, the optimal usage pattern - for any lithium ion battery - is a partial discharge, followed by recharging. A partial discharge can be anything less than a full discharge. However, an occasional full discharge is desirable (e.g., once every 30 charges) to calibrate the battery. Lithium ion batteries do not significantly degrade, or develop 'memory', even if charged at irregular intervals; irregular charging is acceptable. An iPod can also safely be attached to external power for extended periods of time. (For extremely extended periods of time, such as months, the battery will essentially be the same as if it were in 'storage'; lithium ion batteries do not store well for extended periods of time at full charge. However, there is no way around this under these circumstances.) When possible, always use the AC adapter (or vehicle adapter) for extended charging, not a FireWire cable attached to a computer.

If you will be storing your iPod for an extended period of time (i.e., weeks to months), it is recommended to store the unit in a cool place at about 40% charge. The most harmful combination for storage is full charge at high temperature (i.e., in a hot car for a couple of weeks).

This matches everything I've read and practice. I think it's equally true for an iBook. My sense is that only SONY truly has true mastery of LiOn batteries -- they developed the core technology and I suspect they may have some unique patents or skill with them -- Apple and PalmOne are not in teh same class.

I try to run in the 40-100% charge range. It's good to know however than an iPod can be happily left in its powered cradle -- assuming the cradle is connected to the wall charger.