Friday, January 23, 2009

svn: This client is too old to work with working copy; please get a newer Subversion client

When I tried downloading the latest ActiveScaffold plug-in (script/plugin install git://github.com/activescaffold/active_scaffold.git -r rails-2.2 ) for my rails app. I got this error
svn: This client is too old to work with working copy;
please get a newer Subversion client
I check my svn version and I was running 1.4.6.28521. I downloaded the client from the CollabNet website http://www.open.collab.net/downloads/subversion/ and installed it. At the installer I had to change the install path to match my old installation folder(C:\Program Files\Subversion).

After upgrading to svn version 1.5 i was able to run the plug-in update without any errors.

Thursday, January 22, 2009

CC.NET Fails: Task failed because "sgen.exe" was not found:

When deploying an application to Windows Server 2008 I found the following error.

Could not locate the expected version of the Microsoft Windows SDK. Looked for a location specified in the "InstallationFolder" value of the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A". If your build process does not need the SDK then this can be ignored. Otherwise you can solve the problem by doing one of the following: 1) Install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5. 2) Install Visual Studio 2008. 3) Manually set the above registry key to the correct location.


To solve this I downloaded and installed the v3.5 SDK for Windows server 2008.

This is the ISO:
http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en

If you are doing it remote you need to download the web installer
http://www.microsoft.com/downloads/details.aspx?FamilyId=E6E1C3DF-A74F-4207-8586-711EBE331CDC&displaylang=en

Wednesday, January 21, 2009

Rails Error: Rails requires RubyGems >= 1.3.1 (you have 1.2.0).

I tried setting up a new rails project today. After I updated to the new rails version 2.2.2, I got the following error when attempting to run my WEBrick server.

"Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update --system` and try again.

So I did what It said.

gem update --system
and it returned 'Nothing to Update'

I solved this problem by running
gem install rubygems-update
and then...
update_rubygems

that actually did the updating.
After the gem updates I was back in business.

Friday, January 16, 2009

Javascript to show and hide input default text

Here is a script that I got from one of the sites I worked on.
It has come very handy and re-usable in other sites.

Just add the class 'default_value' to your Textbox or input controls <input class="'default_value' /> and that's it. When you click on the textbox the default text will disappear. If you don't enter any value on blur the default value will be displayed in the input again.