Archive for the ‘Computers’ Category

Hackers

August 4th 2008

OMG I love this movie for being so horrible.

They have the little video changing equipment fight…oh man.

Before you could download movies, could hack into TV stations and just get them to play what you want.

“You are terminated!”

:D

Start Slide Show with PicLens Lite PicLens

Posted by darkhelmet under Computers | No Comments »

Pascal case to human readable with C# extension methods

August 2nd 2008

I needed to convert some Pascal case strings to human readable strings. Basically I have an enum containing errors, but wanted a nice way to convert them straight to messages for the exceptions that would be thrown.

Here’s how I did it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public static string ToHumanFromPascal(this string s)
{
    var sb = new StringBuilder();
    var ca = s.ToCharArray();
    sb.Append(ca[0]);
    for (int i = 1; i < ca.Length - 1; i++)
    {
        char c = ca[i];
        if (char.IsUpper(c) && (char.IsLower(ca[i + 1]) || char.IsLower(ca[i - 1])))
        {
            sb.Append(' ');
        }
        sb.Append(c);
    }
    sb.Append(ca[ca.Length - 1]);
    return sb.ToString();
}

Posted by darkhelmet under Computers & Programming | No Comments »

OMG git on Windows

July 25th 2008

Now I can use git on Windows. There is much rejoicing.

msysgit

Getting Started with Git and GitHub on Windows - Kyle Cordes

Posted by darkhelmet under Computers & Programming & Windows | No Comments »

Dragon Age: Origins Trailer

July 15th 2008

OMG I want this game…srsly!

Posted by darkhelmet under Computers & Gaming & Intraweb | No Comments »

World of Wifecraft

June 10th 2008

This is awesome

Posted by darkhelmet under Computers & Gaming & Life | No Comments »

Acer FTW!

May 7th 2008

Start Slide Show with PicLens Lite PicLens

Posted by darkhelmet under Computers & Intraweb | No Comments »

Next »

My wishlist
  • Categories

  • Monthly

  • Pages

  • Blogroll

  • Last.fm

  • Einstein@home

  • Word of the Day