Blog Review Contest Winner! [The Cranking Widgets Blog]

Well, better late than never, I suppose )

Thanks to all of you folks who submitted reviews for the contest. The response wasn’t as overwhelming as I’d hoped, but that’s just good news for the people who did participate!

As promised, the winner would be chosen completely at random using a home-grown program that I said I’d post. Most of you can safely skip this next bit, and any programmers reading this should know that I was pretty tired when I wrote it ;)

Basically, it randomly grabs one of the URLs from a list containing all of them. This operation is executed one million times and the program tracks how many times each URL was picked. The URL picked the most often is the winner.

Here’s the (python) source code:

import random

# create empty results dict
results = {}
# init counter, max
count,max = 0, 1000000

urls = ['http://sapheyerblu.blogspot.com/2007/07/i-found-cranking-widget.html',
'http://journal.cyberpartygal.com/index.php/2007/07/review-the-cranking-widgets-blog-win-us50/',
'http://www.romandock.com/cranking-widgets-cranks-em-out/',
'http://www.thepinkc.net/reviews/review-the-cranking-widgets/',
'http://www.flippingheck.com/index.asp?view=display&ID=738',
'http://krispyblogs.com/reviews/?p=23']

for u in urls: results[u] = 0

while count  topcnt:
        best, topcnt = r, results[r]

print best

And here’s the output (which prints the URL of the winning post):

~/Development/Python inkedmn$ python CwContest.py
http://sapheyerblu.blogspot.com/2007/07/i-found-cranking-widget.html

So, congrats to the author of the winning post! Hopefully you emailed me so I can get your paypal address )

Thanks again to the participants!

Technorati Tags: , , ,

Original post here: brett

10 October 2007 | Administrivia, Etc. | Comments

Comments:

  1.  
  2.  
  3.