latest tweets:

Jump to content.

Your inspiration for today.

June 28th, 2011

Don't look for happiness, create it.

Growing up, I was taught—or inferred—that happiness was a transitory, not-really-real emotion. As in, we could all do much better to be content with what we have. Who is to say what lot you were given in life? If you want something, do the work, start the conversation, save up time and money to make it happen. Then be pleasantly surprised when good things come your way.

(picture via fashionsociety)

The Tragedy of Linked Lists

March 24th, 2011

Inspired by a comic of the same name that I saw in passing.

The Tragedy of Linked Lists

Use C#’s regular expression library to Convert TimeSpan and DateTime to and from strings. (Named capturing groups!)

December 20th, 2010

Well that title is a mouthful.  Long story short, as an exercise in regular expressions I wrote a utility class to convert strings to TimeSpans and DateTimes in C#.  This made great usage of named capturing groups.  (The download to the source code is at the bottom of this post.)

Here is the DateTime regular expression.  Note that when I new the regular expression object, I set whitespace and casing ignoring.
image

Named capturing groups allows code like this:
image

In the end, the utility class allows code like this:
image

fun!  Download all of the code here.

Have any suggestions about the code?  Any neat C# features I should have used?  Comment below!

Ouch! Googling for Bing…

November 14th, 2010

Well, I bagged on Bing when it’s search suggestion was “how do I get rid of bing”, so I suppose it’s only proper to show this little gem:

googling_for_bing

So Bing is search, huh Google? :D

(Read on …)

OkCupid wut?

October 26th, 2010

Per a friend’s prodding, I recently got on free dating site OkCupid.  Even though I am already seeing someone, it’s still fun to answer the questions and find my real-life friends.  The site is full of surprises, like this email that I received today.

(I deleted my personal info from the email. No stalkers for me!)
OkCupid good-looking wut 

This left me thinking, “Well that’s nice wait wut?”  Take from this what you will…

Kind of related, OkCupid does a bunch of cool (geekish) data crunching and publishes the findings on their OkTrends blog..

« Previous PageNext Page »