Monthly Archives: %sFebruary 2011

CSS3 / Github style buttons

CSS3 / Github style buttons

By |February 28th, 2011|Coding, Uncategorized|0 Comments

Great tool for analyzing your hard drive space

I have been using a tool called WinDirStat for a couple years now.

It scans your hard drive and produces a report that displays all your directories and how much space each directory is using.

In the past it has helped me track down large files produced by windows error reporting (on Windows 2008 server). Or the more common Dropbox cache folder.

Download WinDirStat by clicking here.

By |February 28th, 2011|Coding, Uncategorized|0 Comments

By |February 24th, 2011|Coding, Uncategorized|0 Comments

By |February 24th, 2011|Coding, Uncategorized|0 Comments

Creating a nuGet package

Creating a nuGet package

By |February 23rd, 2011|Coding, Uncategorized|0 Comments

Using ResolveClientUrl in MasterPage

A couple weeks ago I tried using ResolveClientUrl in my masterpage to properly link my javascript and CSS files in my MasterPage. When attempting to run the code:

<script src=’<%= ResolveClientUrl(“~/Assets/Includes/Javascript/jquery-1.4.2.min.js”) %>’ type=”text/javascript”></script>

I received a nasty error:

The Controls collection cannot be modified because the control contains code blocks (i.e. <% … %>).

What?!? Well after some research I found an alternative solution using databinding, here are the steps I used to remedy the problem:

  1. Change your server side tags from <%=to <%#

    Example: <script src=’<%# ResolveClientUrl(“~/Assets/Includes/Javascript/jquery-1.4.2.min.js”) %>’ type=”text/javascript”></script>

  2. On the Master Page code behind in the Page_Load event place the following snippet of code:

    Page.Header.DataBind(); 

This should take care of the problem, if you are still having issues tweet me: @tekguy.

By |February 22nd, 2011|Coding, Uncategorized|0 Comments

A failure is a man who has blundered, but is not able to cash in on the experience. — Elbert Hubbard

By |February 22nd, 2011|Coding, Uncategorized|0 Comments

dowding:

The only valid measurement of code quality: WTFs/minute

By |February 22nd, 2011|Coding, Uncategorized|0 Comments

dowding:

The only valid measurement of code quality: WTFs/minute

By |February 22nd, 2011|Coding, Uncategorized|0 Comments