Mixing $http Promises and $q Promises for cached Data
When creating services it's often useful to return data from the $http service, or cached data that already exists. You can't however just return the cached data, but have to turn it into a promise so...
View ArticleGotcha: Entity Framework gets slow in long Iteration Loops
I've been running into a common issue with Entity Framework where using a dbContext through many context operations can drastically slow down Entity Framework performance. Here's a quick overview of...
View ArticleINSTALL_FAILED_VERSION_DOWNGRADE: Watch your Android App Version
Ran into a nasty problem with an Android app install today and was unable to get the app to install on the device for debugging. Got an INSTALL_FAILED_VERSION_DOWNGRADE after a bunch of false starts it...
View ArticleUsing Cordova and Visual Studio to build iOS Mobile Apps
Apache Cordova is a hybrid mobile toolset to build Mobile applications using Web Technologies like HTML5, CSS and JavaScript. Microsoft recently released a preview of its toolset for building Cordova...
View ArticleTip: Create a Visual Studio Menu option to Open a Command Window
I'm finding myself using the command line more and more, especially with ASP.NET vNext for running Web apps from the command line, accessing git and JavaScript build tools. Here's a real easy way to...
View Article<main> HTML5 Tag not working in Internet Explorer 9/10/11
Ran into a problem the other day with Internet Explorer 11 not rendering the HTML5 tag properly - or rather rendering as if it wasn't there at all. Here's the problem and the simple workaround.
View ArticleBlend Path interfering with C# Project Builds
Ran into a nasty Visual Studio error today that caused a compiler error related to an errand assembly reference from Visual Studio Blend. Blend? I don't even use Blend, and this is a Web Project....
View ArticleAzure VM Blues: Fighting a losing Performance Battle
I've been struggling with performance when putting up an Azure virtual machine with the eventual intend to replace my physical server. In this post I describe some of the performance issues I've run...
View ArticleAdding non-NuGet references to the new vNext Projects
vNext projects depend on NuGet packages to reference external dependencies. But vNext projects also support 'classic' .NET targets and the Full CLR vNext both of which support and even require assembly...
View ArticleBack to Basics: UTC and TimeZones in .NET Web Apps
Storing dates in persistent storage using UTC dates is a widely accepted best practice. But it's surprisingly complex using date data effectively if you want to let the user see dates and query data in...
View ArticleUsing FontAwesome Fonts for HTML Radio Buttons and Checkboxes
Spruce up your boring checkboxes and radio buttons with custom FontAwesome symbols using a little bit of CSS. If you're tired of boring checkboxes and radio buttons, or you simply want a more...
View ArticleCordova and Visual Studio CODE Magazine Article
Nice – looks like my Cordova with Visual Studio article went live today in CODE Magazine as the cover article:I’ve been doing quite a bit of hybrid Cordova development in the last few months with a...
View ArticleASP.NET MVC, Localization and Westwind.Globalization for Db Resources
I’ve been hard at work with version 2.0 of the Westwind.Globalization library, which is a major update from version 1.x in terms of database support and general features, as well as a brand new much...
View ArticleUpdated DeleteFiles Utility now on Chocolatey
Last year I posted about a small DeleteFiles utility I created that once and for all solved my problem of recursively deleting files and folders down a Windows folder hierarchy from the command line....
View ArticleBitmap types, Binary Resources and Westwind.Globalization
For most applications when it comes to localization, most of the tasks at hand have to do with string resource localization. However, resources in .NET also support binary resource streams so you can...
View ArticlePrettifying a JSON String in .NET
Here’s a quick and dirty tip if you’re dealing with JSON strings that you at times need to display for debugging or simply seeing a quick view of data represented. It may be that you have an...
View ArticleAdding Files to the Windows MRU/Recent Document List
If you have a Windows application that uses custom file extensions for documents, it might be nice to add the documents you open inside of the application to the Most Recently Used list of the...
View ArticleASP.NET MVC HttpVerbs.Delete/Put Routes not firing
A few times in the last weeks I’ve run into a problem where I found that DELETE operations would not fire in ASP.NET MVC controllers. I’ve been building APIs mostly with Web API until recently, but...
View Article401 Response from ASP.NET Identity when linking to External Accounts
This falls under ‘stupid developer errors’, but I thought I’d post it anyway, since this might help out somebody who accidentally misconfigured external Identity providers as I did. In my last post I...
View ArticleAdding minimal OWIN Identity Authentication to an Existing ASP.NET MVC...
As of ASP.NET 4, ASP.NET provides a fairly useful identity system. If you create a new project and choose an MVC project and choose to add both internal and external authentication, it’s fairly...
View Article