Shocks, singularities and oscillations in nonlinear optics and fluid mechanics. (2017)