[Wikitech-l] Code freeze and temporary reverts for Gerrit migration

2012-03-20 Thread Roan Kattouw
As you all probably know, the Gerrit migration is going to happen in a little over 24 hours. For the SVN repositories being migrated (core and all WMF-deployed extensions), I am doing three special things today. First, I am identifying all unreviewed revisions and reviewing those that 1) I am

Re: [Wikitech-l] Code freeze and temporary reverts for Gerrit migration

2012-03-20 Thread Roan Kattouw
On Tue, Mar 20, 2012 at 4:08 PM, Jeroen De Dauw jeroended...@gmail.com wrote: Hey, WMF-deployed extensions Does this include extension worked on by WMF people and to be deployed on WMF wikis? In particular, should I quit committing to Education Program or can I happily carry on? This

Re: [Wikitech-l] StripState question / advice?

2012-03-13 Thread Roan Kattouw
On Tue, Mar 13, 2012 at 1:47 PM, Daniel Barrett d...@vistaprint.com wrote: Any advice on how to structure this? It sounds to me like stripState should have a way to change what a given strip marker's value is after you've already inserted it. That in combination with a hook that runs at the right

Re: [Wikitech-l] We need to use git-review - need help packaging for Win/Mac (Gerrit)

2012-03-10 Thread Roan Kattouw
On Sat, Mar 10, 2012 at 7:20 PM, Sumana Harihareswara suma...@wikimedia.org wrote: I believe the lack of arbitrary labels/tags on changes is a big workflow problem.[0]  The current workaround is to use topic branches (Gerrit calls them topics; Git calls them branches).  To do that, you have to

Re: [Wikitech-l] Weird API behavior when getting img thumb url

2012-03-08 Thread Roan Kattouw
On Thu, Mar 8, 2012 at 12:39 PM, Jeroen De Dauw jeroended...@gmail.com wrote: Hey, I'm seeing some weird behavior and can't figure out what's going on. I have some code making a request to the API to obtain the thumb url of an image: http://dpaste.org/nuOfX/ This code is used here, and

Re: [Wikitech-l] Weird API behavior when getting img thumb url

2012-03-08 Thread Roan Kattouw
On Thu, Mar 8, 2012 at 12:58 PM, Chad innocentkil...@gmail.com wrote: On Thu, Mar 8, 2012 at 3:51 PM, Roan Kattouw roan.katt...@gmail.com wrote: I don't know why this happens, but you really don't need internal API requests to get thumbnail URLs. This is much simpler: $file = wfFindFile

Re: [Wikitech-l] Git, Gerrit and the coming migration

2012-03-07 Thread Roan Kattouw
On Wed, Mar 7, 2012 at 6:01 AM, Chad innocentkil...@gmail.com wrote: git-review helps lower some of these barriers since it automatically rebases against origin/* for you so you get a clean merge on push. Cherry picking's not that hard, and gerrit actually gives you the command from the UI to

Re: [Wikitech-l] Bugzilla Weekly Report

2012-03-06 Thread Roan Kattouw
On Mon, Mar 5, 2012 at 9:24 PM, K. Peachey p858sn...@gmail.com wrote: On Tue, Mar 6, 2012 at 10:19 AM, Roan Kattouw roan.katt...@gmail.com wrote: Well it's not *still* running, it's been broken plenty of times in the meantime :) Wasn't that just the email address becoming unsub'ed from

Re: [Wikitech-l] Breaking change in 1.18 regarding namespaces and redirects?

2012-03-06 Thread Roan Kattouw
On Tue, Mar 6, 2012 at 12:59 PM, Daniel Barrett d...@vistaprint.com wrote: Since moving to MediaWiki 1.18, several of our extensions that use namespaces have broken in the following way. Any advice/explanation would be very much appreciated! (I don't see anything in the release notes.) Some

Re: [Wikitech-l] Git, Gerrit and the coming migration

2012-03-06 Thread Roan Kattouw
On Tue, Mar 6, 2012 at 3:42 PM, K. Peachey p858sn...@gmail.com wrote: One of the major sticking points (that from my understanding is what the WMF people are hateing on) is the diff views in comparison of CR to Gerrit, For example we used to have them all display on one page where as with

Re: [Wikitech-l] Bugzilla Weekly Report

2012-03-05 Thread Roan Kattouw
On Mon, Mar 5, 2012 at 1:09 PM, Tomasz Finc tf...@wikimedia.org wrote: Given that i wrote it 4 years ago and haven't touched it since. I'm amazed that its still running ;) Well it's not *still* running, it's been broken plenty of times in the meantime :) Roan

Re: [Wikitech-l] Git + Gerrit is a toughy

2012-02-25 Thread Roan Kattouw
On Sat, Feb 25, 2012 at 1:20 AM, Antoine Musso hashar+...@free.fr wrote: Le 25/02/12 00:48, Platonides a écrit : There's no way to treat a set of commits as a bundle? Not really. Each commit is considered by Gerrit as a new change. If you have a bundle of commits, you either:  1) squash

Re: [Wikitech-l] Git + Gerrit is a toughy

2012-02-24 Thread Roan Kattouw
On Thu, Feb 23, 2012 at 1:43 PM, Antoine Musso hashar+...@free.fr wrote: 2) newbie spamming gerrit This happen when you first play with Gerrit. In subversion world, whenever you submit a new patch (svn commit) it is going to be written down in the central repository. You will not be able to

Re: [Wikitech-l] Caching of pages with time sensitive magic words

2012-02-23 Thread Roan Kattouw
On Thu, Feb 23, 2012 at 1:38 PM, Platonides platoni...@gmail.com wrote: The parser cache expires much earlier in that case. Although we don't reduce it to lower than one hour due to the presence of such words.

Re: [Wikitech-l] Question: Hook:LinkEnd and Title::getNamespace method for internal page ( such as User or User_talk page ) where the target page does not exist

2012-02-22 Thread Roan Kattouw
On Wed, Feb 22, 2012 at 12:28 AM, Thomas Gries m...@tgries.de wrote: Basically: a link on a page like [[Benutzer:Alice]] is not necessarily the same as [[User:Alice]] (even when the latter exists). It depends on the current setting of $wgLanguageCode = en ; $wgLanguageCode = de ; (during

Re: [Wikitech-l] GSoC 2012 Ideas/Projects

2012-02-21 Thread Roan Kattouw
On Mon, Feb 13, 2012 at 5:28 PM, Daniel Friesen li...@nadir-seen-fire.com wrote: The idea that login is secure because it's on a separate page than the rest of the site is actually an old mistake. If a script is included ANYWHERE on the site on the same domain then it's possible to inject in

Re: [Wikitech-l] Question: Hook:LinkEnd and Title::getNamespace method for internal page ( such as User or User_talk page ) where the target page does not exist

2012-02-21 Thread Roan Kattouw
On Sun, Feb 19, 2012 at 4:05 AM, Thomas Gries m...@tgries.de wrote: I suppose that the getNamespace fails in this case, Perhaps a patch in Linker.php is required to set Namespace already if the page is non-existent. I don't think so. Even non-existent Title object must have their namespace

Re: [Wikitech-l] Bugzilla Weekly Report

2012-02-21 Thread Roan Kattouw
On Sun, Feb 19, 2012 at 7:00 PM, reporter repor...@kaulen.wikimedia.org wrote: MediaWiki Bugzilla Report for February 13, 2012 - February 20, 2012 Status changes this week Bugs NEW               :  304 Bugs ASSIGNED          :  67 Bugs REOPENED          :  36 Bugs RESOLVED          :  428

Re: [Wikitech-l] Git + Gerrit is a toughy

2012-02-18 Thread Roan Kattouw
On Sat, Feb 18, 2012 at 2:47 AM, Andrew Otto o...@wikimedia.org wrote: 2. Do I need to rebase every time I push for review? I don't quite understand what is going on here.  I've installed git-review and am using this to push to git.  It does a rebase by default.  I'm not sure if I should be

Re: [Wikitech-l] Welcome, Jon Robson - Software Developer (Mobile)

2012-02-14 Thread Roan Kattouw
On Mon, Feb 13, 2012 at 8:46 PM, Tomasz Finc tf...@wikimedia.org wrote: Greetings all, I'm pleased to announce that the mobile team has a new team member. Jon Robson joins Yuvi, Patrick, Arthur, Phil, and Andre as a core member of the mobile team. In this role he'll provide the team with the

Re: [Wikitech-l] Git migration - updated schedule workflow descriptions

2012-02-12 Thread Roan Kattouw
On Sat, Feb 11, 2012 at 5:11 AM, Arthur Richards aricha...@wikimedia.org wrote: The Wikimedia repository is used by others besides just fundraising, although the fundraising team is probably its heaviest user. I know that some folks from Wikimedia Sweden are using it, as is Ryan Faulkner for

Re: [Wikitech-l] Git migration - updated schedule workflow descriptions

2012-02-12 Thread Roan Kattouw
On Sun, Feb 12, 2012 at 7:40 AM, Rob Lanphier ro...@wikimedia.org wrote: Which reminds me, does LocalisationUpdate support git? Not yet: https://bugzilla.wikimedia.org/show_bug.cgi?id=34137 That bug is not about LocalisationUpdate. LU is not a TranslateWiki tool, it's a WMF-side extension for

Re: [Wikitech-l] Git migration - updated schedule workflow descriptions

2012-02-12 Thread Roan Kattouw
On Sun, Feb 12, 2012 at 11:36 PM, Roan Kattouw roan.katt...@gmail.com wrote: LocalisationUpdate has SVN support built-in, but WMF stopped using that a long time ago due to performance issues. Instead, the wrapper script that we use to run the LU update on the cluster updates a local checkout

Re: [Mediawiki-api] Proposed removal of some API output formats

2012-02-08 Thread Roan Kattouw
On Wed, Feb 8, 2012 at 8:51 PM, C Stafford c.staff...@gmail.com wrote: I personally prefer using the php format over the JSON, due to multiple encoding issues I've hit in the past and not having to deal with the small intricacies (and potential problems) of the JSON encoding/decoding on each

Re: [Wikitech-l] How to avoid a post-branch code slush (Re: Branch 1.19 on Tuesday, February 6?)

2012-02-08 Thread Roan Kattouw
On Wed, Feb 8, 2012 at 9:17 PM, Rob Lanphier ro...@wikimedia.org wrote: We're migrating to Git very soon after this release.  It would really suck to have a huge pile of unreviewed commits going into trunk.  So, I'm going to suggest a Git migration strategy that will avoid having a monsterous

Re: [Wikitech-l] ResourceLoader and IE's stylesheet limits

2012-02-08 Thread Roan Kattouw
On Thu, Oct 13, 2011 at 9:55 PM, Roan Kattouw roan.katt...@gmail.com wrote: Our MediaWiki 1.17.0 site recently installed a bunch of extensions that use ResourceLoader, such as Extension:WikiEditor. To our surprise, some of our site's unrelated CSS styles stopped working. This was happening

Re: [Wikitech-l] Proposed removal of some API output formats

2012-02-08 Thread Roan Kattouw
On Thu, Feb 9, 2012 at 12:01 AM, bawolff bawolff...@gmail.com wrote: If json becomes the new recommended format, does that mean that not passing a format parameter would result in jsonfm instead of xmlfm? (Probably not since the jsonfm pretty printer isn't all that pretty at the moment). One

Re: [Wikitech-l] Proposed removal of some API output formats

2012-02-08 Thread Roan Kattouw
On Wed, Feb 8, 2012 at 11:42 PM, Tim Starling tstarl...@wikimedia.org wrote: What are the other problems? I'm not sure what Max is referring to, other than the fact that I hate XML (or at least using XML for this API) and generally don't like the fact that we have to support so many formats. As

Re: [Mediawiki-api] API: Fileupload with base64 encoded data

2012-02-01 Thread Roan Kattouw
On Wed, Feb 1, 2012 at 5:22 PM, Robert Vogel vo...@hallowelt.biz wrote: Hi! ** ** Does anybody know if it is possible to upload a base64 encoded file via the API? I’ve already examined SVGEdit extension by Brion Vibber ( http://www.mediawiki.org/wiki/Extension:SVGEdit) to get behind

Re: [Wikitech-l] Recommended way to register resources for skins

2012-02-01 Thread Roan Kattouw
On Wed, Feb 1, 2012 at 5:51 AM, Freek Dijkstra softw...@macfreek.nl wrote: Hi all, I've created a copy of the Vector skin. What is the recommended way to register resources (for the resource loader) for a custom skin? Vector registers the resources in resources/Resources.php This is not

Re: [Wikitech-l] Production configs (to ops)

2012-02-01 Thread Roan Kattouw
On Wed, Feb 1, 2012 at 3:59 PM, Petr Bena benap...@gmail.com wrote: Hi folks, I requested a configuration file for squid weeks ago, but it seems to be a bit complicated to remove confidential data from it. I suppose we should split it to multiple files, having some public and private, and

Re: [Wikitech-l] Production configs (to ops)

2012-02-01 Thread Roan Kattouw
On Wed, Feb 1, 2012 at 6:49 PM, Ryan Lane rlan...@gmail.com wrote: I still haven't gotten a chance to get to it. There's more involved than simply sanitizing the files. There's also some puppet work involved in this, and it isn't really simple to do right. I'll try to do it on the plane ride

Re: [Wikitech-l] JavaScript profiling

2012-01-31 Thread Roan Kattouw
On Tue, Jan 31, 2012 at 2:18 PM, Markus Glaser gla...@hallowelt.biz wrote: Hi all, I am trying to profile the JavaScript bit of an extension I maintain. Is there any recommended method similar to wfProfileIn/Out in MediaWiki? How do you do profiling on ResourceLoader? There is no

Re: [Wikitech-l] Arbitrary data structures via API

2012-01-31 Thread Roan Kattouw
On Tue, Jan 31, 2012 at 5:01 PM, Neil Kandalgaonkar ne...@wikimedia.org wrote: Is it supposed to be possible to transmit arbitrary nested data structures in the API? Or do the format serializers make some assumptions that limit what we can do? I added a change yesterday which returns a

Re: [Wikitech-l] JavaScript profiling

2012-01-31 Thread Roan Kattouw
On Tue, Jan 31, 2012 at 6:09 PM, Daniel Friesen li...@nadir-seen-fire.com wrote: On Tue, 31 Jan 2012 08:36:02 -0800, Tei oscar.vi...@gmail.com wrote: *Cough* some random article about making js that is not abusing the slower parts of the language http://www.bcherry.net/talks/js-better-faster  

Re: [Wikitech-l] Arbitrary data structures via API

2012-01-31 Thread Roan Kattouw
On Tue, Jan 31, 2012 at 6:10 PM, Neil Kandalgaonkar ne...@wikimedia.org wrote: On 1/31/12 8:06 AM, Roan Kattouw wrote:  I hate having to continue support for XML because it limits the keys you can use in all sorts of ways. Right. I'm assuming here that the XML serializer makes some

Re: [Wikitech-l] Some questions about #switch

2012-01-30 Thread Roan Kattouw
On Mon, Jan 30, 2012 at 3:11 PM, Alex Brollo alex.bro...@gmail.com wrote: I'm using more and more #switch into templates, it's surprising how many issues it can solve, and how much large arrays it can manage.  My questions are: 1. Is there a reasonable upper limit for the number of #switch

Re: [Wikitech-l] Some questions about #switch

2012-01-30 Thread Roan Kattouw
On Mon, Jan 30, 2012 at 8:13 PM, Helder helder.w...@gmail.com wrote: What about ptwikibooks' usage of https://pt.wikibooks.org/wiki/Template:Lista_de_capítulos/Posterior?action=edit It looks like that finds the current page name in a list of pages, then returns the next one in the list. I can

Re: [Wikitech-l] Magic word for user language?

2012-01-26 Thread Roan Kattouw
On Thu, Jan 26, 2012 at 10:29 PM, Max Semenik maxsem.w...@gmail.com wrote: Does anyone mind if I create a magic word for current user's language? It will not fragment parser cache further than it is already because we already support {{int:}}. Note that this functionality is already emulatable

Re: [Wikitech-l] Private methods in API module(s)

2012-01-26 Thread Roan Kattouw
On Thu, Jan 26, 2012 at 11:00 PM, Daniel Renfro dren...@vistaprint.com wrote: I am working on an extension and would like to add some functionality to the 'usercontribs' api module (api/ApiQueryUserContributions.) I cannot subclass the ApiQueryUserContributions class and get the functionality

Re: [Mediawiki-api] API usage etiquette

2012-01-22 Thread Roan Kattouw
On Sun, Jan 22, 2012 at 10:51 PM, Fred Zimmerman w...@nimblebooks.com wrote: Is there any limit on frequency of requests to API? There is no hard and fast limit on read requests, but we ask that you be considerate and try not to take the site down. We also reserve the right to unceremoniously

Re: [Wikitech-l] Escaping messages

2012-01-22 Thread Roan Kattouw
On Mon, Jan 16, 2012 at 7:22 PM, Jeroen De Dauw jeroended...@gmail.com wrote: Hey, Do we trust that messages do not have evil (XSS) stuff in them? The reason why I ask is that I was just using .msg from mediawiki.jqueryMsg, and realized that things in the message do not get escaped. Since the

Re: [Wikitech-l] Congratulations and thanks

2012-01-22 Thread Roan Kattouw
On Thu, Jan 19, 2012 at 4:46 AM, William Allen Simpson william.allen.simp...@gmail.com wrote: I'm a Firefox HTTPS-Everywhere and NoScript kinda guy, and had no problems switching back and forth by turning scripts on and off. Both wikipedia and wikimedia js had to be turned on, though  Why?

Re: [Wikitech-l] SOPA banner implementation

2012-01-16 Thread Roan Kattouw
On Tue, Jan 17, 2012 at 7:20 AM, Dan Collins en.wp.s...@gmail.com wrote: So, is anything interesting going to happen when Google suddenly realizes that all of our pages are nothing but a SOPA banner? When the Italians did their blackout, Google asked us to block them (!) from bits.wm.o (our

Re: [Wikitech-l] Please Welcome Andre Engels

2012-01-12 Thread Roan Kattouw
On 1/12/12, Tomasz Finc tf...@wikimedia.org wrote: Greetings all, I'm pleased to announce that Andre Engles has decided to join the Mobile team as our data analyst contractor. In this role he'll provide the mobile team with key metrics to guide our software development efforts. He'll be

Re: [Wikitech-l] JS load order, or: how to load a gadget before all others.

2012-01-11 Thread Roan Kattouw
On Wed, Jan 11, 2012 at 12:19 PM, Daniel Kinzler dan...@brightbyte.de wrote:  $.holdReady(true);  mediaWiki.loader.load(https://toolserver.org/~netaction/wikitrust.js;); Note that this will disable all gadgets and custom scripts: $.holdReady(true) is a hack to prevent other user scripts

Re: [Wikitech-l] Files with unknown copyright status on MediaWiki wiki

2012-01-04 Thread Roan Kattouw
On Wed, Jan 4, 2012 at 6:44 AM, John Vandenberg jay...@gmail.com wrote: On Wed, Jan 4, 2012 at 10:51 AM, Platonides platoni...@gmail.com wrote: Thanks Roan. It's also interesting to learn about that clause. I agree.  I asked whether WMF had something like this

Re: [Wikitech-l] Rolling towards 1.19... scheduling a code freeze

2012-01-03 Thread Roan Kattouw
On Tue, Jan 3, 2012 at 2:05 AM, Erwin Dokter er...@darcoury.nl wrote: Can someone have a look at bug 25697, which is a very minor, easy patch? I hope to get this one in before 1.19, to go along with the new diff look. Done. Roan ___ Wikitech-l

Re: [Wikitech-l] Plural, Gender parsing support for interface messages at client side

2012-01-03 Thread Roan Kattouw
On Tue, Jan 3, 2012 at 8:24 PM, Brion Vibber br...@pobox.com wrote: I would rather have real, working client-side processing support; Me too, but I don't like the idea of Yet Another Miniparser that parses a narrow subset of wikitext. I'm in a meeting now and we've decided to just go ahead with

Re: [Wikitech-l] Plural, Gender parsing support for interface messages at client side

2012-01-03 Thread Roan Kattouw
On Tue, Jan 3, 2012 at 8:36 PM, Roan Kattouw roan.katt...@gmail.com wrote: I'll write another post to this thread where I outline my proposed approach. As promised. I originally had a very hacky plan for this [1] , but after talking to Tim I decided on something different. Step 1 is to improve

Re: [Wikitech-l] Plural, Gender parsing support for interface messages at client side

2012-01-03 Thread Roan Kattouw
On Tue, Jan 3, 2012 at 11:15 PM, Siebrand Mazeland s.mazel...@xs4all.nl wrote: So what is needed to make it more urgent, or can we just start using what is available in core right now? As I said earlier: I'm in a meeting now and we've decided to just go ahead with the existing client-side

Re: [Wikitech-l] Files with unknown copyright status on MediaWiki wiki

2012-01-03 Thread Roan Kattouw
On Tue, Jan 3, 2012 at 11:49 PM, K. Peachey p858sn...@gmail.com wrote: I'm pretty sure we can't assume anything with licensing, The uploader must state the license they want it to be under. If something is uploaded by a WMF employee or contractor and was produced in the course of their work for

Re: [Wikitech-l] Plural, Gender parsing support for interface messages at client side

2012-01-02 Thread Roan Kattouw
On Mon, Jan 2, 2012 at 3:56 PM, Santhosh Thottingal santhosh.thottin...@gmail.com wrote: [1] https://www.mediawiki.org/wiki/Special:Code/MediaWiki/107556 In that CR thread, Neil suggested moving message parsing to the server side, and I'm running with it. I'll play with it today and tomorrow and

Re: [Mediawiki-api] How to parse the contents

2011-12-31 Thread Roan Kattouw
On Sat, Dec 31, 2011 at 5:53 PM, kracekumar ramaraju kracethekingma...@gmail.com wrote:  http://en.wiktionary.org/w/api.php?format=jsonaction=querytitles=murkyrvprop=contentprop=revisionsredirects=1 yields json contents for the word 'murky'. [snip]

Re: [Mediawiki-api] can I use the API to search for images in commons.wikimedia.org?

2011-12-30 Thread Roan Kattouw
On Thu, Dec 29, 2011 at 10:21 PM, Timothy Helck timothy.he...@gmail.com wrote: Basically, I would like to replicate the functionality of the commons.wikimedia.org search page. Ideally I would like to be able to get a Category listing (ex. http://commons.wikimedia.org/wiki/Chartres_Cathedral)

Re: [Mediawiki-api] can I use the API to search for images in commons.wikimedia.org?

2011-12-30 Thread Roan Kattouw
On Fri, Dec 30, 2011 at 9:01 PM, Timothy Helck timothy.he...@gmail.com wrote: Roan, I've looked at search, but it only seems to return names of pages, not images. Is there a way to make it return images? The regular search doesn't return images either, does it? Roan

Re: [Wikitech-l] Instructions for setting up regression tests on local machine?

2011-12-30 Thread Roan Kattouw
On Fri, Dec 30, 2011 at 9:11 PM, Dan Nessett dness...@yahoo.com wrote: I have poked around a bit (using Google), but have not found instructions for setting up the MW regression test framework (e.g., CruiseControl or Jenkins or whatever is now being used + PHPUnit tests + Selenium tests) on a

Re: [Wikitech-l] ResourceLoader and wikibits addHandler in IE

2011-12-22 Thread Roan Kattouw
On Thu, Dec 22, 2011 at 7:28 PM, Daniel Barrett d...@vistaprint.com wrote: The following JavaScript works fine in MediaWiki 1.17.1, when placed into a ResourceLoader-loaded module, producing an alert box: addHandler(window, 'load', function() {  alert('hello'); }); However, the same code

Re: [Wikitech-l] Diff colors - a disaster waiting to happen

2011-12-22 Thread Roan Kattouw
On Thu, Dec 22, 2011 at 8:11 PM, Ryan Lane rlan...@gmail.com wrote: What was the purpose of changing colors? Aesthetics? If yes, this is bikeshedding. If there isn't a really good reason to change the colors, don't. If you are changing the colors so that they are more accessible for color

Re: [Wikitech-l] Diff colors - a disaster waiting to happen

2011-12-22 Thread Roan Kattouw
On Thu, Dec 22, 2011 at 10:37 PM, Ryan Lane rlan...@gmail.com wrote: Green has a meaning of Go or of this is ok in many cultures. Making either side green gives a bias to the diff. Similarly with red. Red means Stop or this is not ok. Many people associate red with blood, and green with

Re: [Wikitech-l] Diff colors - a disaster waiting to happen

2011-12-22 Thread Roan Kattouw
On Thu, Dec 22, 2011 at 10:56 PM, Russell Nelson russnel...@gmail.com wrote: Speaking of usability, why is this mailing list called Wiki Tech List Lists Wiki Media org? Surely there's some extra duplicate redundancy there there? Do you mean the -l suffix is redundant with the list. prefix? Yes,

Re: [Wikitech-l] Missing wiki redirect script

2011-12-21 Thread Roan Kattouw
On Tue, Dec 20, 2011 at 9:51 PM, Robin Pepermans robinp.1...@gmail.com wrote: Thank you. I thought $language and $project wouldn't need escaping because their values are known: $project can only be one of wikipedia, wikisource, ... and $language only one of

Re: [Wikitech-l] CLDR support added to XML::languageSelector()

2011-12-21 Thread Roan Kattouw
On Wed, Dec 21, 2011 at 2:34 AM, Ryan Kaldari rkald...@wikimedia.org wrote: Unfortunately, we only have 1 available deployment day left before the holidays, so if there's any chance someone could review the revision before 2pm tomorrow, it would be greatly appreciated.

Re: [Wikitech-l] Code review thoughts: module reviewers

2011-12-21 Thread Roan Kattouw
On Wed, Dec 21, 2011 at 12:01 AM, Brion Vibber bvib...@wikimedia.org wrote: Often, little things are suitable for many people to look at, but major subsystem refactorings -- like the landing of Aaron's file backend changes -- really are specialized and need to be looked over by somebody who's a

Re: [Wikitech-l] Missing wiki redirect script

2011-12-21 Thread Roan Kattouw
On Wed, Dec 21, 2011 at 9:53 PM, Robin Pepermans robinp.1...@gmail.com wrote: Thanks Roan for deploying! I was also wondering, if language codes were simply added to that langlist, would they work with the missing.php script? Or do they need more configuration, e.g. in DNS? Any language code

Re: [Wikitech-l] Missing wiki redirect script

2011-12-20 Thread Roan Kattouw
On Sun, Dec 18, 2011 at 4:06 PM, Robin Pepermans robinp.1...@gmail.com wrote: So I would like to ask if someone can review deploy this (Commits are here: https://www.mediawiki.org/wiki/Special:Code/MediaWiki?path=/trunk/tools/web-scripts/missing.phpbut it may be easier to just review current

Re: [Wikitech-l] Please Welcome Yuvaraj Pandian Max Semink

2011-12-19 Thread Roan Kattouw
Welcome Yuvi and Max! I'm glad to see that we're still hiring awesome devs from the community. Roan ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Image uploading social workflow

2011-12-19 Thread Roan Kattouw
On Sun, Dec 18, 2011 at 8:40 PM, Gregor Hagedorn g.m.haged...@gmail.com wrote: Socially, the Add Media Wizard is right direction, but it handles the workflow of inserting already available resources, it does not involve the scope of people able to contribute images. From what I recall, AMW

Re: [Mediawiki-api] Get the right article among disambiguation results

2011-12-16 Thread Roan Kattouw
On Fri, Dec 16, 2011 at 3:34 PM, Adrien ANDRE adrien.andr...@gmail.com wrote: But i don't see a way to do thing without excessive parsing and querying. You don't see it because it's not there :) . MediaWiki doesn't recognize or store any semantic information about disambiguation pages (or any

Re: [Wikitech-l] irc bot

2011-12-15 Thread Roan Kattouw
On Thu, Dec 15, 2011 at 7:03 PM, Leslie Carr lc...@wikimedia.org wrote: I, for one, appreciate all of the hard work Petr has put into this new bot and am enjoying the functionality. Yeah, it's definitely nice to have someone actually maintaining the code and adding improvements. Yay Petr!

Re: [Wikitech-l] Help us test the VisualEditor prototype

2011-12-13 Thread Roan Kattouw
On Wed, Dec 14, 2011 at 1:34 AM, Rusty Burchfield gicodewarr...@gmail.com wrote: On Tue, Dec 13, 2011 at 1:27 PM, Neil Kandalgaonkar ne...@wikimedia.org wrote: Here's the demo, where you can edit some canned texts (but not actual Wikipedia articles, yet):  

Re: [Wikitech-l] Access to the Deleted Archives

2011-12-11 Thread Roan Kattouw
On Sun, Dec 11, 2011 at 3:34 PM, Katja Müller katja_muel...@lavabit.com wrote: Ok, thanks - so this is the way to get access to the titles of deleted pages (no revision content)? Or is there more meta information available for researcher status users? The titles of deleted pages (as well as

Re: [Wikitech-l] WikiEditor Preview tab: unparsed wikitext

2011-12-08 Thread Roan Kattouw
On Wed, Dec 7, 2011 at 7:58 PM, Daniel Barrett d...@vistaprint.com wrote: I have a parser function that is not being rendered properly by the experimental Preview tab in WikiEditor.  The function does the following: *       It add a custom property foo to the ParserOutput object, with value

Re: [Wikitech-l] QueryPage class help?

2011-12-05 Thread Roan Kattouw
On Mon, Dec 5, 2011 at 6:21 PM, Daniel Barrett d...@vistaprint.com wrote: class MyQueryPageClassName extends QueryPage {  function getName() { return 'My Query Page'; }  function getSQL() { return select 1 as 'test'; } getSQL() ?!? I looked at SpecialPopularpages.php and see a global function

Re: [Wikitech-l] QueryPage class help?

2011-12-05 Thread Roan Kattouw
On Mon, Dec 5, 2011 at 8:16 PM, Daniel Barrett d...@vistaprint.com wrote: I see these functions are gone in 1.18.0, and I'm happy to do things the right way... so is there any documentation on using the QueryPage class within an extension?  Or an example that's outside of the core? Not

Re: [Wikitech-l] QueryPage class help?

2011-12-05 Thread Roan Kattouw
On Mon, Dec 5, 2011 at 8:29 PM, Daniel Barrett d...@vistaprint.com wrote: you should be able to create a QueryPage subclass in an extension, set $wgSpecialPages['specialpagename'] = 'SpecialPageClass'; , add to $wgQueryPages (I forget the exact format there), and you should be all set. Thanks. I

Re: [Wikitech-l] Bugzilla Weekly Report

2011-12-04 Thread Roan Kattouw
On Mon, Dec 5, 2011 at 5:40 AM, Brandon Harris bhar...@wikimedia.org wrote:        Does this list account for the vandalism we encountered? The vandal's changes are included, yeah, if that's what you mean. Roan ___ Wikitech-l mailing list

Re: [Wikitech-l] Html dump for Wikipedia

2011-12-02 Thread Roan Kattouw
On Fri, Dec 2, 2011 at 10:33 PM, Khalida BEN SIDI AHMED send.to.khal...@gmail.com wrote: Hello, I need an html dump of Wikipedia but the link http://static.wikipedia.org/ does not work. I'd appreciate any explanation or suggestion. Does http://dumps.wikimedia.org/ not have the data you

Re: [Wikitech-l] VIPS test

2011-11-30 Thread Roan Kattouw
On Wed, Nov 30, 2011 at 3:58 AM, Tim Starling tstarl...@wikimedia.org wrote: A test page for the new VIPS image scaler is now available: https://test2.wikipedia.org/wiki/Special:VipsTest There's a weird bug in this page that causes the preview area to be 255x16px under certain circumstances.

Re: [Mediawiki-api] Bad edit token with FauxRequest

2011-11-29 Thread Roan Kattouw
On Tue, Nov 29, 2011 at 4:42 AM, Adam Nielsen a.niel...@shikadi.net wrote: Is there a way to do this when using the API to perform edits within an extension?  Or would it be better to dispense with the API and call the various functions manually? Yes, it would probably be better to use

Re: [Wikitech-l] MathJax integration to stock MediaWiki Math extension? (was RFC: math options)

2011-11-29 Thread Roan Kattouw
On Tue, Nov 29, 2011 at 1:42 AM, Brion Vibber br...@pobox.com wrote: Most compatible thing is probably to let it include the images/text form as-is, then make sure MathJax goes over and replaces them in-place. It might need tweaks to understand the images (source in alt text). You may want to

Re: [Wikitech-l] Who actually reads @wikimediatech ?

2011-11-29 Thread Roan Kattouw
On Tue, Nov 29, 2011 at 8:25 PM, Guillaume Paumier gpaum...@wikimedia.org wrote: I'm wondering if there are actually people reading all the stuff that's pushed through these channels. My gut feeling is that the few people reading these feeds are also those that would know to check the SLA if

Re: [Wikitech-l] Who actually reads @wikimediatech ?

2011-11-29 Thread Roan Kattouw
On Tue, Nov 29, 2011 at 11:14 PM, MZMcBride z...@mzmcbride.com wrote: I agree with Brion. Human updates would be nice. The truncated and often context-less messages in the current feed are rather useless. We would have to do it in some sort of convenient way that doesn't involve logging out of

Re: [Wikitech-l] Who actually reads @wikimediatech ?

2011-11-29 Thread Roan Kattouw
On Tue, Nov 29, 2011 at 11:46 PM, Platonides platoni...@gmail.com wrote: I don't think it should be something requiring shell access. There might be a very skilled secretary to summarise a blog into a tweet but dangerous to be given a command line. Or you may want to involve some community

Re: [Wikitech-l] error lasted more than 10 minutes....

2011-11-28 Thread Roan Kattouw
On Mon, Nov 28, 2011 at 12:21 AM, Asher Feldman afeld...@wikimedia.org wrote: That page wasn't suitable for high volume public consumption (very expensive db query + not properly cached), so the site problem persisted even after the db initially suspected as bad was rotated out. What happened

Re: [Wikitech-l] error lasted more than 10 minutes....

2011-11-28 Thread Roan Kattouw
On Mon, Nov 28, 2011 at 3:50 PM, MZMcBride z...@mzmcbride.com wrote: I asked roughly the same thing yesterday (more along the lines of shouldn't it take someone ten minutes to add memcache support to the extension?). Reedy said it was long-running queries that never timed out that apparently

Re: [Wikitech-l] error lasted more than 10 minutes....

2011-11-28 Thread Roan Kattouw
On Mon, Nov 28, 2011 at 8:28 PM, Neil Harris n...@tonal.clara.co.uk wrote: And adding memcached caching with even, say, as little as a 1 minute cache entry timeout, should dilute that reduced load even more, and put an upperbound on the load generated, just in case it gets slashdot/reddited

Re: [Wikitech-l] error lasted more than 10 minutes....

2011-11-28 Thread Roan Kattouw
On Mon, Nov 28, 2011 at 8:59 PM, Neil Harris n...@tonal.clara.co.uk wrote: I hadn't thought properly about cache stampedes: since the parser cache is only part of page rendering, this might also explain some of the other occasional slowdowns I've seen on Wikipedia. It would be really cool if

Re: [Wikitech-l] error lasted more than 10 minutes....

2011-11-28 Thread Roan Kattouw
On Mon, Nov 28, 2011 at 9:32 PM, K. Peachey p858sn...@gmail.com wrote: Wasn't the extension ever reviewed before being enabled? Shouldn't of the review catch-ed this? The relevant code wasn't present in the extension when it was originally enabled (in 2009 I think), it was introduced this year.

Re: [Mediawiki-api] Support of the useformat=mobile by mediawiki api

2011-11-23 Thread Roan Kattouw
On Wed, Nov 23, 2011 at 4:54 PM, Asher Szmulewicz asher.szmulew...@gmail.com wrote: Hi All, Will the useformat=mobile be supported by MediaWiki API where appropriate? I am able to do the following for non mobile content

Re: [Wikitech-l] Please preload a space in the page for the banner

2011-11-21 Thread Roan Kattouw
On Sun, Nov 20, 2011 at 11:44 PM, Tim Starling tstarl...@wikimedia.org wrote: Maybe we could have a script tag in the head that modifies the relevant stylesheet rules based on cookies present. D'oh, of course that's a better solution. And I'm supposed to be a JavaScript expert *hangs head in

Re: [Wikitech-l] Please preload a space in the page for the banner

2011-11-20 Thread Roan Kattouw
On Sun, Nov 20, 2011 at 12:37 PM, David Gerard dger...@gmail.com wrote: A Wikipedia page loads. The last thing to load is the banner. This pushes the page content down. If you've clicked on a link near the top of the page, the banner grabs it instead. This happened last year and it was

Re: [Wikitech-l] Coding Convention: Method chaining

2011-11-16 Thread Roan Kattouw
On Wed, Nov 16, 2011 at 12:36 PM, Jeroen De Dauw jeroended...@gmail.com wrote: Hey, Introducing a pattern like this in a code base this large is therefore problematic. I'm tempted to agree with this. Doing I think chaining is great for classes where 1) it makes sense and 2) the class is

Re: [Wikitech-l] HTTPS-Everywhere

2011-11-16 Thread Roan Kattouw
On Wed, Nov 16, 2011 at 9:50 PM, Raimond Spekking raimond.spekk...@gmail.com wrote: Hi, it seems, that the latest stable version of HTTPS-Everywhere 1.2.1 fully supports the new HTTPS structure of Wikimedia wikis \o/ Yup :) . There will be some .wikimedia.org domains that are redirected to

Re: [Wikitech-l] HTTPS-Everywhere

2011-11-16 Thread Roan Kattouw
On Wed, Nov 16, 2011 at 10:45 PM, Jeremy Postlethwaite jpostlethwa...@wikimedia.org wrote: How do we change the code revision emails? Subject: [MediaWiki r1028XX]: Revision status changed Body: Full URL:

Re: [Wikitech-l] Native HTTPS support live on all projects

2011-11-15 Thread Roan Kattouw
On Tue, Nov 15, 2011 at 4:51 AM, William Allen Simpson william.allen.simp...@gmail.com wrote: HTTPS-Everywhere 1.2 is out today, with the new rules.  Seems to work well. Yay! I'll have to check if this includes the latest version of my rule set, but it's good news regardless. Roan

Re: [Wikitech-l] Search completion

2011-11-14 Thread Roan Kattouw
On Wed, Nov 9, 2011 at 12:26 PM, Roan Kattouw roan.katt...@gmail.com wrote: Yes, that's what causing it. Although, really, MediaWiki code should always be aliasing $ to the global jQuery object, which BannerController and collapsibleTabs clearly aren't doing. These should be fixed in r102962

Re: [Wikitech-l] Overzealous Commons deletionists

2011-11-13 Thread Roan Kattouw
On Sun, Nov 13, 2011 at 4:45 AM, William Allen Simpson william.allen.simp...@gmail.com wrote: Obviously, he didn't even look at the photo.  It's not from Facebook. He's a fraud.  All of his deletion requests should be denied.  I'm formally asking that he resign or be removed as administrator.

Re: [Wikitech-l] Overzealous Commons deletionists

2011-11-12 Thread Roan Kattouw
On Sat, Nov 12, 2011 at 8:07 PM, William Allen Simpson william.allen.simp...@gmail.com wrote: He compared her to Madonna.  Basically, nothing will convince this administrator.  The administrator has to be taken out of the loop. We need technical means to handle that message. No you don't.

Re: [Wikitech-l] Input requested: Delay 1.18?

2011-11-11 Thread Roan Kattouw
On Fri, Nov 11, 2011 at 5:50 AM, Mark A. Hershberger mhershber...@wikimedia.org wrote: Yesterday a friend of mine discovered and filed a bug that highlights a backwards incompatibility introduced by 1.18. The bug is Moved ArticleSave hook breaks backward compatibility

<    1   2   3   4   5   6   7   8   9   10   >