News for hackers. Stuff that matters.
Re:The Rise of "Gangnam Style" - Embedly Stats by alainbryden on Wednesday October 10, 2012 @03:33PM (#4637780)
The apparent cubic spline used to join data points on http://embed.ly/stats looks a little ridiculous, especially when the popularity of something takes off from 0 and your spline shows it first dipping to some negative number.

Maybe if you try using a quadratic spline? Mathematically it is almost just as trivial, so your performance should be unaffected, and in my experience it gets rid those embarrassing artifacts left by using cubic splines to join points representing exponential data.

Re:The Rise of "Gangnam Style" - Embedly Stats by jemhoff on Wednesday October 10, 2012 @04:07PM (#4637923)
Whoops, you're right! I don't think I've ever noticed that before -- just changed it to a monotone cubic and it looks much better. Thanks!

http://en.wikipedia.org/wiki/Monotone_cubic_interpolation

Re:The Rise of "Gangnam Style" - Embedly Stats by alainbryden on Thursday October 11, 2012 @12:25PM (#4641510)
Yeah that looks great.