How to learn WPF (or anything else)

I’ve recently been learning WPF. This is a huge topic that is uncontainable by any single book, tutorial, or web-site. The complexity and breadth of this framework is nearly oppressive, but the results are incredible. Or rather, I should say, potentially incredible.
From everything I’ve read, people who have suffered through the WPF learning curve have [...]

Popularity: 16% [?]

Determine CPU usage of current process (C++ and C#)

Updated 2/4/2009: I changed the implementation of these classes from the original:

Instead of a critical section, InterlockedIncrement/Decrement is used.
The sample driver program now demos using multiple threads using the CpuUsage class to show thread safety.

Download the C++ and C# projects that accompany this article.
Just to make it clear, there is no API called GetProcessCpuPercentage(). To [...]

Popularity: 26% [?]