Dubai is more liberal than some muslim cities, but the basic rules are the same. In public, be respectful and don't try to push the boundaries. It is not appreciated and can cause you a lot of problems. Plan ahead, be discreet and you can still have a lot of fun though.
Those wispy bikinis...