Notes on the solar corona and the terrestrial ionosphere