[07:17:14] Always fun when childs are older than parents https://phabricator.wikimedia.org/T99483#2546903 [16:53:25] Where does the fatalmonitor script live? The documentation says /usr/local/bin on tin, etc., but it isn't there. [16:58:08] kaldari: fluorine [16:58:15] /usr/local/bin/fatalmonitor on fluorine [16:58:44] oh yeah, I knew that but somehow forgot :) Will update the documentation on wikitech... [16:59:13] ty [18:05:49] kaldari, hey. for future reference you can find this sort of information by going to operations/puppet.git and running "git grep fatalmonitor". In this case it shows up in manifests/role/logging.pp, in the role::logging::mediawiki class. I'd "git grep role logging::mediawiki" and "git grep role::logging::mediawiki" - this comes up as node 'fluorine.eqiad.wmnet' in manifests/site.pp [18:06:16] Krenair: thanks! [18:06:24] I suppose one of those commands would have to be "git grep 'role logging::mediawiki'" [18:06:32] (I typed it without the apostrophes) [21:11:11] Can someone help me get the code for calculating the sum working on the Serbian Wikipedia? We've had a bit of JavaScript for a while that was supposed to be used for calculating the sum, but the code seems to be defined only to work in a specific namespace under a specific path. [21:12:00] The last four lines here: https://sr.wikipedia.org/wiki/%D0%9C%D0%B5%D0%B4%D0%B8%D1%98%D0%B0%D0%B2%D0%B8%D0%BA%D0%B8:Common.js [21:37:44] Srdjan_m, yes, it works only on theese pages [21:37:45] https://sr.wikipedia.org/w/index.php?title=%D0%9F%D0%BE%D1%81%D0%B5%D0%B1%D0%BD%D0%BE%3APrefixIndex&prefix=%D0%A2%D0%B0%D0%BA%D0%BC%D0%B8%D1%87%D0%B5%D1%9A%D0%B5_%D1%83_&namespace=4 [21:38:51] masti|away - What would we need to change to make it work on these pages? https://sr.wikipedia.org/wiki/%D0%92%D0%B8%D0%BA%D0%B8%D0%BF%D0%B5%D0%B4%D0%B8%D1%98%D0%B0:%D0%A3%D0%BF%D0%BE%D0%B7%D0%BD%D0%B0%D1%98_%D0%A1%D1%80%D0%BF%D1%81%D0%BA%D1%83/%D0%A3%D1%87%D0%B5%D1%81%D0%BD%D0%B8%D1%86%D0%B8/%D0%B5%D0%B2%D0%B8%D0%B4%D0%B5%D0%BD%D1%86%D0%B8%D1%98%D0%B0/Miljan_Simonovi%C4%87 [21:39:25] masti - Anything on /евиденција and under that path, that is. [21:39:57] change this line [21:39:59] if (mw.config.get('wgPageName').match("Википедија:Такмичење_у_(.+?)/евиденција") != null) [21:40:47] instead of Википедија:Такмичење_у_(.+?)/евиденција [21:41:05] use [21:41:51] Википедија:Upoznaj Srpsku/Učesnici/evidencija/(.+?) [21:42:31] so the parameter for match is a regexp to match the title of pages You ant the code to run at [21:42:41] *want [21:43:09] well, if it should work in both [21:43:23] It should work on both, yeah. I was about to say that. [21:43:30] do something like [21:43:39] so we need to have a matching regexp [21:43:44] a dirty ione would be [21:44:08] .match("(Википедија:Такмичење_у_.+?/евиденција|Википедија:Upoznaj Srpsku/Učesnici/evidencija/.+?)") [21:44:09] ("Википедија:Такмичење_у_(.+?)/евиденција|Википедија:Upoznaj Srpsku/Učesnici/evidencija/(.+?)") [21:44:25] ;) [21:44:29] :) [21:44:52] hmm [21:45:06] that space between Upoznaj and Srpsku should be an undserscore [21:45:12] right [21:45:34] And also in Cyrillic I would assume. [21:45:54] sorry? [21:46:14] .match("(Википедија:Такмичење_у_.+?/евиденција|Википедија:Упознај_Српску/Учесници/евиденција(.+?)") [21:46:37] yes [21:47:05] and actually that final (.+?) is not needed [21:48:31] So, the line should be this, right? Just making sure I don't mess anything up -- if (mw.config.get('wgPageName').match("(Википедија:Такмичење_у_.+?/евиденција|Википедија:Упознај_Српску/Учесници/евиденција") != null) [21:49:02] right [21:49:38] Thanks :) [22:09:45] Hmm... [22:10:03] Could that work without having to define where it ought to be used? [22:10:57] I don't know why someone would define it unless it is necessary to make it work. [22:11:34] yes [22:11:38] just remove that if [22:11:56] Entirely? [22:12:12] The whole line and it'll work fine anywhere? [22:12:17] yes [22:12:28] that will make the $(takmicenjeRacunanjeSuma); inconditional [22:37:19] Srdjan_m, but then it will work on any page summing all integers in every line [22:37:25] even in articles [22:37:36] so this could have unpredictable results [22:38:46] masti But surely you'd have to define the class "takmicenjeSumaSuma" for it to sum any integer. [22:41:50] Srdjan_m, yes [22:41:55] Well... [22:42:04] That shouldn't really be an issue, I don't think. [22:42:09] right [22:42:25] But thanks for letting me know, though.