02.20.10

Clean Phone Numbers

I’ve been working with a lot of person type data recently at work and I’m using data from multiple sources. Not just two databases but two separate systems with similar and yet incompatible data. One of the biggest messes was the phone numbers. I need to convert a phone number from a completely un-normalized format to a very strict format. I’m no regular expression genius so thankfully a quick Google search produced a nice PHP method of doing pretty much exactly what I was looking for. (http://cnanney.com/journal/code/cleaning-phone-numbers-with-regex/) I took that method and re-wrote it in C# and tweaked it a little for my application. I’m sure this isn’t the absolute best way to do this but it works for me.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const string pattern = @"\D*\(?(\d{3})?\)?\D*(\d{3})\D*(\d{4})\D*(\d{1,8})?";
string num, ext;
var matches = new Regex(pattern).Match(number).Groups;
if (matches.Count > 0)
{
if (matches[3].Length > 0)
{
if (matches[1].Length > 0)
{
num = "(" + matches[1].Value + ") " + matches[2].Value + "-" + matches[3].Value;
}
else
{
num = matches[2].Value + "-" + matches[3].Value;
}
}
else
{
num = null;
}
ext = matches[4].Length > 0 ? matches[4].Value : null;
}
else
{
num = null;
ext = null;
}

02.16.10

Nominate Fishers for Google Fiber

Earlier this week I blogged about how Google announced their Fiber internet access experiment. Later this year Google will pick one or more communities to build an experimental ultra-high-speed fiber network. This will deliver internet to residents at over 100 times faster than the current high-speed internet providers.

Since this post I have received amazing feedback from my local community and I have started working with the help of a few others to push this initiative along.

We want Google Fiber to come to Fishers, Indiana.
And we can do it.

This is a two-fold plan. First the residents and anyone else that cares. And second, the town and it’s official representatives.

Residents

Nominate Fishers – This is the most important. Google has a quick form for you to fill out to nominate Fishers and explain why Fishers would be a good choice. http://www.google.com/appserve/fiberrfi/user/launch_exhibit_b

Join our Facebook Group – We created a Facebook Group to show Google and the town of Fishers just how much we want this. http://www.facebook.com/group.php?gid=462275585022

Share – this post, the Facebook group, and the Google form with all your friends and neighbors.

Contact – anyone you know in the Fishers town government and tell them you want this.

Officials

Google has specifically asked for an official response from the community. Google wants an authoritative voice to ask for this and tell Google about our community. The online forms can be found here: https://www.google.com/appserve/fiberrfi/user/list_applications. Many other cities and communities have already begun this process and we want Fishers to have a chance. This will be a huge benefit to the community. It will be great for Fishers’ publicity and image. It will probably bring jobs to Fishers. If you have any questions about what this is all about please contact me and I will be happy to explain it.

UPDATE

The IndyStar ran and article about this! http://www.indystar.com/article/20100211/LOCAL0102/2110496/
Indy.com ran the same article here: http://www.indy.com/posts/fishers-man-leads-effort-to-attract-google-project

02.10.10

Google Fiber

Google recently announced that they are planning an experiment to make Internet access “better and faster for everyone.” Google will pick one or more communities to build and test a high-speed fiber network. This network will feature speeds of up to and over 1 gigabit. This is much faster than most household internet connections, which typically range from 1 megabit to 15 megabits.
Read the rest of this entry »

Tags: ,
| Posted in Technology | 1 Comment »
02.3.10

On Apple’s iPad

Apple recently announced their newest product, the iPad. Every blog now has a review, and either loves it or hates it. I’m going to take a different approach and just link to a few really good reviews and points of view. I hope you enjoy these, as they are hopefully a little different than most of the common reviews.

I’ll try to update this list as I find new ones.

You should follow me on twitter.

02.2.10

Narcoleptic Squirrel

Tags: ,
| Posted in Random | No Comments »
01.25.10

QUOTE: Conan O’Brien

All I ask of you is one thing: please don’t be cynical. I hate cynicism — it’s my least favorite quality and it doesn’t lead anywhere. Nobody in life gets exactly what they thought they were going to get. But if you work really hard, and you’re kind, amazing things will happen.
-Conan O’Brien

| Posted in Quotes | No Comments »
01.18.10

John Resig: JavaScript’s Chuck Norris

If you are familiar with jQuery you might know that John Resig is jQuery’s creator. He is a JavaScript genius and this blog post I found has a very nice set of jokes about him. If you like Chuck Norris and you know jQuery, you will find this very entertaining. Nice work Ben!

http://benalman.com/news/2009/12/john-resig-javascripts-chuck-norris/

01.16.10

2009: Year in Review

Well I guess it’s about time I write about what has happened in the last 12 months. This past year has been the biggest year of changes in my life thus far. Here is the rundown:

  • Started January at IWU, my final semester of college, living off campus (since September 2008)
  • February 25th I joined Twitter
  • In February I began my job search
  • February 16th I took and passed the Zend PHP 5 Certification
  • In April I was hired by FORUM Credit Union
  • April 25th I graduated from Indiana Wesleyan University with a B.S. in Computer Internet Development
  • April 26th I moved to Indianapolis, IN
  • April 29th I began my new job at FORUM
  • May 21st I proposed to Katie Stipe, and she said YES!
  • In August we had engagement photos taken
  • June, July, August, September and October was a blur of wedding preparations
  • October 17th I got married! (photos)
  • In December we took a vacation to Disney in Florida (I hadn’t been there since I was 6)

It has been a great, full year.  I’m very much looking forward to a slower yet just as fulfilling 2010.

You should follow me on twitter to get the latest from 2010.

| Posted in Personal, Work | No Comments »
01.14.10

jQuery 1.4 Released!

Today, the jQuery team released the next version of their revolutionary JavaScript framework. Today is also the 4th birthday of jQuery although it has only recently (in the last year or so) become almost standard among web developers. jQuery has made developing in JavaScript fun again, for me, and hopefully you too.

You can read all about it on the 14 days of jQuery site. The links to download the files are right on that page, or you can also use the following links:

| Posted in JavaScript | No Comments »
01.4.10

Enable Windows 7 “God” Mode

I’m not sure I like the name of this hack, but it is descriptive.

“I thought this was a joke when I read it, but evidently not. If you want a quick way to get to all the settings on Windows 7, GodMode is it. How?

Add a new folder to your desktop and name it GodMode.{ED7BA470-8E54-465E-825C-99712043E01C} – you will now see [a new icon] on your desktop and a pretty long list of items. Below is just a small sample.

…”

Source: @spoon16