Nunit web.config

by Mike Linnen 5. February 2004 23:30
Nunit web.config

While working on FlexWiki security enhancements I needed the ability for my NUnit tests to execute some code that pulled configuration information out of the web.config file.  Since the NUnit tests ran in another directory while executing the tests inside of the VS.NET IDE I needed to have the configuration file to exist in the directory where my test DLL resided.  Here is what I put in my SetUp code of my test harness to copy the config file.

[SetUp]

public void Setup()

{

// Copy the web.config over to the nunit directory so config seetings can be loaded

File.Copy("..\\..\\..\\FlexWiki.Web\\web.config","FlexWiki.UnitTests.dll.config",

true);

Amazingly enough this was enough to get my tests running.  However if I run the tests using the nunit-gui the configuration settions are not found.  I suspect it has something to do with where the Nunit-gui.EXE is located.  I am not sure how I am going to figure out where to copy the configuration file in this case.

Tags:

Software

C# X10 source code

by Mike Linnen 26. January 2004 23:08
C# X10 source code
I stumbled across an X10 .Net Library today.  Looks like this will be a great start for my HomeAutomation project.

Working on FlexWiki

by Mike Linnen 22. January 2004 18:21
Working on FlexWiki

I checked in some bug fixes to FlexWiki at lunch today with regards to URL parsing.  Some of the special characters used in many URLs were not rendering.  I noticed this in my Intranet installation of FlexWiki at work.  I probably could have used an external link to solve my problems but I don't like the way the external links look. 

I have been using FlexWiki at work every day now.  Several other people have started to catch on in it's usage. We are starting the design phase of our next version and using FlexWiki has worked great as a way to consolodate a set of questions in a central place for review in design meetings.

Tags:

Software

Secure Wiki

by Mike Linnen 20. January 2004 21:43
Secure Wiki
I played around with FlexWiki to see if I could create a secure Wiki.  I decided to add a Login page and use Forms authentication.  Since I only wanted one namespace secure I decided to create another subdomain to hold the secure namespace.  Of course this required me to fully load the FlexWiki binaries and configuration files into the new subdomain but that is ok for now.  It seems to work ok.

Tags:

Software

Kickoff Home Automation project

by Mike Linnen 16. January 2004 07:48
Kickoff Home Automation project
Started to look at the first piece of development for my HomeAutomation system.  I decided to work on the scheduling functionality since a majority of my tasks will require to be scheduled.

Home Automation

by Mike Linnen 11. January 2004 18:55
Home Automation

It came to me today that my ideas on a Multimedia PC really falls under Home Automation.  I think a lot of things I want to do with this PC are directly related to Home Automation and the media player portion of the tasks are a subset of the Home Automation device.  So I am going to change the Namespace on my Wiki from Multimedia to HomeAutomation once I get a chance.  This will make the wiki a little broader in it's content.  I Think I will also change the Multimedia Blog category to Home Automation.

 

Hike Ford Canyon

by Mike Linnen 11. January 2004 08:37
Hike Ford Canyon
Dad and I hiked part of the Ford Canyon trail at the White Tank Mountains Regional Park.  We started at the #9 Area on Ford Canyon road and hiked in 2.5 miles.  We ended up short of the Abondoned Dam but it was real pretty.  The trail started to get tough at about 2.0 miles in where you start getting into the canyon.  Take a look at the Hiking gallery for a couple pictures.

Tags:

Family

Multimedia application

by Mike Linnen 9. January 2004 21:49
Multimedia application

I have an old PC that isn't really doing anything so I decided to make it into a multimedia PC for my home entertainment center.  I looked around a little bit to see if there are any freeware applications that will handle this application.  I found Freevo and MythTV.  Both of these applications are Linux based which is ok for some people but I am a .Net developer so I wanted a Windows .Net solution.  I haven't found anything that is written in C# so I decided to start my own for now to see how far I could take it.

Here are some things I want to do

  • Play MP3
  • Play My Home Videos
  • Slideshow pictures
  • X10 Home control
  • Speech and Voice recognition
  • Record TV Shows
  • Monitor Home Security
  • Get News feed with speech
  • Weather reports
  • RSS Aggregator
  • Internet Radio
  • Home Wiki
  • Audio/Text Message center
  • Allarm clock
  • Play Games

I started a Home Automation Wiki Wiki to keep notes on my progress.

 

CachDependency is neat

by Mike Linnen 7. January 2004 22:06
CachDependency is neat

I just finished a bug in the FlexWiki project that had to do with the System.Web.Caching.CacheDependency object.  What a cool object!  You can tie a cached item to a collection of files.  When one of the files is changed the cached item is cleared.  I did not relize the System.Web.Caching namespace had such an object. 

Tags:

Software

Finished FlexWiki enhancement

by Mike Linnen 7. January 2004 06:35
Finished FlexWiki enhancement

I finished an Xml Transform enhancement for the FlexWiki open source project late last night.  I plan on using this feature to extract XML configuration information from the integration and test servers that run multiple instances of a web application.  It is always painful to keep the documents up to date on what versions of the software are installed on the machines.  Now I will be able to navigate to a wiki page and display the information.

This is the second enhancement I coded for the FlexWiki project.  The first enhancement allowed a user to restore a previos versioned page as the current one.

I plan on contributing more to this project as time allows.

 

 

 

Tags:

Software

About the author

Mike Linnen

Software Engineer specializing in Microsoft Technologies

Month List