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

Book reviews

I'm always a little hesitant when I see reviews of the book. It's irrational, but I guess it's a little bit like being worried that people are going to tell you that your kid isn't the smartest in the class, or is ugly. That's why I sat on the review from Linux Format May 2006 until today, and only read it just now. Wow. "This is probably the best Linux book you will buy all year". I guess it doesn't get clearer than that. All I can say is "thanks Linux Format". They commented on the lack of colour figures in the examples as well, and once again I should point out that there are colour versions available online and as a download. A colour revision of the PDF version of the book is also currently in the works.

Continue ReadingBook reviews

Two things

  • Post author:
  • Post category:Link

One, wikipedia rocks. Especially for technical topics I previously found hard to research like image encoding formats like YUV. Kudos to those who write pages there. Secondly, is it just me or is the history of television formats fascinating. For example: The adoption of SECAM in Eastern Europe has been attributed to Cold War political machinations: Western TV was popular in the East, authorities were well aware of this, and adopted SECAM rather than the PAL encoding used in West Germany. This did not hinder mutual reception in black&white, because the underlying TV standard B/G remained the same in both parts of Germany. However, East Germans responded by buying PAL decoders for their SECAM sets. Eventually, the government in East Berlin stopped paying attention to so-called "Republikflucht via Fernsehen", or "defection via television". Later East German produced TV sets even included a dual standard PAL/SECAM decoder. In any case the majority of TV sets in East Germany were monochrome (black & white) until well into the 1980s.

Continue ReadingTwo things

End of content

No more pages to load