bash function: md.view Sep 15, 2012 One of my favorite bash functions is md.view, which is available in my dotfiles repository. # test markdown files, probably a better way to test for programs. ...
Internal Server Error in .NET 4, “Calling LoadLibraryEx on ISAPI filter” Aug 16, 2012 I encountered an odd issue today. I received an Internal Server Error for a .NET 4 application: Calling LoadLibraryEx on ISAPI filter "C:\Windows\Microsoft. ...
ServiceStack’s Markdown Razor Engine. Wow. Jul 15, 2012 ServiceStack is a pretty sweet-looking alternative to WCF. It provides strongly-typed, well-designed, REST/RCP+SOAP services for .NET and Mono. Check out the README in the repository to see how ridiculously easy it is to setup a service. ...
‘Upgrading’ couchdb on Ubuntu 12.04 Jul 14, 2012 If you’ve installed couchdb from the Ubuntu repositories, you’re likely running 1.0.1. If you decide to build and install couchdb from source, you may have some issues with the server starting after a reboot. ...
Proxy Objects Jul 7, 2012

I started to familiarize myself with proxy objects a couple of years ago when I started used Fluent NHibernate on a pretty large project. NHibernate itself proxies objects to allow the framework to do its magic. Proxies are a fantastic thing. I spoke with a friend of mine today about some advanced coding techniques including proxy objects and IoC, which made me want to write a little about some of those topics.

From Wikipedia:

A proxy, in its most general form, is a class functioning as an interface to something else. The proxy could interface to anything: a network connection, a large object in memory, a file, or some other resource that is expensive or impossible to duplicate.

Charles Bretana gave an excellent and succinct definition of proxy objects on Stack Overflow back in 2008:

One purpose is to “pretend” to be the real class so a client component (or object) can “believe” it’s talking to the “real” object, but inside the proxy, other stuff, (like logging, transactional support, etc.) is being done at the same time… Secondly, a proxy can be very cheap in comparson to the real object,. and often is used so that the real objects can be conserved (turned off or released to a pool to be used by other clients) when the client is not using them… The proxy stays “alive” and the client thinks it still has a connection to the real object, but whenever it “calls” the object, it is actually calling the proxy, which goes and gets another real object just to handle the call, and then releases the real object when the call is done.

I’ve created an example (available on github) which demonstrates how to proxy method calls in a few different ways, ranging from very simple to using Castle.DynamicProxy and interceptors. The code is written in C# and although the code doesn’t handle some of the more advanced topics of proxy objects, such as resource pooling as Charles described, it will (I hope) introduce proxy objects in a comprehensible way.

Read on for killer examples.

...
Debug.WriteLine Jun 15, 2012 I answered a question on StackOverflow last week which made me remember a few years ago when I also wondered, “Where does Debug. ...
My Review of Windows® Internals, Part 1, Sixth Edition Jun 11, 2012 Originally submitted at O’Reilly <div> <img src="https://images.powerreviews.com/images_products/05/25/14887978_100.jpg" class="photo" align="left" style="margin: 0 0.5em 0 0" /></p> <p style="margin-top:0"> Covering Windows Server® 2008 R2 and Windows 7 </p> </div> <p> <a href="http://shop. ...
[node.js] Simple Logging in tweeter.js Apr 30, 2012 tweeter.js is a simple OAuth implementation I started working on for a node.js application I had envisioned. The library works, as in it runs through the whole OAuth dance and allows the client to make API calls. ...
ASP.NET, AppDomains, and shadow-copying Apr 29, 2012

I answered a question on StackOverflow nearly two years ago, and I’m surprised at how few votes it has received, despite comments such as:

+1 for teaching me something new today thanks. -kobe

Being one of my favorite answers, I thought I should discuss it on my blog a little more in-depth than just posting the SO answer. I’d like to briefly discuss what ASP.NET really is (in the context of IIS), why AppDomains are needed, and lastly what shadow-copying does for an application. There is no code associated with this post, and it is driven more by contemplation than by a specific resolution to a problem. So, I apologize in advance if it seems disjointed at times.

...
Allowing only a single instance of a .NET application Apr 23, 2012 In the past, whenever I constrained an application to having only a single instance running at any given time, I naively walked a list of running processes to find a process with the same name as the currently-running process. ...