[00:00:56] Ryan_Lane: quick question: you going to scale/ [00:01:03] greg-g: I am not [00:01:04] s\/\?\ [00:01:25] Hi, a question about Scribunto/Lua... if I have a string and call a method on it via : does it call the "string" method or the "ustring" method? [00:01:33] ah, was just going to say that jcastro is and if you aren't already talking, you should. If only for the moinmoin to mediawiki conversion work you did [00:02:51] Ryan_Lane: jcastro being Jorge Castro, cloud/juju community guy at Canonical [00:04:24] greg-g: I've talked with jcastro a number of times in the past [00:04:29] greg-g: he works on juju, correct? [00:04:36] oh [00:04:39] you just mentioned that [00:05:07] :) [00:06:08] Ryan_Lane: I just shared your moin->mw blog post with him (there's a will for wiki.ubuntu.com to switch, just not resources right now) and then he mentioned he was going to scale, so just wanted to help him along :) Anyways, no worries. [00:06:19] heh [00:06:47] it was actually fairly easy [00:06:52] a lot of cleanup needed, though [00:06:56] that's great to hear [00:06:58] that part not ;) [00:07:05] and openstack's wiki probably has way less content [00:07:20] yeah, probably [00:07:32] the ubuntu wiki is sadly underused (can you imagine why?) [00:07:43] alright, going afk [01:06:21] gn8 folks [01:53:18] apparently they came out with a new namespace while I was sleeping? [01:53:46] is there any info for the new wikipedia "module" namespace anywhere? [01:54:51] Swob: for the Scribunto extension allowing Lua scripting [01:57:34] oh it loads up a blue edit window [01:58:05] * Jasper_Deng doesn't fully understand it, but knows that's the idea [01:58:18] * The module exports are available as the variable "p", including unsaved modifications. [01:58:20] whaaaat [01:59:06] well ok [01:59:07] http://www.mediawiki.org/wiki/Extension:Scribunto [01:59:47] this has gotta be the weirdest change to the MediaWiki software in all the time Ive been here [02:00:31] Lua is now embedded in MediaWiki [02:00:55] * Jasper_Deng wonders if Swob knows how to program Lua, b/c he doesn't know [02:01:34] I imagine I could get along fairly well if I just assume it's Javascript until I hit an error [02:01:45] that's my usual approach to unfamiliar programming languages [02:01:52] lol [02:02:10] granted that strategy wont get you far with say, php [02:02:22] but Ive never needed to learn php aside from one or two fucntions [02:08:29] and youve been working on this since August 2011 [02:09:46] me working on what? [02:10:11] Lua [02:10:18] by "you" i was addressing the room of techs [02:10:35] I know Ive been shifting from 1st to 2nd to 3rd person ... not meaning to [02:12:11] Swob- Looking at Scribunto? [02:16:48] yeah [03:20:36] In Scribunto/Lua, if I have a string and call a method on it via : does it call the "string" method or the "ustring" method? [03:22:43] Kira_K- The string method. At the moment, I'm leaning towards having Scribunto remove the ability to do str:func() entirely. [03:23:13] i.e. what getmetatable( "" ).__index = nil does in ordinary Lua [08:50:27] hello [10:08:04] Can anyone tell me where the sources of Wikimedia schema update script are? The one which does the master/slave switching? [10:15:53] vvv: https://wikitech.wikimedia.org/view/Master_switch [10:16:00] vvv: points to svn trunk/tools/switch-master [10:16:04] maybe it got migrated to gerrit [10:40:53] Is Gerrit down? o_o [10:55:39] hashar: thanks [10:57:09] FastLizard4|zZzZ: yeah [10:57:19] FastLizard4|zZzZ: work in progress [12:38:43] what was the first URL of the stable TS server? I no longer have it in my bookmarks :/ [12:39:02] I remember something like stable.ts.wikimedia.de but I see only the .org variant around [13:14:12] Nemo_bis, I am seeing stable.ts.wikimedia.org [13:14:17] but the .org is probably a typo [13:14:52] or maybe not... [13:17:51] see 26/11/2007 mail to toolserver [13:53:12] Platonides: that's not the first announcement of the stable server, is it [15:20:34] history not listing all edits? [15:20:37] https://pt.wiktionary.org/w/index.php?title=d%C3%BAvida&action=history [15:20:47] missing edit: https://pt.wiktionary.org/w/index.php?title=d%C3%BAvida&curid=3465&diff=1657505&oldid=1597959 [15:21:58] ah, appeared, after 3 minutes [15:30:11] I saw some DB lag earlier [15:30:15] @replag [17:33:11] i've found an old account from 2003 wich *doesn't exists*, seems it wasn't imported to mediawiki. what to do in this case, create it? : http://pt.wikipedia.org/wiki/Especial:Contribui%C3%A7%C3%B5es/Sirhaiva [17:33:53] The account has not been imported, what evidence do you have for this claim? [17:34:42] Nemo_bis: by imported i mean it provably got lost among the old mediawiki or when wp start using it. his contribs where made on 2003 [17:35:49] So what's the actual problem? [17:36:05] i've discovered it because i was filtering an article ip's contribs, and that *account* has rev_user = 0 [17:36:42] the account doesn't exists. click on the talk page: http://pt.wikipedia.org/w/index.php?title=Usu%C3%A1rio%28a%29_Discuss%C3%A3o:Sirhaiva&action=edit&redlink=1 [17:37:14] plus, with rev_user = 0, it can't be filtered has a non ip [17:37:22] I thought rev_user was a property of revisions? [17:37:29] It's just normal for imported edits [17:37:32] and it's not on user table [17:37:42] curiously, it exists on en.wiki 1.enwiki_pen.wikipedia.orgSirhaiva18196?user0 [17:37:51] meh https://toolserver.org/~purodha/sample/dbswithuser.php?usr=Sirhaiva&go=Go!&uselang=en [17:38:31] *shameless plug* ^ this tool was not on https://www.mediawiki.org/wiki/Toolserver/List_of_Tools , hurry up and list the tools you use before they get killed [17:42:13] Nemo_bis: any idea on how to turn it on a *real account* on pt.wp? [17:43:07] never going to happen, I think: why should it? [17:44:01] it could be called https://bugzilla.wikimedia.org/show_bug.cgi?id=34873 [17:44:09] true bug is https://bugzilla.wikimedia.org/show_bug.cgi?id=323 [17:46:02] Nemo_bis: got it. i thought rev_user = 0 was accurated, but now i see it isn't [17:46:36] another sort-of-invalid bug is https://bugzilla.wikimedia.org/show_bug.cgi?id=22386 [18:23:40] Susan: doesn't this look like your bug about redirects, spaces and diffs? I can't find it https://meta.wikimedia.org/wiki/Wikimedia_Forum#Mysterious_diff [18:25:42] Alchimista: what's accurated? [18:25:56] Nemo_bis: Probably 'cause it's marked fixed. [18:26:00] I think. [18:26:01] Maybe. [18:26:23] https://bugzilla.wikimedia.org/show_bug.cgi?id=43281 [18:26:25] There's that one. [18:26:36] But then there's another, much longer bug. [18:27:23] I've made a shitton of edits this year. [18:27:32] An actual shitton. [18:27:42] jeremyb_: the query i was making. I had no idea that some accounts could have rev_user = 0 [18:28:12] Alchimista: i think accurated is not a word. please rephrase [18:28:31] Nemo_bis: https://bugzilla.wikimedia.org/show_bug.cgi?id=42616 [18:28:52] jeremyb_: why rephrase closed issues [18:29:13] I see alsoed those bugs. [18:29:18] 21 17:46:01 < Alchimista> Nemo_bis: got it. i thought rev_user = 0 was accurated, but now i see it isn't [18:29:32] i have no idea what that means. i'd like to [18:29:36] I discovered, in the course of my research, that old revision lengths are sometimes simply wrong. [18:29:46] And that old revisions have a tendency to have trailing whitespace from various bugs. [18:29:55] Old and current. [18:30:05] It wasn't very interesting research. But it may explain some of the diffs. [18:30:44] People are signing up for global message delivery like crazy. [18:30:50] There must have been ten or twenty edits today. [18:31:29] https://meta.wikimedia.org/w/index.php?title=Global_message_delivery/Targets/Wikidata&action=history [18:31:41] 160 targets! [18:32:38] Nemo_bis: Hrmph. I told Snowolf to file a bug about those. [18:32:56] Susan: too late [18:33:17] I guess the summary should be expanded? [18:33:21] I imagine it affects all wikis. [18:33:32] All Wikimedia wikis, at least. [18:33:36] Probably [18:33:54] That Ralgis character is just taunting me. [18:34:06] https://meta.wikimedia.org/wiki/Special:Contributions/Ralgis [18:34:36] He almost doesn't seem human. [18:34:51] Gibberish subpage titles. [18:35:16] Interesting. [18:37:35] Matrix quote mash of today: "You think that's beef you're eating?" [19:33:22] anomie: ping? [19:33:36] hi hexasoft [19:33:40] hello [19:33:59] a question: I guess you created the mw.title stuff no? [19:34:08] yes, I did [19:34:35] I saw in it comments about "other titles". that means that it will be usable to check other things that the current page? [19:35:26] the underlying point is to know if it will allow features such as #ifexist, which is often used in maintenance templates [19:35:56] (and which would be nice :)) [19:36:32] Yes, it will. mw.table.new( s ).exists [19:36:42] err, mw.title.new( s ).exists [19:37:34] Note that each mw.title.new() counts as an expensive parser function, so no way around that #ifexists is expensive [19:37:34] awjrichards [19:37:41] yt [19:37:47] gah lunch [19:41:36] anomie: cool [19:41:50] anomie: yes, I saw the "expensive count" in the code :) [19:42:36] whatever most of its usage is about maintenance templates. it is not intended for articles [19:43:30] hexasoft- Could be used in infoboxes and such. Look how much use enwiki's awful [[Template:str sub]] got all over the place. [19:44:20] don't know this template (I make few edits on en:, mostly iw) [19:45:05] ah ok, I see what it does [19:45:36] Look in the history and see what it did before [19:45:45] * anomie Luafied it yesterday [19:45:54] whatever not having to use frame:preprocess("{{PAGENAME}}") anymore is fine [19:46:44] OMG [19:47:00] I guess it would look that way, but that's ugly :) [19:48:04] using page title is useful for some infoboxes that apply title modifications to follow some typographic rules, or for default naming [19:49:00] someone put a note on fr: about a bot that count the "expensive" value of existing templates [19:49:24] it can be useful to first work on very costy templates [19:50:13] could be nice if tech people can give feedback on servers load evolution for concerned wikis in the coming mounthes :) [19:51:17] If by "expensive" value you mean the expensive parser function count, probably not so useful. Now if it somehow counts how many subtemplate calls it has and so on, that could be useful. [19:51:43] ah, subtemplates is worse than parser functions? [19:52:07] I know many templates that do that [19:52:34] ^demon: is 'Mattflaschen' in the WMF ldap group? I thought WMFers have +2 in extensions, but he doesn't. A bit odd, since he's a deployer. [19:52:57] <^demon> Matt had complained before about his rights seeming wrong :\ [19:52:59] it is very common now that templating is "organized": plenty of subtemplates for anything, building new things is nothing than pluging existing ones [19:53:04] <^demon> He's in the wmf group, and it should be inherited. [19:53:13] Well, "expensive function count" is just stuff like #ifexists. What's worse is something like the {{str sub}} template, that calls another template 50 times, that calls a switch with a few hundred cases, and so on. [19:53:19] <^demon> ori-l: But nobody else had complained, so I kind of let it drop :\ [19:53:38] I had him check last night and he still was not able to [19:53:40] anomie: does using a sub-module is fine? [19:54:22] anomie: I mean, people will tend to create modules with set of useful functions (i.e. parts to build infoboxes, common treatments...) [19:54:23] hexasoft- Submodule is fine. A few subtemplates is no problem at all, the problem is when you wind up with hundreds or thousands of subtemplate calls for each invocation of the main template. [19:54:34] ok [19:55:44] i.e. for my taxobox tests (biology infoboxes) I have 1 main module and 3 submodules: one for data, one for tools, and one with "infobox parts" stuff (which should exists outside the taxobox stuff whatever) [19:56:00] hexasoft- Right now, I'm actually working on something to make loading of "data table" modules (like https://en.wiktionary.org/wiki/Module:languages) more efficient [19:57:11] I have to go. be back later [20:44:40] back [21:09:52] Hey AaronSchulz, were you able to finish looking at https://gerrit.wikimedia.org/r/#/c/39171/ ? (global rename) [21:11:24] I noticed a bunch things that seemed like problems, and then went out or something [21:13:23] Any comments would be great. [21:14:29] anomie: don't know if you work also on mw.time but just a note: mw.time.local is not possible [21:14:39] it's also not on my dashboard [21:14:47] hexasoft- There's a mw.time? [21:14:56] Lua don't like at all the "local" word, it seems [21:15:09] anomie: well, it is presented in the API, but it don't exists [21:15:22] http://www.mediawiki.org/wiki/Extension:Scribunto/API_specification#mw.time [21:15:53] just to say that we can't call an element called "local", it seems :) [21:16:02] API specification is someone's historical proposal for stuff. It's obsolete. [21:16:31] ok. I though it was still something like a potential goal [21:17:51] (whatever a full date access should be fine for templates that compute dates, durations...) [21:18:08] but yeah, 'local' is a reserved word. You could do mw.time['local'], but not mw.time.local. [21:18:30] I feel like JS runs into this too [21:18:48] aaaah! You added stuff in reference manual... [21:18:57] I will have to update my translate. [21:19:06] hexasoft- I *rewrote* reference manual [21:19:13] re-aaaah [21:19:19] it needed it [21:23:26] I will re-read it next week [21:23:53] btw I translated it but I use the english one. [21:28:44] AFAIS ApiArticleFeedbackv5Utils::updateFilterCounts is not inside a commit-block. Should I report that here, in the mediawiki-channel or fill-in a bugreport? [21:29:13] DaBPunkt: bug report [21:29:20] ok, thnx [21:29:31] this way it won't get lost [21:34:12] arf, os.date() returns server time, not local time, it seems [21:34:53] hexasoft- Yeah, because it's running on the server [21:35:22] obviously :) [22:07:00] guys, what happend with db35? [22:08:38] DaBPunkt: hey, I'm doing a dist upgrade and swapping it to mariadb [22:08:45] it should be back up in about 20 minutes [22:09:35] DaBPunkt: I !log'd it. I can start pinging you specifically when I am planning on doing any upgrades, fi you like [22:09:35] notpeter: ok. The ts still replicate from it until the frsh dump is imported tomorrow [22:09:52] ok. this shouldn't break repl [22:09:52] just interupt for a couple more iminutes [22:10:11] notpeter: sorry, I didn't check the log. My mistake [22:10:49] no problem. and i can ping you if you're online when I to anything like this in the future [22:11:34] s/to/do [22:12:24] notpeter: I like not to slow your work [22:13:13] DaBPunkt: ok, no worries. but I'll make sure to !log things correctly and clearly [22:13:43] the wmf is switching to mariadb? [22:14:34] that is the current plan. there were some threads about it on wikitech-l [22:15:09] DaBPunkt: http://lists.wikimedia.org/pipermail/wikitech-l/2012-December/064994.html [22:15:22] tnx [22:15:41] yep [23:31:18] Anyone know what ishmael is? [23:37:15] mysql query profiler [23:39:04] a whale hunter [23:39:22] both, really [23:39:51] heh