Newcastle eased the pressure on under-fire boss Alan Pardew with a hard-fought 2-1 win over Cardiff at the Cardiff City Stadium.