Scientific Realism and Pragmatic Idealism