Michael's posterous

Wandering star

Img_0066
Caught the Portishead show at the Sound Academy last night. Wow. Easily the best concert I've seen in many years.

They were kind enough to play a quiet arrangement of 'Wandering Star' allowing my hodge-podge field recording gear (i.e. an iphone) to take a decent recording.

(download)

/mike.

Filed under  //   concerts   omgsogood   portishead  

Happy Programmer's Day

To all my fellow programmers: Happy Programmer's Day!

Everyone else: buy your favourite programmer a beer today!

/mike.

When exactly do you mean?

Img_0169

At Rasputina's annual show at Lee's Palace they pulled out a new cover I
hadn't heard before. Its effing sweet, so I recorded it .. mostly. It is sort clipping throughout, but I've heard worse :P.

(download)

 

Filed under  //   music  

Wishful thinking

} catch(Exception e) {
        // Any errors here should return null, where they will be handled gracefully by calling method
        return null;
}

/mike.

On syntax

"Syntax, folks, is religion, and Lisp is the wrong one." - Nickieben Bourbaki

/mike.

Who is John Galt?

"I swear by my life and my love of it that I will never live for the sake of another man, nor ask another man to live for mine." -- John Galt

/mike.

Things you didn't know about javaw.exe vs. java.exe

It has been awhile since I've graced the intertubes with my inane day-to-day life. Here is an obscure, but seemingly undocumented fact about a behavioural difference between java.exe and javaw.exe.

Many sites will tell you that the difference between java.exe and javaw.exe is that the former allocates a console window whereas the latter doesn't. This is certainly true, but there is more.

It turns out that with java.exe, if you try and write strings with international characters in them (e.g. こんにちは、世界!) to System.out, they all come out as ?s. 

This seems to be the case regardless of what the file.encoding system property is set to, or the default console encoding of the OS. This is problematic when you are trying to read output from an international program through a pipe. You must use javaw.exe (and use a file.encoding that supports the characters you are printing) to get the goods. 

Here's to hoping that one day, a search engine will find this page and someone experiencing the same problem is able to find it.

/mike.

Filed under  //   java  

Mmmmmmm. Lens flariness.

Doesn't it look warm?

Photo

Nope. It was rather cold actually. Morning sun is possibly one of the greatest motivators for getting up early. 

/mike.

Filed under  //   weather  

Le groan.

Photo

Sadly, this thermometer is functioning properly.

/mike.

Filed under  //   boo