Wes' Puzzling Blog
... trying to solve the puzzles of .NET
-
I updated my Blog CSS
I ran across JS Greenwood's blog the other day and I liked his layout so I stole some some of his CSS (with his permission of course). Thanks for the layout James!
-
C# Tips and Tricks
I have been starting to participate more in newsgroups, in particular microsoft.public.dotnet.languages.csharp. I figured I have learned a lot from the .Net community and I should share my knowledge. It truly is amazing how much better you understand things when you have to explain it to others.
-
Project Distributor
I just signed up on Project Distributor, a web application that Darren Neimke created to help distribute small pieces of software to the rest of the world. It has a feed so you can stay up to date.
-
Virtual PC 2004 SP 1
Get it while its hot: SP1 for Microsoft VPC is available at Microsoft Downloads.
-
Why can't you create a Generic Class that inherits from Attribute in C#?
Today I was creating a set of attributes for a project I'm working on and I attempted to create a generic class that inherits from Attribute and I didn't think anything more about it until I compiled and got the error: "error CS0698: A generic type cannot derive from 'Attribute' because it is an attribute class".
-
echo %RANDOM% ... {0, 32767}
I knew there are environment variables for SystemRoot, UserProfile, etc, but I didn't know about the %RANDOM% variable that when used will generate a random number between 0 and 32767.I remember a few years ago I needed to generate a unique name for something in a batch file and I had to use an external program to generate a random number. This can come in handy for generating temporary and/or unique file names.For a complete list of Windows XP Environment variables see Command shell overview. -
Run++ Beta 0.7.2.0 released
I have released a new version of Run++With this release I also put up a discussion forum to more easily get feedback from the community. -
How to create a stream from a string in .Net
Yesterday I needed a way to take a string and create a stream from it. I did some searching but I didn't find any clean way. Here what I came up with in C#:
-
Weblogs @ ASP.Net MainFeed...?
I just now noticed that http://weblogs.asp.net/MainFeed.aspx == http://weblogs.asp.netMainFeed.aspx?GroupID=2, meaning that the MainFeed now only has Microsoft Bloggers. Did I miss an announcement about this or is this just a mistake? I was thinking that Weblogs @ ASP.NET has been a little light as of late. I only subscribe to the Main Feed so I have been missing some posts lately.I hope this is only a mistake and will be fixed soon because I get most of my traffic from the MainFeed or Google, I don't think anyone subscribes directly to my blog. Maybe I will need to start following Scoble's advice How your blog will get discovered. -
First Beta Release of Run++
Features