I just upgraded WordPress to the newly released version 2.2.3, using Subversion as described here. I used to upgrade WP by hand, a tedious task at best. Never again. SVN makes the upgrade process short and sweet. Highly recommended.
Archives for September 2007
sum of file sizes
This was recently posted to the erlang-questions mailing list I am trying to grok how to write a simple ‘du’ like program that walks a directory structure ( not just one but all nested directories ) and calculates a sum of all the file sizes. I found some sum() code that I understand how that [...]
generating random permutations
I want to consider the simulation of dealing a deck of cards. The deck is simply the list of integers D = [1,2,...,52]. Dealing the cards amounts to generating a random permutation of D. Here’s how I would do it in java. public class Shuffle { private static java.util.Random rand = new java.util.Random(); // construct [...]
Posts