[01:05:10] who is the maintainer of upload.wikimedia.org ? [01:05:27] I would wish the favicon to change to commons logo from its current wmf logo [01:05:39] I want to propose that [01:10:33] ToAruShiroiNeko: but it doesn't just server content from Commons [01:11:04] ToAruShiroiNeko: for example, this image is not on commons, but is served from upload.wikimedia.org https://en.wikipedia.org/wiki/File:%22A_Shot_in_the_Dark%22_%281933_film%29.jpg [01:11:38] absolutely. [01:11:39] server content? serve. Excuse my typing-on-a-bus typos. [01:11:50] oh its alright [01:12:03] I have gotten used to phones talking their minds off :D [01:12:13] Vast majority of files are from commons. [01:12:30] WMF logo implies official WMF approval [01:12:44] either we need to have no logo or something not wmf logo [01:12:50] it could be community logo for example [01:12:53] used on meta [01:13:09] Anything but WMF logo is my stance [01:13:23] gotcha, I see. [01:13:50] stance is too firm [01:13:52] approach [01:14:11] :) [01:14:38] I guess that is a decent proposal to make. Not sure where, though. [01:14:58] I want to first find the right place on pharpicator [01:15:02] and then propose it on meta [01:15:13] we will get a storm of feces if we do this boldly [01:15:41] or I suppose I can file it on meta first [01:19:18] ToAruShiroiNeko: I'd assume meta first. The place in phab is probably just #operations, since it's a simple favico changein puppet not tied to any specific project/team. And I don't know if #operations is the right group of people to drive the discussion of what color of a shed we want ;) [01:20:11] (ie: it doesn't matter to their performance/security/maintenance concerns at all) [01:20:24] urgh [01:20:45] I am not postiong anything to operations until I have a "do this" kind of a thread with a firm community decision [01:20:54] agreed. :) [01:20:57] kay building an rfc [01:55:18] greg-g: https://meta.wikimedia.org/wiki/Requests_for_comment/Change_upload.wikimedia.org_favicon_logo [01:55:24] there [02:28:19] When I try to donate using midori 0.4.3 it looks like this: http://cyber.com.au/~twb/tmp/wp-1.png if I click BPay I get to a page that looks like this: http://cyber.com.au/~twb/tmp/wp-1.png when I click "Continue" nothing happens. When I try using the webkit test browser, BPay method is not offered at all. [02:28:53] test browser version is: libwebkit2gtk-3.0-25:amd64: /usr/lib/x86_64-linux-gnu/webkit2gtk-3.0/libexec/MiniBrowser [02:29:47] (bpay is an australian thing that makes the donation look like a utility bill.) [02:52:09] legoktm: Mm.. I see you finished the migration of externalsearch that started last year. Beat me to it by 1 second. [02:52:12] https://en.wikipedia.org/w/index.php?title=MediaWiki%3AGadget-externalsearch.js&type=revision&diff=618851939&oldid=471745983 [02:52:25] Thx [02:52:38] heh [02:53:02] I forgot I did that :P [02:54:26] Krinkle: do we still need https://en.wikipedia.org/wiki/MediaWiki:Gadget-JSL.js ? [02:55:02] > The JavaScript Standard Library (JSL), a compatibility library for browsers that lack full support for JavaScript 1.6. This includes older versions of Internet Explorer (version 7 and below), Opera, and Safari. (Edit this page | Export) [02:55:34] Probably not. Older browsers dont get javascript execution. Newer ones can depend on ES5-shim but this probably predates that [02:56:02] Oh no, some of them didn't make it into ES3 [02:56:04] Array.filter is ES5 [02:56:14] Mozilla tried to push for it, but didn't win [02:57:51] can I just turn that gadget into nothing that depends on es5-shim? [03:00:00] Krinkle: ^? [03:00:46] legoktm: I'm not sure. Does it augment global Array and String, or does it export its own interface? [03:02:05] Krinkle: augment I think [03:02:21] Hm.. yeah [03:02:36] be sure to look through each and make sure its in the es5 spec, shim and in Chrome. [03:02:39] At least 'execScript' is not. [03:02:42] so that would need to remain [03:03:03] also execScript is fascinating [03:03:09] that's quite an elaborate way to do global eval [03:03:23] with amazing use of with() [03:03:29] gtg, back after dinner maybe [03:26:42] Why did gadgets break? HotCat is not even loading. [03:29:37] https://gerrit.wikimedia.org/r/#/c/230014/ [03:33:58] I made an edit to the gadgets definition, but it's not helping. [03:34:10] - * HotCat|HotCat.js [03:34:20] + * HotCat[ResourceLoader]|HotCat.js [03:34:21] Nope. [03:34:29] It simply doesn't get loaded. [03:34:39] I'm logged in and I can edit. [03:42:37] nakon: thanks for fixing popups [03:43:24] np, I can't really work without it ;) [03:43:47] is it correct that notifications aren't sent if the sender is anon? [03:43:49] nakon: yes, thanks! I was partway there with https://test.wikipedia.org/wiki/MediaWiki:Gadget-popups.js but you were quicker [03:44:39] someone else did all of the work last year but the changes were backed out due to a loading issue [03:45:01] thanks nakon, i think i fixed by adding something about edit,purge to it like english wikipedia does :) [03:45:12] svetlana: welcome :) [03:45:38] someone should pass it over to the next tech news letter, for i forgot whom to ask [03:51:20] whym: what kind of notifications? [03:53:31] legoktm: mention. To be specific, I'm trying to see why https://ja.wikipedia.org/w/index.php?diff=56065080 didn't notify User 富士の渓流. [03:54:24] it contained many user links, but the number was lower than the cap (20). [03:54:51] because it is not in talk namespace [03:55:18] Project ns should also be fine.... [03:55:30] then because the message does not end in signature [03:55:37] sorry, other than that i see no flaws :) [03:56:15] Yeah, the signature detection code probably isn't working [03:56:45] whym: can you file a bug for this? [03:59:16] legoktm: yeah maybe later [03:59:29] Thanks [03:59:33] FWIW it's discussed at the bottom of [[ja:Wikipedia:バグの報告]] [03:59:40] in Japanese [04:00:16] svetlana: legoktm: thanks to you, too [04:01:29] whym: legoktm: filed as https://phabricator.wikimedia.org/T108278?workflow=create [04:04:13] Thank you :D [04:04:49] No, thank you. :) [04:07:13] i think its still broken on commons [04:08:11] pliz, i can haz my popups on commons? [05:06:29] anyone? popups still broken on commons [05:07:20] hrm, nakon said he fixed the popups [05:08:29] wfm: http://i.imgur.com/Aian5WO.png [05:08:38] the commons popups gadget loads it from enwiki [05:09:10] but with a URL specially-crafted to be cacheable [05:09:13] https://commons.wikimedia.org/wiki/MediaWiki:Gadget-popups.js [05:09:33] so an older version is plausibly cached in your browser, comets [05:09:42] but i use it via global user.js on meta and it works on meta [05:14:34] ah nve, apparently it was on as a gadget too so removed that and it works now via the global.js on meta .. [13:21:22] why are things being broken again? [13:21:55] Too vague. [13:22:41] Glaisher: all my by grease monkey scripts broke [13:22:54] again [13:24:40] The only breaking change that was announced was the document.write() which none of them use [13:36:28] hi. i'm calling for the mw.loader.load ;-) [13:37:08] it appears there is no control over the order in which scripts will load? [13:38:11] is there a way to guarantee that the preferences js scripts are loaded before other scripts (except waiting or polling or calling back from the preferences scripts?) [13:42:16] Hi. if there's someone who can operate on InitialiseSettings.php, we'd like a quick edit https://phabricator.wikimedia.org/T107992 [13:55:07] Z5: you can set dependencies on your ResourceLoader modules. [13:55:34] sounds good, MatmaRex [13:55:40] Betacommand: file a bug. [13:58:58] MatmaRex: Done, but I wont hold my breath [14:06:25] MatmaRex: i copied the example from https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#Client-side (dynamically) but it does not seem to work: https://nl.wikipedia.org/w/index.php?title=Gebruiker%3AZanaq%2FZeusmode%2Fzm2.js&type=revision&diff=44664828&oldid=44664539 [14:09:06] Z5: hmm, no, that won't work. you'd have to have a RL module defined containing your script, not just a standalone script. you can only do it if you turn it into a gadget (as in, Extension:Gadgets gadget) :( [14:09:26] hmm [14:09:37] Z5: can you explain what you're trying to do? [14:09:59] i have this user script, that is providing some options. [14:10:29] the options are set in prefence.js files like https://nl.wikipedia.org/wiki/Gebruiker:Zanaq/zeusmodepreferences.js [14:10:53] these need to be loaded before the rest of the script executes [14:12:06] a callback like https://nl.wikipedia.org/w/index.php?title=Gebruiker:Zanaq/zeusmodepreferences.js&diff=next&oldid=44664440 works, but would require all users to add this to their personal settings. [14:13:11] Z5: hmm, did you know that user scripts can store any configuration options in user's preferences? perhaps you could use that. you'd need to provide some user interface to change them, though. https://www.mediawiki.org/wiki/API:Options#Changing_options [14:14:15] i didnt know that, and was possibly not possible in 2010 ;-) [14:14:28] Z5: i actually wrote a little generic helper some time ago to allow gadgets to "register" their option, and generate an interface, but it did not find much use outside of my own scripts. perhaps it would be useful for you: https://pl.wikipedia.org/wiki/MediaWiki:Gadget-gConfig.js (let me see if there's a version in English somewhere) [14:14:30] for these simple preferences that may work [14:15:20] for the other preferences, like https://nl.wikipedia.org/wiki/Gebruiker:MoiraMoira/zeusmodetemplates.js it probably wont ;-) [14:16:41] yeah, that would require more work. you could serialize the preferences as JSON and store that. [14:17:04] (some more stuff: https://github.com/MatmaRex/gConfig) [14:17:17] that is not very comfortable for the users [14:17:37] Z5: okay, back to the original issue, assuming you can't/won't use that: [14:18:17] ok :) [14:19:30] Z5: if you want to have a callback execute after the script is loaded, i think you'll want to just load it via AJAX and execute it yourself, and not try to make ResourceLoader do it. just $.ajax().done( function(){ … eval(…) } ), or something. [14:20:12] jQuery might have some helper for that, actually, but i don't know all of the API right now. :) [14:20:18] evil eval ;-) lets try [14:21:59] Z5: hmm. the very last example on http://api.jquery.com/jQuery.ajax/ seems like just the thing you need. [14:22:21] https://api.jquery.com/jquery.getscript/ ;-) [14:24:00] oh, neat. [14:24:20] it appears to work, thx MatmaRex [14:24:29] yay [14:31:45] no it doesnt. it does load the scripts but not in order :-/ [14:31:51] , MatmaRex [14:32:29] think i'll go for the alternate solution for now. [14:33:45] no that wont work either :-/ [14:51:07] Z5: "in order"? [14:52:13] it seems i made a mistake when using the example: the scripts are now executing in correct order :-) thanks [15:18:02] hi MatmaRex ;-) i'm back [15:18:20] hi there [15:18:33] it works now as user script, but when running it as a gadget it says it must be migrated to use resourceloader in console [15:19:34] huh [15:20:06] Z5: oh, wait. is the error message something like "Gadget "foo" was not loaded. Please migrate it to use ResourceLoader." ? [15:20:22] yes [15:20:48] Z5: it's apparently a new thing, i didn't know about it. you just need to add "[ResourceLoader]" in the gadget definition [15:20:49] now looking at https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_%28users%29 but doesnt seem to offer a clear cut answer [15:20:55] (i think) [15:21:33] (assuming that you don't rely on implicit global variables and stuff) [15:21:52] that narrows things down on the page [15:25:39] i've requested it to be added, thx again, MatmaRex [15:29:57] mmmmm the error is gone, but it doesnt work [15:32:38] Z5: can you give me the link again? i'll look [15:34:22] https://nl.wikipedia.org/wiki/MediaWiki:Gadget-zeus.js [15:35:04] latest change (using importscript) seems to fix it [15:37:06] yeah. gadget using "[ResourceLoader]" (which is apparently all gadgets now, others don't run anymore) are not executed in global scope. it's as if the whole code was wrapped in a function, and that function was executed. [15:37:22] scripts loaded with importScript() do execute in global scope, though. [15:37:59] this means that, for gadgets, all of your variables and functions are local to the single script, unless you explicitly make them global (e.g., use `window.foo = 42` instead of `var foo = 42`) [15:38:31] or better yet, write the script so that the variables don't need to be global. [15:40:15] :) thx [15:40:50] some functions of the script dont seem to work, but i'll try to figure it out first ;-) [15:59:44] hola [19:47:17] Error generating thumbnail [19:47:18] There have been too many recent failed attempts (4 or more) to render this thumbnail. Please try again later. [19:47:28] When is "later" ? [19:47:49] in a minute. 25 minutes? hour? [19:48:18] https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/Wolter_-_Powiastki_filozoficzne_02.djvu/page27-826px-Wolter_-_Powiastki_filozoficzne_02.djvu.jpg [19:48:34] this specific resolution does nit work [19:49:11] +/- 1px works; but the resolution is set automatically [21:01:18] ankry: I see some "request has exceeded memory limit exceptions in the fatal.log, e.g. [21:01:22] 2015-08-07 08:27:31 mw1160 commonswiki fatal ERROR: [94660230] /w/thumb_handler.php/archive/9/9f/20101013182931%21Qanat_illustration-de.svg/120px-Qanat_illustration-de.svg.png ErrorException from line 69 of /srv/mediawiki/wmf-config/StartProfiler.php: PHP Fatal: request has exceeded memory limit {"exception":"[Exception ErrorException] [21:01:37] but nothing for Powiastki [21:11:50] spagewmf: already seems to work [21:12:11] ankry: glad to hear it. I might have been looking in the wrong log