[Wikitech-l] How wikimedia handle starting and stopping lsearchd daemon?

2009-10-07 Thread Anon Sricharoenchai
How does wikimedia handle starting and stopping lsearchd daemon?
Is it handled by things like /etc/init.d/lsearchd?
Could you distribute /etc/init.d/lsearchd along with lucene-search package?

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


Re: [Wikitech-l] A suitable error message for iPhones

2009-10-07 Thread Paul Houle
David Gerard wrote:
 Are you *sure* we can't put a narky message when iPhone users click a
 video? Adobe do!

 http://twitpic.com/kf361

 (assuming it's real - can anyone with an iPhone please check?)

   
Adobe is the most feared company on the web right now.

Even though Microsoft has the most popular browser,  a number of 
excellent alternatives exist:  Firefox, Safari, Opera, Konquerer, and 
Chrome.  They don't support 100% of what IE supports,  but you can 
browse the web all day with them and rarely find a site that they don't 
work with.

There are no entirely satisfactory replacements for Flash and 
Acrobat,  and certainly not cross-platform and widely installed.
   
On top of all that,  Apple and Microsoft both have personal 
vendettas against Adobe.

Five years ago web video was buried beneath a three-way battle 
between the MicrosoftOnlyMediaPlayer,  TheRealBadMediaPlayer,  and 
TheQuicktimeMediaPlayerThatWorksOccasionally.  Publishing video online 
would typically mean creating files for all three players,  and probably 
at 2-4 different quality levels,  so you might have 6-12 files.  Then 
there would be a complex hunk of javascript that would try to guess 
which player you had,  which would work right...  if you were lucky.

Then there was the whole codec nightmare;  even if you had the right 
player,  you probably didn't have the right codec.  Although there were 
supposedly mechanisms for installing new codecs,  you'd usually risk 
wrecking your ability to play video at all if you tried to install a codec.

Macromedia (later aquired by Adobe) quietly introduced video 
capability in Flash...  It was a few versions later when Flash video 
players were widespread,  and then all of a sudden people realized that 
web video could be as simple as pushing Play and having the video 
really play.

Apple and Microsoft,  both of whom have ambitions to control digital 
video,  will never forgive Adobe.



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


[Wikitech-l] Importing English Wikipeida XML Dumps into MediaWiki

2009-10-07 Thread O. O.
Hi,

 I have been importing the English Wikipeida XML Dumps every few 
months (last time I did this was in June). I then used xml2sql and it 
always worked for me. Now I attempted the import on the latest dump 
enwiki-20090920-pages-articles.xml (and on the dump from 
enwiki-20090810-pages-articles.xml), both of these have the error:

 $  xml2sql enwiki-20090920-pages-articles.xml
unexpected element redirect
xml2sql: parsing aborted at line 33 pos 16.

So then I try mwdumper  and after 1.4 M Pages, it craps out:
……
1,423,000 pages (957.283/sec), 1,423,000 revs (957.283/sec)
1,424,000 pages (957.465/sec), 1,424,000 revs (957.465/sec)
Exception in thread main java.lang.IllegalArgumentException: Invalid 
contributor
 at 
org.mediawiki.importer.XmlDumpReader.closeContributor(Unknown Source)
 at org.mediawiki.importer.XmlDumpReader.endElement(Unknown Source)
 at 
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
 at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown 
Source)
 at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown 
Source)
 at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
Source)
 at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown 
Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown 
Source)
 at 
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
 at org.mediawiki.importer.XmlDumpReader.readDump(Unknown Source)
 at org.mediawiki.dumper.Dumper.main(Unknown Source)


I tried the importDump.php and I get errors of the kind (MediaWiki 1.14.0)
…
Warning: xml_parse(): Unable to call handler in_() in 
/var/www/includes/Import.php on line 437
Warning: xml_parse(): Unable to call handler in_() in 
/var/www/includes/Import.php on line 437
Warning: xml_parse(): Unable to call handler out_() in 
/var/www/includes/Import.php on line 437
….
(Sorry I don’t know where this error starts, but it processes a few 
thousand pages, up till I get sick of looking at it before failing.)

Any ideas if the format of the XML files have changed because I can 
swear that as of June or may be May, I had xml2sql working. I know that 
I might need to upgrade MediaWiki to 1.15, however importDump.php 
usually does not work for the English Wikipedia anyways.

I would be grateful if someone has any ideas?
Thanks guys,
O. O.

P.S. http://download.wikimedia.org/tools/ does not have the source of 
MWDumper. I thought this was open source?


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


Re: [Wikitech-l] Importing English Wikipeida XML Dumps into MediaWiki

2009-10-07 Thread Platonides
O. O. writes:
 (Sorry I don’t know where this error starts, but it processes a few 
 thousand pages, up till I get sick of looking at it before failing.)
 
 Any ideas if the format of the XML files have changed because I can 
 swear that as of June or may be May, I had xml2sql working. I know that 
 I might need to upgrade MediaWiki to 1.15, however importDump.php 
 usually does not work for the English Wikipedia anyways.
 
 I would be grateful if someone has any ideas?
 Thanks guys,
 O. O.

Seems it fails on the new redirect tag.

 P.S. http://download.wikimedia.org/tools/ does not have the source of 
 MWDumper. I thought this was open source?

MWDumper source is available at
http://svn.wikimedia.org/viewvc/mediawiki/trunk/mwdumper/

It should be noted at the readme.


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


[Wikitech-l] Has anyone heard of a file download issue with Mediawiki / Wikipedia?

2009-10-07 Thread George Herbert
I have a Wikipedia OTRS ticket related to someone who keeps getting
Download this file dialogs when they go to Wikipedia pages...

System description is:

I have Vista and IE 8.0.6001.18813.

Page they keep seeing this on is:

en.wikipedia.org/wiki/W._Edwards_Deming

Has anyone seen behavior like this before?  That's a very standard
browser and OS.

Any ideas appreciated.



-- 
-george william herbert
george.herb...@gmail.com

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


Re: [Wikitech-l] Has anyone heard of a file download issue with Mediawiki / Wikipedia?

2009-10-07 Thread Simon Walker
2009/10/8 George Herbert george.herb...@gmail.com:
 I have a Wikipedia OTRS ticket related to someone who keeps getting
 Download this file dialogs when they go to Wikipedia pages...
[snip]
 Has anyone seen behavior like this before?
[snip]

I have seen it happen a couple of times, on various pages.

I'm using Ubuntu and Firefox, various versions of both (ubuntu
versions available during past 2-3 years, and the versions of firefox
in the main ubuntu package repositories)

I've only seen it happen about 10-15 times in the past 2-3 years, so
it doesn't happen regularly enough for me to figure out what exactly
is going on. I can never reproduce when I want to.

I sometimes wonder if it's something to do with my connection being
interrupted, and the page partially downloaded (perhaps only part of
the headers?)

I really don't know much about this area though, so this is a stab in
the dark, and shouldn't be relied upon.

-- 
Regards,

Simon Walker
User:Stwalkerster on all public Wikimedia Foundation wikis
Administrator on the English Wikipedia
Developer of Helpmebot, the ACC tool, and Nubio 2 FAQ repository

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


Re: [Wikitech-l] Has anyone heard of a file download issue with Mediawiki / Wikipedia?

2009-10-07 Thread Aude
On Wed, Oct 7, 2009 at 10:50 PM, George Herbert george.herb...@gmail.comwrote:

 I have a Wikipedia OTRS ticket related to someone who keeps getting
 Download this file dialogs when they go to Wikipedia pages...

 System description is:

 I have Vista and IE 8.0.6001.18813.

 Page they keep seeing this on is:

 en.wikipedia.org/wiki/W._Edwards_Deming

 Has anyone seen behavior like this before?  That's a very standard
 browser and OS.

 Any ideas appreciated.



That will happen when the Use external editor by default option is checked
in editing preferences.  In order to get external editors to work, the
browser needs to be configured.

http://www.mediawiki.org/wiki/Manual:External_editors

If that's not the problem, then I'm not sure what the problem is.

-Aude





 --
 -george william herbert
 george.herb...@gmail.com

 ___
 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