• Archive
  • e-Mail
Hotmail finally on Android - Added on Sat 17 Mar 2012 15:12
So the misses has three Hotmail accounts and until now she has had to use three poor apps to access them, NOT ANY MORE, last night i set up the official app for her, Its very good... Three separate tabs for her three accounts inside the one application, pass-code protection and the ability to set up when and how to sync, Mobile signatures (which is something she wanted for sure) and one happy misses...

Microsoft I thank you!!!


Sort IEnumerables collections by Object Property Name - Added on Wed 14 Mar 2012 15:49
Here is an cool methods that makes it very easy to sort IEnumerable collections by the collection item object property name.

private List<T> CreateSortList<T>(IEnumerable<T> dataSource, 
                string fieldName, SortDirection sortDirection)
{
    List<T> returnList = new List<T>();
    returnList.AddRange(dataSource);
    PropertyInfo propInfo = typeof(T).GetProperty(fieldName);
    Comparison<t /> compare = delegate(T a, T b)
    {
        bool asc = sortDirection == SortDirection.Ascending;
        object valueA = asc ? propInfo.GetValue(a, null) : propInfo.GetValue(b, null);
        object valueB = asc ? propInfo.GetValue(b, null) : propInfo.GetValue(a, null);

        return valueA is IComparable ? ((IComparable)valueA).CompareTo(valueB) : 0;
    };
    returnList.Sort(compare);
    return returnList;
}



Setting a Default Browser for Visual Studio - Added on Mon 27 Feb 2012 12:51

As it turns out setting this is quite simple.

  1. Open a WebForm file in VS (anything ending in .aspx will do)
  2. Select the "Browse With..." option from the File menu
  3. Select your preferred browser from the list and click the "Set as Default" button

Now opening, browsing, or debugging a WebForm from within Visual studio will open the file in the specified browser (IE in my case) rather than my system default.