This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 |
Hi @ Hedonil, Cyberpower678, TParis, X!, and Technical 13::
I'm having ongoing problems with page history (this). Usually, nothing happens: the "results" are just a blank white page. Sometimes (rarely, usually after reloading several times) it appears, but then it's not actually what I want.
Is the old version still around somewhere? All I really want is the list of most frequent contributors (which this buries in a bunch of other stuff), and especially to be able to get the list of the most frequent contributors for a particular timespan, like the last 6 months, or during a particular year (which this doesn't appear to do at all, but the old one did). Whatamidoing (WMF) ( talk) 02:11, 4 June 2015 (UTC)
A watchlist notification called for people with PHP or Linux experience, so I'm responding here. I have around 10 years of PHP experience (large and small projects, backend processing, embedding, etc.) and about 15 years of Linux experience (servers, desktops, embedded systems, networking, databases, etc.), so I might be able to help. Please let me know what would be the actual duties and pending tasks, and we'll discuss. — Dsimic ( talk | contribs) 08:48, 3 July 2015 (UTC)
I have been programming since the days of the ZX81 and would like to have a look at xtools' code just out of personal interest, but I cannot realistically commit any time for doing anything on it - I am still "on call" for other PHP / Python / JavaScript projects on t'interweb and having another one to support is the last thing I need. So I can't do much more than a moral support. Ritchie333 (talk) (cont) 09:16, 5 July 2015 (UTC)
In the edit counter, the label for article namespace in the edit counter is in Korean. Seems to repro in other languages too (I tried Finnish). Regards, Orange Suede Sofa ( talk) 20:14, 4 July 2015 (UTC)
Hi, going by the theory of the more the merrier [and conveniently ignoring too many cooks spoil the broth], I was just wondering, just like we have the Supercount tools as an alternative to X!s edit counter, can we have APPER's German tool ported as a long term alternative tool? -- Rsrikanth05 ( talk) 15:14, 6 July 2015 (UTC)
/data/project/intuition/src/Intuition/ToolStart.php
Please link to the "Intuition" code. Thanks, Wbm1058 ( talk) 19:11, 6 July 2015 (UTC)
I'm trying to run articleinfo (Page history) under Windows 7.
I'm getting Fatal error: Class 'Redis' not found in C:\php\WebTool.php on line 948
see code here
Where is Class 'Redis' defined?
And what's the deal with this code at the bottom of that code file? Why would Redis be "not available"?
/**
* dummy class, if redis is not availabe
* @author Hedonil
*/
class RedisFake{
function get(){
return false;
}
function set(){
return false;
}
function setex(){
return false;
}
function expire(){
return false;
}
function close(){
return false;
}
}
I see:
So do I need this for the application to work, or does it just enable more efficient operation? Wbm1058 ( talk) 18:10, 7 July 2015 (UTC)
$redis = new RedisFake();
straight away. That's what it does when the connection attempt fails.Notice: Undefined index: QUERY_STRING in C:\php\WebTool.php on line 712
Deprecated: Function split() is deprecated in C:\php\WebTool.php on line 712
line 712$argv = split('&', $_SERVER['QUERY_STRING']);
→ $argv = preg_split('/&/', $_SERVER['QUERY_STRING']);
fixes the deprecated function.
Wbm1058 (
talk)
23:33, 7 July 2015 (UTC)
split()
still works despite the fact that PHP says it's a deprecated function. Also, have a look at
explode()
, which will work faster as in this particular case there's no need for using regular expressions. —
Dsimic (
talk |
contribs)
23:59, 7 July 2015 (UTC)But QUERY_STRING is still undefined. What's going on in this checkSpider function?
function checkSpider()
|
---|
function checkSpider(){
global $redis, $perflog;
$lang = isset($_REQUEST'lang']) ? $_REQUEST'lang' : null;
$wiki = isset($_REQUEST'wiki']) ? $_REQUEST'wiki' : null;
$wikifam = isset($_REQUEST'wikifam']) ? $_REQUEST'wikifam' : null;
$project = isset($_REQUEST'project']) ? $_REQUEST'project' : null;
$uagent = isset($_SERVER"HTTP_USER_AGENT"]) ? $_SERVER"HTTP_USER_AGENT" : null;
$reqUri = isset($_SERVER"REQUEST_URI"]) ? $_SERVER"REQUEST_URI" : null;
$article = isset($_REQUEST'article']) ? $_REQUEST'article' : null;
$page = isset($_REQUEST'page']) ? $_REQUEST'page' : $article;
$user = isset($_REQUEST'user']) ? $_REQUEST'user' : null;
$argv = preg_split('/&/', $_SERVER'QUERY_STRING']);
$reqStr = 'xtspidercheck003' . $reqUri . $uagent;
$reqMin = (int)$redis->incr( $reqStr );
if (
$reqMin > 10 ||
in_array( $wikifam, array(".wikibooks.org" ) ) ||
in_array( $article, array("Digital_journalism", "Talk:Monte_Vista_High_School_(Danville,_California)","Template:WPRe" ) ) ||
in_array( $user, array( "112.198.79.177", "2.91.35.107", "Carpodacus","Ambroix") ) ||
in_array( $page, array( "Category:AppleScript_Programming","AppleScript_Programming/Mail_alert") ) ||
in_array( $uagent, array("Java/1.6.0_34","Java/1.7.0_51", "-","Python-urllib/2.7", "Magic Browser2", "Magic Browsers","Magic Browser") ) ||
count($argv) > 15 ||
( $uagent == "Mozilla/5.02" && $lang == "th" )
){
$redis->expire( $reqStr , 1800 );
header("HTTP/1.1 403 Forbidden");
echo "Forbidden: checkSpider. (timeout 10 min) .Please inform the tool maintainer if this isn't correct.";
file_put_contents('/data/project/xtools/spider.log', gethostname()."\t$reqUri\t$uagent\n", FILE_APPEND );
$this->__destruct();
}
else{
$redis->expire( $reqStr , 60 );
}
#file_put_contents('/data/project/xtools/uagent.log', gethostname()."\t$lang\t$uagent\n", FILE_APPEND );
/**
* It's a game that sucks, dude !
*/
#$perflog->add('checkSpider', 0, $argv );
}
line 720 ... Digital journalism? Talk:Monte Vista High School (Danville, California)? Template:WPRe? Is this for debugging, or what? |
If this is just related to Redis, can we just make this function a no-op? Wbm1058 ( talk) 23:55, 7 July 2015 (UTC)
$_GET
array can be used instead. —
Dsimic (
talk |
contribs)
00:05, 8 July 2015 (UTC)
So, I have access to "Labs", but I still need to obtain access to " Tool Labs". I assume that PuTTY will get me into "Bastion SSH access", but I haven't tried that yet. I'll wait for my Tools Access Request to be approved. Wbm1058 ( talk) 17:20, 13 July 2015 (UTC)
ssh username@tools-login.wmflabs.org
. You may get some notice about unknown hosts, just hit whatever you have to in order to proceed. Then you can see your Labs MySQL credentials with cat ~/replica.my.cnf
. The next part is figuring out how to get your PHP app to connect to the database through the SSH tunnel... maybe with the connection open through Putty and your credentials defined in the app it will just work, I'm not sure. E.g. if the PHP app is looking for a local MySQL database and 127.0.0.1:3306 (default port) is routed to the labs db through the SSH tunnel, you might be all set —
MusikAnimal
talk
17:31, 13 July 2015 (UTC)Under the "Month Counts" section of the edit counter, each month appears with the number of edits made in that month and a bar showing a visual representation of those edits by namespace — except for months where no edits were made by the user. For example I made no edits in 2013-10 so that month does not appear, and the chronology jumps from 2013-09 to 2013-11. Would it be possible to show all months, with a zero for those months where no edits were made? -=# Amos E Wolfe talk #=- 21:16, 28 July 2015 (UTC)
Cyberpower678 has set up WikiHistory, available (probably temporary location) at toollabs:xtools/wikihistory. More to come soon, hopefully. Cheers - L235 ( t / c / ping in reply) 01:14, 22 July 2015 (UTC)
getting 404ed when going to toollabs:xtools or any "articles created" links... PS. Now it says "301 Moved Permanently This tool has moved to a new location. You will be redirected to tools.wmflabs.org/xtools-articleinfo/index.php? shortly." and then autorediredting to toollabs:xtools-articleinfo. -- .js ((( ☎))) 01:45, 22 January 2016 (UTC)
Some users are worried about the meaning of "Deleted edits" in the edit counter and ask about it on help pages. See for example Wikipedia:Help desk#Deletions since I began reviewing new articles ( permanent link). I know it's the standard term but it would alleviate some concerns if the text linked to a brief explanation that deleted edits include all edits to pages which were later deleted for any reason. PrimeHunter ( talk) 10:46, 26 April 2016 (UTC)
Under the semi-automated edits heading of the edit counter for my user, it says that I have performed zero edits using HotCat which is definately wrong. Is it a bug? NikolaiHo ☎️ 04:12, 12 December 2016 (UTC)
This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 |
Hi @ Hedonil, Cyberpower678, TParis, X!, and Technical 13::
I'm having ongoing problems with page history (this). Usually, nothing happens: the "results" are just a blank white page. Sometimes (rarely, usually after reloading several times) it appears, but then it's not actually what I want.
Is the old version still around somewhere? All I really want is the list of most frequent contributors (which this buries in a bunch of other stuff), and especially to be able to get the list of the most frequent contributors for a particular timespan, like the last 6 months, or during a particular year (which this doesn't appear to do at all, but the old one did). Whatamidoing (WMF) ( talk) 02:11, 4 June 2015 (UTC)
A watchlist notification called for people with PHP or Linux experience, so I'm responding here. I have around 10 years of PHP experience (large and small projects, backend processing, embedding, etc.) and about 15 years of Linux experience (servers, desktops, embedded systems, networking, databases, etc.), so I might be able to help. Please let me know what would be the actual duties and pending tasks, and we'll discuss. — Dsimic ( talk | contribs) 08:48, 3 July 2015 (UTC)
I have been programming since the days of the ZX81 and would like to have a look at xtools' code just out of personal interest, but I cannot realistically commit any time for doing anything on it - I am still "on call" for other PHP / Python / JavaScript projects on t'interweb and having another one to support is the last thing I need. So I can't do much more than a moral support. Ritchie333 (talk) (cont) 09:16, 5 July 2015 (UTC)
In the edit counter, the label for article namespace in the edit counter is in Korean. Seems to repro in other languages too (I tried Finnish). Regards, Orange Suede Sofa ( talk) 20:14, 4 July 2015 (UTC)
Hi, going by the theory of the more the merrier [and conveniently ignoring too many cooks spoil the broth], I was just wondering, just like we have the Supercount tools as an alternative to X!s edit counter, can we have APPER's German tool ported as a long term alternative tool? -- Rsrikanth05 ( talk) 15:14, 6 July 2015 (UTC)
/data/project/intuition/src/Intuition/ToolStart.php
Please link to the "Intuition" code. Thanks, Wbm1058 ( talk) 19:11, 6 July 2015 (UTC)
I'm trying to run articleinfo (Page history) under Windows 7.
I'm getting Fatal error: Class 'Redis' not found in C:\php\WebTool.php on line 948
see code here
Where is Class 'Redis' defined?
And what's the deal with this code at the bottom of that code file? Why would Redis be "not available"?
/**
* dummy class, if redis is not availabe
* @author Hedonil
*/
class RedisFake{
function get(){
return false;
}
function set(){
return false;
}
function setex(){
return false;
}
function expire(){
return false;
}
function close(){
return false;
}
}
I see:
So do I need this for the application to work, or does it just enable more efficient operation? Wbm1058 ( talk) 18:10, 7 July 2015 (UTC)
$redis = new RedisFake();
straight away. That's what it does when the connection attempt fails.Notice: Undefined index: QUERY_STRING in C:\php\WebTool.php on line 712
Deprecated: Function split() is deprecated in C:\php\WebTool.php on line 712
line 712$argv = split('&', $_SERVER['QUERY_STRING']);
→ $argv = preg_split('/&/', $_SERVER['QUERY_STRING']);
fixes the deprecated function.
Wbm1058 (
talk)
23:33, 7 July 2015 (UTC)
split()
still works despite the fact that PHP says it's a deprecated function. Also, have a look at
explode()
, which will work faster as in this particular case there's no need for using regular expressions. —
Dsimic (
talk |
contribs)
23:59, 7 July 2015 (UTC)But QUERY_STRING is still undefined. What's going on in this checkSpider function?
function checkSpider()
|
---|
function checkSpider(){
global $redis, $perflog;
$lang = isset($_REQUEST'lang']) ? $_REQUEST'lang' : null;
$wiki = isset($_REQUEST'wiki']) ? $_REQUEST'wiki' : null;
$wikifam = isset($_REQUEST'wikifam']) ? $_REQUEST'wikifam' : null;
$project = isset($_REQUEST'project']) ? $_REQUEST'project' : null;
$uagent = isset($_SERVER"HTTP_USER_AGENT"]) ? $_SERVER"HTTP_USER_AGENT" : null;
$reqUri = isset($_SERVER"REQUEST_URI"]) ? $_SERVER"REQUEST_URI" : null;
$article = isset($_REQUEST'article']) ? $_REQUEST'article' : null;
$page = isset($_REQUEST'page']) ? $_REQUEST'page' : $article;
$user = isset($_REQUEST'user']) ? $_REQUEST'user' : null;
$argv = preg_split('/&/', $_SERVER'QUERY_STRING']);
$reqStr = 'xtspidercheck003' . $reqUri . $uagent;
$reqMin = (int)$redis->incr( $reqStr );
if (
$reqMin > 10 ||
in_array( $wikifam, array(".wikibooks.org" ) ) ||
in_array( $article, array("Digital_journalism", "Talk:Monte_Vista_High_School_(Danville,_California)","Template:WPRe" ) ) ||
in_array( $user, array( "112.198.79.177", "2.91.35.107", "Carpodacus","Ambroix") ) ||
in_array( $page, array( "Category:AppleScript_Programming","AppleScript_Programming/Mail_alert") ) ||
in_array( $uagent, array("Java/1.6.0_34","Java/1.7.0_51", "-","Python-urllib/2.7", "Magic Browser2", "Magic Browsers","Magic Browser") ) ||
count($argv) > 15 ||
( $uagent == "Mozilla/5.02" && $lang == "th" )
){
$redis->expire( $reqStr , 1800 );
header("HTTP/1.1 403 Forbidden");
echo "Forbidden: checkSpider. (timeout 10 min) .Please inform the tool maintainer if this isn't correct.";
file_put_contents('/data/project/xtools/spider.log', gethostname()."\t$reqUri\t$uagent\n", FILE_APPEND );
$this->__destruct();
}
else{
$redis->expire( $reqStr , 60 );
}
#file_put_contents('/data/project/xtools/uagent.log', gethostname()."\t$lang\t$uagent\n", FILE_APPEND );
/**
* It's a game that sucks, dude !
*/
#$perflog->add('checkSpider', 0, $argv );
}
line 720 ... Digital journalism? Talk:Monte Vista High School (Danville, California)? Template:WPRe? Is this for debugging, or what? |
If this is just related to Redis, can we just make this function a no-op? Wbm1058 ( talk) 23:55, 7 July 2015 (UTC)
$_GET
array can be used instead. —
Dsimic (
talk |
contribs)
00:05, 8 July 2015 (UTC)
So, I have access to "Labs", but I still need to obtain access to " Tool Labs". I assume that PuTTY will get me into "Bastion SSH access", but I haven't tried that yet. I'll wait for my Tools Access Request to be approved. Wbm1058 ( talk) 17:20, 13 July 2015 (UTC)
ssh username@tools-login.wmflabs.org
. You may get some notice about unknown hosts, just hit whatever you have to in order to proceed. Then you can see your Labs MySQL credentials with cat ~/replica.my.cnf
. The next part is figuring out how to get your PHP app to connect to the database through the SSH tunnel... maybe with the connection open through Putty and your credentials defined in the app it will just work, I'm not sure. E.g. if the PHP app is looking for a local MySQL database and 127.0.0.1:3306 (default port) is routed to the labs db through the SSH tunnel, you might be all set —
MusikAnimal
talk
17:31, 13 July 2015 (UTC)Under the "Month Counts" section of the edit counter, each month appears with the number of edits made in that month and a bar showing a visual representation of those edits by namespace — except for months where no edits were made by the user. For example I made no edits in 2013-10 so that month does not appear, and the chronology jumps from 2013-09 to 2013-11. Would it be possible to show all months, with a zero for those months where no edits were made? -=# Amos E Wolfe talk #=- 21:16, 28 July 2015 (UTC)
Cyberpower678 has set up WikiHistory, available (probably temporary location) at toollabs:xtools/wikihistory. More to come soon, hopefully. Cheers - L235 ( t / c / ping in reply) 01:14, 22 July 2015 (UTC)
getting 404ed when going to toollabs:xtools or any "articles created" links... PS. Now it says "301 Moved Permanently This tool has moved to a new location. You will be redirected to tools.wmflabs.org/xtools-articleinfo/index.php? shortly." and then autorediredting to toollabs:xtools-articleinfo. -- .js ((( ☎))) 01:45, 22 January 2016 (UTC)
Some users are worried about the meaning of "Deleted edits" in the edit counter and ask about it on help pages. See for example Wikipedia:Help desk#Deletions since I began reviewing new articles ( permanent link). I know it's the standard term but it would alleviate some concerns if the text linked to a brief explanation that deleted edits include all edits to pages which were later deleted for any reason. PrimeHunter ( talk) 10:46, 26 April 2016 (UTC)
Under the semi-automated edits heading of the edit counter for my user, it says that I have performed zero edits using HotCat which is definately wrong. Is it a bug? NikolaiHo ☎️ 04:12, 12 December 2016 (UTC)