[02:53:04] Kelson, hi, are you maintaining ukwikimedia's new site now? [03:01:53] Krenair: yes (at least for the transition) [03:02:04] but he's also asleep [03:02:13] it's throwing 504 [03:02:40] you really have some wikimedia uk peoples sitting in #wikimedia to watch for reports that pop up in there [07:43:30] apergos: Reedy: good morning [07:43:46] morning, you're lucky I'm on (I'm not really here) [07:44:31] apergos: Reedy: so migrated wikis looks more or less ok. One problem: the users contributions lists are empty (but recent change is OK)... any idea why? [07:45:10] I thought the "users lists" are directly computed from the "revisions" table... [07:45:19] didn't you create new users? [07:45:40] there is a maintence script afaik that you can run [07:46:11] p858snake|l: I have recreate the users with the same ids like on the old db [07:46:41] Kelson: any reason you are not running the latest stable? [07:46:45] p858snake|l: I don't have found a script for that... and as far as I understand there is no dedicated table for "user contributions" [07:47:02] p858snake|l: I don't have acces to it. [08:11:39] Kelson: did you manage to import logs? [08:12:01] Nemo_bis: "loggin" table is filled [08:12:19] Nemo_bis: but as far as I know, users contributions are not based on this table [08:12:36] blank page http://wiki.wikimedia.org.uk/w/index.php?title=Special:Log&offset=&limit=500&type=&user= [08:12:47] sure, some log entries will be "fake" [08:13:22] hmm special:log actually has nothing imported [08:13:39] no idea where that "older 1" comes from [08:13:48] at http://wiki.wikimedia.org.uk/wiki/Special:Log I mean [08:14:27] hmmmm " If you did not receive your new password, please activate "Enable email from other users" in your old user profile and your new password will be sent to you over night!" [08:14:59] ah, because the accounts were already created [08:15:49] anyway, special:log has same problem as special:contributions [08:16:05] Nemo_bis: worth, we get a blank page [08:17:10] are you sure tables got their index created? [08:17:14] Nemo_bis: PHP message: PHP Catchable fatal error: Argument 1 passed to Language::listToText() must be an array, null given, called in /var/www/wiki/w/includes/logging/LogPage.php on line 266 and defined in /var/www/wiki/w/languages/Language.php on line 3005" while reading response header from upstream [08:17:42] O_o [08:18:16] there must be some clash between local and imported log entries? [08:19:29] or just some NULL column which needs to be populated <-- /me is very helpful [08:19:46] Nemo_bis: There could be some clahs... maybe [08:20:31] I assume you checked the recently updated https://meta.wikimedia.org/wiki/Data_dumps/Tools_for_importing ? [08:23:41] Nemo_bis: I have use the php script to import the logging table [08:23:51] in "maintenance' [08:24:04] ImportDump.php - [08:24:10] yeah [08:24:20] never heard of someone using that lately :) [08:24:34] hello [08:24:48] they didn't even try for wikitech, log entries were just trashed [08:25:57] can't find brave testers in bugzilla either [08:26:00] hi ori-l [08:26:51] how should we visualize the breakdown of module payload size? [08:27:07] i'd like to build some kind of on-screen gadget [08:27:30] the data i have is the name of each module and the size of its CSS and JS, in bytes [08:28:14] Nemo_bis: ok... :( [08:28:27] you mean the average size of it loaded by users? [08:28:37] Kelson: please document your steps, it's unmapped territory [08:28:42] it's not average; it's exact [08:28:49] (as always for you :P) [08:29:04] ori-l: I mean, in the ganglia graphs, if that's what we're talking about [08:29:29] no, this would be a gadget for editors [08:29:44] ori-l: ah, so where would it live? [08:29:55] you'd trigger it somehow (a hotkey?) and it'd display in a modal, presumably [08:30:00] we would need people like Rillke to tell us what they'd like [08:30:01] Nemo_bis: this is not rocket science, just untar the logging table and use importDump.php [08:30:15] Nemo_bis: I mean the logging xml.bz2 file [08:30:33] Kelson: yeah, if the script worked :) import/export *never* works as expected in MediaWiki [08:31:06] Nemo_bis: looks, like, the logging table has only 700 entries... it should maybe have sometine like 60.000 [08:31:28] the names are mostly hierarchical -- extensions are ext.*, etc [08:31:49] so maybe: http://bl.ocks.org/adewes/4710330/94a7c0aeb6f09d681dbfdd0e5150578e4935c6ae [08:32:06] err, http://www.andreas-dewes.de/code_is_beautiful/ [08:32:35] Nemo_bis: IMO, I'm going to leave like that and just try to fix the problem with the blanck page [08:33:14] Kelson: it's probably the same problem, it seems special:log doesn't know how to orientate in the table (otherwise why that "older 1") [08:33:55] ori-l: but how are those names for gadgets and the like? [08:34:30] Nemo_bis: see for yourself! open a wiki page, then open your JS console, and type: [08:34:49] mw.loader.getModuleNames().filter( function(m) { return mw.loader.getState(m) === 'ready'; } ); [08:34:52] I bet importDump.php still "uses" a schema which is years old https://www.mediawiki.org/wiki/Manual:Logging_table#Schema [08:35:39] like, what happened to log_id? [08:44:36] ori-l: ok, so you need something that allows to navigate in that mass of ext.gadget.* [08:45:43] Kelson: ah sorry, I misread; so the import was not complete? one bug to file (there will be many, I expect) [08:45:44] yeah, have you seen http://www.andreas-dewes.de/code_is_beautiful/ ? [08:46:35] Nemo_bis: yes, it looks like these bugs are never handled.. [08:47:24] ori-l: yeah, it's first thing I thought of (like that disk space utility I always forget the name of) [08:47:43] filelight? http://fosswire.com/post/2008/01/filelight-a-kde-disk-usage-tool/ [08:47:55] Kelson: often they're not even filed, which is even worse; or they're not even experienced because people give up before trying, worse still [08:47:59] ori-l: yes [08:48:07] also: http://www.daisydiskapp.com/ [08:48:16] I love filelight [08:48:40] lol, mac users pay for that? [08:49:55] Nemo_bis: I have already filled a few ones [08:50:00] Nemo_bis: at least one [08:53:25] Kelson: I don't see it [08:55:37] heh, Rillke dominates ns8 RC https://commons.wikimedia.org/w/index.php?title=Special:RecentChanges&limit=500&days=30&namespace=8&translations=noaction [08:59:25] [82e75823] 2013-09-28 08:58:50: Fatal exception of type MWException o_O on meta [09:00:16] page? [09:00:26] https://meta.wikimedia.org/w/index.php?title=User_language [09:01:02] what are you trying to do there [09:01:12] please leave the #babel alone :) [09:02:32] ori-l: so you would create some sort of gadget that displays the payload while one navigates the wiki? [09:02:45] 2013-09-28 08:58:50 mw1086 metawiki: [82e75823] /w/index.php?title=User_language&action=submit Exception from line 77 of /usr/local/apache/common-local/php-1.22wmf18/includes/parser/StripState.php: Invalid marker: ^?UNIQ459185a96264daa3-languages-00000000-QINU^? [09:02:57] um [09:02:58] the usual unbalanced tags [09:03:06] Nemo_bis: only added o______O [09:03:11] Steinsplitter: check yout math :P [09:03:15] dunno if you'd keep it on all the time [09:03:26] you answered yourself, where is the ? :) [09:03:27] ok [09:03:38] maybe something you can load onto the page if you have a 'why the f is this page so slow' experience [09:03:46] hhmmahah O_O searching. [09:03:50] thanks [09:04:02] ori-l: sure, I mean something you enable when you want to debug [09:04:11] a big like cat-a-lot maybe [09:04:21] *bit [09:04:46] yeah, i guess so. i didn't know about cat-a-lot, looking at it now [09:05:07] ori-l: cat a lot? hm... dos not eat lot traffic? or what you mean? [09:05:17] http://commons.wikimedia.org/wiki/Help:Gadget-Cat-a-lot [09:05:31] though cat-a-loy doesn't survive when you exit the category page [09:05:31] yes. [09:05:43] HotCat? [09:05:50] http://bl.ocks.org/mbostock/4063423 [09:06:31] i'm not sure whether to simply add together the CSS and JS or whether to indicate each quantity someho [09:06:33] that looks a bit more messy, but it doesn't matter much [09:06:50] filelight gives you such info when you hover, iirc [09:06:59] that's one way [09:07:20] yep [09:07:42] i've been looking for a good existing implementation that i could plug the data into since i'm not very, er, design-oriented [09:08:36] options: http://infoviz.org/test/piechart.html https://dev.anuary.com/858b33b7-bd66-507b-a9f1-533e4de79ba3/ http://dealloc.me/demos/crime/2011.html http://blog.stephenboak.com/2011/08/07/easy-as-a-pie.html [09:12:29] ori-l: you're not very design oriented? LIES! :P [09:13:17] really not [09:13:57] :P sure. [09:14:53] sample data captured on my dev instance https://dpaste.de/zv3X/raw/ [09:15:48] tho i think there's danger in using a single dimension to weigh each module [09:16:19] there are small modules that are nonperformant and large modules that are performant [09:23:53] * ori-l sleeps [09:30:20] night, ori-l [11:29:15] guys [11:30:13] is it normal that i can't see after 10 nodes on en.wikipedia.org here http://traceroute.monitis.com/ in europe section ? [13:05:08] ciao, Nemo_bis [13:05:31] i wonder if you could tell me what is now holding this change: https://gerrit.wikimedia.org/r/#/c/85516/ ? [13:05:54] i see there is a Dependency there [13:26:18] malafaya: nothing is holding it, don't worry and just be patient [13:26:38] pt.wikt has had the wrong logo for 7 years, it can wait a week :) [13:42:01] :) [14:44:45] Krenair: hi [14:45:10] Krenair: Yes, I maintain the new wiki.wikimedia.org.uk wiki [15:35:18] Kelson, please do not use 1.20.5 [16:53:31] who's allowed to approve db changes? [16:53:47] (i know the db group, but who specifically?) [16:56:14] jackmcbarn: after months of hanging out in here, you might get a quicker response suggesting what you want changed than asking who can do it. [16:56:31] indexing logging.log_user_text [16:56:32] https://gerrit.wikimedia.org/r/#/c/85508/ [16:56:44] and i've asked this before in here, never got a response [16:57:49] Elsie: http://www.wikidata.org/wiki/Wikidata:Project_chat#Restricting_edit_to_logged_in_user <-- please confirm my "I'm about 99% sure" statement [16:58:06] no IP editing is probably something that's been brought up on another wiki before [16:59:49] https://en.wikipedia.org/wiki/Wikipedia:Perennial_proposals#Prohibit_anonymous_users_from_editing [17:00:17] jackmcbarn: try -dev ? [17:00:52] Is there a bz ticket? [17:01:00] yes [17:01:11] 54432 [17:01:46] Then you might have to be virtuous. ;) [18:00:21] cortexA9: hops* [18:01:08] yes jeremyb sorry. [18:02:38] cortexA9: http://dpaste.com/1399190/plain/ [18:03:41] Jasper_Deng_away: Thanks, replied. [18:04:50] jackmcbarn: you want springle-away or binasher [18:05:10] jackmcbarn: i suggest trying on a pacific US weekday [18:07:51] jeremyb: Asher no longer works for the Wikimedia Foundation. [18:07:57] I'm not sure if he'll continue in a volunteer role. [18:08:20] Elsie: are you sure? [18:08:58] huh, not on staff page [18:09:31] https://wikimediafoundation.org/w/index.php?title=Template:Staff_and_contractors&action=history [18:09:38] I'm not sure it was announced. [18:09:57] Anyone know which bug tracks the security issue in CleanChanges? [18:10:03] Presumably the TWN folks will want to update... [18:10:13] Nemo_bis: ^ [18:10:31] I find the main page of git.wikimedia.org to be useless. [18:11:39] Elsie: https://gerrit.wikimedia.org/r/#/q/project:mediawiki/extensions/CleanChanges,n,z ? [18:12:07] https://gerrit.wikimedia.org/r/#/c/86080/ [18:12:11] so then https://gerrit.wikimedia.org/r/86080 [18:12:11] Ah, there we aer. [18:12:12] right [18:12:12] are [18:12:24] https://bugzilla.wikimedia.org/54531 [18:12:30] bye! [18:12:55] Bye! [18:13:26] Oh, it's only an XSS issue for users with the 'deleterevision' permission. [18:13:29] "Only." [18:13:35] I guess those are the accounts you'd want to target the most, heh. [18:16:52] No, it wasn't announced anywhere. [18:17:15] What's the point in having a security bug when you post the patch in gerrit? [18:18:01] I'm not sure that's really the patch in question [18:19:12] Hi, I have a bot on commons that times out with HTTP 504 gateway timeout. See for example: https://dpaste.de/B6BS This started about a month ago. The bot has earlier been stable for years. Any ideas ? [18:19:14] Well it says Bug: 54531 [18:19:21] which links to an unauthorised error [18:22:28] sure, but that only means it's related to that bug, not that it's *the* fix for it [18:23:41] Daniel78, from where is it editing? [18:25:37] norway [18:26:16] Krenair: That's a fair question. [18:26:20] https://bugzilla.wikimedia.org/show_bug.cgi?id=54740 [18:26:24] Bug about git.wm.o. ^ [18:26:27] I'm about to file another. [18:26:53] https://bugzilla.wikimedia.org/show_bug.cgi?id=43046 ? [18:27:39] Daniel78: What is the bot doing? [18:27:48] Can you pastebin the relevant script? [18:28:10] I think Commons has general issues with thumbnail generation. [18:28:34] But I'm not sure that's related here. [18:29:10] Elsie: the bot is handling the feature pictures process at commons, and editing related pages regarding votes for images [18:30:02] Ah. Those pages are very nasty [18:30:10] It might be helpful if you can directly capture the POST request and the server's response. [18:30:31] pywikibot may have a flag for this or a debug file output something. [18:30:32] Dunno. [18:30:40] It's been years and years since I used pywikibot. [18:31:15] Daniel78: are you sure it's not just the pages getting horribly long hence uneditable? [18:31:18] yes I did this run with -debug. I can find the log [18:31:31] https://commons.wikimedia.org/w/index.php?title=Commons:Featured_picture_candidates/Log/September_2013&action=history [18:31:33] there is also https://bugzilla.wikimedia.org/show_bug.cgi?id=54122 [18:31:39] That page is 15,000 bytes... [18:31:40] the pages are long, but the bot ran for years without a single problem [18:31:55] Lots of transclusions and images, though. [18:32:07] What's the point of the log? [18:32:13] Maybe some templates were made more expensive or something [18:32:40] http://p.defau.lt/?EsWFo8X94a3lvRgpsO4t7w [18:32:44] Doesn't look too bad. [18:33:19] * Nemo_bis is waiting for his timeout [18:34:07] Krenair: ok... I plan to make an update soon. What is the problem with 1.20.5 ? [18:34:38] Kelson, well the most obvious ones are the security issues with it [18:34:59] Krenair: ok [18:35:07] There it is, I got a timeout with a manual edit too [18:35:22] Elsie: Nemo_bis: https://dpaste.de/MUJU [18:35:56] Kelson, just take a look at the 1.20.6 and 1.20.7 security release emails. I take it you are subscribed to mediawiki-announce [18:36:13] seems like it got 504 after 2 minutes [18:37:15] Kelson: wiki.wikimedia.org.uk/wiki/ is a lot of wiki. :-) [18:37:35] I was getting gateway errors last night, BTW. [18:37:42] Seems better now. [18:37:51] Elfix: yes, the migration was a little bit Rock & Roll [18:37:58] And the notification e-mail had an awful typo in it. [18:38:04] Elsie: yes, the migration was a little bit Rock & Roll [18:38:06] Elfix: sorry [18:38:06] :-) [18:38:19] wikiukwikimediawiki [18:39:43] Elsie, no more than http://wiki.wikimedia.org.es/wiki/Portada [18:40:20] Platonides: It's equally silly there, yes. :-) [18:40:36] These wikis could at least use /view/. [18:40:39] With or without action paths. [18:41:15] https://bugzilla.wikimedia.org/show_bug.cgi?id=54741 [18:43:57] https://bugzilla.wikimedia.org/show_bug.cgi?id=54742 [18:47:36] https://bugzilla.wikimedia.org/show_bug.cgi?id=54743 [18:47:40] Okay, I think I'm finished. [18:48:13] Any idea what I can do about the gateway timeout I am seeing ? [18:48:26] that's not so much a bug report as an infestation, Elsie ;-) [18:48:56] :D [18:55:31] might it help to put the bot on another server ? [19:07:44] Daniel78: Not at all, I don't imagine. [19:07:56] It's an issue on the server side, not the client side. [19:17:44] hm too bad, nothing I can do then. I have disabled the bot for now [20:18:37] Nemo_bis: I can not myself find anymore my bug report about importDump.php I thought I have made a few months ago....:( [20:35:22] ouch [20:36:03] Kelson: I can file the bug about partial log import for you if you want; any information you want to paste here would be nice :) [20:40:39] The migration seems to have a lot of lessons to be learned from it. [20:40:54] For example, if you send users a password in plaintext, the software really ought to prompt them to reset as soon as they log in. [20:43:50] Elsie: does core do that (I think it does, just checking)? [20:45:52] I think so. [20:46:14] Though I seemed to have discovered a core issue while poking around the new wiki. [20:46:38] There is https://www.mediawiki.org/wiki/Extension:ImportUsers but I doubt it's that smart. [20:47:01] One could build upon https://www.mediawiki.org/wiki/Extension:InviteSignup but it's quite a different approach. [20:47:44] Anti-spoof is fucking aggressive. [20:48:20] :) [20:48:20] And the CAPTCHA is awful. [20:48:23] orly [20:48:35] It only took me about ten tries to make an account on test.wikipedia.org... [20:48:59] Hmmm. [20:49:06] You lack imagination! [20:49:12] So on test.wikipedia.org, I get a confirmation notice post-password change. [20:49:19] I didn't get a confirmation on wiki.wikimedia.org.uk. [20:49:22] I wonder if the password changed. [20:49:36] I usually create accounts with sysop accounts to override antispoof [20:49:42] Seems so. [20:50:44] Main issue, currently, is the failed import log and the confused special:contributions [20:50:48] AFAIK [21:36:06] The issue is the user_id is different [21:36:13] (re wiki.wikimedia.org.uk) [21:36:24] We ran into the same issue when moving Uncyclopedia [21:36:31] well, we did it less worse. [21:36:39] should have used https://www.mediawiki.org/wiki/Extension:MediaWikiAuth >.> [21:39:08] contributions doesn't use user_id [21:39:19] or it does since recently, I alwyas forget [21:39:31] it does [21:39:39] well, at least for logged in users [21:53:55] legoktm: does that extension create only-local accounts starting with last-id-on-remote-wiki + 1 or what [21:54:19] (the installation docs look rather simplistic) [21:54:23] if you're importing an account, it uses your old user_id so everything works fine [21:54:53] we had to fiddle with the database so new accounts get user_id's higher than the highest one on the old site [21:54:54] yeah but it can't if another account was already created with that user_id can it :) [21:55:07] yep [21:55:35] it would be useful to document that step [21:56:43] I quoted you on the page for the meanwhile [21:57:03] ah thanks [21:59:26] did you also do something to avoid takeover of the old usernames? [22:03:42] Hello, I have this question: http://stackoverflow.com/questions/19071110/how-to-ask-a-ligne-of-code-directly-in-scribunto [22:04:39] ytrezq: you can't. [22:04:59] you could do it in https://www.mediawiki.org/wiki/Extension:Lua though [22:05:04] Thanks [22:06:48] Of course, it is not availaible on wikipedia :) [22:07:10] yup [22:09:59] found the culprit [22:10:03] works: http://wiki.wikimedia.org.uk/w/index.php?title=Special:Log&offset=20130902230906&limit=1 [22:10:07] doesn't work: http://wiki.wikimedia.org.uk/w/index.php?title=Special:Log&offset=20130902230906&limit=2 [22:10:31] nor any language are avaible for use on article directly (except wiktext) [22:11:10] Kelson: what can be breaking your new wiki in this log entry? :/ https://uk.wikimedia.org/w/index.php?title=Special:Log&offset=20130902230906&limit=2 [22:12:28] (I'm also seeing way more than 600 log entries now! dunno if 60k) [22:25:11] Elsie: I created http://wiki.wikimedia.org.uk/wiki/WMUK_wiki_migration/tech#Known_issues [22:32:37] Also https://meta.wikimedia.org/wiki/Data_dumps/Tools_for_importing#Making_the_imported_wiki_functional [22:33:46] Hello I need help please. I want to convert this C expression in lua : (date+=mouth<3?y--:y-2,23*mounth/9+d+4+year/4-year/100+year/400)%7 [22:34:31] Wait i mean (date+=mouth<3?year--:year-2,23*mounth/9+d+4+year/4-year/100+year/400)%7 [22:35:12] Wait i mean (date+=mouth<3?year--:year-2,23*mounth/9+date+4+year/4-year/100+year/400)%7 [22:38:37] What's a mounth? [22:39:29] an error: I wanted to write month [22:39:59] again corrected: (date+=mouth<3?year--:year-2,23*month/9+date+4+year/4-year/100+year/400)%7 [22:41:13] I must that I don't understand what a comma does (2,23). But It work on all compilers [22:42:03] say [22:46:34] One part of the problem is that lua doesn't really have Ternary conditional. [22:50:56] I thought it had if/else for that [22:52:44] but this article https://en.wikipedia.org/wiki/%3F:#Lua made a suggestion on that [22:54:57] ytrezq: http://lua-users.org/wiki/TernaryOperator [22:55:17] mounth? [22:56:55] Oh [22:58:03] Hm [22:58:56] ytrezq: Is this for calculating the day of the week based on the date, month, and year? [22:59:40] Yes, and i want to translate it because it the shorter I have found [22:59:50] Because it looks like you're screwing up the year variable in your ternary [22:59:54] Yes, and i want to translate it because it the shortest I have found [22:59:56] And then it has no effect because of the comma [23:00:08] ytrezq: Shorter is almost never better, write a module for it [23:00:20] Or maybe lua already has date functions you can use, sec. [23:00:56] ytrezq: https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#os.date [23:01:44] os.date( '*t', sometime ) [23:02:08] Then the member "weekday" of that table is what you want [23:02:12] Ah sorry, I thought it didn't exist [23:02:23] Sorry, wday. [23:02:39] And you don't mangle the year variable in the process, which is nice [23:02:50] You'll need to use os.time to get the appropriate epoch time though [23:06:30] The formulla already work: I used in a calendar. I didn't created it: http://web.archive.org/web/20051106034807/http://members.aol.com/s6sj7gt/mikecal.htm [23:07:00] Usually, Shorter mean less greedy in computing power [23:07:28] though I know sometimes it is not the case of course [23:09:11] ytrezq: If you use compactness of code as a metric for optimisation, I feel really bad for anyone who has to help maintain your code. :) [23:15:59] Yes but I code for very embeded systems with very low ressource most of the time: it mean no OS bare metal, no C/C++ librarie or include (no cin/cout no scanf, no printf ... etc) and that optimization>(maintainability && readability). [23:17:16] This formule have also the advantage to need nothing in a that point of way. I am bad at coding without size and speed at primary target in mind :p