23 Apr 2008

Automation

I was quite excited about the prospect of Automator when it was introduced, because it offered the prospect of being able to write quick scripts to solve little workflow problems, without having to know much about AppleScript. I can code in a number of languages (not brilliantly, but enough to get by), but for some reason, I find AppleScript quite difficult. It looks enough like English that you're lulled into thinking you know what you're doing until you get tripped up by some odd syntax. Anyway, Automator allows you to cobble together pre-built building blocks, recorded actions, and little shell scripts (in Python, Perl or Ruby as well as bash and other common shells) so that you don't need to write Applescripts if you don't want to.

Despite this convenience, I haven't used Automator quite as much as I'd thought I would, partly because applications like Butler lets you do a lot of things you might use Automator for, but in a more accessible way. However, there are occasions when a nicely crafted Automator workflow is very handy.

Mr. Bsag often has to send photographs or scans of his prints to galleries, and they often insist on a 300dpi TIFF. He stores these images in iPhoto, and while you can certainly export as TIFF, I haven't found an easy way to change the DPI (though you can do it in Preview in Leopard). However, you can change the DPI property of an image using the commandline tool, sips, as well as lots of other handy things. But Mr. Bsag wouldn't be comfortable with a commandline command, which would bring it back to me doing it for him, and I'm lazy. Enter Automator!

I made a quick workflow (see an image of the steps here) which gets the selected items in Finder, puts a dialog box to say what it is going to do an allow an escape, runs a Ruby script which calls a sips command on the arguments to change the DPI and convert to TIFF, then speaks a confirmation of how many files were converted. I made it into a Finder plug-in1, so that Mr. Bsag could just export his chosen images from iPhoto to the desktop, select them, then use the contextual menu to run the script. It seems to work fine. For common tasks like this where you want to batch convert some files to a standard format, Automator is ideal.

1 The documentation for Automator says that if you make a workflow a Finder plugin, you should remove the first 'Get selected Finder items' step. When I did this it acted as if nothing was selected. With the selected Finder items step in place, it counts each selected file twice. Weird. In the final plug-in, I hacked around this by simply dividing num by 2.



18 Apr 2008

Tango

I've been meaning to link to this article by Maciej Ceglowski for ages, but forgetting to do it. I love Maciej's writing: he doesn't post very frequently, but when he does, it's really worth waiting for. He's really funny (I laughed out loud several times while reading this piece), but he also has a wonderful way of evoking the feeling of a place, and making you feel as if you know the characters he writes about.

My favourite part, however, is right at the end:

Each week I brute force my way through a dance with these gracious partners, and each week they are quick to assure me it wasn't nearly as much of a Calvary for them as it had been the week before. As one of them said to me sweetly after what I thought was a rare successfully-executed figure, "Don't worry. Someday you will know what you are doing."

I feel like that all the time -- someday I will know what I am doing.

16 Apr 2008

Smoky music

Capacitor blow out

I've been having a problem with intermittent distortion from my amplifier (a Talk Electronics Storm 2) for a while. Early in the New Year, I thought I'd cracked it. But the problem with intermittent issues is that you change something, listen for a while, and think it's fixed. You congratulate yourself on your ninja-level hi-fi problem diagnosing and repairing technique. Then a couple of days later, the problem is back, and you are forced to commit seppuku with a sharpened banana plug. Well, maybe not the last part...

The problem seemed to be confined to the left channel, so while my brother was visiting this weekend, we made a concerted effort to track the problem down. At first, we thought that swapping the speaker cables over transferred the problem to the right speaker, but with more experimentation, we worked out that it must be the amplifier itself. Opening up the case of the amp revealed the problem all too clearly, as you can see from the picture above.

Usually, it's nearly impossible to find faults in circuit boards just by looking at them, but the strong smell of burning and wide distribution of thick black soot was easy to spot, even for a non-expert. It seems that one or more capacitors have blown in a rather terminal way.

My poor amp. Talk doesn't make this model any more, but I'm going to send them an email and some photos anyway to see if there's any chance a repair would be a) possible and b) economically feasible. If not, I'm having to shop for a new or second-hand amplifier. If any hi-fi enthusiasts out there can recommend a decent quality integrated amp for about the £200-300 mark (preferably with a phono stage), I'm open to suggestions!

14 Apr 2008

Stormfront

Cycling home today, I had a storm-front behind me. Ahead, all was blue sky, sunshine and fluffy white clouds; behind, deep bruise-grey clouds and a fat rainbow. I was being soaked by the rain, while simultaneously feeling the sun warm my wet face. I felt as if I was pulling the storm-front along in my slipstream.

Of course, that wasn't what was happening. I'm not (yet) egotistical enough or crazy enough1 to believe that I control the weather. But sometimes, what a thing feels like is more interesting than what it actually is.

1 Give me time...

10 Apr 2008

Balti bliss

I had a wonderful balti with some friends from work yesterday evening, but I'm still recovering from the enormous quantities of naan we collectively consumed. The balti house we go to in Selly Oak is a brilliant, friendly, low-key place, and does gigantic 'table' naans with which to scoop up your balti. Before I'd seen one, I assumed that the name came from the fact that you could share it with your table, but I quickly realised that it is because it is the size of a table. The waiters carry it out on two plates held side by side, but it still hangs right over the edges like a delicious, steaming, edible tablecloth. We made the classic balti house error of thinking that we'd need two of these giants between 6 people, but they were so wonderful (particularly the coriander naan), that we ended up eating it all.

I'm a real balti convert. They are very easy-going, comforting places. They are generally small, very simply decorated and offer good, cheap food. Most don't have an alcohol licence, but they are very happy for you to buy wine or beer from an off-licence and bring it in, and they don't charge corkage. There are always hundreds of different baltis on the menu, but since they all follow the same balti template (meat/fish/vegetables/paneer in sauce) and come in the same iron pan, it feels very egalitarian. The dishes differ a bit in their spicing or components, and you can usually ask for other ingredients to be added if you like, but you can be pretty confident that you'll enjoy what you get. And sharing a naan the size of a table is always fun.

05 Apr 2008

Assisted opening

Shop doors usually come in three basic flavours when it comes to opening them. You have your basic manually-operated doors, which can be difficult for people with physical disabilities, especially if the doors are large and heavy. Then you have fully-automatic doors, which usually slide or swing open when you trigger an infra-red proximity sensor or pressure pad, or press a button. More rarely, you come across a hybrid door which can be opened manually, but which also offers automatic opening via a button. All such doors I've come across before don't offer any extra resistance if you open them manually.

Our small local branch of Boots has just been fitted with this type of hybrid doors. However, if you try opening them manually, they are incredibly heavy, even if you are not disabled and reasonably fit. It feels as if the motor is actually acting against your muscles as you pull. Even worse, the button to open the door automatically is small and not easy to find quickly. I'm all in favour of making access to buildings easier for people with disabilities, but this system seems to disadvantage everybody. As you ineffectually haul on the door, you look like an idiotic weakling, but I don't think I've seen anyone who can find the opening button without searching for it for 10 minutes. You get the feeling that Boots doesn't actually want any customers in their shop, making their displays messy and inconveniencing their staff by wanting to buy things.

30 Mar 2008

USB Sync Station

Finished USB sync station

I got a bit tired of the tangle of USB cables under the shelf on which I place my laptop, so I decided to make myself some kind of sync station to tidy things up a bit. Being lazy, I wanted to get a container to house the USB hub and the bulk of the cables which wouldn't require much modification. I spotted a 'vanity box' in one of my favourite shops -- Muji -- which looked as if it would be just the job. It's a semi-translucent plastic box, with oval cut-outs at the side which act as handles, but also allowed me to route the cables through them without drilling or cutting any holes. I bought a lid to go with it, which has a handy lip on it, so that it stops my USB-connected items falling off the top.

I've got a Belkin USB hub inside, which I raised up on four cut up pieces of rubber (by which I mean eraser, North Americans!), as it gets very hot resting on the bottom. The semi-translucency of the box helpfully allows the LED lights on the hub to shine through, so I can tell if there's any problems with a peripheral, but it hides the worst of the clutter. Also inside the box is the USB receiver for my Logitech S530 wireless keyboard and mouse -- it seems to work fine like that. On top of the box, I placed a small USB card reader, and used bulldog clips to hold the cables in place. I've still got a few USB ports free on the hub, so I can always add a few more cables or peripherals in the future if I need to, but this serves my needs for now.

I'm pretty pleased with it -- not bad for just over £5 for the materials. There are few notes attached to the image on Flickr if you want to know what's what.

28 Mar 2008

My precious

Yesterday, Mr. Bsag lost his wedding ring. He was working on the allotment and took the ring off because it was rubbing his finger when he was using the spade. Like the big idiot he is sometimes, he put the ring in the top pocket of his overalls which a) doesn't fasten closed, and b) has a hole in the bottom, though to be fair, he didn't know about b) until it was too late. The inevitable happened, and the ring must have dropped out of his pocket while he was spreading the huge load of horse manure we had delivered on to the beds. We went up to look for it, but it could be under several trailer loads of muck by now, so it was a fairly hopeless search.

I was surprised how upset I was by the loss of his ring. It's only a piece of metal after all, and the fact that he doesn't now have it in his possession or on his finger makes no difference to our relationship. But it still upset me. Our rings weren't just picked off the trays of a jewellery shop, but were made to our own design by a lovely craftsman jeweller based in Birmingham. They weren't expensive, but they were special and unique to us. At our wedding, I carried my grandmother's wedding ring as my 'something old', and it had worn very thin over the years of her marriage. I wanted our rings to wear thin too, but now only mine will do so, and that makes me sad.

In folk tales and ballads, when this kind of thing happens, the years pass and the man catches a huge fish at sea, which he gets his servants to cook at a great feast. The woman then cuts open the belly of the fish, only to find the lost ring shining inside. Our allotment is a bit far from the sea for that, but my faith in the narrative imperative is such that I'm fairly confident that -- some years from now -- we'll cut open a particularly prize specimen of a potato, which we have grown on our allotment, only to find the lost ring embedded in the flesh.

That, or we'll have to make friends with someone who has a metal detector, but it doesn't have quite the same ballady feel about it.

26 Mar 2008

Back to vinyl heaven again

Some time ago, my brother lent me a spare turntable he had hanging around (a Project) so that we could play Mr. Bsag's collection of vinyl and my rather smaller stash. However, we soon found out that at some point during its long storage, the turntable platter itself had developed a huge warp. This was so severe that it would scrape on the base of the turntable on each revolution, causing some problems with speed stability. Not to mention the fact that the warp resulted in warbling, wowing sound. I did manage to put my warped records out of phase with the warps in the platter to give an approximately level surface, but that didn't work with flat records. Quite how a very heavy, solid cast-iron platter ended up getting warped, we couldn't imagine, but there it was. We reckoned that our chances of unwarping it were negligible.

Still, all was not lost: in my hi-fi-mad family, there are practically always spare bits of kit hanging around in lofts or other storage spaces. My Dad happened to have an Acoustic Research EB101 turntable in his loft, which my Mum was only too happy to have removed from the loft, so I took that home from my visit this weekend.

I set it up yesterday after a bit of faffing around, so we are enjoying the sweet, analogue sound of vinyl again. The first problem was that my Dad had forgotten that he'd left a custom power plug on it (which fitted in a multi-socket he used to use), but that was an easy fix by swapping over the plug from the old turntable. The second snag was that the stylus didn't actually reach the surface of the record. You don't have to be a hi-fi buff to realise that you're not going to end up with any music if the needle doesn't touch the record. The problem was that the rest for the arm wasn't properly height adjusted so that even when fully lowered, it didn't release the arm. I had to call Dad to ask if there was some secret shipping screw which needed to be released, but in the end I found a little grub screw which did the job. I also couldn't find the recommended downforce weight for the cartridge which was included (a Glanz), so I just swapped over the Ortofon OM10 I had on on the Project turntable.

The new (to me) turntable sounds pretty good. I listened to a album of Mr. Bsag's that I hadn't heard before -- 'Psychedelic Shack' by The Temptations. It's a terrific album, and absolutely the right thing to listen to on vinyl. I think I'm going to have to hit the second-hand vinyl shops again...

25 Mar 2008

Starting a fight in a cattery

When we went away this weekend, we had to leave Cleo at a cattery for the first time. It would have been better if we could have asked our neighbours to come in and feed her for a couple of days, but for one reason or another, that wasn't possible. Luckily, we have a wonderful cattery not far from us, run by very caring people, so we knew that she would be in excellent hands.

When we opened her carrying box in her new lodgings, she really didn't want to come out. When she did, she walked into the run and immediately started hissing and growling at the cats in the neighbouring runs. One very portly black and white cat in the next run wandered over to her in a friendly way in response to this hostile greeting, which only made things worse. Cleo was not at all happy, and it was clear that she would have to be moved to calm her down, and also so that she didn't kick off a huge riot among the other cats being boarded. This caused a huge amount of hassle as other cats had to be moved, runs cleaned and so on, but eventually she was housed in a run with opaque walls so that she couldn't see any other cats.

She still wouldn't come out of the travel box, but looked out of the window of the inner room at the peacocks and peahens strutting around outside and trembled like a leaf. I think she thought that these huge birds were going to kill her, and looked up at us with big, 'take me home now, please' eyes. We felt truly dreadful leaving her there, but we had no choice, and it was only for a couple of days. The problem is that you can't explain to cats (or dogs) that they will be perfectly safe and comfortable and you'll be back to collect them in two days. When the cat in question is rescued and has had a lot of traumatic upheaval in her life, you feel even worse.

She did eventually settle down, but was still lying on her bed inside her travel box when we came to pick her up -- probably for maximum guilt-inducing effect. She seems pretty happy to be back on her own territory, and has been sniffing everything, rubbing up against every available surface (including us) rapturously, and purring like a mad thing.

24 Mar 2008

Ruby Wedding

Mr. Bsag and I spent the weekend with my parents and my brother to celebrate my parents' Ruby Wedding Anniversary on Sunday (40 years, for those not fluent in the gemstone to years-married conversion). It was a quiet family do, but great fun, despite the weather doing its best to scupper carefully laid plans with bitter winds and snow.

My brother and I hatched a plot to make them a photo book (using iPhoto) of photographs from their wedding day and a selection of other shots from the 40 years since. Unfortunately, we had to let Dad in on the secret because he is the keeper of the family slide collection, and had to do an enormous amount of scanning and sorting before we put it together. But we made sure that the final selection and layout was a surprise.

It was a roaring success, and both my parents thought it was a lovely idea. Since some of the wedding photos were on slides, they hadn't seen them for years, so it was wonderful to look at them again, and I'm really impressed with the quality of the book. All the images came out really well, and it looks very classy.

I might even order a copy for myself, but I'm definitely going to get enlargements of a wonderful shot from their wedding. It's a colour shot of Mum and Dad in the back of the wedding car, looking gloriously happy and covered in confetti. I suspect that they were also pretty glad to be out of the cold, because their wedding day was also bitterly cold and windy, just like this Sunday.

18 Mar 2008

Rambling mind

One of the main benefits of cycling on a car-free path over driving on a car-jammed road is that your mind is free to wander from one pointless, weird topic to the next, without worrying that you'll crash into someone or something. Sometimes when I actually think about what I've been thinking about on these occasions (if you see what I mean), it amazes me that people trust me with a responsible job.

To give an example, this is a rough transcript of my thoughts on last night's commute. Bear in mind that the parts in quotes were 'said' in the privacy of my own head, rather than out loud, because that would make me Crazy Bike Lady, and I'm not her. Yet.

[I pass a gaggle of West Highland terriers and a small, brown, unidentifiable mongrel. I could hear a scrabble of paws behind me, and looked back to see them tearing along, trying to chase me.]

"Can't catch me, lil doggies! Hmm. Where do you put the apostrophes in lil? The apostrophes are indicating missing letters in this case, so they should come both before and after the last 'l'. Li'l'. That's crazy! Apostrophe city. Hehe, Apostrophe City, what a cool place. The kind of place that David Bowie would sing a song about: 'I'm back on Apostrophe City, Oh Yeah, I'm back on Apostrophe City...'"

[Now I've got this fake David Bowie song going round in my head, and it's driving me mad because I can't remember the words or title of the original song. Repeat two lines of fake song on loop for another 5 miles...]

For the benefit of those also wondering what the original song was, it's 'Suffragette City'. And no -- apostrophe doesn't actually scan terribly well in the original context, but what the heck. Bowie would have made it work.

16 Mar 2008

Pan’s Labyrinth and Tideland

Several months ago I watched both Pan's Labyrinth and Tideland within a few weeks of each other. They have some notable parallels, and are both quite disturbing explorations of the imaginative worlds of children. I meant to write a piece about this, but for various reasons it ended up on the back burner for a long time until I saw an interview with Guillermo del Toro (the director of Pan's Labyrinth) in a documentary about fantasy writing and films, and it reminded me that I'd never got around to it.

I suspect that one of the reasons I dragged my heels a bit was because I found both films deeply disturbing (in different ways), and rather harrowing to watch. Don't get me wrong -- I think they're both great films, but they aren't easy viewing by any means.

{Read more...}

11 Mar 2008

Funny habits

At night, we shut our cat Cleo into the downstairs rooms (living room, dining room and kitchen) so that she has access to a comfy sofa, her food and water dishes and her litter box. Normally, by the time we're ready to go to bed she's happy to have a last bit of food while we're locking up, then she toddles off to her bed. However, she occasionally gets very playful when we're going to bed, and refuses to be shut in.

This is obviously no big deal: we can leave the door open to the downstairs rooms, and she's free to wander as she likes, so when this happens, we just go to bed ourselves. Inevitably, what happens about 20 minutes later (just as we're falling asleep, inevitably) is that we hear her little chirrups, which gradually become more strident. In the darkness, we see the fluffy tip of a tail moving around the end of the bed, and then a clunking noise as she tries to open the wardrobe doors. She never does this during the day, so quite why it's necessary late at night I don't know. Perhaps she can hear Mr. Tumnus calling to her from Narnia? Or perhaps it's just a convenient way of generating enough noise to get us out of bed. Either way, it works, and one or other of us will get out of bed.

At this point she'll rub around our legs (the way cats do), and trot obediently down the stairs ahead of us to go into the kitchen. She has some more food while we're there, then settles down on her bed.

Cats are weird sometimes. Her food (she has a complete dried food) and water is available all the time, her bed is there, and she's free to roam around the house. So I have no idea why she needs us to supervise her when she feeds (she won't eat unless we're there and stroking her), or to put her to bed.

05 Mar 2008

slipstream

I've started a tumblelog at Tumblr, called slipstream. I'm mostly intending to use it a as way of collecting together snippets of things posted in other places (like flickr, Twitter and ma.gnolia), but it's also somewhere I can post things which are too short and inconsequential to post here. You might be wondering -- given the general level of inconsequentiality of stuff on but she's a girl -- what would count as too inconsequential, but still... Eventually, I hope to find some way of incorporating slipstream here as a kind of side-blog, so removing the need for the separate listings of twitters and ma.gnolia postings, but I haven't quite sorted out the best way to do it yet. Anyway, if you're interested, enjoy!