Death of Captain Midnight

Note: This entry has been restored from old archives.

Capi: 1986-2007
Capi on the verandah at Thomas Street, Busso, in 2000.

Today I heard the sad news of a death in the family. I still remember the day we bought “Captain Midnight” at the pet shop round back of the cinema in Busso. It was my choice of kitten and my choice of silly name, but I was only about 6 at the time. It wasn’t long after we learnt that “he” was a “she”, the name “Capi” stuck but there was never any agreement on what it was short for, if anything. Her death is not unexpected, she was old, a recurring topic of conversation on my infrequent calls home was “So, Capi still around is she?”

Capi lived through many an interesting time, children trying to bathe her, at least 5 house moves (between rural and urban settings), dislocated hip from a fall (cat’s don’t always land gracefully), and maybe even a snake bite? Not sure about that last one. Like many pets she racked up the vet bills over the years (starting with the fact that it costs a lot more to sterilise a female than a male). She out-lived some; Minty, our other cat, lost twice but rediscovered the first time after an absence of many months; Zeus, a German Shepard we inherited from an employee who moved away, he died in his sleep one night. And will be outlived by many, all the humans in the family, thankfully, and Ollie, a German Short Haired Pointer and youngest in the family.

Sometimes I thought of Capi as “my cat”, but this is disingenuous as over the years it was Mum who fed her and put up with her. After all, I moved to school when I was 14 and barely lived at home again after that (there was that year between high-school and Uni I guess). So in the end I was part of Capi’s household for less than half her life.

Capi was always there, on every one of my semi-annual trips home. Often the first person I’d meet when I got home. Every year a bit scrawnier, this year more a bag of bones than anything. We knew it wouldn’t be long. It’s hard to imagine she won’t be there next time I visit though. I always liked to believe that she remembered me, but I guess this is unlikely.

Clean Swarm

Note: This entry has been restored from old archives.

There’s been an increasing density of news from the robotics front in the tech media over the last year, it’s even been spilling over into mainstream news. Much of the interest is, of course, in humanising of robotics. The latest two-legged walking robot, the cutest robot, etc. The more interesting news is in areas like unmanned exploratory robotics (those amazing Mars Rovers but more autonomous), and context-aware machinery. Generally, it looks like we’re moving towards far more capable robotics.

Beyond all the cuteness, humanness, industrial efficiency, and extreme exploration there’s something I really want out of robotics: a cleaner.

It seems a less horrendous problem than making a machine like a human, but there are probably difficulties I’ve not imagined. I’ve been thinking about swam robotics a lot in recent times, though not many stories report on it. I’d have thought that swarms would be more robust and flexible in many situations, especially exploration. You could have a generic chassis plus some specialisation and you’d have redundancy. I guess the problems are in connectivity and co-ordination, and energy density. So maybe we’re waiting for advances in power and mesh-networking technologies to make this sort of thing feasible. Another approach would be a “queen bee” that mothers a swam which are the queen’s eyes, ears, hands, etc. Maybe this could mitigate the power and control problems by adding some centralisation? I guess if it comes to exploration there’s also the chance a shark might eat your swarm-bots! 🙂

Aaaanyway… cleaning swarms? I’m terrible when it comes to cleaning, and only slightly better than Kat :-p so our place can generally get pretty chaotic. I’m often heard to exclaim, much exasperated, about my inability to keep the kitchen in a state that doesn’t resemble a pig sty. (Yet I cook in there, to some extent, almost every day — and am yet to have given either of us a case of food poisoning.) Now chaos I don’t actually mind, it’s the dirt and grime that breeds within the chaos that gets my goat. My thought is that you could have a small swam of ‘bots that have simple cleaning functions. They don’t do anything pointlessly complex, like stack stuff in the dish-washer, rather, they clean everything in-place. Dishes, utensils, surfaces, everything.

They have little brushes and mops and scuttle around washing dirt off everything. Biological recyclables go in one bucket and everything else in another (that might be a hard one to implement). There’ll be a dump-station where they empty their little rubbish accumulations. A central command computer, leaving the ‘bots themselves requiring minimal intelligence of their own. And a maintenance station where they can charge up (power, cleaner), self-clean, and change any consumable parts when required. They’re only active when there is no non-‘bot activity in the room, if a human enters while they’re active they scuttle to the corners and stop, so long as they can’t get in the way (maybe ‘bot-holes?), otherwise they just stop (and work themselves out if manually relocated).

Yeah, there’s a lot of difficulties. How hard to scrub? What to scrub? What is mess and what is something left on the bench for later? What about if you’re interrupted by a phone-call in the middle of preparing dinner and the ‘bots clean away your “mess”?

It’d be a great area to work in. One of the many things that makes me wish I was at, or able to go back to, Uni.

Beerolies

Note: This entry has been restored from old archives.

Believe it or not, there are Calories in beer. So while you’re being careful with that poached chicken and steamed vegie dinner[1] the two beers you wash it down with might double your Calories! [2]

Alcohol is much more a carbohydrate than a protein or far and for nutritional purposes you can count it as such. Note however that alcohol gives you 7 Calories per gram, rather than the 4 from normal carbs. Most beer will also contain sugars which contribute to Calories. The unfortunate thing is that brewers don’t have to put any nutritional information on their beer (nor wineries on wine for that matter). Luckily for us we can get a vague idea of the damage we’re doing to our careful planning from the alcohol volume. In some beers (much more so for wines) the sugar content is much less significant a contribution to Calories than the alcohol, although others can have a fairly high carbohydrate contribution from sugars. So alcohol-only derived Calories are a minimum and the true calories could be higher still (some examples of alcoholic Calories versus published Calories are given below).

The calculation is simple, but if you try to find information on the ‘net you mostly seem to get not-so-useful “select number of drinks” weekly calculators, where the drink classifications may or may not be relevant to whatever you’re guzzling. (“Red Wine” hey, 10% or 14% alcohol volume?)

My example is an Innis & Gunn Oak Aged Beer. A 330ml bottle at 6.6% alcohol volume.

The calculation:

  • Calculate millilitres of alcohol, 6.6% of 330ml:
    • 0.066 x 330 = 21.78
  • Calculate weight by multiplying millilitres by the specific gravity of alcohol:
    • 21.78 x 0.789 = 17.18442
  • Calculate Calories by multiplying by Calories per gram of alcohol:
    • 17.18442 x 7 = 120

So, there are at least 120 Calories in a bottle of Innis & Gunn Oak Aged Beer.

Another useful number to know is the number of Calories in a “standard unit” of Alcohol, in the UK and Australia this is 10ml:

  • 10 x 0.789 = 7.89
  • 7.89 x 7 = 55

This is a very useful number to know, no matter where you are you just need to know that your alcoholic Calorie intake is: <std-drinks>x55! Though that might be a bit hard to deal with after eight pints of larger.

So, food for thought:

A pint of Guinness, 568ml at 4.3%:

  • 0.043 x 568 = 24.424
  • 24.424 x 0.789 = 19.270536
  • 19.270536 * 7 = 135

The official figure for a pint of Guinness is 210 Calories, as you can see there is a good number of Calories from other sources.

A 187.5ml (ÂĽ bottle) of 12.5% wine:

  • 0.125 x 187.5 = 23.4375
  • 23.4375 x 0.789 = 18.4921875
  • 18.4921875 x 7 = 129

Average figures available on the ‘net for “dry white” are around 140 Calories for this volume.

40ml of Lagavulin 16yo single malt whisky at 43%:

  • 0.43 x 40 = 17.2
  • 17.2 x 0.789 = 13.5708
  • 13.5708 x 7 = 95

So there you go, maybe you’ll hold that third beer now? Regretting those 6 pints of Guinness every Friday after work, and maybe a few other days too?


[1] 200g chicken breast, 100g broccoli, 7.5g olive oil, plus herbs and spices: 320 Calories.

[2] It is a somewhat unusual convention that “Calories” with a capital “C” represents “kilo-calories”. A Calorie is enough energy to raise the temperature of one litre of water by one degree, a calorie is enough to raise the temperature of one millilitre of water by one degree. Almost always when you see calories discussed in the context of nutrition (even with lowercase “c”) people are talking about kilo-calories.

Comments

Note: This entry has been restored from old archives.

I’ve added commenting. It’s likely not at all worth the effort involved, but eh. Maybe now I wont have to try and remember corrections/observations that people send my way via email, once or twice a year. Minor spam protection is in place, but no registration/captcha … for now (let’s see how long that lasts). Not quite sure what’s proper for this sort of thing, the comment form ends up in the RSS — maybe that’s wrong? Doesn’t seem to be normal. Existing comments also end up in the RSS version of entries, but do not have their own RSS feed and the UUID isn’t altered so there isn’t an RSS way of tracking them (that’d really not be worth bothing with!).

Along the way I had troubles getting LWP to work. The reason being that I run apache in a gaol (being a tech-term I guess I should use “jail”?) and it didn’t quite have the full set of required files. Anyway, strace is your friend in these instances. Error along the lines of:

500 Can't connect to google.com:80 (Bad protocol 'tcp')

Caused by lack of /etc/protocols and /etc/libnss_files.so.2. Or:

500 Can't connect to google.com:80 (Bad hostname 'google.com')

Caused by lack of /lib/libnss_dns.so.2.

Example of inventorying the files required for something like LWP:

:; strace lwp-request http://google.com/ 2>&1 | 
    grep '^open' | 
    grep -v ENOENT | 
    cut -d'"' -f2 | 
    sort -u | 
    grep '^/(etc|lib)'
/etc/host.conf
/etc/hosts
/etc/ld.so.cache
/etc/localtime
/etc/nsswitch.conf
/etc/protocols
/etc/resolv.conf
/lib/libc.so.6
/lib/libcrypt.so.1
/lib/libdl.so.2
/lib/libm.so.6
/lib/libnss_dns.so.2
/lib/libnss_files.so.2
/lib/libpthread.so.0
/lib/libresolv.so.2

Note that while these files are used by the command they’re not all necessarily required. That final grep is just to trim down the list, which is otherwise quite a flood from /usr/lib/

The Coffee House on Watford High Street

Note: This entry has been restored from old archives.

The Coffee House on Watford High Street
The Coffee House on Watford High Street

Coffee House: The Coffee House
Address: The Parade, High Street , Watford, WD17 1LQ (inside the Presence gift shop)
Rating: Between New Orleans and Bathers’, tending to the former on good days (Sydney-Coffee Rating System)
Map

When we first spotted The Coffee House in Watford we puzzled over whether or not it was part of a chain. It seems that it is not; but, just like Cinnamon Square in Ricky, a lot of effort has been put into the finishings, so much so that it seems like a franchise kit. Chain or not, they do a pretty good attempt at an espresso.

The Coffee House came into existence some time after we moved to Rickmansworth and is a welcome addition to Watford’s[1] retail centre. Previously the best we could do for espresso was dreary old Starbucks, yeah, that bad. There are a few small coffee shops around the town centre, I doubt we’ve tried all of them but the ones that we’ve tried (the more inviting ones) have all been a disappointment (i.e. Starbucks beats the lot).

"The Coffee House" branded demitasse.
“The Coffee House” branded demitasse.

So what’s distinctive about The Coffee House? Well, first of all, you can easily miss the place — out the front there’s a small cluster of chairs with in a branded enclosure that doesn’t look associated with any nearby cafĂ©, a very small sign, and a chalked swing-board. What makes the place really easy to miss is that the entire shop-front is one of those kitschy gift shops and The Coffee House is tucked away up the back of the shop. Other distinctive features include: plenty of comfy leather sofas, free wireless, fresh roast coffee (relatively), and their self-description as Watford’s finest coffee bar.

Crema? Like light cloud cover.
Coffee House coffee

What about the espresso? Welllll… it isn’t close to excellent, and isn’t worth travelling to Watford for. That aside, it is easily the finest espresso we’ve found in Watford over the last 18 months. On the Sydney scale it certainly betters Bathers’ (i.e. it’s much better than typical Sydney restaurant coffee, which is not to be mistaken for the swill English restaurants call coffee) but isn’t quite up to the New Orleans Cafe standard. Crema is often very light and short-lived, but the wide demitasse and typical over-volume of water is probably more responsible for this than anything else. On the flavour side, they seem to use a well balanced blend and they claim that it’s recently roasted (on November 10th they had a sign up to say the coffee was roasted on November 5th, maybe getting old by Toby’s standards but certainly far from long in the tooth). I think there’s a lot of potential to be unleashed here, if I was there more regularly than fortnightly I might work up the motivation to have a chat about pseudo-ristretto.

In conclusion: Watford’s not all bad, there’s a place to hide on a comfy sofa, with free wireless and rather decent espresso. The espresso isn’t free! But no worries at 155p for a double[2]. If you’re in Watford town centre and you feel the urge for some short black indulgence you probably can’t do better than The Coffee Bar.


[1] Watford is the closest major shopping-town to Rickmansworth, where we live. The one advantage of the Metro line always being “maintained” during weekends is the free bus trips to the not-very-conveniently-located Watford tube station. If it wasn’t for the frequent free transport we’d probably go to somewhere only a single tube trip away, like Harrow, Finchley, or London proper.

[2] Ever noticed that as the espresso gets better the price goes down? 1.85 quid here, 1.70 at Cinnamon Square, 1.20 at The Coffee Plant, and 1.00 at Monmouth … curious. As far as I can recall a similar pattern exists in Sydney.
Well, given the correction on the price below this pattern doesn’t seem to hold. That said, since a couple of people left Cinnamon Square the coffee wasn’t as good anyway, so maybe it balances out. Of course, for the inner London places economies of scale must play a part too.

Wont Wont Wont

Note: This entry has been restored from old archives.

Gah, I can’t help it. I just cannot put the apostrophe in wont. This isn’t a subversive political movement against the word, though I (clearly) don’t particularly care much about language “purity”. So, as I am wont to do, my wonts will probably remain wonts no matter what. (Yeah, I could s/wont/won’t/g. Or, as wont is a word I rarely use, I could just blacklist it from my spell-checker.)

Democrafallacy

Note: This entry has been restored from old archives.

A few years back, not long after I reached an age where I had the supposed privilege to vote in Australia, I realised that voting was little more than an inconvenience. In Australia voting is “compulsory”, if you choose not to vote it’ll cost you 50 bucks (fine), so as a student I voted for the Greens because I thought Bob Brown was the least annoying party leader and 50 bucks was a lot of money to me in those days. I can’t say that I particularly cared for half the Green agenda, but hey, it doesn’t matter who you vote for (and in almost all cases a Green vote was essentially a Labor vote due to preferences).

The Australian election shenanigans viewed from my new outside perspective are far more entertaining than they’d be if I was still there and forced to indicate I had some preference for one buffoon over another. All I can think is that I pity anyone having to choose between the two dorks on offer (I think most “swinging voters” vote for the figurehead and not for the party, that’s why there’s so much ALP engine focus on “would you really want Costello to be PM?”). I’d be exercising my $50 right not to vote. A saving grace of the UK is that you’re not coerced into picking one ugly, old, lying pollie from another.

Anyway, much of what I think is summed up neatly in an old NYT article that Mr Dilbert linked to today Why Vote? (2005). I particularly like the parallel they draw to lottery tickets: “for the price of a ticket, you buy the right to fantasize how you’d spend the winnings — much as you get to fantasize that your vote will have some impact on policy.”

Anyway, please vote in whatever your next election is … deluded masses make the world go round.

Erroneous Blame for Firefox Slowness

Note: This entry has been restored from old archives.

For a while I’ve been very annoyed by how horribly slow Firefox is, writing it off as Firefox just having grown into a disgusting slow heap. That said, I wasn’t comfortable blaming Firefox in such an off-hand manner, the issue could be Ubuntu doing something wrong, or one of the extensions I use. I almost felt I’d confirmed it was Ubuntu a little while back when switching to the mozilla.org firefox install sped my Firefox up — yes it did (something to do with fonts and AA I’ve read) but it was still pretty slow. I’ve wiped my profile and rebuilt my Firefox setup from scratch a couple of times even, still all bad.

What I failed to do was start by blaming that which is, really, the most unreliable part of my configuration: the ten or so extensions I use. Extensions are outside the control of Firefox and Ubuntu, often written by some random, and often written badly. (Well, so I expect in my cynical way.) Today I nuked my Firefox install and browsed my usual morning sites with no extensions installed, using the Ubuntu Firefox, and it really is pretty snappy. I’ve now re-installed Google Browser Sync and browsing has not degraded. Over the next few days I’ll reinstall my set of usual extensions and find out which is to blame (if any single one).

My Firefox extensions are:

  • Google Browser Sync (I don’t know how I lived without this. On the slowdown front it Seems OK, so far.)
  • SwitchProxy Tool (Essential, I work through different redirected proxies throughout the day. Might be a better plugin for this though. There are notes on the addons.mozilla.org page that say this is a cause of slowdown.)
  • AdBlock Plus (Difficult to live without this, I hate flashing/moving graphics all over websites. Flashblocker almost replaces it. Need flash+anigif blocker, that might be OK.)
  • NeoDiggler (Provides the essential “clear URL bar” button, does some other things too that I don’t use.)
  • Google Toolbar (I probably don’t really need this, it’s so common though that I doubt it is the problem.)
  • Tab Mix Plus (Use this to tweak a few tab settings, can probably live without — closed tabs history is often helpful though.)
  • Web Developer (Usually disabled anyway, very useful. It can cause slowness when enabled.)
  • Firebug (Usually disabled anyway, extremely useful. It causes extreme slowness when some parts are enabled, shouldn’t be a worry in a disabled state though.)
  • Google Gears (Have issues with this, it occasionally segfaults at shutdown-time, at least that’s where GDB points the finger. It is “Google BETA”. It makes offline Google Reader work, but I never use it.)

I’ll reinstall one per day over the next few days, in the order above, and see how my browsing joy fares. I’ll need at least a full day’s worth of browsing to work out if a plugin has a noticeable impact. (I don’t generally do a lot of web browsing.) I might try installing the Load Time Analyser extension next though, so long as it doesn’t slow anything down it seems likely to be useful.

Even with the massive no-extensions responsiveness boost, Firefox seems less speedy than Opera. I’ve been using Opera more often these days, now that it has some sort of sync feature it might be a viable Firefox replacement.

Referrer Bot

Note: This entry has been restored from old archives.

This is a quick addition to my previous post: Bot or Not?. Curiosity got the better of me so, through roundabout means, I got samples of some of the pages. First note is that the ‘hyml’ pages are 404s, so probably a typo.

Next note is that there is some dodgey looking script in some of the pages. My first thought was: Oh, this is just another botnet propogation setup. There’s two layers of encode in the snippet, first the data is URI-decoded, then each byte has 1 subtracted from it to get the real code, this is then eval()ed. This shows that the decoded content is short and simple, not a bot infester:

var r=escape(document.referrer), t="", q;
document.write("<script src=\"http://www.Z-ZZZZZ-Z.com/counter.php?id=ambien&r="+r+"\"></script>");

URL obscured, but points to what looks like a front with no links and the text “See How The Traffic Is Driven To Your Site” (the page is nothing but an image with no links). So this looks like just a route to grabbing referrer dollars from a dodgey advertising site. Note how the target script will neatly get both the spammy page and the URL of the page that was spammed.

So what about counter.php? More redirection! The script imported looks like this (reformatted for readability):

<!-- document.write(
    '<script language="JavaScript">
        function f() {
            document.location.href = "http://www.XXXXXXXXX.com/ambien.html";
        } window.onFocus =  f(); </'+'script>'); // -->
<script>
    document.write(
        '<script language="JavaScript">
            function f() {
                document.location.href = "http://www.XXXXXXXXX.com/ambien.html";
            } window.onFocus =  f(); </'+'script>');
</script>

We’ve reached the end of the road. The real URL in this code goes to an “Online Pharmacy” at a domain registered since February this year. The page contains little javascript, no exploits. A function for adding to bookmarks, some “menu” code, and it imports “urchin.js” from Google Analytics.

So yeah, everyday, regular spam.

Digital Spectrum

Note: This entry has been restored from old archives.

IEEE’s Spectrum magazine is making a digital distribution available[1]. I’ve been trying to use it over the last couple of months and have opted to get the digital version from next year. It’s a mutually exclusive offer, you either get bits or you get paper. The digital carrot is very compelling:

  • You get your Spectrum significantly earlier, fresh news is always alluring.
  • You don’t end up with a pile of paper that gathers dust.

So, like I said, I’ve opted for digital distribution. Piles of IEEE emails on the subject have compelled me to do so. There’s a rather large BUT though:

I will no longer read Spectrum.

Why? Well, the actual news content of any printed publication is valueless these days so this isn’t the reason Spectrum gets read in the first place. I’ll have skimmed anything interesting from the weekly news mailouts I get from IEEE, ACM, and SANS — not to mention news feeds like Slashdot, and Google. I read the paper edition of Spectrum because I can read it in the toilet, it’s not pretty but it’s true. Spectrum has well written and detailed stories on subjects that I wouldn’t normally investigate, it doesn’t matter that the information isn’t breaking-news and I’m using time in which I’d otherwise be staring at the door.

What does the new digital Spectrum do for me?

  • It employs an annoying and cumbersome non-web online reader.
  • It ties me to reading only when I’m in front of a computer.
  • I can’t read it on the toilet, or in bed late at night.

These are both locations where I tend not to take the laptop, and, really, I’d prefer neither one to be any more digitally enabled. So, I’ll only be able to read Spectrum while I’m sitting at my desk, or when laptopping elsewhere. But in these cases I usually have work to do, and in-between work times I have the entire Internet before me. Why opt to read Spectrum when I have expert-selected content feeds?

As for the first point, the digital Spectrum interface is crap. The real Spectrum killer for me is in the toilet, but usability is pretty important too. Has anyone ever seen one of these non-web web-content systems that doesn’t suck? They would be better off just sticking to PDF, but then I guess they’d loose whatever DRM the system they’re using provides. I’ve seen a lot of publications go for such non-web online systems during these web-or-die times, most of them have either given up (nobody reads because they made it too difficult) or switched to the sanity of just sticking with HTML. (Example: The West Australian, a newspaper I grew up with but stopped reading when I left WA because their online setup was unusable. Now they use a site that looks like every other news site, while design-dorks may shudder and think “urgh, how ununique”, my opinion is: good, I know how to use this site. I’m after news, not obstructions.)

So, despite all my complaining, I’ve opted for digital. But now I wont read Spectrum. Logic anyone?! I’m not at all sad about this, it was my decision. I have other magazines to stock the toilet, and now I wont have to debate with myself over how long to keep Spectrums and feel bad about throwing stacks of them in the recycling every 6-or-so months (so: periodical karma improved by about one fifth). It is intriguing to reflect on these moments when something leaves your life, why is it so and what do the stirrings of these surface currents indicate is lurking below. Then get on with life, differently informed.


[1] Using Qmags, which seems to offer quite a selection of publications. Maybe I’m in a minority, thinking the interface is crap. Or maybe there just happens to be enough people willing to use it to keep the thing alive. I’m not investigating their service in detail, the IEEE Spectrum interface might not even be what they use to deliver most of their titles. Some “Secure” Acrobat/ebook file would be another option, though I don’t like them much either (still not loo-compatible in my mind, and printouts defeat the purpose).