lamp

September 2005 - Posts

Event Serialization Follow Up...
26 September 05 10:51 AM | Frederick.Chapleau | with no comments

A long time ago (about two months), I said that we cannot serialize Events... I was wrong! We can serialize events, as long as everything, including Delegates and EventArgs are serialized.

Also, do not forget to serialized delgated method holder (objects that hold the delegates pointed by the Handlers). Everything is serialized, except if you mark it NonSerialized, or [field:NonSerialized].

Check out this MSDN Magazine Article that explain how it works.

-f.

Filed under:
VS 2005 Release Candidate is out!
19 September 05 02:06 PM | Frederick.Chapleau | with no comments

The latest version of Visual Studio 2005 is out! After working about 6 month with the Beta 2 release of Visual Studio 2005, the release candidate is finnaly available to download for MSDN Subscribers. My first impression? I've just take a look at it, to find out if I can open my old dirty VS2003 projects, so that I can use the awaited feature to copy over ASP.Net site using the Syncronization tool (so that unchanged things are not copied). I've found a MS.Build configuration File that can be used to target VS 2003 in Visual Studion 2005.

You can also use the Microsoft Toolkit for VS 2005 RC, like seen on Ohad's Weblog. But, guess what, it did not worked with the Release Candidate, maybe because the RC in the name was for the Toolkit keyword, and not VS...

-f.

 

Filed under:
Common Design Patterns, a good resource
13 September 05 11:56 AM | Frederick.Chapleau | with no comments

The bible of design patterns is probably like I have said previously , Design patterns, Elements of Reusable Object-Oriented Software. Because I did not want to buy the book (yeah, I'm cheap), I have search the web to find out basic patterns for a friend of mine. I have finnaly found Do Factory that explain all those patterns and includes code exemples too.

-f.

Filed under:
RSA 1 Encryption using SNK File generated from SN.exe
09 September 05 12:00 PM | Frederick.Chapleau | with no comments

After looking for the better way to SSL like (public & private key to authenticate data), I have found a pretty good article on The Code Project that abstract the complexity of interacting with the Encryption namespace in .NET.

You just have to generate the key using the sn.exe -k command, and extract the public key using the sn.exe -i . After that, the client just need the public key to authenticate that the owner had the private key when generating the current data.

Here is the link: http://www.codeproject.com/dotnet/PerKeyGen.asp

-f.

Filed under:
Generate GUID from the Tray
01 September 05 07:50 AM | Frederick.Chapleau | with no comments

One day I was bored of generated GUID from what ever the source. So I have just design this small utility to generate GUID from the Tray Icon.

Here it is.

Filed under: