Browsing archives for November, 2011

RavenDB, I love it’s aggressive caching. But be careful.

ASP.NET MVC,RavenDB 30 November 2011 | 0 Comments

In my earlier “RavenDB, I love it’s aggressive caching.” post, I made a fatal mistake in my coding for the caching scenario, I forgot about stale indexes. Today I pushed an update to our “beta” environment for the website to let the client see the progress of the rewrite to a new theme, features and […]

I do my queries in the ASP.NET MVC controller with RavenDB.

ASP.NET MVC,RavenDB 28 November 2011 | 8 Comments

This blog post has been brewing for a few weeks now, mainly since I had the eureka moment with RavenDB about how I should structure my ASP.NET MVC application’s data access. Mainly, I shouldn’t. Probably like many coming to RavenDB from the heavyweight ORM world such as Entity Framework, you feel the need to continue […]

RavenDB, I love it’s aggressive caching.

ASP.NET MVC,RavenDB 28 November 2011 | 2 Comments

The project I’m using RavenDB is starting to the near the final phase. I’ve now been profiling pages and optimising my sillier bits of code. One thing the site does is make ALOT of queries per page load that have to be (or near enough) dynamic pulling data from RavenDB for display. When starting the […]

ASP.NET MVC Route testing with MVCContrib Test Helper

ASP.NET MVC,Testing 28 November 2011 | 0 Comments

One tool I’ve found in my aim to have peace of mind about my ASP.NET MVC applications is MVCContrib’s Test Helper extensions. Found here. It enables you to write unit tests to assert that your routes resolve correctly and to the correct places. Take for example the following route test, this asserts when someone posts […]

Migrating a legacy website to the cloud problems

ASP.NET MVC,Cloud 28 November 2011 | 0 Comments

I thought I’d just write a quick blog post to outline a few problems I’ve been having with moving a legacy ASP.NET website to the cloud, specifically AppHarbor. 1. Writing to disk. The ASP.NE website allows admin users to upload images and PDF’s to the server to be displayed to clients. With the cloud this […]

ASP.NET MVC LabelFor overload for a required asterisk

ASP.NET MVC 25 November 2011 | 1 Comment

Today I was pondering an easy way to put a required red asterisk next to a label generated by ASP.NET MVC. My first thought was, ah ha! I can add it to the call like: @Html.LabelFor(x => x.EmailAddress, “EmailAddress <span class=”red”>*</span>”) This obviously (if you remember) results in being encoded so the Html output on […]

Intel’s new i7 CPUs are released

Hardware 18 November 2011 | 0 Comments

Probably old news to the serious hardware followers out there but I’ve been reading about the new Intel i7 processor chips and motherboards that have been released. First of, like you, you probably think the i7 CPU is old by now as it was released many moons ago. Well confusingly Intel have decided to continue […]