↓ Skip to main content
The technical notebook of Bryan Avery

Ideas worth sharing.

Practical notes on software architecture, cloud platforms, security and AI. Written from real engineering experience, with an eye on what actually works.

A little about me

Latest articles

553 articles in the archive

Scripting SQL Objects with SQL 2008

·3 mins
If you need to script out the objects within a database, from generating tables through to extracting out the data so you can use it in another database or schema then you are going to need to script the SQL.

One day in Kanban land

·1 min
Came across this today, and thought it was very good. Original post

xVal 1.0 released

·1 min
An important tool when using MVC xVal version 1.0 is released, xVal is a validation helper for ASP.NET MVC that lets you use your own choice of server-side validation framework (e.g., Microsoft’s DataAnnotations attributes, or Castle Validator, or NHibernate Validaion) and dynamically generates client-side validation code from your rules.

ModelState is not Valid

·1 min
When you are using MVC you will come across using the ModelState, and the most common use is ModelState.IsValid, if you’ve not used this before then check out Validating Model Data in an MVC Application or xVal – a validation framework for ASP.NET MVC, what I did come across is an exception beyound the normal checks, that a table was missing from the database. Although the error was recorded in the ModelState, it did not raise any exception and hence the exception handling did not capture the message. To record the Exception you’ll need to go over the collection and this code allows you to do this:

Windows 7 – things you don’t know

·4 mins
I’ve been playing with Windows 7 for a little while now and I am impressed it lokks like Microsoft have got it right. I’m a power user and if it works for me I can say it is going to work for Mr Average Joe. I’d thought I draw up a number of special features that I have found in my travels around Windows 7.

LINQ to XML

·1 min
Need to know how to write easy to look after XML code, check out the the DNRTV http://perseus.franklins.net/dnrtvplayer/player/?ShowNum=0147 The source code can be download here LINQXMLSamples.zip (112.26 kb)

Inline Editing

·1 min
I needed a simple way of editing the text on the screen, without the need to open up or view a second screen, so I had a look around for some jQuery, and came across this very good jQuery plugin from Mika Tuupola, jEditable

10 cool things you can do with a USB flash drive

·7 mins
Came across this nice article on different uses for your USB flash drive Transporting your data is probably the most common use for a USB flash drive. But there’s a world of other things you can do with these handy pocket-size drives. Here are 10 ways you can use that USB flash drive to do more than just move data

MVC 2 Preview 1

·1 min
The first of the next version of MVC 2 has been release by Microsoft, a few nice features, which has extended the Html helpers. The full release will be shipped with Visual Studio 2010, and a version will be available for download for Visual Studio 2008 sp1 at the same time.

ASP.NET MVC Futures

·1 min
Where are those extra features that did not quite make it in the initial release of ASP.MVC 1.0, they can be found on Code Plex, ASPNET ASP.NET MVC Futures – Microsoft.Web.Mvc The following are a few items in the ASP.NET MVC Futures assembly:

DDD South West Video

·1 min
 After a great DDD South West, now comes the video, great production, setting a high standard for years to come

Deploying MVC on IIS 6

·2 mins
If and when you have to deploy your MVC application, you’ll soon find out that IIS6 does not support Url Rewriting. There are a number of options available to you, for a good list check out Steve Sanderson’s Deploying ASP.NET MVC to IIS 6, the one I’m currently using is:

Culture Codes

·4 mins
A comprehensive list of culture codes used for localising and in conjunction with the CultureInfo class.

Asp.net MVC, Html.DropDownList and Selected Value

·2 mins
I recently ran into the altogether common problem of the Html.DropDownList helper rendering a drop down list with no value selected. This is a major problem when editing data as by default, the first value is selected and saving would mean the first value is used.

Running NUnit from Visual Studio

·1 min
If you are like me, I like to keep my Visual Studio environment as clean as possible, so if I can get away from adding any addins in to Visual Studio I will always go for that option.

Building up an MVC application

·2 mins
When you open up MVC out of the box, you get the basic configuration, after a little playing around you soon see areas that require enhancing to, not only make your application more flexable, but also easier to maintain.