RSS
 

Archive for juillet, 2005

Unit testing in Visual Studio

27 juil

TestDriven.NET is a great tool for UnitTesting in VisualStudio.

It uses NUnit to test from the code. So you can build tests inside your class and test your code from the context menu. Much more to learn if you read the doc. This is just a reminder…

To compile project you need to add a reference to:

C:\Program Files\TestDriven.NET 1.0\NUnit\NUnit.Framework.dll to get NUnit.framework as reference. So you can also add “using using Nunit.framework” to your namespace.

Here is a demo of the code to write for testing:

[TestFixture]

public class test

{

[Test]

public void ExportToFileFromDSasHTML()

{Debug.WriteLine(« Test »);

}

}

 
 

Use CD-RW as a Floppy

27 juil

Windows XP method to write to CD-RW is very bad. It works exactly as if you burn a regular CD-R except that you can “reformat” (Erase) the whole CD. So, to change a file on disk, you need to start over (Reformat, transfer files, and Burn).

SO CD-RW is not a giant floppy disk for Windoze, there is software that will allow one to treat it as though it was.

The two that I know of are Roxio’s Direct CD and Nero’s InCD.As I understand it InCD is almost as unreliable as Direct CD. Direct CD is awful. The XP built-in software does not have that kind of capability.

Note: Adaptec DirecCD is now holded by Roxio. Good time’s gone. Need to get it from the EasyCDCreator C… or find another solution.

 
No Comments

Posted in Tips

 

SPS vs WSS on user selection for security

13 juil

There is some major differences between WSS and SPS concerning the user selection to provide rights.

When you add people in SPS, you select users from AD. You see the users and the groups from the interface. I shoud say, AD Users and Security group.

I once had an argument with a client’s network admin about AD Groups. If you create an Exchange group (Distribution List) you cannot properly use this is SPS.

Worse, if you upgraded from an old NT4 PDC to Active Directory, you may cross some weird behaviors. To get rid of this, be sure that you use only AD security groups. And don’t try to mix Exchange Distribution List with SPS security settings.

When I wrote those lines, I had some problem to express what happened.

In WSS though you can use Exchange Distribution List (Remember… Not in SPS). User selection in WSS is not from AD. It is only by e-mail address. That means, if you select an Exchange Distribution List, it will paste all the e-mail addresses contained in the DList to the WSS interface. So, it wont really use the distribution list has a group, but only a path to retrieve the list of e-mail address.

Also, remember that is won’t be dynamic. So If you modify the DList, WSS won’t be sync. with the DList. There is no link between.