Article View: news.software.nntp
Article #43859need source a/o algorithm for freenix 'inpaths' path stats program, for use with DIABLO
From: Erik Schorr
Date: Wed, 02 Feb 2000 00:00
Date: Wed, 02 Feb 2000 00:00
45 lines
2890 bytes
2890 bytes
I've seen and tried the conventional 'inpaths' program floating around, which essentially goes through the news spool files article-by-article and extracts Path: headers, and compiles the data into statistics for the freenix top1000 list... problem is, it's not compatible with diablo's setup (multiple articles per file, no file/group hierarchy, binary header info in spool files) What I'd like to do, is write a program that listens on a local socket (ie port 1019/tcp, bound only to the localhost address), for diablo to send a header-only feed to. This program will keep tallies on Path: elements, as the article headers are fed into it, instead of having to read through existing spool files occasionally. This should save a LOT of disk usage. Unfortunately, I'm missing the algorithm that the original inpaths program used to tally up the path elements. Someone told me the value of each element is weighted, depending on its position in the Path: header, so I can't just increment a value of an associative array using the path element as the key. The old (1980's/early 90's) inpaths.c source is convoluted to the point where the way it weights by position in the path line isn't apparent. In addition, the program doesn't compile cleanly without modifications. The two 'inpaths' like programs that come with diablo source only "egrep" through the spool files and extract the Path: headers. they DO NOT actually compile the path statistics in any form that freenix's stats system uses. I suppose it would help as well if I could see the exact file that inpaths produces, which the freenix stats (pathsurvey@...) requires for input, as an example of what my program should generate. If you have something like this already, something I can use to extract path stats via diablo, or examples of what freenix expects, drop me an email at the address below ps. news peering requests are welcome. I'd love to swap non-binaries with just about anyone, pref UK, CA, or AU. Thanks, Erik Schorr erik-news(at)arpa.org Communications World Network -- Posted via nooz.net - is this thing working? --
Technical Details
Message-ID:
<38982884$1@news.cwnet.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <38982884$1@news.cwnet.com> Subject: need source a/o algorithm for freenix 'inpaths' path stats program, for use with DIABLO Date: Wed, 02 Feb 2000 00:00:00 +0000 From: "Erik Schorr" Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 580774156 X-Trace: 2 Feb 2000 04:52:20 -0800, 209.160.184.234 Organization: Free nntp news access, http://bulletnews.net/ Posted-by: phelix from 209.160.184.240 via news.cwnet.com Newsgroups: news.software.nntp X-http-user-agent: Mozilla/4.08 [en] (X11; I; Linux 2.0.37 i586; Nav)