# User talk:Paddy3118/Vanity Search Updated

Moved From: User talk:Paddy3118

## Vanity Search Updated

After the 4th of July RC updates, My RC Vanity Searcher needed to be updated due to HTML changes. I decided to add a modification, that shows the movement between the order a page was created in, vs the max views order called **+/-**.

<lang python> Rosetta Code Vanity search:

How many new pages has someone created?

import urllib, re, pdb

user = 'Paddy3118'

site = 'http://www.rosettacode.org' nextpage = site + '/wiki/Special:Contributions/' + user nextpage_re = re.compile(

#r'<a href="([^"]+)" title="[^"]+" rel="next">older ' r'<a href="([^"]+)" title="[^"]+" rel="next"[^>]*>older ' )

newpages = [] pagecount = 0 while nextpage:

```
page = urllib.urlopen(nextpage)
pagecount +=1
nextpage =
for line in page:
if not nextpage:
# Search for URL to next page of results for download
nextpage_match = re.search(nextpage_re, line)
if nextpage_match:
nextpage = (site + nextpage_match.groups()[0]).replace('&', '&')
#print nextpage
npline=line
if '' in line:
# extract N page name from title
newpages.append(line.partition(' title="')[2].partition('"')[0])
page.close()
```

nontalk = [p for p in newpages if not ':' in p] nontalk.reverse()

print "User: %s has created %i new pages of which %i were not Talk: pages, from approx %i edits" % (

user, len(newpages), len(nontalk), pagecount*50 )

print "New pages created, in order, are:\n ", print "\n ".join(nontalk)

nextpage = site + '/w/index.php?title=Special:PopularPages'
nextpage_re = re.compile(

#r'<a href="([^"]+)" class="mw-nextlink">next ' r'<a href="([^"]+)"[^>]* class="mw-nextlink"[^>]*>next' )

data_re = re.compile(

r'^

*))*title2rankviews[title] = [rank, views] rank += 1 page.close() print "\n\n Highest page Ranks for user pages:\n" fmt = " %-4s %-6s %-3s %s" # rank, views, +/- title print fmt % ('RANK', 'VIEWS', '+/-', 'TITLE') fmt = " %4s %6s %+3i %s" # rank, views, +/- title highrank = [title2rankviews.get(t,[99999, 0]) + [t] for t in nontalk] highrank.sort() for i,x in enumerate(highrank): rank, view, title = x movement = nontalk.index(title) - i print fmt % (rank, view, movement, title) </lang>

### Sample output on 12 July 2009

Since the 25th of June I've added two tasks: 'Send an email' and 'Topological (dependency) sort'.

With the new +/- column showing views w.r.t. creation order, you can see that the Knapsack Problem has captured the readers imagination. The Y combinator has a strong showing too.

**Is it possible to get views in the last three months rather than total views?** That would allow me to discount some of the bias due to date created.

User: Paddy3118 has created 63 new pages of which 31 were not Talk: pages, from approx 600 edits New pages created, in order, are: Spiral Monty Hall simulation Web Scraping Sequence of Non-squares Anagrams Max Licenses In Use One dimensional cellular automata Conway's Game of Life Data Munging Data Munging 2 Column Aligner Probabilistic Choice Knapsack Problem Yuletide Holiday Common number base formatting Octal Integer literals Command Line Interpreter First-class functions Y combinator Functional Composition Exceptions Through Nested Calls Look-and-say sequence Mutual Recursion Bulls and Cows Testing a Function Select Sort stability Moving Average Send an email Topological (dependency) sort Highest page Ranks for user pages: RANK VIEWS +/- TITLE 84 2792 +12 Knapsack Problem 100 2629 +0 Monty Hall simulation 107 2431 +5 Conway's Game of Life 132 2013 +1 Anagrams 199 1368 +2 One dimensional cellular automata 211 1233 -3 Web Scraping 218 1189 -1 Max Licenses In Use 221 1158 -7 Spiral 256 919 -5 Sequence of Non-squares 261 900 +4 Yuletide Holiday 267 866 +0 Column Aligner 281 809 +8 Y combinator 290 780 +6 First-class functions 303 732 -4 Data Munging 2 309 718 -6 Data Munging 315 706 -4 Probabilistic Choice 332 642 +1 Command Line Interpreter 351 598 +6 Mutual Recursion 365 568 +6 Bulls and Cows 366 566 +1 Functional Composition 388 501 -4 Integer literals 407 463 -7 Common number base formatting 418 436 +0 Look-and-say sequence 446 375 -8 Octal 455 347 -3 Exceptions Through Nested Calls 493 248 +2 Sort stability 525 207 -1 Testing a Function 548 186 -1 Select 559 174 +0 Moving Average 703 69 +0 Send an email 725 43 +0 Topological (dependency) sort

### Sample output on 24 July 2009

What has happened in the last twelve days?

- Ethiopian Multiplication is newly added and is off to a great start. Editors seem attracted to the challenge. I decided to add this as I was drawn by the simplicity of the algorithm. To make it a better RC task I decided on the restriction that you must create the function using a functions to half, double, and test for even-ness.
- I guess viewers are tired of yet another sort: Topological (dependency) sort still languishes at the bottom.
- I created my first #REDIRECT page: Russian Peasant Multiplication
- Knapsack Problem still continues its rise in ranking (thank you).
- At the top of my table, everything above Sequence of Non-squares has improved its rank. I tried to think of some other thing thats links them, but nothing special comes to mind.
- I am not sure if spiral is unpopular, as it has a lot of views, was my first page ever, but appears seven places down from its original top spot - I remember writing it after creating the Python solution to Zig Zag.

Here's the table:

Highest page Ranks for user pages: RANK VIEWS +/- TITLE 79 2898 +12 Knapsack Problem 97 2707 +0 Monty Hall simulation 106 2490 +5 Conway's Game of Life 131 2059 +1 Anagrams 196 1391 +2 One dimensional cellular automata 208 1257 -3 Web Scraping 216 1207 -1 Max Licenses In Use 220 1182 -7 Spiral 256 936 -5 Sequence of Non-squares 259 915 +4 Yuletide Holiday 269 878 +0 Column Aligner 270 871 +8 Y combinator 285 803 +6 First-class functions 300 744 -4 Data Munging 2 305 733 -6 Data Munging 312 717 -4 Probabilistic Choice 321 678 +1 Command Line Interpreter 331 648 +6 Mutual Recursion 348 614 +6 Bulls and Cows 360 582 +1 Functional Composition 384 525 -4 Integer literals 396 486 -7 Common number base formatting 407 466 +0 Look-and-say sequence 432 410 -8 Octal 450 367 -3 Exceptions Through Nested Calls 479 275 +6 Ethiopian Multiplication 491 255 +1 Sort stability 516 218 -2 Testing a Function 537 200 -2 Select 540 192 -1 Moving Average 669 90 -1 Send an email 676 79 -1 Topological (dependency) sort 99999 0 +0 Russian Peasant Multiplication

### Sample output on 6 August 2009

So, what's been moving!

Well I am glad to see that I have to go right down to Sort stability before I see a task that is lower in the rankings than last time. Y combinator has leap-frogged even more of my tasks, from +8 to +11; and Bulls and Cows, and Ethiopian Multiplication are also doing well.

Newly created is First-class Numbers. When reviewing wp:First-class function, There were comments in the talk page about what languages really have FcF. I decided that rather than bring the discussion to RC, I would create a sister task - similar but using numbers and asking examples to compare the numbers solution with the functions solution. I guess people can still get around it, but I hope they follow the spirit of the task.
```
```

```
```Highest page Ranks for user pages:

RANK VIEWS +/- TITLE
76 3064 +12 Knapsack Problem
93 2826 +0 Monty Hall simulation
103 2611 +5 Conway's Game of Life
127 2156 +1 Anagrams
195 1442 +2 One dimensional cellular automata
208 1285 -3 Web Scraping
213 1259 -1 Max Licenses In Use
219 1218 -7 Spiral
249 999 +11 Y combinator
259 966 -6 Sequence of Non-squares
261 956 +3 Yuletide Holiday
268 919 -1 Column Aligner
274 861 +6 First-class functions
298 785 -5 Data Munging
301 776 -3 Probabilistic Choice
302 770 -6 Data Munging 2
315 729 +1 Command Line Interpreter
317 721 +7 Bulls and Cows
321 711 +5 Mutual Recursion
350 631 +1 Functional Composition
373 562 -4 Integer literals
393 508 -7 Common number base formatting
398 501 +0 Look-and-say sequence
424 446 -8 Octal
437 427 +7 Ethiopian Multiplication
451 392 -4 Exceptions Through Nested Calls
496 276 +1 Sort stability
499 267 -2 Testing a Function
502 265 +0 Moving Average
529 226 -3 Select
576 160 -1 Send an email
590 146 -1 Topological (dependency) sort
720 25 +1 First-class Numbers
99999 0 -1 Russian Peasant Multiplication

```
```

### Sample output on 29 August 2009

The big change that warrants its own section below, is that Ethiopian Multiplication is at the head off the list of pages I started, and ranked number three on RC as a whole.

Now if only I can discover the recipe and start some more, equally attractive pages...

```
```

```
```Highest page Ranks for user pages:
RANK VIEWS +/- TITLE
3 17327 +31 Ethiopian Multiplication
71 3351 +11 Knapsack Problem
89 2943 -1 Monty Hall simulation
104 2726 +4 Conway's Game of Life
120 2392 +0 Anagrams
191 1547 +1 One dimensional cellular automata
206 1409 -4 Web Scraping
210 1324 -2 Max Licenses In Use
219 1273 -8 Spiral
228 1171 +10 Y combinator
256 1007 +3 Yuletide Holiday
261 999 -8 Sequence of Non-squares
262 990 -2 Column Aligner
272 947 +5 First-class functions
288 852 -6 Data Munging
293 826 +9 Bulls and Cows
294 823 -7 Data Munging 2
301 812 -6 Probabilistic Choice
302 808 -1 Command Line Interpreter
306 789 +4 Mutual Recursion
337 694 +0 Functional Composition
369 623 -5 Integer literals
385 562 -8 Common number base formatting
388 553 -1 Look-and-say sequence
421 480 -9 Octal
440 438 -4 Exceptions Through Nested Calls
465 365 +2 Average/Simple moving average
485 323 +0 Sort stability
487 313 -3 Testing a Function
517 261 -3 Select
518 261 -1 Send an email
559 211 -1 Topological (dependency) sort
620 147 +3 Simple Random Distribution Checker
661 128 +0 First-class Numbers
667 121 +0 Seven-dice from Five-dice
681 105 +1 List Flattening
99999 0 -4 Russian Peasant Multiplication

```
```

### Sample output on 17 September 2009

Well, Ethiopian Multiplication is now the most popular page after the front page. Scary! (As I will need to live up to it).

I still like the explanation of the knapsack problem after all these months, so its nice to see it doing well.

```
```

```
```Highest page Ranks for user pages:
RANK VIEWS +/- TITLE
2 29238 +31 Ethiopian Multiplication
68 3599 +11 Knapsack Problem
81 3186 -1 Monty Hall simulation
93 3008 +4 Conway's Game of Life
117 2534 +0 Anagrams
190 1605 +1 One dimensional cellular automata
201 1507 -4 Web Scraping
214 1367 -2 Max Licenses In Use
220 1319 -8 Spiral
226 1285 +10 Y combinator
254 1085 +3 Yuletide Holiday
256 1058 -1 Column Aligner
258 1046 +6 First-class functions
260 1032 -10 Sequence of Non-squares
278 929 +10 Bulls and Cows
281 915 -7 Data Munging
286 887 +1 Command Line Interpreter
289 864 -8 Data Munging 2
291 859 +5 Mutual Recursion
297 836 -8 Probabilistic Choice
333 747 +0 Functional Composition
360 673 -5 Integer literals
374 625 +0 Look-and-say sequence
375 623 -9 Common number base formatting
406 523 -9 Octal
417 503 -4 Exceptions Through Nested Calls
434 451 +2 Average/Simple moving average
460 358 +0 Sort stability
463 351 -3 Testing a Function
465 346 +0 Send an email
479 310 -4 Select
480 310 -1 Topological (dependency) sort
515 228 +4 List Flattening
518 218 +2 Simple Random Distribution Checker
525 191 +0 Seven-dice from Five-dice
526 191 -2 First-class Numbers
99999 0 -4 Russian Peasant Multiplication

```
```

### Sample output on 27 September 2009

Ethiopian Multiplication still adds viewers, and First-class Functions has moved up.

```
Highest page Ranks for user pages:
```

```
```

```
RANK VIEWS +/- TITLE
2 34045 +31 Ethiopian Multiplication
67 3713 +11 Knapsack Problem
81 3240 -1 Monty Hall simulation
93 3053 +4 Conway's Game of Life
115 2592 +0 Anagrams
190 1628 +1 One dimensional cellular automata
201 1540 -4 Web Scraping
214 1384 -2 Max Licenses In Use
221 1337 -8 Spiral
224 1319 +10 Y combinator
252 1104 +3 Yuletide Holiday
255 1078 +7 First-class functions
256 1078 -2 Column Aligner
259 1046 -10 Sequence of Non-squares
271 992 +10 Bulls and Cows
275 963 -7 Data Munging
283 912 +1 Command Line Interpreter
285 900 +6 Mutual Recursion
288 877 -9 Data Munging 2
298 851 -8 Probabilistic Choice
332 766 +0 Functional Composition
355 689 -5 Integer literals
373 647 +0 Look-and-say sequence
374 641 -9 Common number base formatting
409 533 -9 Octal
416 520 -4 Exceptions Through Nested Calls
425 496 +2 Average/Simple moving average
455 384 -2 Testing a Function
462 368 -1 Sort stability
465 362 +0 Send an email
473 339 +0 Topological (dependency) sort
479 329 +5 List Flattening
480 327 -6 Select
511 255 +2 Simple Random Distribution Checker
521 218 +0 Seven-dice from Five-dice
523 212 -2 First-class Numbers
99999 0 -4 Russian Peasant Multiplication
```

### Sample output on 22 October 2009

Well, the four tasks ranked in the top 100, continue to do well, lead by Ethiopian multiplication.

Y combinator, Bulls and cows, and list flattening, are rising, and the task Evolutionary algorithm is new and off to a good start.

```
Highest page Ranks for user pages:
```

```
```

```
RANK VIEWS +/- TITLE
2 42206 +31 Ethiopian Multiplication
62 4140 +11 Knapsack Problem
76 3467 -1 Monty Hall simulation
92 3168 +4 Conway's Game of Life
111 2844 +0 Anagrams
193 1685 +1 One dimensional cellular automata
200 1618 -4 Web Scraping
211 1512 +12 Y combinator
220 1421 -3 Max Licenses In Use
223 1403 -9 Spiral
247 1191 +14 Bulls and Cows
249 1180 -1 Column Aligner
251 1178 +1 Yuletide Holiday
254 1158 +5 First-class functions
261 1100 -11 Sequence of Non-squares
274 1036 -7 Data Munging
280 997 +7 Mutual Recursion
281 995 +0 Command Line Interpreter
293 910 -7 Probabilistic Choice
294 909 -10 Data Munging 2
318 846 +0 Functional Composition
346 757 +1 Look-and-say sequence
351 738 -6 Integer literals
372 680 -9 Common number base formatting
385 644 +4 Average/Simple moving average
408 580 +11 List Flattening
409 578 -11 Octal
413 569 -6 Exceptions Through Nested Calls
453 435 -3 Testing a Function
459 426 -2 Sort stability
460 425 -1 Send an email
470 394 -5 Select
472 391 -2 Topological (dependency) sort
503 311 +2 Simple Random Distribution Checker
504 309 +3 Evolutionary algorithm
517 278 -1 Seven-dice from Five-dice
524 257 -3 First-class Numbers
99999 0 -5 Russian Peasant Multiplication
```

### Sample output on 02 December 2009

There are now five tasks in the top 100.

The 24 game is doing well, which is good because my kids and I like playing the game.

I have just added Hamming numbers today. I blogged about it this weekend, then someone asked for an RC task - which I had planned to do, so things worked out well!

```
Highest page Ranks for user pages:
```

```
``` RANK VIEWS +/- TITLE
2 48001 +31 Ethiopian Multiplication
56 5001 +11 Knapsack Problem
73 3819 -1 Monty Hall simulation
89 3476 +4 Conway's Game of Life
99 3309 +0 Anagrams
183 1900 +1 One dimensional cellular automata
196 1766 -4 Web Scraping
201 1738 +12 Y combinator
221 1528 -8 Spiral
223 1513 -4 Max Licenses In Use
228 1494 +14 Bulls and Cows
244 1386 +7 First-class functions
250 1297 -2 Column Aligner
252 1279 +10 Mutual Recursion
253 1268 -1 Yuletide Holiday
262 1205 -12 Sequence of Non-squares
263 1202 +1 Command Line Interpreter
268 1166 -9 Data Munging
289 1018 +2 Functional Composition
296 987 -8 Probabilistic Choice
300 978 -11 Data Munging 2
302 967 +1 Look-and-say sequence
311 923 +14 List Flattening
351 816 -7 Integer literals
361 798 +4 Average/Simple moving average
365 772 -11 Common number base formatting
400 665 -5 Exceptions Through Nested Calls
404 660 +11 24 game
413 623 -13 Octal
436 547 +8 Evolutionary algorithm
444 536 -1 Send an email
447 528 -6 Testing a Function
454 514 -5 Sort stability
464 484 -3 Topological (dependency) sort
476 456 -8 Select
482 444 +4 24 game Player
504 372 -1 Simple Random Distribution Checker
512 347 -4 First-class Numbers
514 338 -4 Seven-dice from Five-dice
629 27 +2 Hamming numbers
99999 0 +0 Bulls and Cows game
99999 0 -9 Russian Peasant Multiplication

```
```

### Sample output on 23 January 2010

There are still five tasks in the top 100, although Monty Hall simulation has slipped backwards slightly.

The 24 game is still doing well - one to watch? As are the Evolutionary algorithm and 24 game Player.

I have just added Random number generator (included) today. I remembered past newsnet discussions on how the quality of RNG's could affect some simulations. It was important to know about the algorithms used so hence the task.

```
Highest page Ranks for user pages:
```

```
```

```
RANK VIEWS +/- TITLE
2 53535 +31 Ethiopian Multiplication
46 5992 +11 Knapsack Problem
75 4218 -1 Monty Hall simulation
82 3933 +4 Conway's Game of Life
89 3806 +0 Anagrams
179 2166 +1 One dimensional cellular automata
187 2086 +13 Y combinator
190 2045 -5 Web Scraping
202 1943 +16 Bulls and Cows
226 1710 -9 Spiral
228 1691 +8 First-class functions
234 1643 -6 Max Licenses In Use
248 1509 +11 Mutual Recursion
251 1482 +25 24 game
255 1434 -4 Column Aligner
256 1426 -7 Data Munging
257 1420 -3 Yuletide Holiday
261 1391 +0 Command Line Interpreter
264 1364 +18 List Flattening
268 1338 -16 Sequence of Non-squares
281 1256 -11 Data Munging 2
283 1242 -1 Functional Composition
294 1159 +0 Look-and-say sequence
305 1132 +5 Average/Simple moving average
308 1119 -13 Probabilistic Choice
331 994 +12 Evolutionary algorithm
351 933 +13 24 game Player
356 924 -11 Integer literals
372 871 -14 Common number base formatting
396 783 -8 Exceptions Through Nested Calls
408 747 -1 Send an email
427 700 +10 Hamming numbers
428 694 -17 Octal
434 672 -8 Testing a Function
444 641 -4 Topological (dependency) sort
451 629 -8 Sort stability
459 603 -10 Select
498 490 -4 First-class Numbers
507 449 -3 Simple Random Distribution Checker
520 418 -5 Seven-dice from Five-dice
705 7 +2 Random number generator (included)
99999 0 -1 Bulls and Cows game
99999 0 -10 Russian Peasant Multiplication
```

### Sample output on 10 March 2010

Did I really add all those tasks from Pangram checker to Knapsack problem/Unbounded/Python dynamic programming below?

The New your Times had a slight error in its story of Hofstadter-Conway $10,000 sequence that seemed to put finding a solution out of the reach of amateurs. Subsequent probing found that an RC task to find an answer would be feasible.

```
Highest page Ranks for user pages:
```

```
```

```
RANK VIEWS +/- TITLE
2 56080 +31 Ethiopian multiplication
47 6640 +11 Knapsack problem/Unbounded
72 4813 -1 Monty Hall problem
80 4488 +4 Conway's Game of Life
82 4373 +0 Anagrams
172 2464 +19 Bulls and cows
181 2372 +0 One-dimensional cellular automata
183 2359 +12 Y combinator
191 2273 -6 Web scraping
197 2215 +29 24 game
209 2097 +26 Flatten a list
212 2050 +7 First-class functions
225 1906 -12 Spiral matrix
230 1884 +0 Day of the week
239 1807 -9 Text processing/3
247 1751 +8 Mutual recursion
260 1626 -8 Text processing/1
263 1614 -7 Align columns
268 1600 +10 Averages/Simple moving average
269 1587 +1 Function composition
271 1582 -3 Interactive programming
275 1500 +16 Evolutionary algorithm
278 1461 -19 Sequence of non-squares
281 1450 +16 24 game/Solve
283 1431 -15 Text processing/2
284 1425 -3 Look-and-say sequence
315 1221 -15 Probabilistic choice
322 1174 +14 Hamming numbers
336 1105 -12 Literals/Integer
354 1024 +0 Send email
357 1017 -9 Exceptions/Catch an exception thrown in a nested call
380 957 -17 Non-decimal radices/Output
395 917 -2 Topological sort
422 829 -7 Menu
432 803 -9 Test a function
434 789 -8 Sort stability
439 762 -21 Octal
474 652 -4 First-class functions/Use numbers analogously
502 550 -4 Seven-sided dice from five-sided dice
511 524 -4 Verify distribution uniformity/Naive
526 461 +2 Random number generator (included)
545 417 +2 Pangram checker
575 268 +3 Arbitrary-precision integers (included)
578 258 +3 Averages/Pythagorean means
600 211 +7 Dot product
607 200 -1 String interpolation (included)
608 200 +7 Luhn test
628 151 +2 Averages/Root mean square
662 93 +6 Hailstone sequence
702 47 +6 Hofstadter-Conway $10,000 sequence
734 19 +2 Knapsack problem/Unbounded/Python dynamic programming
99999 0 -4 Averages/Geometric mean
99999 0 -4 Averages/Harmonic mean
99999 0 -3 Averages/Quadratic mean
99999 0 -14 Bulls and Cows game
99999 0 -23 Russian Peasant Multiplication
```

### Sample output on 08 April 2010

Ethiopian Multiplication has had another huge surge of around 40K views in a month!

The 24 game has also moved up well.

```
Highest page Ranks for user pages:
```

```
``` RANK VIEWS +/- TITLE
2 101480 +31 Ethiopian multiplication
48 6999 +11 Knapsack problem/Unbounded
69 5196 -1 Monty Hall problem
77 4903 +4 Conway's Game of Life
80 4749 +0 Anagrams
157 2915 +33 24 game
166 2778 +18 Bulls and cows
175 2701 +12 Y combinator
185 2541 -2 One-dimensional cellular automata
186 2539 +27 Flatten a list
193 2494 -8 Web scraping
209 2276 +7 First-class functions
218 2161 -12 Spiral matrix
223 2134 +0 Day of the week
242 1928 -9 Text processing/3
245 1909 +8 Mutual recursion
251 1883 +12 Averages/Simple moving average
260 1809 +22 24 game/Solve
261 1805 +2 Function composition
262 1800 -9 Align columns
265 1787 +17 Evolutionary algorithm
269 1765 -13 Text processing/1
271 1745 -5 Interactive programming
279 1629 -1 Look-and-say sequence
286 1536 -21 Sequence of non-squares
290 1529 -16 Text processing/2
304 1415 +15 Hamming numbers
319 1326 -16 Probabilistic choice
327 1267 -12 Literals/Integer
328 1266 +1 Topological sort
340 1206 -1 Send email
349 1168 -10 Exceptions/Catch an exception thrown in a nested call
374 1046 -18 Non-decimal radices/Output
416 950 -8 Test a function
423 935 -8 Menu
434 874 -8 Sort stability
453 805 -21 Octal
459 774 +5 Random number generator (included)
467 744 -5 First-class functions/Use numbers analogously
479 692 -5 Seven-sided dice from five-sided dice
497 635 +3 Pangram checker
506 609 +12 Luhn test of credit card numbers
508 604 -7 Verify distribution uniformity/Naive
536 490 +8 Dot product
551 447 +2 Averages/Pythagorean means
566 398 +10 Hofstadter-Conway $10,000 sequence
567 396 -1 Arbitrary-precision integers (included)
575 355 +7 Hailstone sequence
596 291 +1 Averages/Root mean square
598 279 +7 Find Common Directory Path
602 275 -6 String interpolation (included)
630 206 +6 Horner's rule for polynomial evaluation
641 169 +7 Number reversal game
707 77 -1 Knapsack problem/Unbounded/Python dynamic programming
99999 0 -7 Averages/Geometric mean
99999 0 -7 Averages/Harmonic mean
99999 0 -6 Averages/Quadratic mean
99999 0 -17 Bulls and Cows game
99999 0 +0 Luhn test
99999 0 -27 Russian Peasant Multiplication

```
```

### Sample output on 15 May 2010

People seem to like the 24 Game, which is doing well on page views. The Luhn test is getting noticed, and I hope the same happens for the Number reversal game.

```
Highest page Ranks for user pages:
```

```
```

```
RANK VIEWS +/- TITLE
2 137500 +31 Ethiopian multiplication
53 7386 +11 Knapsack problem/Unbounded
71 5634 -1 Monty Hall problem
74 5537 +4 Conway's Game of Life
80 5203 +0 Anagrams
88 4930 +33 24 game
150 3322 +18 Bulls and cows
159 3165 +32 24 game/Solve
166 3125 +28 Flatten a list
175 3026 +10 Y combinator
191 2804 -8 Web scraping
199 2718 -5 One-dimensional cellular automata
211 2529 +6 First-class functions
214 2506 -13 Spiral matrix
215 2500 -1 Day of the week
228 2326 +13 Averages/Simple moving average
237 2255 +21 Evolutionary algorithm
248 2148 +6 Mutual recursion
249 2128 -8 Align columns
251 2095 -14 Text processing/3
253 2086 +0 Function composition
266 1956 -4 Interactive programming
272 1933 -14 Text processing/1
278 1875 -1 Look-and-say sequence
288 1781 +17 Hamming numbers
298 1695 -16 Text processing/2
303 1634 -23 Sequence of non-squares
304 1630 +3 Topological sort
322 1512 -12 Literals/Integer
325 1500 +0 Send email
332 1432 -19 Probabilistic choice
340 1372 +22 Luhn test of credit card numbers
345 1350 -11 Exceptions/Catch an exception thrown in a nested call
358 1274 +9 Random number generator (included)
385 1133 -20 Non-decimal radices/Output
395 1101 -9 Menu
396 1099 -11 Test a function
416 1038 -10 Sort stability
432 989 +5 Pangram checker
454 897 -5 Seven-sided dice from five-sided dice
459 873 -25 Octal
463 848 -8 First-class functions/Use numbers analogously
488 760 +9 Dot product
494 730 +3 Averages/Pythagorean means
506 683 +1 Arbitrary-precision integers (included)
508 682 -10 Verify distribution uniformity/Naive
509 677 +8 Hailstone sequence
510 676 +8 Hofstadter-Conway $10,000 sequence
527 614 +1 Averages/Root mean square
545 559 +8 Horner's rule for polynomial evaluation
575 470 +9 Number reversal game
579 435 +5 Find Common Directory Path
585 404 -8 String interpolation (included)
662 187 -1 Knapsack problem/Unbounded/Python dynamic programming
99999 0 -7 Averages/Geometric mean
99999 0 -7 Averages/Harmonic mean
99999 0 -6 Averages/Quadratic mean
99999 0 -17 Bulls and Cows game
99999 0 +0 Luhn test
99999 0 -27 Russian Peasant Multiplication
```

### Sample output on 07 July 2010

```
Highest page Ranks for user pages:
```

```
```

```
RANK VIEWS +/- TITLE
2 152674 +31 Ethiopian multiplication
54 7918 +11 Knapsack problem/Unbounded
68 6334 +5 Conway's Game of Life
71 6279 -2 Monty Hall problem
75 5965 +34 24 game
77 5853 -1 Anagrams
139 3949 +18 Bulls and cows
145 3827 +29 Flatten a list
146 3822 +31 24 game/Solve
159 3611 +10 Y combinator
191 3175 -8 Web scraping
202 2977 +2 Day of the week
206 2943 +16 Averages/Simple moving average
207 2936 +5 First-class functions
208 2926 -14 Spiral matrix
210 2906 -9 One-dimensional cellular automata
216 2765 +21 Evolutionary algorithm
249 2456 +6 Mutual recursion
250 2448 +35 Luhn test of credit card numbers
251 2413 +1 Function composition
258 2371 -10 Align columns
263 2307 -16 Text processing/3
269 2242 -5 Interactive programming
273 2158 -1 Look-and-say sequence
274 2156 -16 Text processing/1
275 2148 +16 Hamming numbers
296 2006 +4 Topological sort
306 1885 -18 Text processing/2
307 1884 +14 Random number generator (included)
313 1835 +0 Send email
318 1803 -27 Sequence of non-squares
319 1798 -15 Literals/Integer
343 1564 -21 Probabilistic choice
345 1560 -12 Exceptions/Catch an exception thrown in a nested call
377 1314 -8 Menu
382 1311 -21 Non-decimal radices/Output
383 1311 +7 Pangram checker
389 1274 -12 Test a function
394 1231 -11 Sort stability
400 1212 +16 Hofstadter-Conway $10,000 sequence
404 1203 +11 Dot product
430 1121 +13 Hailstone sequence
435 1095 +3 Arbitrary-precision integers (included)
437 1092 -9 Seven-sided dice from five-sided dice
451 1038 +5 Averages/Root mean square
458 1010 -12 First-class functions/Use numbers analogously
463 1000 +0 Averages/Pythagorean means
465 984 -32 Octal
479 905 +9 Horner's rule for polynomial evaluation
515 769 -14 Verify distribution uniformity/Naive
527 720 +6 Find Common Directory Path
539 693 +8 Number reversal game
568 607 -8 String interpolation (included)
639 328 -1 Knapsack problem/Unbounded/Python dynamic programming
739 113 +6 Bulls and cows/Player
99999 0 -8 Averages/Geometric mean
99999 0 -8 Averages/Harmonic mean
99999 0 -7 Averages/Quadratic mean
99999 0 -18 Bulls and Cows game
99999 0 +2 Four bits adder
99999 0 -2 Luhn test
99999 0 -29 Russian Peasant Multiplication
```

### Sample output on 09 September 2010

```
Highest page Ranks for user pages:
```

```
```

```
RANK VIEWS +/- TITLE
2 157689 +31 Ethiopian multiplication
59 8386 +11 Knapsack problem/Unbounded
65 7433 +5 Conway's Game of Life
70 7011 -2 Monty Hall problem
73 6946 +0 Anagrams
74 6935 +33 24 game
128 4904 +30 Flatten a list
132 4843 +17 Bulls and cows
139 4571 +31 24 game/Solve
156 4219 +10 Y combinator
180 3842 +18 Averages/Simple moving average
184 3747 +42 Luhn test of credit card numbers
186 3733 -10 Web scraping
193 3689 +0 Day of the week
201 3573 -14 Spiral matrix
203 3546 +22 Evolutionary algorithm
204 3523 +2 First-class functions
218 3300 -11 One-dimensional cellular automata
226 3193 +2 Function composition
252 2893 -9 Align columns
256 2885 +3 Mutual recursion
263 2709 -4 Interactive programming
268 2630 +19 Hamming numbers
275 2588 -1 Look-and-say sequence
277 2570 -19 Text processing/3
279 2532 +17 Random number generator (included)
282 2462 -18 Text processing/1
294 2354 +3 Topological sort
305 2242 +1 Send email
317 2151 -13 Literals/Integer
325 2094 -21 Text processing/2
327 2073 -28 Sequence of non-squares
340 1921 +19 Dot product
344 1851 -22 Probabilistic choice
349 1816 -13 Exceptions/Catch an exception thrown in a nested call
357 1741 +8 Pangram checker
360 1718 +18 Hailstone sequence
371 1650 +18 Hofstadter-Conway $10,000 sequence
378 1582 -11 Sort stability
380 1562 -14 Test a function
382 1558 -14 Menu
388 1520 -27 Non-decimal radices/Output
391 1495 +3 Arbitrary-precision integers (included)
393 1494 +6 Averages/Root mean square
395 1481 +2 Averages/Pythagorean means
419 1313 +12 Horner's rule for polynomial evaluation
423 1305 -12 Seven-sided dice from five-sided dice
441 1236 -14 First-class functions/Use numbers analogously
455 1176 +11 Number reversal game
463 1137 +7 Find Common Directory Path
466 1129 -35 Octal
487 1055 +18 Stable marriage problem
528 874 -8 String interpolation (included)
529 871 -18 Verify distribution uniformity/Naive
610 502 +10 Range extraction
618 487 +10 Range expansion
621 472 -4 Knapsack problem/Unbounded/Python dynamic programming
636 427 +5 Minesweeper game
655 381 +8 Short-circuit evaluation
680 307 +4 Extreme floating point values
685 288 +0 Bulls and cows/Player
703 260 +7 Simple Quaternion type and operations
843 33 +8 Truncatable primes
99999 0 -16 Averages/Geometric mean
99999 0 -16 Averages/Harmonic mean
99999 0 -15 Averages/Quadratic mean
99999 0 -26 Bulls and Cows game
99999 0 -6 Four bits adder
99999 0 -10 Luhn test
99999 0 -37 Russian Peasant Multiplication
99999 0 -3 Short circuit evaluation
```

### Sample output on 11 March 2011

Well it seems I have done around 2100 edits and created 86 non-talk pages.

24 game is edging higher; Flatten a list has become the latest of 7 in the top 100. I used to have 14 in the top 200, that has risen to 19 which shows that someone likes the pages I start :-)

Pages created since the last update above are:

Topological sort/Extracted top item Guess the number/With feedback Guess the number/With feedback (player) Ordered words CSV to HTML translation Simple quaternion type and operations Tic-tac-toe Noughts and crosses Sort disjoint sublist Unbias a random generator Text processing/3 Village Pump/De-skilling? Van der Corput sequence

Highest page Ranks for user pages:

RANK VIEWS +/- TITLE 2 162320 +31 Ethiopian multiplication 57 10054 +11 Knapsack problem/Unbounded 62 9617 +5 Conway\'s Game of Life 63 9451 +35 24 game 68 8750 +0 Anagrams 77 8122 -4 Monty Hall problem 97 7057 +30 Flatten a list 119 6321 +17 Bulls and cows 128 6066 +61 Stable marriage problem 130 6027 +30 24 game/Solve 145 5656 +9 Y combinator 160 5365 +42 Luhn test of credit card numbers 168 5220 +25 Evolutionary algorithm 169 5201 +15 Averages/Simple moving average 178 5018 -1 Day of the week 179 4948 -13 Web scraping 184 4856 +2 First-class functions 193 4710 -17 Spiral matrix 194 4682 +2 Function composition 218 4193 -13 One-dimensional cellular automata 228 4067 -10 Align columns 233 3948 +20 Hamming numbers 249 3637 -5 Interactive programming 251 3626 +0 Mutual recursion 256 3588 +18 Random number generator (included) 259 3551 -3 Look-and-say sequence 268 3460 +25 Dot product 275 3378 -22 Text processing/Max licenses in use 279 3360 -20 Text processing/1 288 3235 +1 Topological sort 295 3028 +24 Hailstone sequence 301 2985 -2 Send email 302 2972 -23 Text processing/2 305 2927 -17 Literals/Integer 334 2621 +21 Hofstadter-Conway $10,000 sequence 336 2585 -32 Sequence of non-squares 337 2577 +13 Averages/Root mean square 340 2545 +6 Pangram checker 349 2422 +19 Horner\'s rule for polynomial evaluation 355 2361 -28 Probabilistic choice 360 2320 -19 Exceptions/Catch an exception thrown in a nested call 361 2308 +4 Arbitrary-precision integers (included) 362 2286 +4 Averages/Pythagorean means 365 2262 -16 Sort stability 369 2195 -19 Test a function 381 2109 -19 Menu 397 1958 -32 Non-decimal radices/Output 402 1910 -14 First-class functions/Use numbers analogously 404 1862 +11 Number reversal game 411 1831 +7 Find common directory path 416 1805 -16 Seven-sided dice from five-sided dice 465 1417 -7 String interpolation (included) 493 1268 -37 Octal 494 1267 +21 Ordered words 496 1260 +12 Short-circuit evaluation 499 1250 -20 Verify distribution uniformity/Naive 522 1167 +16 Guess the number/With feedback 527 1138 +5 Minesweeper game 529 1128 +10 Quaternion type 536 1083 +5 Range extraction 547 1024 +3 Extreme floating point values 548 1024 +4 Range expansion 579 877 -10 Knapsack problem/Unbounded/Python dynamic programming 585 854 -3 Bulls and cows/Player 592 843 +6 Truncatable primes 690 524 +8 Guess the number/With feedback (player) 737 404 +9 CSV to HTML translation 766 350 +10 Tic-tac-toe 777 333 +11 Sort disjoint sublist 857 179 +11 Unbias a random generator 863 170 +1 Topological sort/Extracted top item 931 85 +14 Van der Corput sequence 1024 25 +11 Village Pump/De-skilling? 99999 0 -26 Averages/Geometric mean 99999 0 -26 Averages/Harmonic mean 99999 0 -25 Averages/Quadratic mean 99999 0 -36 Bulls and Cows game 99999 0 -16 Four bits adder 99999 0 -20 Luhn test 99999 0 -1 Noughts and crosses 99999 0 -48 Russian Peasant Multiplication 99999 0 -14 Short circuit evaluation 99999 0 +2 Show a table with row and column headings 99999 0 -7 Simple quaternion type and operations 99999 0 -2 Text processing/3 99999 0 -4 Unbalance a random generator

### Sample output on 26 April 2011

Well it seems I have done around 2250 edits and created another 6 non-talk pages since last time.

24 game is edging higher; Stable marriage problem has become the latest of 8 in the top 100. I still have 19 pages in the top 200 :-)

Pages created since the last update above are:
```
```

```
```

```
Executable library
Partial function application
Boxing the compass
Yin and yang
Vector products
Natural sorting
```

Highest page Ranks for user pages:

RANK VIEWS +/- TITLE 2 163673 +31 Ethiopian multiplication 57 10393 +11 Knapsack problem/Unbounded 60 10052 +5 Conway's Game of Life 61 9960 +35 24 game 68 8972 +0 Anagrams 76 8356 -4 Monty Hall problem 95 7363 +30 Flatten a list 97 7293 +62 Stable marriage problem 120 6525 +16 Bulls and cows 131 6212 +30 24 game/Solve 137 6081 +9 Y combinator 159 5592 +42 Luhn test of credit card numbers 160 5590 -12 Spiral matrix 166 5466 +24 Evolutionary algorithm 171 5377 +14 Averages/Simple moving average 176 5232 -13 Web scraping 180 5183 -3 Day of the week 184 5050 +1 First-class functions 195 4825 +2 Function composition 216 4385 -13 One-dimensional cellular automata 224 4206 -10 Align columns 232 4118 +20 Hamming numbers 247 3767 +1 Mutual recursion 248 3764 -6 Interactive programming 251 3739 +18 Random number generator (included) 259 3673 +26 Dot product 262 3646 -4 Look-and-say sequence 279 3442 -19 Text processing/1 280 3437 -23 Text processing/Max licenses in use 290 3334 +1 Topological sort 292 3251 +24 Hailstone sequence 298 3136 -2 Send email 305 3024 -16 Literals/Integer 306 3020 -24 Text processing/2 326 2808 +15 Averages/Root mean square 332 2752 +8 Pangram checker 334 2731 +19 Hofstadter-Conway $10,000 sequence 341 2639 -34 Sequence of non-squares 345 2567 +19 Horner's rule for polynomial evaluation 351 2478 -28 Probabilistic choice 358 2405 +6 Averages/Pythagorean means 360 2400 +4 Arbitrary-precision integers (included) 362 2380 -21 Exceptions/Catch an exception thrown in a nested call 367 2295 -16 Sort stability 371 2253 -19 Test a function 380 2170 -19 Menu 401 1998 +10 Find common directory path 402 1998 -14 First-class functions/Use numbers analogously 403 1981 -34 Non-decimal radices/Output 404 1977 +10 Number reversal game 416 1864 -16 Seven-sided dice from five-sided dice 455 1505 -7 String interpolation (included) 478 1388 +14 Short-circuit evaluation 487 1355 +21 Ordered words 492 1321 +18 Guess the number/With feedback 498 1297 -20 Verify distribution uniformity/Naive 500 1287 +12 Quaternion type 503 1275 -42 Octal 505 1267 +4 Minesweeper game 534 1130 +4 Extreme floating point values 539 1109 +4 Range extraction 544 1088 +4 Range expansion 568 978 +8 Truncatable primes 569 975 -11 Knapsack problem/Unbounded/Python dynamic programming 577 949 -4 Bulls and cows/Player 656 668 +8 Guess the number/With feedback (player) 679 593 +9 CSV to HTML translation 734 462 +20 Partial function application 735 461 +11 Sort disjoint sublist 743 444 +19 Boxing the compass 748 437 +7 Tic-tac-toe 778 367 +9 Unbias a random generator 802 309 +13 Van der Corput sequence 836 252 +16 Yin and yang 854 229 +16 Vector products 874 191 -4 Topological sort/Extracted top item 890 164 +10 Executable library 1041 30 +6 Village Pump/De-skilling? 1044 29 +13 Natural sorting

## ??

- Yeah, Ethiopian Multiplication is the most popular page for StumbleUpon landings, so every time we get a StumbleUpon surge, that page gets a boatload of hits. It's an amusing feedback loop. Any time someone thumbs-up any page on the rosettacode.org domain, SU throws more users at the pool of pages on that domain. EM appears to have the highest weight in that pool, so SU tends to throw more users at that page than any other. Since the Ethiopian Multiplication page has a rather high thumb-up frequency, that causes the domain weight
*and*the page weight to go up, resulting in a large surge of traffic. It's been exactly two weeks since the latest surge began, and it's still resisting falling back to normal levels; a normal day's SU referral visit count is 10-20, and we only just fell below 900 yesterday. Incidentally, I'm pretty sure I narrowed down the trigger behind this latest surge to one of your comments on another blog. Cool. :) --Michael Mol 01:38, 9 April 2010 (UTC)

- Now that makes me smile. The two major ways I support Open Source is through blog replies, and Rosetta Code. I never thought they might become self reinforcing! :-)

--Paddy3118 03:30, 9 April 2010 (UTC)

- Now that makes me smile. The two major ways I support Open Source is through blog replies, and Rosetta Code. I never thought they might become self reinforcing! :-)

- I can only sit back and watch in appreciation. (And occasional irritation; IIRC, between the last two server upgrades, one was triggered by a traffic flood you caused, and one by a traffic flood Kevin Reid caused. Not that I'm really complaining; it's nice being forced into a machine with a bit more elbow room. :) ) --Michael Mol 05:43, 9 April 2010 (UTC)