Going back to my roots?

Recently, I've adopted the somewhat complicated habit of having several jobs at once. It's not always the most productive way to work, but it keeps me on my toes, and life is never dull! And so, today, I started a new job, as a Research Associate in the Cambridge University's Computer Lab.

Now, this is only one day a week, and it's a fairly junior post, but it has significance for me, for several reasons. One is that it's with an old friend, Frank Stajano, helping on what should be an interesting project. A second is that it's nice to have at least a modest foothold back in academia, doing stuff that isn't primarily profit-motivated. But thirdly, I'm enjoying a bit of nostalgia.

You see, I've been here before.

Just before I started my PhD, I also had an R.A. post in the Computer Lab. And many great people from that time are still around. So in some senses it feels familiar.

I have a shiny new Linux machine on my desk. Well, I had a Linux machine back then, too, but it was rather different. I had commandeered a spare PC and installed this newfangled operating system on its hard disk. I'd experimented before with booting Linux up from floppies, but to have a machine which I could, at least temporarily, dedicate to this skunkworks experiment was wonderful, and it had a decent CPU with enough RAM and disk space that I could run a graphical interface on it! I think I'm probably the first person in the lab to have used Linux with X Windows, which seems remarkable now, when it's on the majority of desks in the department.

Other things have also changed, not least the building in which the lab is located. The phones on the desks are connected by ethernet cables, not by phone wiring, but of course, I'll scarcely use it because I now have a phone in my pocket as well. Wow.

But the other thing that really makes me feel old is that the last time I started a similar job to the one I started today, in the same organisation, not one of us had ever heard of the World Wide Web, for the simple reason that it didn't yet exist.

Gosh, I'm ancient...!

Stylish stylesheets

It's somewhat ironic that, just as we get truly widespread SVG support in browsers - people are starting to create amazing graphics using CSS alone.

For those unfamiliar with the jargon, CSS stands for Cascading Stylesheets - they're the things that tell your browser the background colour of a page, how widely spaced the lines in this paragraph are, and so forth. SVG is Scalable Vector Graphics, a system for telling the browser how to draw pictures, using components like lines, circles, etc. (as opposed to just embedding a JPEG-type image). SVG is particularly important as displays become bigger, smaller, and higher resolution, because the browser can draw things at the right resolution for even the newest retina MacBook Pro. It's been around for a long time but has been held back by, of course, poor support in Internet Explorer. However, it's now more widely supported than Flash, so if you can't see this little doodle, you really need to find yourself another browser:

image/svg+xml Status Q

I scribbled this quickly in Inkscape, but here's the beta version of a nice in-browser SVG editor.

But when it comes to artistic creativity, constraints are often a good thing, which is why some of the best photos are taken with prime lenses rather than zooms. And as CSS itself has become ever-more capable, it has allowed people like John Galatini to create this Tube map entirely from HTML and CSS.

CSS tube map

You can tell it's not an image, because you can copy and paste the text.

Just as amazing is Burak Can's CSS-only MacBook Air, where the screen background is the only image used.

On the other hand, people have been doing some cool but much simpler stuff with CSS for many years. I like Román Cortés's Homer Simpson from 5 years ago; click the Animate buttons to see how it's made.

Lovely Livres

Here's a quick plug: my next door neighbour, Edel, creates beautiful handmade books. They range from tiny ones you can carry anywhere, to medium-sized notebooks which will make your friends' Moleskines look very dull, to A4 leather-bound guest books which would be a great wedding present.

As you can imagine, they're not cheap, but they're beautiful, they can be personalised in various ways, and you know you'll be giving a unique gift made with great care by someone who loves her craft. Worth checking out.

iOS tip of the day

In most places in iOS where you can edit text, you can tap with two fingers to select a whole line. This works, for example, in text editors like Notesy, Drafts and Byword, and can be quite a time saver. In fact, it selects the line up to the next line break; if you're typing code, that's probably one line, but if you're writing prose, it'll select the current paragraph. Very handy if you want to move paragraphs around using cut and paste.

Another place you can use it is in the URL field of a browser, where it will select the entire URL with fewer clicks than the usual tap-tap-select-all.

I use this, for example, if I'm looking at a page in Safari and want to open it in 1Password. As you probably know, apps can register particular URL schemes for their own use, and 1Password's browser will recognise ophttp and ophttps, so you can just go to the beginning of the URL in Safari, insert an 'op', and you'll be taken to the same page in 1Password (or 'g' for GoodReader, etc.)

The problem is that just 'going to the beginning and inserting something' can be a pain if the URL is long. You probably have to scroll slowly left, tap the correct insertion point, and so forth. Much easier is a two-finger tap, select 'Cut', type 'op' and then tap 'Paste'.

If you're doing this kind of thing regularly, you may want to set up a bookmarklet to make it even easier, but the two-finger tap is a handy thing to know in general.

Poster child

I'm just testing Poster, an iOS app for posting to Wordpress blogs. I've used Blogsy for some time, which is capable, but not beautiful, and at times decidedly quirky.

Poster is elegant, has Markdown support, and a URL scheme which means you can send posts to it from apps such as Drafts.

A crawl in the woods?

2013-05-06_15-43-21

I've been experimenting with low camera angles - something that hasn't been so easy with my Canon 6D, since it doesn't have an articulated viewfinder, so to get shots like these you normally have to lie on the ground if you want to see what you're taking. But the built-in wifi means that you can, instead, put the camera down low and use your phone as a viewfinder, which is what I did today.

2013-05-06_15-43-47

The shallow depth of field was deliberate - I quite like the effect.