Installing Apache Tomcat on Amazon EC2 without using RPM

bug tomcat java

How to install Apache Tomcat on Amazon EC2 instance without using a RPM.

Some readers have sent questions asking how to install Apache Tomcat without using a RPM. In this post, we go through quick steps to install Apache Tomcat on Amazon EC2 Instance. You should be done with the installation within 60 seconds of starting. Refer to the original post of Installing Java and Apache Tomcat on CentOS 6.5 on Amazon EC2 with RPM.


  • Amazon EC2 instance (assumed available)
  • Java (assumed installed)

Continue reading

different drives for development


There can be many drivers for the code you write. The best I have found so far

embarrassment driven development – code you won’t be embarrassed to open source

Was going through hoards of tweet and came across this little gem of a twitter conversation.


BDDBehaviour driven development
LCDDD – Lowest Common Denominator driven development
DDDDomain driven development
DDDDesign driven development
ATDDAcceptance Test driven development
TDDTest driven development
CTDDContinuous Test driven development
CDD – Conference driven development

Know of any other types?

Apache Tomcat serving multiple webapps on different domains

apache tomcat java multipe webapps

How to serve multiple web applications on different domains through Apache Tomcat

This is a guide to setting up multiple webapps on Apache Tomcat, locally or VMWare or Amazon EC2 instance. We also talk a little about iptables and port redirection towards the end.


  • java 1.7 (assumed installed)
  • centos 6.5 (assumed installed)
  • apache tomcat (assumed installed)

To see how to install Oracle Java Development Kit 7.0 installation, Apache Tomcat installation or Open JDK installation for Amazon EC2 Instance please check one of the previous posts.

Continue reading

Hiberfil.sys on Windows


Hibernation on windows 7

So there was a really big fat hiberfil.sys file on one of my Windows 7 Virtual machines taking up a lot of space (approximately 20GB). This file is used by Windows to manage the hibernation mode as one of it’s power management modes. Windows uses this file to store the current memory state of your computer. Since it’s used by Windows you can’t just delete it. All that space when I don’t even use the ‘Hibernation’ mode.

So if you are not going to use the Hibernation mode like me you can disable it by opening the command prompt in the Administrator mode running the following command

This will disable the ‘hibernation’ mode and you will see the ‘hiberfil.sys’ file disappear freeing up a LOT OF SPACE. Awesome. More space but no more hibernation. Who needs hibernation anyway? Get to work!