Mark Brown

Nota Bene

June 2004 - Posts

Spying on spyware

Sheesh, 1 in 3 machines are infected.

“Internet access provider EarthLink and security software maker Webroot scanned nearly 421,000 computers for their April Spy Audit report. Trojan horses and system monitors accounted for 133,715 pieces of the spyware found on those computers--representing almost one in three machines.“

Mono Beta 3 Released

Ug. Novell has gone ahead and released Beta 3 of mono. I just got Beta 2 installed a week ago.

Posted: Jun 16 2004, 12:26 PM by markbrown | with 2 comment(s)
Filed under:
Scripting the XP IIS single site limitation

The single site limitation in IIS on XP is frustrating. Since I can't have more then one site on the box, I needed a way to quickly change the Home Directory of the root web. To satisfy my need I came up with this little script.

' setw3.vbs
Dim objArgs
Set objArgs = WScript.Arguments

If objArgs.Length = 0 Then

  ' Use the current patch
  Set WshShell=WScript.CreateObject("WScript.Shell")
  Set fs = CreateObject("Scripting.FileSystemObject")
  currentPath = fs.GetAbsolutePathName(".\")

Else

  currentPath = objArgs.Item(0)

End If

Set IISObject = GetObject("IIS://LocalHost/w3svc/1/Root")
IISObject.Path = currentPath
IISObject.Setinfo

I put this script in my path and can call it from the command line or a batch file. 

For example:

w3set “e:\dev\project1“

or a batch file sitting on my Desktop

cd /D e:\dev\project1
w3set

Posted: Jun 16 2004, 07:48 AM by markbrown | with 2 comment(s)
Filed under:
Unit Testing in all VS 2005 Versions

I agree with Scott.

“Unit Testing support should be included with all versions of Visual Studio 2005 and not just with Team System.“

I've been wondering why this was only available in the Team System.

Here's Peter Provost's origianl post.

Posted: Jun 14 2004, 09:54 AM by markbrown | with no comments
Filed under:
Integrate NUnit into the IDE

As I've mentioned before I've been jumping into NUnit more and more lately. I just found this little gem to integrate NUnit and the IDE.

“TestRunner seamlessly integrates NUnit testing and debugging into a compact Visual Studio .NET 2003 add-in.“

http://www.mailframe.net/Products/TestRunner.htm


1using System;
2using NUnit.Framework;
3
4namespace TestRunner
5{
6 public class Library
7 {
8 public static string HelloWorld()
9 {
10 return "Hello World!";
11 }
12 }
13
14 [TestFixture]
15 public class UnitTest
16 {
17 [Test]
18 public void TestEqual()
19 {
20 string TestString = Library.HelloWorld();
21 Assert.AreEqual("Hello World!", TestString );
22 }
23 }
24}

 

Posted: Jun 11 2004, 09:33 AM by markbrown | with no comments
Filed under:
Microsoft Security Updates via RSS

"TechNet is now providing an RSS (Really Simple Syndication) Feed for its Security Bulletins, with more RSS content for IT pros on the way in the months ahead. RSS feeds deliver new content to you on the topics you are interested in."

http://www.microsoft.com/technet/security/bulletin/secrss.aspx

Windows XP Service Pack 2
Everyone who develops applications for the web needs to start thinking about the upcoming release of this service pack. Read  How to Make Your Web Site Work with Windows XP Service Pack 2.
Virtual PC Tip

This is probably common knowledge but it just dawned on me after installing Virtual PC for the first time. Make a copy of your Virtual PC Hard Disk before you start installing other software. This allows you to have a clean OS build anytime you want to start over.

Visual Studio 2005 Beta Install

I've been having problems installing the May CTP inside a Virtual PC host. The error log message had this entry:

Errror 1310: Error writing to file: CppCodeProvier.dll. Verify that you have access.

This blog entry gave me some clues but didn't solve my problem. The solution that worked for me was to copy the Visual Studio directory locally and create a share that the VPC host could access.

Posted: Jun 10 2004, 09:33 AM by markbrown | with no comments
Filed under:
Burning ISO Images

From MSDN Downloads:

"Common utilities for writing an ISO file to recordable media such as CD-R include ISORecorder and Nero. The contents of images files can be extracted to hard drive using utilities such as ISObuster or DaemonTools. Image files can be mounted locally using the Virtual CD-ROM Control Panel for Windows XP."

More Posts Next page »