Re: [Wikitech-l] Size of DB/table of enwiki after import into MySQL

2009-11-23 Thread Dmitriy Sintsov
* Ryan Chan ryanchan...@gmail.com [Mon, 23 Nov 2009 00:45:33 +0800]:
 May I ask why still using the 4.0 version? Seems 5.1 above did provide
 much performance enhancements?

There was a message at mysql.com site that google performance 
ehancements were incorporated into version 5.4.
Dmitriy

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] [MediaWiki] Enhancement: LaTeX images quality (eliminate white background)

2009-11-23 Thread Dmitriy Sintsov
* Aryeh Gregor simetrical+wikil...@gmail.com [Thu, 19 Nov 2009 
12:49:36 -0500]:
 We really don't want to increase the amount of non-PHP code in core
 unless absolutely necessary, IMO.  PHP is an awful language, but it's
 the only thing that all current MediaWiki developers know.  Anything
 else is much harder to maintain, because only some subset of people
 with commit access can competently alter it.  I'm sure most committers
 know basic C syntax, but few would be confident enough to make
 significant changes to a C program (and if they tried they'd probably
 introduce giant memory leaks and such).  Just a while ago, it took
 days to fix a simple XSS in Timeline because it was written in Perl.

 Besides, there's no need to reinvent the wheel.  dvipng (which is
 apparently used here) should be able to do whatever we want, as far as
 I can tell.  Failing that, ImageMagick or such would likely do the
 trick.

Recently I've come to interesting implementation of PHP in Java:
http://www.caucho.com/resin-3.0/quercus/
They claim it runs MediaWiki. Probably can be used for mixed PHP / Java 
environment and for the smooth transition to Java?
Dmitriy

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] skins

2009-11-23 Thread Roan Kattouw
2009/11/23 李琴 q...@ica.stc.sh.cn:
 I followed  the guidelines and made a special page.But I can't see it
 anywhere.

 Where can I see it?

 Or maybe I didn't add the special page to special list?  :)

If you followed the instructions in
http://www.mediawiki.org/wiki/Manual:Special_pages#The_Setup_File and
put require_once($IP/extensions/MyExtension/MyExtension.php); in
your LocalSettings.php , your special page should show up in
Special:Specialpages.

Roan Kattouw (Catrope)

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] skins

2009-11-23 Thread 李琴
yeah,I know that ,but I didn't see it.Even I tried it again.

You know  special pages has a number of categories ,such as Maintenance 
reports,Users and rights,Login / sign up and so on .
 
Maybe we didn't add the special page to special list.That's why I can't see 
it.
 
Maybe there are other problems?


Thanks 

vanessa lee
 

 


-Original Message-
From: Roan Kattouw roan.katt...@gmail.com
To: Wikimedia developers wikitech-l@lists.wikimedia.org
Date: Mon, 23 Nov 2009 12:54:48 +0100
Subject: Re: [Wikitech-l] skins


2009/11/23 李琴 q...@ica.stc.sh.cn:
 I followed  the guidelines and made a special page.But I can't see it
 anywhere.

 Where can I see it?

 Or maybe I didn't add the special page to special list?  :)

If you followed the instructions in
http://www.mediawiki.org/wiki/Manual:Special_pages#The_Setup_File and
put require_once($IP/extensions/MyExtension/MyExtension.php); in
your LocalSettings.php , your special page should show up in
Special:Specialpages.

Roan Kattouw (Catrope)

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] skins

2009-11-23 Thread 李琴
OK, I see it  Thanks

vanessa lee
 


-Original Message-
From: Roan Kattouw roan.katt...@gmail.com
To: Wikimedia developers wikitech-l@lists.wikimedia.org
Date: Mon, 23 Nov 2009 12:54:48 +0100
Subject: Re: [Wikitech-l] skins


2009/11/23 李琴 q...@ica.stc.sh.cn:
 I followed  the guidelines and made a special page.But I can't see it
 anywhere.

 Where can I see it?

 Or maybe I didn't add the special page to special list?  :)

If you followed the instructions in
http://www.mediawiki.org/wiki/Manual:Special_pages#The_Setup_File and
put require_once($IP/extensions/MyExtension/MyExtension.php); in
your LocalSettings.php , your special page should show up in
Special:Specialpages.

Roan Kattouw (Catrope)

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] 235 Auto unit conversion

2009-11-23 Thread Sylvain Leroux
First of all, thanks for your replies.


In short, in my first message, I failed to explain the targeted use case - which
has somehow moved away from BUG-235. So here it is:
o I was targeting general MediaWiki wikis, not necessary Wikipedia
o My primary concern was to allow an administrator to easily add support for
conversion. Without relying on the end-users (the contributors) good will or
technical knowledge.


Now for the long answer.

w...@konsoletek.com wrote:
 {{Convert}} on Wikipedia isn't one single fancy template, it is actually 
 several hundred.
I think it is actually several hundred with the new design (as of NOV-2009), but
the old design was requiring several thousands (!) templates. According to [1]
with the new design new options could be implemented by changing just a few
subtemplates, rather than hundreds at a time.


jcsahnwa...@gmail.com wrote:
 Why not just use http://en.wikipedia.org/wiki/Template:Convert ?
On its side, {{Convert}} has the advantage of being able to convert many
different things. Keeping it with the vast diversity of knowledge carried by
wikipedia (from converting musical notes to pitch [3] to converting weapon
calibres [4], all of this with several different algorithms). Moreover, by 
working at template level, any contributor is able to edit/update/fix it. 
Without requiring any special privilege.

Someone may argue that it has its own drawbacks[2], but anyway Wikipedia is a 
special case: it has enough manpower to fix and/or update both this template 
and 
the articles that uses (or should use) it.

This is simply not the case for the general MediaWiki user. I think of one in
house wiki that requires handling of some fancy units. Like expressing
quantities as kibibytes as well as kilobytes. Or express throughput as bytes/s
or bits/s. Eventually using those values for producing embedded graphics.
I don't think those units are supported by {{Convert}} now, and the point is
that it requires a substantial amount of work for a non-specialist of that
template to add support for them.
For small wikis, I think it is more effective to let the administrator install a
new extension or edit a few lines of PHP to provide the support for a new
conversion.


Aryeh Gregor simetrical+wikil...@gmail.com wrote:
 The idea would be something like:
 {{#unit: 1000 ft|m}} =  span title=304m (1000ft)304m/span
 
 It would make more sense to have it output simply 304.  That way it could
 be effectively used in a template to achieve any desired formatting.
I agree with that. In order to be effectively used in template, the converter
should only perform the conversion and let the formating at the caller's charge.


Last, but not least, I spend a few hours this WE working on a prototype. It
sounds promising. I intend to upload a demo in the following hours.



Best regards,
Sylvain.



[1] http://en.wikipedia.org/wiki/Wikipedia:A_plan_to_reduce_Convert_subtemplates
[2] http://en.wikipedia.org/wiki/Wikipedia:Analysis_of_Template:Convert_problems
[3] http://en.wikipedia.org/wiki/Template:Convert/note
[4] http://en.wikipedia.org/wiki/Template:Convert/calibre


Aryeh Gregor a écrit :
 On Fri, Nov 20, 2009 at 12:04 AM, Sylvain Leroux sylv...@chicoree.fr wrote:
 
 
 
 The idea would be something like: {{#unit: 1000 ft|m}} =  span 
 title=304m (1000ft)304m/span
 
 It would make more sense to have it output simply 304.  That way it could 
 be effectively used in a template to achieve any desired formatting.
 
 ___ Wikitech-l mailing list 
 Wikitech-l@lists.wikimedia.org 
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l

-- 
sylv...@chicoree.fr
http://www.chicoree.fr



___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Wikipedia database

2009-11-23 Thread zh509
Thanks. but is that page_latest is unique in page table?

On Nov 21 2009, Roan Kattouw wrote:

2009/11/21  zh...@york.ac.uk:
 I need use rev_user and page_namespace to do crossing-analysis. How i can
 put them in the one table? thanks again.

You don't need to put them in one table, just use a query with a JOIN.

Roan Kattouw (Catrope)

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l



___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] Wikipedia database

2009-11-23 Thread Roan Kattouw
2009/11/23  zh...@york.ac.uk:
 Thanks. but is that page_latest is unique in page table?

Yes. Every revision belongs to one page only (rev_page).

Roan Kattouw (Catrope)

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] 235 Auto unit conversion

2009-11-23 Thread Sylvain Leroux
Here is a demo of the current prototype:
http://www.chicoree.fr/w/UConvert

As you will see, the core functionalities are here. Since my objective was to 
have a working version quickly, I need to spend some time now to clean-up the 
code before releasing an alpha version.

Sylvain.



___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] Handling of system messages got strange

2009-11-23 Thread Uwe Baumbach
Liangent (liang...@gmail.com) wrote Sun Nov 22 16:32:33 UTC 2009:


 I found nothing special on http://wiki-de.genealogy.net/ , and I have
 seen such behavior on Wikipedia for few times -- maybe it's just a
 temporary software error?

This is because I healed obvios places.

At least one example remains:

http://wiki-en.genealogy.net/Special:BookSources

Is it possible that during update language files got corrupted?


Uwe (Baumbach)
u.baumb...@web.de

__
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] [MediaWiki] Enhancement: LaTeX images quality (eliminate white background)

2009-11-23 Thread Brad Jorsch
On Sat, Nov 21, 2009 at 06:30:35PM -0500, Aryeh Gregor wrote:
 On Fri, Nov 20, 2009 at 3:39 AM, Alexander Shulgin
 alex.shul...@gmail.com wrote:
  So, there can be no way to provide non-alpha transparent image to
  satisfy all possible styles.
 
 No, but if the overwhelming majority of viewers see a light blue
 background, it would make a lot more sense to have a light blue
 background on the formula than a white background.  Both will look
 wrong on some style, but they may as well at least look right on the
 default style.

If we want to skip transparency and just allow changing the background
to any other solid color, it looks like it's pretty easy for a
bare-bones fix: just add this as line 736 (in r59357) of texutil.ml:

| \\pagecolor- (tex_use_color (); LITERAL (TEX_ONLY 
\\pagecolor))

Then people can use the \pagecolor{...} command to change the
background just as they can use \color{...} now to change the
foreground color (see [[m:Help:Math#Color]]).

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] [MediaWiki] Enhancement: LaTeX images quality (eliminate white background)

2009-11-23 Thread Aryeh Gregor
On Mon, Nov 23, 2009 at 1:11 PM, Brad Jorsch b-jor...@northwestern.edu wrote:
 If we want to skip transparency and just allow changing the background
 to any other solid color, it looks like it's pretty easy for a
 bare-bones fix: just add this as line 736 (in r59357) of texutil.ml:

    | \\pagecolor        - (tex_use_color (); LITERAL (TEX_ONLY 
 \\pagecolor))

 Then people can use the \pagecolor{...} command to change the
 background just as they can use \color{...} now to change the
 foreground color (see [[m:Help:Math#Color]]).

That sounds fairly sensible.  Are there any objections?  The annoying
thing will be if the default background color is changed, and all the
math images in a namespace suddenly look wrong.

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l