[02:35:17] can $wgResourceModules be used to load external scripts? Say https://www.google.com/jsapi or some JS or CSS content stored elsewhere [03:39:25] How do I detect if my tag extension is being use multiple times in the same page? [04:42:53] are there any security updates in the release notes? [07:10:41] retentiveboy: what exactly are you trying to do? [07:11:18] (re $wgResourceModules) [07:11:38] [08:39:25 PM] How do I detect if my tag extension is being use multiple times in the same page? <-- you can use $parser->setExtensionData the first time it's used, and check that field again [09:00:07] legoktm: has 1.23 been released yet? [09:00:18] um, like a week ago? [09:00:20] see the topic :P [09:00:37] oh my bad [09:00:54] does mw also announce security fixes with it [09:01:29] or is it supposed to be hidden, like the security bugs [09:01:38] no, they're announced [09:01:45] they just wouldn't go into the first release [09:07:34] !lts [09:07:34] Current long-term support release is 1.19. The next will be 1.23, and so on. https://www.mediawiki.org/wiki/Version_lifecycle#Versions_and_their_end-of-life [09:08:17] !lts del [09:08:17] Successfully removed lts [09:09:38] !lts is Current long-term support release is 1.23. The legacy lts is 1.19 and will be supported until May 2015. https://www.mediawiki.org/wiki/Version_lifecycle#Versions_and_their_end-of-life [09:09:38] Key was added [09:52:39] .wc [10:49:50] Hey there :) [10:51:23] I want to short my url but the wiki said it is not recommend the way i wanted it to be.. "http://wiki.example.org/Page_title (not recommended!)" Why is it not recommended? [10:51:44] I have not found any explanation [10:53:37] GatheringXP: it can cause problems, because *any* actual file that is on the root path or subdirectory should not trigger the rewrite rule in order to work [10:54:07] GatheringXP: imagine for example, the robots.txt file. How would you tell if you want the robots.txt file or the article named "robots.txt"? [10:54:33] ok .. that's true. thx Vulpix [10:54:34] :) [10:57:03] Is it possible to get the number of results for a search term and include it in a page? I have a link to a search for TODO, would be good to have some text like "Help fix stuff, there are 14328 things to do!" [10:59:13] edeca: I don't think so, but you can make your TODO tag put the page in a category, then use PAGESINCATEGORY [10:59:52] yeah, performing a full text search for this would be incredibly bad performance [11:00:15] Hm, right now the TODO is just text that people have sprinkled in pages. Are you suggesting the pages should be categorised like [[Category:TODO]] or that there is an automagic way of doing it? [11:06:41] edeca: you could have a bot run through the pages and add a category everytime it sees that text, and remove it if it doesnt find it [11:14:17] Mmmm bot bot bot. That's a good idea, thanks. Any pointers on scripts that do similar, rather than reinventing the wheel? [11:16:58] * edeca checks out pywikibot [11:19:45] edeca: exactly what I would have suggested [11:19:52] Thanks again for help, cu :) [11:20:17] Yeah that's looks awesome. There is an existing script (http://www.mediawiki.org/wiki/Manual:Pywikipediabot/category.py) [11:20:28] Can automate the search then call that [11:20:33] Should be a simple cronjob [11:20:47] Thanks Betacommand and lilangent [11:20:49] edeca: how big is your wiki? [11:21:04] "currently hosting 526 articles with 13,324 total edits!" [11:21:08] Probably tiny. [11:21:34] Ah, OK, then setting it as a cron wouldnt cause too much stress [12:09:56] Hi! How do I register on translatewiki.net ? [12:15:41] ... [12:16:00] It shows how to register on the front page. [12:45:22] legoktm: re $egResourceModules, I'm trying to build an extension that adds tags for inserting Google Charts into pages. (https://google-developers.appspot.com/chart/) Need to insert a ? [17:07:08] mw.config.set( 'wgFoo', [] ); [17:07:28] not talking about data in PHP, this is in javascript in the page [17:07:58] I'm wondering if we can do something like mw.config.set( 'myextension.myvariable', [] ); [17:08:14] hi! [17:08:27] retentiveboy: you mean local variables? or global variables? [17:08:38] globals [17:08:43] you generally shouldn't have many of the latter kind, and the former kind doesn't matter of course [17:08:51] sure [17:09:30] retentiveboy: people usually namespace their stuff under `mw.`. e.g. there's mw.mmv for multimediaviewer [17:09:44] (the `mw` itself is defined by MediaWiki core) [17:09:50] so, what's the protocol for publishing a new extension? Asking since I could point to exactly what I'm doing/trying to do [17:10:55] retentiveboy: just push the code to a repository somewhere? [17:11:19] you can then create a decription page on mediawiki.org, or requires a repository on gerrit.wikimedia.org [17:11:35] duh, was thinking about an extension page first for some reason. [17:11:36] https://www.mediawiki.org/wiki/Git/New_repositories/Requests [17:11:50] but gerrit is a bit awkward to use, and very awkward to use if you're the sole developer [17:12:22] and also git-review xD [17:12:42] guess it's time to go learn git and get setup on github. long time svn user here.. [18:48:58] MatmaRex: so, this (http://goo.gl/ujzoZe) is what I spun up this morning. This sort of works but I'm sure it's not kosher. Would love to get feedback on the "right" way to do this. [18:53:39] retentiveboy: looks kosher enough to me, other than the fact that you have a security vulnerability in the JSON encoding code :) [18:53:44] retentiveboy: why not use format_json()? [18:54:17] retentiveboy: or mediawiki's FormatJson::encode() (since 1.22) if you don't have the JSON PHP extension [18:54:52] good point. honestly, was just hacking something together. [18:55:01] will put that on the list [19:12:38] withoutaname: hey, re https://gerrit.wikimedia.org/r/#/admin/groups/769,members - I think Quim Gil can help you with this [19:12:43] qgil @ wikimedia . org [19:14:27] sumanah: ok, I guess I'll give him a ring when he comes up [19:14:37] sumanah: and thanks [19:15:40] withoutaname: he might be away today so I suggest emailing him or leaving a msg on his talk page https://www.mediawiki.org/wiki/User:Qgil [19:28:10] en.WN templates using Dynamic Nav Bars seem borken. But I don't understand what Bawolff did to that code... [19:40:07] liangent: say if it's ok for you :) https://bugzilla.wikimedia.org/show_bug.cgi?id=58196#c51 [19:48:05] devunt: ping [20:00:19] sumanah: ready to meet whenever, but if you have a few minutes I will finish lunch first [20:00:23] fhocutt: with you in a moment, lemme switch things up [20:00:31] go ahead and finish lunch fhocutt! [20:01:27] I'm in the room though [20:07:08] !e ActivityMonitor [20:07:08] https://www.mediawiki.org/wiki/Extension:ActivityMonitor [20:45:56] Does anybody know when table syntax was introduced to MediaWiki? [20:47:07] brion knows. Brion knows everything. [20:47:25] He's seen too much [20:47:30] Unfortunately he isn't here [20:47:44] Hunt down Magnus. Pretty sure it was in 1.x [20:47:48] I thought he was around today [20:51:02] StevenW, well they seem to pre-date bugzilla - https://bugzilla.wikimedia.org/show_bug.cgi?id=10 [20:51:45] like I said, pretty sure phase 1 had it. [20:51:55] I'm going to guess about 2002 or 2003 then [20:51:59] anyway, they're older than shit [20:52:32] Earliest I've found is https://meta.wikimedia.org/w/index.php?title=Help:Table&oldid=21788 [20:52:47] (29-11-3) [20:53:35] references testwiki pages that appear not to exist, I imagine there was a different testwiki then? [20:55:13] yeah, lowest rev_timestamp in testwiki is 20040229011819 [20:55:23] * Lcawte cannot say as he was 7 at the time [20:56:41] StevenW, what looks like an original proposal at https://meta.wikimedia.org/w/index.php?title=Wiki_markup_tables&oldid=1973 [20:57:26] 03:21, 1 August 2002 [20:58:23] StevenW, https://meta.wikimedia.org/w/index.php?title=Wiki_markup_tables&diff=next&oldid=4838 [20:58:49] 20:40, 24 January 2003 - Magnus' proposal of basically the current table syntax [20:59:26] [21:04:33] StevenW, think I found it: https://www.mediawiki.org/wiki/Special:Code/MediaWiki/1641 [21:05:59] Krenair: muchas gracias [21:06:04] <^d> Oh man, back when parsing was part of OutputPage. [21:06:07] <^d> That *is* old. [21:43:26] And of course the parsing of that revision is all messed up https://meta.wikimedia.org/w/index.php?title=Wiki_markup_tables&oldid=4839 [21:57:16] doTableStuff [21:57:21] that function is still called that! [21:59:29] hi DanielK_WMDE_ [22:00:55] MatmaRex: What else would you call it? It does STUFF with TABLES! [22:01:48] ha [22:02:55] There's also maybeMakeExternalImage2() or something [22:03:26] * sumanah laughs [22:03:33] RoanKattouw: no '2'. but yes [22:03:42] huh, there are three 'maybe' methods on the parser [22:03:45] fetchScaryTemplateMaybeFromCache() [22:03:51] hilarious [22:03:58] There is a 2 somewhere [22:04:11] replaceInternalLinks2 [22:04:13] is there a CallMeMaybe? [22:05:10] sumanah: I did once chide Trevor for using .call() (which calls with null context) as opposed to .call( this ) (which is what he wanted) with "Hey, I just met you / and this is crazy / but here's my context / so .call( this ) maybe" [22:05:30] that is great. [22:05:54] (Also I might point out that that parser code probably predates Call Me Maybe) [22:05:59] # This works almost by chance, as the replaceVariables are done before the getUserSig(), [22:06:00] # which may corrupt this parser instance via its wfMessage()->text() call- [22:06:10] i should stop reading scary code late at night [22:06:17] [22:06:19] RoanKattouw: if I ghostwrite an email for you to send to wikitech-l to encourage people to propose LCA talks will you send it? [22:06:43] Yeah for sure [22:06:43] (it will be clear that I have ghostwritten it) [22:07:09] In general I will prevent you from saying things in my name that I don't agree with, obviously, but I think that's unlikely to be an issue in this case [22:07:44] Yes, LCA is awesome, people should go and/or submit talks, it's great, etc [22:08:09] If you can phrase that more eloquently and have time to do so then I'll happily take advantage of that [22:16:55] ok RoanKattouw I have emailed you something with suggested language - the only bits you would need to fill in/choose are the weather in New Zealand in mid January + the optional "this was ghostwritten" bit [22:17:12] Awesome, reading it now [22:21:27] sumanah: Suggested tweaks: maybe remove "programming" from "open source programming stuff" because although most talks have been directly about programming stuff, there have been a number of talks that weren't (e.g. Val & Mary presented in 2012) [22:21:35] RoanKattouw: ok! [22:21:56] I think I may mention that requesting LCA's travel funding reduces chances of acceptance for budget reasons (but this obviously isn't true for TPS) [22:22:01] OK! [22:22:10] Magnus really liked his spaces... "array () ;" [22:22:15] Or put in a weasel word like "sometimes" or "for some speakers" to reduce expectations a little [22:22:20] nod. [22:22:29] Also I should see if they've announced miniconfs yet [22:22:43] * sumanah apologizes to members of the Legal & Community Advocacy team who use LCA as a stalkword and are experiencing noise. [22:22:48] Miniconfs are pretty great to submit to if there's one about your niche [22:23:29] Oh, the miniconf CFP is concurrent, bah, fine [22:23:40] RoanKattouw: nod. http://linux.conf.au/miniconf-cfp proposals *for the miniconfs themselves* are open and perhaps it would be good to suggest a miniconf on something we care about [22:24:08] Yeah there's a CFP for entire miniconfs [22:24:17] right [22:24:51] Organizing a miniconf could be done, but requires significant effort [22:25:09] ok, we can leave that out of this mail then [22:25:16] and just nudge specific people individually [22:26:15] For a miniconf you basically have to run a one-day conference yourself. You get a room and a web page from the LCA people but other than that you're pretty much on your own [22:26:29] sumanah, yes [22:26:58] hi devunt! we talked about your debugging RfC yesterday and a lot of people like it [22:26:59] Running a miniconf requires a bunch of people, each with a sizable time commitment, and AFAIK it's historically been done by groups that already had a number of people on the ground in AU/NZ [22:27:19] * sumanah backs off the miniconf idea [22:27:54] Yeah sorry I'm not trying to scare you out of it or anything, just saying it's probably too big [22:27:55] However [22:27:56] devunt: check out https://www.mediawiki.org/wiki/Talk:Requests_for_comment/Debugging_at_production_server for some more thoughts on how to continue with this! [22:28:27] Once miniconfs have been announced and are starting to get organized, they'll usually have a bunch of speakers lined up but will be looking for more [22:29:20] we can send another note then specifically about "hey wanna speak on performance, visualization, or raw milk cheeses?" [22:29:47] I'm not personally very familiar with how they recruit those additional speakers but I've heard it's a good opportunity, and often less competitive (because it's usually about kind of a niche, and you're not dealing with the selective LCA papers committee directly) [22:29:50] Yeah sounds good [22:29:52] oh, sounds good. [22:29:52] k [22:30:25] devunt: :) it will look good if you comment on that talk page to note what you'll do next. And congrats on getting past the first "is this a good idea" step! [22:30:53] ok RoanKattouw you need me to write any more sentences? [22:32:33] No I got it [22:32:38] I'm writing the email now [22:33:12] I'm making some tweaks and additions here and there, but I'm still grateful for the ghostwriting [22:33:13] anyway that irc meeting was at 5 a.m, [22:33:23] so I couldn't participate in the meeting. [22:33:40] You still did 90% of the cognitive effort for me :) [22:33:50] devunt: Yes, I'm sorry for that and I'm sorry I did not schedule it sooner. [22:34:12] devunt: I mean, further ahead of time. I thought some other RfCs were going to be discussed but they aren't ready for another round of chat yet [22:34:46] devunt: but I think it is okay. you can email wikitech-l when you're ready for another IRC meeting about it, and I'll schedule it so it works for you [22:35:53] RoanKattouw: I'm super glad to help. :) Thank you for (I hope) causing more people to consider showing off cool stuff at LCA. I'm suggesting that Moriel turn http://moriel.smarterthanthat.com/tips/the-language-double-take-dealing-with-bidirectional-text-or-wait-tahw/ into an lca submission [22:36:06] Oooh yeah [22:36:14] That would be pretty cool [22:36:22] That's the kind of topic I think the papers committee might bite on [22:36:25] YES. And Nikerabbit should turn one of his performance posts into an LCA submission as well. In my opinion [22:50:57] Thank you RoanKattouw [22:51:57] Amgine: en.wikinews dynamic nav bars? I'm not sure I understnad what your'e talking about [22:52:12] RoanKattouw: thank you for (in 2011) walking with me across that bridge in Portland :) [22:52:34] I vaguely recall some vertigo-related thing [22:53:12] I used to be afraid of walking over bridges. A side effect of Hacker School is that I think that phobia is gone now [23:46:41] cscott: you around? [23:55:09] legoktm: ^demon|away - so I saw Kunal's email to wikitech-l about the config class. Congrats! do you want to talk about Reedy's open patches + next steps in an RfC meeting next week about RFC/Graphical configuration interface or https://www.mediawiki.org/wiki/Requests_for_comment/Configuration_database_2 ? [23:57:15] sumanah: I'm behind on responding to emails about extension registration right now, I think we should work/focus on that for now. [23:58:04] It'll be necessary for the config db anyways [23:58:39] Hi [23:58:58] hi! [23:59:01] legoktm: cool. This is the Composer-related stuff, yeah? [23:59:02] E:MultimediaViewer bug: https://i.imgur.com/rsafvCX.png [23:59:13] Wikinaut: I think marktraceur was looking into that [23:59:19] filed as https://bugzilla.wikimedia.org/show_bug.cgi?id=66564 [23:59:26] sumanah: er, no. that's a different rfc [23:59:35] legoktm: thx, it's a new issue [23:59:42] well, I think I'm thinking about both then [23:59:43] marktraceur: see above [23:59:48] Yeah, I am, Wikinaut we just finished having a conversation about this in the comments