Simon Walters has written a nice script which automagically turns your Pi into a wireless hotspot. It only works with 8188CUS-based adapters at the moment, but it’s a great starting point if you want to be able to connect to your Pi wirelessly and headless at, for example, a Raspberry Jam. Read how to get the script here.