Jul 13

Wieża Saurona zbudowana z 50 000 klocków Lego: tutaj


May 11


I really hate Pokemons and stuff like that, but in my opinion this performance is delightful.


May 11


Dec 7

I’ve noticed a problem with Lightning view panel in Thunderbird. After each restart of Thunderbird it disappears and I must resize it using vertical line on the right.
User Skip Head has solved this problem:

hover your mouse pointer over the line, in the middle of line where the tiny
dots are – your pointer will turn into a hand. Click on the dots and
the today pane will jump out to regular size. Now it will stay the
correct size.

Click here for more details


Nov 20

We are given a covariance matrix, and we’d like to generate n vectors, whose coordinates’ covariance matrix is equal to given. We also like each coordinate to have given mean.
Here is a code:

function numbers = randomcov(n, covMatrix, offset)
    x=randn(n,length(covMatrix(1,:)));
    numbers = x*inv(chol(cov(x)))*chol(covMatrix);
    for i=1:length(offset)
        numbers(:,i) = offset(i)+numbers(:,i)-mean(numbers(:,i));
    end
end

Usage:
n – number of vectors to generate
covMatrix – given covariance matrix
offset – vector of means of each coordinate

Example:

Read More