Category Archives: General

Specifications

I’m reading a book edited by Joel Spolsky and came across this nice footnote:

This reminds me of my rule: if you can’t understand the spec for a new technology, don’t worry; nobody else will understand it either, and the technology won’t be important.

Mac OS X and Subversion

Non-geeks can skip all of this!

Subversion is a very nice version-control system which fixes many of the problems with its predecessor, CVS. You can use, for example Martin Ott’s packages to get an up-to-date copy for your Mac. There’s some support for it in XCode, and in general it works very nicely on the Mac as long as you don’t mind using the command line. I haven’t found a Mac GUI for it yet that I like; the best is SvnX and frankly, that’s not saying much, though I applaud Dominique Peretti for doing something.

Anyway, there is one thorny issue on the Mac. Many things which appear to be files in the Finder are in fact directories – ‘bundles’, they’re officially called. In the past, they were mostly just used for applications, but an increasing number of document formats are now bundles as well. Apple’s Pages and Keynote packages are examples.

When you check a directory tree out of Subversion onto your local disk, a hidden ‘.svn’ directory is created in each directory in the hierarchy. That’s where subversion keeps its stuff. Having this in a document bundle does not upset an application; they normally just ignore it. But some apps assume (reasonably) that they’re the only ones interacting with the bundle. If you open a document in Pages, change something and then save the doc, it will overwrite the directory with a new one and in the process delete and .svn directories within it, which will confuse Subversion if you then try to check it back in. The latest version of Keynote doesn’t do this; it reuses its old directory, but it’s unusual in that respect – most things which create bundles will cause a problem if that bundle is managed using Subversion.

There are manual fixes for this (see ‘Things to watch out for’ at the bottom of this page, for example), but it’s very inconvenient if you do this often. Especially if your bundle includes multiple subdirectories because you’ll need to do it for each one.

Probably the right way to fix this is for Subversion to be able to view certain directories as untouchable, and store the information about them within the .svn directory of the parent. An alternative would be to tar and un-tar all such directories behind the scenes and check them in and out of the repository as if they were a single file. I discovered a thread from about three years ago discussing this, but I don’t think anything was done.

I’m really hoping that Apple, having made a major step forward in file systems by making them searchable, will be the first to introduce decent version control at a fundamental level. Well, the first since VMS, anyway.

Interesting patents – the Munch Box

munch box

Here’s one I came across by accident. In 1979, Susan E Brownlow patented a small ‘cool box’ in the shape and size of a cigarette packet. There’s a removable section at the bottom which you can put in the freezer, and the box is insulated so that you can carry it in your pocket and the contents are kept cool.

The motivation? People giving up smoking need something to chew on which doesn’t include too many calories. Carrot sticks are apparently good. But how do you carry carrot sticks around with you all day and keep them fresh and crunchy?

Florida madness comes to the UK

Oh dear. Someone in the UK has been prosecuted for using an open wifi connection. Three questions occur to me here:

  • If you connect to someone’s network by accident, like my aunt, are you liable for prosecution?
  • In any incident, does the owner of the network have to press charges?
  • Is there a way to say ‘I believe in sharing my resources and any passer-by is welcome to use this network?’ We should establish a convention, perhaps like including ‘open’ in the network name.

Tell me the old, old story…

Where Google leads, Microsoft follows.

Actually, both of these projects must have been in the pipeline for some time, and I bet MS was furious that Google stole their thunder.

And your word for the day…

…is frolicsome. I suggest you try to be a bit more frolicsome than usual today.

What Business Can Learn from Open Source

Paul Graham comes up with very good essays in an annoyingly consistent way. His recent one entitled What Business Can Learn from Open Source is particularly interesting because it isn’t about software.

Print it out, find a comfy chair and a good cup of coffee, and enjoy…

Productivity

Well, it’s so quiet in the office today that I guess it must be a Bank Holiday. Somehow I only tend to discover these things when I turn up at work and find the car park empty! It should be a productive day, though!

Pop

Chris DiBona uploaded this rather nice picture of Ward Cunningham (creator of the original Wiki) holding a half-exploded balloon.

The high-speed photography session was a fun one at Foo Camp, but I got there at the end and didn’t get anything as good as those in Chris’s collection.


A different kind of Bluetooth security flaw

A Cambridge Evening News article. Do laptops really respond to Bluetooth queries when they’re asleep?

(I never imagined I would ever post a link to the Cambridge Evening News here!)

Just enough piracy

An interesting post on Chris Anderson’s blog. An extract to whet your appetite:

I was chatting with a former Microsoft manager the other day and he revealed that after much analysis Microsoft had realized that some piracy is not only inevitable, but could actually be economically optimal. The reason is counterintuitive, but intriguing.

‘Tis true, ’tis pity…

And pity ’tis, ’tis true…

…that the most interesting periods of my life are the ones when I have the least time to post blog entries. So here’s a quick summary of the recent past.

Less than a week ago, I jumped on a plane to San Francisco and then drove to the O’Reilly campus in Sebastopol, CA for Tim O’Reilly’s FOO Camp.

2005_08_22-05_54_22

Of that, much has been written elsewhere, but suffice it to say that I had many interesting conversations with, and listened to fascinating talks by, a remarkable group of people. I also rode several varieties of Segway and other scooter-like devices, perhaps the most impressive being one of Trevor Blackwell’s home-made ones.

On Monday, I headed for the Apple HQ in Cupertino, to visit my old University friend Stuart Cheshire, the chief motive force behind the technology formerly known as Rendezvous, now ‘Bonjour‘. I hadn’t seen him for nearly twenty years, and I remembered him as a Mac enthusiast from college. He was driven to create Bonjour, he said, partly through frustration that TCP/IP was so much harder to use than Appletalk had been, and partly because people seemed to invent a new transport protocol whenever a new connection type came along. Why wasn’t IP used for Bluetooth? And USB? And DECT? And… well, you get the idea. It wasn’t suitable mostly because it needed too much other infrastructure and configuration. And so his Zero Configuration Networking initiative was born. Most networked printers support it now, as do some Linux distributions. And, yes, Windows users can download it too.

On Tuesday, Hap & CD & I went cycling in the wine country around Healdsburg. The weather, the wine, the company and the views were all wonderful, and I have a new-found respect for Zinfandel.

Yesterday morning I was in San Francisco, where I visited Brewster Kahle at the Internet Archive, which lives in a wonderful little building in the Presidio.

2005_08_25-01_47_38

The archive is a most inspiring project, aiming, in a nutshell, to make all of human knowledge accessible to everybody. The first conversation I’ve had which used the word ‘petabyte’ while talking in the present tense. A quick trip over the Oakland hills to another winery for a picnic lunch, before heading for the airport.

2005_08_25-05_11_22

And now I’m on a train heading out from London to Cambridge. The sky has small patches of blue between big grey rainclouds. But it’s good to be back.

© Copyright Quentin Stafford-Fraser