New Nekochan Wiki!

Opinions, ideas and thoughts about Nekochan Net.
User avatar
nekonoko
Site Admin
Site Admin
Posts: 8145
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Re: New Nekochan Wiki!

Unread postby nekonoko » Sat Nov 03, 2007 11:17 am

Not a problem. The template at the top of your new page is really scrambled though - is that due to the CSS or something else?
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
joerg
Donor
Donor
Posts: 2226
Joined: Thu Jan 08, 2004 6:57 am
Location: In an origin rack - Germany
Contact:

Re: New Nekochan Wiki!

Unread postby joerg » Sat Nov 03, 2007 11:24 am

nekonoko wrote:Not a problem. The template at the top of your new page is really scrambled though - is that due to the CSS or something else?


That have nothing todo with the new CSS. The advanced templates which i have copied from the wikipedia doesnt work in our nekochan wiki. I get simple templates to work with and i also understand the basic stuff.

I have installed current mediawiki-1.11.0 here at home to mess around with it and i get the same errors. The parser went mad when using the original templates from wikipedia. Maybe the used a tweaked version?

Chances are very high that i just make a simple thing wrong because one of my first question was how to create a new page in the wiki :)

regards
Joerg

User avatar
joerg
Donor
Donor
Posts: 2226
Joined: Thu Jan 08, 2004 6:57 am
Location: In an origin rack - Germany
Contact:

Re: New Nekochan Wiki!

Unread postby joerg » Sun Nov 04, 2007 5:48 am

Ok i got it working. I visit the mediawiki IRC channel on freenode and some guys point me into the right direction. Before i installed the wiki software (latest svn) on 2 local machines to see if there are differents between the current version or just platform specific issues.

1. For the more advanced Template stuff an extra extension needs to be installed.
2. The help of "tidy" is needed when the Template should generate HTML tables.

Installing of the ParserFunction Extension see http://meta.wikimedia.org/wiki/Help:ParserFunctions#Installation:
    Create the subdirectory "ParserFunctions" under /extensions
    Download the 3 PHP files Expr.php, ParserFunctions.php and ParserFunctions.i18n.php with wget into the new created ParserFunctions directory

Note:
Its the normal behavior that mediawikis PHP scripts doesnt use the PHP Close tag (aka ?>).

Add the following to the "LocalSettings.php" config file:

Code: Select all

require_once( "$IP/extensions/ParserFunctions/ParserFunctions.php" );


For installing tidy a similar step is needed but instead of using a PHP script or the ext/tidy from PHP the tidy binary is used. So install neko_tidy first.
    Create the subdirectory "tidy" under /extensions
    Create a "tidy.conf" file with the following content within the new created tidy directory

Code: Select all

show-body-only: yes
force-output: yes
tidy-mark: no
wrap: 0
wrap-attributes: no
literal-attributes: yes
output-xhtml: yes
numeric-entities: yes
enclose-text: yes
enclose-block-text: yes
quiet: yes
quote-nbsp: yes
fix-backslash: no
fix-uri: no


    Add the following to the LocalSettings.php

Code: Select all

$wgUseTidy=true;
$wgTidyBin = '/usr/nekoware/bin/tidy';
$wgTidyConf = $IP.'/extensions/tidy/tidy.conf';


My missing step was the "$wgUseTidy=true;" because the docs only referrers to "$wgUserHtml " which was removed in one of the previous versions of mediawiki.

If all goes right you can see something like that http://wiki.irixworld.net/index.php/Setup_neko_apache2 (see all the foobars at the right :)

Pete, it is possible for you to make the changes and see if it works? I cant see a reason that something breaks. If so i can be fix by uncommented in the LocalSettings.php.

If you set PHPs open_basedir you have to add "/usr/nekoware/bin". But before do that drop a note because i dont want to open a securityhole.

regards
Joerg

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8145
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Re: New Nekochan Wiki!

Unread postby nekonoko » Sun Nov 04, 2007 10:14 am

joerg wrote:Pete, it is possible for you to make the changes and see if it works?


Done - looks like it's working.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
joerg
Donor
Donor
Posts: 2226
Joined: Thu Jan 08, 2004 6:57 am
Location: In an origin rack - Germany
Contact:

Re: New Nekochan Wiki!

Unread postby joerg » Sun Nov 04, 2007 10:20 am

nekonoko wrote:
joerg wrote:Pete, it is possible for you to make the changes and see if it works?


Done - looks like it's working.


Thx.

User avatar
recondas
Moderator
Moderator
Posts: 5441
Joined: Sun Jun 06, 2004 5:55 pm
Location: NC - USA

Re: New Nekochan Wiki!

Unread postby recondas » Wed Nov 21, 2007 3:26 pm

I added articles on 'Defining Non-Standard Tape Drives Under IRIX' and 'Using the Octane Compression w/ VPro Graphics' to the "How To" section of the wiki.
***********************************************************************
Welcome to ARMLand - 0/0x0d00
running...(sherwood-root 0607201829)
* InfiniteReality/Reality Software, IRIX 6.5 Release *
***********************************************************************

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8145
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Re: New Nekochan Wiki!

Unread postby nekonoko » Thu Nov 22, 2007 2:06 am

recondas wrote:I added articles on 'Defining Non-Standard Tape Drives Under IRIX' and 'Using the Octane Compression w/ VPro Graphics' to the "How To" section of the wiki.


Looks good - thanks!
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
joerg
Donor
Donor
Posts: 2226
Joined: Thu Jan 08, 2004 6:57 am
Location: In an origin rack - Germany
Contact:

Re: New Nekochan Wiki!

Unread postby joerg » Sun Nov 25, 2007 10:19 am

Pete,

can you please add the following to http://www.nekochan.net/wiki/index.php?title=MediaWiki:Common.js ?

Code: Select all

/* Any JavaScript here will be loaded for all users on every page load. */

 /** Collapsible tables *********************************************************
  *
  *  Description: Allows tables to be collapsed, showing only the header. See
  *               [[Wikipedia:NavFrame]].
  *  Maintainer on Wikipedia: [[User:R. Koot]]
  */
 
 var autoCollapse = 2;
 var collapseCaption = "hide";
 var expandCaption = "show";
 
 function hasClass( element, className ) {
  var Classes = element.className.split( " " );
  for ( var i = 0; i < Classes.length; i++ ) {
    if ( Classes[i] == className ) {
      return ( true );
    }
  }
  return ( false );
 }
 
 function collapseTable( tableIndex )
 {
     var Button = document.getElementById( "collapseButton" + tableIndex );
     var Table = document.getElementById( "collapsibleTable" + tableIndex );
 
     if ( !Table || !Button ) {
         return false;
     }
 
     var Rows = Table.getElementsByTagName( "tr" );
 
     if ( Button.firstChild.data == collapseCaption ) {
         for ( var i = 1; i < Rows.length; i++ ) {
             Rows[i].style.display = "none";
         }
         Button.firstChild.data = expandCaption;
     } else {
         for ( var i = 1; i < Rows.length; i++ ) {
             Rows[i].style.display = Rows[0].style.display;
         }
         Button.firstChild.data = collapseCaption;
     }
 }
 
 function createCollapseButtons()
 {
     var tableIndex = 0;
     var NavigationBoxes = new Object();
     var Tables = document.getElementsByTagName( "table" );
 
     for ( var i = 0; i < Tables.length; i++ ) {
         if ( hasClass( Tables[i], "collapsible" ) ) {
             NavigationBoxes[ tableIndex ] = Tables[i];
             Tables[i].setAttribute( "id", "collapsibleTable" + tableIndex );
 
             var Button     = document.createElement( "span" );
             var ButtonLink = document.createElement( "a" );
             var ButtonText = document.createTextNode( collapseCaption );
 
             Button.style.styleFloat = "right";
             Button.style.cssFloat = "right";
             Button.style.fontWeight = "normal";
             Button.style.textAlign = "right";
             Button.style.width = "6em";
 
             ButtonLink.setAttribute( "id", "collapseButton" + tableIndex );
             ButtonLink.setAttribute( "href", "javascript:collapseTable(" + tableIndex + ");" );
             ButtonLink.appendChild( ButtonText );
 
             Button.appendChild( document.createTextNode( "[" ) );
             Button.appendChild( ButtonLink );
             Button.appendChild( document.createTextNode( "]" ) );
 
             var Header = Tables[i].getElementsByTagName( "tr" )[0].getElementsByTagName( "th" )[0];
             /* only add button and increment count if there is a header row to work with */
             if (Header) {
                 Header.insertBefore( Button, Header.childNodes[0] );
                 tableIndex++;
             }
         }
     }
 
     for ( var i = 0;  i < tableIndex; i++ ) {
         if ( hasClass( NavigationBoxes[i], "collapsed" ) || ( tableIndex >= autoCollapse && hasClass( NavigationBoxes[i], "autocollapse" ) ) ) {
             collapseTable( i );
         }
     }
 }
 
 addOnloadHook( createCollapseButtons );


This is needed for the current standard of creating a hide/show element called "collapsible table" which is discribed under http://meta.wikimedia.org/wiki/Help:Collapsing. For all other methods extra extensions are needed which i want to avoid. I leave away the JS code for the sorted tables.

regards
Joerg

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8145
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Re: New Nekochan Wiki!

Unread postby nekonoko » Sun Nov 25, 2007 10:28 am

joerg wrote:Pete,

can you please add the following


Done.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
fu
Posts: 1119
Joined: Thu Sep 29, 2005 9:39 am
Location: constant traveler [nyc/london/berlin]
Contact:

Re: New Nekochan Wiki!

Unread postby fu » Sun Dec 23, 2007 4:53 am

hi all

i can dedicate some of my (holiday) time to do some write up on the wiki, how should we structure tips/info from the o2 diagnostics thread?

under How To? ie How To-->J-->Jumpstart the o2?

under Workstations-->o2-->Jumpstart the o2?

User avatar
recondas
Moderator
Moderator
Posts: 5441
Joined: Sun Jun 06, 2004 5:55 pm
Location: NC - USA

Re: New Nekochan Wiki!

Unread postby recondas » Sun Dec 23, 2007 8:32 am

How about placing your article as a "How To" - it could be linked to or from Workstations: O2.

BTW - anyone who might be considering an article for the nekochan wiki but hasn't because they aren't certain of how to format their article so that it displays in the proper format, here's a decent formating cheatsheet:
http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet
and a slightly more comprehensive article on how to edit:
http://en.wikipedia.org/wiki/Wikipedia: ... dit_a_page
***********************************************************************
Welcome to ARMLand - 0/0x0d00
running...(sherwood-root 0607201829)
* InfiniteReality/Reality Software, IRIX 6.5 Release *
***********************************************************************

User avatar
fu
Posts: 1119
Joined: Thu Sep 29, 2005 9:39 am
Location: constant traveler [nyc/london/berlin]
Contact:

Re: New Nekochan Wiki!

Unread postby fu » Sun Dec 23, 2007 9:05 am

thanks for the guideline(s) dave

i'll start working on it + see how it goes

update:

just created my first article O2 Diagnostics: The Jumpstart Procedure under How To

seems ok to me (hopefully i didn't brake anything)

User avatar
recondas
Moderator
Moderator
Posts: 5441
Joined: Sun Jun 06, 2004 5:55 pm
Location: NC - USA

Re: New Nekochan Wiki!

Unread postby recondas » Wed Feb 06, 2008 8:14 pm

I just added a wiki page on the Origin2k/Onyx2 Rack midplane diagnostic LEDs:
http://www.nekochan.net/wiki/ ... 2_Midplane
Feel free to make or suggest any improvements.
***********************************************************************
Welcome to ARMLand - 0/0x0d00
running...(sherwood-root 0607201829)
* InfiniteReality/Reality Software, IRIX 6.5 Release *
***********************************************************************

User avatar
joerg
Donor
Donor
Posts: 2226
Joined: Thu Jan 08, 2004 6:57 am
Location: In an origin rack - Germany
Contact:

Re: New Nekochan Wiki!

Unread postby joerg » Sun Feb 17, 2008 1:54 am

Pete,

i have finished my work on the scripts for import the nekoware package informations into our wiki. Befor pressing the button i would like ask for permission to do :).

Maybe it make sence to create a sql dump befor we start so that we can revert all the changes if needed. On my local machine it takes 8h for the import. It depends on the number of obsolete tardists and the incredibble time the "shofiles" programm needed for extracting.

The current state looks like http://www.nekoware.net/index.php/Category:Nekoware.

Hmmm..... i see that i cant bypass the captcha check which comes up when a article contains a URL. If its possible to remove the check for some time?. Maybe you would try to set

Code: Select all

$wgEmailConfirmToEdit = true;
$wgShowIPinHeader = false;
$wgDisableAnonTalk = true;


in the LocalSettings.php. These settings prevents the creating of pages without having a account with a confirmed E-Mail address.

regards
Joerg

User avatar
fu
Posts: 1119
Joined: Thu Sep 29, 2005 9:39 am
Location: constant traveler [nyc/london/berlin]
Contact:

Re: New Nekochan Wiki!

Unread postby fu » Sun Feb 17, 2008 12:29 pm

what other (archived +useful enough) topics should make it to the wiki..?

would it be helpful to come with a wish list and take it from there? i could dedicate some time if i knew which ones are really worthy...

what about Diego's
- The MOD/M.O.D. (Magneto Optical Drive) IRIX FAQ?
- O2 As Serial Console: HOWTO?

and what about external links/articles like:
- Chris's [The Keeper], Fibre Channel FAQ for SGI user's?
- Chris Pirazzi's Lurker's Guide to Video?

(i guess the real question is) should the neko:wiki be one central/complete reference point (including copied-pasted articles and link(s) to the original source(s)) or should it focus on just good enough nekochan topics with external links..?


Return to “Nekochan Net”

Who is online

Users browsing this forum: No registered users and 0 guests