Monthly Archives: July 2009

“Doppler effect” kitchen tiles

The tiles in my kitchen remind me of some Doppler effect illustrations I have seen:

Posted in English, Pictures | 1 Comment

Understanding Bayes’ Theorem

Disclaimer: I am writing this because I finally understood how Bayes’ Theorem works. Therefore, this is much more a reference note to myself than anything else, but I am publishing the information here because I think it might be useful … Continue reading

Posted in English, Math | Leave a comment

Ternary operator in Python

Here’s how you translate the following C code int max(int a, int b) { return (a > b ? a : b); } to Python: def max(a, b): return a if a > b else b The general syntax is: … Continue reading

Posted in English, Programming, Python | Leave a comment