[00:00:45] <^demon> Is there a quick way to drop all tables in a database *not* matching a certain pattern? [00:01:13] 03nad * r34700 10/trunk/phase3/includes/DatabaseSqlite.php: remove licence etc to make same as the other DB includes [00:03:18] 03nad * r34701 10/trunk/phase3/includes/DatabaseMssql.php: oops, interwiki inserts were commented out [00:03:54] ^demon, bash script! [00:05:54] <^demon> Simetrical: Duh, makes sense. [00:06:25] ^demon, I've done that to switch all tables to InnoDB in a biggish database (100+ tables, maybe). [00:07:13] mysql -e "SHOW TABLES" databasename | awk ... | sed [add ALTER TABLE wrapper] | mysql -e databasename [00:07:15] Something like that. [00:09:35] <^demon> Thanks, I'll play around with something like that. [00:13:41] 03(FIXED) Protecting a page flags it even if the admin does not have the right to do so - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14099 +comment (10JSchulz_4587) [00:16:46] 03(mod) "The following 200 pages are in this category" - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14083 (10N/A) [00:17:10] 03nad * r34702 10/trunk/extensions/NewUserMessage/NewUserMessage.php: add setting [00:18:58] 03nad * r34703 10/trunk/extensions/NewUserMessage/NewUserMessage.php: use not literal text [00:22:47] 03(mod) "The following 200 pages are in this category" - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14083 +comment (10Simetrical+wikibugs) [00:23:03] Is nad on IRC? [00:24:46] Simetrical: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/maintenance/commandLine.inc?r1=34587&r2=34694&sortby=date [00:24:48] :) [00:24:50] hey everybody [00:26:08] hkya [00:26:11] hiya even [00:28:40] Simetrical: Hi yes I'm here :) [00:32:49] Arana1, you should try escaping $ in your commit messages. ;) [00:33:04] I know I just realised that :-/ [00:33:50] I added the edit summary just now [00:34:21] I hadn't even realised this extension was in svn until this morning when someone asked for some help with it [00:39:43] Simetrical: I don't even know half those shell users [00:39:59] and who is Camille Constans? [00:42:21] AaronSchulz, probably half last logged in two years ago. :) [00:46:24] 03(NEW) Logo of Georgian Wikibooks - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14101 15enhancement; normal; Wikimedia: General/Unknown; (poqrtale11) [01:05:40] http://en.wikipedia.org/wiki/Anonymous_%28group%29 [01:05:53] always makes me thing of [[Emergent behavoir]] ;) [01:06:52] http://uncyclopedia.org/wiki/Anonymous [01:07:24] SoC posted a big youtube video lately [01:07:37] has ad banners on the side of YT [01:16:33] i'd like a freehost mediawiki installation that does image thumbnailing [01:16:38] i've been trying for a week [01:16:44] created about a dozen freehost accounts [01:16:50] all have some issue [01:17:00] safe mode, shell exec disabled [01:17:09] Free hosts are going to suck. [01:17:09] GD broken, dunno [01:17:14] granted [01:17:24] You're always going to have safe mode and shell execs disabled unless they're totally incompetent. [01:17:27] but i'd prefer the suckiness be slow and possible unreliable [01:17:39] rather than outright broken [01:17:43] They'll stand a good chance of refusing to let the wiki be used much, MW uses a ton of CPU. [01:18:00] well [01:18:19] given the trouble i've had, i admit i'm hesitant to hand over cash [01:18:26] what if it still doesn't work? [01:18:39] Pick another host. [01:18:46] It's only a few bucks a month for the cheap ones. [01:18:48] then i get to complain, hope it's fixed, and grouse about my money lost [01:19:01] Yeah, $10 or whatever, just don't commit to a whole year or anything up front. [01:19:17] i'm starting to lean that way [01:19:30] truth is, i'm poor and cheap [01:19:45] i can't count how many domain names, for example, i bought hoping to get sth started [01:19:49] then it never took off [01:20:06] now i want to see some sort of minimal performance before i throw any cash at all at sth [01:20:12] See, my server is $300/month dedicated. I can never sympathize with people like you. :) [01:20:18] ha ha [01:20:23] i understand your point [01:20:46] but at 300/mo, you will get tech support to come over to your house and massage your back if that's what you want [01:21:14] if i just throw them $10, i may not get any better support than i get freehosted [01:21:40] I don't need tech support, personally, unless they break the DNS or something. [01:22:01] Simetrical: how much do you make in ads? [01:22:52] AaronSchulz, I'm not the owner, don't know the exact figure. >$400/month last I knew. [01:23:04] breaking even :) [01:23:20] what is your site? [01:30:13] Raymond_? [01:31:36] *Skizzerz has a decent free host... exec is enabled, no safe mode... only problem is forced ads, but you get to choose where to put them [01:32:03] [01:32:05] "hot girls from Columbus - login now!" [01:32:25] "learn the real TRUTH about Scientology - scientology.org!" [01:33:00] xD [01:36:46] Xiong: you could look at exisiting mediawiki farms, although the free ones of those, while good at running mediawiki, will have restrictions on topic and configurability [01:36:57] done that [01:37:08] installing mediawiki on a freehost is a step up [01:37:17] all kinds of issues with wiki farms [02:08:49] hello? [02:09:24] !ask | trigun0x2 [02:09:24] --mwbot-- trigun0x2: Don't say "I have a question", or ask "Is anyone around?" or "Can anyone help?". Just ask the question, and someone will help you if they can. Also, please read < http://workaround.org/moin/GettingHelpOnIrc > for a good explanation of getting help on IRC. [02:17:54] Is there an extension to make the search engine better? [02:20:09] i notice that en.wikipedia.org isn't editable.. i was looking for a quick way of doing a similar 'welcome' box on another site in their mediawiki page, anyone know of a how-to? [02:21:13] i was hoping to look at the source behind the main wiki page which is why i was wanting to 'edit' it.. basically review the code [02:22:30] ybit: You can view the source by clicking the "view source" tab or http://en.wikipedia.org/w/index.php?title=Main_Page&action=edit [02:22:45] thanks nakon [02:24:46] when they refer to monobook.css do they mean the on in the folder monobook then main.css? [02:25:32] [[MediaWiki:monobook.css]] [02:28:56] doesn't say, i checked there [02:42:14] 03(NEW) API query for template usage involving multiple titles and namespace filter times out - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=14102 normal; normal; MediaWiki: API; (carnildo) [02:50:50] *AaronSchulz sighs [02:52:08] *Splarka hands Aaron a tissue [02:55:22] *Charitwo hands Splarka a toaster [02:55:39] pass it forward? [02:55:51] get out of my head [02:56:07] who put a toaster in your head? [02:56:51] i blame Warpath [03:06:52] http://heybryan.org/mediawiki/index.php/Main_Page [03:06:55] my bad [03:10:35] came here to see legality of scripting tcl to scrape teh wikimedia/wikipedia [03:10:36] http://forum.egghelp.org/viewtopic.php?t=13586&postdays=0&postorder=asc&start=19 [03:10:50] am i correct to assume this public script, being gnu and verbatim = legal use of scraping? [03:11:39] so you want to scrape all of the content on wikipedia? [03:11:58] problem is.. already have been [03:12:04] and script is released into general public [03:12:12] not malicious, but wondering legality [03:12:30] and its not just wikipedia, the script can parse anything mediawiki based [03:12:32] mostly [03:13:00] wondered on how teh wiki community felt about such a tool [03:13:11] realize its strictly used to relay verbatim information onto the irc screen as its a browser [03:13:13] nothing more [03:13:33] it is more a question of violation of terms of service, than of legality, probably (IANAL) [03:14:00] according to copyleft information [03:14:08] which is basically how wikipedia falls [03:14:14] its left wide open to interpretation [03:14:16] wikimedia shuts down mirrors that violate the GFDL when possible, but.. they also shut down live mirrors by simply blocking the bots from scraping [03:14:28] that would be possible tho [03:15:00] lets say, a user, creates a mediawiki page, and has an irc channel to support it of sorts [03:15:00] the live mirror bots can be perfectly legal, but if they attract attention by using too many resources, they'll be blocked by sysadmins [03:15:08] to relay from the wiki to your channel is impossible [03:15:14] there is no software to make this happen [03:15:26] the bots arent bots mind u [03:15:35] its an eggdrop tcl script approaching the website as a lynx browser [03:15:43] hoping to get text results, which is why it identifies itself as so [03:16:22] if it's just being used on occasion, I don't think that it will cause any issues [03:16:55] where instead of pasting urls to wikipedia articles as you do here [03:17:04] you could !w article name#subtag [03:17:10] and the eggie would show u whats there [03:17:34] im guessing that would be fair acceptable use [03:17:38] if done in moderation [03:18:02] if your question is about wikimedia server access in particular, you can ask in #wikimedia-tech ... the general answer given is that as long as requests are limited to a sane amount (no more than one per second), use &maxlag to keep from hogging resources during peak hours, and send a detailed user agent with author/maintainer contact, then there is no problem [03:18:39] the script is actually screen scraping [03:18:41] but that the database dumps and static dumps are a much better resource than scraping, if you need a significant amount of info [03:18:52] its not actually using any API based to access wikipedia/wikimedia sites [03:18:57] its purely done by templating [03:19:19] the API is actually a bit more server intensive, as it doesn't cache as well as the regular page views [03:19:46] the only issue i have using regular screen scrape technique [03:19:54] hi [03:19:56] is the need to reload for redirects until arriving at the destination page [03:20:01] hi fire [03:20:18] so it fires off three pages loads in succession at times [03:20:31] the regular search, with no top result [03:20:35] so grabs 1st result, goes there [03:20:38] final page, scrapes that [03:20:46] if you use action=view (default action) and no redirect=no it should show the destination page info [03:20:55] ahh [03:21:10] the URI is wrong, as it is not a 30x redirect, but the , <h1>, and content is all as it would be on the destination [03:21:39] <speechless> yeah, and thats mostly what the script hunts down [03:21:42] <speechless> and the line items [03:21:46] <speechless> so it can show tables of contents [03:22:37] <speechless> !wikipedia mediawiki [03:22:37] --mwbot-- A massively multiplayer online role-playing game (MMORPG) where players can click on the "edit this page" tab at the top of each level and add quips of information. Then, the Wikipedia Game Masters (GMs) check over these "edits" and if they are bad, the player is sent to "WikiJail," where they must appease the god Jimbo in order to escape. However, good "edits" gain the player "contributions", the much sought-after currency of Wikipedia. [03:22:39] <speechless> MediaWiki | ToC: History; Release history; Key features; Rich content; Organization; Customization; Extensions; Access and groups; Performance; Limitations; See also; References; External links @ http://en.wikipedia.org/wiki/Mediawiki#toc [03:22:45] <speechless> shows kinda that like on TOC [03:23:00] <speechless> its a nice script, non malicious [03:23:23] <speechless> and it handles multi language on top of it all [03:23:58] <speechless> and those funny .28.35 subtag encodings ... heh [03:24:00] <Splarka> http://www.mediawiki.org/wiki/Manual:Maxlag_parameter [03:24:10] <speechless> found it odd subtags are encoded with dots, yet main url's with percents [03:24:43] <speechless> and yeah, im using the somewhat lacking http package [03:24:52] <speechless> i may shift to pure socket layers so i have full access to http headers [03:26:07] <Fire> hi ktc [03:26:14] <KTC> hello Fire [03:26:20] <Splarka> {{anchorencode}} and {{urlencode}} are wikicode methods to replicate the anchor encoding and url encoding used by the software [03:26:44] <Splarka> there are several odd encoding methods used in the software, and some are hard to replicate outside of php [03:27:04] <Splarka> like the per-page CSS class in the <body>, escapes any odd characters to an underscore [03:35:11] <pizzahead> I thought if you made a page off of a root, ie. entry1:entry2 and the root had cascading protection turned on the later part , entry2, would carry those permissions? [03:36:20] <nakon> cascading protection only protects pages that are transcluded on the page being protected [03:37:07] <pizzahead> transcluded? [03:37:16] <derwin> is there a "standard" way to create a template of theoretically infinite length which works like a "for" loop? [03:37:28] <derwin> !transclusion | pizzahead [03:37:28] --mwbot-- pizzahead: I don't know anything about "transclusion". You might try: !lst [03:37:29] <pizzahead> nakon: I get what you are saying [03:37:32] <derwin> :/ [03:37:53] <pizzahead> I thought I was doing that by creating entry1:entry2 [03:38:42] <pizzahead> I was about to create a namespace and realized I'm not creating the related pages right [03:38:47] <Splarka> derwin: there are some... [03:38:58] <wikibugs> 03(NEW) Internal server error on English Wiktionary - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14103 normal; normal; Wikimedia: General/Unknown; (md5) [03:38:58] <Splarka> http://meta.wikimedia.org/wiki/Template:For [03:39:04] <derwin> Splarka: that sentence usually ends with "and none work very well.." [03:39:17] <Splarka> it was implied by the ellipsis [03:39:22] <derwin> ;) [03:39:35] <Splarka> infinite being relative, that one for example only works 150 times [03:39:36] <derwin> I need it to work "well" but not "very well" [03:39:43] <derwin> right, I don't really need "infinite" [03:39:49] <derwin> 150 is in the right scale [03:39:57] <Splarka> you can do something else... [03:40:04] <derwin> what would you suggest? [03:40:10] <Splarka> depends on your needs [03:40:16] *Splarka is looking for {{tile}} [03:40:43] <derwin> I want to optionally print a line of something like a table or a list, where the item is a page name, if that pagename #ifexists (with parserfunctions) [03:40:51] <Splarka> http://test.wikipedia.org/wiki/Template:Tile [03:41:13] <derwin> in general there will be a list under 5 items [03:41:18] <derwin> but there could be as many as, say, 150, ever [03:41:26] <Splarka> note that there is a limit to #ifexist calls [03:41:47] <Splarka> set to 500 per page on wikimedia wikis, currently [03:41:50] <derwin> yea I notice the builtin [03:42:03] <derwin> shouldn't be a concern, again, 150 would be.. 10 years from now, say [03:42:05] <Splarka> (view any page source, see: "Template argument size: 11136/2048000 bytes" in a comment) [03:42:07] <Splarka> heh [03:42:52] <derwin> hrm, how would I use "tile" with ifexists? [03:43:04] <derwin> " Login now and experience the delights of the site notice instead! " lol [03:43:19] <Splarka> it's a trick [03:43:31] <Splarka> "Curious? Log out and view the l33t anon-user notice." [03:43:34] <Splarka> if you log in [03:43:45] <derwin> heh [03:44:17] <Splarka> tile probably wouldn't work well in that case, but is an interesting for/loop type thing built in two dimensions [03:47:31] <derwin> Splarka: is this "for" template likely to be one of those mediawiki templates that attempting to copy turns into template dependency hell? [03:47:38] <derwin> is there some way you're "supposed" to do that sort of thing? [03:49:49] <Splarka> the "supposed" method is not to do it, because mediawiki is very much not supposed to be a programming language ^_^ [03:50:53] <derwin> heh. [03:51:01] <Splarka> Tim and brion commonly revert certain changes that attempt to make it too much of one, and will not install extensions like StringFunctions or DPL (except on wikinews) on Wikimedia, for several reasons.. such as performance, wikicode complexity, and not enough bribes [03:51:03] <derwin> <- teh guilties [03:51:15] <derwin> I agree with that, philosophically, actually [03:51:31] <derwin> because it is so freaking complicated to do even simple stuff that works in general cases [03:51:31] <Splarka> an example given is, that wikicode is turning in to an accidental programming language, which is a horrible situation, like mIRC scripting code [03:51:39] <derwin> yes. [03:51:57] <Splarka> a mix of [[]]{{}}{{{}}}<> syntax coupled with template call dependancy... [03:51:57] <derwin> a markup system with neat features should not be mistaken for a general purpose programming language :) [03:52:12] <derwin> yes, it's that old thing "every language with enough features turns into LISP" [03:52:23] <Splarka> they'd like to introduce a real template scripting language, but would have a hard time finding the perfect one [03:53:07] <Splarka> (like server-side javascript parsing, haha!) [03:53:15] <derwin> but yeah, agree, I am coming to mediawiki from perl land [03:53:21] <derwin> and I am trying very hard not to think of it like programming [03:54:07] <derwin> I am limiting the use of "magic" template pages to where they serve an obvious and generalizable function [03:54:21] <Splarka> anyway, on meta.wikimedia.org and mediawiki.org and especially en.wikipedia.org you'll find lots of esoteric templates [03:54:29] <derwin> with the understanding that every one I use creates insane complexity [03:54:32] <derwin> yeah, en is out of control [03:54:45] <Splarka> http://en.wikipedia.org/wiki/Special:PrefixIndex/Template:For [03:55:14] <derwin> "former relations of zimbabwe" ? [03:55:18] <Splarka> heh [03:55:29] <derwin> well they're just going to have to find other countries to have relations with, I guess [03:55:50] <derwin> oh, "Foreing" [03:55:54] <derwin> lol brain typo [03:56:19] <Splarka> -->{{#ifexpr:({{{1}}}*2-000)>000|{{{2}}}}}<!-- [03:56:19] <Splarka> -->{{#ifexpr:({{{1}}}*2-001)>001|{{{2}}}}}<!-- [03:56:30] <Splarka> ...and increase as needed [03:56:32] <derwin> of course! [03:56:38] <Splarka> most there seem to go to 150 [03:56:43] <derwin> people call *perl* "line noise" [03:56:51] <derwin> but mediawiki templates are closer I think [03:56:53] <Splarka> I started to make a template to do prime factorization [03:57:17] <Splarka> just to see if it could be done (it can...) [03:57:52] <derwin> see, marge, I told you they could deep fry my shirt! [03:58:04] <AaronSchulz> 'query: SELECT rc_namespace, rc_title, rc_cur_id, rc_user, rc_user_text, rc_comment, rc_timestamp, rc_patrolled, rc_id, page_len as length, page_latest as rev_id FROM `recentchanges` FORCE INDEX (rc_user_text), `page` WHERE rc_new = 'X' ORDER BY rc_timestamp DESC LIMIT' [03:58:13] <Splarka> {{#ifeq:{{{1}}}|1|1| [03:58:14] <Splarka> {{#ifeq:{{#expr: {{{1}}} mod 2}}|0|2 *{{primefac/2|{{#expr: {{{1}}} / 2}}}}| [03:58:14] <Splarka> {{#ifeq:{{#expr: {{{1}}} mod 3}}|0|3 *{{primefac/2|{{#expr: {{{1}}} / 3}}}}| [03:58:15] *AaronSchulz wonders wtf that happens [03:58:36] <Splarka> (continue until universe explodes) [03:58:58] <AaronSchulz> *htf [03:58:59] <Splarka> does make a template loop though in new parser, was too lazy to fix it [03:59:56] <CIA-50> 03aaron * r34704 10/trunk/phase3/includes/SpecialNewpages.php: [03:59:56] <CIA-50> * Fix undefined variable error [03:59:56] <CIA-50> * Clean up query stuff [04:00:10] <wikibugs> 03(mod) API query for template usage involving multiple titles and namespace filter times out - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14102 +comment (10JSchulz_4587) [04:01:11] <derwin> the templates which rely on subpages [04:01:13] <derwin> scare me [04:04:40] <wikibugs> 03(NEW) Pages that are protected through cascading protection show an "edit" tab instead of "view source" - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14104 minor; normal; MediaWiki: Page protection; (nakonwiki) [04:06:45] <wikibugs> 03(WONTFIX) Pages that are protected through cascading protection show an " edit" tab instead of "view source" - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14104 +comment (10JSchulz_4587) [04:13:13] <AaronSchulz> 'SELECT rc_timestamp, rc_namespace, rc_title, rc_type, rc_moved_to_ns, rc_moved_to_title, rc_id, rc_cur_id, rc_this_oldid, rc_last_oldid, rc_patrolled, page_is_redirect FROM `page` RIGHT JOIN `recentchanges` ON (page_namespace=rc_namespace) AND (page_title=rc_title)' [04:13:15] <AaronSchulz> hmm [04:14:45] <AaronSchulz> api again [04:22:26] <CIA-50> 03ktchan * r34705 10/trunk/extensions/BoardVote/ (4 files): Basic update for 2008. [04:30:08] <CIA-50> 03aaron * r34706 10/trunk/phase3/includes/api/ApiQueryRecentChanges.php: INNER JOIN [04:33:21] <AaronSchulz> domas: :) [04:33:27] <KTC> helps if i try to commit changes using the svn+ssh working copy and not the anon http one... <_< [04:34:06] <CIA-50> 03ktchan * r34707 10/trunk/extensions/BoardVote/BoardVote.i18n.php: Revert changes to non English localisation caused by my last commit. [04:39:03] <pizzahead> grr why can't i seem to create a proper name space and set permissions right.... [04:40:12] <pizzahead> can someone check this: http://rafb.net/p/soZb1n23.html [04:45:51] <Fire> pizza: What do you get as error? [04:46:12] <pizzahead> don't get an error but it doesn't prevent that namespace from being viewed anonymously [04:46:19] <pizzahead> and registered users can still edit [04:48:14] <AaronSchulz> ok, time to totally redo the RC query [04:48:19] <Fire> I am not sure if that's the right thing, but did you already get the NamespacePermissions Extenstion? [04:48:43] <pizzahead> tried $wgMyGroupPermissions['*']['read'] = false; with no luck either [04:48:47] <pizzahead> Fire: trying to avoid extensions [04:49:01] <pizzahead> I guess I'm assuming what I'm calling exists [04:49:10] <Splarka> !cms [04:49:10] --mwbot-- Wikis are designed for openness, to be readable and editable by all. If you want a forum, a blog, a web authoring toolkit or corporate content management system, perhaps don't use wiki software. There is a nice overview of free tools available at <http://www.opensourcecms.com/> including the possibility to try each system. For was to restrict access in MediaWiki, see !access. [04:49:58] <pizzahead> Splarka: :P [04:50:07] <Splarka> well, seriously [04:50:08] <Splarka> http://www.mediawiki.org/wiki/Security_issues_with_authorization_extensions [04:50:26] <Splarka> see that if considering making a wiki's viewing not either totally open or totally closed [04:50:34] <pizzahead> splarka: like I said I'm not trying to use extenral extensions [04:50:47] <pizzahead> i'm just limiting editing and viewing of a namespace [04:50:51] <Splarka> (editing restrictions are much more securable, but viewing restrictions have a dozen or more circumvention possibilities) [04:51:41] <Splarka> ahh, so you've probably seen http://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_editing_of_an_entire_namespace ? [04:51:43] <pizzahead> ok [04:51:47] <pizzahead> there we go [04:51:52] <pizzahead> yes [04:51:54] <Splarka> but remember.. editing is one thing [04:51:56] <pizzahead> i typo'd grouppermissions [04:52:01] <pizzahead> wgGroupPermissions [04:52:04] <pizzahead> not MyGroup [04:52:06] <Splarka> restricting *viewing* of a namespace is pretty futile [04:52:36] <Splarka> http://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_viewing_of_certain_specific_pages [04:56:28] <CIA-50> 03aaron * r34708 10/trunk/phase3/includes/Database.php: Split of query from query text generation. This makes creating sql statements for UNIONs much easier. [05:11:46] <CIA-50> 03nad * r34709 10/trunk/phase3/includes/DatabaseMssql.php: Remove obsolete commen [05:22:10] <derwin> hrm. [05:22:22] <derwin> using this short url scheme appears to have broken my ability to edit certain pages [05:22:30] <derwin> http://www.mediawiki.org/wiki/Manual:Short_URL#Recommended_how-to_guide_.28setup_used_on_Wikipedia.29 [05:23:30] <derwin> I appear to be getting sent to url.to.wiki.com/$wgScriptPath/index.php [05:23:36] <derwin> perhaps that's correct, actually? [05:24:01] <derwin> oh, I see, wgArticlepath [05:24:08] <Splarka> edits and most other actions use the longer url [05:24:15] <Splarka> so your scriptpath has to be separate from your articlepath [05:24:33] <Splarka> (well, some people make them both null, but that can cause fun problems) [05:24:54] <derwin> hrm.. [05:25:01] <derwin> seems to be acting up.. :/ [05:25:29] <derwin> PHP Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 10240 bytes) [05:25:32] <derwin> oops! [05:33:19] <Fire> hi tim [05:46:20] <derwin> huh. trying to copy this template appears to result in exhausting memory [05:46:29] <derwin> even if I give php > 200mb memory [05:46:32] <derwin> this seems unlikely to be expected operation [05:54:12] <Fire> re [05:54:45] <CIA-50> 03aaron * r34710 10/trunk/phase3/includes/SpecialRecentchanges.php: Utilize r34708 tweak. Various performance tweaks. For results in one non-main namespace, use the new_name_timestamp index so it doesn't take 50 seconds doing "anon edits in NS_MEDIAWIKI" [05:59:03] <AaronSchulz> query: SELECT tl_from pl_from, tl_namespace pl_namespace, tl_title pl_title FROM `templatelinks` WHERE tl_from IN ('X' ORDER BY tl_from, tl_namespace, tl_title [05:59:11] <AaronSchulz> real/call 3335496.6 [05:59:59] <AaronSchulz> almost an hour [06:01:51] <AaronSchulz> domas? [06:10:52] <wikibugs> 03(mod) API query for template usage involving multiple titles and namespace filter times out - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14102 (10JSchulz_4587) [06:16:52] *AaronSchulz investigates [06:17:16] <wikibugs> 03(NEW) Please switch off "nofollow" attribute for foundationwiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14105 15enhancement; normal; Wikimedia: Site requests; (james) [06:19:04] <wikibugs> 03(mod) API query for template usage involving multiple titles and namespace filter times out - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14102 (10JSchulz_4587) [06:20:16] <CIA-50> 03nikerabbit * r34711 10/trunk/phase3/includes/SpecialNewpages.php: * Lets fix the other one too :) [06:40:08] <CIA-50> 03aaron * r34712 10/trunk/phase3/includes/SpecialRecentchanges.php: Comment [06:40:33] <wikibugs> 03(NEW) RC-Team requests feed for desighting - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14106 15enhancement; normal; MediaWiki extensions: FlaggedRevs; (pbirken) [06:40:43] <Raymond_> AaronSchulz: pong [06:41:42] <AaronSchulz> can you update the frevs messages? [06:42:51] <Raymond_> AaronSchulz: in about 3 hours. I am not on my home pc, no ssh key. travelling home now [06:43:03] <AaronSchulz> ok, thanks [06:43:07] *AaronSchulz need to sleep [06:43:19] <AaronSchulz> Nikerabbit? [06:43:37] <Nikerabbit> AaronSchulz: poang [06:43:44] <AaronSchulz> Nikerabbit: want to play with RC? [06:44:07] <AaronSchulz> would be nice if someone else took a peek [06:44:41] <Nikerabbit> mmm [06:47:09] <Nikerabbit> having a bit tight schedule today [06:53:40] <chelz> are there any other linkable "items" in wikis besides images/etc and pages? [06:54:30] <Sasa^Stefanovic> cateegories ? media ? namespaces ? [06:54:37] <Sasa^Stefanovic> special pages [06:55:11] <chelz> ah, that's all? [06:57:31] <Splarka> you asking about all the possible ways to create <a href> tags? [06:58:17] <derwin> Splarka: do you think it is likely that Template:For "should" be exhausting over 200MB of mem in php"? [06:58:17] <chelz> i need to store a bunch of items and i'm trying to think of the best format to store them in. i figure each should have a page, or if i could create a custom tag similar to Image: it might work [06:58:54] <Sasa^Stefanovic> chelz, you can create custom namespaces [06:58:57] <Splarka> derwin: yes, heh [06:58:59] <Sasa^Stefanovic> read FAQ for that [06:59:00] <chelz> each item is a code to modify a game, so perhaps site.com/wiki/code:D01665C10020 [06:59:07] <chelz> ah mk, namespaces might be what i want [06:59:09] <Splarka> depending on how big it is [06:59:10] <chelz> ty Sasa^Stefanovic :) [06:59:16] <Sasa^Stefanovic> np [06:59:29] <derwin> Splarka: I mean, saving the page itself! [07:00:31] <Splarka> derwin: well, maybe not, try wrapping it in <includeonly> maybe [07:01:29] <derwin> whoa [07:01:36] <derwin> I appear to be getting funky output. [07:01:46] <derwin> 'lastChild' => false, 'nextSibling' => false, )), 'nextSibling' => false, )), 'nextSibling' => PPNode_Hash_Text::__set_state(array( 'value' => '#ifeq:', 'nextSibling' => PPNode_Hash_Tree::__set_state(array( 'name' [07:01:51] <derwin> (etc) [07:02:14] <derwin> whoa nelly. [07:03:21] <derwin> I think it is relying on some "subst" templates I don't have [07:03:29] <derwin> but I don't see why that'd make it do.. that! [07:06:01] <derwin> Splarka: do you think something is going wrong? [07:06:24] <derwin> I have never seen it display the preparser hash to the browser.. [07:07:40] <Splarka> wow, impressive [07:07:42] <Splarka> no idea [07:10:57] <derwin> I am on some few-days-old SVN version [07:11:13] <derwin> probably too rice.. but wow.. copying Template:For shouldn't do THAT I think.. :/ [07:11:51] <Splarka> can you reduce it to a minimal test case? [07:25:02] *Werdna waves [07:31:39] <Dantman> ^_^ Wry Neck is just /sooo/ fun... [07:38:13] <derwin> Splarka: I was thinking I'd have to understand it first, and it's after midnight here.. but will probably hack at it tomorrow :) [07:41:53] <wikibugs> 04(REOPENED) No plural check for Turkic and Mongolic languages - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13869 +comment (10alefzet) [07:44:20] <Duesentrieb> Simetrical: uh? http://www.mediawiki.org/w/index.php?title=Manual:%24wgUrlProtocols&diff=prev&oldid=185549 [07:45:03] <Duesentrieb> "ackslashes behave the same in single and double quotes" is wrong. single quotes are "strong" in php too, but behave slightly different than in bash or python. single quotes are indeed prefereable for regular expressions. [07:46:41] <Dantman> ^_^ And then there's HereDoc.... Which, I haven't even comprehended some of it's syntax. [08:04:00] <wikibugs> 03(mod) Upgrade librsvg to version 2.18.0 - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=10207 +comment (10archimerged) [08:06:09] <CIA-50> 03mkroetzsch * r34713 10/trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore.php: Use DROP TEMPORARY, +extended docu for why disjunction is not properly working yet [08:06:36] <CIA-50> 03mkroetzsch * r34714 10/trunk/extensions/SemanticMediaWiki/includes/SMW_Factbox.php: fix for broken RDF feed links [08:07:29] <CIA-50> 03mkroetzsch * r34715 10/trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php: Allow "OR" for disjunction in #ask (Beware: disjunction not fully implemented yet!) [08:12:57] <_wooz> lo [08:13:06] <Werdna> 07:51 < Werdna> WikiziA75: you're trying to include a regular page? [08:13:52] <WikiziA75> yes I do [08:14:17] <WikiziA75> something like {{ABC}} [08:14:59] <WikiziA75> I couldn't find a parameter which might need to be set here: http://www.mediawiki.org/wiki/Manual:Configuration_settings [08:15:03] <Splarka> !colon [08:15:03] --mwbot-- To escape the usual function of [[Image:]] links, [[Category:]] links, [[en:Interlanguage]] links, and create an inline simple link, prefix a colon. [[:Image:Wiki.png]], [[:Category:Cats]], [[:en:Foobar]]. A colon can also be used to transclude an article in the main namespace, eg {{:Main_Page}}. [08:15:57] <Splarka> with no colon in the {{}}, the Template: namespace is assumed, but you can transclude any page by specifying namespace, eg {{User:Foo}}, {{Image:Bar.gif}} (description only), {{Category:Baz}} (description only) [08:17:18] <WikiziA75> My problem is : I am trying to include a main space article in another main space article and it answers that the template doesn't exist. MediaWiki 1.12 [08:17:32] <Werdna> WikiziA75: {{:ABC}} [08:17:35] <Werdna> as Splarka said. [08:19:02] <Splarka> yah.. {{ABC}} is [[Template:ABC]], {{:ABC}} is transcludiong [[ABC]] [08:20:07] <WikiziA75> Thanks that is it: the colon [08:20:29] <Splarka> the answer to many of life's problems, "stick (it) in your colon" [08:20:47] <WikiziA75> :-) [08:20:50] <Werdna> ... [08:21:02] <Werdna> /cs op #mediawiki [08:21:12] <Werdna> /kick Splarka [08:21:14] <Werdna> :P [08:21:40] <WikiziA75> Thanks again. I will call in again, when I have a next problem. [08:24:16] <Werdna> bad Splarka [08:25:49] *Splarka wimpers, hides behind a template [08:33:43] <ginovation> can i know hoe to install mediawiki [08:33:50] <ginovation> *how [08:34:03] <Werdna> I'm sure it's possible [08:35:21] <ginovation> i m trying to install mwlib but it showing me error [08:46:31] <ginovation> I m trying to install mwlib as installation process given [08:47:19] <ginovation> but still it giving problem in installation error is :Couldn't find a setup script in mwlib [08:47:32] <Werdna> what's mwlib? [08:47:52] <ginovation> werdna: yes [08:48:33] <Werdna> what is it? [08:48:59] <ginovation> Werdna:actually we r working on mediawiki parsing project and we have to use it [08:49:22] <Werdna> I don't know what mwlib is [08:50:27] <Sasa^Stefanovic> mediawiki library :) [08:50:35] <Sasa^Stefanovic> !mwlib [08:50:35] --mwbot-- I don't know anything about "mwlib". [08:50:38] <ginovation> Werdna: it is mwlib is a Python library for parsing MediaWiki articles. [08:51:01] <ginovation> Sasa^Stefanovic: yes [08:51:13] <Werdna> ah [08:51:17] <ginovation> Sasa^Stefanovic: can u tell me how to install it [08:51:29] <Sasa^Stefanovic> i don't know, i just guess that [08:52:30] <Werdna> have you read README? [08:53:18] <ginovation> Werdna: yes and follow same method but still it showing me error:Couldn't find a setup script in mwli [08:53:57] <ginovation> Werdna:*mwlib [08:54:39] <Sasa^Stefanovic> http://studer.tv/projects-mwlib-overview.page [09:00:30] <wikibugs> 03(mod) CategoryPageView does not work on preview - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13882 (10Bryan.TongMinh) [09:03:36] <CIA-50> 03btongminh * r34716 10/trunk/phase3/ (RELEASE-NOTES includes/api/ApiExpandTemplates.php): (bug 13829) Expose parse tree via action=expandtemplates [09:03:38] <CIA-50> 03mkroetzsch * r34717 10/trunk/extensions/SemanticMediaWiki/includes/SMW_QP_iCalendar.php: support "description" in iCalendar [09:03:53] <kk_wiki> ginovation: hi [09:04:04] <kk_wiki> ginovation: did you get the way to install mwlib? [09:04:59] <wikibugs> 03(FIXED) Expose Special:ExpandTemplates' "Show XML parse tree" via the API - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13829 +comment (10Bryan.TongMinh) [09:08:20] <kidk> Hi, Little question : Is it possible to force admin approval for new members ? [09:08:40] <Werdna> yes [09:08:43] <Werdna> ConfirmAccount extension [09:11:02] <kidk> thx [09:11:10] <wikibugs> 03(mod) Internal server error on English Wiktionary - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14103 +comment (10conrad.irwin) [09:13:12] <ginovation> Is there someone using mwlib [09:15:59] <Sasa^Stefanovic> rofl [09:16:07] <Sasa^Stefanovic> BUGFIX: [09:16:09] <Sasa^Stefanovic> 1. Can't remember :) [09:16:34] <KTC> anyone care to explain to me how WebRequest::getArray actually work ? [09:16:54] *Werdna shrugs [09:16:56] <Werdna> read the code. [09:17:02] <Werdna> I don't know :( [09:17:05] <KTC> i have, doesn't help [09:17:27] <KTC> i know it return an array, i just can't figure out in what form it returns it [09:19:07] <ginovation> mwlib package missing tow files _expander.cc and _mwscan.cc [09:19:19] <ginovation> *two [09:20:44] <ginovation> can anyone tell me the problem [09:20:53] <ginovation> how t oget is that [09:27:34] <ginovation> is there some one using mwlib [09:27:47] <wikibugs> 03(mod) The revision size is not available for old revisions - 10http://bugzilla.wikimedia.org/show_bug.cgi?id=12188 (10snunes) [09:34:51] <lanxu> hi [09:37:31] <KTC> hi [09:38:11] <lanxu> I have a weird problem with my mediawiki installation. Some time ago my diff stopped working. I don't see diff3 output for anything. I have already confirmed that diff3 is correctly found and set. What kind of thing can cause this? any ideas? [09:38:32] <lanxu> I just wanted to ask before I reinstall ;) [09:40:04] <Werdna> well, what exactly are you trying to do? [09:41:00] <lanxu> Okay. I see take "recent changes" and press (diff) for any change for an article. [09:41:51] <lanxu> I should see the changes for the article but they're not printed for some reason. :S [09:42:51] <flyingparchment> diff3 is not used for diffs, it's for automatica edit conflict merging [09:43:11] <lanxu> oh? [09:43:15] <timboooo> hi there [09:44:41] <timboooo> can s.o. tell me why i can change my mediawiki:sidebar, but i cant see the effects? [09:49:25] <Sasa^Stefanovic> timboooo, refresh page [09:49:36] <timboooo> :) [09:49:39] <timboooo> no effect [09:49:41] <Sasa^Stefanovic> hard refresh, ctrl+F5 [09:49:50] <timboooo> same [09:50:00] <Sasa^Stefanovic> did you try &action=purge on Mediawiki:sidebar [09:50:01] <Sasa^Stefanovic> ? [09:50:22] <JabbaDaHuttunen> Can I change the smtp server my wiki should use to send e-maios? [09:50:25] <JabbaDaHuttunen> mails* [09:51:21] <timboooo> how, Sasa^Stefanovic ? [09:52:18] <Sasa^Stefanovic> timboooo, http://yourwiki.com/w/index.php?title=MediaWiki:Sidebar&action=purge [09:53:16] <timboooo> no effect :( [09:54:10] <Sasa^Stefanovic> can you give me url [09:54:51] <JabbaDaHuttunen> http://www.mediawiki.org/wiki/Manual:%24wgSMTP <-- Would this fix this? [09:55:02] <timboooo> its just local [09:59:32] <Fire> Hi [10:21:26] <lanxu> hmm. If diff3 isn't used for displaying diffs then what is? [10:22:09] <CIA-50> 03catrope * r34718 10/trunk/phase3/includes/api/ApiQueryRecentChanges.php: Making INNER JOIN implicit [10:22:58] <flyingparchment> includes/DifferenceEngine.php [10:27:45] <lanxu> really weird indeed. What could possibly make diffs to disappear? [10:29:01] <CIA-50> 03siebrand * r34719 10/trunk/extensions/Translate/MessageGroups.php: Put 2 optional BoardVote messages back in normal extension messages group [10:39:16] <CIA-50> 03catrope * r34720 10/trunk/phase3/includes/api/ApiQueryLinks.php: (bug 14012) prop=templates filesorts under some conditions [10:41:29] <wikibugs> 03(FIXED) API query for template usage involving multiple titles and namespace filter times out - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14102 +comment (10roan.kattouw) [10:42:13] <Tadej0b> hi [10:42:46] <Tadej0b> Is there any way that I can enable uploads to unregisterd users on mediawiki? [10:42:46] <CIA-50> 03btongminh * r34721 10/trunk/phase3/ (3 files in 3 dirs): ApiQueryRevisions now uses the Revision backend. This allows a more proper handling of rev_deleted. Also in case rev_size is filled on demand (bug 12188) there is only need to do this in one place. [10:47:18] <ginovation> Anyone knows about mwlib [10:51:26] <CIA-50> 03catrope * r34722 10/trunk/phase3/RELEASE-NOTES: Technical, behind-the-scenes changes with no user-observed change don't belong in RELEASE-NOTES [10:51:36] <KTC> help... http://www.ktchan.info/wiki/index.php/Special:Boardvote :/ [10:52:01] <KTC> nvm... [10:52:12] <Tadej0b> Is there any way that I can enable unregisterd users to uploads on mediawiki? [10:52:48] <Duesentrieb> Tadej0b: i don't think so. You can allow it, but i think it will result in errors. It's also a bit dangerous I guess. [10:53:07] <Tadej0b> Duesentrieb: how can I allow it? [10:53:25] <CIA-50> 03catrope * r34723 10/trunk/phase3/includes/api/ApiQueryRevisions.php: $token is a parameter, so it's set by extractRequestParams() [10:53:29] <Tadej0b> Duesentrieb: I have mediawiki under passwd, so security is not a problem [10:53:50] <Duesentrieb> then why do you have anon users? [10:54:02] <RoanKattouw> Tadej0b: $wgGroupPermissions['*']['upload'] = true; [10:54:03] <Duesentrieb> wouldn't it eb much nicer to log people in automatically [10:54:29] <Duesentrieb> note that uploading as anon may or may not fail immediatzly. it could also cause problems later on. [10:54:41] <Duesentrieb> when deleting images, maybe. or in some special page listing them. or whatever. [10:54:50] <Tadej0b> Duesentrieb: how do I log them automaticly? [10:55:05] <Duesentrieb> using an authentication plugin [10:55:07] <Duesentrieb> !auth [10:55:07] --mwbot-- http://www.mediawiki.org/wiki/AuthPlugin [10:55:16] <Duesentrieb> there are at least two that are based on simple http auth [10:55:27] <Tadej0b> thank you [10:55:30] <Tadej0b> Ill try it [10:58:22] <KTC> lol, at least some of my code work :D [11:00:01] <Splarka> KTC: can you reprogram the voting machines in Florida afterwards? in time for the US presidential election anyways <3 [11:00:45] <KTC> :D i'm giving up PHP after this. 3 months of C++ (Google Summer of Code) :) [11:10:56] <KTC> Error: gpg: fatal: can't create directory `//.gnupg': Permission denied [11:10:58] <KTC> hmm :( [11:24:30] <CIA-50> 03raymond * r34724 10/trunk/extensions/BoardVote/BoardVote.i18n.php: [11:24:30] <CIA-50> * Fix URLs in English messages [11:24:30] <CIA-50> * Update German [11:24:57] <Nikerabbit> would it be possible to make those messages even a bit generic? [11:27:12] <Raymond_> should be... [11:27:53] <Raymond_> best to talk with KTC about this [11:28:21] <Nikerabbit> will you do it? [11:28:21] <CIA-50> 03raymond * r34725 10/trunk/ (5 files in 4 dirs): Localisation updates German [11:29:29] <Raymond_> I will try to remember when he is next time online :) [11:30:57] <CIA-50> 03raymond * r34726 10/trunk/extensions/BoardVote/BoardVote.i18n.php: Localisation updates German - oops [12:06:58] <Fire> re - hi Vasil [12:08:51] <VasilievVV> hi Fire [12:10:51] <lanxu> I got diff working again. Configure-extension messed up my configurations. \o/ wohoo! [12:12:15] <Werdna> heh. [12:12:29] <Werdna> I'm going to move some of configure extension into core, once I corner brion for long enough to propose it to him [12:12:38] <bango> hey is there any extensio which shows me what, the people are typing in my searchingbar?! [12:12:42] <flyingparchment> don't make mw easy to use... more people will use it [12:12:56] <RoanKattouw> xD [12:13:15] <Werdna> :P [12:13:23] <Werdna> I'm talking just about $wgGroupPermissions [12:15:41] <VasilievVV> hi-'n'-bye RoanKattouw :( [12:15:44] <VasilievVV> hi Werdna [12:15:50] <Werdna> hi [12:16:08] *VasilievVV checks his SVN notifications [12:16:35] <Sasa^Stefanovic> i'm watching mw svn changes with rss [12:16:42] <VasilievVV> Just a note... parent::__construct is much more better than SpecialPage::SpecialPage [12:17:44] <Sasa^Stefanovic> http://cia.vc/stats/project/mediawiki/.rss [12:19:41] <Werdna> o_O <3 [12:19:47] <Werdna> wait [12:19:52] <Werdna> does that include actual diffs? [12:25:51] <bango> hey is there any extensio which shows me what, the people are typing in my searchingbar?! [12:34:11] <MidRange> Hi all, i am having problems uploading a vbscript file to my wiki, the error message is ".vbs" is an unwanted file type, List of allowed file types: png, gif, jpg, jpeg, doc, pdf, ora, txt, pcf, rul, vbs" [12:34:47] <MidRange> i have specified 'vbs' in the $wgFileExtensions array and also set $wgStrictFileExtensions to false [12:35:25] <CIA-50> 03siebrand * r34727 10/trunk/extensions/BoardVote/BoardVote.i18n.php: Fix a few typos [12:37:09] <MidRange> I also do not have $wgFileBlacklist specified in LocalSettings.php [12:37:12] <MidRange> any ideas? [12:39:21] <VasilievVV> MidRange: all settings-by-default are defined in includes/DefaultSettings.php (but never change it) [12:41:52] <MidRange> ah right, i have removed the 'vbs' element from the $wgFileBlacklist array in DefaultSettings.php to see if it would work and it has [12:42:41] <MidRange> is there anyway to ignore this blacklist so i dont have to change DefaultSettings.php when i upgrade? [12:43:58] <henke37> I am writing a small extension, but I can't find how to do a task that I need [12:44:04] <Werdna> oh? [12:44:17] <henke37> how do I get the wikitext of another page? [12:44:21] <Wikibob> Hello everyone [12:44:44] <CIA-50> 03siebrand * r34728 10/trunk/extensions/BoardVote/BoardVote.i18n.php: Localisation updates. Some updates for BoardVote. [12:45:47] <Wikibob> I'm looking to export large chunks of interconnected pages in our wiki to pdf. So far i've only seen tools which allow 1 page exports. Anyone know of a plugin/tool which allows exporting of multiple pages? [12:46:25] <henke37> sure, the Special:Export page should do it [12:47:07] <henke37> just give it a list of the pages to export and it will take care of things [12:47:09] <Nikerabbit> hello [12:47:19] <henke37> you can even get the revision history if you want it [12:47:33] <CIA-50> 03siebrand * r34729 10/trunk/extensions/BoardVote/BoardVote.i18n.php: Localisation updates. More updates for BoardVote [12:48:18] <Wikibob> thats pretty cool, however i was hoping there was one which could recursively export pages. Ie if page 1 has links to pages 2 and 3, Exporting Page 1 i would also export 2 and 3 [12:48:33] <henke37> ah [12:49:03] <Wikibob> or at least 'all pages in a category' type exports [12:49:21] <Wikibob> which special:export does if i can see well [12:50:23] <Raymond_> VasilievVV: you have patched Special:siteMatrix some weeks ago to show locked databases and restricted wikis. but http://en.wikipedia.org/wiki/Special:SiteMatrix doesn't show it? [12:50:53] <VasilievVV> Raymond_: because it has some bugs [12:51:11] <Raymond_> VasilievVV: oh cool explanation :) [12:51:29] <VasilievVV> Tim explained me them [12:51:56] <Raymond_> ok, no hurry. but I wasn't aware that you know it [12:52:02] *VasilievVV goes and tries to fix them [12:55:58] <Simetrical> Duesentrieb, echo '\/'; echo "\/"; echo '\\/'; echo "\\/"; outputs: \/\/\/\/ [12:56:03] <zsh> Hi. how can one get the path on the server of an uploaded file? [12:56:27] <Simetrical> Duesentrieb, single quotes in PHP don't have all the escape characters, but backslashes behave identically to in double-quoted strings. [12:56:43] <Simetrical> Except that something like \b will print out "b" instead of a backspace, since it's no longer an escape code. [12:56:45] <Wikibob> henke37: I think the Special:Export should be ideal. We'll just make sure that all related pages are tagged appropriately as a category [12:57:21] <Simetrical> Duesentrieb, in what case would single quotes be preferable for regex, in PHP? [12:57:29] <Simetrical> You have to escape all backslashes anyway. [13:00:03] <Duesentrieb> Simetrical: try echo "\t"; echo '\t'; [13:00:36] <Duesentrieb> Simetrical: also try "\'" and '\"' as well as "\"" and '\'' [13:03:50] <Kjoonlee> hi [13:03:50] <Simetrical> Duesentrieb, behavior seems to be slightly different from what I thought, the backslash is outputted if it's not an escape character. [13:03:53] <Kjoonlee> https://bugzilla.wikimedia.org/show_bug.cgi?id=14082 [13:04:25] <Simetrical> So you're better off with single quotes *if* you happen to want to put \t or something in the regex. [13:04:31] <Duesentrieb> Simetrical: withing strong quotes ('...'), the backsash is literal, unless it's followed by \ or ' [13:04:52] <Simetrical> Duesentrieb, with weak quotes it's literal unless followed by ", \, n, r, ... [13:05:03] <Simetrical> So it only matters if you happen to have such a character in your regex. [13:05:14] <Duesentrieb> yes. [13:05:18] <Simetrical> But in that case, it probably makes little difference anyway. "/\n/" will work, won't it? [13:05:31] <Kjoonlee> Is anyone famililar with the ajax search at Wikipedia? [13:05:32] <Simetrical> PHP will insert a literal newline there, but that's not a problem for the regex. [13:05:33] <KTC> Raymond_? [13:05:43] <Kjoonlee> There's a search bug which affects Korean input [13:05:58] <zsh> got it. [13:05:59] <Duesentrieb> Simetrical: yes, i think \n works both ways in the regex. i'd hope so at least. [13:06:17] <Duesentrieb> Simetrical: for the \/ case it doesn't make any difference either. [13:06:18] <Simetrical> Kjoonlee, Brion is, and rainman-sr IIRC (I'm pretty sure he wrote it but maybe my memory is failing?). [13:06:24] <Simetrical> Duesentrieb, in what case does it make a difference [13:06:24] <Simetrical> ? [13:06:29] <Duesentrieb> i was just saying... ' and " doe NOT behave the same [13:06:40] <Duesentrieb> they are quite different. and both are quircky in php [13:06:47] <Simetrical> Duesentrieb, well, they behave the same except for which characters can be escaped, which is what I said. :) [13:06:59] <Kjoonlee> rainman-sr: ping [13:07:06] <Simetrical> I also said (or implied) there's no real difference for regexes, is that incorrect? [13:07:19] <Simetrical> Hmm, $ maybe. [13:07:29] <Simetrical> Yes, that would be a difference, hypothetically. [13:07:49] <NicDumZ|NA> Simetrical, would you review/comment https://bugzilla.wikimedia.org/show_bug.cgi?id=14094 please ? :þ [13:07:53] <Duesentrieb> Simetrical: i'm not 100%, i just find it less confusing to use strong quotes. actually, i'd recommend to use them everywhere where you don't need or what interpolation [13:08:00] <Duesentrieb> (or linebreaks, etc) [13:08:16] <Simetrical> Duesentrieb, yes, sure, but the particular statement I removed was wrong, in any case. [13:08:31] <Duesentrieb> Simetrical: uh, yes, i think $ is exactly what make me use it. though $ at the enf of a weak string is also literal in php i think... [13:08:55] <Simetrical> Duesentrieb, yes, $ is literal if not followed by an alphabetic character or underscore, probably. [13:09:12] <Duesentrieb> Simetrical: yes, probably. in any case i would hape that the regex in question was not built using / as a delimiter - that would suck for urls [13:09:27] <Simetrical> But hypothetically you might want to search for /foo\$/, in which case you would need "/foo\\$/" or '/foo\$/'. [13:09:33] <KTC> Nikerabbit ? [13:09:47] <Duesentrieb> yes, indeed [13:09:57] <Nikerabbit> KTC: have to go now [13:10:04] <Duesentrieb> also, in weak quotes, {} are special, and thus \{ is special too. [13:10:05] <Simetrical> Well, that wasn't even the part of the removed text that was stupid, it was claiming there was some big difference between single and double quotes there. There wasn't. [13:10:12] <Duesentrieb> sou to match a literal {, you need \\{ [13:10:29] <Duesentrieb> basically, i started to hate weak quotes for regex, and i strongly recommend not to use them :) [13:10:31] <Simetrical> NicDumZ|NA, you have commit access? And it seems to work? [13:10:34] <KTC> okay, just wondering what it was you wanted me to do with BoardVote messages [13:10:49] <Simetrical> Yes, { is another special case. [13:10:52] <NicDumZ|NA> Simetrical, I do, but officially for pywikipedia, and yes it works locally. [13:10:56] <Simetrical> Okay, granted, in some cases they're preferable. [13:11:10] <Simetrical> I'd always use ' for this anyway, as you say, of course. [13:11:13] <Duesentrieb> there's no reason to use ".." for regex, ever :) [13:11:24] <Simetrical> Except if you want variable interpolation. [13:11:33] <Simetrical> NicDumZ|NA, hmm. Well, maybe ask Tim or someone, or be bold and commit it. [13:11:38] <Duesentrieb> which is very tricky with regex anyway [13:11:47] <flyingparchment> Duesentrieb: .. is much easier to read than .{2} [13:11:49] <Duesentrieb> because you need proper escaping [13:12:08] <Duesentrieb> i'm amazed that regex-libs usually come without a function for escaping a literal to be used as part of a regex [13:12:14] <Simetrical> " Heredocs can not be used for initializing class members. Use nowdocs instead. " [13:12:18] <Simetrical> o_O [13:12:41] <Simetrical> Duesentrieb, you don't necessarily only want to interpolate literals, also maybe bits of regex. [13:12:45] <Simetrical> We do that in more than one place. [13:12:54] <Duesentrieb> flyingparchment: .. was suppoed to be the metasyntactic ... [13:13:06] <JabbaDaHuttunen> So, there isnt any way to get mediawiki to use an ISPs smtp server? [13:13:08] <Duesentrieb> flyingparchment: we were arguing about the quotes, not the dots :) [13:13:12] <flyingparchment> ah [13:13:15] <Simetrical> Everyone should just use strings like Python. :( [13:13:19] <Simetrical> Python strings are total win. [13:13:21] <Duesentrieb> !smtp | JabbaDaHuttunen [13:13:21] --mwbot-- JabbaDaHuttunen: See <http://www.mediawiki.org/wiki/Manual:$wgSMTP> for information about configuring MediaWiki to use SMTP for sending mails, instead of using the sendmail interface. [13:13:30] <JabbaDaHuttunen> nice [13:13:40] <JabbaDaHuttunen> thx [13:13:44] <wikibugs> 03(mod) API query for template usage involving multiple titles and namespace filter times out - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14102 (10JSchulz_4587) [13:13:45] <Simetrical> Although I grant that Perl/JS-style regexes have advantages, for regexes specifically. [13:14:17] <Duesentrieb> indeed. regex in java particularly suck [13:15:06] <wikibugs> 03(mod) API query for template usage involving multiple titles and namespace filter times out - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14102 (10JSchulz_4587) [13:15:42] <Wikibob> guys, anyone know of any tools which convert the wiki xml from Special:Export into html/pdf/word ? [13:16:22] <Duesentrieb> Wikibob: no, because the export xml is just a wrapper around plain wikitext [13:16:34] <Duesentrieb> Wikibob: the converter from wikitext to html is called "mediawiki". [13:16:47] <Duesentrieb> you can convert to pdf or word from html easily enough [13:17:19] <Duesentrieb> there are converters out there that try to do it directly... magnus' mediawiki2any thingy... [13:17:41] <Duesentrieb> but since we don't have a formal grammar or a standalone parser, it's a bit tricky to get it right [13:17:45] <Duesentrieb> Wikibob: HTH [13:17:51] <Wikibob> hehehe fair enough, i'm trying to streamline the process - will try mediawiki2any thanks [13:18:45] <Duesentrieb> Wikibob: it's actually called "MediaWiki-to-XML-to-stuff" [13:19:19] <Duesentrieb> Wikibob: http://tools.wikimedia.de/~magnus/wiki2xml/w2x.php?doit=0&site=fr.wikipedia.org/w&output_format=odt [13:19:29] <Werdna> to bed [13:20:12] <Wikibob> Duesentrieb: thanks for your help! lets give it a whirl :) [13:20:28] <Duesentrieb> Wikibob: one more link: http://blogpaper.com/mediawiki2pdf [13:25:05] <CIA-50> 03aaron * r34730 10/trunk/phase3/includes/SpecialRecentchanges.php: Remove unused tableNamesN() call [13:27:41] <wikibugs> 03(NEW) Clean text in MediaWiki: Deletereason-dropdown before creating a select box from them. - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14107 15enhancement; normal; MediaWiki: User interface; (bugzilla.wikimedia) [13:28:13] <rainman-sr> Kjoonlee, yes, i've seen that, i couldn't reproduce it. is that on windows? [13:28:35] <JabbaDaHuttunen> About this: [13:28:36] <JabbaDaHuttunen> !smtp [13:28:36] --mwbot-- See <http://www.mediawiki.org/wiki/Manual:$wgSMTP> for information about configuring MediaWiki to use SMTP for sending mails, instead of using the sendmail interface. [13:28:48] <rainman-sr> Kjoonlee, for the time being you might want to disable ajax search sitewise [13:28:51] <JabbaDaHuttunen> I påaste all that into LocalSettings.php right? [13:28:53] <JabbaDaHuttunen> paste* [13:29:02] <JabbaDaHuttunen> And what does IDHost mean? [13:30:38] <Kjoonlee> rainman-sr: Yes, it's Firefox on Windows [13:30:45] <Kjoonlee> rainman-sr: default Korean IME [13:30:53] <wikibugs> 03(mod) API query for template usage involving multiple titles and namespace filter times out - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14102 (10roan.kattouw) [13:32:13] <rainman-sr> Kjoonlee, i assume i need to download some kindof a windows addon for it to work? I've installed korean fonts and have Korean in the task bar language selector, but it doesn't work [13:33:23] <rainman-sr> i.e. it doesn't let me enter korean chars [13:33:27] <Kjoonlee> rainman-sr: if you press right alt then keypresses should work differently [13:33:32] <Kjoonlee> (probably) [13:33:44] <rainman-sr> hmm [13:33:45] <Kjoonlee> if it doesn't, maybe shift-space would work [13:33:56] <rainman-sr> let me fire up windows and try it [13:34:01] <Kjoonlee> rainman-sr: thanks! [13:37:40] <rainman-sr> Kjoonlee, for the time being you might just want to put os_autoload_inputs = [] into Common.js and turn if off for everyone until we resolve these issues [13:37:50] <wikibugs> 03(mod) API query for template usage involving multiple titles and namespace filter times out - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14102 (10JSchulz_4587) [13:38:54] <Kjoonlee> rainman-sr: OK.. I'll suggest that on ko:WP:VP [13:39:06] <Kjoonlee> rainman-sr: but could you reproduce the bug, please? [13:39:11] <Kjoonlee> rainman-sr: I mean, did you? [13:39:51] <wikibugs> 03(mod) API query for template usage involving multiple titles and namespace filter times out - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14102 (10roan.kattouw) [13:40:37] <peder> just upgrading a 1.9 wiki, which used wfImageDir in a script, but i can't find that function anymore in 1.12 [13:41:21] <peder> how can i get the hashed imagepath now in 1.12 ? [13:42:39] <Duesentrieb> peder: via the FileRepo implementation, but i'm not sure how the access path works. [13:42:50] <Duesentrieb> maybe just grep for that and se what falls out [13:43:04] <peder> grep for what? FileRepo? [13:43:17] <VasilievVV> No [13:43:21] <VasilievVV> Lemme remember [13:43:45] <Bryan> $file->getPath I think [13:43:47] <VasilievVV> peder: FileRepo::getHashPathForLevel() [13:44:02] <VasilievVV> Or use wfFindFile() [13:44:26] <wikibugs> 03(mod) Please switch off "nofollow" attribute for foundationwiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14105 +shell (10mbimmler) [13:44:58] <rainman-sr> Kjoonlee, damn microsoft is not letting me install korean IME because i don't have a legal version of windows :P [13:45:18] <Kjoonlee> um, did someone say anything? I didn't hear. ;) [13:45:24] <peder> wfFindFile seems to do it [13:46:00] <rainman-sr> Kjoonlee, hehe :) [13:47:23] <rainman-sr> Kjoonlee, anyways, i'm going to restart to windows and see if i can work it out .. see you a bit later [13:47:34] <Kjoonlee> thanks! :) [13:55:40] <peder> hmm... wonder why i get 'Protected Page' when i try to upload a file [13:58:07] <rainman-sr> Kjoonlee, ok, i've set it up.. and i cannot reproduce it..it works fine for me in winxp/firefox 2 [13:58:22] <Kjoonlee> rainman-sr: hm.. [13:58:38] <henke37> well, here I am again [13:58:40] <Kjoonlee> rainman-sr: people who use 3.0 beta 5 have reproduced it [13:58:49] <rainman-sr> 위 <- this is what i get when i type in dnl [13:58:54] <Kjoonlee> rainman-sr: but some people don't get the problem [13:59:04] <Kjoonlee> rainman-sr: yeah [13:59:06] <henke37> now, how do you get the wikitext for another page? [13:59:10] <rainman-sr> ok, let me try firefox 3 [14:01:03] <peder> anyone got any idea why i get that 'Protected page' in red as the upload warning after i upgradede? [14:01:54] <CIA-50> 03catrope * r34731 10/trunk/phase3/includes/api/ApiQueryLinks.php: Force the pl_from/tl_from index here, as there are reasons to believe MySQL 4 selects the wrong index here (see bug 14102) [14:02:07] <rainman-sr> Kjoonlee, works in IE 6 as well [14:02:41] <RoanKattouw> AaronSchulz: I added a FORCE INDEX, hope that fixes it [14:02:59] <RoanKattouw> I've seen the toolserver bluntly ignore FORCE INDEXes in some cases [14:04:26] <rainman-sr> Kjoonlee, ok, works in ff 3b5 as well [14:04:37] <rainman-sr> i would suspect that it might be due to a buggy korean IME maybe? [14:05:52] <rainman-sr> btw how do you end a character? you press space? [14:08:04] <CIA-50> 03rotem * r34732 10/trunk/extensions/BoardVote/BoardVote_body.php: Fixing a fatal error. [14:08:17] <Kjoonlee> rainman-sr: you press a key which begins another character [14:08:32] <Kjoonlee> rainman-sr: (alphanumeric, punctuation, a consonant, etc.) [14:08:57] <Kjoonlee> rainman-sr: I'm not sure.. I don't use the default IME [14:09:05] <Kjoonlee> rainman-sr: but I get the bug nonetheless [14:09:35] <rainman-sr> which one do you use? is it some windows add-on? [14:09:41] <Kjoonlee> I use Saenaru [14:09:47] <Kjoonlee> http://kldp.net/projects/saenaru [14:10:06] <Kjoonlee> FOSS [14:10:17] <CIA-50> 03siebrand * r34733 10/trunk/extensions/Translate/ (MessageGroups.php Translate.php): Re-enable FlaggedRevs. Let's hope messages are stable now. [14:10:53] <rainman-sr> huh, installation instructions in korean ;) [14:11:11] *rainman-sr wonders what options did he check [14:11:32] <RoanKattouw> rainman-sr: How many non-Korean people would install that app? (Apart from you) [14:11:48] <peder> hmm... wfFindFile returns a LocalFile... how do i get the path out of that, or tell if the file exists [14:12:06] <peder> or is that implied if i get a LocalFile out of it [14:12:21] <RoanKattouw> !c LocalFile | peder [14:12:21] --mwbot-- peder: See http://svn.wikimedia.org/doc/classLocalFile.html [14:12:57] <rainman-sr> Kjoonlee, how do i use it? [14:13:07] <Bryan> $file->getPath() $file->exists() [14:13:36] <rainman-sr> RoanKattouw, i guess a lot since writing in korean script is pretty fun :) [14:13:37] <Kjoonlee> rainman-sr: OK, let me check [14:20:18] <rainman-sr> maybe i need to restart windows, let me try that [14:21:32] <AaronSchulz> http://svn.wikimedia.org/doc/ [14:21:46] <AaronSchulz> Member Article::createUpdates ($rev) [14:21:48] <AaronSchulz> This is a shitty interface function. Kill it and replace the other shitty functions like editUpdates and such so it's not needed anymore. [14:25:19] <RoanKattouw> lol [14:25:42] <CIA-50> 03aaron * r34734 10/trunk/extensions/LinkSearch/LinkSearch_body.php: Better var name [14:26:11] <rainman-sr> firefox doesn't let me use saenaru when the default ime is installed [14:27:17] <Kjoonlee> rainman-sr: you could uninstall/unload the default IME [14:27:23] <Kjoonlee> rainman-sr: at least, that's what I do [14:28:12] <AaronSchulz> query: SELECT cl_from, cl_sortkey, page_namespace, page_title, page_id, cl_timestamp FROM `page`, `categorylinks` FORCE INDEX (cl_sortkey) WHERE (cl_from=page_id) AND (cl_sortkey>='X' ORDER BY cl_to, cl_sortkey, cl_from LIMIT N [14:28:32] <RoanKattouw> Missing ) after 'X' [14:28:54] <AaronSchulz> cl_sortkey ( cl_sortkey, cl_to, cl_from ) [14:29:23] <AaronSchulz> RoanKattouw: could just be crappy profiler regexp [14:29:39] <RoanKattouw> Hmm doesn't look evil for me on 5.0.45 [14:29:47] <RoanKattouw> Chooses the cl_sortkey index [14:30:02] <rainman-sr> Kjoonlee, ok, got it.. i can verify that it works with saenaru as well [14:30:11] <AaronSchulz> where is the cl_to condition? [14:30:17] <RoanKattouw> But it's cl_sortkey (cl_to, cl_sortkey, cl_from) [14:30:22] <Kjoonlee> rainman-sr: hm.. I wonder what I can do to help you pin the bug down, then [14:30:33] <AaronSchulz> [10:27] <AaronSchulz> cl_sortkey ( cl_sortkey, cl_to, cl_from ) [14:30:36] <AaronSchulz> typo [14:30:39] <rainman-sr> Kjoonlee, the only problem i see is that the suggestions don't appear until you finish the char [14:30:43] <AaronSchulz> I meant cl_sortkey ( cl_sortkey, cl_to, cl_from ) [14:30:49] <AaronSchulz> *(cl_to, cl_sortkey, cl_from) [14:30:52] <RoanKattouw> lol [14:30:54] <RoanKattouw> Anyway [14:31:11] <AaronSchulz> anyways, is there a cl_to condition? [14:31:18] <RoanKattouw> No [14:31:27] *AaronSchulz was just wondering if the profiler cut it off [14:31:32] <RoanKattouw> That's why it says "Using where" and not "Using index" [14:31:37] <RoanKattouw> Maybe [14:31:43] <RoanKattouw> I don't know, where is it called? [14:31:46] <RoanKattouw> ApiCategoryMemberes? [14:32:17] <AaronSchulz> can someone find out and fix it [14:32:33] <RoanKattouw> You're right, there should probably be either a cl_to condition or a different index [14:32:48] <AaronSchulz> query: SELECT rc_timestamp, rc_namespace, rc_title, rc_type, rc_moved_to_ns, rc_moved_to_title, rc_id, rc_cur_id, rc_this_oldid, rc_last_oldid, rc_patrolled, page_is_redirect FROM `page` RIGHT JOIN `recentchanges` ON (page_namespace=rc_namespace) AND (page_title=rc_title) [14:32:53] <RoanKattouw> Do the profiler logs say which function called this query? [14:32:55] <AaronSchulz> why is it starting at 'page' ? [14:33:01] <AaronSchulz> no, doesn't say [14:33:04] <rainman-sr> Kjoonlee, not sure either, maybe if you provided exact windows version or something like that? maybe it's a bug in some specific version of service pack or something .. [14:33:08] <RoanKattouw> AaronSchulz: You mean why not a LEFT JOIN? [14:33:18] <Kjoonlee> rainman-sr: XP SP2 [14:33:33] <AaronSchulz> RoanKattouw: that too [14:33:43] <RoanKattouw> Was that the query you changed to an INNER JOIN? [14:33:46] <AaronSchulz> shouldn't it start with RC and join on page? [14:33:48] <Kjoonlee> rainman-sr: xpsp_sp2_qfe.072227-2300 [14:33:51] <AaronSchulz> yes [14:34:00] <Simetrical> LEFT JOIN is recommended in all cases in MySQL. [14:34:00] <rainman-sr> ok, i'm on sp 1 [14:34:02] <Simetrical> Why, I'm not sure. [14:34:08] <Simetrical> But that's what I've heard. [14:35:56] <RoanKattouw> Yeah, it should be a LEFT JOIN [14:36:14] <RoanKattouw> That whole thing was a remnant of me trying to get the FORCE INDEX to work [14:36:22] <AaronSchulz> RoanKattouw: why not recentchanges,page ? [14:36:38] <AaronSchulz> that would be INNER, or you could LEFT on page [14:36:41] <RoanKattouw> Because I needed recentchanges at the end [14:36:46] <AaronSchulz> though the page rows should always exists anyway [14:36:50] <RoanKattouw> That was before we got the nice and clean join interface [14:36:55] <RoanKattouw> AaronSchulz: No, Special:Log [14:37:10] <RoanKattouw> Crap, you and I together just broke that xD [14:37:33] <RoanKattouw> You made it an INNER JOIN and I didn't really pay attention and converted it to an implicit join [14:37:38] <RoanKattouw> It needs to be rc LEFT JOIN page of course [14:38:09] <AaronSchulz> RoanKattouw: what about logs? [14:38:22] <AaronSchulz> (page_namespace=rc_namespace) AND (page_title=rc_title) [14:38:29] <AaronSchulz> deletion log? [14:38:34] <AaronSchulz> mmm [14:38:51] <AaronSchulz> RoanKattouw: so yes, LEFT JOIN on page, as long as it starts with RC ;) [14:38:54] <RoanKattouw> AaronSchulz: Exactly, logs reference Special:Log [14:39:01] <RoanKattouw> Why is that so important? [14:39:11] <RoanKattouw> MySQL tries all permutations unless you set STRAIGHT_JOIN [14:39:47] <AaronSchulz> then it would be 'query: SELECT rc_timestamp, rc_namespace, rc_title, rc_type, rc_moved_to_ns, rc_moved_to_title, rc_id, rc_cur_id, rc_this_oldid, rc_last_oldid, rc_patrolled, page_is_redirect FROM `page` LEFT JOIN `recentchanges` ON (page_namespace=rc_namespace) AND (page_title=rc_title)' [14:40:03] <AaronSchulz> that encourages it to start with page I believe [14:40:29] <RoanKattouw> AaronSchulz: No [14:40:44] <Simetrical> No, it tries them all. [14:40:47] <Simetrical> At least for small numbers of tables. [14:40:48] <RoanKattouw> According to the online manual, all permutations (in this case two) are tried [14:41:01] <AaronSchulz> Simetrical: it tries it, yes [14:41:30] <Simetrical> Why would it care how you write the query? You can use STRAIGHT_JOIN if you want to tell it, otherwise it doesn't care how you write it. [14:41:49] <CIA-50> 03catrope * r34735 10/trunk/phase3/includes/api/ApiQueryRecentChanges.php: Actually this *should* be a LEFT JOIN, or we'll be dropping log entries [14:43:00] <AaronSchulz> 1 SIMPLE mw_page ALL NULL NULL NULL NULL 3239 [14:43:02] <AaronSchulz> 1 SIMPLE mw_recentchanges ref rc_namespace_title,rc_ns_usertext rc_namespace_title 771 wikidb.mw_page.page_namespace,wikidb.mw_page.page_... 2 [14:43:27] *^demon is really glad he's not an application developer at work. [14:43:42] <AaronSchulz> RoanKattouw: well, better than the RIGHT JOIN before ;) [14:44:08] <AaronSchulz> Simetrical: ^ [14:44:26] <^demon> Because they're in a meeting right now being yelled at by management for writing crappy code. [14:44:59] <AaronSchulz> RoanKattouw: that explain is no fun :( [14:45:21] <AaronSchulz> that would explain the profile times [14:51:11] <Cincy> Can anyone help - I need to figure out a way to create pages from mysql data using codoe of some kind? [14:52:13] <Cincy> Any help would great, I'm new to web apps [14:53:31] <RoanKattouw> AaronSchulz: Is that EXPLAIN from the RIGHT JOIN or the LEFT JOIN [14:53:36] <AaronSchulz> left [14:53:51] <RoanKattouw> Wow that sucks [14:54:04] *RoanKattouw runs an EXPLAIN based on the logs [14:54:25] <AaronSchulz> RoanKattouw: wait [14:54:28] <AaronSchulz> RIGHT JOIN is better [14:54:34] <RoanKattouw> :O [14:54:38] <AaronSchulz> well, the explain is [14:55:00] <Raymond_> AaronSchulz: messages for 'de' are up-to-date again [14:55:10] <AaronSchulz> Raymond_: thanks [14:55:23] <Cincy> can anyone here me? [14:55:44] <RoanKattouw> Cincy: You wanna retrieve article content from the DB? [14:55:57] <Bryan> we probably can but you need to be more specific with your question [14:56:15] <AaronSchulz> RoanKattouw: does it sort by timestamp? [14:56:23] <RoanKattouw> AaronSchulz: This is what I get for the LEFT JOIN: [14:56:25] <RoanKattouw> id select_type table type possible_keys key key_len ref rows Extra [14:56:26] <RoanKattouw> 1 SIMPLE recentchanges index NULL rc_timestamp 16 NULL 283 Using where [14:56:28] <RoanKattouw> 1 SIMPLE page eq_ref name_title name_title 261 wiki.recentchanges.rc_namespace,wiki.recentchanges... 1 [14:56:33] <Cincy> I'm not sure that I can. I have mediawiki, php, IIS and mysql up and running [14:56:40] <RoanKattouw> AaronSchulz: It's an API query. Of course it sorts by timestamp ;) Hell, it even *forces* the rc_timestamp index [14:56:55] <AaronSchulz> ok, profiler must have cut that off [14:57:04] <CIA-50> 03catrope * r34736 10/trunk/phase3/includes/api/ApiQueryRecentChanges.php: Oops [14:57:10] <AaronSchulz> it does filesort if not forced, but if forced, that shouldn't be the problem [14:57:21] <AaronSchulz> so why is it taking so long in profiling then? [14:57:22] <Cincy> I need to add a lot of content preferable though templates from my db to the wiki somehow [14:58:05] <Cincy> I new at all this, I'm just suprised it's all up and running [14:58:20] <RoanKattouw> Cincy: You mean you want to insert article content directly into the database [14:58:21] <Bryan> you'll probably want to write some kind of MagicWord [14:58:35] <Cincy> Yeah Roan [14:58:54] <RoanKattouw> Bryan: I believe what she wants is to somehow import stuff from another database (in non-MW format) into her wiki [14:59:07] <Cincy> But I want to get it from the db and to the wiki, its kind of backwards [14:59:30] <RoanKattouw> Cincy: Well I recommend against inserting rows by yourself, because that disables all kinds of updates [14:59:49] <RoanKattouw> It would probably be better to write a script that adds the pages [15:00:04] <RoanKattouw> Although... there are the rebuild scripts of course [15:00:21] <Bryan> RoanKattouw: I understand exactly the other way around [15:00:41] <Cincy> is that how you think it would be done? can a script pull in data from one db and then tranfrom it to mw pages [15:00:42] *AaronSchulz svns up [15:00:44] <Bryan> she has an existing db and wants to insert into mediawiki [15:00:46] <AaronSchulz> RoanKattouw: ok, good now [15:00:54] <AaronSchulz> RoanKattouw: that leaves the categorylinks query [15:01:03] <AaronSchulz> two of them showing up high in profiling [15:01:03] <RoanKattouw> AaronSchulz: Is that also from the API? [15:01:07] <AaronSchulz> almost the same [15:01:11] <AaronSchulz> one also sorts by time [15:01:15] <AaronSchulz> I think it is API [15:01:27] <RoanKattouw> Sort by cl_timestamp? That's definitely the API [15:01:44] <AaronSchulz> it is they one not using cl_to [15:01:45] <RoanKattouw> What are the queries? [15:01:56] <AaronSchulz> query: SELECT cl_from, cl_sortkey, page_namespace, page_title, page_id, cl_timestamp FROM `page`, `categorylinks` FORCE INDEX (cl_sortkey) WHERE (cl_from=page_id) AND (cl_sortkey>='X' ORDER BY cl_to, cl_sortkey, cl_from LIMIT N [15:02:09] <AaronSchulz> query: SELECT cl_from, cl_sortkey, page_namespace, page_title, page_id FROM `page`, `categorylinks` FORCE INDEX (cl_sortkey) WHERE (cl_from=page_id) AND (cl_sortkey>='X' ORDER BY cl_to, cl_sortkey, cl_from, cl_timestamp LIMIT N [15:02:23] <AaronSchulz> profiler prolly cutting of some stuff ;) [15:02:23] <Cincy> I'm lost [15:03:30] <Bryan> Cincy: is this a one time job or will the database be continuously refereshed? [15:04:02] <Cincy> I would like to be a ble to sync them from time to time if possible [15:04:06] <RoanKattouw> AaronSchulz: Alright, I'll try to reproduce the queries in full [15:04:26] <RoanKattouw> Cincy: Then it's probably best to write a script that fetches the DB entries and edits them into the wiki [15:04:35] <Bryan> Cincy: in that case I would write some kind of magic word [15:04:46] <Bryan> {{FROMDB:title}} or whatever [15:04:54] <Cincy> I;m not sure what that is, is that and app or langauge? [15:05:03] <RoanKattouw> !magicword | Cincy [15:05:03] --mwbot-- Cincy: For more information about creating magic words and their inner workings, see <http://www.mediawiki.org/wiki/Manual:Magic_words>. For a list of magic words, please see <http://meta.wikimedia.org/wiki/Help:Magic_words>. [15:05:17] <Cincy> Rock on [15:05:18] <Bryan> RoanKattouw: we're giving exactly opposite advises ;) [15:05:23] <RoanKattouw> I know [15:05:32] <RoanKattouw> But you're right that a magic word is probably best here [15:05:59] <AaronSchulz> hmm, on profiling, the old RIGHT JOIN query didn't have forceindex [15:06:02] <AaronSchulz> must have been the problem [15:06:09] <Cincy> bryan didn't you say magic word too? [15:06:15] <Bryan> yes [15:06:21] <Bryan> but you need to program something yourself [15:06:27] <AaronSchulz> then again, could have just got cut off [15:06:34] <AaronSchulz> man, that regexp really needs fixing [15:06:40] <Cincy> what language?? [15:06:43] <RoanKattouw> AaronSchulz: I knew about the FORCE INDEX (rc_timestamp) thing [15:06:46] <RoanKattouw> Cincy: PHP [15:06:59] <RoanKattouw> Read the first link mwbot gave you [15:07:01] <Cincy> I was kind of thinking that but I'm totally new to this kind of stuff [15:07:23] <Cincy> so your talking a php script right? [15:07:48] <RoanKattouw> Cincy: More or less. A MediaWiki extension to be exact [15:08:23] <Cincy> Hmm ok [15:08:50] <Cincy> Any GUIs for that sort of thing or is it all text? [15:09:09] <RoanKattouw> All text [15:09:28] <Cincy> rough [15:09:55] <Smaug> anybody familiar with Extension:ForcePreview? [15:10:22] <Cincy> Thanks for the help I'm going to check out that page [15:10:35] <RoanKattouw> Good luck [15:10:46] <Cincy> lol i'll need it [15:10:58] <Smaug> it says "Please check to make sure you have revision 30891 or later of MediaWiki 1.12 before installing this extension!" and I have 1.11. will it just not work? [15:11:17] <RoanKattouw> Probably not [15:11:28] <Smaug> ok [15:12:42] <RoanKattouw> !upgrade | Smaug [15:12:42] --mwbot-- Smaug: http://www.mediawiki.org/wiki/Manual:Upgrading [15:12:56] <Dantman|FS> Mmmm... stateless login... [15:13:05] <Smaug> yeah, I guess i will have to upgrade [15:15:28] <EnderOL> will the upgrade manual work for all previous versions? it doesn't say anything about that.. [15:15:37] <RoanKattouw> AaronSchulz: A lot of the queries I'm seeing in there are simply irreproducible with the current API version. Are you sure they're not ancient? I at least remember fixing the ORDER BY cl_to, cl_sortkey, cl_from, cl_timestamp thing some time ago [15:15:46] <RoanKattouw> EnderOL: Yes [15:16:00] <RoanKattouw> The upgrading process is the same for all versions later than 1.6 I believe [15:16:25] <EnderOL> alright [15:17:30] <LeonWP> hi [15:21:13] <wikibugs> 03(mod) Fatal error in Parser:: extractTagsAndParams static method using $this - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13522 +comment (10hansen) [15:21:53] <wikibugs> 03(mod) Fatal error in Parser:: extractTagsAndParams static method using $this - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13522 (10hansen) [15:27:41] *AaronSchulz eyes validationpage [15:27:50] <AaronSchulz> Raymond_: I don't like that [15:27:53] <AaronSchulz> it spams the db [15:28:03] <AaronSchulz> :( [15:28:31] <frieze> k [15:30:17] <Raymond_> AaronSchulz: what do you mean exactly? [15:31:37] <rainman-sr> brion, did you by any chance succeeded in reproducing the korean mwsuggest bug? [15:32:10] <AaronSchulz> SELECT rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_user_text,rev_user,rev_minor_edit,rev_deleted,rev_len,rev_parent_id,page_namespace,page_title,page_latest FROM `mw_page`,`mw_revision` WHERE (rev_id=page_latest) AND (page_id=rev_page) AND page_namespace = '8' AND page_title = 'Validationpage' LIMIT 1 [15:32:12] <AaronSchulz> SELECT page_id,page_len,page_is_redirect FROM `mw_page` WHERE page_namespace = '8' AND page_title = 'Validationpage' LIMIT 1 [15:32:16] <AaronSchulz> a bunch of times [15:32:19] <RoanKattouw> brion: Could you purge http://noc.wikimedia.org/cgi-bin/ng/report.py?db=enwiki&sort=onereal&limit=50&sample=&compare=&prefix= and enable ApiEdit at TestWiki? ;) [15:32:34] *AaronSchulz watches everyone ambush brion [15:35:01] <AaronSchulz> Raymond_: I may just search and replace it out then [15:35:39] <Raymond_> AaronSchulz: I see... it happens a lot of times :( [15:35:42] <AaronSchulz> Raymond_: hmm, I wonder if template fetch should do linkcache as well [15:35:58] <Raymond_> dunno [15:36:05] <AaronSchulz> it is already close to having page_len, page_is_redirect [15:36:18] <AaronSchulz> adding to cache would avoid the link css class query [15:37:12] <wikibugs> 03(mod) Fatal error in Parser:: extractTagsAndParams static method using $this - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13522 +comment (10alex.emsenhuber) [15:39:10] <Raymond_> AaronSchulz: should I replace {{MediaWiki:Validationpage}} with 'Hilfe:Gesichtete und geprüfte Versionen' for German to test it it improves performance? [15:39:27] <AaronSchulz> you won't notice the difference [15:39:31] <Raymond_> -it +if [15:39:35] <AaronSchulz> but it is still spam :) [15:39:42] <AaronSchulz> so replacing is nice [15:39:47] <Raymond_> oki [15:44:52] <CIA-50> 03raymond * r34737 10/trunk/extensions/FlaggedRevs/FlaggedRevsPage.i18n.php: Localisation updates German - avoid db spam [15:49:56] <wikibugs> 04(REOPENED) Create patroller group on Ukrainian Wikipedia - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12601 +comment (10Ahonc.ua) [15:55:11] <wikibugs> 03(mod) Create patroller group on Ukrainian Wikipedia - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=12601 (10tol6) [15:59:13] <White_Cat> is tiff file format non-free? [15:59:42] <CIA-50> 03raymond * r34738 10/trunk/phase3/includes/SpecialSearch.php: [15:59:42] <CIA-50> Add CSS classes to allow easier hiding of elements. [15:59:42] <CIA-50> Per request of the German screenreader project 'BIENE' [16:02:05] <Ktron> where in the database are namespaces stored? I'm trying to figure out what namespace 14 is [16:02:25] <ialex> Category [16:02:45] <ialex> namespaces aren't stored in the database anyway [16:03:24] <wikibugs> 03(NEW) API should use WgOutputEncoding - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14108 15enhancement; normal; MediaWiki: API; (ssanbeg) [16:06:44] <CIA-50> 03aaron * r34739 10/trunk/phase3/includes/Parser.php: If no current revision, cache as dead link [16:08:40] <White_Cat> brion do you think we can add tiff files to the list of uploadable files? [16:09:38] <wikibugs> 14(INVALID) API should use WgOutputEncoding - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14108 +comment (10brion) [16:10:48] <AaronSchulz> why are this templates being looked up twice? [16:11:15] *AaronSchulz sighs [16:11:44] <Simetrical> White_Cat, why? TIFF is not an open standard and can't do anything that standard formats can't. [16:11:56] <White_Cat> Simetrical well [16:12:02] <White_Cat> I see many TIFF images by NASA [16:12:12] <White_Cat> they seem to be better quality than JPG [16:12:19] <Simetrical> You can just convert them. [16:12:49] <Simetrical> High-quality JPG is visually indistinguishable from lossless images for photograph-like material. [16:13:18] <Simetrical> "The inclusion of the SampleFormat tag in TIFF 6.0 allows TIFF files to handle advanced pixel data types, including integer images with more than 8 bits per channel and floating point images. This tag made TIFF 6.0 a viable format for scientific image processing where extended precision is required. An example is the use of TIFF to store images acquired using scientific CCD cameras that provide up to 16 bits per pixel of intensity resolutio [16:13:18] <Simetrical> n." [16:13:25] <Simetrical> So maybe that's why. [16:13:47] <White_Cat> Simetrical well [16:13:54] <White_Cat> http://hubblesite.org/newscenter/archive/releases/2003/11/image/a/warn/ [16:14:00] <Fire> Hi [16:14:17] <White_Cat> 8.62MB vs 285.99MB [16:14:24] <White_Cat> thats a significant loss of quality right? [16:14:26] *Fire wonders about the highlight but can't see who did it in his backloh. [16:14:29] <Fire> backlog* [16:19:47] <CIA-50> 03ialex * r34740 10/trunk/extensions/Configure/Configure.settings.php: Added $wgAPIListModules, $wgAPIMetaModules and $wgAPIPropModules (even if not configurable) [16:19:54] <White_Cat> Simetrical commons is a free image repository [16:19:54] <Simetrical> White_Cat, you can't upload 285.99 MB files anyway. [16:19:59] <White_Cat> Simetrical no [16:20:19] <White_Cat> actualy I can via eloquence but no matter [16:20:26] <White_Cat> I think the file format would be a fine addition [16:20:50] <Simetrical> Commons is meant to serve Wikimedia projects. None of those require 16-bit intensity readings. [16:21:03] <White_Cat> commons isnt meant to serve wikimedia projects only [16:22:20] <White_Cat> Simetrical should I initiate a discussion on this on commons? [16:22:41] <White_Cat> If this is a controversial decision that my clear the controvercy [16:22:45] <Simetrical> White_Cat, no point unless Brion's willing to okay it. [16:23:13] <Simetrical> http://commons.wikimedia.org/wiki/Commons:Project_scope [16:23:18] <Simetrical> "Wikimedia Commons is a freely licensed media file repository (similar to stock photography archives) targeted at other Wikimedia projects." [16:23:27] <White_Cat> Simetrical yes [16:23:31] <White_Cat> but not just those [16:23:32] <Simetrical> "uploading images of yourself and others in small quantity is allowed as long as they are useful for some Wikimedia project" [16:23:56] <White_Cat> Simetrical high quality images would be of benefit to various projects [16:24:14] <Simetrical> No they wouldn't. [16:24:15] <White_Cat> Simetrical that clause is against family albums [16:24:26] <nakon> #wikimedia-commons or elsewhere please [16:24:30] <Simetrical> More than 24-bit color is worthless except for scientific analysis. [16:24:33] <MinuteElectron> nakon: no [16:24:38] <Simetrical> nakon, he'd be asking in #wikimedia-tech, but he's banned there. [16:24:42] <Simetrical> This does have to go past the shell users. [16:24:47] <Simetrical> Or, more likely, past Brion. [16:24:54] <wikibugs> 03(mod) API should use WgOutputEncoding - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14108 (10ssanbeg) [16:24:57] <White_Cat> Simetrical right [16:25:08] <White_Cat> Simetrical I guess the main concern is file sizes [16:25:12] <White_Cat> is that correct? [16:25:12] <Simetrical> TIFF is not an open standard, it's controlled by Adobe. [16:25:15] <Simetrical> That's an issue too. [16:25:49] <Simetrical> If file size is an issue, it's more like the problem is *gratuitous* file size. Nobody who's not doing serious research needs the ginormous original images straight off NASA's cameras. [16:26:03] <Simetrical> But yeah, it's an issue in general, sure. [16:26:18] <Simetrical> My opinion doesn't matter, as I say, ask Brion. [16:29:51] <White_Cat> Do you think the brion will listen to a small bug like me? [16:29:56] *White_Cat feels small [16:33:33] <wikibugs> 03(mod) Logo of Georgian Wikibooks - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14101 +shell (10brion) [16:33:58] <derwin> sigh.. I still fail at using Template:For [16:34:09] <derwin> I am trying to use a minimal test case [16:36:51] <wikibugs> 03(NEW) Improve transparency of flagging in version history - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14109 15enhancement; normal; MediaWiki extensions: FlaggedRevs; (pbirken) [16:37:49] <Ktron> Is there any way to change every instance of 'foobar' in every page in my mediawiki to 'snafu'? [16:39:42] <wikibugs> 03(mod) API should use WgOutputEncoding - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14108 (10brion) [16:40:49] <derwin> is there a reason that mediawiki should be outputting 10 pages of debug like this : PPNode_Hash_Tree::__set_state(array( 'name' => 'template', 'firstChild' => PPNode_Hash_Tree::__set_state(array( 'name' => 'title', 'firstChild' => [16:40:53] <derwin> to my browser? [16:41:05] <derwin> it seems to really not like Template:For and/or Template:For/aux :/ [16:41:31] <derwin> anyone have any other suggestions as to how I can do an arbitrary "for" like loop, probably for under 30 total elements at any given time? [16:43:27] <Ktron> Is there any way to change every instance of 'foobar' in every page in my mediawiki to 'snafu'? Would changing wikidb.text directly with my own script update the whatlinkshere etc correctly? [16:46:29] <wikibugs> 03(NEW) Improvements for Spezial:OldReviewedPages - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14110 15enhancement; normal; MediaWiki extensions: FlaggedRevs; (pbirken) [16:47:11] <wikibugs> 03(mod) Ajax search bug with complex IMEs - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14082 +comment (10rainman) [16:50:46] <Raymond_> AaronSchulz: the i18n folks do not like my replacement from r34737 for testing purposes. what to do? is it a caching issue or not to use a lot of {{mediawiki:validationpage}} calls? [16:51:20] <AaronSchulz> Raymond_: if they have problems, then you can revert it back to the old way [16:51:49] <Raymond_> AaronSchulz: ok tthanks [16:51:52] <AaronSchulz> the spam isn't *that* bad, so if removing it causes problems [16:52:06] <AaronSchulz> Raymond_: you can also edit the MW: messages [16:52:55] <GerardM-> AaronSchultz, we asked you yesterday about the stability of the messages, hard coded messages are not on [16:54:09] <MinuteElectron> AaronSchulz: If it's not causing a performance issue, why get rid of this "spam" since all it seams to be causing is a removal of features. [16:54:14] <wikibugs> 03(mod) Improvements for Spezial:OldReviewedPages - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14110 (10JSchulz_4587) [16:54:24] <GerardM-> it is not as if Mediawiki is used only by the WMF [16:54:24] <wikibugs> 03(mod) RC-Team requests feed for desighting - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14106 (10JSchulz_4587) [16:54:33] <AaronSchulz> MinuteElectron: spam adds up [16:54:42] <AaronSchulz> if no one has issues with killing it, then I kill it [16:55:02] <CIA-50> 03raymond * r34741 10/trunk/extensions/FlaggedRevs/FlaggedRevsPage.i18n.php: Localisation updates German - revert r34737 per IRC discussion [16:55:34] <MinuteElectron> Maybe we could us parameters to combat this? [16:55:40] <MinuteElectron> (just a though) [16:55:42] <MinuteElectron> *thought [16:56:59] <Cincy> Anyone good with magic words? [16:58:08] <VasilievVV> Raymond_: I saw you tried to transcluse {{MediaWiki:Message}} [16:58:20] <VasilievVV> Maybe {{int:message}} is a better idea? [16:59:09] <Raymond_> VasilievVV: dunno... {{MediaWiki:Message}} is the default way for all i18n. is {{int:message}} less expensive? [17:03:09] <VasilievVV> At least it uses wfMsgReal() [17:03:19] <VasilievVV> No ideas about expensivity [17:06:37] <Cincy> Can anyone tell me how to use a magic word value? I think I have it set up but I'm not sure how to use it [17:07:10] <Ktron> Abra Cadabra! [17:07:27] <Cincy> lol why did I think of that [17:08:11] <Cincy> any other ideas? [17:08:26] <henke37> Open seasme [17:09:01] <Ashfire908> How do I set mediawiki to be offline? [17:09:32] <Cincy> Has anyone here ever used magic words? [17:10:04] <nakon> Cincy: http://www.mediawiki.org/wiki/Magic_words [17:10:21] <nakon> Ashfire908: http://www.mediawiki.org/wiki/Manual:%24wgReadOnly [17:10:36] <Cincy> yeah I took a look and I think I have it setup but I'm not sure how to use it.. [17:11:01] <Cincy> I setup a variable I think but I have no idea how to call it or where to call it at [17:11:34] <Cincy> I'm totally new to this stuff [17:11:39] <wikibugs> 03(mod) CategoryPageView does not work on preview - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13882 (10alan.trick) [17:11:50] <nakon> add {{VARIABLENAME}} to a page [17:12:03] <derwin> {{{ [17:12:08] <derwin> not {{ [17:12:09] <derwin> ? [17:12:31] <Cincy> just a php page? [17:12:37] <derwin> {{VARIABLENAME}} seems likely to transclude Template:VARIABLENAME [17:12:39] <Cincy> then call it though the browser? [17:12:53] <nakon> derwin: not if there is a defined magic word for it [17:12:56] <derwin> Cincy: mediawiki is an application [17:13:16] <nakon> {{PAGENAME}} for example [17:13:40] <Cincy> I tried adding that to a page in mediawiki but it didn't work. Should it have? [17:14:27] <nakon> take a look at http://en.wikipedia.org/wiki/User:Nakon/magic [17:14:44] <nakon> and then http://en.wikipedia.org/w/index.php?title=User:Nakon/magic&action=edit [17:15:22] <Cincy> ok [17:16:30] <Cincy> I must have something setup wrong [17:18:27] <Cincy> nakon- where you have the {{pagename}} is the pagename defined by this line? define('MAG_NIFTYVAR', 'mycustomvar1'); or am I getting my name from the wrong place [17:18:42] <Cincy> so mine would read {{MAG_NIFTYVAR}} [17:18:45] <Cincy> ? [17:19:58] <nakon> I'm not sure [17:20:36] <Cincy> Have you ever made one? [17:20:56] <derwin> is there some way I'm missing that I can do "given this list of page names as arguments, print a list of pages which exist" ? [17:20:56] <Cincy> I assume pagename is a reserved vaiable? [17:21:32] <Cincy> bummer [17:22:43] <wikibugs> 03(NEW) Missing prefix "Image:" in MediaWiki:Fileexists-extension - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14111 trivial; normal; Wikimedia: wikibugs; (spiritia) [17:23:20] <wikibugs> 03(mod) Ajax search bug with complex IMEs - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14082 (10brion) [17:25:40] <derwin> [[:{{{2}}}|{{{l2|{{{2}}}}}}]] [17:25:45] <derwin> what the heck does "l2" mean here? [17:25:47] <derwin> :/ [17:25:54] <wikibugs> 03(mod) Missing prefix "Image:" in MediaWiki:Fileexists-extension - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14111 (10raimond.spekking) [17:25:57] <derwin> mediawiki templates seem.. write-only [17:41:08] <CIA-50> 03brion * r34742 10/trunk/phase3/ (RELEASE-NOTES includes/SpecialUpload.php): [17:41:08] <CIA-50> * (bug 14111) Similar filename warning links now lead to correct page [17:41:08] <CIA-50> A title object was getting created without the Image namespace, so lead to wrong [17:41:08] <CIA-50> links when used in fileexists-extension warning message. For consistency, using [17:41:08] <CIA-50> target name with namespace in both spots on that message now as well. [17:41:59] <wikibugs> 03(FIXED) Please switch off "nofollow" attribute for foundationwiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14105 +comment (10brion) [17:42:29] <wikibugs> 04(REOPENED) Please switch off "nofollow" attribute for foundationwiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14105 +comment (10brion) [17:42:48] <wikibugs> 03(FIXED) Missing prefix "Image:" in MediaWiki:Fileexists-extension - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14111 +comment (10brion) [17:42:58] <ialex> hehe [17:44:26] <ialex> hmm: line 641: '</li>' . $dlink2: this is invalid XHTML [17:54:11] <derwin> I am comprehending why en.wikipedia templates are so insane and like.. daisy-chained.. if you don't do that, the syntax of mediawiki explodes as a "general purpose programming language" which makes sense because.. that's not what it is :) [17:54:57] <CIA-50> 03rotem * r34743 10/trunk/extensions/BoardVote/BoardVote.i18n.php: Update for he. [17:56:11] <Cincy> Can someone help me create a variable or magic word using php? [17:59:17] <ialex> Cincy: you can read http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/docs/magicword.txt?view=markup [18:00:22] <CIA-50> 03rotem * r34744 10/trunk/extensions/BoardVote/BoardVote.i18n.php: Fix for he. [18:02:25] <Cincy> I haven't had much luck yet but I'll take a look, thx [18:02:48] <MONK3000> Can somebody explain why rollback is so uncomfortable? "Cannot revert edit; last contributor is only author of this page." Especially unlogically if it's me, the admin [18:03:33] <ialex> MONK3000: because rollback revert all last edits done by the same user [18:05:16] <MONK3000> ah and undo rols back the certain edit. now i understand the difference :) [18:05:33] <Cincy> ialex - I add that to my localsettings file? [18:05:47] <Cincy> I mean the code in the doc [18:05:52] <ialex> Cincy: you can, yes [18:06:19] <Cincy> Is that a good place to do it or do you suggest placing it else were? [18:07:15] <ialex> Cincy: you can put in a other file that you can include in LocalSettings.php, but it has the same effect [18:07:36] <Cincy> ok thanks [18:13:27] <Nikerabbit> hello [18:17:50] <CIA-50> 03aaron * r34745 10/trunk/extensions/FlaggedRevs/ (4 files): [18:17:51] <CIA-50> * Show user in hist (bug 14109) [18:17:51] <CIA-50> * Show age at oldreviewedpages (bug 14110) [18:17:51] <CIA-50> * Some UI color tweaks [18:18:10] <wikibugs> 03(FIXED) Improve transparency of flagging in version history - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14109 +comment (10JSchulz_4587) [18:19:06] <wikibugs> 03(FIXED) Improvements for Spezial:OldReviewedPages - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14110 +comment (10JSchulz_4587) [18:19:09] <MONK3000> a quick question: what is the opposite of a subcategory? top level category? [18:19:24] <MinuteElectron> There is no such distinction in mediaWiki. [18:19:48] <MONK3000> but i need to express myself :) [18:19:49] *Raymond_ runs to sync with aarons last commit :) [18:25:48] <CIA-50> 03raymond * r34746 10/trunk/extensions/FlaggedRevs/FlaggedRevsPage.i18n.php: Localisation updates German [18:26:43] <siebrand> AaronSchulz: you're pushing it. [18:30:37] <CIA-50> 03aaron * r34747 10/trunk/extensions/FlaggedRevs/FlaggedRevs.php: Return out if false, to get draft color [18:30:49] <AaronSchulz> Raymond_: :) [18:31:14] <CIA-50> 03brion * r34748 10/trunk/extensions/LinkSearch/LinkSearch_body.php: [18:31:14] <CIA-50> should be safe for now, but damn it's icky to dump raw variables into SQL and hope they were properly filtered several layers of code above. :) [18:31:14] <CIA-50> Practice defensive programming at i/o layers... escape your SQL values [18:34:29] <davidmccabe> Is the fingerprint for svn.wikimedia.org supposed to have changed to 4d:76:a4:a2:47:c1:bc:a8:d5:d7:51:ec:15:71:77:9a? [18:35:21] <AaronSchulz> heh [18:35:27] <ialex> i got that before [18:36:03] <davidmccabe> Somebody should probably put the correct fingerprint on a protected page on mediawiki.org. [18:37:14] <brion> yes, it's changed [18:37:18] <davidmccabe> thanks. [18:39:08] <CIA-50> 03david * r34749 10/trunk/extensions/SpecialForm/SpecialForm.body.php: Fixed NOTICE by checking array size. [18:40:22] <brion> i just wish the values in ~/.ssh/known_hosts looked like the things it tells you :) [18:40:24] <brion> it's not a great ui [18:40:55] <davidmccabe> yup. [18:42:15] <brion> but i guess "ssh" and "not a great ui" are pretty much redundant ;) [18:45:14] <ialex> :) [18:45:24] <davidmccabe> Anyways thanks for the tip. [18:51:59] <CIA-50> 03raymond * r34750 10/trunk/phase3/includes/SpecialNewpages.php: Do not add an empty class='' [18:53:23] <Z12XEP> hello [18:54:26] <Z12XEP> spricht hier jemand deutsch oder besser englisch ? [18:56:07] <Z12XEP> how can i change the sidbar menu in mediawiki 1.12? i need not all standart links [18:56:21] <Raymond_> !sidebar | Z12XEP [18:56:21] --mwbot-- Z12XEP: To edit the navigation menu on the left, edit [[MediaWiki:Sidebar]] using its special syntax. For more details, see <http://www.mediawiki.org/wiki/Manual:Interface/Sidebar>. [18:56:44] <Z12XEP> okay, thank you :) [18:57:42] <Z12XEP> bye [18:59:31] <CIA-50> 03brion * r34751 10/trunk/phase3/ (includes/SpecialSearch.php languages/messages/MessagesEn.php): [18:59:31] <CIA-50> Cleanup r34661 (bug 14063 -- <label> for powersearch redirect checkbox) [18:59:31] <CIA-50> Got rid of the old weird messages that combined localization with layout. Layout's now in nice clean code, with localization in nice clean messages. Yay! [19:00:46] <wikibugs> 03(mod) Power search form missing <label> for redirects check - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14063 (10brion) [19:02:46] <CIA-50> 03raymond * r34752 10/trunk/phase3/ (2 files in 2 dirs): [19:02:46] <CIA-50> * Localisation updates German [19:02:46] <CIA-50> * Update messages.inc per r34751 [19:05:02] <CIA-50> 03rotem * r34753 10/trunk/phase3/languages/messages/MessagesHe.php: Update. [19:05:25] <CIA-50> 03raymond * r34754 10/trunk/phase3/languages/messages/MessagesDe.php: Localisation updates German [19:13:58] <derwin> if I have a string like "bleh (blah)" and want to truncate " (blah)" from the end, is there any easy way to do so in mediawiki? [19:14:19] <RoanKattouw> derwin: [[foo (bar)|]] automatically becomes [[foo (bar)|foo]] [19:14:53] <derwin> huh, neat! [19:15:15] <RoanKattouw> Same for [[foo, bar|]] and [[foo:bar|]] [19:16:19] <CIA-50> 03aaron * r34755 10/trunk/extensions/FlaggedRevs/ (FlaggedArticle.php FlaggedRevision.php): Make code more elegant. Remove duplication and add accessor. [19:18:04] <derwin> hrm, " [[{{FULLPAGENAME}}|]] " does not seem to work as you describe [19:18:34] <CIA-50> 03aaron * r34756 10/trunk/extensions/FlaggedRevs/FlaggedRevision.php: Use getRevText() [19:19:08] <derwin> I get " Main Page is [[Proc:Test|]] " [19:19:15] <derwin> instead of the wikilink [19:21:42] <derwin> _oh_ you're saying it will display differently [19:21:51] <derwin> no, I want it to actually produce the different string. [19:26:07] <AphelionZ> It's time to change hosting - I need a stable API implementation. Can anybody suggest a hardware benchmark and a linux distro? A scaled down version of Wikipedia is fine, just want to hear some suggestions [19:27:34] <wikibugs> 03(mod) RC-Team requests feed for desighting - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14106 +comment (10mnh) [19:27:42] <evanpro> So, I wonder why the EditFilter hook was added when the ArticleSave hook already existed. [19:27:48] <evanpro> It seems extraneous [19:33:00] <AphelionZ> anybody have any suggestions? [19:33:39] <siebrand> AphelionZ: scaled down implementation of Wikipedia needs ~30 servers. That what you're talking about? [19:34:01] <AphelionZ> naw i mean 1 server, without the load balancing and all that [19:34:19] <AphelionZ> if all a computer did was to run mediawiki like a champ [19:34:36] <AphelionZ> and of course, be ready for scalability [19:34:42] <siebrand> AphelionZ: we're running Betawiki on a Linux vServer at netcup.de. We are being sponsored, but had a paid server before that. Quite happy with the package. [19:35:09] <AphelionZ> how is their support? [19:35:17] <siebrand> AphelionZ: quite fine. [19:35:58] <AphelionZ> not gonna be able to sell it to my clients though cuz of the german website :-/ [19:36:05] <siebrand> AphelionZ: website is mainly in German, but no problems responding to English support requests. Do not exactly know what type of support you're expecting, though. [19:36:15] <AphelionZ> just phone support [19:36:41] <siebrand> AphelionZ: dunno if they have phone support. I only use email (basically only at setup time) [19:36:49] <AphelionZ> yeah [19:37:17] <siebrand> AphelionZ: I think you can have a vserver set up for zilch and use it for a week. [19:37:45] <siebrand> AphelionZ: we're running ubuntu 7.10, but they're offering 8 or so linux distros [19:37:57] <siebrand> AphelionZ: installation takes about a minute. [19:48:37] <AphelionZ> what about FreeBSD as opposed to RedHat? anybody have any opinions [19:48:51] <AphelionZ> i know im opening up the door to a distro shootout here but i need to make a decision [19:58:24] <CIA-50> 03aaron * r34757 10/trunk/phase3/includes/api/ApiQueryRevisions.php: Actually specify page_id=rev_page to avoid cartesian join bringing the site down again [20:02:22] <davidmccabe> I'm not seeing Article::doEdit check the permissions of the user; is that by design? [20:02:38] <CIA-50> 03aaron * r34758 10/trunk/phase3/includes/api/ApiQueryRevisions.php: Actually, page not always selected. Add this only when needed. [20:13:34] <CIA-50> 03evan * r34759 10/trunk/extensions/SpecialForm/ (SpecialForm.body.php TODO): (log message trimmed) [20:13:34] <CIA-50> Fixup spam checks [20:13:34] <CIA-50> Some spam filters use the EditFilter hook rather than the ArticleSave [20:13:34] <CIA-50> hook. Why, I don't know, but they just do. There were some other [20:13:34] <CIA-50> checks that were getting skipped, so we now replicate a lot of the [20:13:36] <CIA-50> checks from EditPage.php. There doesn't seem to be a way to call the [20:13:38] <CIA-50> code remotely. [20:16:13] <RoanKattouw> brion: VasilievVV just told me about the database crash, sorry [20:16:32] <RoanKattouw> Unfortunately TortoiseSVN is acting real weird over the fingerprint change so I can't commit anything right now [20:21:34] <xFlux> how can I keep people from viewing pages, unless they are logged in? [20:22:08] <ialex> $wgGroupPermission['*']['read'] = false; [20:23:05] <xFlux> nice, thanks [20:46:01] <RoanKattouw> brion: I emailed you my new public key, generated with PuTTY so I guess it should be good [20:50:41] <wikibugs> 03(NEW) Incorrect hook name called from Language:: getSpecialPageAliases - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14112 major; normal; MediaWiki: Internationalization; (aik) [20:55:36] <Sonja> hi! i'm writing a reference book with the help of some volunteers. it will be online so we can collaborate (maybe using mediawiki). but all their contributions will be the property of me and they will agree to that beforehand, fully aware of everything. so i can publish it one day. give them a free copy. but if i make any money, it will only go to me. is mediawiki a good tool for this kind of project? [21:04:10] <CIA-50> 03aaron * r34760 10/trunk/phase3/includes/api/ApiPageSet.php: E_STRICT [21:04:31] <xFlux> hiow can I remove the random tab in the wiki? [21:04:37] <CIA-50> 03aaron * r34761 10/trunk/phase3/includes/api/ApiQuery.php: Use 'api' querygroup [21:05:31] <RoanKattouw> AaronSchulz: Is this API query group new? [21:05:51] <AaronSchulz> I guess, doesn't do anything for now [21:06:48] <RoanKattouw> Well it's in some generic place like ApiQueryBase::getDB() right? [21:27:24] <fajro> hi? [21:29:34] <davidmccabe> just ask. [21:29:54] <Charitwo> fajro: need help with anything? [21:30:44] <fajro> I'm searching mediawiki extensions for blind users [21:31:30] <CIA-50> 03siebrand * r34762 10/trunk/phase3/languages/messages/ (24 files): Localisation updates for core messages from Betawiki (2008-05-13 23:19 CEST) [21:31:36] <fajro> there are screen reader extensions? [21:31:39] <CIA-50> 03brion * r34763 10/trunk/phase3/includes/api/ApiQueryLogEvents.php: (log message trimmed) [21:31:40] <CIA-50> Disable logevents until it works... [21:31:40] <CIA-50> Currently produces very slow queries like the following: [21:31:40] <CIA-50> SELECT /* ApiQueryLogEvents::execute SineBot */ [21:31:40] <CIA-50> log_type,log_action,log_timestamp,page_id,log_user,user_name,log_namespace,log_title,log_comment,log_params [21:31:40] <CIA-50> FROM `user`,`logging` FORCE INDEX (times) LEFT JOIN `page` ON [21:31:42] <CIA-50> ((log_namespace=page_namespace) AND (log_title=page_title)) WHERE (log_type != [21:31:46] <CIA-50> 03aaron * r34764 10/trunk/phase3/includes/SpecialRecentchanges.php: Silly typo [21:39:58] <obek> Last week my mediawiki copy was bombarded with requests with the pattern /index.php?title=http:// [some weird address]. The access logs had about 10 of these requests every minute. I shut down the wiki and have just upgraded to the newest version (1.12.0). Is there anything else I should do to? [21:40:13] <obek> per second not per minute [21:40:58] <derwin> !spam | obek [21:40:58] --mwbot-- obek: For information about combating and handling spam in MediaWiki, see <http://www.mediawiki.org/wiki/Manual:Combating_spam> and <http://meta.wikimedia.org/wiki/Anti-spam_Features>. [21:40:59] <Warpath> Open Proxy as per [[Meta:No open proxies]]! [21:44:47] <CIA-50> 03siebrand * r34765 10/trunk/extensions/ (62 files in 62 dirs): Localisation updates for extension messages from Betawiki (2008-05-13 23:19 CEST) [21:45:58] <Charitwo> hiya Fire [21:46:21] <Fire> Hi [21:47:59] <fajro> xD [22:00:29] <MUINATOR> can somebody tell me how to create an contact-Button on a new mediawiki site ? [22:03:25] <CIA-50> 03aaron * r34766 10/trunk/extensions/FlaggedRevs/FlaggedRevsPage.php: Get time in waiting instead, more useful [22:04:51] *brion pushes the scappy-thingy [22:09:30] <LazyBadger> pls, help me with "Call to undefined method domdocument::loadXML() in ...includes\\Preprocessor_DOM.php on line 568" IN WAMP (PHP5.2.5-5.2.6). I HAVE domxml extension from PECL [22:11:34] <LazyBadger> Yes - I read FAQ and tried Google [22:18:07] <CIA-50> 03aaron * r34767 10/trunk/phase3/includes/api/ApiQueryLogEvents.php: [22:18:07] <CIA-50> * Totally redo index use. [22:18:07] <CIA-50> * log_id is live [22:18:53] <CIA-50> 03aaron * r34768 10/trunk/phase3/includes/api/ApiQueryLogEvents.php: log_id here too [22:26:21] <wikibugs> 03(mod) RC-Team requests feed for desighting - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14106 (10JSchulz_4587) [22:33:00] <wikibugs> 14(DUP) Incorrect hook name called from Language::getSpecialPageAliases - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14112 +comment (10raimond.spekking) [22:33:09] <wikibugs> 03(mod) typo in hook definition - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=11462 +comment (10raimond.spekking) [22:33:54] <wikibugs> 03(mod) Ajax search bug with complex IMEs in Safari/Mac - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14082 summary; +comment (10brion) [22:34:04] <PovAddict> can I make the TOC show only up to some heading level? [22:36:05] <Duesentrieb> PovAddict: use css to hide lower levels [22:39:26] <PovAddict> ...for one page [22:39:55] <aedaemoen> hey guys [22:40:16] <aedaemoen> moving a mediawiki install from one server to another... dumped the mysql database completely [22:40:22] <aedaemoen> anything else that needs backed up? [22:40:38] <aedaemoen> ( was told that mw stores everything in db, so wouldnt have to backup the original directory ) [22:40:57] <derwin> look at the "upgrade" doc [22:41:02] <derwin> on the mediawiki site [22:41:08] <derwin> it will tell you what you need to "back up" [22:41:16] <derwin> that set of things you need to back up is likely to be the same set [22:41:22] <derwin> that you are looking for [22:41:36] <PovAddict> so there's nothing special in __TOC__ or something to hide some lower heading levels? [22:43:27] <wikibugs> 03(FIXED) Add bot generated spam reports on enwiki to robots.txt - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13398 +comment (10brion) [22:43:32] <wikibugs> 03(FIXED) Add MediaWiki_talk:Spam-blacklist to robots.txt for enwiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14075 +comment (10brion) [22:43:39] <wikibugs> 03(FIXED) Add Wikipedia:Spam-Blacklist-Log to robots.txt for dewiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=13961 +comment (10brion) [22:46:16] <wikibugs> 03(mod) Add MediaWiki_talk:Spam-blacklist to robots.txt for enwiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14075 +comment (10cbass) [22:48:09] <wikibugs> 04(REOPENED) Add MediaWiki_talk:Spam-blacklist to robots.txt for enwiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14075 (10cbass) [22:48:43] <wikibugs> 03(FIXED) Add MediaWiki_talk:Spam-blacklist to robots.txt for enwiki - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14075 +comment (10brion) [22:49:07] <Charitwo> speedy [22:49:44] <PovAddict> fix/reopen/fix is like an edit war :) [22:59:23] <derwin> is there any way to duplicate a mediawiki page to another page on the same wiki, without edit->select all->edit->paste ? [22:59:37] <derwin> ie, a "copy" which is automated like "move" is [23:03:35] <Duesentrieb> derwin: i don't think so. you can export to xml and then import, which would preserve the edit history and authorship. but it's not more convenient, really. [23:04:09] <Duesentrieb> there may be an extension to do it; shouldn't be too hard to write one anyway. But then... duplicating information is generally bad. so why would you want this? [23:04:29] <brion> there's a Duplicator extension which does all that [23:04:38] <brion> but i think it's kind of silly thing to do :D [23:04:41] <Duesentrieb> oh is there? [23:04:47] <Duesentrieb> indeed :) [23:05:07] <Duesentrieb> !e Duplicator [23:05:07] --mwbot-- http://www.mediawiki.org/wiki/Extension:Duplicator [23:05:34] <Duesentrieb> derwin: ---^ [23:07:51] <NicDumZ> brion, could you review https://bugzilla.wikimedia.org/show_bug.cgi?id=14094 for me, please ? :) [23:28:26] <derwin> Duesentrieb : thx [23:28:52] <derwin> and I agree with you and brion that it is not generally something we want to do :) [23:29:46] <wikibugs> 14(DUP) block new spam only - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14092 +comment (10brion) [23:29:51] <wikibugs> 03(mod) Spam blacklist, if match, check previous version and accept if URL present there - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=1505 +comment (10brion) [23:30:19] <wikibugs> 04(REOPENED) Spam blacklist, if match, check previous version and accept if URL present there - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=1505 (10brion) [23:31:47] <CIA-50> 03brion * r34769 10/trunk/extensions/SpamBlacklist/SpamBlacklist_body.php: [23:31:47] <CIA-50> * (bug 1505) Limit spam blacklist checks to new URLs to reduce disruption of existing pages being legitimately edited by legitimate people which happen to already have some spam on them. [23:31:48] <CIA-50> Steals the load-existing-links function out of ConfirmEdit. [23:32:07] <wikibugs> 03(FIXED) Spam blacklist, if match, check previous version and accept if URL present there - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=1505 +comment (10brion) [23:34:03] <HeyJued> Hello [23:35:22] <HeyJued> I am having a werid infobox error on my page. If some one could help me out that would be a great help. http://www.leetpwned.com/index.php?title=Bioshock [23:41:00] <wikibugs> 03(mod) Ajax search bug with complex IMEs in Safari/Mac - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14082 (10kjoonlee) [23:41:40] <brion> NicDumZ: um, i'm not totally sure how that bit works ;) [23:41:48] <brion> but stick it on my review queue page on mediawiki.org if you like [23:47:15] <NicDumZ> okay brion, added overthere, I didnt know about that page ;) [23:47:28] <wikibugs> 03(mod) Ajax search bug with complex IMEs in Safari/Mac - 10https://bugzilla.wikimedia.org/show_bug.cgi?id=14082 (10brion) [23:51:46] <brion> gotta run errands, catch ya later [23:58:37] <aedaemoen> ok... can anyone think of a single version of mediawiki that has 29 tables?