• Penguicon The Seventh

    Like Xavier, I came back from Penguicon 7.0 this weekend to a mountain of work. Now I’m going to walk and talk like him (minus the epic growl) — guess that means I look like someone else here — and give my review. The highlight was certainly the party. Friday night was phenomenal, Saturday night […]

    May 7th, 2009 | Filed under Uncategorized
  • How Random

    A Python function that returns a random subset of size n from set s. from random import randint   def random_subset( s, n ): if len( s ) < n: raise ValueError, ( "Subset larger than input set" ) l = list( s ) r = set() for i in range( n ): r.add( l.pop( […]

    Comments Off on How Random
    May 5th, 2009 | Filed under Uncategorized
    Tags: ,
Archive for May, 2009