How to fix problems with entity framework decimal precision
The Problem You are attempting to change a database column of type decimal from a precision of two decimal place to one decimal place via data annotations, and there does not seem to be a good way to do it. The Cause There isn’t a good way to do it. The Solution However, there is […]
How to order a custom WordPress Post Type by a custom numeric field
So, you need to order a custom WordPress Post Type by a custom numeric field – how? The Problem You have a WordPress custom post types, and you need to order by a custom numeric field – how do you do that? The Cause You would think that it would be relatively simple, for example the below […]
How to fix problems with asp.net mvc 4 javascript bundling
The Problem You are using the new JavaScript bundling and minification features in asp.net mvc 4, and some of your JavaScript files are not being included The Cause The minification process – in it’s strange wisdom, does not include .min files when it bundles. Therefore something like .Include(“~/Scripts/jHtmlArea-0.7.0.min.js”) will not be included, leading to JavaScript errors. The Solution Just use the […]
How to fix problems with WordPress taxonomy permalinks
The Problem You are attempting to use WordPress taxonomies to create custom permalinks, and all you get are 404 errors. To clarify, I was trying to use the taxonomies purely to maniplate custom page types and their permalinks, to create something like https://Domain.com/SummerCrops/Tomatos where SummerCrops is my custom taxonomy, and Tomatos is a page name […]
How to fix problems with ReSharper LINQ Intellisense
The Problem Resharper’s Intellisense, while generally awesome, does not find navigation properties in Linq statements The Cause: No Idea The Solution Switch back to Visual Studio 2012’s Intellisense, then go to Resharper > Options > Environment > General and make sure that the “Store Caches in the System Temp Folder Close and Reopen Visual Studio […]
How to fix problems with WordPress Front Pages not showing the proper template
The Problem You are using a custom post type as the front page, and for no obvious reason it will not display in the custom template your wrote The Cause The front page always uses the font-page.php template in your theme, and if front-page.php is not present, then it will use the page.php template file. […]
How to change the number of comments visible in the WordPress Admin
The Problem You have an old, established blog, and you left comment spam protection off (a tragic mistake). I did this recently with one of my personal blogs and in very little time I had 15,000 comments pending in my spam folder. I set about to delete the spam but found that I could […]
How to fix “type or namespace services does not exist in the namespace system.data” problem
The Problem the cause is that you are using .net 4.0 code in a 4.5 project, to solve, just go to add reference, search type in system.data.services, et al and add them manuallyYou create a new .net framework 4.5 solution in Visual Studio 2012 and you start to use some sample code from the Windows […]
How to fix the “Unable to launch the visual studio development server because port 9452 is in use” error
The Problem You are coding away, Visual Studio locks up for one of it’s many reasons, and reopen your project and run it again. You then get the “Unable to launch the visual studio development server because port 9452 is in use” error The Cause When Visual Studio crashed, the Web Server did not, so […]
How to fix problems with Ajax Page Caching in asp.net mvc 4
The Problem You’re using the otherwise awesome ASP.net MVC 4 and you can use an ajax function once, via the @Ajax.ActionLink tool, but you try it again, and it does nothing. The Cause For whatever reason the browser thinks it is a cache page and pulls it from the cache – I’m not 100% sure […]