↓ 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

How and setup and got my Gadgeteer to work

·3 mins
This is a quick start guide for .NET Gadgeteer and the FEZ Spider Kit. It includes instructions for the installation of necessary software and drivers of the Gadgeteer platform as well as for the first Gadgeteer program. 

Going in to Space

·1 min
 Hello Kitty in space https://www.youtube.com/watch?v=5REsCTG4-Gg&feature=player_embedded

Hacking at its best with DNS

·4 mins
I received a tweet yesterday from @gravax who was the Epic Hack of the Day, so just check this out which is pretty cool tracert -h 99 216.81.59.173 You get back 12 * * *

Avoid, Find and Fix ASP.NET Performance Issues

·1 min
Following on from my articles on producing smarter code I have come across “50 ways to Avoid, Find and Fix ASP.NET Performance Issues” by RedGate, won’t say it is the best advise but still gives some good tips on how to improve performance.

TypeScript not publishing it’s JavaScript files that it builds

·1 min
Okay second issue I have come across with TypeScript is that even though you can get TypeScript to build your JavaScript files during the build process whist using Visual Studio, when you come to publish the project the JavaScript files are no longer there….!

Missile Launcher

·2 mins
Time to get tough and have a bit of fun….. This small project came about when team members kept breaking the builds on our build server, and as a result causing compile errors for other developers when they wanted to work on the latest code.

Encrypting Web.config for the website

·1 min
Security is always high for installation to customer so is it not about time you encripted the connection string in your web.config file? This is how it looks like before encrypting: <connectionStrings> <add name="Pubs" connectionString="Server=localhost;Integrated Security=True;Database=Pubs" providerName="System.Data.SqlClient" /> <add name="Northwind" connectionString="Server=localhost;Integrated Security=True;Database=Northwind" providerName="System.Data.SqlClient" /> </connectionStrings> We can encrypt any section of your Web.config file on-the-fly and programatically. If you have full access to your Web server, you can encrypt your connection strings with this single command-line located in the in the %windows%\Microsoft.NET\Framework\versionNumber folder:

Don’t and Do’s in C#

·5 mins
For a while now I have been reviewing developers code and performing code reviews and I have noticed some common mistakes are being repeated time and time again. These are mostly the mistakes, which once you point them, are quite easy to remember. However, if a developer is not aware of them, they can cause many problems with the efficiency and quality of the developed software. So what are these common mistakes and why are they wrong?

Code Review Guidelines

·11 mins
What is a code Review? Code review is systematic examination (often known as peer review) of computer source code. It is intended to find and fix mistakes overlooked in the initial development phase, improving both the overall quality of software and the developers’ skills. 

Import a Web Deploy Package through IIS Manager

·1 min
Import a Package Always make a backup prior to changing your system. Run the following command to backup an IIS 7.0 or above server: %windir%\system32\inetsrv\appcmd add backup “PreMsDeploy” Open the IIS Manager by clicking Start > Run and typing inetmgr. In IIS Manager, expand the Server node and the Sites node, then select the Default Web Site. In the right-hand Actions pane, click the Import Application… link to launch the packaging wizard. Select the package that you created in the previous quick guide, MyApplication.zip, or any other package. In the Install an Application Package dialog, you will see the application and the database. On the Parameters page, enter a new application name if desired and enter a SQL connection string. Click Next to install the package. The Summary page will provide a high-level overview of some items that were installed from the package. The Details tab will give a lot of detail of exactly what was added. For more information go to : http://www.iis.net/learn/publish/using-web-deploy/import-a-package-through-iis-manager

SQL71566 when upgrading to VS12

·1 min
In VS 2012 I receive the following error message (one for each table) when trying to build a database project. SQL71566: Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlFilegroup cannot not be set on both the Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlTable and the clustered Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlPrimaryKeyConstraint. For reference here is script associated with this error.

Coded UI Testing

·2 mins
What is Code UI Testing, or more to the point what is the difference between Unit Tests and Coded UI Tests? Unit Tests Tests classes and methods at the API level If it test a UI, it’s testing an abstraction (not quite testing the UI), UI testing has been hard Testing code as you built it We are testing in isolation Coded UI Tests UI testing Testing a running application Simulates a user’s keyboard and mouse activities Test the application that’s pretty much done Integration testing Looking at the layers in your application

Setting up StyleCop

·4 mins
How to get StyleCop working and running in Visual Studio 2012 First download the latest StyleCop from Codeplex, and install. If you now load up Visual Studio and create a new project, how you’ll find lots of underlined code that need attention

Upgrading an ASP.NET MVC 3 Project to ASP.NET MVC 4

·2 mins
 ASP.NET MVC 4 can be installed side by side with ASP.NET MVC 3 on the same computer, which gives you flexibility in choosing when to upgrade an ASP.NET MVC 3 application to ASP.NET MVC 4.

Custom Activities build process

·1 min
If you are like me and you create a number of Custom Build Activities for TFS you want to ensure that you keep them in a tidy place. The best place I have found is to find the BuildProcessTemplates folder and add a new folder called CustomActivities, and in this folder place all your xaml and dll’s files that you have created.

Enhancing the Build in TFS 2012

·7 mins
TFS has the ability to run automatic builds on the build server, this ensures that your project and solutions build and all their dependencies are near by and functional. I’ve looked all over the internet and found various samples, but none that work with Visual Studio 2012 or in the way I wanted the versioning to work. In this post I pulled together everything I have found whist looking over the Internet, I have tried to keep the same process and names as many of the samples I have found while searching for the solution.