Friday, December 16, 2005

Another OS X cache related problem

OS X caches cause no end of trouble. This one caused a 'corrupt font' error in Office:
MacInTouch: timely news and tips about the Apple Macintosh

...So you would think it was a file in my home directory. Wrong! The culprit was Apple's system level font cache, which caches fonts by user. Deleting /Library/Caches/com.apple.ATS/(uid)/, where (uid) is my user id (just check with get info if you don't know your id - yours is the one you own) solved the problem.

Thursday, December 15, 2005

Google and Firefox: getting more serious? Two extensions

Google has published two useful extensions to Firefox, one related to blogging, the other to spotting phishing scams. I've installed both. Interesting by itself, but is this an early sign of a more vigorous Google/Firefox collaboration? I don't remember Google previously delivering anything for Firefox before IE.

Wednesday, December 14, 2005

Philip Greenspun's on building a digital SLR system and selecting lenses

Philip Greenspun's Weblog. Phil is a great writer and photographer. I liked his pithy summary comment: "[If you don't want to read this article and are impatient to get started immediately, get a Canon Digital Rebel XT and Sigma 30/1.4 lens.]" and this other emphatic opinion:
... The market leader in the professional/advanced amateur photography world is Canon. If you don't have a major investment in lenses you will probably want to buy a Canon digital SLR. The number two spot is occupied by Nikon, which is also a reasonable choice. Fuji and Kodak have made digital SLRs that accept Canon- and Nikon-mount lenses. Once you get beyond Nikon and Canon it becomes very difficult to rent lenses and the companies that make the more obscure systems don't have a large enough market share to invest enough money to build competitive bodies. Leica, Minolta, Olympus, Pentax, and Sigma are the small vendors in the digital SLR market. Unless you have an enormous investment in lenses for one of these brands the only one of these worth considering for purchase is Olympus, due to its innovative Four-Thirds system, discussed below...
I got an XT with the kit lens, and a Canon 50mm 1.8 lens. I think my next lens though will be the Sigma 30/1.4, then after that a vibration-damped zoom if/when Sigma makes one.

Porting MSN Virtual Earth to an OS X Dashboard Widget

MacDevCenter.com: Dissecting a Dashboard Virtual Earth Widget. Intereting. Now if only the Dashboard was properly implemented! (Widgets should live on te desktop, not in some silly floating layer.)

MySQL on Mac OS X

via AppleInsider, two pointers to open source database work on OS X:

1. OReilly MacDevCenter.com: Managing MySQL on Mac OS X
2. cocoamysql: GUI administrative tool for MySQL

Tuesday, December 13, 2005

A very nice overview of digital photography for OS X

TidBITS: Reality and Digital Pictures is a very practical approach aimed at people who know photography. Any article that begins by setting gamma is interesting (note that a gamma of 2.2 makes the OS X chrome look dull), especially when it continues with a very modern overview of how we perceive the visual world:
Eye vs. Camera -- To begin with, let's dispel the notion that a camera records what the eye can see. It does not and it cannot because a camera functions nothing like the eye. With a lens of normal focal length, a camera records an image with a diameter of approximately 45 degrees. It records the entire image at once and the image ends up as a print with a range of intensity from black to white of approximately one hundred to one. In contrast, the eye sees an area about 180 degrees across but it sees most of this with acuity that ranges from bad to dreadful. It sees sharply just in the central 1 to 3 degrees. To see a scene clearly, the eye must scan it and the brain must assemble the accumulated information. However, the eye rarely has time to sample more than small portions of a scene with its spot of clear vision so most of what you see has no optical source, it is an inference. Your brain infers information largely by generalizing from what it has encountered before. In doing this the eye and brain have to handle contrasts of light that exceed one million to one.
It's only recently that non-specialists have become aware of how much of our visual world is illusory, and how little data our brain has to work with. Fascinating. Think about what happens when you move into an environment that's unfamiliar, such as going from a city to a jungle. How much can the city dweller truly perceive in the jungle? Imagine transition to a setting even more different? What happens to our visual world as our brain ages and becomes less able to make reasonable interpolations of data ...

Update 12/13/05: I posted the above on scanning the article. On deeper reading "very nice" is an understatement. This is the first article I've read that convinced me I'll eventually move to processing raw images, probably to TIFF or PNG or JPEG 2000. It's the most impressive digital photography article I've ever read.

Laptop power adapters for international travel: a series of recommendations

MacInTouch has a series of recommendations on laptop power adapters and international travel that are well worth tucking away. They apply to many devices, not just Macs.
14:00 EST Edward Liu asked for advice about laptop power adapters for use in mainland China, and we got lots of tips:

[Paul Swift] In response to Edward Liu's question about bringing his iBook to use in mainland Chinese hotels, I'm a PowerBook user in mainland China and also know an iBook user here. I originally had bought Apple's international plug adapter kit (I can't remember exactly what it's called), but found that most of the sockets in mainland China work just fine with the American plug. There are pretty much two kinds of sockets here: one that is three-pronged (not like three-pronged American sockets) and one that is two pronged that works with American style plugs as long as they can handle the voltage.
I just plug directly into the socket like I would in America - the power cord that your laptop comes with handles a wide range of voltage. My digital camera power cord works just fine too as it handles wide ranges of voltages. Also my iPod, now that I think of it. The iBook user I know originally also plugged in directly to the socket but didn't feel comfortable after a while and bought a voltage converter for like $15 here.
I don't know about the airline adapter, but I think you'd probably be safe without an international plug adapter - though don't come looking to strangle me if something bad happens! I've been doing it for two years without trouble. This way you could maybe just buy the airline adapter and call it quits. Or, if your Chinese is decent, you could buy a cheap converter here and leave it when you return home thus not having to pack it.

[Ben Bidstrup] Mainland China have several sorts of plugs. They include English ( 3 pin with square pins) Australian (3 pins with flat bladed pins N and A at an angle) and US 2 pin (flat blades parallel). So you have a variety of choices.
As for airlines, Kensington used to do a great power supply which would, work with all airline plugs (cigarette lighter, EM and 110vAC) but that is no longer available. I would look at the Teleadapt which will plug in to seat power sockets and then plug your Mac power supply into it. Note that some airlines (DragonAir for example) have 110VAC at the seats. (Check with any airline as to which seats are powered). Lind also do an adapter. Kensington do a little gadget that will keep the computer running but not charge it (12V DC). Get an Apple Travel plug kit which will give you just about every option for plugs.

[Ken Tidwell]

1. Airplane: Buy at least one extra battery and learn how to best configure your iBook towards power conservation in concert w/your usage habits, and how to maximize the use of multiple batteries. Get into the habit of charging both as a priority, so that the batteries are topped off before you move from one location to another. I sleep my iBook, rather than powering it up/down. I believe this uses less power overall, and if airport security wants to see it work, all I have to do is lift the lid.

2. Hotel: The iBook charger, similar to most Apple products, is auto-ranging (100~240 V)... you simply need the correct adapter, as you seem to indicate. Many hotels will gladly loan you an extension cord if you need one. I don't recommend spending money on one in China you expect to keep after the trip, as the quality is so low as to routinely create hazards. Check that the power outlet you use remains on when you leave the room... notice that many hotels use a key-card that you drop into a slot when you enter the room, and take with you when you leave... this helps to cut the power to devices in the room, and if your adapter is one of them, you will be dissapointed when you come back after dinner and find that nothing has received a charge. Buy extra rechargeable batteries for cameras or whatever, stateside only.

Apple sells a 6-piece 'World Travel Adapter Kit M8794G/A', that I have found to be very handy, as they snap-fit onto the iBook, iPod, etc. chargers. While the smaller two-pronged (folding twin flat-blade) adapter used in the USA will work in many instances, you may need at least two other different adapters and in this case, the Apple adapter kit includes both. Easy to carry.
If you go for other options, know that the current practice in the US, where one blade is tipped wider than the other, will get you into trouble in China. The outlets that do cater to a pair of small thin blades will not usually accept the offset style. Don't bother bringing along anything that uses such a configuration.

[David Babsky] I use a Kensington "Universal 70w AC/DC Power Adapter" - the white one intended for Macs; there's also an all black one meant for PCs. It comes with an airline plug and one or two mains plugs (mine had German and UK mains plugs). Just get one of those "travel adapter" devices sold at airports, so that it can be plugged into any mains socket around the world.
Don't worry about voltage differences: the Kensington adapter works on just about all voltages - 120v, 240v (..as do the ordinary Apple-supplied PowerBook chargers..) and it worls on 12-16v for cars and planes.
Besides a pair of PowerBook connections, both 3.5mm (for the old G3 PowerBooks) and 2.5mm (for current PowerBooks and iBooks) it also comes with a slimline "docking connector" for charging iPods too!
It's sold by online Apple-oriented stores, and Kensington's website offers links to some stores. It costs around 95 Euros in Europe, so that's probably around $95. I have no connection with Kensington; I'm just a satisfied user.

[Bruce Shanker] He should check out the power supplies from iGo Their Juice and various everywhere products include power adapters for airlines and they sell separate connectors from the powerpack to different plug configurations. The Juice 90 and many other supplies come with the plug for the powerbook (S15 or 15 depending on which item is purchased). I have both the Juice 90 and the Everywhere 130. Each has airline adapters. The juice came with the plug for the Powerbook. The Everywhere 130 did not. I also saw adapters that allow foreign connections. The power supplies automatically adjust voltage, etc. They even have adapters that also allow you to charge your cell phone, PDA and other devices.

[Brian Bard]
[See the] MadsonLine Auto Airport Adapter
The Apple white power block is dual voltage; you can use the World Travel Adapter Kit from Apple [or $39.99 at Amazon.

[William Staman] On thing missing from this discussion is a surge protector. I bought a 2-Wire In-Line Laptop Surge Protector which can be force fit between the Apple plug and transformer of an iBook. It's small and is a simple series connection. Radio Shack has it for ~$10.00. [Catalog #: 61-2441]