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 works.
I [...]
tools
I’ve spent a lot of time since the last posting on tool-chain issues. I decided to go with emacs as my editor/IDE, and darcs as my version control system. Since I mostly use a Mac, I went with Aquamacs as my emacs. It is hands down the best looking emacs I have ever seen.
Hacking emacs [...]
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();
[...]
Posts