Collation Got Me

21. December 2011 Howto 2
I was doing some SQL work today and was trying to insert a few thousand records into a user defined table type that would then be passed to a stored procedure to be operated on. The data was really simple: Id, ModuleId, Code.  The primary key was a composite key across all 3 fields.  To ...

OpenRasta RESTful Template

15. June 2011 Howto 1
Lately I’ve been working with OpenRasta to create some RESTful services for .NET.  I absolutely love it.  It has built in DependencyInjection, but also allows you to wire up Castle or Ninject if you’d prefer.  The one thing I didn’t like about it was there was no NuGet package.  Additionally, each time I created a ...

Visual Studio – Test fails when run, but not debug

02. February 2011 Howto 0
I’ve been working on some tests today, nothing super fancy, just some basic null tests. I originally had the following code: if(actualEmployeeSize != null) l.EmployeeSize = actualEmployeeSize.Parse(default(int)); All I wanted to do was write 3 tests: Test if actualEmployeeSize is null, then l.EmployeeSize should be 0 If actualEmployeeSize can’t parse, then l.EmployeeSize should be 0 ...

Nuget “minVersion” attribute error

07. January 2011 Howto 0
I just got moved to a new project, and as part of one of my first tasks I needed to add an assembly to the project.  I knew we had done some Nuget packages so I right clicked on my project and chose “Add Library Package Reference” When I clicked on this, after about 3 ...

Blackberry and the mysterious “verification error”

17. October 2010 Howto 0
I’ve been working on a Blackberry project for the past few months.  I enjoy the challenge of learning a new language (J2me) and some new approaches.  Sometimes, however, I get stuck in a rut because I’m not used to the tools and language. The last week has been an example of this.  I had some ...

Debugging Mail Code

I’m working on a project that involves email and implementing RFCs for IMAP etc.  Normally I wouldn’t be keen to do something like this because I’d rather just grab an email library and write my functionality on top of that.  Normally I’d rant and rave about someone NOT doing it this way.  But for a ...

BlackBerry ESS NullArgumentException

20. June 2010 Howto 0
I’ve been playing around with BlackBerry development.  I’ve been doing various tutorials etc. One of the things they’ve got is an Email Server Simulator (ESS).  This comes installed with the JDE.  The idea is that this ESS will send/receive emails and hand them off to the device simulator. I ran into some problems, though.  I ...

Sending hidden fields in jqGrid

22. May 2010 Howto 0
I’ve just started using jQuery for a website I’m working on. One tool that I have needed is the jqGrid. I’ve got several places that are helped by displaying a grid. And the basic view function of the grid was fairly straightforward. Especially after following Phil Haack’s tutorial. However, I also had a few grids ...

Order matters!

27. April 2010 Howto 0
As I’ve said before on this space, I’m a late adopter.  So some of my “realizations” are probably hashed out all over the web.  But I write most of this so that it burns in my memory. I’ve been working with LINQ on a new project.  I had a table come back with 55 unique ...