Rob Chartier ~ Contemplation...

.NET, C#, Work, etc.

News






www.flickr.com
This is a Flickr badge showing public photos from Rob & Kat Chartier. Make your own badge here.


Even Quicker Links

May 2003 - Posts

New Security Bulletins - In case you missed them.
MS03-018 : Cumulative Patch for Internet Information Service (811114)

MS03-019 : Flaw in ISAPI extension for Windows Media Services could cause denial of service (817772)

More:

https://www.microsoft.com/technet/security/current.asp

https://www.microsoft.com/technet/security/bulletin/notify.asp

 

 

Posted: May 28 2003, 11:21 AM by Rob Chartier | with 1 comment(s)
Filed under:
Got Spam? Need a Solution? SpamBayes!

Ive been using the outlook plugin version of this for a few weeks now.  If you hate spam as much as I do, and want a decent solution, get it.  Its very reliable and you dont have to go through some other stupid provider that turns around and spams everyone you add.

After the intial setup it works excellent. From this morning:  Inbox: 3, Possible Spam: 5, Spam: 75.  After a quick review of the contents of the Spam folder I noticed it was perfect!  Not a single error.  Excellent job.  My new best friend.

 

New Article: Rewrite.NET -- A URL Rewriting Engine for .NET

This article examines how to take advantage of HttpModules to create a URL rewriting engine in .NET.

 

Posted: May 22 2003, 11:40 AM by Rob Chartier | with no comments
Filed under:
Another way to make sure only one instance of your program is running.

I just saw Wes' solution, and decided to show another approach to the solution, using WMI.  Here it is...

static void Main() {

     //yank off the appname.exe from the assemblies location

     string[] parts = System.Reflection.Assembly.GetExecutingAssembly().Location.Split("\\".ToCharArray());

     string appName = parts[parts.Length-1];

     //build the wmi query

     string query = "select name from CIM_Process where name = '"+appName+"'";

     //load up the managementobjectsearcher with the query

     System.Management.ManagementObjectSearcher searcher = new System.Management.ManagementObjectSearcher(query);

     int runcount=0;

     //iterate the collection and (which should only have 1 or 2 instances, and if 3 then its already running

     //1 instaces would be itself, 2 would be self and the other

     foreach (System.Management.ManagementObject item in searcher.Get()) {

          runcount++;

          if(runcount>1) break; //only need to know if there is more then self running

     }

     //if we are running only self (1) then load the form, else exit

     if(runcount==1) {

          Application.Run(new Form1());

     } else {

          System.Windows.Forms.MessageBox.Show("Application already running, exiting.");

          Application.Exit();

    }

}

Posted: May 22 2003, 01:16 AM by Rob Chartier | with 8 comment(s)
Filed under:
The Matrix...

This is just one of those things that every tech geek must post about.  From what Ive read most of us actually enjoyed the show.  As long as you go into the show only expecting pretty pictures and fast scene's in slow motion you will do ok. 

Dont go in hopeing that the story will make much sense, or expecting the plot to be well formed and consistent.  IMHO they strung a bunch of crap ideas into a nicely packaged box. 

This and this were pretty cool things to see though.

Thats all I have to say.  Good Night

PS. This was written on my palm just after the show, in my car.  How cool is that?

Edit: Anyone other than me see the resemblances with Superman (flying, cape->coat) and Ghostbusters (keymaster/keymaker -> gatekeeper/mainframe, ghostbusting)?

 

INETA Invite..

I got an invitation sent my way also.  I got most of the requirements met but may fall a bit short of the ole "Fame" requirement.  Thats ok im sure we can work on that.  Maybe ill bring in a DJ and some dancers for my first few presentations.  :)

 

Posted: May 22 2003, 12:30 AM by Rob Chartier | with no comments
Filed under:
AspInsiders.com
I have recently been invited to become a member of the new MS ASP.NET community site ASPInsiders.com. Its nice to see that MS is finally taking this in their own hands.
Welcome...
Welcome to the Palm Blog, Written by Robert Chartier (rob@santra.com)
First post from my pda
Version 0.1 of my palm blog app is almost done. ll post a download once its complete.

It uses a custom app and com conduit with c#. Write and edit entries on your pda and upload during synch.

if you want a beta copy fire me an email.
Posted: May 06 2003, 06:18 PM by Rob Chartier | with 1 comment(s)
Filed under:
More Posts