[00:00:32] SF is wonderfull for automatically generating the reports, but I have to make it so some non-wiki friendly people can easily add a project and edit it. [00:01:14] right now its really not terrible, just counter-intuitive [00:01:49] for the report reader...which if it were me wouldn't matter, but its another non-wiki person...lol [06:59:06] so I've been wondering ... how the bleep do you guys debug things? [06:59:28] I've not yet found a method that's better than "randomly change things and see how the failure changes" [13:49:07] Hi! [13:49:19] I upgrated from 1.7.1 to 1.8. During data refresh runJobs.php failed several times with the following message: [13:49:24] PHP Warning: Missing argument 2 for ParamProcessor\ParamDefinition::__construct(), called in /mywikipath/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php on line 589 and defined in /mywikipath/extensions/Validator/includes/ParamDefinition.php on line 175 [13:49:29] PHP Notice: Undefined variable: name in /mywikipath/extensions/Validator/includes/ParamDefinition.php on line 177 [13:49:34] PHP Notice: Undefined index: format in /mywikipath/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php on line 79 [13:49:40] PHP Fatal error: Call to a member function setPrintRequests() on a non-object in /mywikipath/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php on line 79 [13:50:30] I just restarted runJobs.php in a while loop until everything finished. [13:56:37] Just fyi and to fix bugs. It runs fine now (http://fcw.de.nu/) [13:56:43] cu [14:53:19] is there a way to remove pages that appear in the result of a #ask from the list of orphaned pages? [16:32:02] New patchset: Jeroen De Dauw; "Nicification of export code in preparation for splitting off certain parts of it" [mediawiki/extensions/SemanticMediaWiki] (master) - https://gerrit.wikimedia.org/r/45373 [17:05:18] New review: Denny Vrandecic; "Looks good in general. Some class names can be further simplified, either in this changeset or a fol..." [mediawiki/extensions/SemanticMediaWiki] (master); V: 0 C: 1; - https://gerrit.wikimedia.org/r/45373 [19:27:31] hey... I just upgraded to latest stable SMW and I'm getting errors in SMW_QueryProcessor and the Validator extension. Is there a known conflict between them? [19:27:55] it's only when I go to a page that has an #ask [19:29:05] here's the errors: http://dpaste.com/898935/ [19:29:17] only thing on the screen [19:33:54] finlay: with a stable SMW there's also a Validator included [19:34:06] have you upgraded your Validator as well? [19:35:33] I think my problem may be that I am using a Validator current snapshot from the validator extension page [19:35:40] when I should be using a validator release tag [19:35:44] with a smw release [19:35:50] let me try to downgrade [19:35:53] that sounds plausible [19:36:43] yup, looks like it [19:37:11] I'm sad that MW extension management is still a clusterfuck :( [19:38:08] in fact much worse with the current implementation of git then we had with the distributor and svn [19:38:51] important thing is that your wiki works again [19:39:25] I was doing an upgrade on a test wiki first to make sure it would work [19:39:26] thankfully [19:39:37] before hitting production [19:39:46] it almost sounds as if testing before deployment is useful [19:40:09] hehe [19:40:24] don't tell anyone, or they'll all want dev/test/acceptance/production test streets! [19:40:49] the upgrade instructions aren't very clear about what needs to go in your LocalSettings though for the SMWSQLStore3 [19:40:59] ah [19:41:47] I think the answer is nothing [19:41:50] given the install instructions [19:42:01] have you checked http://semantic-mediawiki.org/wiki/Help:Installation on that? [19:42:06] but the upgrade instructions seem to imply you might have something there [19:42:50] the "If you are using" "$smwgDefaultStore = 'SMWSpaqlStore';" "already, then you should keep this line and add the following:" is kind of ambiguous [19:42:51] " SMW 1.8.0 introduces a new default database layout (SMWSQLStore3)" [19:43:03] in step 1 of shell access [19:43:17] that means you only have to have something if you're upgrading; when installing fresh you're simply getting SMWSQLstore3 by default [19:43:26] nod [19:43:47] I think I did it correctly [19:43:57] and migraded everything over [19:44:04] finlay, if you learn something useful from this test experience you're more than welcome to edit the Help:Installation page to reflect that [19:46:44] will do! thanks for responding Saruman! [19:47:48] if you could use assistance in expanding smw.org pages, just poke me [20:20:56] hi maybe someone can help me with this: I want to save multiple values in a subobject variable [20:21:46] let's say I want to save colors=red,green,blue in a variable color [20:21:55] how does this work? [20:22:31] color={{#arraymap:{{{colors}}}|delimiter=","|var|formula|new_delimiter}} [20:23:55] you're mixing the terms subobject and variable [20:24:03] which one is it [20:28:45] um it is a variable stored in a subobject [20:29:09] color is one of many variables in my subobject and it should store this 3 values [20:30:04] "Starting with SMW 1.8.0 multiple values per property are supported that may be set with "|" as a delimiter." [20:32:53] I know but template calls dont [20:33:17] a template will deliver the value =red,green,blue [20:33:32] I want them stored seperadely in that subobject variable [20:36:48] {{#subobject:mysubobject [20:36:49] |color={{#arraymap:{{{colors|}}}|,|x|x|¦}}}} [20:39:11] great thanks [20:39:38] what does |,|x|x|¦ mean? [20:40:08] I guess I just dont need it [20:40:41] eh? [20:41:11] var=x [20:41:22] formula=x [20:41:32] i dont understand any of that [20:41:46] and what does new delimiter mean? [20:41:52] so your reasoning goes like "i don't understand it so i don't need it"? [20:42:05] not really ;) [20:42:20] I rather just know [20:42:55] I did read the help but it doesnt say [20:43:04] hmz [20:43:15] it does for me, including with examples [20:43:25] that's how I came up with the line [20:43:37] okay let's say I didnt understand [20:43:45] that sounds much better yes [20:44:19] {{#arraymap:value|delimiter|var|formula|new_delimiter}} [20:44:39] I understand value and delimiter [20:44:44] if you look in my suggestion, I say value={{{colors|}}} [20:44:50] that's the stuff to process [20:44:55] yap [20:44:57] then delimiter=, [20:45:13] that's what you want to split your stuff on [20:45:21] yes so far I get it [20:45:32] then arraymap wants to know where to put the stuff in after splitting [20:45:33] but then I really dont know [20:45:42] oh okay [20:45:46] it wants to have a variable, and I suggest "x" [20:46:00] then it wants to know what formula to apply to each instance. [20:46:10] sounds good to me (even though its "color" I want it in [20:46:15] I supply x and nothing else, so nothing happens [20:46:23] ok [20:46:36] finally we want a new delimiter, or else arraymap will use ", " [20:46:49] and here comes the pipe ^^ [20:46:51] I guess [20:46:54] I cannot put in a pipe, because arraymap uses it itself [20:47:05] aha, that work around I read about. nice [20:47:11] so I put in the HTML code for broken vertical bar/pipe which is ¦ [20:47:23] thank you very much I will try that [20:47:30] ok [20:54:40] domerich: prolly need | instead of ¦ [20:55:08] pipe for SMW is vertical bar, not broken vertical bar [21:07:21] ok thanks [21:07:41] Will try later [21:46:55] for some reason the subobject doesnt recognize the pipe properly http://domerich.funpic.de/wiki/index.php/Neue_Praktiken_bei_der_Breitbandentwicklung [21:47:13] does sobody know a work around? [22:35:44] eeks. [22:36:12] format=sum returns values containing , as a serperator. E.g. 1,837 [22:36:21] does anybody have an example page using internal objects? [22:36:26] but those values cannot be used with {{#expr: [22:36:30] any ideas? [22:38:25] look up the template that format=sum uses, and create your own template without the , separator and then use format=template, template=yourtemplate ? [22:41:48] what do you mean by "look up"? Are there any pages defining the output of Semantic ResultFormats? [22:43:03] I know they're somewhere or they wouldn't know how to use them, they could be in the actual semantic source code or just posted as a template to the page somewhere. [22:43:22] page = site* [22:44:07] didn't find anything in All Pages [22:47:33] let me look into the source files [22:48:26] this is something I've been meaning to look into anyways [22:49:59] is this your own wiki? [22:52:22] I'm not very good with Parser Functions, but the source shows it returning as array_sum, is there any way to make sure your treating the parser functions as an array value? [22:54:56] the other option might be to take your numbers and store in a new variable called sum = format=sum*1 so you take the array of the numbers multiply it by 1 and then store it as an integer [22:55:19] trick it into turning the numbers into an int that {{#expr might use [22:59:34] uh, well. That's hacky. [22:59:40] I'll rather screw around with the code [23:01:31] Demos74dx: thanks anyways. I'll take a look at the code myself as soon as I'm done cooking [23:02:33] Found another thing, it outputs as $wegLang->formatNum which is definatly your culpret [23:02:45] Template:Formatnum [23:04:57] that page doesn't exist in my wiki [23:07:10] oh lordy, okay try this. {{Formatnum|yourvalue||sep=empty|}} [23:07:14] http://commons.wikimedia.org/wiki/Template:Formatnum/doc [23:07:31] Hi yaron [23:07:42] do you have any example pages with internal objects? [23:07:42] Hello! [23:08:27] Sure - http://discoursedb.org/wiki/Picture_IDs_are_perfectly_sensible [23:08:32] the whole point to page from object thing has my head ready to explode and I just need to see it to visualize [23:09:55] so are those the opinions that are internal objects? [23:10:55] Yeah. [23:11:21] gosh, this sucks. [23:12:15] cool, thats helpful, thanks yaron [23:12:35] Sure. [23:13:27] it's a nice idea to output seperators, but that should be configurable in SMW :/ [23:14:27] getting 2 extensions to play nice is never fun. On the same token there should be some sort of output separator handling built into parser functions :/ [23:14:38] sven^: what's the issue? [23:15:24] http://pastebin.com/EjduGmD8 [23:15:27] yaron: SMW's SMWResultPrinter adds commas as seperators in numbers, e.g. 1,432 which breaks {{#expr: [23:15:29] thats his issue [23:16:06] #expr can only handle numbers like 1234.56? [23:16:10] I am using format=sum and want to do calculations with that [23:16:10] yes [23:16:13] format=sum automatically retruns to formatNum [23:16:22] returns* [23:16:31] Hm... well, you could always #replace to take out the commas... [23:17:10] well, actually I think that is the best way to fix this.. some minutes ago I was sure there had to be a better way ;) [23:17:12] sven I think you can just toss it back into formatNum and tell it not to do the commas with sep=empty [23:17:24] I don't have formatNum [23:18:27] um...add it? http://commons.wikimedia.org/w/index.php?title=Template:Formatnum&action=edit [23:18:56] ha. Looks fun to maintain ;) [23:19:53] well the documentation is nice for the template, the template itself is...blegh, but you shouldn't have to look at it as the arguments handler seems fairly simple [23:20:30] I used replace [23:20:32] but thanks [23:21:18] {{#replace{{#ask:QuiteLongAskWithFormat=sum}}|,|}} works just fine [23:21:30] + : [23:21:54] where do you learn about parser functions? The documentation I've seen so far is terrible, are there any good tutorials? [23:24:38] thanks guys [23:26:23] Demos74dx: I don't think the online documentation is that bad, but my book also has a section on parser functions. [23:26:45] It's not free, though. [23:26:51] your books called? [23:27:17] Working with MediaWiki: http://workingwithmediawiki.com/ [23:27:25] cool, I'll get a copy [23:28:24] and e-book. you are a saint [23:28:42] Oh, wow, thanks! [23:30:24] np, thanks for providing so much to the community [23:36:57] are internal objects dynamically generated or do you need to go in and edit every item you want to be internal and set them as internal objects? [23:40:26] Demos74dx: I wouldn't say that either of those is an accurate description... [23:41:01] its like inception, I'm having a hard time grasping it [23:41:20] Hopefully it's not as convoluted as Inception. :) [23:41:34] Do you understand how templates and regular semantic properties work together? [23:41:53] to a degree, I'm very new to wiki stuff [23:42:16] I understand I can have templates that can be used to build a form and thus link those to categories and use those categories to semantically search [23:42:40] No - templates aren't used to build a form. [23:42:51] And you don't link to categories. [23:43:24] then I guess I don't understand [23:43:26] lol [23:43:54] good thing I bought a book [23:44:08] ;) [23:44:19] Hm.. yeah, I was going to say, maybe the book is the best way to understand it at this point. [23:44:38] I should get an e-mail for the book? [23:45:18] Oh - yeah, let me know if you have any technical issues. [23:53:28] how long does the e-mail take? After the transaction I got some page that said the order was taking its time and to wait for an e-mail. [23:56:25] New patchset: Mwjames; "SRF\DataTables (DataTables 1.9.4) implemented as SMWAPI Printer" [mediawiki/extensions/SemanticResultFormats] (master) - https://gerrit.wikimedia.org/r/46650 [23:57:31] Demos74dx: I don't know; all of that stuff is handled by an outside service. If it takes more than an hour or so, let me know and I can just send you the PDF. [23:57:59] ah okay