Sunday, July 24, 2011

installing windows phone developers tools on windows server 2008 R2

Many of us using Windows Server 2008 R2 as development workstations. But if you want to develop for windows phone 7 then you are out of luck as Windows Phone Developer tools does not allow you to install it on  Windows Server 2008 or later. It stops while bootstrapping. Luckily you can bypass the bootstrap error. Thanks to Aaron Stebner for his blog post about this here. Follow this steps to install it:

  • Download the developers tools in ISO format from this location and mount it using your favorite virtual CD/DVD image loader
  • Now copy all the contents from the mounted drive to any folder you want say C:\wpd
  • Now edit the baseline.dat file using any text editing tool
  • Go to the [gencomp7788] section
  • Under this section find out InstallOnLHS and change the value from 1 to 0
  • Again find out InstallOnWin7Server within the same section and change the value from 1 to 0
  • Save the baseline.dat file and close it
  • Now run setup.exe
Now it won't check for the server edition and will be installed successfully...

Install mysql2 gem on windows

If you are trying out the Rails 3 and you are stuck at not being able to install mysql2 gem on your windows pc. Just follow this steps to install it successfully (I used MySQL 5.5.9 version):

  • Install MySQL 5.5.9
  • Copy libmysql.dll from C:\Program Files (x86)\MySQL\MySQL Server 5.5\lib [Mine was 64 bit windows, in 32 bit it must be Program Files only] to bin directory of your Ruby installation
  • Now open command prompt and run the following command: gem install mysql2 -- '--with-mysql-include="C:\Program Files (x86)\MySQL\MySQL Server 5.5\include" --with-mysql-lib="C:\Program Files (x86)\MySQL\MySQL Server 5.5\lib"'
Now its installed on was only about the extra config options and a bit of string escaping issue on windows command prompt...happy coding...  :)

Wednesday, February 9, 2011

Netbeans support for Ruby on rails is discontinued from Netbeans 7

Recently Netbeans team announced that going forward from its IDE version 7 it will discontinue its support for Ruby on rails. That's disappointing news for all the existing users of Netbeans IDE. Here is the announcement:

Wednesday, December 1, 2010

Rubymine 3.0 ships with ruby 1.9.2+ debugging support on windows

On 29 November Jetbrain's latest Ruby on Rails IDE Rubymine 3.0 version shipped. I downloaded the trial version and installed it on my windows 7 and it was a nice experience.

To say really I have been a fan of Netbeans IDE for my Rails application development. But I think this time Rubymine 3.0 will give a tough fight for Netbeans in terms of Rails IDE choice as Netbeans is more and more geared towards development of PHP and Java and very view updates are coming through for Ruby development in recent months. As of Ruby 1.9+ debugging has been a pain on Netbeans on windows platforms. Rubymine has taken the initiative to solve the bugs of ruby-debug-ide gem and the recent 3.0 version is working great without any trouble debugging Rails applications.

However, I hope that similar improvements will be coming through from Netbeans in near future as the progress in ruby world has a leap in recent times and if netbeans plans to hold the developers using netbeans as their Rails IDE then it's better to hurry!!! :)

Thursday, October 7, 2010

The contents of the feature's solution requires the Solution Sandbox service to be running

If you are developing any Sandbox solution for Sharepoint 2010, then you may have faced an error while deploying any solution to your development server. The error in Visual Studio 2010 output window looks like this generally:
Error occurred in deployment step 'Activate Features': This feature cannot be activated at this time. The contents of the feature's solution requires the Solution Sandbox service to be running.

The fix is simple. You must make sure that your "Sharepoint 2010 User Code Host" service is running. It is disabled by default installation. So, you have enable and run it. If you want to deploy the solution, then again you see the same error output. Actually, you have to make sure that this service's status is active in Central Administration Site. To see the status go to your Sharepoint 2010 Central Administration Application. Under System Settings > Manage services on server make sure that "Microsoft SharePoint Foundation Sandboxed Code Service" service is started. If it is stop start it. Now, you can package and deploy sandbox solutions right from Visual Studio.

A first look at Microsoft ASP.NET MVC 3 Beta

First beta version of Microsoft ASP.NET MVC framework 3 is ready to be downloaded from here and announcement from Scott Guthrie's blog. Significant changes have already been made to this version. You can go through the release documentation to have detail information on the new changes that are available with this release.

One of the newest edition is the "NuPack Package Manager". If you are a ruby developer, then it will not be a real ground-breaking idea as you are already using RubyGem from the first day of your ruby development career. For .NET platform it's comparatively newer concept. There are few other open source project already available for the same purpose. But there is always a better expectation associated with something from Microsoft itself from developers point of view. To read more on NuPack refere to the this article from Scott Hanselman. With this release Microsoft is going to make integration of third party libraries with .NET easier.

The new view engine "Razor" is really cool!! Syntax is much cleaner now for view. Though the C# syntax was available from first preview version, now VB support is also in built. However, previously it was possible to use VB code but had to activate it manually. I am pretty excited with this view engine. But unfortunately the intellisense support is not yet ready for "Razor". Waiting for it...:) If you want to read more on this I will recommend Scott Guthrie's blog post on Razor.

There is an interesting new support for running code before views run for any particular view folder. If you want to set something default to all views, its extremely useful. The file that will be used for this purpose is named _viewstart.cshtml (C# code) or _viewstart.vbhtml (VB code). For example if you want to set the default layout for all views for a particular directory and its sub-directories you can set the layout code here. And it will run before running any view file within that directory.

There are bunch of other improvements including new helper methods, better dependency injection support, unobtrusive javascript support and many more.

Monday, September 27, 2010

Microsoft developer guidance maps published

At work or even as a starter of any new technology we frequently try to search for the articles published for a particular portion of that technology, right? Specially if you are a Microsoft development platform enthusiast, then it gets really big in terms of documentation or tutorials. Microsoft recently published a new project about centralizing all the links and resources grouped by technologies. Its not huge, but it surely helps if you want to search for best articles for any particular technology. Its called Microsoft Developer Guidance Maps. You can read more on this on J. D. Meier's blog.

J.D. Meier's Blog