The LM317 has a certain amount of current that flows out of the ADJ pin (50-100µA). Your voltages will be a little bit higher than intended because it wasn't taken into account.
Also, Vin from the parallel port might be 3.3V instead of 5V. You should check, because it'll change the math.
But that's not what you asked.
The page you found does this:
- bcurrent = IC ÷ hFE
- baseresistor = (Vinput - VBE) ÷ (3·bcurrent)
Note that the BC547's Vcesat is probably smaller than the 1.4V you're using. The exact value will change the value of Rc you want to use.