The \sc ocean} code for calculating near-edge x-ray spectra using the Bethe-Salpeter equation is briefly reviewed. The code is capable of calculating UV/Vis, near-edge x-ray absorption or non-resonant scattering, and resonant inelastic x-ray scattering