Reference
A collection of articles on various topics that interest me. Written mostly in order to document my own solutions to problems, and published in the hope that they may help others save some time.
2011
Disabling Client-side Caching in RavenDB
While editing documents in RavenDB Management Studio for testing, it became evident that the changes were not reflected in the website that was using the database. By default, RavenDB caches client queries. This article describes how to disable this feature, should the need arise.
~ Read
2010
Custom View Engine for Localized Views with ASP.NET MVC Razor
This article describes how to localize ASP.NET MVC page views and partial views by providing separate Razor templates for each language. Used in combination with localization through resource files and metadata, this approach leads to a cleaner project structure and allows for localizing a web page without having to recompile. However, it comes at the cost of some duplicated markup.
~ Read
Custom Display and Editor Templates with ASP.NET MVC 3 Razor
Much has been written on how to create custom templates for ASP.NET MVC 2 and earlier versions, as well as the default MVC view engine. Customizing the default templates in MVC 3 using the Razor view engine is just as easy, but not exactly obvious if one doesn’t know where to start. This article provides some quick example code for replacing the default custom templates for Object view models.
~ Read
Asynchronous Streaming Reverse Proxy for IIS 6.0
I recently started to use Subsonic on my Windows Home Server to make my music collection available over the internet. Subsonic must be configured to run on a port other than port 80, because this port is already used by the IIS web server. This is a major inconvenience, because it may prevent you from accessing the media from firewall restricted networks, and it will make the URLs to your media server somewhat more ugly. In order to get around these two problems, IIS has to serve as a proxy for the server.
~ Read