When is a photocopy not a photocopy?

One of the challenges, when storing or transmitting the image of a scanned multi-page document, is that it takes an awful lot of space. Unless, of course, you compress the data. But how should you do this?

The kind of lossy compression used by the JPEG and MPEG standards is great for photos and movie frames, but not much good for text – it makes the edges blurry. And the hard-edged, often lossless, compression used by things like PNG and GIF is great for text but will do nasty things to any embedded photos or background textures. So how do you handle, say, a typical magazine page, with crisp text, embedded photos, graduated background colours?

In the late 90s, my friend Yann LeCun and others created the DjVu format, which cunningly works out how to split a document up and compress each bit using the most appropriate system, then reassemble them for viewing later. It was particularly good for things like digitising historical manuscripts – it would separate the script from the parchment, deal with them separately and still produce a realistic-looking copy afterwards, but take a fraction of the amount of data that most other schemes would have used; especially important in those pre-broadband days. The same concepts are now in the JBIG2 standard, which is included in PDF and embedded in many devices, including Xerox copiers.

Another way to save space and time is that, once you’ve separated the text and other symbols from the background, it’s fairly easy to see if any symbols are re-used. So you don’t have to store the image of every ‘e’ in the document – you can store a representative sample of each size, font etc and simply insert an appropriate one wherever it is used in the original. All very cunning.

Assuming you get it right.

But this story on the BBC describes how some Xerox photocopiers may not have been getting it right, occasionally substituting incorrect digits in their copies. This can be something of a problem if you are, say, an accountant, or an architect. It’s not clear from this article whether this has ever caused anybody serious problems yet, or just been noticed in the lab, but you can imagine the potential lawsuits…

It’s a potential danger of any technology that reassembles a perfect-looking output, when in fact some data may have been lost since the input. You could save a lot of mobile-phone bandwidth if you noticed that someone had just used the same word that they used a few minutes ago, for example…

Xerox fought hard to preserve their trademark by not allowing it to become a generic verb meaning ‘to photocopy’. But I guess they’d like it less if it came to mean something else.

“Ah, hello, is that my tax accountant? I was wondering if you could…. ahem… Xerox this year’s figures for me?…”

Thanks to Mike Flynn for the link.

Circles of logic

I cycle past this sign regularly:

I think this indicates that all of Cambridge is now part of the Cavendish Lab. I know they’ve been expanding a lot recently, but I didn’t realise they’d got that far.

On the other hand, I may be confused. It’s difficult to keep a clear head when you’re cycling backwards like that.

And the sun stood still

This is pretty cool. Some German physicists have done some awfully clever quantum stuff and frozen light for a whole minute within a crystal. What makes this even more impressive is that they used it to store and successfully retrieve information – a simple image of three light-coloured stripes.

Screen Shot 2013-07-27 at 10.22.03

I think this may prove to be an iconic image in the history of IT, because this technique may enable storage in optical computers in the same way that mercury delay lines did in the early days of electronic computing, before we had RAM.

And wouldn’t it make a great plot device for a Star Trek episode?

More information here – thanks to Anthony Albertyn for the link…

Quote of the day

Today’s inspired thought is from the economist Charles Goodhart. Goodhart’s law states that:

When a measure becomes a target, it ceases to be a good measure.

So close and yet so far…

Degrees of separation

I had fun taking some street photos in Cambridge earlier this evening. It was mainly an excuse to play with a new lens.

20130714-17353295.jpg

I’ll post some more of them here later, or you can check them out on Flickr.

20130714-16431128.jpg

Photoshop CS6 crashes on launch with ‘Participate’ dialog button

This is one of those ‘just in case anyone is Googling for it’ posts. Non-Photoshop users can skip…

My shiny new copy of Adobe Photoshop CS6 suddenly started crashing after just a few uses. On startup, it would display a blank dialog with only a ‘Participate’ button, which didn’t work.

Screen Shot 2013-07-14 at 09.50.40

I trawled the web and found that I was far from being the only person with this problem. I discovered that, somewhat ironically, this is supposed to be a window inviting you to sign up to Adobe’s ‘Product Improvement Program’. Mmmm. And a suggestion that the problem is a second dialog which appears behind the first so neither can be clicked. But I didn’t find a direct solution I could use.

However, a post by Chris Cox in this thread mentioned a Preferences file which might affect it. It’ll be named something like:

~/Library/Preferences/ByHost/com.adobe.headlights.XXX.plist

where XXX will vary depending on your installation. ~/Library, in case you don’t know, is the Library folder within your home folder. This is hidden by default in the Finder, but if you hold the option key down and select the ‘Go’ menu, you can select Library from there.

Anyway, open that file with a property list editor. I used XCode, but something like PrefSetter should work too. I burrowed into CS6Headlights > Adobe Photoshop CS6 where there was a ‘LaunchCounter’ variable. I’m guessing this is something to do with the number of times you can run the app before they ask you to participate.

Screen Shot 2013-07-14 at 10.05.23

But setting it to a lower number (I think I went from 5 to 2), saving and quitting XCode and then starting Photoshop brought my world back to life. I was then able to go the the Help menu where you can set your Product Improvement Program options.

Screen Shot 2013-07-14 at 10.04.44

After doing that, various bits of information were also stored in the .plist file under ‘CS6’ about my opting in or out, so if the above fix doesn’t work you might like to investigate those.

Screen Shot 2013-07-14 at 10.25.33

Hope this helps others out if they find themselves in the same state!

Brainy precautions

SpocksBrainThe aliens want to steal your brain… I think that’s fairly well established by now, but how to recognise them is less certain. Douglas Adam fans would assert that it’s the white mice you should be fearful of, while the followers of Roddenberry are more concerned about the delicious young ladies of Sigma Draconis VI.

In either case, it’s best to be prepared for all eventualities, and what better way than to have a spare brain you can hand over when requested? With a bit of luck, the aliens will be content with that, and leave you to boldly go about your other business.

My friend Richard has already got his. Here’s how he did it.

© Copyright Quentin Stafford-Fraser