I have a web site where I need to dynamically create rtf reports. I decided to use Asp.NEt 3.5 routing, (maybe I’ll discuss another day) so I can redirect request like http://localhost/Myapp/reports/reportwizard/14/Report.zip to an handler that dynamically creates the zip file and stream it to the client browser. Here is the code Dim service As [...]

Continue reading about Use ICSharpCode.SharpZipLib to write directly to Response.OutputStream in a asp.net application

This argument is discussed in the excellent book “Why Software Sucks“, password policies are really useful? I give you my opinion. I have really a lot of username/password ranges from my home banking account to various sites like, flickr, dotnetkick etc etc. My problem is that the amount of passwords is becoming really huge and [...]

Continue reading about Is policies for password really useful?

Suppose you have this simple class (has no business meaning is valid only as example) public class MyObject { public static MyObject NullValue = new MyObject() { Value = -100, Name = String.Empty }; public Int32 Value { get; set; } public String Name { get; set; } public string Greet() { return "Hey!! My [...]

Continue reading about LINQ, SingleOrDefault and NullObject

Lambda Lover – argument parser
on August 20th, 2008
On category: LINQ

There are a lot of situations where LINQ and Lambda expressions can make your code simpler to write and also simpler to read. Today I stumble across an extension of a really old project. This project pass one parameter to a function, and this parameter is a list of comma separated BlockName. Despite the business [...]

Continue reading about Lambda Lover – argument parser

This morning I browse some stats that google made on my blog, and saw that there are some 404 (Not Found) page. After some inspection I see that all the 404 have the form http://www.nablasoft.com/Alkampfer/xxx They have capital A for Alkampfer, if I changed the Alkampfer in alkampfer everything work……the strange thing is that I [...]

Continue reading about WordPress and permalink make your url case sensitive