[00:32:06] RoanKattouw_away: I think we stack namespaces on mediawiki.org (Help:Extension:ParserFunctions). [00:32:22] There may be restrictions for File or User or something. [00:32:58] And "wikipedia:" isn't always a namespace name. It can be an interwiki name (I think it is by default in MediaWiki). [00:40:13] sanity. we got none [11:39:41] Hi is there a way to have two images on the same line without using the gallery? [12:14:08] hi all. I seem to be hitting something like this https://phabricator.wikimedia.org/T26780 on deleting pages - fresh 1.24.1 install with a postgresql 9.1 db. any ideas? [13:31:14] hi guys. I'm trying to setup my mediawiki to send mail using http://www.mediawiki.org/wiki/Manual:$wgSMTP. In the debug output it shows me Authentication successful DEBUG: Send: MAIL FROM:<@localhost>. I'm using the 'localhost' => 'wiki.foo.com' parameter. Isnt that the one to set that? [13:35:06] ah got it [13:44:01] I need some java guru [13:44:09] * javascript [13:44:15] there is this thing: https://wikitech.wikimedia.org/wiki/RCStream [13:44:34] how do I figure out what "data" in socket.on( 'change', function ( data ) { [13:44:37] actually is? [13:45:02] how do I see what datatype it is? how can I verify if that class, struct, array, tuple or whatever it is, contains some other property than title? [13:45:27] Krinkle ^ [13:45:30] are you here? [13:45:33] I suppose you made that [13:50:36] petan: hello [13:50:46] you can always print in out, as it's a json [13:50:53] ? [13:50:54] JSON.stringify(data, null, 2); [13:51:06] that'll pretty-print the data object [13:51:15] look, I just need to test if there is a key / attribute whatever called "foo" in that data thing [13:51:23] sometimes data contain it, sometimes not [13:51:25] data.foo [13:51:30] i dont [13:51:31] I need to know if data has "foo" or not [13:51:41] programatically [13:51:41] i don't see the problem then [13:51:48] ok, how would you write that in js? [13:52:03] if(data.foo) { /* data is here */ } [13:52:08] I need something like if (data.contains(foo) { print (data.foo); } [13:52:16] ok so just if (data.foo) [13:52:22] yep [13:52:30] if there is no such a thing like "foo" in data what happens? [13:52:33] no exception? etc? [13:52:39] but beware that that mean "data.foo is defined and evaluates to a true value" [13:52:46] no, no exceptions [13:52:50] o.O [13:52:55] js is such a weird language [13:52:59] yep [13:53:07] so if I do a typo I never even know it? lol [13:53:15] the code just run fine :D [13:53:24] so, if your data obj is {foo: ""} -> here if(data.foo) will not pass the check [13:53:38] I will try it [13:54:11] to be on the safe side, use if(data.foo !== undefined) {...} [13:54:37] ok [13:54:40] since the MWAPI is known to return keys with empty values to assert something exists [13:55:56] to look at some sample returns, look at this: http://codepen.io/Krinkle/full/laucI/ [14:03:48] mobrovac: is there a way to visualize that structure? [14:03:53] something like var_dump in php [14:04:33] JSON.stringify(data, null, 2); will give you a pretty-printed string version of the data object [14:07:22] petan: This is not RCStream you're asking about but standard JavaScript :) [14:07:46] this yes, I was asking about other thing before, actually this: https://phabricator.wikimedia.org/T91393 [14:07:48] petan: Properties in objects (hint: everything in javacsript is an object, except for null/undefined) always yield undefined if they don't exist [14:08:02] petan: Kind of like php with null, except there is no E_NOTICE and it's considered a good thing. [14:08:17] So isset($foo['bar']) -> foo.bar !== undefined [14:08:23] I am kind of tired of python defunct socket.IO library, I am just moving from python to js, and I pitty all these poor people who have to use python [14:08:30] "what a horrible language" [14:09:13] petan: Be sure to use 0.9.x socket.io client protocol [14:09:25] The latest is 1.x which is incompatible. [14:09:39] could be why the py file is failing [14:10:04] In fact, seeing those 404 error's, I'm quite sure that's the problem, [14:10:04] what is diffence between x != null and x !== null [14:10:09] does it matter? [14:10:13] petan: != is tolerant and shit. Don't use it. [14:10:28] note I am a C++ programmer, pointers are my friends :P [14:10:37] There is no natural null value in javascript. Using it like that will cancel out two errors. [14:10:41] this syntax is pretty foreign to me [14:10:48] petan: In weak comparison, null and undefined are "similar" [14:10:59] petan: Javascript returns undefined, not null, for undefined propeties. [14:11:04] ok, so !== null is proper? [14:11:10] petan: doing x != null basically means you don't know what you're doing. [14:11:14] petan: no !== undefined [14:11:15] I wouldn't be surprised if there was !=== as well X [14:11:26] null is a mistake, it doesn't belong. The null value is called undefined in javascript [14:11:37] null is just a bonus value to confuse new comers. Not used, not relevant. [14:11:48] when I visualize that JSON returned by RCStream some values contains literally "null" [14:11:59] so in this case I suppose they are defined [14:12:01] petan: Then you visualisation lib sucks [14:12:01] but null [14:12:18] console.log(JSON.stringify(data, null, 2)); [14:12:19] That's possible. [14:12:23] this is what I use ^ [14:12:38] What field contains null? [14:12:42] this is what I see: "old": null [14:12:57] Right [14:13:09] Within JSON things are different from regular javascript. [14:13:21] Within JSON, the bottom value of choice was null. [14:13:41] And while it should be mapped to undefined in parsing (just like other things are mapped to their native equiv), it ended up as actual null [14:13:44] which is more defined than undefined [14:13:53] Yeah [14:13:57] ok so should I do if (revision.old != null) or if (revision.old !== null) or if (revision.old != "null") [14:14:00] I don't get it [14:14:07] Note, in javacsript in general, one can defined properties with undefined as well [14:14:29] >> var obj = {}; obj.foo [14:14:29] Krinkle: undefined [14:14:38] >> var obj = {}; obj.hasOwnProperty( 'foo' ); [14:14:38] Krinkle: (boolean) false [14:14:45] >> var obj = { foo: null }; obj.hasOwnProperty( 'foo' ); [14:14:46] Krinkle: (boolean) true [14:14:49] >> var obj = { foo: undefined }; obj.hasOwnProperty( 'foo' ); [14:14:50] Krinkle: (boolean) true [14:14:54] >> var obj = { foo: undefined }; obj.foo [14:14:54] Krinkle: undefined [14:14:57] >> var obj = { foo: null }; obj.foo [14:14:57] Krinkle: (object) null [14:15:09] that's nice, but I don't really know what datatype is that "data" thing anyway [14:15:12] Although defining as undefined is a footgun. [14:15:19] because smart inventors of JS decided data types are for noobs [14:15:20] petan: Object. [14:15:22] plain object. [14:15:38] It has better data types than most languages [14:15:41] great, and what data type is data.revision.old? [14:15:44] if it even exists [14:15:52] Having 20 number types is just incompetent design. [14:16:00] Here there's one [14:16:04] Except they choose the wrong one [14:16:05] only good data type is that which CPU understands [14:16:07] like byte [14:16:24] http://codepen.io/Krinkle/full/laucI/ [14:16:34] The visualisation should tell you what data type it is [14:16:38] strings are quoted, numbers are not [14:17:08] https://github.com/wikimedia/mediawiki/blob/master/includes/rcfeed/MachineReadableRCFeedFormatter.php [14:17:08] ok my question now, is when data.revision.old is null how do I verify it? [14:17:20] It's not js/ or json specific. It maps to those ^ native php values [14:17:24] even on that link you sent me just now, I can see null pretty often [14:17:37] I just want to know if null was there or not [14:17:45] obj.key !== null [14:17:52] that is what I needed to know [14:19:03] petan: The format should be documeted on mw.org [14:19:06] I'll write it now [14:43:47] petan: https://www.mediawiki.org/wiki/Manual:RCFeed [14:44:15] ok [15:20:19] anyone an idea how to deal with this one: https://phabricator.wikimedia.org/T91316 [15:33:33] wingfire: I'll take a look. [15:34:15] Oh dear. [15:34:27] wingfire: Tried installing utf-8 packages for PHP and mysql? [15:34:39] Presumably they're already supporting it in some capacity [15:36:21] marktraceur: checking [15:40:12] marktraceur: it's ad debian wheezy, with apache 2.2.22 and php 5.4.36 and mariadb 10.0.17 [15:40:25] should be all fine with uft8 [15:40:42] and special package in mind? [15:41:51] Krinkle: how do I auto-reconnect the stream so that it always works? [15:41:57] now it works for few minutes and then it dies [15:41:58] in js [15:42:14] petan: on( 'exit' ) or something like that [15:42:17] disconnect [15:42:21] re-connect [15:42:32] is there some documentation for that? [15:42:34] I think it does this already depending on the client library you're using [15:42:36] I need to make it working [15:42:52] I am using the same library as you suggest in RCStream [15:43:37] @Glaisher2 https://phabricator.wikimedia.org/T91316 [15:45:04] I just directed you to the right channel :) [15:45:54] ;) [15:48:04] hello all [15:49:59] anyone an idea how to fix that problem: https://phabricator.wikimedia.org/T91316 [15:50:05] petan: which version> [15:50:40] somebody knows how to change the logo from the default to mine? [15:51:33] Dottor_Z: https://www.mediawiki.org/wiki/Manual:$wgLogo/en [15:52:42] problem is i can't overwrite the file [15:52:44] any file [15:54:01] does not exist any page from the wiki settings to add it? [15:54:44] no [15:55:00] so i can not change the logo? [15:55:29] you can change the logo by changing the correct line in the config file. [15:56:00] if you can not access this file you may be not allowed to change the logo [15:56:04] my host doesn't give me the access [15:56:21] to ftp [15:56:38] you have ftp? [15:57:10] how did you get the mediawiki there? [15:57:38] auto upload [15:58:07] you tell the hostator wich cms you need, it does upload it for you.... [15:58:32] and no webgui to access the files? [15:59:03] you can not change much in mediawiki without access to the extensions folder and to the config file [15:59:31] i noticed it, yes [16:08:31] So I've got a mystery. I upgraded from 1.22 to 1.24 and now I'm getting sporadic database failures. The fix is to restart the mysql server on the slave database server. The outage occurs as soon as I'm not paying attention. What gives? [16:09:55] service on the server* [16:10:44] any error message of the mysql server log? any info in the slow query log? [16:12:23] wingfire: Not really, no. Nothing out of the ordinary [16:12:33] before I restart the service I can query fine in the console as well [16:12:43] Just seems like the slave just flips a table and decides it can't do this anymore [16:15:27] does not sound like a mediawiki issue [16:18:18] Well, that's excellent to hear, but the issue didn't start until I'd upgraded, soooo [16:22:21] Ulfr: is the maintenance.php script running smoothly ? [16:22:40] tonythomas: Yeah, it just took FOREVER to clear caches [16:22:42] but that's normal [16:23:13] hmm. forever :| and your index page just shows this database error ? [16:23:42] No, it's not a database error persay, it's the one that says whoops! there was a problem connecting with the database. Have a google search instead [16:26:09] Ulfr: hope your mysql settings in LocalSettings.php is correct :\ [16:26:32] tonythomas: They are, because it works fine before the connection drops, and worked fine before I upgraded [16:27:06] Krinkle: same version as you have there 0.90 [16:27:23] 0.9.1 [16:29:01] Krinkle: with all the respect, this RCStream suck. It basically support only 2 languages, python and JS. python is completely broken and nearly unusable and JS is so undocumented that it's almost unusable as well. I know you meant well by creating it, but IRC feed is still far superior to this... [16:29:42] petan: Use what you like. It's in early dark-launched bea. [16:29:43] beta [16:29:52] With no active maintainers [16:30:22] I don't have the resources for it right now. [16:42:03] hi all, I'm having some weird issues I can't seem to resolve since the upgrade to 1.24 on a postgres database [16:42:07] stuff like this: ERROR: duplicate key value violates unique constraint "category_title" [16:42:48] and running the update.php has an error as well. there's a bug report about this, the updater doesn't fix the database [16:42:57] Query: ALTER TABLE recentchanges ADD FOREIGN KEY (rc_cur_id) REFERENCES page(page_id) ON DELETE SET NULL DEFERRABLE INITIALLY DEFERRED [16:43:04] Error: 23503 ERROR: insert or update on table "recentchanges" violates foreign key constraint "recentchanges_rc_cur_id_fkey" [16:43:20] https://phabricator.wikimedia.org/T76254 [16:53:13] Oh, goody. Finally found an actual log of the error [16:53:16] and it says! [16:53:20] unknown error [16:54:42] http://pastebin.com/p3FdV6UN [16:54:47] Does that make sense to anyone [17:01:30] Ulfr: did you check that your mysql slave server is up? :P [17:07:14] mmm i might have fixed it by grabbing the PostgresUpdater.php file from the REL1_24 branch [17:12:38] feld: ah yeah, 1.24.0 has issues with pgsql, they're fixed in git, but haven't been released as 1.24.2 isn't ready yet [17:13:43] legoktm: thanks for the confirmation [17:40:43] legoktm: I did, the issue is resolved by restarting the mysql slave server, however before I restart it I am able to access the server and query using the console. Issue began with an upgrade to 1.24 [17:42:54] anyone know how to set permissions for the Collection extension such that Users must be logged in and authenticated to create a book? [17:43:40] I'm seeing spiders rendering books on our wiki, effectively bringing down the system [17:44:46] wmat: Sounds like you need an exterminator, not a permissions adjustment. [17:44:52] Sorry. I couldn't resist. [17:45:00] heehee, no doubt [17:46:51] I think I just need a robots.txt configured correctly [17:47:57] wmat: I think permissions might be the way to go. Rabid spiders will disregard robots [17:48:11] I'm just afraid to say I haven't the foggiest where you'd set those D: [18:15:20] hmmm, WP allows anonymous Users to use Book Creator and Download as PDF [18:15:52] andre__: hey [18:16:17] andre__: is it possible to propose a task that could be taken / done by GSoC students? I don't really know how GSoC work [18:17:36] petan, see the links in https://lists.wikimedia.org/pipermail/wikitech-l/2015-March/081052.html [18:17:49] (I hope that answers your question, if not please ask :) [18:19:21] wmat, yep [18:19:28] wmat, is that surprising? [18:21:12] no, it makes sense [18:21:56] so I suppose they stop bots with a robots.txt? [19:13:21] I am trying to replicate this feature https://translatewiki.net/w/i.php?title=Special:SearchTranslations&query=wiki&group=ext-0-all&grouppath=mediawiki|ext-0-all [19:13:32] in my local domain [19:14:11] I have installed Translate extension [19:15:00] it shows "This wiki does not have a translation search service. " [19:15:32] Any suggestion how to get this feature in local domain? [19:24:07] phoenix303, try #mediawiki-i18n [19:24:33] Thanks MaxSem [20:08:28] Does instantcommons work with the current mediawiki? [20:09:42] I mean, if you don't do anything weird and just turn it on, it'll work, right? It'll generate thumbnails? [20:10:48] Isarra: as far as I know yes. But I think you need to have writable uploads directory so that it can store thumbs [20:10:56] ^ [20:11:40] hi, can anyone help me with this issue: https://phabricator.wikimedia.org/T91316 [20:23:50] for i18 bugs do i have to download other extensions instead of core? [20:28:02] https://phabricator.wikimedia.org/T91316 anyone an idea? [20:57:41] any idea? https://phabricator.wikimedia.org/T91316 [22:34:31] Hello folks. I'm trying to insert text that has line spaces and several other symbols that breaks up the text I'm trying to copy paste. It's server configs. How can I add text with no formatting, just line spaces? [22:35:33] It breaks everything like this: http://gyazo.com/05ac885f34f8ca2d43507185321731a2 [22:57:48] hi [22:58:49] is there a way to set up a sidemenu listed on several wiki pages, yet that only needs editing in one single location so as to avoid having to edit each article to change sidemenu links, for example? [23:12:11] Is VisualEditor in a place where the team would not advise against non-WMF wikis using it? [23:12:27] nope [23:12:27] lfaraone: Triple negative fun. [23:12:38] lfaraone: Yes, depending. [23:12:41] actually, s/WMF/enwiki/ [23:13:05] * James_F idly threatens MaxSem with +q. [23:13:15] ergh, double negation [23:13:20] * MaxSem meant yes:P [23:13:39] MaxSem: :-) [23:14:03] James_F: basically, if $EMPLOYER is looking at a new internal wiki, and wants to have non-geeky people be able to edit it easily, can I say in good conscience that MediaWiki+VisualEditor accomplishes that? [23:14:03] lfaraone: "Depending" as in "how much time, effort etc. do you have to maintain your wiki?". [23:14:20] lfaraone: Yes. MediaWiki+VisualEditor is pretty solid for basic editing tasks. [23:14:35] lfaraone: Depends on how happy they'd be with "master" versions of software. [23:14:41] James_F: what sort of time commitment would use of VE generate? [23:15:38] (I guess there's a dedicated IRC channel to ask these questions; please let me know if people'd prefer the discussion moved to #mediawiki-visualeditor) [23:15:38] lfaraone: How expert is the person installing MediaWiki? Have they ever installed it before? What about node? Are they OK with following on-wiki instructions and asking questions in IRC if it doesn't work? [23:15:53] lfaraone: Happy to talk there if you'd prefer. ;-) [23:15:54] installing redhotnew versions of software [23:16:25] James_F, is there a package for parsoid btw? [23:16:42] If you have a corporate "only code that's older than a year" $VERSION-1 policy it'll probably not be worth looking at [23:16:53] MaxSem: Yes, there's a .deb somewhere. [23:18:11] MaxSem: https://www.mediawiki.org/wiki/Parsoid/Setup#Ubuntu_.2F_Debian_on_amd64 [23:18:12] sehr gut [23:18:59] mmmm, debs over unencrypted HTTP. MY CORPORATE POLICY DOESN'T PERMIT THIS! [23:19:17] MaxSem: You can get them from inside the cluster if you prefer. :-) [23:19:43] MaxSem: 10.64.… [23:19:43] James_F: heya, if you guys want somebody to sponsor it to Debian, that can be arranged. [23:20:02] I can even swing by New Montgomery and do a keysigning. :P [23:20:13] lfaraone: Hmm. subbu/gwicke/cscott would be the ones to ask there. [23:20:18] lfaraone: That could be fun. :-) [23:21:19] (I know Gabriel was the one doing the original packaging, don't know if it's still him.) [23:21:50] sudo add-apt-repository ppa:chris-lea/node.js [23:21:58] is that for precise? [23:22:27] MaxSem: "On Ubuntu Server 12.04 LTS and Ubuntu Server 14.04 LTS…" [23:22:45] * MaxSem doubts it's needed on 14.04 [23:24:54] James_F, yes .. gwicke has been doing the deb packages. [23:25:00] OK. [23:25:21] i think hosted on parsoid.wmflabs.org still. [23:26:15] lfaraone, what's your use case? [23:26:58] MaxSem: corporate intranet. I'd like to not have to teach people in e.g. Recruiting how to use MediaWiki markup. [23:30:40] lfaraone: debian proper might be a bit slow for timely updates [23:31:15] MaxSem: our current wikis (yes, there are several entirely unrelated documentation repositories, and a single team's info may be spread across them :)) don't even have e.g. templating, so as long as I can rely on the same sort of formatting I'd expect to be able to reasonably do in, say, a Gmail compose window, would be sufficient. [23:31:18] with a proper public repo we'll have more control over release cycles etc [23:31:50] gwicke: Sure. But doesn't hurt to make it available in experimental, no? [23:32:10] depends on how painful it is to get there [23:32:13] you can update experimental whenever you want and don't have to worry about Debian `testing` freezes or releases [23:32:17] the difficulty is packaging all the dependencies [23:32:26] we are more pragmatic about bundling those [23:32:54] if somebody else volunteers to do the work, then great ;) [23:33:29] I'm more interested in ubiquity and automatic package generation [23:33:38] https://phabricator.wikimedia.org/T89900 in particular