programming

Windows Phone 7 development in Visual Studio 2010

The recently released Microsoft Visual Studio 2010 does not support mobile development for OS versions prior to the new Windows Phone 7. If you want to write software for Windows Mobile 6.5 or lower, you need to stick to Visual Studio 2005. So much for backward compatibility.

WPF DataGrid row validation

I recommend reading this interesting article (WPF DataGrid Practical Examples) about WPF DataGrid. Among other things, it describes how to perform row validation using the standard IDataErrorInfo interface.

How to invoke click event in WPF programmatically

Sometimes you need to to trigger a click or some other event for one of your WPF controls, such as a button, a menu or a checkbox directly from code. There are no methods on the controls themselves do do this directly per event type. However it is not a big deal anyway - simply use RaiseEvent like this (assuming you have a MenuItem object called item):

LINQ QuickSort in C#

This is most certainly not the recommended way of implementing QuickSort, it assumes there are no duplicates, but it should work:

        private IList<int> sort(IList<int> a)
        {
            if (a.Count <= 1)
                return a;

Events and BinaryFormatter serialization in .NET

Serialization in .NET world is not straightforward. For years we've been told to use XmlSerializer, but it has its limitations. It is unable to serialize anything but the public properties/fields, it cannot deal with interfaces in most of the circumstances (specific collection interfaces being the only notable exception) etc.

Code generation in Visual Studio

I have never suspected that Microsoft had this built-in, but it appears to be the case. Code generator called T4, which targets both C# or VB.NET, is built into your copy of Visual Studio and is available as you read this article.

New super-computing option from NVIDIA

From the Internet:

NVIDIA announced a new category of supercomputers — the Tesla Personal Supercomputer — a 4 TeraFLOPS desktop for under $10,000.

MySQL 5

I have upgraded my hosting database to MySQL 5. Let's see whether it gives me any trouble. So far it seems to be much faster, than the previous version.

Burstsort - a faster sorting algorithm for strings

Have a look at the new project - Burstsort.

Quoting from Wikipedia:

Burstsort and its variants are cache-efficient algorithms for sorting strings and are faster than quicksort and radix sort for large data sets.

Follow the updates to the site - subscribe with your favourite aggregator:

Feed Icon | XML Icon | Google | Yahoo! | Bloglines | Newsgator | MSN | AOL | Monitor This