Archive for 'General Programming' Category
WWWinamp v4.1 WCF Client Example
25 August 2007Along with this new version of WWWinamp, I am also releasing with it a small example of how to interact with WWWinamp using WCF from another application. This example is a Windows Forms application written in C#. Because this is a WCF application which uses .NET 3.0, you will need the following items installed in [...]
What’s up with WWWinamp?
15 August 2007I thought I’d take some time and post the latest on where I’m at with WWWinamp.
The next version (v4.1) will be released within the next month. This version brings with it several small and several large changes.
Some of the smaller changes are:
- Minor UI changes to the application
- Increased Library size and search speed
- Increased [...]
Creating a Custom Listener for your WCF application in C#
19 May 2007Microsoft already provides a couple great listeners that are great for debugging. The two most commonly used are XmlWriterTraceListener and TextWriterTraceListener, which both dump the diagnostic messages to the file you specify in the configuration options. Microsoft has a great article on how to use these trace listeners for message logging within a WCF [...]
Reading ID3 Tags using C#
21 February 2007I'm currently working on an application which will read through a directory full of MP3's downloaded from USENET and then sort them into sub-folders titled after the "Artists - Album" stored within the ID3 tag.
I currently only have code that can read ID3v1 tags but am working on updated code which will allow for ID3v2+ [...]
Generating Apache compatible .htpasswd users in C#
28 January 2007I've been working on my web server component for a while now and I've recently arrived at the point where I would like to start implementing user authentication. I've decided to go the route of Apache's .htpasswd files, this way configuration and directory trees created for my web server component can be moved over to [...]
Why does the Microsoft .NET implementation of GZip compression suck?
22 January 2007I've been working on a self contained patch generator using C#. For the patch data payload, I wanted to use GZip (or deflate) to compress the payload, this way if you generated a patch for a 1MB file, the patch file wouldn't be +1MB (5 bytes per change).
I did some quick tests to compare compression [...]
Converting a File to byte[]
19 January 2007In a previous post I had talked about how I was thinking about embedding files into my program by just declaring them as byte[] arrays and using the data within these arrays as a way to compile the information straight into my EXE. Of course using an embedded resource in C# would be better (which [...]
Embedded Resources in C#
19 January 2007So last night I was trying to think of the best way to compile images into the WWWinamp EXE.
One way I had considered was converting the images into a byte[] and then just putting this into the source code. The images I was working with were only about 200 bytes long, so this could be [...]