Recent developments in cosmic ray physics