Well you can't.
Not anymore.
You now have to be dutch and get a weed pass of which there will only be 2000 per coffee shop to be able to purchase marijuana from them. Bummer.
www.guardian.co.uk/world/2012/apr/27/netherlands-cannabis-cafes-off-limits-tourists?INTCMP=SRCH/