Introduction

This is a quick notes section.
<script language="javascript" type="text/javascript">

    function CustomerInquiryRequest() {

        this.CurrentPageNumber;
        this.PageSize;
        this.CustomerID;
        this.CompanyName;    
        this.ContactName;
        this.SortDirection;
        this.SortExpression;

    };

    function CustomerInquiry(currentPageNumber, sortExpression, sortDirection) {

        var url = "/Orders/CustomerInquiry";

        var customerInquiryRequest = new CustomerInquiryRequest();

        customerInquiryRequest.CustomerID = $("#CustomerID").val();
        customerInquiryRequest.CompanyName = $("#CompanyName").val();
        customerInquiryRequest.ContactName = $("#ContactName").val();
        customerInquiryRequest.CurrentPageNumber = currentPageNumber;
        customerInquiryRequest.SortDirection = sortDirection;
        customerInquiryRequest.SortExpression = sortExpression;
        customerInquiryRequest.PageSize = 15;

        $.post(url, customerInquiryRequest, function (data, textStatus) {
            CustomerInquiryComplete(data);
        });

    };

</script>

Windows File Explorer (C:\Windows\explorer.exe): Helpful Hints

Windows File Explorer (C:\Windows\explorer.exe): Helpful Hints

content:System.ComponentModel.DataAnnotations *.cs
Above is the syntax for searching every [ cs ] file for the content [ System.ComponentModel.DataAnnotations ]
*.* modified:>23/12/2012 Above is the syntax for finding files modified by date
C:\Users\Darren\AppData\Local\Microsoft\Windows\History  shell:history
ext:zip
netsh int ip reset
ipconfig /flushdns
netsh winsock reset
takes long time: sfc /scannow

Invoking Powershell in Powershell (Elevated As Administrator)

powershell -ExecutionPolicy ByPass -File C:\Temp\Powershell\ExportIEHistoryToCSV\ExportIEHistoryToCSV.ps1 -Time "Today" -CSVFilePath C:\Temp\

Microsoft IIS Express

You can find the appcmd.exe for IIS Express in the C:\Program Files (x86)\IIS Express folder.
You can use it to list the websites:
C:\Program Files (x86)\IIS Express>appcmd list site

If the names of the websites do not tell too much, then you can list the virtual directories, because that list shows the physical paths as well:
C:\Program Files (x86)\IIS Express>appcmd list vdir

You can even give them meaningful names by renaming them:
C:\Program Files (x86)\IIS Express>appcmd set site WebSite1(1) -name:Master
SITE object "WebSite1(1)" changed

And you can delete the sites you do not need any more:
C:\Program Files (x86)\IIS Express>appcmd delete site WebSite2
SITE object "WebSite2" deleted

Microsoft SQL Server: SqlLocalDB

cd C:\"Program Files"\"Microsoft SQL Server"\110\Tools\Binn
SqlLocalDB.exe info
sqllocaldb.exe stop v11.0
sqllocaldb.exe delete v11.0
sqllocaldb.exe stop Projects
sqllocaldb.exe delete Projects

Razor: Issues With Date Handling

    // In MVC4 These DataAnnotations Are All You Should Need
    [DataType(DataType.DateTime)] 
    [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd-MMM-yyyy}")]
    public System.DateTime TODAY { get; set; }

    // To be certain adding type="datetime"
    @Html.TextBoxFor( model => model.TODAY,  
                                 "{0:dd-MMM-yyyy}", 
                                 new { type="datetime", 
                                          @data_bind = "value: formtoday", @class= "inputS" })
    @Html.ValidationMessageFor(model => model.TODAY)
// Assuming @Scripts.Render("~/bundles/moment") @Scripts.Render("~/bundles/jquery") @Scripts.Render("~/bundles/jqueryui") // In the knockout model: $("input[type='datetime']").datepicker({ dateFormat: "dd-M-yy" }); // Before:  ko.bindingHandlers.dateString // Expansion Of Razor: <input class="inputS" data-bind="value: formtoday" data-val="true" data-val-date="The field TODAY must be a date." data-val-required="The TODAY field is required." id="TODAY" name="TODAY" type="datetime" value="" /> <span class="field-validation-valid" data-valmsg-for="TODAY" data-valmsg-replace="true"></span>
var cup = [{color:'Blue',size:'Large',type:'Mug'},{color:'Red',size:'S‌​mall',type:'Cup'}]


var cup = [];
var obj = {color: 'Red', size: 'small', type: 'Cup'};
cup[0] = obj; // also cup.push(obj);

Nuget Package Manager: Helpful Hints

PM> Uninstall-Package Microsoft.AspNet.WebPages.OAuth -RemoveDependencies
  • PM> Update-Package -reinstall Newtonsoft.Json
  • PM> Uninstall-package EntityFramework
  • PM> Install-Package EntityFramework -version 5.0.
  • PM> Uninstall-Package Microsoft.AspNet.SignalR -RemoveDependencies
  • PM> Install-Package Microsoft.AspNet.SignalR -version 2.2.2
Type 'get-help EntityFramework' to see all available Entity Framework commands.
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json"
publicKeyToken="30AD4FE6B2A6AEED" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0"/>
</dependentAssembly>