Archive by Author

Nant Error: “The type or namespace does not exist”

I was trying to run a nant task on a new project this morning but received the following error: error CS0234: The type or namespace name ‘RegularExpressions’ does not exist in the namespace ‘System.Text’ (are you missing an assembly reference?) The RegularExpressions namespace definitely exists as it has been around since .NET 1.1. The code looked […]

Continue Reading

Fiddler won’t capture Safari traffic?

Ok. Laugh now, but I expected Safari would “just work” with my application as Chrome did. I wasn’t using any fancy HTML-5 or anything, so why wouldn’t it? But it didn’t work, so I jumped to Fiddler (which is absolutely great, BTW!). Try as I may, I couldn’t get Fiddler wouldn’t capture Safari’s traffic to my […]

Continue Reading

Splitting documents vertically in Visual Studio 2010

Apparently it’s not common knowledge that you can split documents vertically in Visual Studio 2010. You’ll need to do two things to enable this functionality: NOTE: It turns out I was wrong about where this functionality comes from. Although “Document Well 2010 Plus” (a.k.a “Document Tab Well”) does add quite a bit if nice functionality, […]

Continue Reading

The Tight Three: SRP, OCP, and IoC

Today I’m going to elaborate on a statement I made in my Inversion of Control (IoC) post: …inversion of control falls naturally out of writing cohesive units that adhere to the single-responsibility principle (pdf) and the open-closed principle (pdf). Inversion of control is about responsibility placement. That is, to use IoC is to consider an object’s […]

Continue Reading

Inversion of Control (IoC) and Dependency Injection (DI)

What is Inversion of Control (IoC)? Inversion of Control (IoC) is a generic term for changing (i.e. inverting) which of at least two sites controls a specific behavior. In other words, inversion of control is a simple statement about where the responsibility or control over some behavior belongs.  Thus, inversion of control falls naturally out […]

Continue Reading

Accessing Linux File Systems from within Windows

This post was imported from blogger, to see the original, likely better-formatted post see kalebpederson.blogspot.com. Near the end of 2009 I ask a question on superuser.com about accessing a Linux XFS filesystem from within Windows. After investigating coLinux I decided to try the VirtualBox route — and it worked beautifully! I can now access my […]

Continue Reading

QMetaEnum Magic – Serializing C++ Enums – Take 2

This post was imported from blogger, to see the original, likely better-formatted post see kalebpederson.blogspot.com. > A few posts ago I described two methods of serializing C++ enums. Of these, method 2 serialized the Qt::Key enum. The approach, however, relied on some behind the scenes magic that I wasn’t fully aware of nor did I […]

Continue Reading

Learning Ruby Symbols

This post was imported from blogger, to see the original, likely better-formatted post see kalebpederson.blogspot.com. > Ruby has at least a couple of different ways of referencing variables. Class instance variables can be created with the @ prefix, like @my_var = “test”, there’s also an @@ prefix for class-level variables. For the first few days […]

Continue Reading

rspec: undefined method route_for error

This post was imported from blogger, to see the original, likely better-formatted post see kalebpederson.blogspot.com. > I’m now in the process of learning Ruby on Rails and its friends, like rspec. Firmly believing in TDD, I jumped on the rpsec bandwagon as soon as I could. The second thing I started to test was my […]

Continue Reading

QMetaEnum Magic – Serializing C++ enum’s

This post was imported from blogger, to see the original, likely better-formatted post see kalebpederson.blogspot.com. > Qt has a number of useful classes and utilities; among these is QMetaEnum which provides the ability to serialize and deserialize C++ enumerations through the use of moc, the meta-object compiler. Method 1 – Enum’s within a QObject (fairly […]

Continue Reading