Go to General > Reset, then tap on Erase All Content and Settings. If you have a passcode set, you'll need to enter the passcode to continue. An Erase iPad dialog will inform you that this will erase all media and data, and reset all settings; tap on Erase. Another dialog will ask if you're really sure you want to do this. Again, tap on Erase.
The screen will go black with an Apple logo and a progress bar, then you'll see the iOS device's name (iPad, iPhone, iPod touch) and a slider. Slide the slider to begin setting up the iOS device as a new device.
The TechHive article also noted that you can use this process to wipe and restore an iOS device; at one point in the setup process, you'll see a choice to set up the device as a new one, or to restore from an iCloud or iTunes backup.
When the process has completed, you'll have an iOS device with the stock apps and settings.

