Using Pearson Correlation Coefficient in computing user/item similarity
Pearson's correlation is undefined when the variance of one of the random variables is 0, I would look for a more credible source to read from.