To have a slightly different look at the pagehits I
used the enclosed code. For example, consider the output
below (which is sorted by the last column of aggregated
pagehits) compared to the results at
http://www.jsoftware.com/jwiki/PageHits
For example the first row suggests that Essays is
hit most often with 51293 hits, where there are 119
sublevels under Essays including itself, Kakuro, Sudoku,
etc.
14{.freqhits (;/@:>:@[EMAIL PROTECTED]@],. \:@(;/)@]{[,.;/@:])totalhits
+--+-------------+---+-----+
|1 |Essays |119|51293|
+--+-------------+---+-----+
|2 |FrontPage |2 |28558|
+--+-------------+---+-----+
|3 |Guides |30 |24135|
+--+-------------+---+-----+
|4 |System |31 |22333|
+--+-------------+---+-----+
|5 |Studio |22 |21510|
+--+-------------+---+-----+
|6 |RecentChanges|1 |20127|
+--+-------------+---+-----+
|7 |Stories |19 |16320|
+--+-------------+---+-----+
|8 |Phrases |23 |13852|
+--+-------------+---+-----+
|9 |Scripts |35 |12272|
+--+-------------+---+-----+
|10|Puzzles |26 |11562|
+--+-------------+---+-----+
|11|Showcase |1 |9011 |
+--+-------------+---+-----+
|12|JPhrases |56 |8046 |
+--+-------------+---+-----+
|13|Books |1 |6431 |
+--+-------------+---+-----+
|14|Doc |24 |6189 |
+--+-------------+---+-----+
******code follows*********
NB. pagehits.ijs
NB. 12/25/6
NB. this script finds hit counts in the jwiki for the first
level
NB. of names by grouping together all sublevel hit counts
NB. so for example the first level "Essays" contains
NB. Essays
NB. Essays/Kakuro
NB. Essays/Sudoku
NB. Essays/Ackermann's Function
NB. etc.
load'files'
NB. the data has single, single quotes in it
NB. verb cs replaces single quotes with Dots
Dot =: '_'
cs =:{&(Dot,a.)&(('''',a.)&i.)
#pagehits =:fread jpath '~user/pagehits'
totalhits =: +/@:>@(".&.:>)/.~/|:2&{.@;:&><;._2 pagehits
freqhits =: (~. ,. <"0@:(#/.~)){:"1 ] 2&{.@;:&><;._2 pagehits
14{.freqhits (;/@:>:@[EMAIL PROTECTED]@],. \:@(;/)@]{[,.;/@:])totalhits
******code above*********
******data file excerpt follows*****************
27293 FrontPage
20127 RecentChanges
9963 Guides
9050 Essays
9011 Showcase
6431 Books
6269 Guides/Getting Started
5597 Links
5515 Studio
... [lots elided http://www.jsoftware.com/jwiki/PageHits ]
2 Plot/Outputs
2 Plot/Fonts
2 Plot/Data
2 Plot/Commands
2 Grid/Sizes
1 Guides/Language FAQ/Constant List
1 Grid/Virtual
******data file excerpt above *****************
(B=) <----------my "sig"
Brian Schott
Atlanta, GA, USA
schott DOT bee are eye eh en AT gee em ae eye el DOT com
http://schott.selfip.net/~brian/
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm