[00:05:26] RoanKattouw: https://gerrit.wikimedia.org/r/#/c/113339/ [00:43:04] >>> s = ''; !s [00:43:04] RoanKattouw: (boolean) true [00:43:09] mooeypoo: ---^^ [00:43:27] >>> !'' [00:43:28] James_F: (boolean) true [00:43:53] >>> !'' || '' & ''===!'' [00:43:53] James_F: (boolean) true [00:44:13] RoanKattouw: New Brainfuck-like syntax for you there. [00:44:38] woot, thanks RoanKattouw [00:45:41] >>> '' & '' [00:45:41] RoanKattouw: (number) 0 [00:45:48] >>> s=0; !s [00:45:48] mooeypoo: (boolean) true [00:45:51] hm. [00:45:55] >>> '' & '' === !'' [00:45:55] RoanKattouw: (number) 0 [00:46:01] >>> s=null; !s [00:46:01] mooeypoo: (boolean) true [00:46:06] >>> 5 & 4 [00:46:06] RoanKattouw: (number) 4 [00:46:07] >>> s=''; !s [00:46:08] mooeypoo: (boolean) true [00:46:09] >>> 5 & 4 === 3 [00:46:09] RoanKattouw: (number) 0 [00:46:37] ok, so '', null and 0 are all true for !s values. hm. [00:47:09] >>> (boolean)'' [00:47:10] RoanKattouw: SyntaxError: Unexpected string [00:47:12] >>> (boolean)null [00:47:12] RoanKattouw: SyntaxError: Unexpected token null [00:47:14] Urgh [00:47:18] >>> (bool)null [00:47:18] RoanKattouw: SyntaxError: Unexpected token null [00:47:33] >>> s=undefined; !s [00:47:34] mooeypoo: (boolean) true [00:52:34] (03PS1) 10Jforrester: Disable VisualEditor on Page Translation output pages [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/119427 [01:04:33] James_F: TrevorParscal is here now BTW [01:04:45] Or was 20 mins ago at lesat [01:10:50] RoanKattouw: Office hours, sorry. [01:14:09] mooeypoo: https://gerrit.wikimedia.org/r/#/c/73965/ [01:22:14] mooeypoo: https://www.mediawiki.org/wiki/User:Catrope/Ridiculous_VE_commits [01:44:24] (03PS1) 10Catrope: [WIP] Followup 1b9c077: debounce toolbar's onSurfaceViewKeyup [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/119432 [01:45:21] RoanKattouw: Do you have performance numbers on that change? [01:45:31] Not yet [01:45:37] I'm also not done with it [01:45:40] * James_F nods. [01:45:48] I'll measure it when I'm done [01:46:03] So, never? ;-) [01:46:10] Performance is a process, not a goal. [01:48:06] RoanKattouw: David Gerard suggests doing performance metrics off [[w:en:OpenOffice.org]]. [01:48:19] I'm hoping that commit and https://bugzilla.wikimedia.org/show_bug.cgi?id=62812 will take care of most of the typing issues [01:48:22] James_F: That would be good [01:48:35] * James_F nods. [01:49:41] I've been using Kuala Lumpur lately but that's only because that's what Kenan showed me [01:49:54] But I'd be very happy to use a page that's been identified by a community member as notorious [01:50:18] RoanKattouw: If we could do a July 2013 vs. now metric that'd be awesome, BTW. [01:51:52] That's reliant on me importing a realistic version of a big page into a local wiki [01:52:01] But if that could be done then this would be easy [01:52:22] RoanKattouw: Or running off prod with switched-out JS? [01:56:35] That is how I usually test perf fixes, but only for trivial changes [01:56:44] It's harder to do for large-scale rollbacks, although it could be attempted [01:56:50] * James_F nods. [01:57:10] RoanKattouw: MatmaRex was using a local proxy that transparently substituted bits calls, IIRC. [01:57:36] I can also point my Parsoid URL to prod again, and pull some oldid shenanigans [01:57:48] RoanKattouw: True. [01:58:09] RoanKattouw: Numbers about bandwidth, speed, memory and CPU would all be good, of course. [02:32:04] according to the "MediaWiki" download tool... I'm supposed to consult the documentation about "registering" the plugin, I don't see any instructions inside the folder, though, so I tried adding this: `require_once "$IP/extensions/VisualEditor/VisualEditor.php";` and it didn't seem to work. What did I miss? [02:33:05] (03PS1) 10Mooeypoo: [WIP^2] Refactor Scalable and MediaSizeWidget [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/119435 [02:33:42] (03CR) 10jenkins-bot: [V: 04-1] [WIP^2] Refactor Scalable and MediaSizeWidget [VisualEditor/VisualEditor] - 10https://gerrit.wikimedia.org/r/119435 (owner: 10Mooeypoo) [02:34:21] isaaclw: See https://www.mediawiki.org/wiki/Extension:VisualEditor#Basic_setup_instructions for installation instructions [02:42:24] (03PS6) 10Catrope: Display links to nonexistent pages as red [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/118045 [02:42:26] (03PS1) 10Catrope: Add lookupTitle attribute [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/119436 [02:44:02] (03CR) 10jenkins-bot: [V: 04-1] Display links to nonexistent pages as red [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/118045 (owner: 10Catrope) [02:44:09] (03CR) 10jenkins-bot: [V: 04-1] Add lookupTitle attribute [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/119436 (owner: 10Catrope) [02:45:09] (03PS7) 10Catrope: Display links to nonexistent pages as red [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/118045 [02:46:12] (03PS8) 10Catrope: Display links to nonexistent pages as red [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/118045 [02:46:14] (03PS2) 10Catrope: Add lookupTitle attribute [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/119436 [02:47:44] (03CR) 10jenkins-bot: [V: 04-1] Display links to nonexistent pages as red [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/118045 (owner: 10Catrope) [02:47:48] (03CR) 10jenkins-bot: [V: 04-1] Add lookupTitle attribute [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/119436 (owner: 10Catrope) [02:53:34] grrrit-wm's IRC real-name is the best [02:53:40] I just noticed it [02:53:57] haha [02:54:10] The name of the tool project (and the original name of the bot) is lolrrit-wm [02:54:23] ah, still funny :P [02:54:28] my bot is boring [02:54:41] you can probably see it by doing /whois MeikoBot [02:55:02] all it does is read recent changes from every wiki at http://www.brickimedia.org [02:55:09] (03PS9) 10Catrope: Display links to nonexistent pages as red [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/118045 [02:55:09] and is really glitchy [02:55:41] some mornings when I wake up the bot will just be broken and I can't get it to disconnect from freenode sometimes. It is sooo annoying [04:25:02] Thanks RoanKattouw. I think that took care of it for me. [05:37:13] what previous knowledge is required to work on the visual editor translate extension? [06:52:37] (03CR) 10Krinkle: [C: 04-1] Display links to nonexistent pages as red (038 comments) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/118045 (owner: 10Catrope) [06:55:07] (03CR) 10Krinkle: "Various things to be optimised." (033 comments) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/70918 (owner: 10Robmoen) [10:35:22] (03CR) 10Nikerabbit: Disable VisualEditor on Page Translation output pages (032 comments) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/119427 (owner: 10Jforrester) [10:39:13] (03Restored) 10Hashar: Jenkins job validation (DO NOT SUBMIT) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/36739 (owner: 10Hashar) [10:39:18] (03PS8) 10Hashar: Jenkins job validation (DO NOT SUBMIT) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/36739 [10:41:06] (03CR) 10jenkins-bot: [V: 04-1] Jenkins job validation (DO NOT SUBMIT) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/36739 (owner: 10Hashar) [12:18:37] (03Abandoned) 10Hashar: Jenkins job validation (DO NOT SUBMIT) [extensions/VisualEditor] - 10https://gerrit.wikimedia.org/r/36739 (owner: 10Hashar) [12:27:04] (03PS1) 10Esanders: Use this.constructor.super instead of ClassName.super [oojs/core] - 10https://gerrit.wikimedia.org/r/119466 [12:28:47] (03CR) 10jenkins-bot: [V: 04-1] Use this.constructor.super instead of ClassName.super [oojs/core] - 10https://gerrit.wikimedia.org/r/119466 (owner: 10Esanders) [12:38:35] (03Abandoned) 10Esanders: Use this.constructor.super instead of ClassName.super [oojs/core] - 10https://gerrit.wikimedia.org/r/119466 (owner: 10Esanders) [13:08:56] (03PS1) 10Esanders: User super to call parent constructor [oojs/ui] - 10https://gerrit.wikimedia.org/r/119470 [13:08:58] (03PS1) 10Esanders: Use super to call parent methods [oojs/ui] - 10https://gerrit.wikimedia.org/r/119471 [13:10:10] (03CR) 10jenkins-bot: [V: 04-1] User super to call parent constructor [oojs/ui] - 10https://gerrit.wikimedia.org/r/119470 (owner: 10Esanders) [13:10:21] (03CR) 10jenkins-bot: [V: 04-1] Use super to call parent methods [oojs/ui] - 10https://gerrit.wikimedia.org/r/119471 (owner: 10Esanders) [13:12:40] Hi! I was working on replacing the $.proxy with ve.bind (https://bugzilla.wikimedia.org/show_bug.cgi?id=62762). The documentation of ve.bind = $.proxy; in ve.js shows that its a wrapper for function#bind. Actually, it is the function $.proxy getting wrapped by ve.bind right ? [13:16:56] (03PS1) 10Esanders: Increase width of toggle switch widget [oojs/ui] - 10https://gerrit.wikimedia.org/r/119472 [13:18:11] (03CR) 10jenkins-bot: [V: 04-1] Increase width of toggle switch widget [oojs/ui] - 10https://gerrit.wikimedia.org/r/119472 (owner: 10Esanders) [13:19:55] edsanders: Hi ! you around ? [13:20:18] Cab you help me with this bug https://bugzilla.wikimedia.org/show_bug.cgi?id=62762 ?\ [13:43:44] tonythomas, I can try, what's the problem? [13:44:53] edsanders: Hi.! As commented in BZ, the trick is to change ve.bind() to a wrapper that uses native .bind(). [13:45:27] wait a minute. The bug, is to replace the $.proxy with ve.bind (https://bugzilla.wikimedia.org/show_bug.cgi?id=62762). [13:48:04] we don't use $.proxy [13:48:14] we just have ve.bind = $.proxy [13:53:48] edsanders: but, that means $.proxy is wrapped by ve.bind right ? or am I taking the concept of wrapper wrong ? [14:06:30] tonythomas, there's no wrapping there, ve.bind and $.proxy are now identical object pointers [14:08:41] edsanders: ok , I got confused by https://git.wikimedia.org/blob/VisualEditor%2FVisualEditor.git/HEAD/modules%2Fve%2Fve.js#L111 [14:08:54] it says Wrapper for Function#bind. [15:34:08] (03PS1) 10Esanders: Add disabled styling to InlineMenuWidget [oojs/ui] - 10https://gerrit.wikimedia.org/r/119491 [15:36:28] (03PS2) 10Esanders: Add disabled styling to InlineMenuWidget [oojs/ui] - 10https://gerrit.wikimedia.org/r/119491 [15:39:06] (03PS1) 10Esanders: Promote zIndex of InlineMenuWidget options list [oojs/ui] - 10https://gerrit.wikimedia.org/r/119492 [16:03:31] (03CR) 10Esanders: "Do we need to be adding the dropdown to an overlay layer and positioning it like we do with TextInputMenuWidget?" [oojs/ui] - 10https://gerrit.wikimedia.org/r/119492 (owner: 10Esanders) [16:13:57] Heya. [16:26:00] James_F: Hi ! I talked with hoo on yesterdays bug on getting rid of $.proxy() [16:26:36] tonythomas: Oh? [16:30:58] James_F: yeah ! and he told me about adding something like ve.bind = function( func, c) { [16:30:58] func.bind.apply( c, arguments ); [16:30:58] } [16:31:51] (03PS1) 10Esanders: Fix documentation of toolFactory [oojs/ui] - 10https://gerrit.wikimedia.org/r/119497 [16:32:35] (03PS2) 10Esanders: Fix documentation of toolFactory [oojs/ui] - 10https://gerrit.wikimedia.org/r/119497 [16:32:58] James_F: that can come in replacement of ve.bind = $.proxy ? [16:51:29] tonythomas: I'm not an expert – Krinkle|detached or RoanKattouw_away should be able to help more, sorry. [16:51:47] James_F: Thats ok. I will try to get them [17:13:07] tonythomas: I've replied on the bug report for that [17:18:05] (03PS2) 10Krinkle: Use super to call parent constructor [oojs/ui] - 10https://gerrit.wikimedia.org/r/119470 (owner: 10Esanders) [17:19:02] (03PS2) 10Krinkle: Use super to call parent methods [oojs/ui] - 10https://gerrit.wikimedia.org/r/119471 (owner: 10Esanders) [17:19:05] Krinkle: so, it has to be like bind with a small wrapper to bind using bind ? [17:19:17] almost got me confused [17:19:34] but anyway, does something like ve.bind = function( func, c) { [17:19:38] func.bind.apply( c, arguments ); [17:19:46] } do it ? [17:21:25] tonythomas: like, but not that [17:21:54] In order to wrap func.bind( context, param... ) you have to call the 'bind' function in the contet of 'func', not 'context' [17:22:23] Lets' say function helloWorld() { expect(this).is(bar); } [17:23:00] helloWorld.bind( bar );