The judge in Rod Blagojevich's corruption trial has told him to stop tweeting in court.