James Montgomerie’s World Wide Web Log

PWD in the Title Bar (or, “A Regex Adventure in BASH”)

PWDInTheTitleBar.png

In which a five-minute hack to put the current working directory in the title bar of the Terminal descends into hours learning the surprising arcanities of BASH.

Like most developers, I spend a lot of time at my computer living in Terminal (and the rest Xcode)*. I have what might be a strange tendency to open a new Terminal window for each new task, I think so that I don’t have to lose the context in my current window. This means that after I’ve finished doing something (or in the middle, when I look at the screen and my obsessive-compulsive…


BT’s Broadband Market-Share

BT Networks.png

Taken when I opened my laptop in an Edinburgh coffee shop. I would guess that BT’s broadband people are pretty happy.


California, Here I Come!

WWDC.png

Probably should get some work done before then.


Creme Egg Brownies

CremeEggs.jpeg

SmallCremeEggs.jpegEaster’s just past, and Cadbury’s Creme Eggs are cheap. I’m a sucker for cheap things, so I couldn’t help buying some. The problem is that a whole Creme Egg is rather intense, especially when there’s not the excuse of Easter to egg me on (ha-ha, egg me on. I crack me up…).

Recently, we’ve been watching “Willie’s Wonky Chocolate Factory” on TV. In the programme, Wille Harcourt-Cooze evangelises his “100% cacao” (grown on his own small plantation in Venezuela) chocolate bars for cookery (I think that Creme Eggs are probably about as far as you can get from his…


The Hawthorne Effect

I found this fascinating. Amongst other interpretations,

“[The Hawthorne effect is] an experimental effect in the direction expected but not for the reason expected; i.e., a significant positive effect that turns out to have no causal basis in the theoretical motivation for the intervention, but is apparently due to the effect on the participants of knowing themselves to be studied in connection with the outcomes measured.”

I’m often sceptical of surveys and the like (especially of the “X% of children surveyed said they carried a knife!” type) because I suspect that people lie to pollsters more than they like …


Super Tuesday

This display (look at the windows on the first - that’s the second for you American folks - floor) is at the top of Cockburn Street in Edinburgh. Although it is amazing how much coverage the US primaries are getting here (I saw a poster for the Independent newspaper at the weekend that simply read “Election Coverage” and had a US map underneath the text) this is admittedly a bit of a one off, and I suspect some Americans live in the flat. It surprised me though.

To be political for a moment, I don’t think that Hillary could inspire…


Frist Ps0t!!!!

My new blog! I have joined the intarweb properly now! I’m not sure how much I’ll update this, or even what exactly I’ll put on it, but I keep seeing things and thinking I want to write about them, and thinking of things to do that I’d want to record somewhere, and not having anywhere to do it, so I’ll do it here.

The name of the blog will probably change soon. I thought that “Jamie’s Web Log” was cleverly sort of post-Facebook ironic, but Em tells me that it’s really just “a bit geocities”, so I’ll have to mull …