Well, it depends on what you're doing. You see, it's better to be in your computer if you have a virus, so you can know what your doing or how your computer works. But if you love being on the...
"a" is for when a word starts with a consenant (non-vowel) sound, and "an" is for when a word starts with a vowel sound. We pronounce the H in historian so you would use "a".