Jason Vertucio

You know me! ™

Battling Google Calendar Spam

IF THERE’S ONE THING I HATE, IT’S SPAM! There’s no such thing as a good kind of spam, unless it’s made by Hormel. The latest thing I’ve fallen victim to has been the random and annoying Google Calendar events about making money. I mean, COME ON, my schedule is clearly busy enough without all this crap!

Actual screenshot of my busy, busy lifestyle. Soldiers not included.

If you wanna know what you can do about it, read on.

Daily Regex: Google Analytics Tracking IDs

This won’t be a daily thing. But I just put together a quick Google Analytics Tracking ID for one of the apps I’m putting together. You know, to make sure you enter the correct one. It’s super easy.

function isGoogleAnalyticsTrackingId(id) {
var pattern = /^UA-\d{2,}-\d{1,2}$/;
return pattern.test(id);

Now, I’m sure you, astute readers, will be able to pick apart any errors in this. So, have at it!