Man who threw shoes at Bush appears before judge