[00:04:14] oh lord, it has spans for each colored word and operator in a line [00:04:15] helderwiki: ok, i think you need to realize that that box contains the source markup at the time of page load, you just don't see it [00:05:22] helderwiki: you should probably click the 'toggle code editor' button when your script starts running, if there is one (it is the first button on the code editor toolbar) [00:05:53] helderwiki: then run your script and toggle back, and the user is happy with new code in the code editor :) [00:06:01] (click programmatically) [00:06:10] hack [00:06:13] =/ [00:06:41] what would you expect. it's not as hard as working with those ugly spans [00:06:47] and since I have custom buttons in the toolbar, it is not the first button either...hehe [00:07:07] add an "if button exists then click (it has an id)" to the script front, and "if it exists then click to toggle back" to script end [00:07:10] some 4 lines [00:07:58]
[00:08:06] it's what this button has: a rel and a class [00:08:20]
[00:08:21] that' [00:08:23] s a next one [00:09:49] $('.group-format') would probably suffice and you'd have to assume that codeeditor is on by default (I don't know whether that's always the case; if your script runs on page load then yes, otherwise you'd need to check what exactly the user has on -- code editor or the plain box) [00:11:24] Nemo_bis: No-one from "Wikiquote, Wikibooks, Wikiversity, Wikispecies and Wikivoyage" answers our requests for input about what they'd need in terms of editing tools. Wikivoyage in particular has special need ( etc.). [00:13:08] helderwiki: ... "if the box1 display style is none, click that button, edit box1 contents, and [if we did click it] then click it again" [00:31:41] helderwiki: it calls some $.wikiEditor.modules.toolbar.fn.buildTool() to sync back and forward, but I'm not sure what arguments it passes [00:33:53] svetlana: where did you find that? [00:34:22] helderwiki: jQuery._data(document.getElementsByClassName('tool-button')[0]).events.click[0].handler (it's an event assigned to the img, not to the div it's in) [00:34:39] ah, [00:34:43] it is from WikiEditor [00:35:03] jquery selectors instead of document.getElementsByClassName('tool-button')[0] didn't work, so I was lazy and said 'hi it's the first button'. in your case it's not the first like you mentioned [00:36:13] a quick web search returns horrid things like ``$group.append( $.wikiEditor.modules.toolbar.fn.buildTool( context, tool, group.tools[tool] ) );'' so that I'm not entirely sure we're gonna do it instead of just programmatically clicking that button [00:36:29] unless you feel inspired to figure out what arguments it needs :) [00:37:36] jQuery._data(document.getElementsByClassName('tool-button')[0]).events.click[0].handler.toString(); is a bit more interesting [00:41:58] thanks for your help svetlana ! [00:42:06] I'll have to go now... [00:42:41] and I'll likely just not use CodeEditor for a while [00:42:47] when fixing the scripts... [00:56:07] helderwiki: you're welcome :) I might fish some more out of it later when I have a proper linux machine with ack on it (and I now also know your wiki username too) [07:47:42] http://ur1.ca/edq1f is not loading for me [07:50:01] and ive seen a few error screens on en.wp; one while previewing a new page, and another while searching for a normal text string [07:52:52] http://wikitech.wikimedia.org/wiki/Logs [07:54:27] Other than a very small peak at 7.15 UTC, nothing visible in graphs [07:54:40] Searching? Not Cirrus though? [07:56:01] on special:search , I received the error with search term "Crow's Nest, NSW" without quotes [07:57:04] If you don't use Cirrus, SNAFU [07:58:04] No idea about preview candidate guilts... nothing weird in https://ganglia.wikimedia.org/latest/?r=day&cs=&ce=&tab=ch&vn=&hide-hf=false&hreg[]=pc100 [07:58:21] Hm, HHVM was not enabled on any non-jobqueue appserver, was it [08:00:27] is Cirrus a user pref ? [08:04:46] jayvdb: in BetaFeatures, for en.wiki [08:07:51] Nemo_bis: yup - I had enabled that beta ;-) [08:16:26] in the channel topic, 'Error counts: http://ur1.ca/edq1f' - does that work for anyone else? [08:17:24] Nemo_bis: same search error again. "An error occurrred while searching: We could not complete your search due to a temporary problem. Please try again later." [08:17:51] (without the spelling mistake) [08:18:56] refresh search - same error [08:20:27] same search on a different computer - 214 results - search works properly :/ [08:21:12] * jayvdb wonders what nstoken is [08:21:22] jayvdb: different computer without Cirrus? [08:21:23] I remove nstoken from the url, and the search works [08:21:38] jayvdb: it's to save the advanced search settings [08:21:39] no - same user prefs [08:22:22] jayvdb: https://gerrit.wikimedia.org/r/#/c/144180 [08:23:45] loading the same URL with the nstoken included again, same error [08:24:26] You shouldn't reuse token [08:24:33] But I'm not able to reproduce [08:25:35] that doesnt surprise me, as I cant reproduce on a different computer, or on the same computer with the nsToken removed from the url [08:25:48] fwiw, search term is: Women's National Wheelchair Basketball League [09:37:14] search error again, for 'Western Stars' [09:38:00] jayvdb: I'd guess it's unrelated to the searchstring but rather related to the searching node or something [09:38:31] I follow the same steps on a different computer and can not reproduce [09:39:34] the IP and UA on the two computers is different, if anyone wants to dig into the data [09:42:32] jayvdb: i'd guess the searching node is determined by load and/or a round-robin system. so each query has some probability to end up on one node or another ... and if one node creates problems, one wouldn't be able to tell by UI interaction, but I guess, the ops should be able to find that via return codes of the nodes :S [09:43:26] the node is hidden in the HTML I receive [09:43:38] sigh https://www.mediawiki.org/wiki/Special:Contributions/Motivated_Youth_Organization%28MYO%29 [09:43:43] mw1169 for the last one [09:43:44] sigh² https://www.mediawiki.org/w/index.php?title=Talk:Search&action=compare-post-revisions&workflow=ryjrrrywjcrnqu7z&topic_newRevision=rylbm6kdwpwvx7sz [09:45:44] jayvdb: and it always happens on the same computer, but never on the other? do the two computers have different IP, OS, browser, ... [09:46:29] Nemo_bis: yes on all counts: different IP, OS and browser [09:49:23] I see the error about 50% of the time on one computer, and I havent seen it on the second computer yet [09:49:43] do the two IPs geolocate to the same region? [09:52:33] yes. [09:53:31] both on the same network, with IPs fairly close to each other, and ive checked the Geo data that mw has detected - identical [09:55:00] Is there any NoScript, extension, firewall or anything that you could try and disable on the "failing" computer [09:55:37] looking.. [09:55:46] https://test.wikipedia.org/wiki/User:Gryllida/common.js could you please [try to import this (it's annoying, it opens a dialog each time you open any page) and] tell me how to position the dialog in the center instead of at the top of the screen? [09:57:45] the problem computer is Chrome on FC, and I never usually have a problem, with two extensions (Murdoch Block and Zotero Connector) which I have disabled now [10:35:10] another search error, this time with Chrome extensions disabled, from host mw1032 [10:47:14] jayvdb, I don't see the steps to reproduce. [10:49:07] svetlana: 1. enwp special:search 2. type in a string (so far, only happens on strings which dont have an article). 3. click search [10:49:51] doesnt happen all the time; only happens on the computer I used more frequently. [10:52:47] jayvdb, it does not give me anything unusual. http://files.gryllida.fastmail.fm.user.fm/wikimedia/specialsearch.png . Did you try on that computer with another browser? [10:55:35] very quickly tried another browser (Firefox) on the problematic computer, and Chrome on the computer which hasnt had a problem [10:56:30] what happened in that firefox on the problematic computer? [10:58:31] wasnt able to reproduce [11:05:45] OK, then the issue is browser-specific, since presumably you did try to log in in a few of those things. [11:07:27] Specific to that browser, cache, cookies, and whatever else it has. I'd try hard-reloading the page, clearing wikipedia cookies, temporarily disabling browser addons... the usual troubleshooting of browser things. [12:26:06] (resent #1) https://test.wikipedia.org/wiki/User:Gryllida/common.js could you please [try to import this (it's annoying, it opens a dialog each time you open any page) and] tell me how to position the dialog in the center instead of at the top of the screen? [13:05:57] svetlana: my wild guess from looking at it is the line
Thought it'd do what I need. [13:42:37] my question from yesterday, how to FORCE all wikis to connect to http instead of https? [13:42:57] For yourself? [13:43:11] uh, to http? [13:43:18] Some "private" ones are https only [13:46:12] yeha for all wikis, soemtimes i'm forced logged out adn when i log back in, it becomes https, i hate it :( [13:46:40] why would you want to be on http if you can go over https [13:47:24] cause http caches, i'm on limited data and http is far more faster.. [13:50:57] even when "Always use a secure connection when logged in" is deselected, it still runs on https :| [13:51:15] we need a 'global' option for this.. [15:00:33] manybubbles: need to restart. in call in 3 mins :) [16:04:38] Jenkins seems like it is stuck. I have a build queued but the slaves to run it are all idle and don't seem to be picking it up. [16:09:26] If Jenkins/Zuul is stuck, it is always Jenkins fault. Just kill it and [16:09:27] restart it (make sure there is only one process running). It is on [16:09:29] gallium.wikimedia.org [16:09:33] chrismcmahonbrb: ^ :) [16:10:06] I'm just digging up the docs.. [16:10:09] a while since I touched it [16:12:26] chrismcmahonbrb: Should be coming back up again [16:13:27] thanks Reedy [16:38:38] thanks Reedy [18:11:54] I wonder if jayvdb sorted out his problem [19:27:58] Nemo_bis: any idea if I did this right? [19:27:58] http://st.unicode.org/cldr-apps/v#forum/pt// [19:28:39] I clicked in "New forum Post" and created a title similar to others I found in that page, and pointed to the gerrit change where I noticed the problem [19:29:45] (but since those topic titles have a specific format I was wondering if it isn't created automatically when the user click somewhere else in the interface) [19:30:20] Saint Unicode [19:31:10] The patron saint of Indic languages [19:31:12] helderwiki: yes, there is a process [19:31:12] <^d> Patron Saint of letter tofu. [19:31:17] Bah [19:31:24] (but it doesn't matter much) [19:32:11] helderwiki: "ideally" I think you should click the speech bubble icon at st.unicode.org/cldr-apps/v#r_vetting_json/pt// [19:32:12] should I create similar items for the other 3 problems I noticed in that pt file? [19:32:18] * http://st.unicode.org/cldr-apps/v#r_vetting_json/pt// [19:32:25] (warning, huge page) [19:32:34] * helderwiki is opening it... [19:35:30] I'm not finding any of "bai", "tai", "sgn", "millisecond-one" or "millisecond-other" in that page [19:35:48] You probably have to select "coverage: comprehensive" at top [19:36:11] Had you subscribed earlier you would have received all my wonderful instructions :D [19:36:16] hah! [19:37:45] hrmm... still not finding these codes... [19:41:45] Nemo_bis: any other hints? [19:42:10] I'm checking myself now [19:44:10] ok, clearly those didn't change in CLDR 26 so aren't included there [19:45:52] helderwiki: http://st.unicode.org/cldr-apps/v#/pt/Languages_T_Z/1ce94b0187d1d022 , but you can submit to technical committee only if there is a losing alternative [19:46:07] Simple comment to the forum is ok then [19:48:38] isn't "tai" different from "th"? [19:50:07] howdy [19:50:38] hi [19:50:50] helderwiki: probably, but it may also have been removed [19:50:59] hm [19:52:22] Nemo_bis: So how do new entries get added to English in CLDR? [19:52:51] kaldari: see summary at top of https://translatewiki.net/wiki/Thread:Support/Language_names_not_in_Unicode_CLDR [19:53:05] For example, they just added the mostly useless "Mayan languages", but still don't include any actual Mayan languages in the list, some of which are spoken by over a million people! [19:53:35] Are you saying they added the macrolanguage but not the language? [19:56:49] Nemo_bis: Yes, they added the Macro language, but not any of the 20 or so actual languages. [19:57:11] Nemo_bis: and there is no confusion about them being actual separate languages [19:57:39] Well, makes sense. 20 names multiplied by hundreds locales makes a lot of translations. :) [19:58:11] true, although they at least should have added the 2 major ones: Yucatec and K'iche' [19:58:17] If someone cares about having a new name and provides reliable sources, it gets added. [19:58:40] Sure, if someone bothers to provide sources for which are the "2 major ones". :) [19:58:43] Nemo_bis: Yucatec is the language that Apocalypto is in :) [19:59:06] Nemo_bis: done. I submitted the messages about the 4 corrections for pt. [19:59:30] thanks helderwiki [19:59:51] kaldari: if you feel that's a relevant source, feel free to mention it :) [20:00:13] Nemo_bis: I'll file a ticket requesting them. Any language with over a million speakers should be on the list, IMO. [20:01:06] It's a gradual process [20:01:27] I'm also trying to show that we're responsible users who give back to CLDR [20:01:56] So we got 100 language names added in our first "serious" attempt. Then we submitted 11k translations "in return". [20:02:20] Nemo_bis: I just wish they would be sensisble and use Github (or anything less bureaucratic) :P [20:02:22] At the next round we'll get better [20:02:37] That doesn't work [20:03:29] Nemo_bis: Thanks for letting me in on how this works. I've always found CLDR to be frustratingly opaque. [20:03:50] Well, it is, in a way. [20:04:36] Language is a controversial topic with a lot of vocal shouters around the interwebz [20:05:18] So CLDR mostly organises contributions by "organisation" for practical matters, and of course every organisation needs at least one point of contact to serve as bridge. [20:05:20] * odder wondering how responsible a user Wikimedia is. [20:05:29] odder: we're beginning to be ;) [20:05:51] so, how much did we give back to CLDR? are there any statistics ready? [20:06:14] 11k translations (out of 500k total or so) in this round [20:06:28] 11k out of 500k in this round alone? [20:06:42] We've just started... [20:06:53] "540 thousand votes have been cast this release cycle" http://st.unicode.org/cldr-apps/v#statistics [20:07:10] Nemo_bis: So if I want to upstream some of those changes for French (which I'm an intermediate speaker of), how should I go about doing that? Should I request to be a reviewer for French or should I file a ticket? [20:07:26] odder: Wikimedia is just a small corner of the software (or even FLOSS) world :) 2 % is not bad ;) [20:07:50] Ah, let me give you permission for french [20:08:19] Nemo_bis: Thanks [20:09:01] kaldari: login again [20:10:15] Nemo_bis: I don't think I'm going to change the Nahuatl entry though since there's debate about whether it's a language or language family (and it's just listed as a language in the English array) [20:10:53] Nemo_bis: Not saying anything :) [20:11:01] I did all translations for Polish, so there's hope! [20:12:42] Nemo_bis: So I logged in again. Not sure what to do next. Am I supposed to enter a locale? [20:13:32] odder: did you also translate those 1000 or so items for the Chinese calendar or whatever it was :P ? [20:15:23] kaldari: what are we talking of now, mistakes in translations or items not yet up for translation? [20:15:37] hmm, it seems editing and viewing is disabled for French, so I guess I have to wait until the review period is open again? [20:15:38] Nemo_bis: No, I thought we were only supposed to work on languages? [20:15:56] Nemo_bis: mistakes in translation [20:16:35] odder: all you want, I was just kidding [20:17:13] kaldari: at this point, http://st.unicode.org/cldr-apps/v#r_vetting_json/fr// , locate the mistake, press speech bubble [20:17:31] Nemo_bis: Ah, looks like I can view and edit any French except for "France French" :) [20:17:54] If missing, http://st.unicode.org/cldr-apps/survey?forum=fr manually [20:18:15] Hm. Maybe it's forced to be the same as main "fr" [20:18:39] Looks so; I haven't permissions on that either [20:19:34] kaldari: I had no idea you spoke French or I would have contacted you earlier in private btw :) [20:20:57] Well, it was the language I took in school, but I'm pretty rusty. [20:21:40] Verdy's suggestions make sense to me though and seem correct [20:21:58] «We're notably missing, among our languages' "top 10": activity for Spanish, German, Russian; any translator for French, Portuguese, Chinese; and in top 20, Turkish, Swedish, Arabic, Czech, Indonesian, Ukrainian, Persian.» http://lists.wikimedia.org/pipermail/mediawiki-i18n/2014-June/000889.html [20:40:19] I uploaded some screenshots https://translatewiki.net/wiki/Category:CLDR_images [21:04:45] legoktm, please clear my English Wikipedia watchlist :) [21:04:54] heh, sure [21:05:04] give me a few minutes [21:08:22] Magog_the_Ogre: done [21:08:31] thank you, legoktm [21:10:05] np [21:16:21] gj legoktm [21:16:54] ty [22:09:56] [[Tech]]; EncycloPetey; /* Cannot find server */ new section; https://meta.wikimedia.org/w/index.php?diff=9219953&oldid=9207770&rcid=5435892 [23:09:17] [[Tech]]; EncycloPetey; /* Cannot find server */; https://meta.wikimedia.org/w/index.php?diff=9220354&oldid=9219953&rcid=5435971