Email masking with Javascript

Really simple code for hiding your email address:

<a href="mailto:mike-at-pixor.net" onclick="this.href=this.href.replace(/-at-/,'@')"> email me </a>

Probably lots of other, better ways around but this is easy enough to remember without needing to search every time.

Pretty sweet that I didn’t post all of 2008 and now I’ve posted two days in a row huh?

Developing iPhone Software

I’ve recently started writing iPhone Software and it is a frustrating yet satisfying process. Objective-C is an interesting language and was actually a lot of fun to learn. The Cocoa Touch SDK seems more frustrating because there is somewhat of a lack of example code and open source software due to the Apple’s iPhone NDA that was recently lifted. Thankfully Apple’s documentation is fairly complete and there are a few great resources such as Jeff LaMarche’s iPhone Development Blog.

I hope to start releasing some simple free apps and maybe even a more complex game or application in the near future. I have a few ideas bouncing around in my head but if you’ve got something in mind that you’d like to see on the iPhone, please drop me a line.

iPhone Programming Resources:

  • “The Hillegass Book”: Cocoa Programming for Mac OS X. Not specific to Cocoa Touch, but this is a great introduction to the Objective C language and the Cocoa framework (which is very similar to Cocoa Touch)
  • Apple’s iPhone Dev Center has lots of sample code and full documentation of Cocoa Touch and other Apple frameworks
  • Jeff LaMarche’s iPhone Development Blog is a great resource and has some interesting OpenGL demos with sample code

Yearly update?

Is this thing on??

I got a new surfboard the other day. I’m looking forward to trying it out, but sadly there are no waves to speak of. It’s a 6′8 bat-tail quad, with an optional center fin so that it can be converted to a thruster. I’ve never surfed a quad but I’m pretty sure I’m going to dig it. The board was shaped by John Reinhard at Uhuru. After surfing a friend’s (very similar) board, I decided to get one for myself. John is a local shaper in the Newport/Costa Mesa area, and I’d highly recommend working with him.

Some pics:
uhuru-photo-3
uhuru-photo-1

In other news, I’ve been training for the Ironman 70.3 in California for the last six months or so. Triathlon is a pretty fun sport, but unfortunately being a “Clydesdale” (yes, that’s what they call big dudes in the sport) makes it tough. I’ve been working through injuries, first my Achilles and now my knee. I’m not very close to 100% and the race is in a week, so I’m probably not going to set any speed records on the run. After this race is done I’m going to be preparing for the Escape from Alcatraz triathlon in San Francisco. If you’re really interested, you can track my races on Athlinks.

Tokyo with 2A

Went to Tokyo last week/weekend for business, and had a good time.. the last night Kevan and I went out and got shitfaced, just walking around and going to random bars in Shibuya. It was a good time; wasn’t too happy the morning after though. We stayed out as long as the bars stayed open, which was about 4am.. then Kevan passed out in the bathroom. Only got a few photos from the night though.

dinner in ebisu 2 boylston bourbon bar scotch bar in shibuya mike and kevan in shibuya reggae bar (no flash) mike and kevan in shibuya reggae bar shibuya reggae bar kevan and mike look unhappy

Scotland NYE 2007

I know it’s a bit late but I thought I’d post some photos.. I went on a trip to Scotland over the holidays (Dec 25-Jan 1) with Marisa and a few friends from Omaha. I posted a bunch of pictures on my Flickr page: Edinburgh New Years.

Edinburgh Skyline Guinness Moustache Piggy Back At the bar Standing Order Guinness Storehouse in Dublin

It was a great trip, and the first time I’d been to Europe. Damn, people in Scotland talk really fast. It’s very hard to understand and usually we had to tell people to slow down. The weather was pretty crappy and the main event, the Hogmanay street party, was cancelled due to gale force winds, but we still had a great time. The thing I miss most: the delicious cask ales they serve everywhere.