gordon

About gordon

This author has not yet filled in any details.
So far gordon has created 109 entries.

Using AngularJs with a jQuery background

Most web developers today have experience using jQuery. If you are new to AngularJs and would like to start learning it I would suggest reading this post on Stack Overflow before reviewing any Angular tutorials. It will help clear up a lot of issues when trying to use both (I don’t recommend it).

By |June 30th, 2014|Coding|0 Comments

A visual explanation of SQL joins

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

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

Implementing VisibilityProvider in MvcSiteMapProvider

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

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

Seven reasons clean code matter

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

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

Good video that explains ASCII and UTF-8

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

Looking for placeholder text

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.

 

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

Some of my favorite GitHub repos

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.

Notable

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.
By |July 1st, 2013|Coding|0 Comments

HTML template specifications

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.

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

History of Programming Languages

The history of programming, brought to you by Veracode.com

History-Of-Programming-Languages-Veracode

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

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

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: http://blogs.msdn.com/b/windowsazurestorage/archive/2012/12/03/azcopy-uploading-downloading-files-for-windows-azure-blobs.aspx.

The link to download the utility is located on Github.

Here is a sample command:

AzCopy C:webrootiisimages.site.comwwwrootuploads 
https://CONTAINER_NAME.blob.core.windows.net/uploads/ /destkey:[AZURE KEY]

Enjoy!

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