D90 Hi-Def Video

I recorded a lot of hi-def video on my D90 at Oakland Park Youth Day. Here’s an unedited video straight from the camera. This is the only one that was small enough to upload to Flickr.

I find that it’s hard to keep the video in focus when the subject is moving, and it’s very difficult to see if it’s in focus on the LCD screen in bright sunlight.

I also uploaded lots of photos here.

Languages & Locales are different

If you’re writing a Mac or iPhone application that supports localization, you should be aware that the language & locale could be different. The preferred language can be changed in the International preference pane by changing the order of languages in the list.

International.jpg

However, when you change the language order, it doesn’t change the locale, which defines the date, time, and currency formats.

In your application, you can find the preferred language using this bit of code (note that I’m using functions that are available in 10.3 or later):

CFArrayRef locs = CFBundleCopyBundleLocalizations(CFBundleGetMainBundle());
CFArrayRef preferred = CFBundleCopyPreferredLocalizationsFromArray(locs);
CFStringRef lang = CFLocaleCreateCanonicalLocaleIdentifierFromString(NULL,CFArrayGetValueAtIndex(preferred, 0));

With French selected as the preferred language, as shown above, it will return ‘fr’ as expected. However, you’re working with a web service that takes a locale name instead of a language, so you do something like this to obtain the locale:

CFLocaleRef locale = CFLocaleCopyCurrent();
CFStringRef lstr = CFLocaleGetIdentifier(locale);

The locale you get is ‘en_US’, which may seem counter-intuitive. If you pass that to your web service, instead of French language text, it will appear in English.

"Wild Things" trailer features new version of Arcade Fire song

As you probably know, Apple posted the first trailer for Spike Jonze’s new “Where the Wild Things Are” movie today. The music in that trailer excited me a lot more than the movie itself. I consider any new Arcade Fire song a big deal, since their last album came out 2 years ago, with only a few tidbits since then. “Wake Up” isn’t a new song, but you’ll notice the version in the trailer is different than the album version (acoustic vs. electric guitar, and the vocals are different). So it looks like Arcade Fire may have recorded a new track for the trailer & maybe for the movie itself. Maybe we’ll see a new album this year.

links for 2009-03-24

links for 2009-03-23

Best WordPress theme ever

I’ve found the perfect WordPress theme, Atahualpa from BytesForAll, which I’m now using at MacMegasite. Every aspect of the theme is completely customizable with 25 pages of options. I highly recommend this theme. With all of those options, you can easily make it your own.

MacMegasite redesign

I’ve changed MacMegasite’s theme to a more mac-like theme with a single sidebar. I think two sidebars looked too cluttered, although I had a commitment to display those ads. I was able to fit all of the necessary items into one sidebar, which I think seems a bit less cluttered. This probably won’t be the final design.

Possible theme change
Uploaded with plasq‘s Skitch!