Sunday, April 30, 2006
Monday, April 24, 2006
Useful Subversion Documentation
Tuesday, April 18, 2006
Shredding a File
I was wondering how to shred a file with C# the other day so I wrote the following lines of code.
System.IO.FileStream stream = new System.IO.FileStream(label1.Text, System.IO.FileMode.Open);
byte[] readbytes = new byte[stream.Length];
long length = stream.Length;
int position = 0;
for (int i = 0; i < readbytes.Length; i++ )
{
readbytes[i] = Randomize();
}
stream.Write(readbytes, position, (int)length);
stream.Close();
System.IO.File.Delete(label1.Text);
I know that the contents of the file will changed before it is deleted, but does the file get written back to the same exact location on disk? The great wiseman, Google, doesn't seem to be of much help on this one.
Wednesday, April 12, 2006
Composite UI Application Block (CAB) Talk
I'm sitting here are at the question and answer period of the Ann Arbor .NET Developers Group(www.aadnd.com). Tim Landgrave did a fantastic talk on the Composite UI Application Block from Microsoft. I don't have a lot of time right now, so instead of writing a lot, I'm going to throw in some links that could be useful if one might be interested in learning more...
Monday, April 10, 2006
Interesting thing about deploying webservices and a welcome back
I have several webservices that i needed to deploy which seemed to go well initially. Then I needed to update one of them. It worked fine on my machine, but when I deployed the new DLLs, my new webmethods disappeared! Hmmmmmm. Google was of little help, so i started thinking about the differences between my machine and the remote machine. The only thing that i could come up with was the "App_Code" folder. The code on the remote machine was not up-to-date. I didnt think this should be an issue, since all that matters is the DLL, right? WRONG! Once i deployed the code file from the "App_Code" folder, my webmethods magically reappeared!
I stumbled onto this post that gives a nice explanation:
http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.dotnet.framework.webservices&tid=799d479c-02f4-4dfe-a613-a7bb6debde38





