blog.dezfowler.com
Derek says:: December 2014
http://blog.dezfowler.com/2014_12_01_archive.html
Camera memory card backup on the go. On previous holidays we took a portable hard disk with built-in card reader which worked really well however you don't seem to be able to buy these any more. I'm guessing, these days, with more portable PC options like netbooks or ultrabooks a lot of people use those to back up so demand for an alternative has dropped. An iPad with a decent size internal storage and a lightning to SD adapter. Would also be an option. What we ended up taking with us was:. Using the USB...
blog.dezfowler.com
Derek says:: October 2010
http://blog.dezfowler.com/2010_10_01_archive.html
The Null Object pattern and the Maybe monad. Dmitri Nesteruk’s recent post Chained null checks and the Maybe monad. Struck a chord with me as I had messed about with something similar. For performing a visitor-esque operation. I’ve glanced at a few posts about monads in the past however this is the first time I’ve had a proper look at one of them. The purpose of the Maybe monad. The implementations in .NET that I could find vary quite widely:. Maybe monad in Lokad shared libraries. M ’a Lib. Maybe T publ...
blog.dezfowler.com
Derek says:: May 2011
http://blog.dezfowler.com/2011_05_01_archive.html
Bulk upsert to SQL Server from .NET. Or, “How inserting multiple records using an ORM should probably work”. It’s possible to drastically improve on this by making use of a couple of features already supported in the .NET Framework and SQL Server and I’m hoping that a similar solution will feature in future releases of the major ORMs. The NET Framework’s SqlBulkCopy. Class allowing you to take advantage of BULK operations supported by SQL Server. SQL Server temporary tables. SQL Server 2008’s MERGE.
blog.dezfowler.com
Derek says:: October 2012
http://blog.dezfowler.com/2012_10_01_archive.html
NFC payments - it's not for you! NFC payment terminals are becoming more common and all the credit/debit cards in my wallet have supported NFC for about 6 months which is great as it's much more convenient, especially for buying a coffee or lunch. NFC and by extension RFID are nothing new - I think I first saw a dog getting an RFID implant. Put in on Blue Peter in the early 90's and next year NFC will have run the London Underground for 10 years in the form of the Oyster card. Surely the fact that a phon...
irascianwork.blogspot.com
Ian Smith's Work Related Blog: February 2010
http://irascianwork.blogspot.com/2010_02_01_archive.html
Ian Smith's Work Related Blog. Ian Smith, CTO of Irascian Ltd, posts on work-related topics. Monday, 15 February 2010. Scott Guthrie Web Chat/Q&A (Transcript). Every 3 months Scott Guthrie. VP of .NET Developer Division that covers IIS, ASP.NET, Silverlight, WPF etc) gives an online audio webchat/Q&A on LinkedIn. Which invariably contains all sorts of information that just hasn't been publicised elsewhere. These chats are pretty unmissable. SILVERLIGHT 4 and VISUAL STUDIO 2010 SUPPORT. It’s just a ...
blog.dezfowler.com
Derek says:: September 2011
http://blog.dezfowler.com/2011_09_01_archive.html
If you’ve done any vaguely serious programming with a pre-4 version of the .NET Framework then chances are you’ve had to write an Enum.TryParse() method. You probably wrote something like this:. Public static bool TryParse TEnum (string value, out TEnum enumValue) { Type enumType = typeof(TEnum); if (! Public enum MyEnum { Zero = 0, One, Two, Three }. Oh dear, looks like our nice generic solution may get rather complicated! Fear not. Because we know our input type is a string and there are a very lim...
blog.dezfowler.com
Derek says:: November 2010
http://blog.dezfowler.com/2010_11_01_archive.html
Adding a design mode to your MVC app. We can use a set of different controllers to do this, each having some hard coded model data for example:. This would allow a wide variety of viewable pages to be created without needing to specifically define data in all those cases. I've put a quick proof of concept up on Github here:. Bool designMode = Convert.ToBoolean(ConfigurationManager.AppSettings[DesignMode]); if (designMode) { DesignMode.Activate(typeof(HomeController) ; } else { AreaRegistrati...Once in d...
blog.dezfowler.com
Derek says:: Camera memory card backup on the go
http://blog.dezfowler.com/2014/12/camera-memory-card-backup-on-go.html
Camera memory card backup on the go. On previous holidays we took a portable hard disk with built-in card reader which worked really well however you don't seem to be able to buy these any more. I'm guessing, these days, with more portable PC options like netbooks or ultrabooks a lot of people use those to back up so demand for an alternative has dropped. An iPad with a decent size internal storage and a lightning to SD adapter. Would also be an option. What we ended up taking with us was:. Using the USB...
blog.dezfowler.com
Derek says:: September 2010
http://blog.dezfowler.com/2010_09_01_archive.html
ASPNET custom error not shown in Azure. If you’re using a custom error handler in an ASP.NET Azure web role, for example, to return a branded error page you may find the custom page isn’t surfaced too the browser and instead you receive a standard IIS error. The configuration setting requiring tweaking is in the system.webServer section; setting httpErrors’ existingResponse. Configuration system.webServer httpErrors existingResponse=PassThrough/ /system.webServer configuration. Posted by Derek Fowler.