Populating Object from Text Files via Reflection

Download readfileviareflection.zip In .Net, an XML file or even a CSV file can easily be mapped to an object using proper attributes. Using the reflected object type, such XML or CSV files can easily be deserialized into the corresponding object.

Read More →

File.Exists and UNC

If you have used System.IO.File.Exists in ASP.Net, you probably have found out that unless the account under which ASP.Net is running (e.g. ASPNET for Windows XP and IIS_WPG for Windows 2003 Server, etc) has access to a networked location (either…

Read More →

dasBlog on Mono? Not so easy

Over the past few months, I have been tempted to convert the current version of dasBlog to run under Mono (Note, there is a much older version that runs on Linux/Mono http://www.go-mono.com/ports/).

Read More →

ToString() and Error Logging

In production environment, it is not always possible to step through the compiled code using a debugger and thus we rely on error logs to provide insights into the potential causes of bugs.

Read More →

Simple is Beautiful

A recent post by independent blogger Richard Stiennon on ZDNet http://blogs.zdnet.com/threatchaos/?p=311 on the system calls involved when viewing a simple html page has generated much heated debate over which operating system is more secure (Windows vs. Linux).

Read More →