Archive for August, 2011

Are you a bad developer?

In an argument, are you more interested in winning than learning?

Do you spend more effort trying to prove you’re right rather than finding a solution to a problem?

Do you spend more time getting others to do your work rather than helping others solve their problems?

Are you lavish with abuse and stingy with positive-feedback?

Are you only nice to others as long as they agree with you?

Upgrading ASP.NET MVC and controller factory says “no suitable method found to override”

If you upgrade from MVC 1 to 2 or higher and your controller factory (such as StructureMapControllerFactory) throws a “no suitable method found to override” error for your GetControllerInstance method, be sure you have a reference to System.Web.Routing:

using System.Web.Routing;

And be sure you add the RequestContext parameter to the GetControllerInstance method call like this:

protected override IController GetControllerInstance(RequestContext requestContext, Type controllerType)

Shelveset is killer feature of Visual Studio and Team Foundation Server

If I had a nickel for every time someone wanted me to make a “quick change” to some code while I was in the middle of open brain surgery with a dozen files checked out, I’d be able to pay for the Team Foundation Server license in record ROI time. Now when that happens, I can shelve what I’m working on, pull code from source (or even someone else’s shelveset), make my change, check it in, and then pull back my shelveset and get back to work. Awesome.

Here’s how to do it in Visual Studio 2010

How to install iPython in Console2 on Windows

Make sure python is referenced in your Path: < my python path >\python.exe (where < my python path > is the directory where you installed python, such as "C:\Python26").

Make sure IPython is installed (from here:

Make sure PyReadline is installed (from here:

In Console2, right-click go to Edit –> Settings… –> Tabs Add new tab with

 Title: iPython
 Icon: < my python path >\DLLs\py.ico
 Shell: cmd.exe /k "< my python path >\Scripts\ -p sh"
 Startup dir: C:\ (or wherever)

Hit ok and in your Console just go to File –> New Tab –> iPython and you’re off and running!

How to install Flask in your Python app

1. Create a directory for your project (e.g. “hello”). 2. In this directory, create a file with this code:

  from flask import Flask
  app = Flask(__name__)

  def hello():
      return "Hello World!"

  if __name__ == "__main__":

3. Download and install latest setuptools for your version of python.
4. Download latest flask, werkzeug, and jinja2, and decompress each in their own directory in your hello project like this:


Note: Make sure the files are decompressed so the is in the root of each folder.

5. In the cmd shell for your hello project, run

  easy_install Flask

6. Then


7. if all is well, you should see

  * Running on

8. Finally, you should see “Hello World!” in your browser at

© 2018 Robert Corvus