I’m an experienced programmer, but have only ever touched on electronics during A-levels and my degree course. New developer boards Arduino open up the world of micro-electronics to those with little or no experience. This is the start of my adventure: The kit I brought was the SparkFun Inventor's Kit for Arduino with Retail Case... Continue Reading →
Arduino Uno (UK)
Today I got an Arduino Uno and I’m getting my geek on!
Extract URL Information
To get information about the currently requested URL in ASP.NET use the Request.Url class. For example to extract the information from the URL http://www.example.com/myApp/myPage.aspx?myQs=14 the Request.Url class provides the following properties:
Entity Framework: StoreGeneratedPattern="Computed"
We recently had a problem where our fields with default values where not getting properly populated in the database during row creation. This can occur when the EDMX model is created in the designer and the default fields do not have their StoreGeneratedPattern property set to Computed or Identity. Easy enough to fix, simply open... Continue Reading →
The Art Of Unit Testing, TDD
My quote-of-the-day, regarding Test Driven Development: I am convinced that it [TDD] can work to your benefit, but it’s not without a price (time to learn, time to implement, and more). It’s definitely worth the admission price, though. Taken from the excellent The Art of Unit Testing: with Examples in .NET by Roy Osherove.
Real World: Unit Testing Queries Against Entity Framework (EF) Model / Repositories
Unit testing is a tricky beast. As with all unit tests it is important to abstract any dependencies – so in the case of EF it’s the data persistence source. This must be handled carefully because EF creates a container that performs the interaction with the data source. Abstracting that container (via mocking or stubbing)... Continue Reading →
Microsoft Mocking
As a .NET developer I don’t like using third party controls when there is tooling available from MS that will do the job I need. For example I prefer using the “baked in” MSTest suit as opposed to NUnit or MBUnit. The same is true for a mocking framework. I have tried with varying levels... Continue Reading →
Memory Management Misconceptions
A couple of highly useful memory management references from RedGate Top 5 .NET Memory Management Misconceptions - Ricky LeekMemory Management Wallchart [ZIP]WPF and Silverlight gotchas [PDF]
SoapUI Pro – Browser Component is Disabled (Win7 64)
Recording web tests on Soap UI Pro won’t work in full-blown 64 Bit environments (64bit windows, SoapUI and JRE). This is due to incompatibility with the Mozilla browser engine. Updates are expected soon. This will except with the following message: “Browser Component is Disabled” In the mean time install the 32bit version from http://dl.eviware.com/4_0/soapUI-Pro-x32-4_0_0.exe For... Continue Reading →