.NET

Comprehensive redesigns

So, last night I realised that I’d made some bad decisions with the database, structure and naming, so… I’ve now refactored it all, and I’m feeling… hmmm… meh about it. I suspect I will redo it all later, but for now it will do…. I’ve also come to the conclusion that I was maybe trying too much for the initial release, so as a consequence I have removed one part of the project… (which, by-the-by, I intend to have published in a month or so – and yes Andy, that is one month longer than I mentioned ......

Registering…

So, I want potential clients to have to enter the least amount of info possible to get an account, to that end, I really don’t see the benefit of a username and email address, I’d rather just use the email address. Pretty easy, edit the Register.cshtml to remove all traces of a ‘username’ field… Edit the controller so that it now reads: model.UserName = model.Email; if (ModelState.IsValid) { /*...*/ } F5 and … no Hmmm, turns out the ModelState isn’t valid, and that’s down to the fact that I’ve left ......

Path Animation in Silverlight

I’ve been spending some time working on prototyping some things I want to get working for a game I’m developing, and one thing I wanted was to get a couple of fly’s flying (buzzing?) around a lightbulb. Ideally I wanted to draw a path and say – Fly – use this path and follow it until the end of time! Turns out in WPF I could do this, but not so in Silverlight. Everything I saw explaining how to do it, involved working out complex (to me) equations to get the motion correct, or using a set of key ......

TFS – Beginnings…

We’ve got TFS installed now, and we’re beginning to test it in the team… At present we’re only using it as a BugTracker / Doc share – and the reason for this is that in 4 weeks (or so) we plan to update the solution to VS2010 (from VS2008) and quite frankly, we can live with our current source control until that point. Aanyhews, so far – so good, aaand (of course) so bad… Coming from the current solution here (Service Desk) it’s a vast improvement, the bugs are (in my opinion) easier to read and ......

NDepend: Application Metrics

A few days (maybe even a week ago now) I had an email in my inbox asking me if I’d like to have a copy of NDepend so I could maybe write something about it on my blog. I went through 3 stages – 1st – free software?! Hell yes, I’ll have that… 2nd, actually, I have Visual Studio 2010, I have code metrics already, do I need more? 3rd – presumably there is a reason that NDepend exists, maybe I should take this opportunity to get to know why and what it’s for. So I said ‘yes’ and the next day I had NDepend ......

Further thoughts on the ObservableCollection extensions

Firstly (thanks Matt) – it should really be an ICollection extension – and so now it is, but also I’ve just ported it to a .NET 4.0 project, and can now make use of optional parameters, and so 3 methods now become 1! /// <summary>Adds a range of items to an <see cref="ICollection{T}"/>.... /// <typeparam name="T">The type held in the <see cref="ICollection{T}"/>.... /// <param name="collection">The <see cref="ICollection{T}"/> instance ......

ObservableCollection Extensions

I’ve had to create a couple of Extensions for the ObservableCollection, (well – I didn’t have to), erm, and so here they are! All are ‘AddRange’ just with different args for different usages.. namespace Extensions { using System; using System.Collections.Generic; using System.Collections.ObjectMo... using System.Linq; /// <summary>Extension methods for the <see cref="ObservableCollection{... class.</summary> public static class ObservableCollectionExtensions { /// <summary>Adds ......

DefaultAppPool - Ha Ha!

I spent a large proportion of yesterday trying to debug why a website I was trying to publish wasn't working.. Upon copying the folder there, and converting it to an application, we browse to the site and lo, nothing there. Not a sausage... Just a blank page. Hours on this.. Is it the web.config? - ahh no. Is it the configuration of the server? - ahh no no. Let's try again, create a new folder... add in a 'Hello world' html page Browse to: Success! ok, Convert to application - Browse to: Failure! ......

Setting up Slackin using Azure and Let’s Encrypt

So I started the sw-dotnet-developers slack (https://sw-dotnet.uk/) a week or so ago, and quickly realised I needed some kind of self registration system to avoid me having to send off invites to everyone, which would become boring very quickly. I did some searching and found Slackin – a little server that enables public access to a slack server – awesome! It even has an Azure Deploy setup – literally click on one link and fill in some details to get it installed. NB – I had to use the ‘latest’, ......

Cornwall .NET Developer Meetup–FIRST!

Living in Cornwall is great, surf, sun (ha!) and stunning views all over the place – I’m very lucky :) But one thing it does lack – is .NET meetups, in Cornwall – there are approximately none. That’s right – none! Well – no longer! Software Cornwall has created one - https://www.meetup.com/Corn... admittedly this is short notice (it’s this Friday) but – if you’re a .NET developer, and you live in Cornwall, I encourage you to get over there! As a side note – I’ve just started ......

Full .NET Archive