code-o-rama
code that won't rust, bust, pick-up dust, burst, buckle or bend
October 2007 - Posts
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...
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...
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...
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...
The Singleton Pattern in .NET and C#
11 October 07 09:18 AM
|
john
|
0 Comments
I just got bitten by a static initialization problem - again. There are two things you've got to be careful of in .NET when using statics (i) threading issues and (ii) initialization ordering issues. I'm not going to go into a great long discussion about
Read More...
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...
Search
Go
This Blog
Home
Tags
.net
.net 2.0
.net 3.5
2003
assembly
bugs
c#
c++
coding
command line
console
coverage
debugging
dll
dvorak
editing
ethereal
fonts
fun
funny
hardware
help
ide
instrumentation
internet explorer
keyboard
macro
microsoft
msbuild
mstest
mvid
network
nunit
packet
performance
points
powershell
probing
profiling
refactor
registry
safe code
screen saver
security
side-by-side
strong name
sxs
tcptrace
team foundation
team system
test signing
tfs
tips
tracing
tweaks
unit test
validating reader
vb
vista
visual basic
visual studio
vs
windows
windows installer
winpcap
wix
xbox 360
xml
xp
Navigation
Home
Blogs
Photos
Archives
February 2008 (2)
January 2008 (2)
December 2007 (1)
October 2007 (6)
September 2007 (1)
July 2007 (7)
May 2007 (3)
April 2007 (2)
March 2007 (5)
February 2007 (3)
January 2007 (3)
December 2006 (2)
November 2006 (2)
May 2006 (1)
January 2006 (3)
December 2005 (2)
August 2005 (3)
Useful Links
C# Code Format
Director of Random Technologies
Syndication
RSS 2.0
Atom 1.0