11 Aug 2000 bwtaylor   » (Journeyer)

4pm: Decklin asked why 1024 is the lower bound in his perl solution to the coconuts problem. Basically, you multiply by 5/4 five times in your loop, giving you a denominator of 4^5=1024. Of course, there are all those extra +1's and int functions messing the precision of this statement up "$x=int($x*5/4+1)", but that's why pondering starting with four extra coconuts helps: it's exactly what is needed to remove them.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!