Archive for the ‘Programming’ Category

App Store Experience of a Developer - Mac Forums

August 3rd 2008

App Store Experience of a Developer - Mac Forums

What would you do in this case? Is there any way to make Apple take notice of me?

Not develop on Apple’s shitty platform maybe?

Fuck iPods…

Posted by darkhelmet under Intraweb & Programming | 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 »

Rockscroll for Visual Studio

May 15th 2008

I enjoy this addin.

It adds a thumbnail type scroll bar instead of the regular scroll bar in Visual Studio.

Scott Hanselman’s Computer Zen - Introducing RockScroll

Posted by darkhelmet under Programming | No Comments »

Excellent column layout with lists

May 12th 2008

This is pretty cool

No div, no float, no clear, no hack*, no joke!

Posted by darkhelmet under Intraweb & Programming | No Comments »

Rails 2.0 + Capistrano 2.1

April 21st 2008

Capistrano appears to be useful. I will investigate.

Deploying Rails (2.0) to Mongrel with Capistrano 2.1

Posted by darkhelmet under Intraweb & Programming | No Comments »

Next »

My wishlist
  • Categories

  • Monthly

  • Pages

  • Blogroll

  • Last.fm

  • Einstein@home

  • Word of the Day