Author Archives: Peter Ljubič

Django profiling again

The process of profiling takes the identification of bottlenecks (parts of the code that run slowly) followed by their more or less successful removal. As described in the previous post about profiling you can get helped by using a profile middleware. The solution is all fine, but the problem remains how to identify a bottleneck.
You [...]

Posted in Projects | Tagged , , | Leave a comment

Profiling Django Applications

I don’t really like to put print statements in my code in order to do debugging. Actually the only thing I hate more is putting get-time-like functions before and after certain part of code. And then subtracting after with before and output the result. Wouldn’t it be nice to have a tool like gprof for [...]

Posted in Projects | Tagged , , , , | 2 Comments

The Rich Can Play

Glancing through the table of the Beijing 2008 olympic medals count made me curious about what is more important to be near or right at the top. Actually what triggered curiosity was the fact that India had only one medal at the time. And India’s population is enormous. Just like China’s. Just that China is leading. Another trigger is the fact that I come from Slovenia, a country with a population just above 2M. And we have 5 medals.

Posted in Visual | Tagged , , , , , | Leave a comment

Netflix Prize with Nearest Neighbours

Those not familiar with the contest can find the details here. After three weeks of work i managed to score 0.9422 rmse, which brings positions just above the 1000th place. how? Not too hard, but not too easy either.
I’ve put the k-nearest neighbours algorithm on work. The algorithm finds the nearest k samples to the [...]

Posted in Projects | Tagged , , | Leave a comment

Spaghetti Code

Having trouble explaining your non-programmer boss that the whole story of creating software is just going too fast? Or tried to convince someone you need more time to plan software, not just to write software? Show these people some graphs. They’ll get it. Or at least you’ll get it they’ll never get it.
The title should [...]

Posted in Visual | Tagged , , , | Leave a comment