November 2009 Entries
I’m typing this while looking at my computer through my brand new pair of Gunnar Optiks Rx glasses. They were waiting for me this evening when I came home from work. There’s not much to say yet, I’ll update this post after I use them for a while, but I think it’s worthwhile putting down my first impressions. First off, my order took two and a half weeks to get to me. Apparently there was some mix-up at the lab and Gunnar received the wrong frames the first time around, so they refunded my $10 shipping fee and...
UPDATE 02/03/2010: You might NOT want to use this method as it screws up Page Caching: http://blog.statichippo.com/archive/2010/02/03/response.flush-and-the-crimes-against-page-caching.aspx This post is sort of in response to another post of mine entitled Rendering ViewPage to random stream (or not). Back then I was looking for this solution. Now I found it! If you’re not familiar with Response Filters, read the MSDN article and this quick example at aspnetlibrary.com. Basically, Reponse Filters are used to filter output before it gets sent downstream. This is useful if you want to, say, replace certain special characters. Background & the existing Response Filter...
I saw a post entitled Run Async tasks with Fluent Interface written in response to another post entitled Async without the pain. I suppose this post is my response to those posts. While I liked what I saw there, there were some things I wanted to add (like the ability to block until tasks complete), so I wrote my own class along the same lines. There are still some things I’d like to add (like the ability to queue tasks into jobs that run in order), but this works for me right now for what I’m...
We’re using LINQ-to-SQL (L2S from here on in) for a new project. L2S has a number of drawbacks, and those are especially underscored when working with a very old and severely ‘lagacy’ database. L2S has a 1:1 relationship between tables and objects and a 1:1 relationship between columns and properties. That doesn’t work very well if your database doesn’t map to the business objects you wish you had ;). L2S also has a very tight relationship with your business entities which will make any sort of move away from L2S near impossible the larger your app gets....
We recently had a little dilemma that I’m sure others have had. We have a lot of areas of our pages that are rendered using RenderPartial or RenderAction (part of MVC Futures) and we want graceful handling of exceptions. Of course exceptions shouldn’t happen, but sometimes they do (if only everyone practiced TDD…), and with 1M hits a day we would like to be able to at least show as much content (and ads ;) as we can – even if something does go wrong. ViewEngine & IView So I was approached about this issue and...