Mar 312009

Mar 302009

Mar 292009

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.

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.

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.

Mar 242009

Mar 232009

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.

Mar 222009

MacMegasite redesign

Web Comments Off
Mar 212009

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!

Mar 212009
  • An mp-free jazz blog focusing on rare or out-of-print music. We generally publish once a week. Songs will be available for a limited time, and are for evaluation purposes only. Attend concerts. Buy music.
  • "On the 16th of February, the U.K. Government passed a law (in the Counter Terrorism Act) making it illegal to take a photograph of a police office, military personnel or member of the intelligence services—or a photograph which 'may be of use for terrorism.' This definition is vague at best, and open to interpretation by the police—who under Home Secretary guidelines can 'restrict photography in public places.' "

Via CBC:

A B.C. sales representative who markets equestrian products in Canada was barred from crossing the U.S. border to attend a trade show last month by a U.S. Customs and Border Protection officer who accused him of trying to steal American jobs.

“He looked at me, and in a yelling voice he said, ‘You’re friggin’ stealing jobs away from American citizens,’ and I tried telling him that I wasn’t,” Joel Borsteinas told CBC News.

Borsteinas, a Canadian citizen, said he’s been in business for 15 years, acting as a middleman between U.S. and Canadian suppliers of western wear and equestrian products and Canadian retailers who want to stock the products.

He said he goes to the U.S. half a dozen times a year to attend trade shows and meet with suppliers who want him to market their products to retailers north of the border. They pay him a commission for every Canadian order he sends to them.

As an American working for a Canadian company, I find this completely outrageous. I got to Vancouver at least once a year, and lately I’ve been thinking very seriously about moving there. My job would be a lot easier if I was working on site, and I’m getting more disgusted with this country every day because of bullshit like this, despite having a president I like & respect.

iDrive Warning

Macintosh Comments Off
Mar 192009

When I noticed the free iDrive backup utility at MacUpdate, I decided to download and try it, which requires signing up for the iDrive service. Big mistake. When you sign up for iDrive, you’re prompted to invite friends from your gmail address book. When you do so, it doesn’t give you an option to choose who to invite. It spams *EVERY* address, including posting addresses for services like Tumblr.

Mar 192009

Mar 172009

Yesterday I posted my list of things I’d like to see in iPhone OS 3.0. Here’s how the actual OS stacks up to my wish list.

  1. No tasks & doesn’t appear to be a calendar API.
  2. We have note syncing, but not clear whether there’s a note API.
  3. YES! The standard mail form can be accessed via a new API.
  4. No. Apple still insists background processing will drain the battery too fast.
  5. YES! You can now access the iPod library and control the audio player.
  6. Yes
  7. No, although there are some improvements like spotlight searching.
  8. YES!
  9. YES!
  10. Not clear if we have video recording.
  11. YES! MMS is supported with a new message application that replaces SMS.
  12. YES! We have full cut/copy/paste/undo!

There are also a lot of other goodies, like accessory hardware access, in-application store purchases, bluetooth stereo, and peer-to-peer connections.

Mar 172009

Mar 162009

As everyone probably knows, Apple is having a media event tomorrow to announce iPhone OS 3.0. Here are some of the things I’d really like to see.

  1. Support for tasks in the calendar, and a full API for accessing the calendar.
  2. Note syncing, and an API to access notes.
  3. An API for sending mail with attachments. Having the user re-enter their SMTP info in another application is a major FAIL.
  4. Some limited background processing and launchd or cron for scheduling processes.
  5. API to access & control iPod, at least to determine the current song playing, which applications could use to obtain artwork & lyrics or submit to last.fm, for example.
  6. Support more video formats in AV Player.
  7. Better application management in springboard – categorize applications, folders, jump to any screen, list view.
  8. Landscape view in mail & other applications.
  9. Push notification.
  10. Video recording.
  11. MMS.
  12. Copy & Paste.

Mar 162009

I was lucky enough to catch the trail of the shuttle launch from my back yard tonight. Unfortunately I happened to have the wide angle lens on my D90 because I was shooting something else; I would have preferred to use a longer lens.

Shuttle Launch

Mar 152009

© 2010 /dev/random Suffusion WordPress theme by Sayontan Sinha

/dev/random is Digg proof thanks to caching by WP Super Cache