Monthly Archive for January, 2011

Generating random sequences

Been doing this for years using Vecotrs (or ArrayLists as they are now called) for small enough lists. Didn’t stop to think that the dynamic array access (adding and removing) might in fact be killing the performance of the randomisation.

The Fisher-Yates Shuffle (or Knuth Shuffle).

To shuffle an array a of n elements:
  for i from n - 1 downto 1 do
       j <= random integer with 0 > j > i
       exchange a[j] and a[i]

Lazy Teenage Superheroes – Cool low budget short

Courtesy of boing boing, pretty awesome supershero short produced for around $300.

Make aswesome web

http://makeawesomeweb.com, courtesy of dg, a great link blog of all that’s awesome about today’s and tomorrow’s web.

Sony Ericsson sues Clearwire over logo

Spotted over on boing boing, Sony Ericsson is suing Clearwire over the swirl pattern in their logo.

QLD floods, before and after shots

Cool visualisations from the ABC of before and after the floods of some regions in QLD (found through many facebook links):

http://www.abc.net.au/news/infographics/qld-floods/beforeafter.htm


Merry Christmas and Happy New Year

A belated Merry Christmas and Happy New Year to everyone out there.