First impressions of Linq Expression<>

While at work yesterday, I saw a whole bunch of code like if (memberid > 0) parameters.Add(new SqlParameter(“@memberid”, memberid)); if (groupid > 0) parameters.Add(new SqlParameter(“@groupid”, groupid)); if (industryid > 0) parameters.Add(new SqlParameter(“@industryid”, industryid)); … and so on. It would be easy enough to squeeze it down to something like InsertIfGz(“@memberid”, memberid); InsertIfGz(“@groupid”, groupid); but it [...]

Continue Reading...

No Comments

Notes on compiling LinuxSampler

I just installed Ubuntu 9.04 (64-bit) on a new machine and am currently in the middle of compiling LinuxSampler, and for some reason had to make source changes to the latest stable to get it to compile. For starters, I had to run configure with –prefix=/usr. Don’t know whether that’s a 64-bit thing, a me-being-noob [...]

Continue Reading...

No Comments

Dynamic Robots.txt with ASP.NET 2.0

I needed to do this recently and I couldn’t find any instructions on the web. There were bits and pieces here and there, but nothing all in one place – and you need to know what you are looking for.

So here it is – step by step explanation on how to create a dynamic robots.txt file (or any text file for that matter) with IIS 6.0 and ASP.NET 2.0

Continue Reading...

5 Comments