← All topics

19 articles in the notebook

Tips.

ASP.Net 5 Areas

Visual Studio 2015 has no GUI support for Areas in ASP.Net 5 yet. The workaround is simple: create the folder structure manually and add an area route in Startup.cs — shown here.

Optimizing RDP for casual use

A revisit of my 2011 RDP guide, updated for RDP 8.x: what to tweak on client and server for less bandwidth, higher throughput and adaptive transfers — the short story and the dirty details.

Should I defrag my SSD?

"Yes!" and "No, never!" — both answers are right. SSDs don't care about fragmented reads, but NTFS does interesting things when free space gets fragmented. What actually matters, and what to do about it.

.Net GUI thread crossing

"Cross-thread operation not valid" explained from the ground up: what the GUI thread actually does, why only it may touch your controls, and how to cross over correctly in WinForms and WPF.

Tip: Never use IP addresses

Hardcoded IP addresses are never actually required — DNS names or a hosts-file entry always work, cost nothing extra, and save you from hunting down every stale reference when a server moves.

.Net tools to use: log4net

First in a small series on .NET tools worth using: log4net, Apache's free logging framework. One line at the top of each class, a standard XML section in web.config, and you have proper leveled logging.

.Net tools to use: Nini

.NET tools to use, part two: Nini, an uncommonly powerful configuration library. Reads web.config, .ini and .xml config with type conversion and default values in a couple of lines.