Re: [Wikitech-l] Inspecting page performance with mw.loader.inspect()

2013-10-11 Thread Jon Robson
This is interesting Ori - thanks for sharing this / setting it up. Sorry to pick on this example in particular but I was surprised to see so much code for the Universal Language selector (ULS) - especially as a single language speaker I don't ever use any of them - and I am thus being penalised.

[Wikitech-l] [IRC] hiring more wm-bot operators

2013-10-11 Thread Petr Bena
Hey all, Some of you may know our belowed robot, which is working as a slave in some of our dev channels. Unfortunately, freenode as well as wikimedia labs is a bit unstable, when it comes to network connectivity. So both freenode servers as well as internet connectivity of labs are occasionally

Re: [Wikitech-l] Inspecting page performance with mw.loader.inspect()

2013-10-11 Thread Ori Livneh
On Thu, Oct 10, 2013 at 11:50 PM, Jon Robson jdlrob...@gmail.com wrote: This is interesting Ori - thanks for sharing this / setting it up. Thanks for checking it out! Sorry to pick on this example in particular but I was surprised to see so much code for the Universal Language selector (ULS)

Re: [Wikitech-l] Inspecting page performance with mw.loader.inspect()

2013-10-11 Thread Ori Livneh
On Thu, Oct 10, 2013 at 10:03 PM, Eran Rosenthal eranro...@gmail.comwrote: Nice feature, thanks! 1. I tried to use it in ?debug=1 mode, and it seems to give 0 size to many modules. Yep -- already filed as https://bugzilla.wikimedia.org/show_bug.cgi?id=3. I'll fix it. 2. It would be

Re: [Wikitech-l] [IRC] hiring more wm-bot operators

2013-10-11 Thread Antoine Musso
Le 11/10/13 09:24, Petr Bena a écrit : wm-bots components are not configured as services, so restarting them is not as easy as doing sudo service wm-bot restart Seems you might want to make them upstart services. That will ease maintenance, and AFAIK, Ubuntu upstart would even make sure the

Re: [Wikitech-l] [IRC] hiring more wm-bot operators

2013-10-11 Thread Petr Bena
I agree, but it requires some work, which I am too lazy for, especially since manual restart is almost as hard as typing sudo service wm-bot restart, it's just like 2 different commands writing whole upstart script for bouncers and core is lot of work... Maybe when I have a lot of time I could

Re: [Wikitech-l] [IRC] hiring more wm-bot operators

2013-10-11 Thread Petr Bena
also the problem is not that service wouldn't be up. Service IS UP but it's not connected to freenode (nothing upstart could fix) it's problem in wm-bot source code. It actually can reconnect when connection die, but problem is that wm-bot is using bouncer, and this bouncer doesn't forward signal

Re: [Wikitech-l] [IRC] hiring more wm-bot operators

2013-10-11 Thread Marc A. Pelletier
On 10/11/2013 06:51 AM, Petr Bena wrote: It actually can reconnect when connection die, but problem is that wm-bot is using bouncer, and this bouncer doesn't forward signal when remote server disconnect. This needs to be fixed by some more coding and that again requires some other petan who

Re: [Wikitech-l] [IRC] hiring more wm-bot operators

2013-10-11 Thread Petr Bena
I don't understand, some better explanation would be nice. What is dickson server? Why it works better? The bouncers are running on same server as bot core, only reason for bouncers to exist is that I can upgrade the bot without having to reconnect it (I can restart the core process anytime and

Re: [Wikitech-l] [IRC] hiring more wm-bot operators

2013-10-11 Thread Marc A. Pelletier
On 10/11/2013 09:30 AM, Petr Bena wrote: What is dickson server? Why it works better? dickson.freenode.net as also known as dickson.wikimedia.org: the freenode node that is on our network. (Which isn't advertized or in the round robins yet because it is still in burn-in). It doesn't

Re: [Wikitech-l] [IRC] hiring more wm-bot operators

2013-10-11 Thread addshorewiki
That is rather nice to know! On 11 October 2013 15:57, Marc A. Pelletier m...@uberbox.org wrote: On 10/11/2013 09:30 AM, Petr Bena wrote: What is dickson server? Why it works better? dickson.freenode.net as also known as dickson.wikimedia.org: the freenode node that is on our network.

Re: [Wikitech-l] Inspecting page performance with mw.loader.inspect()

2013-10-11 Thread Jon Robson
As I understand, the 'targets' system was put in place to prevent mobile-inappropriate modules from being loaded by default. But this is not loaded by default; as you point out, there's an explicit mw.loader.using() call that specifies the module by name and causes to be retrieved on demand.

Re: [Wikitech-l] Inspecting page performance with mw.loader.inspect()

2013-10-11 Thread Jon Robson
Sorry to pick on this example in particular but I was surprised to see so much code for the Universal Language selector (ULS) - especially as a single language speaker I don't ever use any of them - and I am thus being penalised. אנחנו במיעוט הקטן בקרב האנושות של דוברי שפות אחרות

[Wikitech-l] Is WikiPage-doEdit dangerous in a parser tag callback?

2013-10-11 Thread Daniel Barrett
Is it dangerous to call WikiPage-doEdit inside a parser tag callback? I'm writing a parser tag extension whatever, whose callback function is: public static function myCallback($input, $argv, $parser) { $t = Title::newFromText('anytitle'); // any article title at all $p =

[Wikitech-l] Fwd: Participation in an Aaron Swartz Hackathon event

2013-10-11 Thread Quim Gil
There is a plan for a worldwide round of Aaron Hackathons, on the upcoming Nov 8-10 weekend. http://aaronswartzhackathon.org/ Coordination: https://www.noisebridge.net/wiki/Worldwide_Aaron_Swartz_Memorial_Hackathon_Series We have been invited to run a hackathon. Can we organize it? We would

[Wikitech-l] include google api with ResourceLoader

2013-10-11 Thread Yury Katkov
Hey guys! Google has its own loader called jsapi which typically is included as following: script type=text/javascript src=http://www.google.com/jsapi;/script How can I include it using $wgResourceModules to use in my extension? - Yury Katkov, WikiVote

Re: [Wikitech-l] Is WikiPage-doEdit dangerous in a parser tag callback?

2013-10-11 Thread Aaron Schulz
The doEdit() call needs to parse and reuses $wgParser, which is already in use so it probably breaks the state of it. Maybe you could use a DeferredUpdate to actually to the edits, or do them via an api.php request, or stash $wgParser, replace it with a new one before doing the edit and then swap

Re: [Wikitech-l] Fwd: Participation in an Aaron Swartz Hackathon event

2013-10-11 Thread Aaron Halfaker
Coincidentally, the us WMF Researchers have been working with some academics and community members to organize a global research hackathon on Nov. 9th. See: https://meta.wikimedia.org/wiki/Research:Labs2/Hackathons/November_9th,_2013 And: https://meta.wikimedia.org/wiki/Research:L2 -Aaron On

Re: [Wikitech-l] Is WikiPage-doEdit dangerous in a parser tag callback?

2013-10-11 Thread Brian Wolff
On 2013-10-11 1:24 PM, Aaron Schulz aschulz4...@gmail.com wrote: The doEdit() call needs to parse and reuses $wgParser, which is already in use so it probably breaks the state of it. Maybe you could use a DeferredUpdate to actually to the edits, or do them via an api.php request, or stash

Re: [Wikitech-l] Is WikiPage-doEdit dangerous in a parser tag callback?

2013-10-11 Thread Daniel Barrett
Thanks for your suggestion! I wound up deferring the edits by adding them to the MediaWiki job queue. DanB ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Google Code-in: are you in?

2013-10-11 Thread Andre Klapper
On Thu, 2013-10-10 at 11:11 -0700, Quim Gil wrote: I'm pretty sure that there is a task that most of us could mentor. It doesn't need to be related with the MediaWiki codebase. Come on, think harder! ;) I organized GNOME's participation in Google Code-In (and its predecessor GHOP) three

Re: [Wikitech-l] include google api with ResourceLoader

2013-10-11 Thread Yury Katkov
Well, speaking more broadly, how can I include any remote javascript with ResourceLoader? - Yury Katkov, WikiVote On Fri, Oct 11, 2013 at 8:21 PM, Yury Katkov katkov.ju...@gmail.com wrote: Hey guys! Google has its own loader called jsapi which typically is included as following:

Re: [Wikitech-l] Fwd: Participation in an Aaron Swartz Hackathon event

2013-10-11 Thread Anthony
Which websites are you planning on hacking into? On Fri, Oct 11, 2013 at 12:17 PM, Quim Gil q...@wikimedia.org wrote: There is a plan for a worldwide round of Aaron Hackathons, on the upcoming Nov 8-10 weekend. http://aaronswartzhackathon.**org/ http://aaronswartzhackathon.org/

Re: [Wikitech-l] include google api with ResourceLoader

2013-10-11 Thread Tyler Romeo
On Fri, Oct 11, 2013 at 1:32 PM, Yury Katkov katkov.ju...@gmail.com wrote: Well, speaking more broadly, how can I include any remote javascript with ResourceLoader? Somebody can correct me if this is wrong, but I don't think ResourceLoader supports that, primarily because it's outside the

Re: [Wikitech-l] Google Code-in: are you in?

2013-10-11 Thread Abel Rodríguez Vera
We should get in! 2013/10/11 Andre Klapper aklap...@wikimedia.org On Thu, 2013-10-10 at 11:11 -0700, Quim Gil wrote: I'm pretty sure that there is a task that most of us could mentor. It doesn't need to be related with the MediaWiki codebase. Come on, think harder! ;) I organized

Re: [Wikitech-l] include google api with ResourceLoader

2013-10-11 Thread Jeroen De Dauw
Hey, I don't know what the current state of affairs is, but when I looked into this for the Maps extension shortly after RL was introduced, it was not possible. Cheers -- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. ~=[,,_,,]:3 --

Re: [Wikitech-l] Inspecting page performance with mw.loader.inspect()

2013-10-11 Thread Dan Andreescu
Sorry to pick on this example in particular but I was surprised to see so much code for the Universal Language selector (ULS) - especially as a single language speaker I don't ever use any of them - and I am thus being penalised. אנחנו במיעוט הקטן בקרב האנושות של דוברי שפות

Re: [Wikitech-l] Fwd: Officially supported MediaWiki hosting service?

2013-10-11 Thread Daniel Friesen
On Tue, 1 Oct 2013 11:11:16 -0700, Brion Vibber wrote: Question for the group: Would an officially supported general-purpose MediaWiki hosting service be useful to people who would like to run wikis, but don't have the time, expertise, or resources to maintain their own installation? If so,

Re: [Wikitech-l] Fwd: Participation in an Aaron Swartz Hackathon event

2013-10-11 Thread Petr Bena
That's not a funny joke... On Fri, Oct 11, 2013 at 7:38 PM, Anthony o...@theendput.com wrote: Which websites are you planning on hacking into? On Fri, Oct 11, 2013 at 12:17 PM, Quim Gil q...@wikimedia.org wrote: There is a plan for a worldwide round of Aaron Hackathons, on the upcoming Nov

Re: [Wikitech-l] Fwd: Participation in an Aaron Swartz Hackathon event

2013-10-11 Thread Anthony
It wasn't really a joke. On Oct 11, 2013 5:34 PM, Petr Bena benap...@gmail.com wrote: That's not a funny joke... On Fri, Oct 11, 2013 at 7:38 PM, Anthony o...@theendput.com wrote: Which websites are you planning on hacking into? On Fri, Oct 11, 2013 at 12:17 PM, Quim Gil

Re: [Wikitech-l] Fwd: Participation in an Aaron Swartz Hackathon event

2013-10-11 Thread Daniel Friesen
Then you'd better make it clear whether you are: A) Completely ignorant of what the definition of a hackathon is. B) Trolling. ~Daniel Friesen (Dantman, Nadir-Seen-Fire) [http://danielfriesen.name/] On 2013-10-11 2:37 PM, Anthony wrote: It wasn't really a joke. On Oct 11, 2013 5:34 PM, Petr

Re: [Wikitech-l] Google Code-in: are you in?

2013-10-11 Thread Quim Gil
On 10/11/2013 10:21 AM, Andre Klapper wrote: These are the topics that I consider important to discuss before deciding. Thank you very much for this analysis! Also thank you MatmaRex for your first-hand experience as a Code-in participant. PS: Lydia of WMDE organized GCI for KDE in 2012

Re: [Wikitech-l] [IRC] hiring more wm-bot operators

2013-10-11 Thread Marcin Cieslak
Petr Bena benap...@gmail.com wrote: Hey all, Some of you may know our belowed robot, which is working as a slave in some of our dev channels. Unfortunately, freenode as well as wikimedia labs is a bit unstable, when it comes to network connectivity. So both freenode servers as well as

Re: [Wikitech-l] Inline bug report history in Bugzilla

2013-10-11 Thread Quim Gil
On 10/11/2013 03:37 PM, Andre Klapper wrote: I failed to make up my mind if it's helpful for the *majority* of Bugzilla users (reporters, testers, triagers, developers, managers) or if it might clutter the Comments view too much for some people, so I kept it as an opt-in setting. I'm happy to

Re: [Wikitech-l] Inspecting page performance with mw.loader.inspect()

2013-10-11 Thread Jon Robson
Yup and it's as simple as ... $('little language toothed wheel thing').on('click', function() { mw.loader.using( 'modulename', function() { // do thing with modulename } ); } ); On Fri, Oct 11, 2013 at 1:28 PM, Dan Andreescu dandree...@wikimedia.org wrote: Sorry to pick on this example in

Re: [Wikitech-l] Inline bug report history in Bugzilla

2013-10-11 Thread Isarra Yos
On 11/10/13 23:37, Andre Klapper wrote: Hi, sorry for my late answer. On Mon, 2013-09-30 at 08:47 -0700, James Forrester wrote: This is brilliant, and makes Bugzilla hugely more usable; could it be switched on for all users by default, or would that impair the server operation too much? I

Re: [Wikitech-l] Inline bug report history in Bugzilla

2013-10-11 Thread Yuvi Panda
On Sat, Oct 12, 2013 at 5:35 AM, Isarra Yos zhoris...@gmail.com wrote: Definitely something that should be visible to everyone; without it, users are completely dependent on people saying what they've done in their comments to understand what's going on, and people often don't do that. So

Re: [Wikitech-l] Inspecting page performance with mw.loader.inspect()

2013-10-11 Thread Ori Livneh
On Fri, Oct 11, 2013 at 1:28 PM, Dan Andreescu dandree...@wikimedia.org wrote: I know close to nothing about this, but I'm kind of interested in finding out. Would it be possible to $('little language toothed wheel thing').on('click', load something like jquery.uls.data)? That would

Re: [Wikitech-l] Inspecting page performance with mw.loader.inspect()

2013-10-11 Thread Santhosh Thottingal
On Saturday, October 12, 2013, Dan Andreescu wrote: I know close to nothing about this, but I'm kind of interested in finding out. Would it be possible to $('little language toothed wheel thing').on('click', load something like jquery.uls.data)? That would already be 37.13KB. For the