A place to keep my thoughts on programming

Monthly Archives: January 2011

git: pulling individual files from another branch

Here's a not too uncommon task in git that I just can't seem to remember: Merge specific files from another branch or revision It's simply checkout out that file on top of the current branch, but I always forget the … Continue reading

January 31, 2011 geek

Calculon: Building an actor framework

I'm currently extending functionality in the bots and in order to make this easier, I'm refactoring the adhoc actor-like message processing system I built into one a bit more flexible for adding features quickly. Right now message senders and … Continue reading

.net, geek , , ,

Fixing leaking semaphores with mod_mono

After porting my mod_mono ASP.NET MVC application to Ruby and Rails and setting up Phusion Passenger up to run the application under mono, I finally figured out how to fix the leaking semaphore issue. The real title of this post … Continue reading

January 26, 2011 .net, mono ,

Installing Phusion Passenger on Amazon Linux AMI 1.0

Once again, this is a progression of building out my Amazon Linux AMI, so the pre-requisites might be off, since I've previously installed a number of other things. And once again, this is simply a log of tasks for my … Continue reading

January 25, 2011 geek , ,

Type-safe actor messaging approaches

For I hand-rolled a simple actor system to handle all Xmpp traffic. Every user in the system has its own actor that maintains their xmpp state, tracking online status, resources, resource capability, notification queues and command capabilities. When a … Continue reading

January 23, 2011 .net, mindtouch, mono , , , ,

Porting ASP.NET MVC to Ruby on Rails

This isn't yet another .NET developer defecting to Ruby. I have very little interest in making Ruby my primary language. I've done a couple of RoR projects over the years, nothing serious I admit, but I just don't seem to … Continue reading

January 21, 2011 .net, geek, mindtouch , ,

Convention over Configuration in statically typed languages

For me, static typing serves two purposes: First, compile time checking that arguments to calls are the appropriate type, and second, static discovery of code usage, dependency and wire-up. The former is about correctness and safety, and constitutes the "free … Continue reading

January 18, 2011 geek

nginx+mono vs. apache+mod_mono

I've been using Apache with mod_mono for some ASP.NET MVC2 projects and kept having problems with semaphore arrays being leaked. Under 2.6.7 this even broke xbuild after a while. I then went to 2.8 and 2.8.1, but it didn't stop … Continue reading

January 16, 2011 geek, mono , , , , ,

More on .ToList() vs. .ToArray()

Like my last post, "Materializing an Enumerable" this may be a bit academic, but as a linq geek, whether I should use .ToList() or .ToArray() is something the piques my curiosity. Most of the time when I return IEnumerable<T> i … Continue reading

January 11, 2011 .net, geek

Materializing an Enumerable

Yesterday I posted the question "Is there a way to Memorize or Materialize an IEnumerable?" on stackoverflow, hoping that there was already a built in way in the BCL. The answers and comments showed, that there wasn't but also challenged … Continue reading

January 8, 2011 .net, geek , ,