Browse by Tags

CPU-Z and CPU Information
17 January 08 11:06 AM | john | 0 Comments   
My colleague Sergey just showed me a useful tool for getting CPU information on your Windows hardware system called CPU-Z . Read More...
Filed under: ,
Dynamic Code Generation in .NET
05 January 08 03:08 PM | john | 0 Comments   
I recently had the need/desire to dynamically generate some code in .NET. It's not something you tend to do a lot unless you are creating a compiler, so it was an interesting experience. In the end it didn't solve my problem, but it was educational none-the-less. Read More...
Arrays in PowerShell
23 October 07 08:39 AM | john | 0 Comments   
While I'm waiting for some files to copy around I thought I'd record my recent PowerShell learnin'. Somtimes a command, like Get-ChildItem can return either an array of results or just a single one. You can use the @ symbol to cast the result into an Read More...
Filed under: ,
Line Count with PowerShell
22 October 07 08:35 PM | john | 0 Comments   
Starting to get the hang of PowerShell. Today I wanted to quickly count the number of lines in some source code. There's a simple implementation and then there's a better one . In the end I settled on: $count=0;gci . -i *.cs,*.cpp,*.h -r | %{$count += Read More...
Filed under: ,
More PowerShell Fun
17 October 07 11:33 AM | john | 0 Comments   
Still struggling to gain traction with PowerShell. I've stopped myself running the CMD prompt by default, and I've installed it on all my test VPC machines. Firstly, I recommend you download the Windows PowerShell Graphical Help File . It's an old school Read More...
Filed under: ,
Changing the Desktop Wallpaper Programmatically on Windows
12 October 07 01:39 PM | john | 0 Comments   
My friend Scott asked me the other day how he might go about changing the desktop wallpaper programmatically. It's one of those things that is still buried in the native Windows Win32 API. The call you need is SystemParametersInfo and the action you need Read More...
Filed under: , , ,
Changing the Windows Log On Keyboard Layout to Dvorak
03 October 07 06:15 PM | john | 0 Comments   
If you found this entry, you are either a Dvorak keyboard typist searching for help or you are a strange individual who reads my blog but never leaves a comment. If you are the former then the link you are looking for is to this Microsoft Help & Support Read More...
Filed under: , ,
Adventures with PowerShell
26 September 07 02:44 PM | john | 0 Comments   
I've held off moving to Windows PowerShell. The reason is that I came up with a solution for running C# source directly from the command line as script a few years ago using CodeRunner .NET , and I've haven't had a pressing need for more functionality. Read More...
Filed under: ,
Getting Windows crash dumps
27 July 07 03:01 PM | john | 0 Comments   
Every so often I need get a crash dump for a crashing native process, and I always forget where to find the tools. The easiest to use is ADPlus which is part of the Debugging Tools for Windows . The best write-up I've found on other alternatives and how Read More...
Filed under: ,
Cool IE7 add-ins
24 July 07 07:47 PM | john | 0 Comments   
I have to say that Internet Explorer 7 still hasn't reached the level of functionality provided by Maxthon , but it's really close. So close in fact that I only use IE these days. The IE7Pro Add-in provides a few more cool features that are missing. Read More...
Hiding the Windows XP recycle bin
23 July 07 08:37 PM | john | 0 Comments   
I'm one of those folks that completely turns off the Windows recycle bin. Primarily, if I accidentally delete a file it's usually some source code that is also in version control, or it's a document and I always store documents on a backed up network Read More...
Filed under: ,
Getting accurate per thread timing on Windows
17 July 07 05:04 PM | john | 2 Comments   
If you need to accurately time operations in Windows, you're usually directed to the QueryPerformanceCounter API. This API is also neatly wrapped in .NET under the Stopwatch class. Indeed, this is this is simplest way to get reasonably accurate timings Read More...
Putting SxS errors in your face
01 May 07 09:18 AM | john | 2 Comments   
There are two schools of thought when it comes to unrecoverable software errors. One say that errors should be in your face and the other says that errors should be hidden (or at least smoothed over). It's not hard to see that the latter is a good approach Read More...
Filed under: , , , , ,
Side-by-Side Problems
28 March 07 02:05 PM | john | 2 Comments   
If you still write C++ code on Windows then sooner or later you are going to run into SxS configuration problems on Windows. At work we tend to run into them more frequently because the C runtime version is changing all the time (because we're building Read More...
Filed under: , , ,
3D Windows XP Screen Saver
28 August 05 01:36 PM | john | 0 Comments   
I was over at Building 20 on the Microsoft campus the other day and I noticed that all the lab machines were running a really cool 3D screen saver. I just had to have it! And here it is . A little more clicking leads me to a collection of Really Slick Read More...
Filed under: , ,
More Posts Next page »