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.

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

to

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

/vendor/plugins/life_intake/routes.rb

to

/vendor/plugins/life_intake/config/routes.rb

The contents of this routes.rb was changed from

map.resources :foods

to

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

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.

Enjoy!

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.