[00:07:12] I currently have (and had in recent time) problems with extremely long page load times (30-60s) and occasional timeout messages generated by the server (placed where you'd normally expect page contents). Is that a known issue? [00:07:46] (sometimes pages load with normal speed, sometimes they take 30-60s) [00:08:58] TheJH: if the pages contain markup, yes, it's known [00:09:48] MatmaRex: ah, yes, I already wondered why it seemed to occur more often on pages related to mathematics :D [00:11:13] MatmaRex: what's happening there? is rendering the math into PNGs so slow? would it help if I turned on mathjax in my user settings? [00:12:13] TheJH: i'm not sure what the exact issue is, enabling mathjax could help (and it's a lot prettier anyway) [00:12:36] AaronSchulz and physikerwelt know the gory details, but it looks like neither is here right now [00:13:06] there's a couple of bugs filed, if you enjoy reading that kind of thing [00:13:55] https://bugzilla.wikimedia.org/show_bug.cgi?id=60997 and its dependencies [00:13:59] ah, thanks [00:14:54] the last comment in that bug actually seems to have a decent explanation [00:16:55] right [00:17:07] TheJH: if you use mathjax, it should be pretty fast [00:21:46] legoktm: hm, no, still getting page load times like 17.31s, 41.91s, 42.63s [00:21:53] :/ [00:23:11] ping packet loss to the wikimedia server is 0%, ping times are rtt min/avg/max/mdev = 24.054/24.511/27.396/0.417 ms [00:26:18] oh, in the page source is a section "NewPP limit report" which says "CPU time usage: 1.440 seconds" but "Real time usage: 41.914 seconds" [00:26:43] so that is consistent with the occasional timeout message I got over the last few days [00:31:39] hm... for some reason, I can't reproduce it in incognito mode (logged out) [00:53:37] is it desirable that https://en.wikipedia.org/w/index.php?diff=blah loads the diff of the latest and next-to-latest version of the main page? [01:38:03] is it problematic? [10:50:36] [5760cd28] 2014-02-10 10:50:21: Fatal exception of type MWException [10:50:39] When deleting a thread [10:51:12] And now on accessing it https://www.mediawiki.org/wiki/Thread:Talk:How_to_contribute/Words_%26_links/reply_%282%29 <- https://www.mediawiki.org/wiki/Special:Contributions/Gafferuk [10:54:42] PHP fatal error in /usr/local/apache/common-local/php-1.23wmf13/extensions/LiquidThreads/pages/ThreadPermalinkView.php line 168: [10:54:45] Call to a member function setFragment() on a non-object [11:59:41] Nemo_bis, twkozlowski, that's https://bugzilla.wikimedia.org/show_bug.cgi?id=59791 [12:06:33] that's the consequence of an incomplete deletion [12:06:47] we need stacktrace for 5760cd28 [12:16:57] https://gerrit.wikimedia.org/r/108988 https://gerrit.wikimedia.org/r/111176 [12:41:51] hello [12:42:16] I got 502 error from wmflabs [12:42:30] is it a known issue? [13:02:29] yannf: i asked it in #wikimedia-labs and the answer was my query timedout [13:03:28] surprising.. [15:58:10] aww https://toolserver.org/~robla/crstats/ [16:36:25] hehe [16:36:27] that is old [16:36:46] Nemo_bis: that showed a nit graph of our subversion codereview [16:36:52] I know what it showed [16:37:04] :D [16:37:08] It's now at https://toolserver.org/~nemobis/crstats/robla/ [16:40:22] Nemo_bis: the huge drop in october 2010 is when I resumed from my wikibreak :-] [16:42:19] aww [18:55:21] hi [18:56:46] hi gry [19:08:40] csteipp, around? [19:14:43] csteipp, nvm, being an idiot :P [19:15:56] stwalkerster: Yeah, I'm around if you need help (just a little busy!) [19:16:20] Oh, I was just wondering how a non-admin user did an admin-only action, then realised they were a steward. :P [20:38:38] ok I'm developing a plugin for Vada, anyone wanna help me out? [20:43:45] Newyorkadam: What is Vada? [20:44:00] rdwrer: it's like AWB but for the browser [20:44:04] pre-pre alpha atm [20:44:16] Ah. [20:44:48] rdwrer: there's some docs made [20:44:59] I'm working on a plugin at the moment with code taken from another plugin for it [20:45:12] I'm missing ONE piece of it and I can't figure it out [20:46:33] Oh, you have a particular question, you aren't just asking for someone to partner with you [20:46:34] You should really ask that question, then [20:46:49] rdwrer: so the plugin pretty much loads up one category and replaces it with another [20:47:13] so if I change a categories name from 'test 1' to 'test 2' [20:47:13] I want all of the 'test 1' articles to be renamed to 'test 2' [20:47:17] the category loader already works [20:47:17] Right. [20:47:20] all I nee to do now is the replacement feature [20:47:23] *need [20:48:47] rdwrer: sending you the code 1 sec [20:48:47] rdwrer: https://test.wikipedia.org/wiki/User:Newyorkadam/vada/plugin/cat.js [20:49:11] Where is vadha documented? [20:49:16] vada* [20:49:33] this is very incomplete, it's only been made in the last twelve hour [20:49:34] hours* [20:49:35] https://test.wikipedia.org/wiki/User:A930913/vada/doc#vada.dom.page [20:50:49] (ping rdwrer in case you didn't see) [20:51:10] I did. [20:51:40] rdwrer: any ideas [20:51:41] ? [20:51:43] Newyorkadam: It looks like you need to use a regex to replace the category name in the page's text. [20:51:45] I'm very basic in JS [20:51:50] I'm ok at regex [20:52:01] ok 1 sec I know where to edit the regex [20:52:12] let's move this to private chat? I don't wanna spam up the room [20:52:29] It's OK [20:52:34] There's nothing else happening [20:52:43] You should be using https://test.wikipedia.org/wiki/User:A930913/vada/doc#vada.Page [20:52:52] so on my script page this is what I should change right/ [20:52:53] this funciton [20:52:56] function* [20:52:56] getCategories=function(){ [20:54:03] 0Seems so [20:54:30] ok 1 second [20:54:35] so the code I copied (with permission) was from a typo plugin [20:54:40] in that function it currently has this line: [20:54:48] usually this would load up the typo-fixing regex I believe [20:54:50] "var t=new vada.Page("Wikipedia:AutoWikiBrowser/Typos").text;" [20:55:11] I can just delete that right? [20:56:11] I believe so, yeah [20:56:28] THIS is what I wanna edit right? " var r=//g; [20:56:28] " [20:56:47] Wait [20:56:55] The whole function loads the list of typo regexes [20:57:02] yeah [20:57:13] oh I don't even need that at all do I/ [20:57:18] I think you want to change vada.plugins.categories.suggest [20:57:22] No, you don't [20:57:39] Unless you want to load a page of category replacements, maybe [20:57:49] yeah you're right I tested it [20:58:38] rdwrer: you mean this? " var suggest=vada.plugins.categories.suggest(p.text);" [20:59:57] ohh rdwrer: this: "vada.plugins.categories.suggest=function(text)" [21:00:03] that function [21:00:07] Yeah, change that function [21:00:12] It does the work I think. [21:00:38] rdwrer: what's this line? "var changes="";" [21:00:45] why're the quotations empty [21:01:17] Because it's an empty string? [21:01:52] rdwrer: but what would happen if I put something inside the string [21:02:08] Probably nothing useful [21:02:25] Newyorkadam: That function should iterate through any category replacements you want to make, and make them [21:02:55] Or rather, it should run through and notify the user of possible category replacements to make [21:02:55] rdwrer: I don't understand this line: "if(typos[t][0].test(text)){" [21:03:09] It's a regex test. [21:03:18] So you should replace that with a test for your category replacements [21:03:35] I feel this would be less painful if the code for the plugin you've copied were documented...at all [21:03:52] rdwrer: isn't the link I wrote above the documentation? [21:04:15] Newyorkadam: I mean the typo plugin, it seems very much not documented [21:04:24] rdwrer: this is very basic :p [21:04:32] I'm the only other user that I know of except for the dev [21:04:37] Yeah, but you're getting confused over things because they aren't documented [21:04:44] they will be :) [21:04:52] rdwrer: thanks for the help by the way :) [21:05:12] rdwrer: ok, these are the two lines I wanna focus on for changing the category, right? [21:05:15] " changes+=m[0]+'→'+m[0].replace(typos[t][0],typos[t][1])+((m.length>1)?" x"+m.length:"")+', '; [21:05:15] text=text.replace(typos[t][0],typos[t][1]);" [21:06:00] Yeah basically [21:06:01] Actually [21:06:22] Newyorkadam: You could probably use the typo plugin, verbatim, and just pass it category replacements instead of typos. [21:06:42] rdwrer: I pretty much am using the typo plugin verbatim [21:06:54] I just changed the names of the vars from typo-things to cat-things :p [21:07:46] That's my point though [21:08:02] rdwrer: so what I think I need to add is an input box (probably a text box, maybe an alert) for the user to input what category they want the already-set category to be changed to [21:08:06] are you following me? [21:08:07] Changing the variables should be all the change you need, then you can just dump category changes into the wiki page [21:09:13] rdwrer: so in that function I'm going to need to add an alert box [21:09:16] right? [21:10:00] No [21:10:11] Whatever the typo replacement plugin does should be good enough I think [21:11:16] rdwrer: but when does the user state what category they want it to be changed to? [21:11:57] Newyorkadam: They do that in a wiki page like https://test.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos [21:12:12] But it wouldn't be Typos, it would be Categories, and you would have different XML syntax [21:12:18] rdwrer: that's the list of typos to replace [21:12:22] I want the user to be able to say [21:12:33] "Ok, here's the list of categories that I'm going to load" (that's already created) [21:12:49] then they say, "here's the categories that all of these articles are going to be changed to" [21:12:55] Yeah [21:12:58] It's the same concept [21:13:04] You're going to load a page text [21:13:10] And do s/category 1/category 2/ [21:13:58] rdwrer: I'm saying, the user wants a specific category to be changed [21:14:03] why would it load from a pre-defined list? [21:14:22] Just define in the wiki page and you'll be good [21:14:50] rdwrer: yes, I understand, that replaces category 1 to category 2, right? [21:14:58] Yeah. [21:15:02] but what I'm saying is that that's a *pre-defined* [21:15:10] What if the user wants to do a new list but doesn't know regex? [21:15:17] they just wanna do it on the gui of Vada? [21:15:26] It should be easy enough to make the XML non-regexy [21:15:40] rdwrer: I just wanna make it so that it can be done on-Vada [21:15:44] not on a separate page [21:15:47] It should be too hard [21:15:56] then your code can add the regex bits [21:16:28] Well, you can do that too, then all you need to do is change the code that loads from a separate page and make it load from the UI [21:16:33] yeah that's what I wanna do :) [21:16:37] but I'm not sure how [21:17:36] prompt() is not the way to go, FWIW [21:17:41] rdwrer: http://pastebin.com/adEvFfJ7 that's what we need to change [21:17:53] Create some UI elements with jQuery, dump them into the DOM, pick up their values, etc. [21:17:57] It's not a quick thing [21:18:23] does wiki have jQUery? [21:18:24] *jQuery [21:18:56] Yup [21:19:00] k [21:19:08] rdwrer: can you help me through it? [21:19:21] I can't, sorry [21:19:24] I have to get back to other things [21:19:50] k [21:20:03] rdwrer: just tell me this one thing, of jQuery UI options, which of these should I use [21:20:26] Effects, Effects Core, Interactions, Method Overrides, Methods, Selectors, Theming, UI Core, Utilities, Widgets [21:20:38] No [21:20:52] Newyorkadam: You would create HTML input elements with jQuery. [21:21:15] world!"); [21:24:53] }); [21:25:28] No. [21:25:30] Bloody [21:25:52] Newyorkadam: The button you want them to click doesn't exist yet, you need to create it [21:26:00] yeah I understand [21:26:24] se4598, yeah I've been seeing that issue in OS for ages (the messed up form) [21:26:24] ohh wait [21:26:29] so writing html in jQuery is just [21:26:47] isn't all our js writing html in jQuery? [21:26:52] $('HTMLgoesHere'); [21:26:52] Krenair: the question is if there also something changed in handling new oversighted edits (Just noticed: the oversight must be happened today) [21:27:10] in dewiki [21:27:13] Newyorkadam: Yes [21:27:15] But [21:27:57] Newyorkadam: Writing something like $( '

My great text with links goes here

' ) will be slow(ish) compared to creating each element on its own and setting text [21:28:48] se4598, What? Someone OS'd a revision today?! [21:28:52] So you could do the same thing like $( '

' ).append( 'My great text ', $( '' ).prop( 'href', 'http://example.com' ).text( 'with links' ), ' goes here' ) [21:29:06] rdwrer: I don't know jQuery so that's going to be a problem [21:29:12] Krenair: must be, history is here: https://de.wikipedia.org/w/index.php?title=Gasthaus_Zum_schwarzen_Adler_%28Karbach_%28Unterfranken%29%29&action=history [21:29:32] Newyorkadam: You can also use document.createElement if you prefer [21:29:34] No se4598, that is suppression. [21:29:35] I don't really care [21:29:52] rdwrer: I'll try it out [21:29:55] thanks :) [21:31:13] Krenair: oversight = suppression, I thought? for 99 % not a normal revision delete, because the public log entry is missing [21:31:27] *No one* should be using Oversight anymore. As far as I know only the stewards have the technical ability to grant themselves the right to use OS, and they shouldn't be doing it [21:32:56] se4598, no [21:32:56] rdwrer: do I need to call jQuery somewhere or does it know I'm using jQuery? [21:33:01] Oversight is the old deprecated tool [21:33:11] Suppression is the 'new' RevDel-based system [21:33:21] Krenair: I mean oversight from what we call oversighter. Sorry if this confused with a former extension. [21:33:30] Krenair: the php fatal was: PHP fatal error in /usr/local/apache/common-local/php-1.23wmf12/includes/EditPage.php line 3249: Call to a member function preSaveTransform() on a non-object [21:33:34] Newyorkadam: Presumably Vada is already using it, but you can use mw.loader.load( 'jquery', function () { ... } ) to make sure [21:33:42] The fact that people still call the people who can use those tools 'Oversighters' only adds to the confusion [21:33:45] including the { … } part? [21:34:06] se4598, where was this error seen? [21:34:12] Newyorkadam: The function is where you put all of your code [21:34:23] rdwrer: oh [21:34:58] rdwrer: like so? https://test.wikipedia.org/w/index.php?title=User:Newyorkadam/vada/plugin/cat.js&diff=194297&oldid=194296 [21:35:13] rdwrer: that broke it [21:36:07] Newyorkadam: Sec [21:36:21] Krenair: trying to edit the version https://de.wikipedia.org/w/index.php?title=Gasthaus_Zum_schwarzen_Adler_(Karbach_(Unterfranken))&oldid=127414039 (I assume via the edit link in a diff view, but don't know exactly) [21:37:22] Trying to edit an existing, non-latest revision..? [21:39:25] Newyorkadam: So I think mw.loader.using is what I meant [21:39:30] But I can't get that to work either [21:39:38] hmm [21:39:45] how do I check if jQuery is already being used? [21:40:01] At least, not on test [21:40:08] Newyorkadam: Try doing mw.loader.using instead of .load [21:40:13] I think I gave you bad advice there [21:40:42] rdwrer: mw.loader.using( 'jquery', function () { ? [21:41:47] rdwrer: still broken [21:41:49] plugin doesn't load [21:42:04] oh wait [21:42:07] might be my fault [21:44:29] rdwrer: nope still not working [21:45:43] rdwrer: error at the bottom: "Expected '(end)' and instead saw '}'." [21:47:09] Weird. [21:47:25] Newyorkadam: I dunno man, it looks OK to me [21:47:30] Make sure the braces all match up [21:48:00] Krenair: yes, I will ask for more information and create a bug report then [21:49:14] se4598, okay [22:17:45] You already know about the problem, I assume [22:18:06] No reports yet huh [22:18:07] yep [22:18:14] But i’ve got a error. [22:18:15] sjoerddebruin: Wikimedia Errors galore [22:18:32] also "Sorry! This site is experiencing technical difficulties." [22:18:36] Yup. [22:19:20] Thanks for your vague unhelpful error report [22:19:57] OK, I'm starting to hit database errors... [22:20:09] "Request: GET http://en.wikipedia.org/w/index.php?title=1971_San_Fernando_earthquake&action=history, from 10.128.0.109 via cp1055 cp1055 ([10.64.32.107]:3128), Varnish XID 3013483071 [22:20:09] Forwarded for: 128.198.78.33, 10.128.0.109, 10.128.0.109, 10.128.0.109 [22:20:10] Error: 503, Service Unavailable at Mon, 10 Feb 2014 22:19:18 GMT " [22:20:16] That's not a database error [22:20:25] Request: GET http://meta.wikimedia.org/wiki/, from 10.64.0.103 via cp1066 cp1066 ([10.64.0.103]:3128), Varnish XID 173093944 [22:20:40] Huh, weird. [22:20:43] Error: 503, Service Unavailable at Mon, 10 Feb 2014 22:19:51 GMT [22:20:52] Oh, database was the other one, I refreshed through it... "Too many connections" [22:21:00] yep, I get both [22:21:18] https://en.wikipedia.org/ gives me too many connections, meta.wikimedia.org gives me Wikimedia Error [22:21:33] but I may be wrong [22:21:36] Huh. [22:21:45] Just got a too many connections. [22:21:46] hey I'm getting: (Cannot contact the database server: Too many connections (10.64.16.26)) [22:21:53] Jup pakaran [22:21:55] We know it [22:22:03] Can somebody edit our topic pl0x [22:22:04] ok wasn't in topic sorry [22:22:21] pakaran: hopefully it's not going to be a problem for long [22:22:46] Thaaankkss [22:23:09] working for me again [22:23:29] Getting: Sorry! This site is experiencing technical difficulties. [22:23:30] Try waiting a few minutes and reloading. [22:23:30] (Cannot contact the database server: Too many connections (10.64.16.144)) [22:23:31] it's [22:23:43] Ross_Hill: in the topic too ;) [22:23:44] it's intermittent [22:24:27] KTC: It would make sense that it's intermittent, connections are appearing and disappearing randomly. [22:25:00] Just got a 504 [22:28:25] And now I'm getting on-wiki datase errors. [22:28:39] same [22:30:21] they're discussing this in -operations [22:32:01] BTW, the sites are up, just with problems [22:33:23] twkozlowski: yeah, but not very usable really [22:33:33] slow/intermittent errors [22:33:43] Function: ResourceLoaderWikiModule::getTitleMtimes if that helps. [22:34:00] I was just reading an article about NATO bombing of Yugoslavia, works nice [22:34:14] works for me again, maybe it's mostly fixed? [22:34:18] or could be "luck" :P [22:34:19] started with some motorways in the US, don't ask me how I got to Yugoslavia [22:34:39] and Function: LinkHolderArray::replaceInternal when refreshing. [22:35:30] seems for me the main issues is at enwiki (with internal errors with db connect), while other wikis occasional getting error pages too (probably because servers overloaded from enwikis issue) [22:37:39] {{usuario bloqueado}} [22:37:59] Amadis_Wiki: this is not the place for unblock requests? [22:38:02] ! [22:38:02] Hello, I'm wm-bot. The database for this channel is published at http://bots.wmflabs.org/~wm-bot/db/%23mediawiki.htm More about WM-Bot: https://meta.wikimedia.org/wiki/wm-bot [22:38:14] sorry! I mistake the channel [22:38:25] it's okay ;) [22:38:46] xD