[00:11:18] hey there, is there a known-to-work Python thing to listen for recent changes on a Wikimedia wiki? [00:13:21] I know there’s stream.wikimedia.org/rc, but so far my experience with Socket.IO and Python consisted only of pain and embarassment [00:18:07] enhydra: the IRC bot on irc.wikimedia.org [00:18:16] it is written in python [00:18:27] and reads RC data from the mediawiki servers [00:18:47] well, they just send UDP packets to it [00:19:20] oh [00:19:27] mutante, is there a canonical parser for these IRC lines? [00:19:43] i am not sure, but i know people are parsing that [00:19:50] and use it for anti-vandalism tools [00:19:51] so everyone just mocks up their own regex [00:20:08] there are some yahoo bots on it :) [00:20:11] alright, probably this is the way to go [00:20:13] doing something with it [00:20:15] too [00:20:44] so you can just use any IRC client to go to irc.wikimedia.org [00:20:55] and you can git clone the "operations/puppet" repo [00:21:20] and then see in ./modules/mw_rc_irc/files/udpmxircecho.py [00:21:41] that is the bot that outputs all the RC there [00:22:02] what a wonderful filename [00:22:04] just 88 lines [00:22:09] lol, yes [00:22:39] if you see a way to let that be smarter about ... [00:22:46] when there is no actual ircd running [00:22:59] and make it actually reconnect or die instead of sitting there [00:23:15] please do tell me [00:23:26] because i looked at exactly that earlier today , heh [00:23:41] and i ended up so far in the library it uses to connect [00:23:53] which is from the python-irc package [00:24:55] IRC clients for humans usually send /ping and reconnect if no response is received within 5 minutes [00:25:02] probably you should do pings as well [00:25:13] if I got your problem right [00:26:28] well, i mean before that [00:26:37] let's say it tries to connect to localhost [00:26:42] but the ircd service is not even running [00:26:49] then there is just no connection at all [00:26:56] but the bot does not die from that [00:27:05] the service will just be running [00:27:14] then the ircd service can come up too [00:27:24] then both are running.. but the bot still isnt on the server [00:27:33] needs to be restarted manually.. then it is [00:27:56] so it needs to either die or reconnect [00:28:05] if it dies it would get restarted automatically by systemd [00:31:33] that’s strange [00:31:43] if nothing is running, you should get “connection refused” right away [00:33:20] enhydra: Yeah, regex. [01:09:24] enhydra: https://github.com/mzmcbride/irc-bots/blob/master/snitch.py is what I use, if that helps. [08:27:21] hi [08:27:40] I can't understand about phab [08:27:51] can I make request at here [08:27:56] ? [08:38:22] hi [09:46:28] are there currently any issues with the upload wizard on Commons? [09:52:25] on the last page of the upload wizard the system gets stuck and gives me this error message: https://commons.wikimedia.org/wiki/User:Romaine/Sandbox2 [09:56:54] hi [10:14:27] seems to be this issue: https://phabricator.wikimedia.org/rEUWI4d3c4ccdb6f607f85be42524ef79b8c5955eed4f [13:38:03] Trizek: Another notification bug: On wikimediafoundation.org it's showing me (User:BJorsch) 4 alerts and 6 messages. But the dropdowns, and going to Special:Notifications, say "You have no notifications". Force-reloading doesn't change this situation. [14:01:57] Is that happen before, anomie? [14:08:04] Trizek: Nope, just started today. I had strangely high numbers of notifications reported on officewiki too (lots of alerts and messages reported, even though there was actually only 1 new message), but that correctly went back to 0 after opening the dropdowns. [14:19:17] anomie: Nothing from other wikis? [14:19:27] Or on other wikis? [14:19:55] Trizek: Not that I recall. [14:22:54] That may be a regression due to crosswiki notifications release bu default. Catrope dealt with it, we can ask him when he will wake up. [16:24:28] hi [16:25:10] I am losing signature button on cs.wv in FF in monobook, could it be caused of some of my Js I have there? [16:26:15] not always but very usually it doesnt load and its pretty anoying [16:26:51] or is the source of problem in project js? [16:27:19] becasue signature should be project button [16:38:04] wow, cool. how did that work that my browser autoloaded your page? [16:39:23] anyways. i am curious if the wiki software provides some kind of tool for the authors to see which part needs editing [22:52:13] RoanKattouw: hi! [22:52:18] He [22:52:19] y [22:52:37] RoanKattouw: looks like 6ce974f95f5f68bfd65d849a01b6488f604510ee modifies OutputPageCheckLastModified hook in only one place of two it is used [22:52:45] ApiMain.php still uses one arg [22:52:50] Oh! Interesting [22:52:58] Wait, ApiMain.php uses that hook? That's evil [22:53:05] But OK we should fix that [22:53:22] and also probably why I get Argument 2 passed to EchoHooks::onOutputPageCheckLastModified() must be an instance of OutputPage, undefined variable given [22:54:26] Yup [22:54:29] That would be why [22:54:30] * RoanKattouw fixes [23:02:40] SMalyshev: https://gerrit.wikimedia.org/r/288720 [23:03:48] thanks!