How can I get a conviction expunged/dismissed?

Penal Code §1203.4 allows petitions to set aside convictions after probation. Some restrictions remain (firearms, immigration).