Gordon’s in Texas

  • Post author:
  • Post category:Travel

Gordon is in Texas and having a ball, which is good to hear. His picture is quite cool too. He points out some interesting aspects of America in the post as well. Let's work through them one at a time together: I haven't stayed in a Best Western yet, but so far I would have to say that the hotels I have stayed in have all been pretty good. Now, that might be because I am willing to spend money on hotels, but I think it's also because it's so easy here to change hotel if the first one sucks. For example, the hotel I stayed in in Portland had a many in a silly hat: I have also seen churched with threatening signs, again in Portland for me. It seems to me that perhaps the clergy don't want to be too bothered by the huddled masses? Parking places with funny little boxes to poke money I thought was a Pacific northwest thing (as I've seen them in Oregon and Washington). It's reassuring to know that other parts of the country have these too. And yes, in general people here are wonderfully friendly. Oh, and Gordon, don't forget to checkout…

Continue ReadingGordon’s in Texas

Color ebook!

By far the most consistent criticism of The Definitive Guide to ImageMagick has been that the sample images need to be in color. I would have to agree with this point, which is why I am delighted that Apress took the time to go back around the production process and produce a version of the ebook with color images. It's cool that they were willing to put in the effort, and not only that, they're giving anyone who has purchased the ebook to date a free upgrade. Even better, now if you buy the printed book on Amazon, you get the color ebook for free! I have a limited number of color ebooks to give away, so if you're interested please leave a comment and explain why you'd like one.

Continue ReadingColor ebook!

Exciting news

  • Post author:
  • Post category:Book

Today email arrived with the contract for my second book (following on from The Definitive Guide to ImageMagick). This one is a still-secret project hatched with Stewart Smith, and I don't want to mention the topic in public just yet. There are two reasons for that -- there's always a risk that the whole project will be a massive train wreck, and because Stewart and I haven't talked yet about how we want to do the announcement. This book will be done with Apress, which I guess means that I thought they were pretty good to work with the first time. Anyway, just keeping you up to date on the gossip...

Continue ReadingExciting news

Holy crap!

  • Post author:
  • Post category:Google

These guys really did deliver 1,000 pizzas to Google's Mountain View campus. We even ate them. I guess that's one way of getting publicity...

Continue ReadingHoly crap!

Did everyone else know this?

  • Post author:
  • Post category:Bash

Apparently this behaviour has bothered me in the past as well, and I didn't realize until I googled just now for an answer... I've never really thought to hard about this, but it turns out that bash's return code checking for pipelines is rather dumb. Specifically, bash checks the return code of the last command in the pipeline, not the entire pipeline. For example: mikal@mstill:~$ exit 1 | exit 2 mikal@mstill:~$ echo $? 2 We get the return code of the last process in the pipeline. Perhaps fair enough... Then again: mikal@mstill:~$ exit 1 | exit 0 mikal@mstill:~$ echo $? 0 Here we get the return code of the final process again, which masks the error in the first process from being reported. You can get the return codes of all processes in the pipe like this: mikal@mstill:~$ exit 1 | exit 2 mikal@mstill:~$ echo ${PIPESTATUS[@]} 1 2 And then if you assume that the sum of all return codes will report if an error occurred: mikal@mstill:~$ exit 1 | exit 0 mikal@mstill:~$ expr `echo ${PIPESTATUS[@]} | sed 's/ / + /g'` 1 Which is evil, but does what I want. Is there a less evil way of doing this?

Continue ReadingDid everyone else know this?

Surprise for the day: Australian beer is cheaper in the US than in Australia

  • Post author:
  • Post category:Travel

Image stolen from Woolworth's Homeshop My two favourite Australian beers would have to be Coopers Pale Ale, and the Malt Shovel Brewery Amber Ale. In fact, I am half way through a MSB now, which might explain my terrible spelling in this post. Then again, it might also be that I've been working away for 12 hours now. Anyways, back to the story... Since moving to the US I have been subsisting on these terrible American beers that they have around here. Some of the micro-brews are ok-ish, and Sierra Nevada is better than a punch in the face, but they're really nothing special. For a start, their weak. On the non-micro-brew front, I recommend Coors if you're in a no-beer emergency and you have to get something mainstream. The other fall back drinking plan has been to develop a taste for Margaritas, which we have been serving in 500 mil pint glasses for effect. Anyway, back to the story... So yesterday Catherine and the kids and I ventured out to try to fix this. BevMo was rumoured to have Australian beers, and I thought it might be worth a try. The exciting news is that it turns out that…

Continue ReadingSurprise for the day: Australian beer is cheaper in the US than in Australia

End of content

No more pages to load