What would it be like if the only person who could ever fix problems with your house was the contractor who built it originally? That is the kind of imposition that's involved in proprietary software.

Richard Stallman, http://www.gnu.org/gnu/byte-interview.html

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).