Archive for July, 2008

Doing Development: Setting up VMware Server

July 23rd, 2008

This is the first part in what will be an ongoing set of articles on setting up and getting ready to do development. Before one begins to do any sort of development there needs to be somewhere to do it. With the advent of modern computers and the amazing amount of horsepower that they now contain virtualization makes a great way to set up a perfect, portable environment that gives a developer an incredible amount of control over their work environment.

There are many different virtualization options available now that processors support virtualization directly on the hardware and the aforementioned abundance of computing power. Linux and Windows users can choose from qemu, KVM, VirtualBox, VMware Player/Workstation/Server, Parallels and Xen (Windows misses out on KVM and Xen).

Out of that list, VMware has been in the virtualization business for a long time and as a result have wonderfully robust codebases for virtualization. It is because of this I will be setting up VMware Server, a free-as-in-beer product that allows a user to create virtual machines. The added benefit is that the end user can easily move this VM from machine to machine and even between VMware products.

» Read more: Doing Development: Setting up VMware Server

Install Webmin on Ubuntu 8.04

July 22nd, 2008

I installed Ubuntu on a second machine earlier this week as a small file server as I’m gearing up to format and reinstall my main computer. As normal with my Linux servers it will run headless with just a power cord and a network cable attached.

One thing I cheat with on my headless machines (at home, never on a production server) is installing Webmin. It is great if you know what you are doing since Webmin gives you an incredible amount of power. I SSHed into the box and fired off the aptitude command to install Webmin.

There is no Webmin package in the Ubuntu repositories. I have no idea why, but it is not there. So, who do you get it installed?

» Read more: Install Webmin on Ubuntu 8.04

Doing Development Series

July 19th, 2008

I hope you will join me as a start a 5 part series of posts entitled ‘Doing Development.’ This series of articles will detail what I use for doing all of my development work both professional and personal. As anyone who has done serious web development knows, there is more to creating an application than just opening a code editor and hacking away.

The Lineup

  1. Setting up VMware Server
  2. Installing OpenBSD
  3. Setting up Apache
  4. Setting up Eclipse
  5. Setting up Subversion

I will publish one article a week in addition to any other regular posts that I have. Any comments are welcome as I’d love to hear how other people do their development.

Subversion Backups and Restores

July 19th, 2008

One thing that a lot of developers don’t even think about is backing up their source control repository. If, like me, your code is stored in Subversion then backing up and subsequently restoring the data is easy.

Backing Up

svnadmin has an option to do a dump which is a full command history of your repository. Because of this the file can end up quite large if you have a repository with a lot of changes. A quick way to back up and compress the repository is:

1
$ svnadmin dump /path/to/repo | gzip -9 -c > archivename.gz

This dumps the repository straight into gzip to compress it down to then write it to a file. With a little bit of shell scripting this can be turned into a very nice backup script.

Restoring

What happens when you need to restore your repository? You load the information back in! You can take the backup we made above and reload it into the repository with:

1
$ gzcat archive.gz | svnadmin load /path/to/repo

This will dump your backup into a fresh repository so that it looks exactly like it did when you took the backup.

Who? Wha? Huh?

July 17th, 2008

Who?

My name is Chris Tankersley, a web application developer and programmer in Ohio. I specialize in PHP development and dabble a bit in C# and Python. Most of my day is spent heading up the web department for a small insurance company but otherwise I spend my time with my family and manage to get some personal programming done as well.

Wha?

This is a blog that will run along with my new site, http://www.tankersleywebsolutions.com . I am a firm believer in being open with my development and programming, so this is a great way to keep that transparency.

Huh?

Damn, I was really hoping all the above made sense…