Notes & Commentary

Notes & Commentary:

Smaller thoughts and bits not big enough for the Front Page.

Fixing “phone number detection not supported” warning in XCode

August 12th, 2009 · 7 Comments

I’m working on an iPhone app for WelcomeToYourMac, and during compilation I kept getting a warning saying:

warning: Turning off phone number detection is not supported on iPhone OS versions prior 3.0.

I couldn’t find the answer on Google, so I kept poking around in Interface Builder until I finally found the answer, and I thought I’d go ahead and share it here - just in case your as compulsive about squasing warnings as I am!  :-)

First I double checked my build properties were all set to iPhone OS 3.0. right click on your target

picture-37

to show and click Get Info to show:

Build Properties

Once confirmed, I opened the problematic .xib in Interface Builder and found the culprit. Press the unassuming info button Info Button then set the Deployment Target for that specific .xib!

Deployment Target

It had been set to OS 2.0. Switching the .xib’s target deployment to 3.0 fixed the problem.

Easy!

Sour makes one incredible music video

July 13th, 2009 · 2 Comments

My dad just sent me this link to an awesome Japanese pop band’s music video. It was created nearly entirely by Sour’s fans, and features some impressive coordination on their part. Very cool.

See more funny videos and funny pictures at CollegeHumor.

Juniper VPN with 64-bit Ubuntu

June 16th, 2009 · No Comments

Benjamin Sherman just put up an awesome post about how to get Juniper VPN working on 64-bit Ubuntu. I’m working remotely for the next 3 ish weeks, so this has saved me. I had been using my MacBook since it was the only box I had that was VPNable, but now I’m connected with my [much much much faster] Ubuntu box, and can happily revert my MacBook back to being a gigantic iPod. Awesome!

Quirks with JavaScript String .replace() and regular expressions

June 4th, 2009 · 3 Comments

I was doing a global replace on a string using JavaScript String’s .replace() method, and I saw some funny behavior I thought was worth noting.

Given the following sample code, what do you expect the output to be? (Hint: notice the whitespace in the string and regex)


var str="Visit Microsoft Microsoft Microsoft !";
document.write(str.replace(/ Microsoft /g," W3Schools "));

Until today, I was expecting: “Visit W3Schools W3Schools W3Schools !” but wouldn’t you know it, the result is actually “Visit W3Schools Microsoft W3Schools !”

All of you regular expression ninjas probably knew that already, but it was news to me! :-)

Google’s Auto-suggest is Feeling Lucky

May 22nd, 2009 · 1 Comment

Google's autocomplete results with the first link

Google’s auto-suggest feature now displays the first search result as the first item in the drop down.

Since the colors in the auto-suggest drop down are the same colors used in the sidebar ads on the results page, my knee-jerk reaction was naturally “how dare you put ads in my auto-suggest!” After a bit more poking, I realized it’s just showing the first search result of the first auto-suggested term as the first option in the auto-suggest.

I’ve never seen a site mix search results with auto-complete functionality, but I’ll be honest: I love it. Google: go give whoever’s idea this was a raise.

Obama to seek [whopping] $17B in budget savings

May 6th, 2009 · 1 Comment

WASHINGTON (AP) — After a line-by-line scrub of the federal budget, President Barack Obama has signed off on a roster of 121 budget cuts totaling $17 billion — or about one-half of 1 percent of the $3.4 trillion budget Congress has approved for next year. (emphasis mine)

Obama, I refuse to believe that you even tried.

Half Life 2

March 18th, 2009 · No Comments

This is incredible.

so is this.

Those are so fun to watch. They had to be even more fun to make! Thanks Buck for the tip!