2005-03-22

randomfox: (Default)
2005-03-22 01:32 pm

Calculate bills and hits needed to add 1 to the George Score

The George Score at Where's George is based on the following formula:
GS = 100 * 
     (sqrt(log(BillsEntered)) + log(TotalHits + 1)) * 
     (1 - DaysInactive / 90)

This Perl script calculates how many bills you need to enter or how many hits you need to get to increase the George Score by 1. It does that two ways: by using derivatives and by solving the George Score equation.

Read more... )
randomfox: (Default)
2005-03-22 05:06 pm

Split a file

Perl script that splits a file into 100 million-byte pieces. It system()s out to the dd utility, so it could be rewritten in pure Perl.

Usage example: split.pl largefile lf
will produce lf0, lf1, lf2, lf3... until there are no more pieces.

Read more... )
randomfox: (Default)
2005-03-22 05:11 pm

Analog clock in C#

A C# program that uses the .NET runtime to draw an analog clock that updates every second.

Read more... )