Tags
.NET ADO.NET AggregateException Anti-pattern asp.net ASP.NET MVC C# C# 3 Code Quality ConcurrentDictionary Conference CTP/Beta Database data design DDD DDD Scotland Debugging design patterns error handling fun Google Analytics hiring IIS Installation javascript learning LINQ object oriented design parallelisation parallelization PHP refactoring security software development practices Spatial SQL SQL Injection Attack SQL Server SQL Server 2008 unit testing virtual earth visual studio Visual Studio 2008 Windows 7 Windows VistaMay 2012 M T W T F S S « Apr 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Archives
- April 2012
- March 2012
- February 2012
- January 2012
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- March 2007
- February 2007
- December 2006
- July 2006
- April 2005
Tag Archives: C#
Checking for NULL using Entity Framework
Here is a curious gotcha using the Entity Framework: If you are filtering on a value that may be null then you may not be getting back the results you expect. For example, if you do something like this: var … Continue reading
Handling bounces on Amazon SES
If you send to an email that does not exist, Amazon SES will perform some handling of the bounce before passing the details on to you. When you send email through Amazon SES you may notice that the email arrives … Continue reading
Verifying Senders with Amazon SES
I’ve already written a couple of pieces about Amazon Simple Email Service (SES) on sending Email and sending emails with attachments. Why do you have to verify senders? It is important to note that while in development mode you have … Continue reading
Sending more than a basic email with Amazon SES
Previously, I wrote about getting started with Amazon’s Simple Email Service, and I included details of how to send a basic email. The SendEmail method is excellent at sending basic emails with HTML or Text bodies. However, it doesn’t handle … Continue reading
First(OrDefault) Vs. Single(OrDefault)
There are two mechanisms (each with an …OrDefault variant) in LINQ for getting one item out of an enumeration. They are First and Single. There is a difference between the two and you can produce code that functions incorrectly if … Continue reading
LINQ query performance
A while ago I was reviewing some code and I came across some code that looked like this if (corpus.Where(a => a.SomeProperty == someValue).Count() > 0) { // Do Stuff } And it got me thinking that it may not … Continue reading
Opting out of Google Instant Browsing
I recently wrote about a new feature of Google Chrome called Instant Browsing. You can turn it on or off Basic tab of the Options page in Chrome. If you are a web site owner/administrator and are concerned about the … Continue reading
Tip of the day: Splitting a string when encountering whitespace
In .NET the string class has a Split method that splits the string at the separator character(s) that you specify. However, if you want to split the string at any instance of whitespace you don’t have to create a Split … Continue reading
Building messages in parallel
I recently saw some code where the developer was attempting to build up messages inside tasks that were being reported outside of the task. In a sequential system it is easy enough to do this. You have various options available … Continue reading
Posted in Software Development
Tagged .NET, C#, ConcurrentBag, parallelisation, parallelization, shared data
Leave a comment
Parallel Tasks and the HttpContext
A few days ago I spotted a question on StackOverflow by someone trying to use a parallel loop in an ASP.NET application. It may have been an ASP.NET MVC application (I don’t recall) but the issue is the same. This … Continue reading
Posted in Software Development
Tagged .NET, asp.net, ASP.NET MVC, C#, parallelisation, parallelization
4 Comments
