Re: [Wikitech-l] wfRunHooks deprecation

2015-01-21 Thread Dmitriy Sintsov
They probably could turn that global class into facade - compact form of IoC container Laravel framework uses. Dmitriy On Thu, Jan 22, 2015 at 12:51 AM, Brian Wolff bawo...@gmail.com wrote: On Jan 21, 2015 1:40 PM, Jeroen De Dauw jeroended...@gmail.com wrote: Hey, Does the new syntax

Re: [Wikitech-l] MediaWiki 2.0 (was: No more Architecture Committee?)

2015-01-16 Thread Dmitriy Sintsov
Why wikitext is so much disliked? It's more compact to type than HTML. It's a templating language. HTML is not. Then something like Handlebars (which is weaker than wikitext) should be used. Or, something like web components and custom tags. But why removing nice thing (wikitext) which saves a lot

Re: [Wikitech-l] Working around composer? (Fatal error: Class 'Cdb\Reader' not found)

2015-01-13 Thread Dmitriy Sintsov
Isn't web interface for maintenance imposes security risk? Also web scripts usually are time-limited while shell scripts are not. To update text status of web scripts one has to run batches via json, which is cumbersome. Laravel artisan (shell script) runs composer itself, why

Re: [Wikitech-l] Recommended way to change a lot of absolute links at wiki

2014-08-11 Thread Dmitriy Sintsov
Replace in XML dump was done automatically and I did not want to remove timestamp from all revisions (even from current ones) because the wiki is quite large (about 9000 articles). So I made my own tool to touch such revision timestamps:

[Wikitech-l] Recommended way to change a lot of absolute links at wiki

2014-08-10 Thread Dmitriy Sintsov
Hi! I made a XML dump with --current option, then replaced some of external domain links [http://somedomain.org] in it. When I import the dump back, these pages aren't updated. I think that's because text processors / editors do not update sha1 / timestamp fields. Why doesn't

Re: [Wikitech-l] Linux distros or Solaris for MediaWiki

2014-07-29 Thread Dmitriy Sintsov
At previous job, I've installed and maintained a wiki farm with multiple sites, interwiki setup and caching while another emploee installed MediaWiki from repository via single command and told to former boss that my work is very simple. I hate anything web-related in packages because of that.

Re: [Wikitech-l] Linux distros or Solaris for MediaWiki

2014-07-21 Thread Dmitriy Sintsov
Yes, please do not install MediaWiki via apt-get or aptitude. It will be old version with suboptimal settings. It is much better to install it manually. Speaking of Ubuntu, I think WMF is running a lot of Ubuntu / Debian systems. So, Ubuntu should be the best way of running MediaWiki. Dmitriy

Re: [Wikitech-l] Making a plain MW core git clone not be installable

2014-06-11 Thread Dmitriy Sintsov
On 11.06.2014 9:01, Matthew Walker wrote: This also has knock on impacts elsewhere. BD808 has a patch that uses PSR-log and Monolog for logging. We're starting to move to a model where we recognize that we shouldn't write everything and that things in core have significantly better replacements

Re: [Wikitech-l] LiquidThreads - how do we kill it?

2014-06-07 Thread Dmitriy Sintsov
On 06.06.2014 22:17, Brian Wolff wrote: On 6/6/14, Brad Jorsch (Anomie) bjor...@wikimedia.org wrote: On Thu, Jun 5, 2014 at 4:38 PM, Jon Robson jdlrob...@gmail.com wrote: So I want to know: * What are the blockers for doing this? * Are there any use cases / killer features in LiquidThreads

Re: [Wikitech-l] HTML templating systems MediaWiki - is this summary right?

2014-03-19 Thread Dmitriy Sintsov
On 19.03.2014 12:10, Peter Kaminski wrote: Hi Sumana, I think a key concept you might want to capture is separation of concerns -- a templating engine allows separation of presentation logic from business logic. Often, the two are handled by different people with different skills, in

Re: [Wikitech-l] Is Foxway a right way?

2014-01-13 Thread Dmitriy Sintsov
Пн. 13 янв. 2014 12:59:18 пользователь Pavel Astakhov (pastak...@yandex.ru) написал: Hi! I would like to discuss an idea. In MediaWiki is not very convenient to docomputingusing the syntax of the wiki. We have to use several extensions like Variables, Arrays, ParserFunctions and others. If

Re: [Wikitech-l] Is Foxway a right way?

2014-01-13 Thread Dmitriy Sintsov
Пн. 13 янв. 2014 16:12:29 пользователь Pavel Astakhov (pastak...@yandex.ru) написал: From: Dmitriy Sintsov questpc at rambler.ru Subject: Re: Is Foxway a right way? http://news.gmane.org/find-root.php?message_id=1389610306.562859.4565.53906%40mail.rambler.ru Newsgroups

Re: [Wikitech-l] Is Foxway a right way?

2014-01-13 Thread Dmitriy Sintsov
On 13.01.2014 18:17, Pavel Astakhov wrote: I implemented something similar before Scribunto was stable enough and deployed My idea is different I know. But the interpreting probably is too slow for huge-load wikis. Do not allow Foxway extension to deceive you. It is a cheap intermediary,

Re: [Wikitech-l] python vs php

2013-07-28 Thread Dmitriy Sintsov
The problem is not awkward syntax of PHP. Main problem is that PHP is a specialized language. For example it does not have built-in threading. Posix threading is not universally available for PHP. Python and Java has it's own VM-backed threading everywhere. Java is suitable platform to build

Re: [Wikitech-l] Varnish

2013-07-25 Thread Dmitriy Sintsov
26 Июль 2013 г. 5:59:57 пользователь Jacobo Nájera (jac...@metahumano.org) написал: I am exploring around Varnish Cache, do you know some tools for test performance and benchmarking? Thanks, Jacobo https://www.varnish-cache.org/docs/3.0/tutorial/increasing_your_hitrate.html varnishtop -i

Re: [Wikitech-l] Suggested file format of new incremental dumps

2013-07-01 Thread Dmitriy Sintsov
On 01.07.2013 22:56, Tyler Romeo wrote: Petr is right on par with this one. The purpose of this version 2 for dumps is to allow protocol-specific incremental updating of the dump, which would be significantly more difficult in non-binary format. Why the dumps cannot be just split into daily or

Re: [Wikitech-l] PHP 5.4 (we wish)

2013-06-10 Thread Dmitriy Sintsov
9 Июнь 2013 г. 21:51:13 пользователь Tyler Romeo (tylerro...@gmail.com) написал: To be honest, the upgrade isn't that exciting. The only real worthwhile new feature is traits. Everything else is just random fixes in syntax. As for the timetable for this, PHP 5.3 isn't going anywhere anytime

Re: [Wikitech-l] CHanging the name of Vector on 1.21.1

2013-06-10 Thread Dmitriy Sintsov
10 Июнь 2013 г. 9:15:44 пользователь (j00...@mail.com) написал: Hello everyone, I want to modify the default Vector theme that comes with 1.21.1. But before I do that I want to rename it. I want to name it nighttime.  I created a folder called nighttime and copied all the vector files into

Re: [Wikitech-l] Code style: overuse of Html::element()

2013-05-14 Thread Dmitriy Sintsov
On 13.05.2013 21:26, Max Semenik wrote: Hi, I've seen recently a lot of code like this: $html = Html::openElement( 'div', array( 'class' = 'foo' ) . Html::rawElement( 'p', array(), Html::element( 'span', array( 'id' = $somePotentiallyUnsafeId ),

Re: [Wikitech-l] Code style: overuse of Html::element()

2013-05-13 Thread Dmitriy Sintsov
On 13.05.2013 21:26, Max Semenik wrote: Hi, I've seen recently a lot of code like this: $html = Html::openElement( 'div', array( 'class' = 'foo' ) . Html::rawElement( 'p', array(), Html::element( 'span', array( 'id' = $somePotentiallyUnsafeId ),

Re: [Wikitech-l] HipHop VM support: ArrayObject and filter_var()

2013-05-12 Thread Dmitriy Sintsov
On 12.05.2013 1:18, Tyler Romeo wrote: FWIW, here is what I have so far: http://pastebin.com/hUQ92DfB I haven't tested it yet because my PHP environment is not behaving, and the only class I haven't implemented fully is SplHeap. Perhaps you should send the link to HipHop developers (or to

Re: [Wikitech-l] HipHop VM support: ArrayObject and filter_var()

2013-05-11 Thread Dmitriy Sintsov
On 10.05.2013 17:58, Chad wrote: On Fri, May 10, 2013 at 8:05 AM, Jeroen De Dauw jeroended...@gmail.com wrote: Hey, I can see why SPL might require extra work in HipHop to support. At the same time I find it somewhat unfortunate this means one cannot use the Standard PHP Library. Yeah, but I

Re: [Wikitech-l] HipHop VM support: ArrayObject and filter_var()

2013-05-11 Thread Dmitriy Sintsov
On 10.05.2013 23:51, Antoine Musso wrote: Le 10/05/13 03:10, Tim Starling a écrit : There's a few other SPL features that we don't use at the moment and we should avoid introducing if possible due to lack of support in HipHop: snip: various SPL classes I wish we actually used Spl :-] They

Re: [Wikitech-l] category intersection conversations

2013-05-09 Thread Dmitriy Sintsov
On 09.05.2013 20:28, Brad Jorsch wrote: On Wed, May 8, 2013 at 10:47 PM, James Forrester jforres...@wikimedia.org wrote: * Pages are implicitly in the parent categories of their explicit categories * - Pages in Politicians from the Netherlands are in People from the Netherlands by profession

Re: [Wikitech-l] Anyone using Apache 2.4 to run MediaWiki?

2013-04-26 Thread Dmitriy Sintsov
On 26.04.2013 5:02, Mark A. Hershberger wrote: On 04/25/2013 08:40 PM, Brian Wolff wrote: I would say we shouldn't document unless we habe a vauge idea why. Agreed. But I was basing this on reports from people who were using XAMPP, not my lame attempts. Still, I haven't tried to reproduce

Re: [Wikitech-l] Anyone using Apache 2.4 to run MediaWiki?

2013-04-26 Thread Dmitriy Sintsov
On 27.04.2013 5:23, Mark A. Hershberger wrote: On 04/26/2013 02:29 PM, Maarten Dammers wrote: I'm running MediaWiki on apache-2.4.4 on NetBSD. Ah! Thank you. I'm gonna guess, then, that this is a problem particular to XAMPP and/or Windows. Are you using rewrite rules with your installation?

Re: [Wikitech-l] Anyone using Apache 2.4 to run MediaWiki?

2013-04-26 Thread Dmitriy Sintsov
On 26.04.2013 23:42, Max Semenik wrote: On 26.04.2013, 19:15 Dmitriy wrote: However, I remember wikimedia was running something old like htpd 1.3 maxsem@mw1020:~$ dpkg -l apache* [snip] ii apache2.2-common 2.2.22-1ubuntu1.3 Apache HTTP Server common files Surely

Re: [Wikitech-l] Tutorial on Semantic MediaWiki in Russian

2013-04-21 Thread Dmitriy Sintsov
On 21.04.2013 13:02, Yury Katkov wrote: On Sun, Apr 21, 2013 at 2:53 AM, Mathieu Stumpf psychosl...@culture-libre.org wrote: Le samedi 20 avril 2013 à 05:36 +0400, Yury Katkov a écrit : Any ideas where to publish the English version? I was quite surprised when I found out that there is no

Re: [Wikitech-l] Removing the Hooks class

2013-04-04 Thread Dmitriy Sintsov
4 Апрель 2013 г. 10:11:44 пользователь Daniel Friesen (dan...@nadir-seen-fire.com) написал: On Wed, 03 Apr 2013 22:23:41 -0700, Dmitriy Sintsov ques...@rambler.ru    wrote: 4 Апрель 2013 г. 9:16:49 пользовате­ль Jeroen De Dauw    (jeroended...@gmail.com) написал:   Hey, I see

Re: [Wikitech-l] Removing the Hooks class

2013-04-03 Thread Dmitriy Sintsov
4 Апрель 2013 г. 9:16:49 пользователь Jeroen De Dauw (jeroended...@gmail.com) написал: Hey, I see no reason to get rid of the hooks class. Given you also do not understand why I think the comment is funny, I recommend you read up on why writing static code is harmful. And on how global state

Re: [Wikitech-l] Cannot run the maintenance script

2013-03-26 Thread Dmitriy Sintsov
26 Март 2013 г. 14:16:09 пользователь Platonides (platoni...@gmail.com) написал: On 25/03/13 23:19, Rahul Maliakkal wrote: I installed SMW extension in my local wiki yesterday and now when i visit a page in my local wiki i get this message A database query syntax error has occurred. This

Re: [Wikitech-l] RFC How/whether MediaWiki could use ZendOptimizuerPlus -- ZendOptimizerPlus, opcode cache, PHP 5.4, APC, memcache ???

2013-03-23 Thread Dmitriy Sintsov
On 22.03.2013 18:10, Thomas Gries wrote: just one message, just arrived: http://php.net/archive/2013.php#id2013-03-21-1 PHP 5.5.0 beta1 available 21-Mar-2013 The PHP development team announces the release of the first beta of PHP 5.5.0. This release is the first to include the Zend OPCache.

[Wikitech-l] FlaggedRevs at www.mediawiki.org

2013-03-18 Thread Dmitriy Sintsov
Hi! I cannot check out my own Extension:GoogleMapsFn manual page changes at mediawiki.org. Changes are pending few days already. Can someone do that? http://www.mediawiki.org/w/index.php?title=Extension:GoogleMapsFnoldid=648005diff=cur Dmitriy ___

Re: [Wikitech-l] Virtual machines for testing IE

2013-03-13 Thread Dmitriy Sintsov
13 Март 2013 г. 22:42:57 пользователь Matthew Flaschen (mflasc...@wikimedia.org) написал: On 03/13/2013 11:06 AM, Željko Filipin wrote: On Wed, Mar 13, 2013 at 1:31 AM, Matthew Flaschen mflasc...@wikimedia.orgwrote: Unlike before, they now even offer VirtualBox and VMWare images

Re: [Wikitech-l] Purpose of #wikimedia-dev

2013-02-27 Thread Dmitriy Sintsov
On 28.02.2013 8:40, Tyler Romeo wrote: On Wed, Feb 27, 2013 at 5:53 PM, Platonides platoni...@gmail.com wrote: If you are coding/reviewing MW code, I recommend you to be available on the irc channel. That way we could isntantly ask you wtf are you commiting here? It's not for lack of

Re: [Wikitech-l] Better non-MySQL db support

2013-02-26 Thread Dmitriy Sintsov
26 Февраль 2013 г. 14:27:06 пользователь Nikola Smolenski (smole...@eunet.rs) написал: On 26/02/13 04:18, Matthew Flaschen wrote: Sure, for starters. :) Bear in mind, if we want to keep support for all these dbs, every change to the database schema has to (at some point) result in a

Re: [Wikitech-l] Corporate needs are different (RE: How can we help Corporations use MW?)

2013-02-14 Thread Dmitriy Sintsov
On 14.02.2013 21:14, vita...@yourcmc.ru wrote: I guess this would not directly solve any of the problems listed, but would it be helpful to bring back to life https://www.mediawiki.org/wiki/Enterprise_hub ? It was started by somebody an year or two ago but seems to have been abandoned at a

Re: [Wikitech-l] Fwd: Re: How to speed up the review in gerrit?

2013-02-13 Thread Dmitriy Sintsov
On 14.02.2013 6:33, Marco Fleckinger wrote: On 02/14/2013 03:28 AM, Chad wrote: On Wed, Feb 13, 2013 at 9:22 PM, Marco Fleckinger marco.fleckin...@wikipedia.at wrote: Having a can review all extensions group is easy, but allowing for exemptions will be a pain to manage the ACLs for. For

Re: [Wikitech-l] Fwd: Re: How to speed up the review in gerrit?

2013-02-13 Thread Dmitriy Sintsov
On 14.02.2013 9:14, Brian Wolff wrote: Also, the locations of extensions should be stable. If the repos start moving around as extensions move up and down the ladder it will cause confusion. Disadvantages are really small comparing to huge advantages for both reviewers and extension's

Re: [Wikitech-l] Stable PHP API for MediaWiki ?

2013-02-11 Thread Dmitriy Sintsov
On 11.02.2013 20:19, Mariya Nedelcheva Miteva wrote: Hi all, For what I've undrstood from conversations so far the Web or HTML API is not enough for extension developement and the variability of exposed internal classes is often responsible for the incompatibility of extensions with certain

Re: [Wikitech-l] How to support MediaWiki

2013-01-14 Thread Dmitriy Sintsov
14 Январь 2013 г. 19:59:01 пользователь Mark A. Hershberger (m...@everybody.org) написал: On 01/14/2013 01:34 AM, Dmitriy Sintsov wrote: My own (already past) experience of developing MediaWiki extensions shows that it is much easier to keep the compatibility layer in extension itself

Re: [Wikitech-l] Adapting Visual Editor for 1.19

2013-01-13 Thread Dmitriy Sintsov
9 Январь 2013 г. 4:09:21 пользователь James Forrester (jforres...@wikimedia.org) написал: On 4 January 2013 09:02, Mark A. Hershberger m...@everybody.org wrote: Would it be possible to adapt the Visual Editor to run under 1.19? Possible? Yes. However, it would involve back-porting a number

Re: [Wikitech-l] Adapting Visual Editor for 1.19 (and LTS)

2013-01-13 Thread Dmitriy Sintsov
But some changes were hard to adapt, for example at some point the definition of SpecialPage::userCanExecute() changed from public function userCanExecute( $user ) to public function userCanExecute( User $user ) with typecheck. Then extension's special pages that inherited from SpecialPage

Re: [Wikitech-l] getting Request object from EditPage

2012-12-20 Thread Dmitriy Sintsov
On 18.12.2012 16:51, Yury Katkov wrote: Of course I mean WebRequest class. - Yury Katkov, WikiVote On Tue, Dec 18, 2012 at 4:48 PM, Yury Katkov katkov.ju...@gmail.com wrote: Hi guys! I'm writing the EditPage::showEditForm:fields and I want to get a Request object. The use of wgRequest

Re: [Wikitech-l] Creating custom skin based on Vector in MediaWiki 1.20

2012-11-17 Thread Dmitriy Sintsov
Sat Nov 17 2012 02:32:27 GMT+0400 (Caucasus Standard Time) пользователь Roan Kattouw (roan.katt...@gmail.com) написал: On Tue, Nov 13, 2012 at 12:33 AM, Dmitriy Sintsov ques...@rambler.ru wrote: However, 'skin.vector' module includes both styles and scripts. And setupSkinUserCss() adds

Re: [Wikitech-l] Creating custom skin based on Vector in MediaWiki 1.20

2012-11-17 Thread Dmitriy Sintsov
Sat Nov 17 2012 22:09:38 GMT+0400 (Caucasus Standard Time) пользователь Krinkle (krinklem...@gmail.com) написал: On Nov 17, 2012, at 6:08 PM, Dmitriy Sintsov ques...@rambler.ru wrote: Right. I can probably make local stylesheet with references to google cdn, however I am not sure it wil

[Wikitech-l] Creating custom skin based on Vector in MediaWiki 1.20

2012-11-13 Thread Dmitriy Sintsov
Hi! Some year ago, I used to create Vector-based skin with redesigned layout (very different positions of sidebar and action links) in MW 1.17 from scratch, via copying all of Vector subtree and modifying it, then adding my skin resources into Resources.php. It worked, but was a lot of work,

Re: [Wikitech-l] MW 1.20 backwards compatibility in extensions

2012-11-08 Thread Dmitriy Sintsov
9 Ноябрь 2012 г. 2:52:54 пользователь Daniel Friesen (dan...@nadir-seen-fire.com) написал: On Thu, 08 Nov 2012 14:08:53 -0800, Tim Starling tstarl...@wikimedia.org    wrote: All extension branches were removed during the migration to Git. Very few extensions have branches for MW core

[Wikitech-l] Very low APC user cache utilization at MediaWiki 1.19.2 host

2012-11-07 Thread Dmitriy Sintsov
Hi, At one wiki host there is 5.3.3-7+squeeze14 with apc 3.1.3p1 (both are quite old however these are provided by Debian and I am not a regular admin of the server). The wiki host has about 10-20k visits per day and about 3500 of pages. It's not the smallest wiki. There is apc.ini (already

Re: [Wikitech-l] Modifying img src values via extension?

2012-11-03 Thread Dmitriy Sintsov
3 Ноябрь 2012 г. 2:00:47 пользователь Platonides (platoni...@gmail.com) написал: On 01/11/12 06:37, Dmitriy Sintsov wrote: Also I wish it was possible to extend (and perhaps to define) classes via variable values: class $myParser extends $wgParserConf['class'] { ... } $wgParserConf

Re: [Wikitech-l] Modifying img src values via extension?

2012-10-31 Thread Dmitriy Sintsov
31 Октябрь 2012 г. 21:34:25 пользователь Brion Vibber (br...@pobox.com) написал: On Wed, Oct 31, 2012 at 6:53 AM, Daniel Barrett d...@vistaprint.com wrote: Is there any easy way (via extension) to modify the src attribute of images on wiki pages? I see hooks for modifying href values -

Re: [Wikitech-l] Modifying img src values via extension?

2012-10-31 Thread Dmitriy Sintsov
Also I wish it was possible to extend (and perhaps to define) classes via variable values: class $myParser extends $wgParserConf['class'] { ... } $wgParserConf['class'] = $myParser; Such way, multiple extensions could nest (override) default class. Even monkey patching is not so much needed

Re: [Wikitech-l] Modifying img src values via extension?

2012-10-31 Thread Dmitriy Sintsov
Also I wish it was possible to extend (and perhaps to define) classes via variable values: class $myParser extends $wgParserConf['class'] { ... } $wgParserConf['class'] = $myParser; Such way, multiple extensions could nest (override) default class. Even monkey patching is not so much needed

Re: [Wikitech-l] SPDY?

2012-10-28 Thread Dmitriy Sintsov
27 Октябрь 2012 г. 23:20:39 пользователь Chad (innocentkil...@gmail.com) написал: Not to mention varnish/squid. Varnish author on SPDY: http://developers.slashdot.org/story/12/07/13/1327235/varnish-author-suggests-spdy-should-be-viewed-as-a-prototype The author of Varnish, Poul-Henning

Re: [Wikitech-l] Best policies for WikiFarms

2012-10-16 Thread Dmitriy Sintsov
16 Октябрь 2012 г. 11:08:52 пользователь Nathan Larson (nathanlarson3...@gmail.com) написал: I doubt WMF uses wgCacheDirectory at all. It's default is false and WMF has Memcached. It doesn't even affect WikiFarms since it's not set by default. You have to explicitly set it yourself.

Re: [Wikitech-l] Best policies for WikiFarms

2012-10-15 Thread Dmitriy Sintsov
15 Октябрь 2012 г. 22:31:32 пользователь Mark A. Hershberger (m...@everybody.org) написал: Axel Thimm and Patrick Uiterwijk are working on packaging MediaWiki 1.19 for Fedora and have asked for advice on how to enable their MediaWiki package to support WikiFarms out of the box.[0] I really

Re: [Wikitech-l] Make Extensions Aware of the ContentHandler

2012-10-12 Thread Dmitriy Sintsov
Dmitriy Sintsov. 11 Октябрь 2012 г. 16:13:02 пользователь Jeroen De Dauw (jeroended...@gmail.com) написал: Hey, Also, it would be great, if WMF selected some old version of MediaWiki as LTS (Long Time Support) so extensions would be required to work with it. Currently that could be 1.17

Re: [Wikitech-l] Make Extensions Aware of the ContentHandler

2012-10-11 Thread Dmitriy Sintsov
11 Октябрь 2012 г. 15:53:42 пользователь Jeroen De Dauw (jeroended...@gmail.com) написал: Hey, What is wrong with making extensions work right now both with and without it? +1. I don't see any harm done in adding such conditional checks, and they solve the problem at hand. We probably

Re: [Wikitech-l] Capabilities class (was Re: Make Extensions Aware of the ContentHandler)

2012-10-11 Thread Dmitriy Sintsov
12 Октябрь 2012 г. 7:23:19 пользователь Victor Vasiliev (vasi...@gmail.com) написал: On 10/11/2012 08:33 PM, Tim Starling wrote: Then you would have to load a capability map with potentially hundreds of entries at registration time, despite the fact that on most requests, most of the

Re: [Wikitech-l] Wikidata review status

2012-10-06 Thread Dmitriy Sintsov
5 Октябрь 2012 г. 23:42:30 пользователь Denny Vrandečić (denny.vrande...@wikimedia.de) написал: Hi all, here's a status update of the reviews on the Wikidata related changes to core: * ContentHandler: a lot has happened here in the last few days. We created a faux commit that squashed the

Re: [Wikitech-l] Extending the ORMTable functionality (was: Wikidatareview status)

2012-10-06 Thread Dmitriy Sintsov
Sat Oct 06 2012 19:44:51 GMT+0400 (Caucasus Standard Time) пользователь Jeroen De Dauw (jeroended...@gmail.com) написал: Hey, Starting a new thread as this is really not related to the Wikidata review status thread. On 6 October 2012 08:51, Dmitriy Sintsov ques...@rambler.ru wrote

Re: [Wikitech-l] Moving MediaWikiWidgets.org to Wikimedia

2012-09-05 Thread Dmitriy Sintsov
4 Сентябрь 2012 г. 21:40:20 пользователь John Du Hart (compwhi...@gmail.com) написал: Does MediaWikiWiki really need any more shitty/insecure addons that no one is going to maintain? I think we have enough already. Pick out the best of the bunch and nuke the rest. It is not easy (at

Re: [Wikitech-l] $( 'div' ) vs. $( 'div /') in codingconventions (and methods for building DOMs with jQuery)

2012-08-28 Thread Dmitriy Sintsov
Indeed. Moreover, aside from the performance and security, there's another important factor to take into account. And that is the fact that IDs can contain characters that have special meaning in CSS selectors (such as dots). We've seen this in before when dealing with a MediaWiki heading

Re: [Wikitech-l] gerrit tab width

2012-08-09 Thread Dmitriy Sintsov
8 Август 2012 г. 22:43:15 пользователь bawolff (bawolff...@gmail.com) написал: I use 8 :P (Seriously though, everything looks so crunched up with 4 space tab width... Makes me claustrophobic!) Tab 8 encourages to make less structural nesting like foreach( if ( foreach ( if () ) ) ) in one

Re: [Wikitech-l] Captcha for non-English speakers II

2012-07-31 Thread Dmitriy Sintsov
1 Август 2012 г. 6:26:02 пользователь MZMcBride (z...@mzmcbride.com) написал: Risker wrote: Putting on my checkuser hat for a moment - yes, please please look at finding a different CAPTCHA process - the cross-wiki spamming by bots that are able to break the CAPTCHA is becoming

Re: [Wikitech-l] Upload files: a simple progress bar ?

2012-07-22 Thread Dmitriy Sintsov
On 22.07.2012 16:07, Chad wrote: On Sun, Jul 22, 2012 at 5:29 AM, Thomas Gries m...@tgries.de wrote: Question: Why don't we have a simple progress bar (in the core) when uploading files ? Because there's not a simple way of doing it. Every solution I've seen over the years has either been

Re: [Wikitech-l] How to display the title with underscores?

2012-07-17 Thread Dmitriy Sintsov
17 Июль 2012 г. 9:22:26 пользователь wangfeng wangfeng (wangfeng.v1.1...@gmail.com) написал: Hi, I have resolve the problem that I can display a_b_c. What I did is modify the code in mediawiki/includes/Title.php ,in which I found something like str_replace( '_',' ',... ). But it's not

Re: [Wikitech-l] Making language selection sticky

2012-06-26 Thread Dmitriy Sintsov
26 Июнь 2012 г. 20:56:14 пользователь Denny Vrandečić (denny.vrande...@wikimedia.de) написал: Hi all, we are trying to let users switch their language - whether they are logged in or not - through a language selector. This can be either the ULS, which is progressing impressively, or just

Re: [Wikitech-l] Extension Skeleton Program

2012-06-25 Thread Dmitriy Sintsov
25 Июнь 2012 г. 20:06:19 пользователь Derric Atzrott (datzr...@alizeepathology.com) написал: Would anyone be interested in a program that generates Skeletons for new extensions?   I've noticed that when I make extensions I generally go through the exact same process (with minor

Re: [Wikitech-l] Revoking +2 (Re: who can merge into core/master?)

2012-06-16 Thread Dmitriy Sintsov
On 16.06.2012 8:20, Andrew Garrett wrote: On Sat, Jun 16, 2012 at 6:53 AM, Rob Lanphierro...@wikimedia.org wrote: On Fri, Jun 15, 2012 at 8:48 AM, Sumana Harihareswara suma...@wikimedia.org wrote: If you merge into mediawiki/core.git, your change is considered safe for inclusion in a wmf

Re: [Wikitech-l] MediaWiki tarballs and the WMF

2012-06-08 Thread Dmitriy Sintsov
8 Июнь 2012 г. 5:33:06 пользователь Tim Starling (tstarl...@wikimedia.org) написал: On 07/06/12 03:36, Mark A. Hershberger wrote: The Foundation has made MediaWiki available for everyone and that's a great thing.   But Wikimedia's funding comes from donations as a result of requests

Re: [Wikitech-l] Lua API specification

2012-06-04 Thread Dmitriy Sintsov
* Victor Vasiliev vasi...@gmail.com [Sat, 2 Jun 2012 22:43:56 +0200]: Currently there is no proper way in Lua to get such basic things about the current page name. To fix this, I propose to provide a MediaWiki API accessible from the Lua scripts:

Re: [Wikitech-l] Stance on PHP namespaces?

2012-05-17 Thread Dmitriy Sintsov
Dmitriy Sintsov. Actually dollar sign as variable name prefix comes from Perl, which was very popular language during PHP3 / PHP4 time. The authors of PHP probably wanted to simplify Perl to PHP porting. 17 Май 2012 г. 3:48:55 пользователь Terry Chay (tc...@wikimedia.org) написал On May 16

Re: [Wikitech-l] Lua: return versus print

2012-04-13 Thread Dmitriy Sintsov
On 13.04.2012 16:12, Petr Bena wrote: I have no knowledge of Lua, but I don't see what is problem with print here, the function print is supposed to print output to output device in most of programming languages, just as in this case, so I don't understand why we should want to use return (which

Re: [Wikitech-l] Dropping support for the automatic /index.php/Article

2012-03-26 Thread Dmitriy Sintsov
* Platonides platoni...@gmail.com [Mon, 26 Mar 2012 00:51:59 +0200]: On 25/03/12 11:30, Daniel Friesen wrote: So I'm considering dropping this automatic feature. Making this change will mean that MediaWiki will start outputting /index.php?title=... style URLs for everyone who hasn't

Re: [Wikitech-l] Using prototypical inheritance in dynamically loaded ResourceLoader modules

2012-03-20 Thread Dmitriy Sintsov
* Krinkle krinklem...@gmail.com [Mon, 19 Mar 2012 14:32:51 +0100]: Converted all of for..in into $.each(). The most funny thing is that $.each() did not work correctly with sparse arrays [], walking with undefs between real elements. While for..in used to work fine (FF,Chrome,IE8,IE9). So I

Re: [Wikitech-l] Video codecs and mobile

2012-03-20 Thread Dmitriy Sintsov
On 20.03.2012 20:29, Daniel Friesen wrote: On Tue, 20 Mar 2012 07:03:06 -0700, Lars Aronsson l...@aronsson.se wrote: On 03/20/2012 02:24 AM, Brion Vibber wrote: The prime competing format, H.264, has potential patent issues - like other MPEG standards there's a patent pool and certain

Re: [Wikitech-l] Using prototypical inheritance in dynamically loaded ResourceLoader modules

2012-03-19 Thread Dmitriy Sintsov
Hi! I've tweaked my code few times, trying to make it simpler: got rid of some closure calls and left only one dynamic module load at client-side. http://pastebin.com/UxyifLmx http://pastebin.com/q3Tm6Ajd http://pastebin.com/4emMDBS6 Still, it gives me headaches, because mw.loader.using(

Re: [Wikitech-l] Using prototypical inheritance in dynamically loaded ResourceLoader modules

2012-03-19 Thread Dmitriy Sintsov
* Daniel Friesen li...@nadir-seen-fire.com [Mon, 19 Mar 2012 01:35:21 -0700]: Autoloading classes is not possible. Even if every browser supported getters and we could use them to dynamically load classes, this would require synchronous http calls. Which are absolutely HORRIBLE because they

Re: [Wikitech-l] Using prototypical inheritance in dynamically loaded ResourceLoader modules

2012-03-19 Thread Dmitriy Sintsov
* Daniel Friesen li...@nadir-seen-fire.com [Mon, 19 Mar 2012 01:35:21 -0700]: ( function( $, mw ) { } )( jQuery, mediaWiki ); I modified all of three modules: main, view and edit module to the recommended pattern. http://pastebin.com/1kS6EyUu http://pastebin.com/WQzBTw6W

Re: [Wikitech-l] Using prototypical inheritance in dynamically loaded ResourceLoader modules

2012-03-19 Thread Dmitriy Sintsov
On 19.03.2012 17:23, Krinkle wrote: offtopic On Mon, Mar 19, 2012 at 9:35 AM, Daniel Friesen li...@nadir-seen-fire.comwrote: On Mon, 19 Mar 2012 00:40:54 -0700, Dmitriy Sintsovques...@rambler.ru wrote: var jqgmap = []; for ( var mapIndex in jqgmap ) { This is VERY bad JavaScript coding

[Wikitech-l] Using prototypical inheritance in dynamically loaded ResourceLoader modules

2012-03-18 Thread Dmitriy Sintsov
Hi! Can a JavaScript / ResourceLoader guru explain what's wrong with my code? Module definitions at server side: http://pastebin.com/8cmRbNxe modules are loaded correctly by the following code: http://pastebin.com/MFWk6znv It is checked many times during extension development, 'localBasePath'

Re: [Wikitech-l] Using prototypical inheritance in dynamically loaded ResourceLoader modules

2012-03-18 Thread Dmitriy Sintsov
On 18.03.2012 18:26, Dmitriy Sintsov wrote: replaced 'new MarkerController(...)' calls to 'new mw.jqgmap.MarkerController(...)' calls left from incomplete refactoring of early working (non-broken) revision, however refactored separate view / edit modules code still does not work

Re: [Wikitech-l] Auto-created gerrit accounts for users that had enough info in USERINFO

2012-03-17 Thread Dmitriy Sintsov
On 17.03.2012 2:24, Ryan Lane wrote: I've ran a script to auto-create user accounts for users who had enough information in their USERINFO file (user name, svn account name, email address). If you are one of these lucky few (there were only 28 that didn't already have accounts), then you can

Re: [Wikitech-l] Auto-created gerrit accounts for users that had enough info in USERINFO

2012-03-17 Thread Dmitriy Sintsov
On 17.03.2012 14:16, Ryan Lane wrote: My user account on MediaWiki.org is 'SVG' and my user account on labsconsole.wikimedia.org is 'Tim Weyer'. Is it because I didn't tell https://svn.wikimedia.org/svnroot/mediawiki/USERINFO/cervidae my username? In general, it's a great working script. So,

Re: [Wikitech-l] Auto-created gerrit accounts for users that had enough info in USERINFO

2012-03-17 Thread Dmitriy Sintsov
On 17.03.2012 22:04, Antoine Musso wrote: Le 17/03/12 07:09, Dmitriy Sintsov wrote: Is that only for core commit developers? I have svn account at ques...@svn.wikimedia.org and valid USERINFO. However I cannot login to the forementioned site with my svn.wikimedia.org credentials. Should I ask

Re: [Wikitech-l] How to get the article object inside a function called by hook LinkEnd

2012-03-12 Thread Dmitriy Sintsov
* Thomas Gries m...@tgries.de [Sun, 11 Mar 2012 22:38:10 +0100]: Can someone help me, please: I need the $article object (the article page, where the LinkEnd hook is called) inside a function called by hook LinkEnd. - because I want to modifiy some links in the hooked function, but only on

Re: [Wikitech-l] How to get the article object inside a function called by hook LinkEnd

2012-03-12 Thread Dmitriy Sintsov
* Thomas Gries m...@tgries.de [Mon, 12 Mar 2012 07:57:05 +0100]: Dmitriy, the second argument ( $target ) is the link target (article object) which is/has been processed by the linker, not the article, on which this link was processed. This is, what I need. It appears. that the whole

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-25 Thread Dmitriy Sintsov
* Keisial keis...@gmail.com [Sun, 25 Dec 2011 23:16:46 +0100]: On 23.12.2011 18:21, Dmitriy Sintsov wrote: I remember that PHP had some outdated and unmaintained sandboxing PECL module, however it's unmaintained for a long time. http://php.net/manual/en/runkit.sandbox.php Dmitriy

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-23 Thread Dmitriy Sintsov
On 23.12.2011 18:30, Jay Ashworth wrote: This is a really critical point: if you're going to provide an interpreted language to end-users from within a program that is, itself, written in an interpreted language, *you cannot use the underlying interpreter* to run the end-users' programs,

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-22 Thread Dmitriy Sintsov
* Owen Davis o...@wikia-inc.com [Thu, 22 Dec 2011 11:50:48 -0800]: I think that would be a nice feature to have. Amazingly enough, WikiScripts is not of the extensions that we have in our codebase at wikia (I think we're over 800+), but I will take a look at the implementation. The lua

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-22 Thread Dmitriy Sintsov
* Victor Vasiliev vasi...@gmail.com [Fri, 23 Dec 2011 09:46:46 +0400]: On Fri, Dec 23, 2011 at 9:26 AM, Dmitriy Sintsov ques...@rambler.ru wrote: Also it would be great if WikiScripts or Lua extension allowed to easily bind functions / class wrappers for another MediaWiki extensions

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-21 Thread Dmitriy Sintsov
* Owen Davis o...@wikia-inc.com [Wed, 21 Dec 2011 19:18:46 + (UTC)]: It is littered with embedded HTML and string.format statements. Ugh. I'm going to look at something simple like Moustache (which has both JS and Lua implementations already) as a proof of concept. Does anybody have a

Re: [Wikitech-l] Making the Lua/Javascript decision (Re: Performance roadmap update)

2011-12-21 Thread Dmitriy Sintsov
* Owen Davis o...@wikia-inc.com [Wed, 21 Dec 2011 19:18:46 + (UTC)]: It is littered with embedded HTML and string.format statements. Ugh. I'm going to look at something simple like Moustache (which has both JS and Lua implementations already) as a proof of concept. Does anybody have a

Re: [Wikitech-l] MediaWiki is a living beast: please try to test code and commit it only when it works

2011-12-20 Thread Dmitriy Sintsov
* Brion Vibber bvib...@wikimedia.org [Tue, 20 Dec 2011 14:46:07 -0800]: MediaWiki is a mature, living breathing beast. When making lots and lots of little tweaks, please try to make sure they actually work correctly prior to committing. I'm becoming convinced that a huge benefit of the

Re: [Wikitech-l] LocalWiki released

2011-12-17 Thread Dmitriy Sintsov
On 17.12.2011 6:01, Philip Neustrom wrote: Page-content plugins will need editor plugins, yeah (like our include page plugin). But I think that's a good thing. How do these plugin work when there is no XML injection into page content? How the final layout is being build? We take the HTML5

Re: [Wikitech-l] LocalWiki released

2011-12-15 Thread Dmitriy Sintsov
* Philip Neustrom phi...@localwiki.org [Thu, 15 Dec 2011 14:50:32 -0800]: Keep in mind that with our generic versioning framework we can version and diff any structured data, independent of wiki page content. So there's probably no need to stuff extension invocation inside of page content.

Re: [Wikitech-l] LocalWiki released

2011-12-14 Thread Dmitriy Sintsov
* Philip Neustrom phi...@localwiki.org [Wed, 14 Dec 2011 12:40:55 -0800]: Realized I never sent an announcement here. I think you folks'd be really interested in checking out what we've been working on: http://localwiki.org We just did our first general-public software release. There's

Re: [Wikitech-l] Mediawiki 2.0

2011-12-07 Thread Dmitriy Sintsov
* Trevor Parscal tpars...@wikimedia.org [Tue, 6 Dec 2011 17:21:43 -0800]: The hype of 2.0 aside, is there a guideline for what should constitute a major version number change? It looks like we are doing something like: Major.Minor.Release 1.18 = Major: 1, Minor: 18, (alpha|beta|etc.)

Re: [Wikitech-l] Mediawiki 2.0

2011-12-07 Thread Dmitriy Sintsov
* Erik Moeller e...@wikimedia.org [Tue, 6 Dec 2011 17:32:06 -0800]: IMO a switch to a visual editor as the default editing environment would be sufficient to merit the 2.0 moniker. Heck, it'd be sufficient to get rid of the double square brackets in the logo. ;-) Let's hope that raw wikitext

  1   2   3   4   >