ERROR: Error 1 It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level.

The error:
Error 1 It is an error to use a section registered as allowDefinition=’MachineToApplication’ beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Is most likely caused by a config file existing somewhere in the directory structure of the app you’re working with, that has duplicated some config section which is only allowed in your root Web.Config.

See: http://scottonwriting.net/sowblog/archive/2010/02/17/163375.aspx

JQuery Pulse

$.fn.animateHighlight = function(highlightColor, duration) {
    var highlightBg = highlightColor || "#FFFF9C";
    var animateMs = duration || 1500;
    var originalBg = this.css("backgroundColor");
    this.stop().css("background-color", highlightBg).animate({backgroundColor: originalBg}, animateMs);
};

Used like this:

$("#PortfolioBeta").text(result.PortfolioBeta).animateHighlight("#FFBD1A", 1000);

Simplest pulse ever.