I’m Sam. I design and code iPhone apps and websites. I’m a one man show. I’m dedicated to the simple. If you’re down with that, you should follow me on Twitter. Or just say hi. That’s cool too.

flyosity An excellent replacement for UISplitViewController from the inimitable @mattgemmell. All iPad coders should take a look: http://cl.ly/1qAU 13 hours ago via web

marcedwards My iPhone 4 is broken. It won’t drop any calls. 1 day ago via Tweetie for Mac

Jul 30148 words

AT-AT Day

#STARWARS, #FUN, #MONTREAL

When I was a kid, there are two things I wanted badly and never got… A real dog and a Kenner AT-AT Walker.

Sweet video by Patrick Boivin bringing AT-AT Walker and Jabba the Hutt to life in Montreal.

AT-AT day afternoon from Patrick Boivin on Vimeo.

mantia @gruber What I picture a social graph to be: http://lmnt.me/gilf 2 days ago via Twitterrific

Jul 29349 words

Keep your own traffic off Google Analytics, the easy way.

#WEB

If you’re like me, the final step before taking a new website online is to add the Google Analytics tracking code snippet. From there on, every visit gets logged. Even yours. This usually flaws your statistics, as you might spend a lot of time testing stuff and making sure everything looks good.

So I’ve been looking for ways to keep your own traffic off Google Analytics. I’ve been successfully using this solution for a while now, but I keep going back for the code snippets. Although it’s an excellent tutorial, I really thought it could be easier. So let’s cut the crap:

Assigning a unique word to your device and domain

Go to your website homepage and copy-paste the following code in your address bar. Feel free to replace macbook with any unique word of your choosing (I like it to be the device name I wish to exclude).

javascript:void(function(w){try{_gaq._getAsyncTracker()._setVar(w)}catch(e){try{__utmSetVar(w)}catch(e){pageTracker._setVar(w)}}alert(w)}('macbook'));void(0);

Hit return and you should get prompted with your new unique word:

Tell Google Analytics to exclude that traffic

In Analytics, hit the Filter Manager and create a new filter:

Make sure your website profile is in the selected column.

That’s it!

All visits to this domain using your current device should now be excluded from Google Analytics. Remember: that unique word is only valid for this device (computer, iPad, iPhone, whatever) and domain. Repeat the process for every device and domain you wish to exclude your own traffic from.

Verifying unique words

Enter the following code in the address bar and hit return. You should be prompted with the current domain/device unique word.

javascript:alert((/__utmv=.+?\.(.*?)(;|$)/.test(''+document.cookie))?RegExp.$1:'No unique word');void(0);

If no unique word has been set, you’ll get the following:

samvermette Dive into HTML5: http://diveintohtml5.org (thanks @seanmurph!) 3 days ago via Tweetie for Mac

joeldev TRUTH. RT @cHIwAwITa: An accurate representation of life in California: http://bit.ly/a29UfS 3 days ago via Echofon

AngryPaulRand I prefer real books to reading on an iPad. Real books look & feel better, plus I don't look as douchey when I read one in a Starbucks. 3 days ago via web

kyleve @spiralstairs 1) You shouldn't need to save manually. 2) If you do, localized "Save" text should be (cont) http://tl.gd/2q0qg4 4 days ago via Tweetie for Mac

seanmurph The simplest open source iPhone 'Pull to Refresh' implementation, from @leahculver: http://cl.ly/1npv 4 days ago via Tweetie for Mac

fraying Apple should stop using the word "magic" in product names before there's a class action lawsuit about the lack of actual magic. 5 days ago via web

jimmycappaert Someone filmed me arriving at the office this morning. http://bit.ly/dv7Dse 5 days ago via Echofon