Tag Archives: code

Sorting a generic list on arbitrary property (C#)

I often need to sort a generic list on some arbitrary property. After writing the code a couple of times I decided to make it more generic using generics and some reflection. Oh, I know that reflection if costly and … Continue reading

Posted in Development | Tagged , , , , | 5 Comments

Silverlight 3

Microsoft has just released the first beta of Silverlight 3. I encourage you to check out  Tim Heuer’s great guide to the new features.

Posted in Development, Technology | Tagged , , , | Leave a comment

PI day

Today is PI day (3.14) at least in the part of the world that writes the month before the day. To celebrate I wrote this little silverlight application that calculates the first 1000 digits of PI. Update: Added the every … Continue reading

Posted in Development, Technology | Tagged , , | Leave a comment

Project Euler and Linq

First I’d like to thank Stefaan for introducing me to Project Euler. Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant … Continue reading

Posted in Development, Technology | Tagged , , , , | 1 Comment

Find the oldest file

I had a problem at work the other day. In a project we have a service that needs to handle files on a first come, first served basis. In effect it scans a folder for files and find the file … Continue reading

Posted in Development | Tagged , , , | Leave a comment