Accelerometer and Magnetometer calibration

Currently, my sensors are on a breadboard and connected to my Uno R3 using Sparkfuns Ardunio/Breadboard holder.

I think I am going to be build one, maybe using various sized PVC pipe or something like this.

What method did you use michinyon, is it something that I might be interested in? I need something to calibrate the X, Y, and Z axis for both my magnetometer and accelerometer. Even if your method only calibrates one or the other, I would still be interested in it.