9 January 2011 - 11:45 PM / by Dominic Pettifer. 0 Comments for AutoMapper – A Custom Type Converter That Exposes a Destination Value.
Cool C# Snippets - Writing a custom ITypeConverter for AutoMapper is easy, just write a class that extends the TypeConverter<TSource, TDestination> abstract type. But it’s possible to supply a pre-instantiated destination object during conversion which the TypeConverter type doesn’t expose.
29 July 2010 - 11:50 PM / by Dominic Pettifer. 3 Comments for Static Variable Gotchas - Are Static Variables in Base Classes Shared In Derived Sub Classes?.
Development Gotchas - Something that caught me out recently is the behaviour of static variables in C# classes, and how they behave in derived classes. Also how does this differ with static variables in Generic<T> base classes? Finally, we use this understanding to create a generic base Singleton class.
15 May 2008 - 2:23 PM / by Dominic Pettifer. 12 Comments for GZip compress your website's HTML/CSS/Script in code.
Cool C# Snippets - Dynamically GZIP compress the HTML response of your website in code, without having to configure IIS directly. Make massive savings on your websites bandwidth.
11 October 2007 - 1:43 PM / by Dominic Pettifer. 1 Comment for Using Namespace Aliases.
Cool C# Snippets - Ever get tired of prefixing class names with the fully qualified namespace to avoid class name and namespace conflicts (eg. System.Namespace.AnotherNamespace.User). Well there’s a way around it using Namespace Aliases.
27 November 2006 - 7:57 PM / by Dominic Pettifer. 6 Comments for Measuring Page Execution Times for ASP.NET Pages.
Technical Article - Someone asked me about the page execution time shown at the bottom of this (and every) page. So I thought I would post an article on how to incorporate a page execution timer in your own ASP.NET pages. It’s fairly simple but requires an understanding of the ASP.NET page life cycle.
Result of Stored Procedure using output params and a recordset (from the blog Output Parameters AND Recordsets From a Stored Procedure )
And YouTube still auto-fucking-plays videos!! This is TWO-THOUSAND-AND-FUCKING-TWELVE FFS!!!
about 20 hours ago from webOn a side-note, YouTube's commenting system is god-awful atrocious dreadful horrible horrible horrible!! Constant meaningless error messages
about 20 hours ago from webJavaScript is slow mmmkay http://t.co/NbB4eQjw - Actually, no, it's not http://t.co/kpGEIoPO #nodejs
about 20 hours ago from webTFS: It's super expensive, so it must be brilliant, right? Like Sharepoint #tekpubtfstitlesuggestion
5:22 PM February 3rd from web