Particle Acceleration in Astrophysical Media