Bootstrap 3 DataTables Paging Modifications

Update Sept. 18, 2013: I have updated the JavaScript to include the following updates: * Adjusted the "sDom" column widths for the record selection/search filter fields * The "records per page" will wrap to a new line on extra small devices * Fixed an issue where filtered searches were not updating the…

Bootstrap 3 jQuery Validator Defaults

The following can be used with a Bootstrap 3 Horizontal Form. jQuery.validator.setDefaults({ debug: true, errorClass: 'has-error', validClass: 'has-success', ignore: "", highlight: function (element, errorClass, validClass) { $(element).closest('.form-group').removeClass('has-success').addClass('has-error'); }, unhighlight: function (element, errorClass, validClass) { $(element).closest('.form-group').removeClass('has-error').addClass('has-success'); $(element).closest…

How to get ASP.NET MVC3 Working under Mono 2.10 (Ubuntu 12.10)

I've managed to get Mono [http://www.mono-project.com/] (version 2.10.8.1) working with MVC3 in my Apache server through mod-mono and mono-server4. Update: Included a DirectoryMatch configuration for securing various ASP.net directories. Visual Studio Project Settings Required References (Copy Local: True): * System.Web.Mvc * System.Web.…

Updating User Workstations through PowerShell

Below is a simple PowerShell script that can be used to search for all currently restricted accounts in Active Directory (accounts who have a value for userWorkstations), and update their list of workstations by adding/removing hosts as needed. This script might be most useful in a scenario where you…

Using PowerShell to Retrieve DCs within a Specific Domain

The following example will use a remote PowerShell session to query a list of domain controllers under a domain name, and return the first result. Note: This does not verify that the domain controller is online and responding to queries! ///

/// Returns a domain controller from the specified domain /// /// The domain…