Installing Tomcat on Mac OSX (Snow Leopard)

November 12, 2009

Complete fresher here, and I guess there might be guys out there in the same boat. Here are the steps I needed to go through to make it work. Following some pointers on the way there:

Start by downloading what we need from

For the latest version see the Which version , but I used 6.x and got the core zip.

After you have downloaded it , most likely to the downloads folder unpack it and rename the folder to Tomcat for simplicity

Copy the complete folder to $$your_profile$$/Library

After you have done this , and got stuck here for a bit, run the following command to enable you to execute the commands from terminal.

chmod a+x /users/$your_profile$/library/tomcat/bin/*.sh

If you don’t expect to see the following:

Peter-Versters-MacBook-Pro:~ Peter$ /users/peter/Library/Tomcat/bin/

-bash: /users/peter/Library/Tomcat/bin/ Permission denied

This will make the files writeable and allow you to start the service.

Then execute the following:


Provided you are still with me navigate to http://localhost:8080 to test if the services is running.

Final step to give you admin access to the site:

is to set up the users as per the following:

conf/tomcat-users.xml in your installation. That file will contain the credentials to let you use this webapp.

You will need to add manager role to the config file listed above. For example:

<role rolename="manager"/>
<user username="tomcat" password="s3cret" roles="manager"/>
Happy Tomcatting...

How to write technical documentation

November 4, 2009

This is absolutely brilliant. If only we could all use this approach.

Jeff Moser has written an excellent article describing how the Advanced Encryption Standard works. He uses an very accessible paradigm – the cartoon. He layers the description starting with a simple overview and progressively getting into more and more detail. Because the story is layered, it is complete at each stage before more detail is added. The audience has the opportunity to leave when they know enough.

[From How to write technical documentation...]

STSADM Start Excel Services

December 18, 2008

  • STSADM.EXE -o provisionservice -action start -servicetype “Microsoft.Office.Excel.Server.ExcelServerSharedWebService, Microsoft.Office.Excel.Server, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c”

Edit Page in SharePoint without the menu

December 5, 2008

Append this to end of the url ?PageView=Shared&ToolPaneView=2

Private Views are done as follows ?PageView=Personal&ToolPaneView=2

More on this can be found here

Found some javascript to add to favourites, not too sure they are but will dig em out and post it.

Install SharePoint Templates using Script

November 27, 2008

Place the scripts below in one

Cool Developer Tools

November 23, 2008

This is a comprehensive list…


Below are some of the ones I frequently use…

GhostDoc is a free add-in for Visual Studio that automatically generates XML
documentation comments for C#. Either by using existing documentation inherited
from base classes or implemented interfaces, or by deducing comments from
name and type of e.g. methods, properties or parameters.


DebugView for Windows

Visual Studio 2010 and .NET Framework 4.0 CTP Download

November 9, 2008

Find the Virtual PC download of the CTP at the following link :

Windows SharePoint Services Document: Application Templates for Windows SharePoint Services 3.0 – Under the Hood

July 27, 2007

As per my previous post, there were things MS managed to do , but form the products was not immediately evident how it was done. This white