Talk:Link transit: Difference between revisions

522 bytes added ,  4 September 2004
no edit summary
(obvious display style, filters required)
No edit summary
Line 8: Line 8:


:Both are useful for the same reasons.  And both are not available.  "Server load" is a lousy excuse, when [[Wikimedia]] could raise all the money it needed for hardware with an [[independent board]].
:Both are useful for the same reasons.  And both are not available.  "Server load" is a lousy excuse, when [[Wikimedia]] could raise all the money it needed for hardware with an [[independent board]].
::What reasons are those? -- [[User:Tim Starling|Tim Starling]] 07:13, 4 Sep 2004 (EEST)


This matters because I need to know what the output format should be, and I need to have some way to justify using server resources to generate such data.  
This matters because I need to know what the output format should be, and I need to have some way to justify using server resources to generate such data.  
Line 16: Line 18:


:It looks like C to me and it looks like that the Main() takes standard httpd.log as input. I'll run this on our logs sometime when I have the time. Kinda busy now. --[[User:Juxo|Juxo]] 13:02, 3 Sep 2004 (EEST)
:It looks like C to me and it looks like that the Main() takes standard httpd.log as input. I'll run this on our logs sometime when I have the time. Kinda busy now. --[[User:Juxo|Juxo]] 13:02, 3 Sep 2004 (EEST)
::It's C++. It outputs two sections separated by a double linefeed. The first is an indexed list of URLs. The second has three values on each line: index from, index to and the transit count. The idea is that you would read all this into a relational database with an index on all three columns, then perform whatever analysis you need to perform. -- [[User:Tim Starling|Tim Starling]] 07:13, 4 Sep 2004 (EEST)
<pre>
<pre>
#include <string>
#include <string>
Line 55: Line 60:
if (!file) {
if (!file) {
printf("Can't open file %s\n", argv[1]);
printf("Can't open file %s\n", argv[1]);
return 1;
}
}
} else {
} else {
28

edits