An error occurred while validating. HRESULT = ‘8001010E’

Just a quick tip. While upgrading one of my projects from VS.NET 2008 to VS.NET 2010 I ran into a problem I wasn’t able to find a correct solution for it anywhere.

While building my setup projects I got:

An error occurred while validating. HRESULT = ‘8001010E’

Various posts suggested to remove all dependencies but in my case it was caused by an invalid reference to the framework. This is what I did to have it compile again:

  • Right-click .vdproj
  • Select “View” | “Launch Conditions”
  • Right-click “.NET Framework”
  • Select “Properties Window”
  • Expand “Version” dropdown
  • Select correct framework e.g. if it is currently set to “3.5.1234” you might select a similar in the dropdown list i.e. “.NET Framework 3.5”.

Maybe it might help you as well.

Facebook CSS for will_paginate gem

Today I needed to add pagination to my Danish beta application for handling your accounting called Hurtigmoms. Since I’m developing in Rails it was a logically choice to use “will_paginate” to support pagination.

Our prototype layout is using a Facebook header and so I wanted my pagination control to mimic their style. If you need something similar you might want to take a look at my CSS styles which are using the default class names used by will_paginate.

    .pagination {
        font-size: 11px;
        float: right;
        margin: 0;
        padding: 3px 0 4px;
        .pagination a,
        .pagination span {
            padding: 3px 3px 2px;
        .pagination .disabled {
            background:none repeat scroll 0 0 transparent;
            border:medium none;
        .pagination a {
        .pagination a:hover {
            border-bottom:1px solid #3B5998;
            border-color:#D8DFEA #D8DFEA #3B5998;
        .pagination .current {}
            .pagination .current {
                border-bottom:2px solid #3B5998;
            .pagination .current a:hover {

        .pagination .prev_page {

        .pagination .next_page {


Just copy and paste it into your application css file and you’re done.

This is how it looks:

Upgrading Rails Engines Project to Rails 2.3.2

My lifestyleapps project (still in very early beta) was running Rails 2.2.2 with the Rails Engines plugin ten minutes ago. Today, Rails 2.3.2 was released so I decided to try if I could easily upgrade it and avoid using the Rails Engines plugin anymore. It was beautiful simple and took me less than ten minutes.

First, I had to update our Apache Passenger module with a version supporting Rails 2.3 so I did a

$ gem update passenger

and then run the install to build our apache module

$ passenger-install-apache2-module

In my config/environment.rb I changed

RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION


RAILS_GEM_VERSION = '2.3.2' unless defined? RAILS_GEM_VERSION

and asked Rails to update my various script files by issuing

$ rake rails:update

Finally I remembered the application.rb should be named application_controller.rb now so I issued an explicit task for this as well

$ rake rails:update:application_controller

In the Rails Engines plugin you need to have the “routes.rb” file in the root of your plugin but with Rails 2.3.2 you should have it in the ‘config’ folder under your plugin and its content should be wrapped in “ActionController::Routing::Routes.draw do |map|” as the root routes.rb. So I changed this from




The contents of this routes.rb was changed from

map.resources :foods


ActionController::Routing::Routes.draw do |map|
  map.resources :foods

Finally I had to update the root “routes.rb” to avoid using the “from_plugin” call e.g. I simply removed lines such as

map.from_plugin :life_intake

Now I don’t need the Rails Engines plugin anymore so I removed it with

$ ./script/plugin remove engines

That’s it .. I was now able to run my tests and start up my project and have it run on Rails 2.3.2.


Extend your shell toolbox with pbcopy

I’m developing Rails applications on Mac and a command which isn’t used enough in my opinion is “pbcopy”. This command will allow you to grab the standard input from a terminal and put it on the clipboard.

I find myself using commands such as “pwd | pbcopy” a lot. This will grab my current working directory and make it available in my clipboard allowing me to easily paste it into another terminal or application. This avoids the need for you to grab your mouse to paste a simple line.

Just a quick tip for developers switching between terminal and desktop applications on a regular basis.