[00:54:34] hello [00:57:55] I have a question on MediaWiki, am I in the right place to get an answer? :) [00:59:55] !ask | Kajra [00:59:56] Kajra: Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [01:02:47] I am helping to setup a wiki for an RPG board game with a huge amount of lore. Master wants some information to be hidden from players in order for them to discover it along the way. Is it possible to transclude text from "hidden" namespace into public pages, so that only specific group with access could see this part of the page? [01:03:37] <^demon|away> Not with stock MediaWiki. Offhand, wonder if there's an extension that'll do something for you. [01:04:30] <^demon|away> Maybe [[Extension:UserFunctions]] with some ParserFunctions magic. [01:09:32] With this extension... do I need a "secret" namespace or I can somehow mark parts of the page to be accessible to certain groups? [01:15:14] <^demon|away> Kajra: You could go either route. It's kind of hacky either way. [01:15:30] <^demon|away> MediaWiki isn't really designed for fine-grained read access restrictions. [01:16:48] ^demon, thank you :) [01:20:50] <^demon|away> You're welcome. [01:42:52] is there some magic to figuring out why a gadget doesn't work? I've enable error_reporting in LocalSettings but get nothing. :/ [01:43:07] wmat: Doesn't work how? [01:43:14] specifically, HotCat Gadget on MW 1.22.6 [01:43:18] Your browser's JavaScript error console may be helpful. [01:43:32] Gloria: the Gadget doesn't appear on the page [01:43:57] wmat: You mean it doesn't appear at [[Special:Preferences]]? [01:44:28] Gloria: no, it appears there, as well as on the User Preferences page fine, for selection. [01:45:31] Gloria: aha, I see an error now in the JS console. Thanks for reminding me that was there :) [06:24:20] hi. Can someone point me to a business-centric turnkey solution? [06:25:30] I'm looking for an alternative to Confluence without the burden of infrastructure wrangling [06:25:35] http://www.turnkeylinux.org/mediawiki is pretty good [06:27:08] makara: are you looking for something hosted, or something you could run on your own infrastructure? [06:27:21] ori, own infrastructure [06:27:35] if i may ask, do you use a configuration management solution like puppet or chef? [06:27:42] ori, no [06:27:57] should I? [06:28:10] seems like overkill [06:28:30] for a wiki. Not planning on doing it more than once [06:28:43] it can be, yeah. I asked on of the off-chance that you were using Puppet [06:28:50] if that were the case, I'd have recommended mediawiki-vagrant [06:29:46] mediawiki is pretty straightforward to set up, by the way, so if you wanted to give the manual installation route a try, i could help [06:30:27] thanks, I've done it before long time ago [06:30:50] Im more concerned with getting the interface / features locked down [06:31:25] and simplified for knowledge sharing on a business intranet [06:32:56] what you think of this: http://www.blue-spice.org/products/solutions/bluespice-free/ [06:40:18] makara: it looks OK at a glance, no past experience tho [06:40:29] i mean, i don't have any experience with it other than having looked just now [07:21:01] andre__: Hi :) Are you on top of https://bugzilla.wikimedia.org/show_bug.cgi?id=64622 ? I was asked to make sure it was on someone's list :) [07:40:17] guillom: greg_g and I pinged on #wikimedia-multimedia yesterday [07:40:38] andre__: ok; thanks :) [07:40:53] guillom, but I have no idea why this is considered by some folks as such a bug problem. [07:41:03] it feels buzzier than needed. [07:41:26] andre__: It appears to be breaking a ton of Wikisource pages [07:41:31] okay, comment 16 probably shows what the actual problem is, yeah [09:56:48] looks like latest visual editor does not work with mw 1.22.6 anymore [09:56:59] "PHP Fatal error: Call to a member function getPageLanguage() on a non-object in includes/OutputPage.php" [09:57:02] is that... ok ? :) [10:02:48] Jenkins-bot is not recognizing my use of finally as a keyword [10:03:01] what do [13:23:12] Hi, just wondering, what is the easiest way to get a users email via when writing an extension? also is this the right place to ask this, or should i be on wikimedia-dev? [13:44:09] you mean the email the user entered after registering ? [13:45:31] doix: find the User's object and then getMail() [13:45:42] and then be careful what actually do with it of course :) [13:58:34] thedj: thanks! I looked here: http://www.mediawiki.org/wiki/Manual:User.php and didn't see any reference to getMail(). Where can i find the documentation for all user object calls? [14:11:53] doix: https://doc.wikimedia.org/mediawiki-core/master/php/html/classUser.html [14:12:40] How to change summary in twinke? [14:13:06] doix: i'll add that to that Manual info box... [14:22:35] Greetings and salutations! I have this question to pose to the think tank: What is the most efficient way to get jquery running on a specialpage [14:23:01] in modern versions of MW, every page has jquery [14:25:01] thedj: You are correct sir! However I've gone and created my very own spiffy specialpages, and I anticipate a nightmare if I have to include several lines of jQuery in addHTML syntax in PHP [14:25:33] Ulfr_: So don't do that [14:25:42] https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader [14:25:46] ^ [14:25:55] Ulfr_: there you go. that is what you need. [14:26:16] marktraceur thedj: Much obliged! [14:27:40] specifically also: https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#Server-side [14:27:43] that part. [14:28:59] thedj: I owe you a carbonated beverage of your preference [14:30:27] Ulfr_: i'll take this: http://elitedaily.com/envision/the-worlds-most-expensive-champagne-will-run-you-1-8m-comes-with-a-real-diamond/ [14:30:55] thedj: Will you settle for a cheap knock off produced in a far eastern country? [14:31:22] hmm, just this once then :) [14:32:33] Appreciate that. If I had the currency to spring for one of those I'd just pay somebody else to do the heavy lifting for me [14:32:57] Like that one guy who subcontracted all his development work for a fraction of his salary and spent his workdays on eBay [14:40:53] thedj: thanks for all the help! [15:33:04] fuzzybot seems to be one edit behind on Meta - any idea why? [18:00:01] any idea why a user wouldn't be able to log in even after using the changePassword.php script? [18:24:43] sumanah: I'm around; please let me know when you're getting started :-) [18:25:08] Hi valhallasw :-) Will do! [18:33:47] anyone have any good tips on setting up a good Wiki Editing Environment? [18:39:22] infinitdev: A browser is usually involved? What are you looking for, gadgets, addons? [18:39:56] gadgets [18:40:08] infinitdev: Ones for Wikipedia in particular? [18:40:18] mediawiki [18:40:40] ok, it looks like pairjam.com really does want to be for 2-person *pairs* and not 3 or more (sorry valhallasw) [18:41:05] No problem :-) Reading/writing works, at least, so I can comment via IRC. [18:43:36] infinitdev: Have you looked at the gadgets on Wikipedia? [18:43:53] yes [18:44:18] Hello and big thanks for the awesome wiki implementation [18:44:21] but.. [18:44:29] I get error [18:46:08] Anr4tw!2 [18:46:18] :-X [18:46:33] I sincerely hope that you only use that for freenode [18:46:36] jubo2: What error? [18:46:45] i do [18:46:56] i actually only using it for my virtual appliance [18:47:00] marktraceur: http://pastebin.com/n0DQpSxB [18:47:18] jubo2: Did you run maintenance/update.php? [18:47:35] marktraceur: afaik I didn't upgrade anything ( incl. MW ) [18:48:50] the server is Debian6 if that matters [18:50:03] jubo2: Did you install MediaWiki from the Debian repositories? [18:50:28] marktraceur: negative. I installed it from mediawiki.org downloads [18:50:33] OK good. [18:50:57] the url of the site is http://develop.consumerium.org/wiki/ [18:51:24] jubo2: Can you try restarting your database software? [18:51:50] marktraceur: restarting mysqld.. sounds doable though I don't recall precisely how to.. [18:51:57] mysqladmin [18:52:31] marktraceur: you wouldn't have the way to restart MySQL5 handy ? [18:53:29] I mysqladmin.. hold on I ssh in.. [18:54:27] Yeah, ssh + using the initscript would be my method [18:57:02] marktraceur: I can shut it down with mysqladmin.. [18:57:36] so I look for the K scripts and S scripts that start and stop things with runlevel changes.. [18:58:11] then I.. uhh.. 'sh S00mysql' or something confusing [18:58:47] marktraceur: where were the init scripts stored again ? [18:59:04] /etc usually [18:59:54] /etc is for variables i.e. conf [18:59:59] that much I know [19:00:04] but I visit it rarely [19:00:18] usually when shit breaks down like now has happened [19:00:23] jubo2: /etc/init.d/mysqld restart [19:00:27] typically [19:00:30] valhallasw: tnx. [19:00:45] valhallasw: I run that with 'sudo' or not? [19:02:38] aha.. [19:02:49] now I get error that may be tell-all [19:02:51] "/etc/init.d/mysql: ERROR: The partition with /var/lib/mysql is too full! ... failed!" [19:03:19] I have only 20GB of storage on this server.. [19:03:23] I check 'df' [19:05:29] nope.. [19:05:42] 36% of disk that holds / is free [19:07:21] on a totally unrelated note: I did once upgrade the MW from 1.10 to 1.18 with only challenge being commenting one line of SQL out.. respec [19:08:04] I have another wiki on the same server [19:08:07] I check that [19:08:34] works like a charm [19:08:48] Has there been some attack on mah MW ? [19:09:24] I repeat: The other MW installation running on the same LAMP is doing just fine but I get error [19:10:42] http://pastebin.com/n0DQpSxB [19:12:30] jubo2: since both are in different databases, and apparently only that table is crashed, only one wiki is affected [19:12:59] jubo2: anyway, that table doesn't contain anything useful, so you can drop it and recreate again [19:14:25] Vulpix: I know what 'drop table this' works but where do I get the correct SQL to feed the MySQL to get the table back ? [19:14:51] > mysql -u (username) -p [19:15:14] ah, the create table? [19:15:20] in maintenance/tables.sql [19:19:14] Vulpix: so I open maintenance/tables.sql in my editor and look up..? [19:19:38] basically, yes [19:20:07] 'k.. nuke and recreate table objectcache [19:22:23] Vulpix: how do I get the table repopulated ? [19:22:40] just visit some page [19:25:12] * fhocutt waves to sumanah  [19:25:17] hi fhocutt! [19:25:27] fhocutt: I looked for you earlier and didn't see you, weird [19:25:44] fhocutt: so, I can successfully do requests.get('http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&format=json') - you too, right? [19:25:53] yes [19:26:09] cool. Can you construct a way to get to the things we want within that response? [19:26:33] yes, let me see [19:26:39] yeah [19:26:56] the titles are nested deep within that dict ... 'title' is the key. [19:27:39] we could just run the query (via the URL we construct when hitting the API) to limit it to 1 and then grab the first one .... [19:27:55] that would be easier, yeah [19:28:16] I have also realized that it would be good to specify in the RecentChanges API call that we only want mainspace (article) changes [19:28:30] let me fix that [19:29:19] cool. I am curious - are you using the written docs, and/or the API Sandbox, to figure out how to fix? [19:29:27] the written docs [19:29:33] actually using api.php right now [19:30:22] rclimit: Maximum amount of changes to list (10 by default). rcprop: Which properties to get - we can just ask for the title [19:30:31] yep, got that [19:30:40] http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&rcprop=title&rclimit=1&format=json [19:30:52] rcnamespace: Only list changes in these namespaces ... [19:31:00] ah! there we go [19:33:35] Hello [19:33:58] fhocutt: /w/api.php?action=query&list=recentchanges&format=json&rcnamespace=0&rcprop=title&rclimit=1 [19:33:59] muschem: hi [19:34:14] I have a question on secure login [19:34:16] fhocutt: (I used the Sandbox) [19:34:59] sumanah: considering disregarding minor/bot edits [19:35:08] fhocutt: I am fine with that :-) [19:35:17] I'm using secure login fine on v1.18, but in testing with 1.21 and 1.22, it no longer works. Did something change? [19:36:21] sumanah: http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&rcshow=!bot|!minor&rcprop=title&rcnamespace=0&rclimit=1&format=json [19:36:28] muschem: I'm not sure but I think probably yes. Did you already look at pages like https://www.mediawiki.org/wiki/MediaWiki_1.21 for the changelog? [19:36:57] sweet! [19:37:23] I haven't run across anything yet that tells me how this changed, or how to force SSL login in the new versions [19:38:01] fhocutt: perhaps you've noticed another item you can get: pageid. That way, if you want, you can request the page text by pageID, which would reduce the silliness of the later step [19:38:22] yes, it would. [19:38:44] fhocutt: might still be nice to grab the title, partly so we can print it for debugging purposes or have it be part of the tweet ("Chairs: Some are decorative.") [19:38:54] hm, ok [19:40:04] btw Frances are you using Firefox, Chrome, or other? [19:40:07] http://en.wikipedia.org/w/api.php?action=query&list=recentchanges&rcshow=!bot|!minor&rcprop=title|ids&rcnamespace=0&rclimit=1&format=json [19:40:09] Chromium [19:55:01] fhocutt: I have to head off in ~5 minutes. valhallasw and Mithrandir - would either of you like to follow up in pair programing with Frances on one of a few tasks which I shall now enumerate? [19:56:03] 1 of 3: finishing up the "grab a pageid and title from RecentChanges" bit - Frances is currently getting a TypeError that I'm helping diagnose [19:57:07] sumanah: I'm happy to help over IRC, but voice chat pairing is still a problem [19:57:28] 2 of 3: modifying the main()-type function ("run()" in obscure-fact.py) to actually care about the results of that RecentChanges call [19:57:30] I'm also not sure how to run the code, actually :-) [19:57:44] sumanah, valhallasw I can poke at this on my own for a while and ask questions when I run into issues [19:57:49] Sure! [19:58:15] 3 of 3: http://www.harihareswara.net/sumana/2013/12/5/0 - following these steps to actually get a tweet tweeted as the end result of running the script [20:00:27] (optional 4th thing that Frances has well in hand: changing the code to actually choose the first sentence of the last para of the longest section, instead of choosing a random sentence from a random seciton) [20:01:53] Big thanks valhallasw marktraceur and Vulpix ( whose not here now ) [20:02:35] 'drop table objectcache' + copy-paste the 'create table' and associated 'create index' [20:03:22] It'da been awful if we had to go to the Maniccs gig tomorrow with http://develop.consumerium.org/wiki/ down and brokeh [20:03:26] ok! valhallasw I am out of the pairjam session btw [20:03:33] but now I'm back to all :D :D [20:04:53] sumanah: ok! [20:05:03] valhallasw, I'll take some time to see what this error is and will ask questions if I get super frustrated [20:05:08] Thanks valhallasw [20:05:24] Oh, what's the simple way to get the code locally? [20:05:48] valhallasw, I just copy/pasted into a new .py file [20:05:55] OK, that works :-) [20:24:30] y0 fellow economics perpetrators [20:28:07] I've been perpetrating free dissemination of information pertaining to business studies [20:30:30] MSFT dunn buy most of NOK with 5.4B€ [20:31:32] so basically the Floridian retirees' fund managers sold NOK back to Finns in '00 for ~80€ [20:32:04] Now the Floridian retirees' fund managers are enjoying as MSFT digests and burps NOK Phones unit [20:32:14] jubo2: how is this relevant for #mediawiki? [20:32:21] oi sry.. [20:32:29] I thouhgt I was in ##economics [20:32:34] so embarracing [20:33:04] The ChanServ message fooled me [20:38:04] fhocutt: can I help you in any way with the issue? [20:38:10] for w/api.php, is there any difference between getting text with extracts or with parse? [20:38:27] valhallasw, I solved the type error, so that works [20:38:37] Cool! [20:39:05] right now I'm considering the best way to get the page text and wondering if the API does actually have two ways to do the same thing [20:39:17] I think the main difference is 'extracts' just gives you an excerpt, while parse will give you the full content [20:40:59] hm, looks like 'extracts' gives the whole thing by default, but you can limit what you get from it? [20:41:20] I think the exchars parameter [20:41:31] right, ok [20:41:34] thanks! [20:43:13] fhocutt: I think that in the future, pairjam (or some other shared coding website) + some other hangout/videochat (appear.in or G+ or whatever) would be a good way to go [20:43:56] ori: I'd welcome any of those examples you've found, of bad performance practices around JS/CSS [20:44:05] sumanah, sounds good, though I'm not on G+ :P [20:44:23] fhocutt: Nod, nod. Maybe a plain phone call then (for you and me, anyway) [20:45:14] can do 1-person videochat in hangouts without G+, so that would work, just not all of us [20:46:21] fhocutt: http://opensourcebridge.org/wiki/2013/Remote_Pair_Programming suggests https://github.com/livingsocial/ls-pair [20:47:12] fhocutt: I'd like to pair program with you several times over the course of the summer so I'll want to look into resources in http://www.pairprogramwith.me/ and see what'll work for us [20:47:24] sounds good. [21:16:30] hi [21:16:35] anyone knows how to use orgchart? [21:36:31] fhocutt: I'm off to bed -- feel free to send an e-mail if you run into any issues! [21:39:31] biberao: What do you want to accomplish? [22:14:44] how can i load the categories plugin for the mw-API? Its not available with "var a = new mw.Api(); a.getCategories()" [22:15:10] searched the documentation but did not find how to load those plugins :( [22:17:03] There's a getCategories plugin? [22:17:08] Krinkle: ^^ [22:17:20] Yes [22:17:26] mediawiki.api.categories [22:17:38] https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Api [22:17:47] https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Api.plugin.category [22:18:49] sh_sh: I guess you may need to do mw.loader.using( 'mediawiki.api.categories', function () { ... } ) or similar [22:19:06] marktraceur: sorry im back i want to be able to make organizational charts but running an extra daemon is bad [22:19:29] Why is that bad? [22:19:34] what deamon? [22:19:42] SamB: He's talking about the orgchart tool [22:20:05] yes [22:20:12] but shouldnt it have to link to the wiki? [22:20:33] marktraceur: the loader is also a plugin.. :( [22:20:58] marktraceur: because its an extra thing for a simple thing :D [22:22:08] biberao: Yeah, I built that software, nothing about it was simple [22:22:27] marktraceur: i didnt mean that [22:22:31] biberao: I should have, in hindsight, built it as an extension; we're stuck with it [22:22:33] Krinkle: i saw the docs but those functions are not accessible by default [22:22:37] i meant i want something simple [22:22:54] orgchart seems complicated for what i need [22:23:07] simply try "var a = new mw.Api(); a.getCategories()", its not there [22:25:25] sh_sh: mw.loader.using( 'mediawiki.api.categories', function () { var a = new mw.Api(); a.getCategories(); } ); [22:25:50] marktraceur: understood me now? [22:25:51] :X [22:28:06] marktraceur: that work, sorry for my doubts thx a lot :) [22:28:11] worked*