It's wrong to judge a book by its cover. It's doubly wrong to judge an author by his jacket photo. If you were to do that with me, you would be forced to assume that I was some sort of rogue Muppet, eremite priest, or Russian dictator.

Patrick Rothfuss, author of Name of the Wind, http://www.patrickrothfuss.com/

08.31.06

Free Book on Security, Online!

Posted in Computers at 10:36 am

PDFs of Ross Anderson’s Security Engineering, with foreword written by Bruce Schneier (my computer security idol), are now available for free. Found via Bruce’s blog, Schneier on Security.

08.30.06

Clever C Code to Calcluate “π”

Posted in Software Development at 5:16 pm

Someone on IRC (#ubuntu-offtopic on irc.freenode.net) sent a link to the following delightful little 1988 IOCCC winner, written by Brian Westley:

#define _ F-->00||-F-OO--;
int F=00,OO=00;main(){F_OO();printf("%1.3f\n",4.*-F/OO/OO);}F_OO()
{
            _-_-_-_
       _-_-_-_-_-_-_-_-_
    _-_-_-_-_-_-_-_-_-_-_-_
  _-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
 _-_-_-_-_-_-_-_-_-_-_-_-_-_-_
  _-_-_-_-_-_-_-_-_-_-_-_-_-_
    _-_-_-_-_-_-_-_-_-_-_-_
        _-_-_-_-_-_-_-_
            _-_-_-_
}

The functionality of the above program is to print the value of the constant π (“pi”, ∼3.14). The beauty of it is: the larger you make the circle, the more accurate the value (but you’d need to adjust the precision of the printf() format string).