In The Twinkling Of An Eye

It seems as if it were only yesterday that I was registering my daughter’s birth in a stuffy office somewhere in Sunnyvale, California (if I remember correctly).

How can it be, then, that I’ve already had to renew her passport?

I picked up new passports for Eloïse and myself today. The old ones have certainly seen a lot of action since they were granted back in 2005 by the embassy in Los Angeles, courtesy of the consulate in San Mateo (which has just moved to the altogether more sensible location of San Francisco).

She once again resembles the girl in the photo, the previous one having been taken in Los Altos, when she was just two weeks old. Border guards have been taking it on faith that she was the person pictured in the passport.

How time flies.

Posted in Children | Leave a comment

Reports Of My Ethernet Big Disk’s Death Are Greatly Exaggerated

It turns out that my first dedicated network drive, a LaCie Big Ethernet Disk, wasn’t dead as I suspected after all, merely in a state of suspended animation for the last eighteen months.

I’ve regularly returned to this LaCie drive over the last year and a half, because it housed some unessential data for which I had no back-up of. I’ve always hoped I could one day find a way to get at it again.

So, I returned to the unit again a few days ago, expecting another bout of brief head-scratching, followed by consignment of the device to the cupboard until the next time my curiosity auto-piqued.

This time, I decided to completely dismantled the thing. Why worry about rendering void an expired guarantee?

I thought I’d been hearing the drives spin up during my irregular tests over the last eighteen months, but what I’d actually been hearing turns out to have been the sizzling of the power adapter block. Seriously, up close, it sounded like bacon being fried, but from a distance, the sound was inseparable from that of spinning drives. Anyway, the drives themselves, as it turned out, were silent when I put my ear next to them. A good sign, to be sure.

I hadn’t previously suspected the power supply, because the blue light on the front of the drive housing was illuminated, as were the LAN lights at the back. This obviously meant that the drive was receiving electricity, at which point I ruled out the power supply as the possible cause of the problem. That left only the hard drives themselves and if those were buggered, well, game over, right?

A quick Google search now revealed many more similarly broken drive units than when I had first looked for others afflicted with this ailment back in June of 2008. Lo and behold, many people reported the same sizzling power supply problem, and the fact that the unit hadn’t completely shuffled off its mortal coil, but merely declined to the point that it could now power only the lights on the casing, not spin up the discs inside. Another very good sign!

I wish I had realised earlier that it was only the power supply at fault. I hadn’t even contacted LaCie at the time, believing the unit to be no longer under guarantee, its being just over a year in my possession. I also didn’t realise that a power supply unit could partially die and then stabilise at some drastically suboptimal level, the way many LaCie units apparently have.

It turns out that LaCie actually offered a two year guarantee on units back then (in Europe, at least), so I should have contacted them. If nothing else, they would have replaced the drive.

More likely, they would have known what was wrong and just supplied me with a new power supply free of charge. More fool me for not looking into it.

Incidentally, in case you run into a similar problem, you should be aware that LaCie currently offers a three year guarantee on new drive units.

I opened a ticket with LaCie, but they were adamant that they wouldn’t help me, because the drive is all of 2½ years old now. My retort that it had died when it was only one year old cut no ice with them.

I would have liked them to demonstrate a little more understanding, particularly in view of the fact that so many other users’ drives have had exactly the same problem, but they’re obviously not that kind of company. Some manufacturers will bend over backwards to help any customer with a problem, whether the unit is still under guarantee or not — just in the name of good customer service — but that’s only some companies; not LaCie.

Now almost certain that only a faulty power supply was standing between me and my old data, I bit the bullet and ordered a replacement from the LaCie Web site. At least they actually sell the accessory on-line. I had half expected it to not even be separately available, which would have been a problem, because it has a strange, proprietary four pin connector that meant no-one else’s adapter could be substituted in its place. Why do companies do this? I’m unpleasantly reminded of the 1001 different charger connectors that Nokia mobile phones have sported over the last fifteen years.

Anyway, for around €40 plus postage, I ordered a new 57W adapter. To LaCie’s credit, they did at least send it promptly.

Once it arrived, I plugged in the unit and, sure enough, the drives span up again.

A switch port mirroring and tcpdump session was required to figure out which IP address the thing was attempting to latch onto, and then I was able to log in and configure the drive again.

With that done, I took it down to the equipment cupboard and connected it to the UPS and core switch.

The next twelve hours saw the ReadyNAS pulling 56 Gb of data off the LaCie, where it’s now better protected against the vagaries of cheap consumer electrical goods.

I feel pretty daft for having remained in the dark for so long about such a trivial problem and its equally trivial fix, particularly as it ended up costing me not only time without my data, but also money for a new power supply.

I was even wrong about this being a single drive unit. Opening it up revealed two 320 Gb drives, not the single 640 Gb drive I was expecting to find.

The irony is that I currently actually need a USB drive for the purpose of back-up, but this one can only be connected over Ethernet. I wouldn’t really mind, but I have to mount this drive over CIFS, which is less than ideal on an almost exclusively UNIX-like network (and especially when you consider that the LaCie unit actually uses XFS internally). The drive has a USB port, but annoyingly, it can function only as a USB host, which means that you can connect other devices and have the LaCie present them for use, but you can’t make the LaCie subordinate to another device that is serving as a USB host.

Since I’ve already got two ReadyNAS units in the house, one of which has an external Seagate drive connected over USB, I’d like to connect the LaCie to the other one. If both devices can only host other USB devices, however, doing so isn’t going to get me anywhere.

Posted in System Administration | Leave a comment

The Winter That Won’t End

I wouldn’t normally blog about the weather. Even by my standards, it doesn’t get much mundaner than that. How old and farty can you get?

Today, though, I feel compelled to remark on the winter we’re having. I can’t recall a winter in Amsterdam that was this cold and during which snow fell on so many separate occasions.

Not only has the temperature seldom crept above zero since early December — it’s -3°C as I write this — but snow is an almost weekly occurrence. That may not sound very impressive if you live in a part of the world used to cold winters, but it’s quite unusual here. Here, an entire winter can pass without a single snowflake falling. We don’t usually get many days under zero, either, never mind the -10°C we’ve felt this winter.

The children love it, of course, but biking Eloïse to school through the snow is getting tedious, particularly on days that it has melted and refrozen. There are few things more treacherous than frozen slush. I’ve had a few skids this winter, but haven’t yet fallen off. Touch wood.

Our car hasn’t been so lucky. There was an occasion in mid-December that I had to take the car out and it happened to be the morning after the first snowfall. At the forefront of my mind was the thought that I should drive cautiously and deliberately. Applying such commendably wise circumspection, I pulled away, drove slowly around the corner and skidded out of the first bend, barely 100m from our house. I trashed a bike rack, but somehow managed to spare the bikes parked in it.

As I got out to inspect the damage to the car, I nearly fell on my arse. As I regained my footing and rose above the level of the car door, a cyclist who had passed me was now lying in the road, having fallen off her bike. It was really, really slippery.

Anyway, I had managed to catch that bike rack really unfortunately and one of the curved, steel wheel holders had punctured the front of the car body. I feared that this had caused more damage than was immediately obvious and it soon turned out that I wasn’t wrong. Once on the motorway, it became apparent that the adaptive cruise control no longer worked. More specifically, the radar could no longer detect cars in front of mine, causing my car to try to accelerate through the vehicles in front of me as if they weren’t there.

The only positive element to this story, if you can call it that, is that I managed to prang the car so soon after the very first snowfall. This meant that I was able to book the car in for repair in late January.

Since that day, snow has fallen many times and there have been a huge number of accidents across the country. We’re not used to this kind of weather, you see. If I were to prang the car today, it wouldn’t be up for repair until April.

The damage also had the unfortunate consequence of short-circuiting some part of the car’s electrical system, which caused its battery to completely drain within a few days. I had to drive it every few days, just to keep the battery alive.

On precisely the day that I had to take the car to the garage to be repaired, the battery was stone dead and I had to make use of my Audi mobility guarantee to call a mechanic out to come and start it for me with jumper leads.

The car is repaired now and I’m several grand worse off, but at least no-one was hurt in the accident. The battery also no longer drains, which the garage thought was unrelated to the damage I’d incurred, but in view of the fact that the problem hasn’t reoccurred since they fixed the adaptive cruise control, it must have been related.

Last night, snow fell yet again and, proving Sod’s Law, today was, of course, another day that I had to drive. The car had to go to the garage again, this time for periodic service and to undergo its first APK, which is akin to the British MOT, in other words a road worthiness test. New cars don’t have to have an APK until they’re four years old, so this is our first.

I made it there in one piece, but I’ve already seen a couple of accidents today. And as I write this sentence, it’s starting to snow again outside my window.

The snow certainly is beautiful and bestows on the world outside a pristine quality otherwise sadly lacking, but I’ve had enough of it now. I’m ready for the spring.

Posted in Life, The Netherlands | Leave a comment

Spoilt For Bike Races

Last year, the Vuelta a España started in Assen.

This year, the Giro d’Italia will not only start in Amsterdam, but depart and finish within walking distance of our house, as the following map of the 8.4 individual time-trial illustrates:

Giro d'Italia route stage 1

As if that weren’t enough, the second and third day’s stages will also start in Amsterdam, also near to our house.

It would be unreasonable to expect any more imminent major tour activity in a country that doesn’t even share a border with Spain, Italy or France, but the Gods must have smiled on us, because the Tour de France will also be starting in Rotterdam this summer.

It now only remains to be seen whether we’ll actually be in the country when these races get under way. We’re tied to school holidays now and we have to travel when we’re able.

Posted in Biking | Leave a comment

Eye Candy

I mentioned in a recent posting that I’ve worked my way through quite a lot of window managers in my time, and that the dull but functional Metacity has been my steady friend for seven or eight years now.

The recent acquisition of powerful new hardware inspired me to read up on what modern desktops can now do, given a fast GPU and lots of video RAM. It didn’t take long before I was reading about Compiz.

Actually, I’d heard of Compiz a few years ago, but knew no more about it than that it was a compositing window manager. And that’s all I needed to know at the time, because my video hardware from 2003 would have been instantly brought to its knees by Compiz.

Now, however, I have a machine that is more than a match for what Compiz can throw at it. Inspired by what I’d read and the accompanying screenshots, I installed the necessary packages and fired it up.

At first sight, not much had changed. Everything looked the same, from the title bars of the windows down to the look of the context menu that appeared when I right-clicked on those bars. That’s because my existing GNOME theme was still being applied. Compiz really does just manage the behaviour of the desktop and its windows. Window styling is handled by a window decorator, of which there are a few. I’ll get back to this later.

There’s a lot to configure with Compiz. Be prepared to lose several hours in your first session with it. The way it looks and behaves can be radically altered, so that no two systems running a Compiz desktop need look anything like one another.

Compiz on its own doesn’t do very much. It relies on an architecture of plug-ins to achieve its multitude of effects. One very common such plug-in is that of the Desktop Cube.

Linux users will typically configure their desktop to comprise a number of virtual desktops. The physical monitor can be thought of in this context as a sliding window, displaying only one of those virtual desktops at any one time. My physical desktop, for example, measures 3940×1200, but I have four virtual desktops configured in a single row, which gives me a virtual desktop size of 15760×1200. I could have configured those four desktops to be a 2×2 grid, which would have given me a 7880×2400 desktop. You switch from one virtual desktop to another with a key or mouse combination, which makes it convenient to use each desktop for a different kind of application. You might use one desktop for general work, for example, another for graphics work, another for programming and yet another for music.

That’s how things have been in the UNIX world for a long time. It’s crippling to have to use a computer with no virtual desktop configured. Everything feels impossibly cramped, as if you’ve suddenly had to move all of your belongings into a single room in your house.

Compiz’s Desktop Cube plug-in adds to this facility the notion of a third dimension. Now, I can turn my row of four virtual desktops into the side faces of a cube, adding a photo of my children on the top and bottom faces, for aesthetic purposes. I can still navigate to any particular desktop with the same key combination as before, but now I can also zoom out and get an overview of the whole cube from somewhere in the desktop cosmos with updates to each face in real time. Adding the Rotate plug-in, I can rotate the cube in any direction to view it from any angle. I know it sounds bizarre, but in this way, you can angle the cube such that you can easily see the progress of applications on two different desktops.

If you configure your cube with some degree of transparency, you can even peer through the foreground faces to see what’s happening on the opposing faces, albeit the mirror image of them (because you’re viewing them from behind, as it were), but that’s stretching practicality. It’s better to just rotate the cube 180°.

The fun doesn’t end there, of course. You can configure the Cube Reflection and Deformation plug-in. The reflection part make it appear as if your cube is hovering above shiny glass, whilst the deformation part allows you to turn your cube into a sphere, a cylinder or an oval. I prefer the delineated regularity of a cube, however, as it makes it obvious which desktop each application is on. Conceptually, I find it difficult to think of my configuration of virtual desktops as anything other than a grid of flat surfaces.

Anyway, a picture’s worth a thousand words, so here’s a shot of my cube. You’ll notice there are actually two cubes, one for each of my monitors. Although my monitors are configured to each show half of the physical desktop, I opt for multiple desktop cubes here, because the alternative is a ten-sided cube instead of six, on account of the extra four side faces that have to be squeezed onto a single cube. It’s more logical to me, when zoomed out, to be looking at one cube per monitor, each of which displays the desktops available on that side of the monitor. Clearly, the concept of a cube needs to be taken figuratively when configuring Desktop Cube.

Compiz Cube.

Compiz Cube in action on a dual-headed desktop.

Hopefully, that makes things a little clearer. Here, you can see my general work area, including mutt mail client, on the left-most face of the first cube. On the second face, you can see the Sonos Desktop Controller, running under WINE.

On the second cube, the first face has MythTV is playing the local news on AT5, whilst the second has the latest build of Chromium open at Google Reader.

I want to demonstrate one more plug-in, called Expo. Expo allows you to zoom out on an unfurled representation of your cube. You can unfold your cube using just the Desktop Cube plug-in, too, but you’ll see only as many faces as fit on your display. With Expo, all of your desktops are displayed in a scaled fashion and updated in real time. You can then double-click one to go to whichever desktop you want. Where Expo‘s unfurled cube really beats the standard unfolded Desktop Cube, however, is that you can even drag windows from one virtual desktop to the other.

Again, it’s easier to show you a pciture of Expo in action:

Compiz Expo Plug-in

Compiz Expo plug-in in action.

Desktop Cube and Expo are just two of the dozens of plug-ins available to Compiz. Others include Animations, which will allow you, amongst other things, to see your windows disappear in a blaze of flames when you close them. Wobbly Windows will give you windows that do just that: wobble and stretch when you drag them.

What Compiz is to desktop and window behaviour, Emerald is to styling your windows. Using Emerald, you can make your title bars, borders and buttons look any way you want. I won’t go into the details here, because it’s much more rewarding to just try it out, but my window title bars now have six buttons, including buttons for rolling up the window like a blind, making the window stay on top of others and making the window visible across all virtual desktops. The widgets even pulsate when the mouse cursor is held over them.

It’s a common misconception that, if one likes what the Americans call eye-candy, superfluous fluff that eats RAM and CPU time, but is nevertheless visually appealing, one has to run MacOS X or even Windows 7. What’s possible on those operating systems pales, however, in comparison with Compiz. If you pair Compiz with Emerald, you have a degree of configuration at your fingertips that can render your computer unusable by anyone else but you (or even including you, if you’re not a little cautious).

That’s actually no coincidence and therein lies a key reason why free desktops triumph over closed desktops. At the end of the day, Apple and Microsoft want a computer running their desktop to be instantly recognisable, no matter how it has been configured. That’s why they don’t allow you to stray too far from the default, even if you change everything that they allow you to.

Using a free desktop, on the other hand, the world is your oyster. You can choose any desktop environment, such as KDE or GNOME. You can then apply any window manager you want, of which there are dozens. Add a window decorator to the mix, with more themes than you can shake a stick at, and you have the ability to make your desktop look unlike any other.

The major downside of this flexibility is that other people’s computers become very awkward to use, to the point of feeling utterly impractical, because their behaviour is so far removed from what I’m used to. Just having to click on a window to raise it above others is an unacceptable inconvenience when you haven’t had to do so for fifteen years. Similarly, why do I have to hit Ctrl-C in Windows to copy data to the clipboard? I’ve already highlighted what I want to copy, so why doesn’t just the act of highlighting it make the system copy the data in question to the clipboard for me? After so many years of wondering that, the question is almost rhetorical at this point.

Another downside is that the lack of brand recognition that this degree of configuration flexibility provides is part of the reason that domination of the desktop by Linux hasn’t happened as some people expected it to. The Linux desktop has no ubiquitously recognisable face, nor can it be assumed that any two Linux desktops can even be operated by applying the same assumptions regarding keyboard and mouse behaviour.

These downsides are mere annoyances, however, compared to the alternative of surrendering the power to mould your desktop to your needs.

Posted in Technology | Leave a comment