11 02, 2014

A visual explanation of SQL joins

By |February 11th, 2014|Coding|0 Comments

To get a better understanding of SQL joins take a look at Coding Horror’s venn diagram display: Click here

9 01, 2014

Implementing VisibilityProvider in MvcSiteMapProvider

By |January 9th, 2014|Coding|0 Comments

If you are coming from MvcSiteMapProvider version 3 you will notice some changes in version 4. One of the key changes in version 4 is using app setting key/values instead of the SiteMap node. To learn more about new features in version 4 click here.

Implementing a visibility provider in version 4 is simple. It requires a couple small steps:

  1. Creating a class and derive it from “SiteMapNodeVisibilityProviderBase”.
  2. Add a setting to your web.config file.
  3. Update the site map file.


Creating our visibility class

Configuring web.config

Take caution and matchup your namespaces and classes correctly with the sample code I provided. Add a new app setting key/value:

<add key="MvcSiteMapProvider_DefaultSiteMapNodeVisibiltyProvider" value="MyCompany.Web.MyCompanySiteMapVisibilityProvider, MyCompany.Web" />

Making adjustments to sitemap

Finally we are going to make some adjustments to our sitemap file, use the following node as an example, take note of the visibility attribute:

<mvcSiteMapNode title="My Page I want to hide" controller="Home" action="HidePage" visibility="false">


I hope this helps, if you have any questions please contact me on twitter: @tekguy

19 11, 2013

Seven reasons clean code matter

By |November 19th, 2013|Coding|0 Comments

Very good article explaining why you should always strive for clean code click here to read the article from Plural Sight.

23 09, 2013

Good video that explains ASCII and UTF-8

By |September 23rd, 2013|Coding|0 Comments

23 07, 2013

Looking for placeholder text

By |July 23rd, 2013|Coding|0 Comments

Are you tired of the typical lorem ipsum placeholder nonsense? The you should check out Picksum Ipsum. It allows you to generate paragraphs of text from some of Hollywood’s best actors such as Morgan Freeman, Clint Eastwood and Jim Carrey.


1 07, 2013

Some of my favorite GitHub repos

By |July 1st, 2013|Coding|0 Comments

I love Github and the concept of open source software. I find myself using these projects on a daily basis so I decided to compile a list and share them with you:

  • ServiceStack – Super fast .NET web services platform. 
  • RestSharp – One of the best .NET REST clients.
  • Ninject – .NET dependency injector.
  • GitIgnore – A compilation of default gitignore files based on frameworks, languages and IDEs
  • Twitter Bootstrap – In my opinion the best CSS framework.


Although these project aren’t located on GitHub, they should be mentioned:

  • ASP.NET Web Stack – Microsoft decided to open up the .NET framework to the open source community, although you might not contribute to this project, it does offer insight into whats coming in the next version of .NET.
26 06, 2013

HTML template specifications

By |June 26th, 2013|Coding|0 Comments

For the past couple days I have reading up on the new specifications for the <template> tag in HTML 5.1. This new tag allows you to specify a client side template. Although the concept of templates aren’t new its good to see the W3C community coming up with a standard.

In the past to create a “template” you would typically define a div tag with the elements, then you would hide this div by using CSS code display: none

To learn more check out W3C specifications for template.

18 06, 2013

History of Programming Languages

By |June 18th, 2013|Coding|0 Comments

The history of programming, brought to you by


14 06, 2013

Command line utility to copy files to Azure’s blob storage

By |June 14th, 2013|Coding|0 Comments

I am in the process of moving a client’s site from a traditional web hosting platform to azure’s cloud service. The web app uses a sql database that has a file name reference to images in a physical folder on the web server. I need to get these images into an Azure’s blob storage.

To get these images uploaded I decided to use a command line tool called “AzCopy”. You can learn more about the project at:

The link to download the utility is located on Github.

Here is a sample command:


13 06, 2013

VBScript snippet to clean up old files

By |June 13th, 2013|Coding, Sample Code|0 Comments

I wrote this basic VBScript sample to delete old .bak files from a particular folder if its older than X number of days.