Category: General

Validating Email Addresses

Great post on the issues with validating email addresses.

To sum up:

  1. if your regex is longer than /@/ you are doing it wrong.
  2. if you are using a regex you are doing it wrong.

Just send the user an email to activate their account.  If the email gets delivered, then you know it’s valid.

There are always more characters that you haven’t thought of, and more top level domains that will appear in the future than your made up regular expression can handle.

There is a reason I want to sign up for your site with username+dontspammebro@gmail.com.

View of Bellingham

image

Nimbus is closing. Last night for the best view in town.  For now.

Written by Comments Off on View of Bellingham Posted in General

Favorite Videos of 2010

First up are 2 local Bellingham videos. The City of Bellingham created this video as a promo for their bid in the Google Fiber for Communities project:

Local comedian / DJ Nathan Cox recreated the Brooklyn State of Mind video with Bellingham State of Mind:

I loved this Verizon ad, recreating a Big Red Gum commercial from the 80’s:

Here is the original from the 80’s:

And of course, the best video of the year was the Old Spice Super Bowl ad:

Written by Comments Off on Favorite Videos of 2010 Posted in General Tagged with

My favorite videos of 2008

You can vote however you like. These kids are awesome. Wish I could find the lyrics to the verses here.

For all my love of the Rick Astley, I really enjoyed watching Obama sing the song.

Loved the whole Nailed it! series on funny or die. Mostly lasted during the writers strike. So lame, but kinda funny.

Guess I can’t leave out Yes We Can. I think it was very helpful in getting people excited about Obama early on in the presidential race.

And finally, from election night 2008. Marching around downtown Bellingham was a blast. I really wish there was a video of this night. Here’s my brother walking around in his American flag boxers:

DSC_0185

Written by Comments Off on My favorite videos of 2008 Posted in General Tagged with

Killer Ape Video

I made this video my junior year of high school. My english teacher gave extra credit if we made a short movie. Still not sure why. I filmed and edited this the afternoon and evening before the deadline. Editing with 2 ghetto VCRs was fun. One of the VCRs had a 2-3 second delay when you hit the record button. I vividly remember staying up late counting out over and over “one one thousand, two one thousand, three one NOW”. You can tell where the editing gets messed up at the very end.

Killer Ape on youtube

SWFUpload with flash 10

Flash player version 10 has new security restrictions with it’s javascript interaction.  It is no longer possible to trigger the local file picker from a javascript event.  Basically breaking the most legitimate use of flash in websites that I’ve seen in a while.

I use SWFUpload in a few sites to get multiple file uploads and upload progess bars.  It’s pretty slick.

The SWFUpload project has a beta release out that can work with Flash 10.  Here’s the basic changes required in your code to work with the 2.2.0 betas:

Right above your html that contains a button to trigger the file picker:

You will want to give your button a fixed width and height.

Add the following CSS rules:

.swfupload {
    position: absolute;
    z-index: 1;
}

And finally, add the following options to your SWFUpload settings object:

     button_placeholder_id : "spanButtonPlaceholder",
    button_width: 100,
    button_height: 40,
    button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
    button_cursor: SWFUpload.CURSOR.HAND,

This adds a transparent flash object over your html button that is the same size. Flash traps the click over your button and triggers the file picker from flash itself. Ironically, this work around for the tighter security restrictions in Flash 10 seems like a compete security risk in inself…

Pat wrote about fixing the flash 10 issue with the YUI libraries.