Difference between revisions of "User talk:Nad"

From Organic Design wiki
(New section: Wiki.pl Stability)
(Change source-code blocks to standard format)
 
(41 intermediate revisions by 10 users not shown)
Line 1: Line 1:
== Implexant ==
+
==Exploring Wiki==
Nad,
 
The company I'm working for would be interested in hiring you to modify your Simply Security plugin to meet our needs. Please [mailto:chrisj@precisionestimating.com contact me]. --[[User:Implexant|Implexant]] 11:53, 11 July 2007 (NZST)
 
: Nad, Still haven't heard from you yet. I did reply to your email with specifications. Let me know! --[[User:Implexant|Implexant]] 08:10, 14 July 2007 (NZST)
 
::I sent the following message a few days ago,
 
<pre>
 
I plan on adding an #ifgroup parser-function for testing if a user belongs
 
to a group at some stage because that requirement keeps cropping up. It's
 
only a small job of under an hour, a small donation on our paypal form on
 
organicdesign would be much appreciated and would allow me to make it high
 
priority.
 
</pre>
 
 
 
== Chat extension reorganised ==
 
They've been doing some reorganizing of extensions on mediawiki and [[mw:Extension:Chat]] isn't showing up on the mediawiki Category:Extensions page any more. I have no I why as its in the category. Any ideas?
 
--[[User:Firebreather|Firebreather]] 14:20, 12 July 2007 (NZST)
 
:Ok, totally weird, its back again.
 
 
 
== SWF, FreeMind & YouTube on WX ==
 
hey, any chance you can embed flash (e.g. google video or youtube content) into the wikia WX ssite? i saw you can do it by moding  /includes/Sanitizer.php
 
      'embed' => array( ’style’, ‘id’, ‘type’, ’src’, ‘width’, ‘height’ )
 
also may need to add embed to $htmlpairs.  thanks --[[User:Phalseid|Phalseid]] 00:39, 19 July 2007 (NZST)
 
:I'm not sure about that setting, but modding includes is a no no, whatever needs doing, it should be able to be done from LocalSettings.php --[[User:Nad|Nad]] 09:40, 19 July 2007 (NZST)
 
::sounds good, just would like to be able to embed flash objects again....--[[User:Phalseid|Phalseid]] 06:38, 20 July 2007 (NZST)
 
::could you also add this quasi-extension to allow mindmaps from freemind?  I have found it very useful, and would like it on WX and OD to work with sven on the WX business plan. [http://freemind.sourceforge.net/wiki/index.php/Embedded_Mind_Maps?#How_to_download_the_Freemind_Extension_for_MediaWiki Freemind howto]
 
:::I've got a lot of stuff I need to get done today but I'll check it out as soon as I can --[[User:Nad|Nad]] 09:40, 19 July 2007 (NZST)
 
 
 
== Using SimpleForms with DPL ==
 
Hi Nad,
 
 
 
I tried to follow your suggestion and created a GUI for DPL using SimpleForms. Have a look at [http://semeb.com/dpldemo/DPL]. I noticed some problems when I tried to use a wikitable within the body of a #form to arrange the fields in nicer way. Can you help? The preferred way would be to create a copy of [http://semeb.com/dpldemo/DPL:Catlist] which demonstrates how to do it correctly. Or ist there a known bug which prevents the use of tables? I ran into strange layouts with double quotes at various places.
 
 
 
Second, I observed that the standard edit form of the dpldemo wiki is now cluttered with a row of empty boxes. As this appeared right after the installation of SimpleForms and the moo lib, the reason must come from there. Is there a way to get rid of them again?
 
 
 
Third, I could not get the Ajax calls working. It simply happens nothing althoug the path setting to the lib (I placed it under /dpldemo/javascript) should be set correctly in LocalSettings.php. Is there a  debug switch or a simple test?
 
 
 
Thanks, Gero
 
:I've had trouble with tables when trasncluded too, <s>I think maybe you should change the pipes to <nowiki>{{!}}</nowiki> like on mediawiki and wikipedia where [[Template:!]] is just a pipe character - or</s>  currently html table syntax is required, I don't quite know how to change that currently. I don't have a clue how it might be stuffing up the edit page - maybe its conflicting with another extension...?
 
:The Ajax itself is working fine, I've added the [[Ajax links example]] and [[Ajax form example]] to my use page on [[DPL:User:Nad]] and most of it is working but not quite (example 3 of ajax links doesn't work). I'll definately be keen to help sort this out though because I love DPL and would like SimpleForms to work nicely with it. --[[User:Nad|Nad]] 09:32, 27 July 2007 (NZST)
 
::I found a problem [http://semeb.com/dpldemo/index.php?content=foobar&action=render this URL] should be sending no-cache headers, but isn't. A recent upgrade of the software fixed the problem on my server, but you're running the latest version which includes the nocache code... I'll have to think about why it's not sending them...? --[[User:Nad|Nad]] 14:26, 27 July 2007 (NZST)
 
 
 
:::Thanks for your effort! Ajax is not really the problem because the DPL GUI currently uses a normal forms 'action'. But it was obviously mootools that cluttered the edit dialogue with icons and made loading the editor SLOW, so I disabled Ajax for the moment. Nevertheless (while Ajax was still on) I could find a small bug in the page you had created: It used "/wiki/index.php" instead of "/dpldemo/index.php".
 
:::What would be helpful is (a) checkboxes, (b) radiobuttons and (c) being able to use tables for formatting...
 
:::I will be on holiday for two weeks now, so there is no hurry.
 
:::[[User:Algorithmix|Algorithmix]] 21:47, 27 July 2007 (NZST)
 
::::You can do checkboxes and all other normal form elements, see [[SimpleForms cheatsheet]] and tables with html syntax. I'll have a look at the path problem soon. Have a good holiday ;-) --[[User:Nad|Nad]] 23:43, 27 July 2007 (NZST)
 
 
 
== Livelets ==
 
Aran- seems that wikilets are not working on WX? what is the best way to compare data side by side, do you think? --[[User:Phalseid|Phalseid]] 18:51, 10 August 2007 (NZST)
 
:You mean livelets? I'd forgotten to include mootools which it uses for ajax - fixed now. I don't know why you need those lists to be transcluded live though, just a normal transclude would probably be fine... --[[User:Nad|Nad]] 19:47, 10 August 2007 (NZST)
 
::thanks! needed it live because andrew and i might be working on it simultaneously to figure out how to port stuff over to vtiger. about the transclude, im confused about the syntax...it seems to want the ":" after the "{{"...is that normal behavior? not how it works on default MW, as far as i could see... --[[User:Phalseid|Phalseid]] 01:29, 11 August 2007 (NZST)
 
::::Livelets are not live, no work has been done on livelets as I've had to focus only on paid work, they are still only working as a secondary request after page load but do not update when content is changed. They use colon because it's a parser function, not a template. --[[User:Nad|Nad]] 09:32, 11 August 2007 (NZST)
 
:::and why did you/we change to conversations to be at the bottom instead of top...trying to be compliant there too, eh? ;) i think it is worth a news item.... --[[User:Phalseid|Phalseid]] 01:31, 11 August 2007 (NZST)
 
::::I started putting talk items at the bottom separated by headings to start conforming to same way as mediawiki/wikipedia, but it doesn't really matter. --[[User:Nad|Nad]] 09:32, 11 August 2007 (NZST)
 
 
 
== Political wiki project ==
 
http://www.wikiexpert.com/Political_wikis
 
--[[User:Phalseid|Phalseid]] 08:49, 12 August 2007 (NZST)
 
 
 
== Templates to check out ==
 
Check this [[W:User:GrooveDog|user page]] out. He has some nice simple templates similar to ours. --[[User:Sven|Sven]] 09:06, 12 September 2007 (NZST)
 
 
 
== Next 10 item link ==
 
Looking through the offset 10-20 items of the [[News]] article, I noticed some funny rendered output in [http://organicdesign.co.nz/wiki/index.php?title=News&offset=10 News 10-20]. Any ideas what it is? --[[User:Sven|Sven]] 14:01, 13 September 2007 (NZST)
 
:Yeah that's the price we pay for removing the expensive regexp query and replacing it with a ''uses=news''. Since some other non-news articles use news they end up in there too. --[[User:Nad|Nad]] 14:07, 13 September 2007 (NZST)
 
 
 
== SimpleForms Bug ==
 
Looks like there is a small bug on line 219 of [[Extension:SimpleForms.php]], <code>$argv['onClick'] .= "f = $('{$this->id}');$template</code>, the $template shouldn't be there. --[[User:Sven|Sven]] 11:33, 24 September 2007 (NZST)
 
 
 
== Misc ==
 
I'll be on 5:30 ferry --[[User:Rob|Rob]] 16:41, 26 September 2007 (NZST)
 
:hokitoki see you 'bout 5:40 ;-)
 
 
 
== Hosting ==
 
aran, just fyi: http://www.wikiexpert.com/Hosting  im looking at setting up a commercial level hosting platform here in colorado that will be powered by a new windfarm that is going in a few miles from here.
 
i would love to have your technical input into our discussion.  Thanks! --[[User:Phalseid|Phalseid]] 05:17, 27 September 2007 (NZST)
 
 
 
== Trees and tranclusion ==
 
As trees <nowiki> {{#tree: openlevels=1| {{: A BULLET LIST}} }}</nowiki> are made up of bullet lists, a good idea would to manage the bullet lists themselves in categorized articles then embed the transcluded bullet lists into the any required tree code. This way the lists can be used as ''bullet lists'', or as ''trees'' in articles --[[User:Sven|Sven]] 12:09, 27 September 2007 (NZST)
 
:We used to use [[:Category:Lists]] for articles which were pure bullet list content. This is a good organisational idea, but I don't think it should necessarily apply to all trees, just ones where the list may be used for other things. Or maybe just extract and transclude at the time when we want to reuse tree content in list content (or in another tree). --[[User:Nad|Nad]] 13:22, 27 September 2007 (NZST)
 
 
 
== Organicdesign DNS changover ==
 
I'm moving changing the OD nameservers from zoneedit to webdrive so the domain may fail for a while if I haven't done the settings correctly. You can use the following backup URL if this is the case, http://od.peerix.org
 
:Looks like the dns may still need to update:
 
<pre>
 
>host organicdesign.co.nz
 
organicdesign.co.nz has address 202.89.43.124
 
organicdesign.co.nz mail is handled by 5 smtp.organicdesign.co.nz.
 
organicdesign.co.nz mail is handled by 10 smtp2.organicdesign.co.nz.
 
>host www.organicdesign.co.nz
 
www.organicdesign.co.nz has address 209.40.202.39
 
</pre>
 
Also just sent an email that bounced. May just need time to propogate. --[[User:Rob|Rob]] 14:28, 27 September 2007 (NZST)
 
:No I think it's stuffed and I haven't got the config right after all, because if it was just an update issue, then why would it have changed to thei IP's at all? --[[User:Nad|Nad]] 16:23, 27 September 2007 (NZST)
 
::Actually it seems to be only the naked domain that's got the wrong IP, the ''www'' and ''svn'' both have the correct IP's... Not sure about the mail either... I must have done something slightly wrong in the template. --[[User:Nad|Nad]]
 
:::I hadn't put the OD IP into the @ subdomain which is character meaning the naked domain! --[[User:Nad|Nad]] 16:55, 27 September 2007 (NZST)
 
 
 
== tried your full-page hack to geshicodetag extension ==
 
hey there. i'm trying to implement your full-page hack to the MW extension GeSHiCodeTag. so far, it renders the entire article syntax highlighted, but unfortunately the wikitext for the category (as square brackets) within the template isn't being expanded. instead, the text <nowiki>[[Category:PHP]]</nowiki> (or whatever language) is being shown where the template is being called in the article. how can i fix this? - [[User:Neologix|Neologix]] 11:04, 5 October 2007 (NZST)
 
:I'd forgotten that it relies on [[Extension:CategoryHook.php]] which allows you to do curly-braces categorisation --[[User:Nad|Nad]] 11:37, 5 October 2007 (NZST)
 
 
 
== Regexp ==
 
 
 
I remember you were talking about a regexp extension, but I can't find it by any name i've tired? I'm trying to modify a PAGENAME lie this:
 
<pre>
 
Courses/Compsci101s1c
 
</pre>
 
change to
 
<pre>
 
Compsci101s1c
 
</pre>
 
So in perl I would do
 
<pre>
 
s|(.+/)+||
 
</pre>
 
--[[User:Rob|Rob]] 09:53, 12 October 2007 (NZDT)
 
:[[News]] and [[Special:Version]] --[[User:Nad|Nad]] 12:37, 12 October 2007 (NZDT)
 
 
 
== Cruise control ==
 
 
 
Need to check out [http://cruisecontrol.sourceforge.net cruise control] sometime as part of build checking and selinium testing --[[User:Sven|Sven]] 11:49, 27 October 2007 (NZDT)
 
 
 
== requesting help with the export to pdf extension Thanks! ==
 
 
 
I installed htmldoc (from a binary installer. I'm using Win XP).
 
 
 
when I use the link for exporting a page to a pdf file
 
a pdf file is created but when I try to open it states it's corrupt.
 
 
 
I manage to save html pages to pdf via the GUI of the htmldoc software
 
so the software works.
 
 
 
I think I have a problem pointing your extension to the htmldoc installation.
 
 
 
I added the following lines to my registry:
 
 
 
    [HKEY_LOCAL_MACHINE\SOFTWARE\Easy Software Products]
 
 
 
    [HKEY_LOCAL_MACHINE\SOFTWARE\Easy Software Products\HTMLDOC]
 
    "data"="C:\Program Files\HTMLDoc"
 
    "doc"="C:\Program Files\HTMLDoc\doc"
 
 
 
Might you be able to help?
 
 
 
--[[User:Gargamel573|Gargamel573]] 13:50, 3 November 2007 (NZDT)
 
:It needs to be placed in the system PATH so that it can execute without full path name. --[[User:Nad|Nad]] 15:51, 3 November 2007 (NZDT)
 
 
 
:::Thanks for the help!
 
::::--[[User:Gargamel573|Gargamel573]] 23:35, 7 November 2007 (NZDT)
 
::Hi. thanks for the reply. I'm afraid I don't know what is the system PATH, could you please explain where I need to place the HTMLdoc folder? Thanks for your time and help! --[[User:Gargamel573|Gargamel573]] 01:59, 4 November 2007 (NZDT)
 
:::The point of having a [[W:Environment_variable|PATH]] environment variable is so that you don't need to worry about where it's located you just run the program without the preceding path info, put the htmldoc binary in one of the places in your system's PATH variable, or alternatively add your htmldoc's location to the PATH variable. See [http://vlaurie.com/computers2/Articles/environment.htm this] for info about PATH. --[[User:Nad|Nad]] 10:26, 4 November 2007 (NZDT)
 
 
 
== [[Template:More]] ==
 
 
 
Is this useful? the only advantage of it is that we can categorize all the references we make using this template and minimize errors in formatting it. --[[User:Sven|Sven]] 09:03, 8 November 2007 (NZDT)
 
:I thought the whole point of a "more" template was to render a certain number of characters of an article and also add the "more..." to the end, not just the "more..." by itself... --[[User:Nad|Nad]] 10:49, 8 November 2007 (NZDT)
 
:: Have you got any examples? I was just basing it quickly on [[17_August_2007|this]] example --[[User:Sven|Sven]] 11:57, 8 November 2007 (NZDT)
 
:::I adjusted [[Template:More]] to the way I was talking about and updated [[17 August 2007]] to use it. --[[User:Nad|Nad]] 13:59, 8 November 2007 (NZDT)
 
 
 
== Special:PdfPrint error ==
 
This is just a note that [http://www.organicdesign.co.nz/Special:PdfPrint Special:PdfPrint with no article specified] throws an error. I don't think it is one of our extensions though. This is imbuild into MW 1.11.0 now right? --[[User:Sven|Sven]] 13:47, 8 November 2007 (NZDT)
 
:It's not imbuilt, it's from [[MW:Extension:Pdf Export]] which is not one of ours. --[[User:Nad|Nad]] 13:52, 8 November 2007 (NZDT)
 
:: Yeah just found it independently :p  --[[User:Sven|Sven]] 13:53, 8 November 2007 (NZDT)
 
 
 
 
 
== Errors on [[Updating template articles with an Ajax form]] ==
 
Hi Nad. Please see [[Image:error with simpleform 20071108.JPG|400px|center]]
 
:Thanks Michael I'll look in to that now --[[User:Nad|Nad]] 22:10, 8 November 2007 (NZDT)
 
::That should be fixed now ([[Extension:SimpleForms.php|version 0.4.6]]) - I don't know why it wasn't showing up from my browser?! --[[User:Nad|Nad]] 22:21, 8 November 2007 (NZDT)
 
:::Hi Nad. The error message have disappeared, but the [[Template:ExampleContact|form]] is malfunction. --[[User:Roc michael|Roc michael]] 00:28, 9 November 2007 (NZDT)
 
::::Can you tell me what it's doing or do another screenshot? It's working properly for me for some reason?! --[[User:Nad|Nad]] 00:53, 9 November 2007 (NZDT)
 
:::::I am Sorry for replying so late. Please see the picture bellow.
 
[[Image:error with simpleform 20071111.JPG|300px|center]]
 
:::::The result of using [http://studwww.nou.edu.tw/~e-live/testwiki/index.php/Template:ExampleContact this page] is the same. You can try it after you login ,The site have no e-mail function.
 
:::::By the way, does this site have no e-mail-notice function? I had set watching this page but there was no E-mail notice to me when you wrote the message above.--[[User:Roc michael|Michael]] 14:36, 11 November 2007 (NZDT)
 
::::::Yeah that form is a test of functionality which is not quite ready yet and will work much more reliabally in the next version of simple-forms. --[[User:Nad|Nad]] 15:28, 11 November 2007 (NZDT)
 
 
 
== oi ==
 
 
 
can u help
 
 
 
 
 
==Making MediaWiki run much faster==
 
Hi.
 
I have a local installation of mw. I'm having a hard time
 
using it in my workflow because my installation is very very slow.
 
 
 
Might you please be able to point me in the right direction as to how
 
to make mw run a lot faster?
 
Is squid-caching relevant for a local installation?
 
Is there a way to load only the changes or the main content of a page
 
while 'not' loading all the navigation info again and again for each page or reload
 
of the same page?
 
 
 
I've noticed a progress animated gif in the sidebar of OrganicDesign while loading a page,
 
is this connected to the loading time somehow?
 
 
 
I activated the built in caching feature of php, but yet to no avail.
 
 
 
Thanks for your time
 
 
 
Any help or links are greatly appreciated
 
 
 
--[[User:Gargamel573|Gargamel573]] 07:01, 13 November 2007 (NZDT)
 
 
 
BTW your reply regarding HTMLDoc helped me out a lot- now I enjoy the pdfbook extension :)
 
:All the caching functionality is all about load-balancing and so will only make a difference if you run a high traffic site. The problem is more likely to be your server, you need a fast CPU preferably Xeon or similar which has a lot of cache memory and you need at least 512M of RAM preferably 1GB or more. --[[User:Nad|Nad]] 08:12, 13 November 2007 (NZDT)
 
:The ani-gif in the sidebar is there because the tree loads after the main page has loaded which is useful if you have a lot of content in the tree (my personal tree is over 200K so the page is slow to load if the whole tree has to load as part of the page). You can have content load separately using [[MW:Extension:Livelets]]. --[[User:Nad|Nad]] 08:17, 13 November 2007 (NZDT)
 
 
 
::Thanks!
 
::: --[[User:Gargamel573|Gargamel573]] 00:31, 15 November 2007 (NZDT)
 
 
 
== CSS question ==
 
 
 
I posted a reply to a question about removing images from External links at [http://www.mediawiki.org/w/index.php?title=Help_talk%3ALinks&diff=146218&oldid=146010 MW:Help talk:Links], but I think the solution posted by someone else may not actually work. Can you have a look and see if you agree, I think you can only blanket modify protocols, not urls. --[[User:Sven|Sven]] 12:20, 13 November 2007 (NZDT)
 
:I don't actually know if he's right or not - I didn't realise you could do regex in css - you may want to test or research if it's browser specific etc. --[[User:Nad|Nad]] 14:32, 13 November 2007 (NZDT)
 
:: I will look into it when I get time, it didn't work for me on OS X with Safari or Firefox. I suspect that it is not actually a regex in the expression. --[[User:Sven|Sven]] 18:40, 13 November 2007 (NZDT)
 
 
 
== Semantic Forms ==
 
I am going to update [[MW:Extension:Semantic Forms]], our [[Special:Version]] is 0.3.5, and it is now 0.7.6 --[[User:Sven|Sven]] 16:15, 16 November 2007 (NZDT)
 
: I have added the code wikia style into the extensions directory
 
<bash>
 
lrwxrwxrwx  1 root    root        20 Nov 16 16:25 SemanticForms -> SemanticForms-0.3.5/
 
drwxr-xr-x  7 www-data www-data  4096 Nov 16 16:25 SemanticForms-0.3.5
 
drwxr-xr-x  8 root    root      4096 Nov 16 16:20 SemanticForms-0.7.6
 
</bash>
 
Ok, it is done, the error seemed to be trusting content from the SVN trunk rather than the tar.gz --[[User:Sven|Sven]] 16:41, 16 November 2007 (NZDT)
 
 
 
==[[:Category:Examples/Simple Forms]]==
 
Some of the examples I have run seem to redirect to the news page now. i am not sure when the examples started malfunctioning, see [[:Category:Broken Examples]] --[[User:Sven|Sven]] 23:03, 19 November 2007 (NZDT)
 
: This is not a DPL problem is it? --[[User:Sven|Sven]] 23:17, 19 November 2007 (NZDT)
 
==[[Workflow:Todo]]==
 
 
 
Just added the example, didn't take long, just need to categorise your own work now and you can use dpl to cross query multiple cats... --[[User:Sven|Sven]]
 
 
 
 
 
 
 
== Piggyback on the SimpleForms Extension ==
 
 
 
 
 
Hi Nad,
 
 
 
I have coded one extension that as part of the output generates SimpleForms wiki code (see below).
 
But since the simpleForms code is not the one being invoked this code is rendered in the raw form.
 
 
 
I will appreciate it if you can tell me how should I invoke the simpleForms rendering code from inside my extension code to generate the proper wiki output.
 
 
 
Thanks,
 
Omar (omar.marquez@cmegroup.com)
 
 
 
<pre>
 
...
 
        $obr = "{{";
 
        $cbr = "}}";
 
                $component=<<<ENDHEADER
 
< h 3 >{$this->comp} <small>checklist</small> < / h 3 >
 
< table cellpadding=3 cellspacing=0 border=1 >
 
{$content}
 
< / table >
 
{$obr}#form:
 
{$obr}#input:type=hidden|name=content|id=envContent{$cbr}
 
{$obr}#input:type=hidden|name=title|value=Talk:{$obr}PAGENAME{$cbr}{$cbr}
 
{$obr}#input:type=hidden|name=caction|value=append{$cbr}
 
{$obr}#input:type=hidden|name=env|id=envName|value={$this->env}{$cbr}
 
{$obr}#input:type=hidden|name=comp|id=compName|value={$this->comp}{$cbr}
 
Your name: {$obr}#input:type=text|id=cAuth{$cbr}
 
Action: {$obr}#input: type = select|name = chk|id=chkAction|
 
* _
 
{$checks}
 
{$cbr}
 
{$obr}#input:type=submit|value=Add Component|update=wgBlogComments|onClick=
 
var name = document.getElementById('cAuth').value;
 
if( !name ){ alert('Please enter your name.'); return false;}
 
var chk = document.getElementById('chkAction').value
 
if( !chk ){ alert('Please select action.'); return false;}
 
document.getElementById('envContent').setAttribute('value',
 
'\n\nDONE##'
 
+ document.getElementById('compName').value
 
+'##+ chk +'##' + name + '##' + Date());
 
{$cbr}
 
{$cbr}
 
ENDHEADER;
 
 
 
                return $component;
 
...
 
</pre>
 
:If the SimpleForms extension is present there will be a global singleton called ''$wgSimpleForms'' through which you can access it's methods such as ''formMagic'' or ''inputMagic'' --[[User:Nad|Nad]] 15:44, 29 November 2007 (NZDT)
 
 
 
:Thanks Nad, that worked. [[User:Omar|Omar]]
 
 
 
== [[MW:Manual:Extensions#Installing_an_extension]] ==
 
 
 
There is a function called [http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ExtensionFunctions.php?view=markup ExtensionFunctions.php] in [[MW:Manual:Extensions#Installing_an_extension]] which looks similar to the boiler plate templtes we have, not sure if it has anything useful in it --[[User:Sven|Sven]] 11:36, 10 December 2007 (NZDT)
 
 
 
== OS X meltdown ==
 
Yo,
 
Suz's OS X laptop just stuffed up real bad. What happened is that somehow the /etc/hostconfig file got deleted by accident (probably during traversing with finder), so next time it got rebooted (by her today) it spat the dummy and went into single user mode only, no GUI, no nothing.After Igenerated another from scratch it has come right (there was no backup anywhere...). The stupid thing was I had a OS X recovery disk in the machine but it would not boot off it --[[User:Sven|Sven]] 23:03, 10 December 2007 (NZDT)
 
:Aw shyit - I bet she's not too happy 'bout you messing round with her lappie after that! you should just hurry up and buy one of your own... --[[User:Nad|Nad]] 08:56, 11 December 2007 (NZDT)
 
:: She surprisingly cool about it. Mind you she shut it down not me :p, at least I was able to work out the issue and get it going again without an OS reinstall. When will you be able to get an upgrade, plan being to get the same architecture --[[User:Sven|Sven]] 09:22, 11 December 2007 (NZDT)
 
:::I want to hold out for a tablet, and they're too steep for me at the moment I only want to spend around $1500, so I reckon you should just get one yourself --[[User:Nad|Nad]] 09:24, 11 December 2007 (NZDT)
 
 
 
== Friday meeting ==
 
 
 
Yo,
 
change of plan, I will be coming over today... --[[User:Sven|Sven]] 08:43, 14 December 2007 (NZDT)
 
 
 
== PHP ==
 
[[MW:Manual:Coding_conventions#Extension_Functions_and_Variables|Manual:Coding_convention]] has details about the coding conventions on MediaWiki. Also you might want to check out http://www.php.net/oop5.cloning which covers object cloning for the voodoo stuff --[[User:Sven|Sven]] 21:52, 18 December 2007 (NZDT)
 
:Object cloning isn't voodoo, the voodoo is making a subclass and then creating a copy of the object which is an instance of the new class. Cloning just makes a copy using the same class. --[[User:Nad|Nad]] 08:52, 20 December 2007 (NZDT)
 
:: I thought cloning was a formal way of making copies of objects during the voodoo process, maybe I am wrong --[[User:Sven|Sven]] 10:40, 21 December 2007 (NZDT)
 
:::''ACTUALLY'' voodoo is neither of these. For something to be voodoo you ''must not'' know why it works. These cases are ''Zombie programming'', where undead objects are reproduced - [[w:Night of the Living Dead|with disasterous results]]. --[[User:Rob|Rob]] 18:52, 24 December 2007 (NZDT)
 
::::Yeah I know, only [[Extension:Treeview4.php]] has real [[w:Voodoo programming|voodoo]], but I just grouped all generally "suss" practices into the same cat. --[[User:Nad|Nad]] 18:58, 24 December 2007 (NZDT)
 
 
 
== Facebook developer wiki ==
 
 
 
There might be some ideas from facebooks MediaWiki we can use for documentation. My ID account on facebook translates into this wiki user
 
http://wiki.developers.facebook.com/index.php/User:525988312 --[[User:Sven|Sven]] 21:26, 21 December 2007 (NZDT)
 
 
 
== Some general advice ==
 
You have already helped me with a small tree view (http://a2d.apapandreou.net) issue but I was hoping you might be able to give me some general tips/advice. I am trying to employ many of the extensions you have developed (and I like the look and feel of OrganicDesign). A key concern I have is to find a good way of having an internal intranet for our NGO as well as pages/spaces for the public. Up to now I have been using LockDown extension to set namespaces that only certain users have rights to. This seems to conflict somehow with the simplesecurity extension. Also the simplesecurity extension does not seem to be namespace oriented (unless there is some way of activating the simplesecurity by namespace). In using treeview I was thinking of having an ifgroup=namespace type of comman that would link to a namespace content page and its table of contents. Any suggestions/tips on how best to deal with the private/public spaces issue for my wiki would be greatly appreciated? Should I use simplesecurity instead of Lockdown? Thanks, --[[User:apap|apap]]
 
:*We set up a lot of wiki's that are for managing the content for both a public website side and a private wiki organisational side. I made [[MW:Extension:PublicCat]] for this which you may find useful.
 
:*To make conditional content based on namespace, you can use this format: <tt><nowiki>{{#if:{{NAMESPACE}}|{{ns:4}}|it is namespace 4|it is not ns4}}</nowiki></tt>
 
:*SimpleSecurity is in a very bad state as it has been patch on top of patch since MediaWiki 1.4.x. There's a new version on the way which will handle namespaces and everything and will be the first MW security extension to address all the concerns in [[MW:Security issues with authorization extensions]]. Currently you may want to try one of the other extensions which specifically handle per-namespace permissions.
 
::This is helpful. As I am not particularly happy with the other security extensions (I may not understand them adequately) I think I will wait for your new version of simplesecurity (any approximate time frame for release?). In the meantime I will try your conditional content command (<tt><nowiki>{{#if:{{NAMESPACE}}|{{ns:4}}|it is namespace 4|it is not ns4}}</nowiki></tt>) but I am not sure I understand how to use it. --[[User:apap|apap]]
 
:::<tt><nowiki>{{NAMESPACE}}</nowiki></tt> resolves to the namespace of the current page (in this case "{{NAMESPACE}}"). <tt><nowiki>{{ns:some-number}}</nowiki></tt> is the way to specify a namespace by its number so that it is not affected by user language selection, the number you use depends on what namespace your wanting to make the condition for. You can just type the namespace text instead if you like - I'm just used to doing things as generically as possible. --[[User:Nad|Nad]] 08:30, 24 December 2007 (NZDT)
 
::::Thanks! --[[User:apap|apap]]
 
 
 
== [[Extension:Selenium.php]] ==
 
Making some headway with this now, see [{{SERVER}}/wiki/index.php/Special:Selenium?suite=Selenium_example Suite generation] for an example --[[User:Sven|Sven]] 11:52, 26 December 2007 (NZDT)
 
:Excellent - I checked a link to an individual test as well which worked properly,
 
:http://www.organicdesign.co.nz/wiki/index.php/Special:Selenium?suite=Selenium_example&test=Logout
 
:: working on adding div tag now, current hurdle is getting the selenium-core environment to access a test suite, I think because the path is also a query string, i.e. a question mark followed by a path e.g. http://flouzo.organicdesign.co.nz/wiki/skins/flouzo/selenium/core/TestRunner.html?test=../../tests/test.html, I need to have url decoding in there since there will be two query strings, and the second one to {{SERVER}}/wiki/index.php/Special:Selenium?suite=Selenium_example will be url encoded --[[User:Sven|Sven]] 22:10, 26 December 2007 (NZDT)
 
::: If I cannot get selenium to connect with the Special:Selenium page because of the query string issue I may have to modify the special page to;
 
<bash>
 
# Specifying ARTICLE
 
{{SERVER}}/wiki/index.php/Special:Selenium/ARTICLE
 
# Specifying ARTICLE and SECTION
 
{{SERVER}}/wiki/index.php/Special:Selenium/ARTICLE/SECTION
 
</bash>
 
--[[User:Sven|Sven]] 09:40, 27 December 2007 (NZDT)
 
::::In the example URL you've shown above you're doing the problem of combining PATH_INFO and QUERY_STRING methods - use a completely standard long-form URL like in the discussion page before saying it doesn't work. --[[User:Nad|Nad]] 11:10, 27 December 2007 (NZDT)
 
Excellent, I don't think I need to do much, I just found that I can specify the full url path (including http:// protocol) and it works e.g.
 
[http://flouzo.organicdesign.co.nz/wiki/skins/flouzo/selenium/core/TestRunner.html?test=http%3A%2F%2Fwww.organicdesign.co.nz%2Fwiki%2Findex.php%2FSpecial%3ASelenium%3Fsuite%3DSelenium_example&resultsUrl=..%2FpostResults Flouzo query string example] --[[User:Sven|Sven]]. I take that back, the test is not showing up... 14:35, 27 December 2007 (NZDT)
 
:You're still combining PATH_INFO and QUERY_STRING, you have to get out of those sloppy habits as they can cause unpredictable results in the field, use ?title=Special:Selenium, not index.php/Selenium as you're relying on PATH_INFO processing to correctly reconstruct the QS portion of the URL. --[[User:Nad|Nad]] 15:43, 27 December 2007 (NZDT)
 
:: My bad, the url generation was from pasting an url in the form. I have got relative paths going on my local wiki here, will add a long url query string. --[[User:Sven|Sven]] 16:03, 27 December 2007 (NZDT)
 
::: See [http://www.organicdesign.co.nz/wiki/extensions/Selenium/selenium-core-0/core/TestRunner.html?test=..%2F..%2F..%2F..%2Findex.php%3Ftitle%3DSpecial%3ASelenium%26suite%3DSelenium_example first selenium example]. it seems that the seleniese variables are not remembered between tests e.g. ${username} from one test to another. However I did see you can have manual intervention where a user is expected to enter password details for example --[[User:Sven|Sven]] 21:10, 27 December 2007 (NZDT)
 
::::You'd be able to use JS within the Seleneise to store variables in the user's session, but I think tests should be self-contained, otherwise their results are dependent on external factors. --[[User:Nad|Nad]] 21:17, 27 December 2007 (NZDT)
 
::::: Yeah I thought that too --[[User:Sven|Sven]] 21:28, 27 December 2007 (NZDT)
 
I have installed the latest version 0.7.2, [[Special:Selenium]] is now available --[[User:Sven|Sven]] 23:00, 8 January 2008 (NZDT)
 
: This [http://www.organicdesign.co.nz/wiki/index.php?title=Extension%3ASelenium.php&diff=80647&oldid=80645 diff] uses some tags that improve special page formatting - see [[Special:Selenium]]. It doesn't look good on OD, but it does on a monobook skin --[[User:Sven|Sven]] 08:58, 10 January 2008 (NZDT)
 
::That's all coming along damn well! what have you got left to do? maybe time to start making some test suites and discuss methods of scheduling and reporting test failures?! --[[User:Nad|Nad]] 15:07, 10 January 2008 (NZDT)
 
:::There are little issues with the regex of articles, but they can wait, can start making suites and discussing next phase now. It is now on [[MW:Extension:Selenium]] --[[User:Sven|Sven]] 07:28, 11 January 2008 (NZDT)
 
 
 
==Database problems with semantic mediawiki==
 
Nad, I know this is not the place to raise this question but I have a sense you can help me. I have been struggling with a database error relating to semantic mediawiki that I believe is the result of my custom namespaces. The error occurs when I try to go the Special:Type page of mediawiki. I think there is a conflict with one of my custom namespaces that was originally setup for 104. I have tried to remove the custom namespace but the problem persists (I also gather that removing namespaces is problematic). Here is the error that I am getting:
 
 
 
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:
 
 
 
(SELECT 'Types' as type, 104 as namespace, page_title as title, page_title as value, 1 as count FROM `page` WHERE page_namespace = 104 AND page_is_redirect = '0') UNION (SELECT 'Types' as type, 104 as namespace, 'Page' as title, 'Page' as value, 1 as count) UNION (SELECT 'Types' as type, 104 as namespace, 'String' as title, 'String' as value, 1 as count) UNION (SELECT 'Types' as type, 104 as namespace, 'Text' as title, 'Text' as value, 1 as count) UNION (SELECT 'Types' as type, 104 as namespace, 'Boolean' as title, 'Boolean' as value, 1 as count) UNION (SELECT 'Types' as type, 104 as namespace, 'Number' as title, 'Number' as value, 1 as count) UNION (SELECT 'Types' as type, 104 as namespace, 'Geographic_coordinate' as title, 'Geographic_coordinate' as value, 1 as count) UNION (SELECT 'Types' as type, 104 as namespace, 'Temperature' as title, 'Temperature' as value, 1 as count) UNION (SELECT 'Types' as type, 104 as namespace, 'Date' as title, 'Date' as value, 1 as count) UNION (SELECT 'Types' as type, 104 as namespace, 'Email' as title, 'Email' as value, 1 as count) UNION (SELECT 'Types' as type, 104 as namespace, 'URL' as title, 'URL' as value, 1 as count) UNION (SELECT 'Types' as type, 104 as namespace, 'Annotation_URI' as title, 'Annotation_URI' as value, 1 as count) ORDER BY value LIMIT 50
 
 
 
from within function "". MySQL returned error "1267: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation 'UNION' (internal-db.s295.gridserver.com)".
 
 
 
I have already dealt with the collations problem by setting everythin to utf8 (so I don't understand why that message appears at the end. Any thoughts are welcome. If you prefer I not ask you questions unrelated to your extensions (directly) I will fully appreciate it. Thanks, --[[User:Apap|Apap]]
 
:I'm happy to answer any MW questions you have if I know the answers, but in this case the problem is very specific to SMW's internals and so the authors would probably be your best bet. --[[User:Nad|Nad]] 09:47, 1 January 2008 (NZDT)
 
 
 
== Fractional reserves ==
 
 
 
See [[W:Fractional-reserve banking]] --[[User:Sven|Sven]] 08:21, 5 January 2008 (NZDT)
 
 
 
== [[MW:Extension:Semantic_Forms|Semantic forms]] ==
 
 
 
It seems in this [[Test/Joe_Bloggs|example]] that clicking the ''tab'' [http://www.organicdesign.co.nz/wiki/index.php?title=Test/Joe_Bloggs&action=formedit edit with forms] is not working. Not sure what could be the problem but we should probably upgrade [[MW:Extension:Semantic_Forms|Semantic forms]] to 0.8.2 --[[User:Sven|Sven]] 16:05, 14 January 2008 (NZDT)
 
 
 
== Image for http://www.mediawikilite.org ==
 
 
 
[http://commons.wikimedia.org/wiki/Image:-_Flower_12_-.jpg this] image could be good for the mediaWikiLite image as it does not have a backdrop --[[User:Sven|Sven]] 18:46, 16 January 2008 (NZDT)
 
 
 
== EmailArticle problems and suggestions ==
 
 
 
===Suggestions===
 
* A variable to turn off everything except the textbox for entering e-mail addresses
 
* A variable that can contain a canned message that's prepended to the article, such as "This article was sent to you from a user on SiteName."  With the word "article" and "SiteName" as links.
 
* Define a variable with the URL for the link to Special:EmailArticle for each article that can be used anywhere in the skin -- if this is possible it'd be great.  I have a custom 'share' portlet-style box in my skin with links to share on Facebook, etc., and I'd like a link to email the article as well (with my own text).
 
 
 
===Problems===
 
* Separating >1 e-mail address in the textbox with commas or newlines (haven't tested anything else) results in only the first address receiving the message.
 
* All addresses entered in the textbox are duplicated in the To: field.
 
* Thumbnail img src tags do not have the domain prepended, so all thumbs in the e-mailed article are broken
 
* URL generated for toolbox/action links doesn't appear to be escaped. This works okay in Firefox but maybe it's a good idea?
 
* Setting $wgEmailArticleGroup to sysop doesn't appear to make action link disappear (toolbox link not tested), and Special:EmailArticle still renders
 
* There seems to be a broken or unclosed div somewhere.  My skin has another div with a footer below the central content div, and on Special:EmailArticle, this div becomes merged with the special page.
 
 
 
===My info===
 
* MediaWiki: 1.11.1
 
* PHP: 5.1.6 (apache2handler)
 
* MySQL: 5.0.54-log
 
* CentOS 4
 
 
 
Please contact me via e-mail if you can. --[[User:GMorehou|GMorehou]] 23:50, 7 February 2008 (NZDT)
 
 
 
== Re: Extension:NukeDPL ==
 
 
 
Hi Nad; Have a quick question for you. I am desperately trying to install NukeDPL on my server to fight wikispam. DPL is installed and working correctly, however whenever I try to run your script with a DPL statement, I get a helpful message saying "No pages to delete using DPL-query:" which then lists exactly the pages I would like to remove! Its obviously working on some level because the DPL statement is being executed properly.
 
  
I really could do with some advice, many hours after trying to get to grips with your script (my PHP knowledge is limited) I am still no further. Thanks in advance. --[[User:Luke O'Connell|Luke O&#39;Connell]] 23:56, 7 February 2008 (NZDT)
+
Hey Aran,  
:What's your version info and is your site public so I can see the problem? --[[User:Nad|Nad]] 09:52, 8 February 2008 (NZDT)
 
::I am running 1.1.0/2007-07-12 of NukeDPL and 1.10.1 of MediaWiki. The public site is http://www.theblueroom.us, and the NukeDPL page can be found at http://www.theblueroom.us/Special:NukeDPL. I really need to get this up and running, and would be grateful if you could provide me with contact details; I am willing to pay for a solution on this! My email address is luke.us@gmail.com. --[[User:Luke O'Connell|Luke O&#39;Connell]] 13:12, 3 March 2008 (NZDT)
 
  
== Caching problem with Simple Forms with Ajax ==
+
is this the place where you make contact with other users then?  
Hi Nad,
 
I just started experimenting with Simple Forms with input type=ajax and while it works the very first time I use a form the result of this first run seems to be cached and returned again irrespective what I enter into the input boxes (or even if I don't enter any values or even if I make the syntax of the query within the #form invalid). Also the example on [[Ajax_form_example]] seems to show this behaviour of returning again and again the very first result.
 
Any idea how to work around the caching?
 
Thanks,
 
[[User:Gu|Gu]] 23:18, 12 February 2008 (NZDT)
 
:Yeah it's a known bug, but I haven't had a chance to work on it for a while - I'm doing a rewrite as there are many other problems as well. --[[User:Nad|Nad]] 23:50, 12 February 2008 (NZDT)
 
::Although that's not a real solution setting $wgParserCacheType = CACHE_NONE; in LocalSettings.php does make it work as expected. At least for now that's fine for me (I'm using it in my quest to allow users to add specific values via input boxes into SMW #ask queries). [[User:Gu|Gu]] 00:59, 13 February 2008 (NZDT)
 
  
== Oil ==
+
Ahhh, Bach.  --[[User:The Duncan|The Duncan]] 06:20, 6 September 2010 (NZST)
Check this [http://www.platformlondon.org/carbonweb/documents/crude_designs_small.pdf out], from [http://nz.youtube.com/watch?v=nyx4LNWXsd4 Youtube]--[[User:Sven|Sven]] 08:42, 16 February 2008 (NZDT)
 
  
==[[Special:SearchLog]]==
 
Can you quickly check the permissions of the log file for organic design for me relating to this [[Extension_talk:SearchLog.php#Counting_does_not_work|query]].
 
I think the permissions need to change to be writable by the webserver to allow new searches to be collated --[[User:Sven|Sven]] 11:29, 19 February 2008 (NZDT)
 
  
 
== Mediawiki programming help ==
 
== Mediawiki programming help ==
Line 432: Line 17:
 
== Templates and passing vars==
 
== Templates and passing vars==
 
Nad, trying to get the [http://www.mediawiki.org/wiki/Extension:Google_Maps google map] extension to work with vars in a template, such that:
 
Nad, trying to get the [http://www.mediawiki.org/wiki/Extension:Google_Maps google map] extension to work with vars in a template, such that:
 
 
<pre>{{Test
 
<pre>{{Test
 
|FULL_NAME = Ashfield
 
|FULL_NAME = Ashfield
Line 439: Line 23:
 
|LONG = 151.1166667
 
|LONG = 151.1166667
 
}}
 
}}
 
 
  
 
<googlemap width="400" height="300" zoom="16" type="hybrid" controls="medium">
 
<googlemap width="400" height="300" zoom="16" type="hybrid" controls="medium">
 
{{{LON}}},{{{LAT}}}, {{{FULL_NAME}}}
 
{{{LON}}},{{{LAT}}}, {{{FULL_NAME}}}
 
</googlemap>
 
</googlemap>
 
 
</pre>
 
</pre>
  
Line 458: Line 39:
  
 
== Treeview 5 ==
 
== Treeview 5 ==
 
 
Yo,
 
Yo,
 
Ive just put a suggestion up for [http://www.mediawiki.org/w/index.php?title=Extension_talk%3ATree_view&diff=178118&oldid=177287 this] post. I suggest we may need to convert windows backslashes to forward slashes in extensions if this is a continuing problem --[[User:Sven|Sven]] 13:05, 3 April 2008 (NZST)
 
Ive just put a suggestion up for [http://www.mediawiki.org/w/index.php?title=Extension_talk%3ATree_view&diff=178118&oldid=177287 this] post. I suggest we may need to convert windows backslashes to forward slashes in extensions if this is a continuing problem --[[User:Sven|Sven]] 13:05, 3 April 2008 (NZST)
Line 510: Line 90:
 
I also managed in the process of testing to submit incorrect token content which has stuffed up the local instance of the database when restoring one particular article, so I may have found a mediaWiki bug in 1.12.0 but need to document further. I want to create a test script which can do a pile of test actions so we can loop it through a set of wiki versions to test wiki.pl on. Here is the error message I managed to create;
 
I also managed in the process of testing to submit incorrect token content which has stuffed up the local instance of the database when restoring one particular article, so I may have found a mediaWiki bug in 1.12.0 but need to document further. I want to create a test script which can do a pile of test actions so we can loop it through a set of wiki versions to test wiki.pl on. Here is the error message I managed to create;
  
{{code|<mysql>
+
<source lang="mysql">
 
Database error manually identified when attempting restore
 
Database error manually identified when attempting restore
 
Database error
 
Database error
Line 518: Line 98:
  
 
from within function "Revision::insertOn". MySQL returned error "1062: Duplicate entry '12' for key 2 (localhost)".
 
from within function "Revision::insertOn". MySQL returned error "1062: Duplicate entry '12' for key 2 (localhost)".
</mysql>
+
</source>
}}
 
  
 
I think at the time I submitted only two name/value hidden fields <code>my %form = (wpEditToken => $1, target => $title,</code>. Anyway, I want to add a couple of other functions to upload/delete/restore files. The file restoration function may be covered by the generic wikiRestore function.--[[User:Sven|Sven]] 10:49, 15 June 2008 (NZST)
 
I think at the time I submitted only two name/value hidden fields <code>my %form = (wpEditToken => $1, target => $title,</code>. Anyway, I want to add a couple of other functions to upload/delete/restore files. The file restoration function may be covered by the generic wikiRestore function.--[[User:Sven|Sven]] 10:49, 15 June 2008 (NZST)
Line 533: Line 112:
 
Yo,
 
Yo,
 
I've made [http://www.organicdesign.co.nz/wiki/index.php?title=Wiki.pl&diff=89604&oldid=89356 changes] to [[Wiki.pl]] to try to make the WikiEdit function a bit more stable. The issue has been the large conditional regex attempting to grab all relevant hidden key/value pairs on about line 114. As the interface changes subtly the regex occasionally fails. The modified approach just searches for the wpEDitToken key;
 
I've made [http://www.organicdesign.co.nz/wiki/index.php?title=Wiki.pl&diff=89604&oldid=89356 changes] to [[Wiki.pl]] to try to make the WikiEdit function a bit more stable. The issue has been the large conditional regex attempting to grab all relevant hidden key/value pairs on about line 114. As the interface changes subtly the regex occasionally fails. The modified approach just searches for the wpEDitToken key;
{{code|<php>
+
<source lang="php">
 
if ($response->is_success and (
 
if ($response->is_success and (
 
$response->content =~ m|<input type='hidden' value="(.+?)" name="wpEditToken" />|g
 
$response->content =~ m|<input type='hidden' value="(.+?)" name="wpEditToken" />|g
 
)) {
 
)) {
</php>
+
</source>
}}
 
  
 
then (inefficiently) tests and saves the other wanted keys. It has not been tested across multiple MW versions yet but should be much more stable. --[[User:Sven|Sven]] 08:43, 19 December 2008 (NZDT)
 
then (inefficiently) tests and saves the other wanted keys. It has not been tested across multiple MW versions yet but should be much more stable. --[[User:Sven|Sven]] 08:43, 19 December 2008 (NZDT)
 +
:Cool thanks ;-) --[[User:Nad|nad]] 08:44, 19 December 2008 (NZDT)
 +
 +
== MindMap ==
 +
nad, could you please 1) add the freemind mind map to tmp.peerix.org, and 2) tell me why it is not working any longer on wx?  thx! --[[User:Phalseid|Phalseid]] 00:39, 2 January 2009 (NZDT)
 +
:I don't know why thats not working, I'll have another look later --[[User:Nad|nad]] 09:17, 2 January 2009 (NZDT)
 +
 +
::here is why it is not working....same on tmp...http://www.mediawiki.org/wiki/Extension_talk:FreeMind#.C2.BBFlash_plugin_or_Javascript_are_turned_off._Activate_both_and_reload_to_view_the_mindmap.C2.AB
 +
 +
== MindMap II==
 +
please add this as well http://www.mediawiki.org/wiki/Extension:MindMeister I think this will satisfy my Red Eye needs for now... --[[User:Phalseid|Phalseid]] 03:28, 3 January 2009 (NZDT)
 +
 +
== where to put stuff ==
 +
i want to put up info on the platform regarding intentional community. should it go here or on tmp?  im not clear as to "why the difference", i guess --[[User:Phalseid|Phalseid]] 00:41, 2 January 2009 (NZDT)
 +
::an example is 1) the MW training material i am working with milan on and 2) this community mindmap governance issue. --[[User:Phalseid|Phalseid]] 00:43, 2 January 2009 (NZDT)
 +
:::I'm not sure if these things belong in platform (check [[Documentation]] for a brief description of what role each document should be playing). Basically everything goes on OD except things which need to be kept completely private such as the coffee projects. The training material probably should be going into [[MediaWiki workshop]] or its talk. --[[User:Nad|nad]] 09:22, 2 January 2009 (NZDT)
 +
 +
== Project red eye ==
 +
nad: im hoping you have some down time waiting for decaf stuff, please check out http://tmp.peerix.org/Red_Eye and let me know $/clarification. thx --[[User:Phalseid|Phalseid]] 00:49, 2 January 2009 (NZDT)
 +
:I'll need a lot of clarification for this one, some mockups would be good... I can't really know $ until I know exactly what needs to be done, but off the top of my head it looks difficult, probably $500-$1000 --[[User:Nad|nad]] 09:24, 2 January 2009 (NZDT)
 +
 +
forget this for now...see http://www.mediawiki.org/wiki/Extension:MindMeister above.. --[[User:Phalseid|Phalseid]] 03:29, 3 January 2009 (NZDT)
 +
 +
==widgets on demo==
 +
aran, plese create and set Folder permissions /extensions/Widgets/compiled_templates/ folder should be made writable by web server (this is where Smarty stores pre-compiled template.) please verify by checking http://demo.organicdesign.co.nz/Google_Calendar (scroll to bottom)  thx! --[[User:Phalseid|phalseid]] 13:44, 9 February 2009 (NZDT)
 +
:But I thought you had agreed that Milan was now developing the demo, is he planning on implementing these widgets as part of his presentation? does he know this? what are you planning here? --[[User:Nad|nad]] 20:09, 9 February 2009 (NZDT)
 +
 +
== Extension:NukeDPL.php ==
 +
Hi Nad, your new version of this extension has overwritten a couple of things I had added to it:
 +
*a couple of bug fixes (two minor ones, corrected with a replace, and one major: the list of results was always showing one less result than the total returned by the DPL query), and
 +
*a text suggestion for the query window (redirects = exclude | include| only)
 +
Here[http://www.organicdesign.co.nz/wiki/index.php?title=Extension%3ANukeDPL.php&diff=91586&oldid=85145] you can check the differences I introduced. As I'm not sure if you left them out on purpose, I'd like to wait for a confirmation from you; feel free to reintroduce them if you agree. Your extension is being used at CPDL.org, that has a lot of titles with accented characters, that's why these bugs could be discovered. Needless to say how much we appreciate this extension, thanks a lot for it. [[User:Capmo|Capmo]] 22:57, 19 March 2009 (UTC)
 +
:Sorry about that, not sure how your str_replace fix works, but I'll take your word for it! re-implemented it just now, thanks ;-) --[[User:Nad|nad]] 02:03, 20 March 2009 (UTC)
 +
 +
== Integration ==
 +
 +
Hi Nad,
 +
I saw your [http://www.mediawiki.org/wiki/Extension:Recent_changes Recent Changes extension]. I agree that fragmentation is a big problem in the wikisphere. Recently I created the (experimental) [http://www.mediawiki.org/wiki/Extension:RPED RPED extension] to help address that very concern. Let me know if you want to collaborate on other projects for data exchange among wikis. Regards, [[User:Tisane|Tisane]] 09:09, 26 March 2010 (UTC)
 +
 +
== SimpleSecurity ==
 +
I just downloaded the SimpleSecurity svn. And it's not handling Images, as in it's allowing them to be put into pages. It's also allowing their thumbnails to show up in searches. [[User:Smile Lee|Smile Lee]] 13:28, 26 March 2010 (UTC)
 +
 +
== Chloe in the snow ==
 +
 +
http://www.flickr.com/photos/rebba/4386885783/in/set-72157604564573252/
 +
 +
==AGI Manhattan==
 +
I read the whole thing today (could not watch the videos due to lack of BW)... holy crap! But did you see this? [http://ignoranceisfutile.wordpress.com/2010/07/23/using-automated-untelligence-to-fight-artificial-intelligence Automated Unintelligence] I love it! --[[User:Infomaniac|Infomaniac]] 13:45, 13 August 2010 (NZST)
 +
 +
== mail problems ==
 +
 +
Having a bit of trouble connecting to my od mail account in the last few days. On further investigation this looks a bit fishy:
 +
<pre>
 +
Rob-MacBookPro:~ rcar004$ host organicdesign.co.nz
 +
organicdesign.co.nz has address 69.64.87.188
 +
organicdesign.co.nz mail is handled by 5 mail.organicdesign.co.nz.
 +
Rob-MacBookPro:~ rcar004$ ping mail.organicdesign.co.nz
 +
PING mail.organicdesign.co.nz (69.64.87.188): 56 data bytes
 +
Request timeout for icmp_seq 0
 +
64 bytes from 69.64.87.188: icmp_seq=1 ttl=50 time=326.814 ms
 +
64 bytes from 69.64.87.188: icmp_seq=2 ttl=50 time=247.202 ms
 +
Request timeout for icmp_seq 3
 +
Request timeout for icmp_seq 4
 +
64 bytes from 69.64.87.188: icmp_seq=5 ttl=50 time=318.341 ms
 +
Request timeout for icmp_seq 6
 +
Request timeout for icmp_seq 7
 +
64 bytes from 69.64.87.188: icmp_seq=8 ttl=50 time=285.733 ms
 +
64 bytes from 69.64.87.188: icmp_seq=9 ttl=50 time=308.877 ms
 +
64 bytes from 69.64.87.188: icmp_seq=10 ttl=50 time=332.087 ms
 +
^C
 +
--- mail.organicdesign.co.nz ping statistics ---
 +
11 packets transmitted, 6 packets received, 45.5% packet loss
 +
round-trip min/avg/max/stddev = 247.202/303.176/332.087/29.139 ms
 +
</pre>
 +
Dropped packets and the server doesn't seem to be accepting my password (same as od unix login 'rob').
 +
--[[User:Rob|Rob]] 00:52, 17 October 2010 (PDT)
 +
:We've done a major server move, see [[News]], I didn't realise you were using OD mail, I'll set up your account now, but you'll need to either email/skype/IRC/TXT your pwd, or email me your pub RSA key so you can shell in yourself and set your pwd. --[[User:Nad|nad]] 01:04, 17 October 2010 (PDT)
 +
 +
== Selenium extension ==
 +
 +
Hi Nad,
 +
 +
Thanks for the interesting link. I'm specifically interested in running Selenium tests from the wiki, i.e. using the wiki as a selenium test archive.
 +
 +
Is it likely that the Selenium Extension still works?
 +
 +
 +
Cheers,
 +
--[[User:Dan Bolser|Dan Bolser]] 01:10, 4 April 2011 (PDT)
 +
:The last state it was in it was working, we had some test tests running in this site, but the extension and framework are no longer installed. --[[User:Nad|nad]] 19:50, 7 April 2011 (PDT)
 +
 +
== Private work for adeft ==
 +
 +
#why is  http://www.sebokwiki075.org/wiki/and http://www.sebokwiki075.org/wiki/ so slow? Extensions? DPL? Caching? Server?
 +
#how to get http://www.sebokwiki075.org/dev/index.php?title=Mediawiki:NavTree to show up on the left hand navigation. I thought I did it right.  Once we get that, need to figure out some basic style stuff, and get it working on /wiki (same domain as above)
 +
#backup script- TBD
 +
#update star menu with transparency layers
 +
#I added http://www.mediawiki.org/wiki/Extension:BreadCrumbs to /dev above.  They want the navigation to appear ABOVE the article title. I screwed around with http://www.sebokwiki075.org/dev/index.php?title=MediaWiki%3ACommon.css&action=historysubmit&diff=28551&oldid=28545
 +
and got it to look right, but when you edit with the above, it screws up the tabs and looks shitty. i read the talk page on http://www.mediawiki.org/wiki/Extension:BreadCrumbs and it was talking about hooks, so i bailed. Basically, what would it take to get this extension to work in Vector with the breadcrumbs showing up ABOVE the title and not overwriting stuff like in
 +
 +
--[[User:Phalseid|phalseid]] 09:13, 23 February 2012 (PST)

Latest revision as of 18:11, 22 May 2015

Exploring Wiki

Hey Aran,

is this the place where you make contact with other users then?

Ahhh, Bach. --The Duncan 06:20, 6 September 2010 (NZST)


Mediawiki programming help

Dear Nad, I have been taking a look at your work and you seem to have an impressive handle on mediawiki programming. I am working on a corporate project and we are looking for help with user interface/skinning and mediawiki extensions. We have a project deadline to meet over the next 6 weeks. If you would be interested and available for payable contract work, please contact me at organicdesign@jenandi.com

Kind Regards, Andi

Templates and passing vars

Nad, trying to get the google map extension to work with vars in a template, such that:

{{Test
|FULL_NAME = Ashfield
|FULL_NAME_ND = Ashfield
|LAT = -33.8833333
|LONG = 151.1166667
}}

<googlemap width="400" height="300" zoom="16" type="hybrid" controls="medium">
{{{LON}}},{{{LAT}}}, {{{FULL_NAME}}}
</googlemap>

would work. It appears to be a problem: https://bugzilla.wikimedia.org/show_bug.cgi?id=2257

and this appears to be somebody's solution?? http://blog.w-nz.com/archives/2005/08/23/using-template-variables-in-extension-tags-with-mediawiki/

what are your 2 cents? --Phalseid 06:39, 3 April 2008 (NZST)

I think installing an extension to generically process all variables in tags is a bit extreme, why not just hack your google maps extension in the tag function, or do an official patch on it which allows it to process the variables, eg

<php>$text = $parser->replaceTemplateVariables($text);</php>

You could make it do it based on a global such as $egGoogleMapsReplaceVariables --Nad 09:09, 3 April 2008 (NZST)

Treeview 5

Yo, Ive just put a suggestion up for this post. I suggest we may need to convert windows backslashes to forward slashes in extensions if this is a continuing problem --Sven 13:05, 3 April 2008 (NZST)

Extension:Treeview5.php

That fix for windows/unix paths was unbelievably obvious, why didn't I think of it... --Sven 14:18, 15 April 2008 (NZST)

Yea, that's what I was meaning about it only being an issue for the regex operating on the backslashes, not with the backslashes themselves. I only just got round to reading the treeview talk page and checking it out. You need four backslashes though because the regex expects it to be doubled so its not treated as escaping the following square bracket, and each of those two need to be escaped themselves since they're inside PHP quotes. --Nad 14:57, 15 April 2008 (NZST)

Simplesecurity glitch?

Aran, on my user page, which I want to start using a bit more again, there is a security setting and I can't figure out where that has been created. "Every action requires the user to be Milan". It was inheriting from cat:Milan/XMLWiki user pages and had security on the user page as well but I removed both settings and it's still locked down. Can you check it out please when you have minute? Cheers --Milan 11:04, 27 April 2008 (NZST)

Not a glitch, its getting it from Milan/Tree which must be transcluded onto the user page. You could remove the security from the tree page or not transclude it - but then I just thought, wrapping it in noinclude's should work I'll do it now and see. --Nad 12:20, 27 April 2008 (NZST)
Thanks, that looks to be working fine. I'm getting a little rusty on transclusion stuff it seems :-/--Milan 14:47, 27 April 2008 (NZST)
The templates an article uses are listed at the bottom of the page when editing --Nad 15:00, 27 April 2008 (NZST)

Collaboration

Hello Nad, I am trying to set up a number of intranets for NGO's that I am involved in and I would like to chat with about potential help/collaboration. Should we email each other or skype? Thanks, --Apap 06:40, 12 May 2008 (NZST)

You can email me on aran at this domain or skype id organicdesign (text only) --Nad 09:31, 12 May 2008 (NZST)

Extension:NewUserMessage

Hi could you please check http://www.mediawiki.org/wiki/Extension_talk:NewUserMessage. I got a problem with my bot showing up in Recent Changes. Thanks!

Extension:CSS

I noticed your above extension only partially works with MW1.12 after a fresh upgrade. Any idea why, or what could be blocking part of the {{#css}} from printing? As it is, only some of the specified elements are visible, as through templates used on a page, but not the page elements, as if they're being overridden by Common/Monobook.css. If you ever upgrade to 1.12 you might see what I mean. -- Sasoriza 06:41, 1 June 2008 (NZST)

I have it running on 1.12 with no problems. The extension does not prevent other CSS's such as Common.css or Monobook.css from loading, it simply adds another CSS which is loaded before the main ones which means you will have to ensure that your CSS rules are more specific than the existing ones to prevent them being overridden (this is what I mean by "specific"). --nad 08:53, 1 June 2008 (NZST)
Also I've made a few changes to the code to allow files or in-line rules to be included, see MW:Extension:CSS. --nad 09:35, 1 June 2008 (NZST)

User Registration

nad, i have poked around MW and don't see any extensions to extend the fields that are collected on new account creation. any ideas? --Phalseid 10:08, 7 June 2008 (NZST)

I think there are hooks to extend that pretty easily, you need something done? --nad 14:01, 7 June 2008 (NZST)

MediaWiki parser

thought you might be interested in this article - M:Migration to the new preprocessor which provides information about the changes to parser.php --Sven 14:16, 9 June 2008 (NZST)

Wikimedia Toolserver

Check out your edits on wikimedia projects e.g. Nad on 'pedia. We need to check out useful tools and ideas from this, some documentation available here and here. --Sven 11:42, 11 June 2008 (NZST)

Test to see what the edit summary looks like --Sven 12:59, 11 June 2008 (NZST)
Yea I'd really like to tie bots and scraping (like that svn-commits chart or oil-price monitor etc) in to our workflow system so we can define streams of process-driven content similar to the toolserver idea. --nad 16:30, 11 June 2008 (NZST)

Wiki.pl

Yo, Ive successfully added a wikiDelete method, it may need a bit of work around capturing the correct $err message if a user does not have rights to access the page. The restore method is almost there but unfortunately I am working off line mostly this weekend if you see something obvious I am doing wrong. You can specify a specific revision, or all revisions to restore, will get the latest revision restoring first.

I also managed in the process of testing to submit incorrect token content which has stuffed up the local instance of the database when restoring one particular article, so I may have found a mediaWiki bug in 1.12.0 but need to document further. I want to create a test script which can do a pile of test actions so we can loop it through a set of wiki versions to test wiki.pl on. Here is the error message I managed to create;

Database error manually identified when attempting restore
Database error
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

    (SQL query hidden)

from within function "Revision::insertOn". MySQL returned error "1062: Duplicate entry '12' for key 2 (localhost)".

I think at the time I submitted only two name/value hidden fields my %form = (wpEditToken => $1, target => $title,. Anyway, I want to add a couple of other functions to upload/delete/restore files. The file restoration function may be covered by the generic wikiRestore function.--Sven 10:49, 15 June 2008 (NZST)

That's pretty heinous if you can construct a query that can stuff the db. Is it fixed by deleting the article again? --nad 12:39, 15 June 2008 (NZST)
Just for the article Sandbox on my localhost is the restore stuffed, and only when I try to restore all revisions, restoring the latest revision is fine. However when I created the problem I had posted fields that were incorrect, so I think it is likely to be a MediaWiki bug that I found, hopefully if I have time I can trace and document it. I still havent got the restore functionality going yet. --Sven 13:06, 15 June 2008 (NZST)

Extension:Marketresearch‎

Extension:Marketresearch‎ and talk. --Phalseid 05:59, 11 July 2008 (NZST)

bug in csv2wiki

see http://www.organicdesign.co.nz/Talk:Csv2wiki.pl#bug --Phalseid 08:35, 12 July 2008 (NZST)

Wiki.pl Stability

Yo, I've made changes to Wiki.pl to try to make the WikiEdit function a bit more stable. The issue has been the large conditional regex attempting to grab all relevant hidden key/value pairs on about line 114. As the interface changes subtly the regex occasionally fails. The modified approach just searches for the wpEDitToken key;

if ($response->is_success and (
			$response->content =~ m|<input type='hidden' value="(.+?)" name="wpEditToken" />|g
			)) {

then (inefficiently) tests and saves the other wanted keys. It has not been tested across multiple MW versions yet but should be much more stable. --Sven 08:43, 19 December 2008 (NZDT)

Cool thanks ;-) --nad 08:44, 19 December 2008 (NZDT)

MindMap

nad, could you please 1) add the freemind mind map to tmp.peerix.org, and 2) tell me why it is not working any longer on wx? thx! --Phalseid 00:39, 2 January 2009 (NZDT)

I don't know why thats not working, I'll have another look later --nad 09:17, 2 January 2009 (NZDT)
here is why it is not working....same on tmp...http://www.mediawiki.org/wiki/Extension_talk:FreeMind#.C2.BBFlash_plugin_or_Javascript_are_turned_off._Activate_both_and_reload_to_view_the_mindmap.C2.AB

MindMap II

please add this as well http://www.mediawiki.org/wiki/Extension:MindMeister I think this will satisfy my Red Eye needs for now... --Phalseid 03:28, 3 January 2009 (NZDT)

where to put stuff

i want to put up info on the platform regarding intentional community. should it go here or on tmp? im not clear as to "why the difference", i guess --Phalseid 00:41, 2 January 2009 (NZDT)

an example is 1) the MW training material i am working with milan on and 2) this community mindmap governance issue. --Phalseid 00:43, 2 January 2009 (NZDT)
I'm not sure if these things belong in platform (check Documentation for a brief description of what role each document should be playing). Basically everything goes on OD except things which need to be kept completely private such as the coffee projects. The training material probably should be going into MediaWiki workshop or its talk. --nad 09:22, 2 January 2009 (NZDT)

Project red eye

nad: im hoping you have some down time waiting for decaf stuff, please check out http://tmp.peerix.org/Red_Eye and let me know $/clarification. thx --Phalseid 00:49, 2 January 2009 (NZDT)

I'll need a lot of clarification for this one, some mockups would be good... I can't really know $ until I know exactly what needs to be done, but off the top of my head it looks difficult, probably $500-$1000 --nad 09:24, 2 January 2009 (NZDT)

forget this for now...see http://www.mediawiki.org/wiki/Extension:MindMeister above.. --Phalseid 03:29, 3 January 2009 (NZDT)

widgets on demo

aran, plese create and set Folder permissions /extensions/Widgets/compiled_templates/ folder should be made writable by web server (this is where Smarty stores pre-compiled template.) please verify by checking http://demo.organicdesign.co.nz/Google_Calendar (scroll to bottom) thx! --phalseid 13:44, 9 February 2009 (NZDT)

But I thought you had agreed that Milan was now developing the demo, is he planning on implementing these widgets as part of his presentation? does he know this? what are you planning here? --nad 20:09, 9 February 2009 (NZDT)

Extension:NukeDPL.php

Hi Nad, your new version of this extension has overwritten a couple of things I had added to it:

  • a couple of bug fixes (two minor ones, corrected with a replace, and one major: the list of results was always showing one less result than the total returned by the DPL query), and
  • a text suggestion for the query window (redirects = exclude | include| only)

Here[1] you can check the differences I introduced. As I'm not sure if you left them out on purpose, I'd like to wait for a confirmation from you; feel free to reintroduce them if you agree. Your extension is being used at CPDL.org, that has a lot of titles with accented characters, that's why these bugs could be discovered. Needless to say how much we appreciate this extension, thanks a lot for it. Capmo 22:57, 19 March 2009 (UTC)

Sorry about that, not sure how your str_replace fix works, but I'll take your word for it! re-implemented it just now, thanks ;-) --nad 02:03, 20 March 2009 (UTC)

Integration

Hi Nad, I saw your Recent Changes extension. I agree that fragmentation is a big problem in the wikisphere. Recently I created the (experimental) RPED extension to help address that very concern. Let me know if you want to collaborate on other projects for data exchange among wikis. Regards, Tisane 09:09, 26 March 2010 (UTC)

SimpleSecurity

I just downloaded the SimpleSecurity svn. And it's not handling Images, as in it's allowing them to be put into pages. It's also allowing their thumbnails to show up in searches. Smile Lee 13:28, 26 March 2010 (UTC)

Chloe in the snow

http://www.flickr.com/photos/rebba/4386885783/in/set-72157604564573252/

AGI Manhattan

I read the whole thing today (could not watch the videos due to lack of BW)... holy crap! But did you see this? Automated Unintelligence I love it! --Infomaniac 13:45, 13 August 2010 (NZST)

mail problems

Having a bit of trouble connecting to my od mail account in the last few days. On further investigation this looks a bit fishy:

Rob-MacBookPro:~ rcar004$ host organicdesign.co.nz
organicdesign.co.nz has address 69.64.87.188
organicdesign.co.nz mail is handled by 5 mail.organicdesign.co.nz.
Rob-MacBookPro:~ rcar004$ ping mail.organicdesign.co.nz
PING mail.organicdesign.co.nz (69.64.87.188): 56 data bytes
Request timeout for icmp_seq 0
64 bytes from 69.64.87.188: icmp_seq=1 ttl=50 time=326.814 ms
64 bytes from 69.64.87.188: icmp_seq=2 ttl=50 time=247.202 ms
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
64 bytes from 69.64.87.188: icmp_seq=5 ttl=50 time=318.341 ms
Request timeout for icmp_seq 6
Request timeout for icmp_seq 7
64 bytes from 69.64.87.188: icmp_seq=8 ttl=50 time=285.733 ms
64 bytes from 69.64.87.188: icmp_seq=9 ttl=50 time=308.877 ms
64 bytes from 69.64.87.188: icmp_seq=10 ttl=50 time=332.087 ms
^C
--- mail.organicdesign.co.nz ping statistics ---
11 packets transmitted, 6 packets received, 45.5% packet loss
round-trip min/avg/max/stddev = 247.202/303.176/332.087/29.139 ms

Dropped packets and the server doesn't seem to be accepting my password (same as od unix login 'rob'). --Rob 00:52, 17 October 2010 (PDT)

We've done a major server move, see News, I didn't realise you were using OD mail, I'll set up your account now, but you'll need to either email/skype/IRC/TXT your pwd, or email me your pub RSA key so you can shell in yourself and set your pwd. --nad 01:04, 17 October 2010 (PDT)

Selenium extension

Hi Nad,

Thanks for the interesting link. I'm specifically interested in running Selenium tests from the wiki, i.e. using the wiki as a selenium test archive.

Is it likely that the Selenium Extension still works?


Cheers, --Dan Bolser 01:10, 4 April 2011 (PDT)

The last state it was in it was working, we had some test tests running in this site, but the extension and framework are no longer installed. --nad 19:50, 7 April 2011 (PDT)

Private work for adeft

  1. why is http://www.sebokwiki075.org/wiki/and http://www.sebokwiki075.org/wiki/ so slow? Extensions? DPL? Caching? Server?
  2. how to get http://www.sebokwiki075.org/dev/index.php?title=Mediawiki:NavTree to show up on the left hand navigation. I thought I did it right. Once we get that, need to figure out some basic style stuff, and get it working on /wiki (same domain as above)
  3. backup script- TBD
  4. update star menu with transparency layers
  5. I added http://www.mediawiki.org/wiki/Extension:BreadCrumbs to /dev above. They want the navigation to appear ABOVE the article title. I screwed around with http://www.sebokwiki075.org/dev/index.php?title=MediaWiki%3ACommon.css&action=historysubmit&diff=28551&oldid=28545

and got it to look right, but when you edit with the above, it screws up the tabs and looks shitty. i read the talk page on http://www.mediawiki.org/wiki/Extension:BreadCrumbs and it was talking about hooks, so i bailed. Basically, what would it take to get this extension to work in Vector with the breadcrumbs showing up ABOVE the title and not overwriting stuff like in

--phalseid 09:13, 23 February 2012 (PST)