mha.dk

Random thoughts of wisdom - the personal blog of Michael Holm Andersen

String formatting in C#

Steve Tibbett has written an excellent article about formatting strings in C# / .NET - lots of examples .. go check it out!

Recursive Page.FindControl

As far as I know, Microsoft still hasn't added a recursive overload for Page.FindControl - So I guess we still have to make it ourselves:

private Control FindControlRecursive(Control root, string id)
{
    if (root.ID == id)
    {
        return root;
    }

    foreach (Control c in root.Controls)
    {
        Control t = FindControlRecursive(c, id);
        if (t != null)
        {
            return t;
        }
    }

    return null;
}

Regular Expressions in 30 minutes!

Did you ever wonder what Regular Expressions are all about and want to gain a basic understanding quickly? If so .. check out this tutorial and be sure to download the latest version of Expresso.

AMDs Cool'n'Quiet™ Technology

coolandquiet.jpg

I've been reading about AMD's Cool'n'Quiet™ Technology - some websites stated it was "crap" and other said "cool" (in the very meaing of the word! :-) technology. So, I decided to give it a go, since I'm the lucky and *very* satisfied owner of an AMD 64 X2 3800+ DualCore CPU. I've been using it for some days now and I can only say: It works!! .. the CPU is as quick as ever and my PC is now even more quiet than it was before! So - Go ahead and read the Install Manual and be sure to install the AMDs "Power Monitor" utility which is great (above image!)

Use the Express Editions and Win $10.000

madeinexpress.jpg

The Microsoft "Made in Express" Contest is a skill contest in which selected Finalists will build and display a "Project" consisting of a software application or physical device using Visual Studio Express and/or SQL Server Express products ("Express products"). The first prize is $10.000 - Interested ?!

Rainlendar @ your desktop!

During my teaching at Aalborg University, some of the students mentioned a nice little (freeware) utility called Rainlendar, which is a small calendar located on your desktop and shows events (with Outlook integration), ToDos - really handy, "speaks" danish and is able to synchronizes events between several clients (e.g. your notebook and home computer) - check it out.

Meet Microsoft in Aarhus

It's time for another "Meet Microsoft" meeting. Tomorrow (the 7th Marts), Martin and I will be going to Århus to hear about WinFX and N-Tier development using Enterprise Library v2.0 .. exciting stuff - Hope to see ya' all there!