Monthly Archives August 2008

C# scopes — am I missing something here?

Last time I checked, the scope of a variable drew the line after which it ceased to exist. For instance, in Java, when you defined a variable in a for loop, the minute the loop was over the variable ceased to exist…

Fiddling with an Internet Tablet (Nokia)

A few months ago I bought an old internet tablet. More specifically a Nokia 770. I bought it mainly because it runs GNU/Linux and I wanted to play with it.
Needless to say the first thing I tried to do was to replace the distribution that comes with it (rolled by Nokia engs.) and put a [...]

Sampling from a given probability distribution

In a project I’m working on I’ve come across the necessity to sample a vector of values from a Dirichlet distribution.
I don’t know you, but during my undergraduate degree we were never taught how to write code to do this type of stuff, i.e. sampling from different probability distributions, etc. Fortunately Wikipedia, being a good [...]