Difference between revisions of "User talk:Sven"

From Organic Design wiki
(Will have to check out dna.php later)
(Mediawiki - geshi discussion)
Line 1: Line 1:
 +
Hi! The setup instructions for Geshi seem pretty complete, I can't recall having any other problems. I see you've specified the latest mediawiki version as a prerequisite. That's not strictly necessary as i've got it to work on earlier versions of the 1.5 mediawiki. Of course 1.5.6 is recommended because of that little arbitary code execution thingy in 1.5.3. ;) Man I sure am sick of dealing with versioning with these open source apps. The sooner we get an auto upgrading peer doing this stuff the better! I don't know about your organisation, but at the uni it's next to impossible to keep track of the versions.
 +
--[[User:Rob|Rob]] 14:07, 11 Feb 2006 (NZDT)
 +
----
 
I can't figure out why your new dna.php isn't working, I swapped it for another working one to see if it was the script itself, but still didn't work - there might be something I've gorgotten about adding those rules... anyway I'll have nother look later [[User:Nad|Nad]] 10:25, 7 Feb 2006 (NZDT)
 
I can't figure out why your new dna.php isn't working, I swapped it for another working one to see if it was the script itself, but still didn't work - there might be something I've gorgotten about adding those rules... anyway I'll have nother look later [[User:Nad|Nad]] 10:25, 7 Feb 2006 (NZDT)
 
----
 
----

Revision as of 01:07, 11 February 2006

Hi! The setup instructions for Geshi seem pretty complete, I can't recall having any other problems. I see you've specified the latest mediawiki version as a prerequisite. That's not strictly necessary as i've got it to work on earlier versions of the 1.5 mediawiki. Of course 1.5.6 is recommended because of that little arbitary code execution thingy in 1.5.3. ;) Man I sure am sick of dealing with versioning with these open source apps. The sooner we get an auto upgrading peer doing this stuff the better! I don't know about your organisation, but at the uni it's next to impossible to keep track of the versions. --Rob 14:07, 11 Feb 2006 (NZDT)


I can't figure out why your new dna.php isn't working, I swapped it for another working one to see if it was the script itself, but still didn't work - there might be something I've gorgotten about adding those rules... anyway I'll have nother look later Nad 10:25, 7 Feb 2006 (NZDT)


Got some wikid shit happening with the peers now! their job schedules are now in the wiki (eg. Gir/jobs is User:Gir's schedule). This means we can have many peers in the field now and manage them all from the wiki. Nad 23:04, 5 Feb 2006 (NZDT)

I wondered why the daemon was called User:Gir. time for a User:SvenBot... Sven 23:09, 5 Feb 2006 (NZDT)

Note that in XmlWiki the local LocalSettings.php can be used directly instead of using the file :-)

Nad 10:45, 1 Feb 2006 (NZDT)

Yeah I should be able to whip up a transform over the search page that does that red-link thing - I'm quite busy though cos Milan's over for some notion, and I'm just starting on the new recent-changes which incirporates our time-management and account budgeting - full on shit man! once we've got that in place you can run a whole org from the wiki no worries :-)

Nad 10:19, 30 Jan 2006 (NZDT)

Yeah accumulating some good templates and styles that work for a standard xmlwiki is a good idea. Nad 13:22, 27 Jan 2006 (NZDT)


I haven't really got any docs on the workings of xmlwiki, and just got to know mediawiki myself when trying to get xmlwiki parts to work in it. Here's some relevent articles from the dev docs list on the main page:

The main doc about xmlwiki is XmlWiki which covers some of the details. The main core of xmlwiki is the xmlwiki.php script which is hooked directly into index.php. Also many of the xmlwiki examples in XmlWiki Features show a lot about how it works, especially:

Nad 10:24, 27 Jan 2006 (NZDT)

The email-article link works quite solidly now. If you slelect to send it as text it sends the article source, otherwise renders it as on the site minus nav-bars etc. Nad 18:49, 26 Jan 2006 (NZDT)


Don't know if you've noticed, but I put am auo-refresh on the recent-changes so if you do like me and Milan and keep a browser tab open on the changes, it now stays up to date by itself :-)

Nad 13:21, 26 Jan 2006 (NZDT)
Yes, I do that, I only use new pages for other wiki's so I dont confuse myself if they look similar Sven 14:25, 26 Jan 2006 (NZDT)

To revert just go to the last diff in the recent-changes and you'll see an option to "rollback" which is actually revert. Also as an admin you can now delete pages too. Nad 10:34, 22 Jan 2006 (NZDT)


Next time you come over try and remember to bring some blank DVD's, or get an external drive, cos I've got some excellent doco's you should check out! Nad 09:22, 22 Jan 2006 (NZDT)

ok, might be soon Sven 09:34, 22 Jan 2006 (NZDT)

Our DSL has been cut to 64K after only 10 days cos I already used my 1GB :-( How sluggish is the wiki to use at the moment?

It is faster than wikipedia at the moment :p
I think it is acceptable as long as the traffic is lowSven 18:05, 21 Jan 2006 (NZDT)

ActivePERL is available for OS-X now: here

What would be the advantage over perl (version 5.8.6) which is built in? Sven 16:11, 20 Jan 2006 (NZDT)
OSX's PERL doesn't have many modules included, not even libwww. Also activeperl has the perl-package-manager which is kind of like apt-get for PERL/CPAN, it would be interesting to see if they've incorporated it for OSX because it works really well. Just go ppm install package
I will buy that... now downloaded, not installed -yet Sven 20:36, 20 Jan 2006 (NZDT)

How did you change the DNS? if you edited a zone file, did you increase the serial number before doing named.reload? Otherwise, you could change the URL to IP in LocalSettings.php so that all the absolute wiki-links all render with the IP until the problem's fixed...? Nad 14:10, 20 Jan 2006 (NZDT)

The DNS was not changed, only my IP address, so there is no lookup. I dont think theyve got round to updating the zone file (or whatever). I couldnt see anything in the Localsettings.php which does what you were talking about, will look furthur...Sven 15:11, 20 Jan 2006 (NZDT)
ok, found $wgServer = in http://www.mediawiki.org/wiki/LocalSettings.php. That will do the trick.Sven 15:16, 20 Jan 2006 (NZDT)
I think $wgServer is prior to 1.4x, probably $wgScriptPath is the one. Nad 15:21, 20 Jan 2006 (NZDT)
k Sven 15:24, 20 Jan 2006 (NZDT)

That WMF problem's no worries for us - only a nut-case would use a windows machine as a server anyway!


You can't ever go to any IP on 192.168 because that is an internal IP address. That's happened because you've tried to click on a link to the other wiki from the changes, but they have to show their internal addresses because they're on the same LAN. PW/OD won't work properly until OD is back on another connection.

For some reason the wikilist had a space before the PW entry disabling it, so that's fixed now.

Nad 11:51, 2 Jan 2006 (NZDT)

That's right, its called a dummy edit and if there's no diff then it won't store a change entry for it, but it still updates the links and cats etc (that's why you have to make some kind of change even if you only want to add a comment to the changes)

Nad 10:34, 22 Dec 2005 (NZDT)

Yes, I edited and saved it... ok, didnt see it in the log, maybe it doesnt record the log if it doesnt actually change byte size?

Sven 08:58, 22 Dec 2005 (NZDT)

Now I see what you're meaning - I was just looking at the list at the bottom of the article which says what cats it's in, not going in to the category itself. There is a bug that happens when you categorise using the properties - you have to do a dummy save on the article itself because the category content doesn't always update. Just do edit then save without any changes. Remember XmlWiki is just an experimental hack!


Yeah seen that style already, just didn't use it

Sven 11:31, 21 Dec 2005 (NZDT)

Also, if you want to do a link to a cat you don't have to use the full url, you just put a leading colon like this:
Category:Nutrigenomics ([[:Category:Nutrigenomics]])


I still don't quite get the categorisaton problem you're on about - there is no nutrigenomics article, only a category which has been made a subcat of R (which incidentally is what I was saying is conceptually not quite right, as it then means technically that all articles in the nutrigenomics cat should really be R scripts, but you might want a non-R doc to be in the nutrigenomics cat)

Nad 10:59, 21 Dec 2005 (NZDT)

I see you've been having some trouble with categorisation and language - I'm not sure what the trouble is, but remember these things:

  • An article is automatically categorised into a language (eg. R, PHP etc) if it has a known extension on the end of its name or some recognised content such as shebang.
  • You only manually set the language in the properties if you wish to change the language it has defaulted to.
  • You must always remove elements you're not using in properties Ahh didnt know that ~Sven
  • An article's categorisation and rendering are affected by its language, but its language is not affected by its categorisation.

Check out mediawiki's info on the 'old' table where the article histories are stored.

Nad 16:01, 20 Dec 2005 (NZDT)

Cool!

Sven 16:02, 20 Dec 2005 (NZDT)

I've made nutriwhatever a subcat of R, but that may not be conceptually what you want to do, because it implies then that all things in nutriwhatever cat are R-scripts. Normally you'd have a bunch of articles of all kinds that are in the nutriwhatever cat, but also in other cats depending on their lang etc.

Nad 12:46, 20 Dec 2005 (NZDT)

No you can't embed an old version - you'll need to wait for the peer for that kind of tricky business! Nad 13:56, 12 Dec 2005 (NZDT)


The peer can execute shell scripts to schedule or in response to other events, but PERL is much more efficient, and also any PERL snipits run on windoze-peers too. Also, Robs removing a lot of the shell from our dedicated peer-os and replacing them with PERL. Nad 15:32, 8 Dec 2005 (NZDT)


You could have a look at http://www.mediawiki.org/wiki/Help:Configuration_settings for proxy info, but never dealt with it personally...

Nad 13:30, 8 Dec 2005 (NZDT)

You should just use PERL for all that stuff - it's been designed specifically as a shell replacement - and anything that's easier in shell you can just do with backticks anyway. Also you can then use libwww instead of wget which allows cookies, redirects, forms or logins etc. wiki.pl does forms and logins over http.

Nad 22:54, 7 Dec 2005 (NZDT)

That mediawiki install script is excellent - that means we can get peers to install mediawiki/xmlwiki. We're trying to get similar functionality working for PERL CPAN modules, so the PERL scripts can install libraries automatically when a use package fails.


  • Yo - is Joshua a friend of yours? - I though that was my friend Josh who had said he might have a look at the wiki soon.
  • You can't link between the PW and OD sites from the recent-changes while they're on the same LAN.
  • Also it turns out that "wikid" is a much better name than peerd because it sums up quite well the idea of the standalone wiki server running persistently in memory - wikid shyit!

This is a message for Sven

Joshua 11:10, 7 Dec 2005 (NZDT)

Godammit the site is supposed to be down!


Making new article pi0Estimation

202.36.134.14 09:21, 23 Nov 2005 (NZDT)

Once that mount was nuked, the old home struct was still intact.


Cool, I suggest a media blackout for correspondance with Kieran - lol. Were you able to copy over the accounts or do you have to remake them?

Sven 17:01, 21 Nov 2005 (NZDT)

Awww shit!!!! I've made another fuckup - can you log back in to that box and have a quick look, but log in as me with same passwd so Kieran doesn't stress. I had mounted .mnt/data1/home to /home, but then bloody deleted it before removing the mount! It's cos I was stressed by the whole situation and then suddenly thought I better do that stuff incase he removed the drive and fucked the home dir - now it's fucked anyway!

Sorted it, once removed manually from /etc/fstab, I could umount it revealing original /home structure 
-)
Nad 15:51, 21 Nov 2005 (NZDT)

Xmlwiki has some problems with articles starting with user: and also articles with brackets in them! I haven't got round to fixing those things as been busy with peer. Can you access the article now? - No!


Also check out History it's something you'd probably find useful on your own wiki (but you'd have to put xmlwiki on to do it). Anyway it's an article that renders a few buttons each does an SQL query to the database. The code is history.php which is linked in the articles properties. It's useful for doing quick stuff like adding an interwiki, or removing a user etc. (Also adding xmlwiki is no worries, you can turn it on or off with a single click from /wiki/xmlwiki/index.php)


I think there's a tool in wiki/maintenance called rebuildInterwiki.php which is supposed to run from commandline php. Also another called rebuildInterwiki.inc which can probably be run over www, but to run in an exacutable place.

Nad 14:05, 21 Nov 2005 (NZDT)

I just logged in on the usual passwd fine - but anyway, I've got another server sorted I think, we just need to wait for the 30G then it'll be ready - we'll just keep it in thames with the Pollen Wiki.


I though you said Kieran had changed the root passwd - I told him he shouldn't have chopped you etc, but I should have checked first, cos the root passwd is still the same!

Nad 13:36, 21 Nov 2005 (NZDT)

Yo Sven, givus some feedback on Talk:PeerTex will ya?

Nad 10:45, 20 Nov 2005 (NZDT)

Yo, the main table of contents kind of thing for development of the various strands is at home/dev which is in the Site Navigation link in the left pane. I've added PeerTex as a strand of the project there so we can begin organised collaboration on it.

Nad 17:45, 18 Nov 2005 (NZDT)

You go for it dude - the 30G is in so it should stay up and running from now on - I'll be on and off it a fair bit too to get php, apache, named etc going... the 30G is meant as a data drive, do you guys have any convention of mounting /var and /home to another volume or anything?

Nad 19:06, 17 Nov 2005 (NZDT)

I put the root passwd to new OD on your user page since its readable only by you - but delete it off once you've put it somewhere good... you can get it at mollusc.netassoc.co.nz for now. You should login as root, then add yourself as a user and login with that from then on and su to root. Wait until I've got the base install sussed before doing any install stuff though...

Nad 14:38, 17 Nov 2005 (NZDT)

The Pollen Wiki is the server in Thames where Milan's working, it's really for their businesses there, but if you want to experiment with the new math/chem rendering before we have the new OD server going you'll need to do it on PW, so setting up a PW:Sven was good for that. If you want to get that going on the one you're setting up, you should check my Punk.Li_Ubuntu_post-install which has all the shit I had to do to get it going,

still haven't got the electronics-schematics going which I'd quite like - then we could start a collection of useful circuits and chip-pinouts for different families of logic etc.

Nad 10:54, 17 Nov 2005 (NZDT)

There should be no need to add wikipedia - also, there's a util in the mediawiki installed dir for syncronising with the Central Interwiki Map. Also, see Wikipedia:InterWiki for more on the interwiki concept.

Nad 18:42, 16 Nov 2005 (NZDT)

Added wikipedia to the interwiki mysql table on my machine

insert into interwiki VALUES('wikipedia','http://www.wikipedia.org/w/index.php?$1',0,0);
Sven 17:59, 16 Nov 2005 (NZDT)

Watchoo talking about "windows os's"? the only windows machine is my lappie, everything else is either debian or ubuntu. The math-tex won't work on organicdesign because I need root access to install all the shit it needs. So it only works on the Pollen Wiki which I do have root access to. Also, I'll be moving organicdesign over to the new server in a day or so, so I'll have root-access then....

Nad 16:35, 16 Nov 2005 (NZDT)

I added the contents of my WikiMedia watchlist to my talk page.

Also, checkout the MediaWiki help on tex math rendering - and other stuff too - electronic schematics, chess, music, graphs etc. But it requires a lot of components to be installed on the server: latex, dvips, ghostscript, and ImageMagick. I can only install those things with root access, so I've set it up on Pollen Wiki to test it and it works :-), but won't be on organicdesign until we move to the new server (I've added it to my install shell script so you can install on your linux boxes too).

Nad 23:03, 15 Nov 2005 (NZDT)

That about-the-project article is the one at the bottom of every page (except it says about organicdesign). I can't see any problem with the recent changes..?

Nad 16:37, 15 Nov 2005 (NZDT)

Wikipedia is often pretty fucked - they have to server 2500 database request/second at peak time, and around 800 million page requests per day on average - they don't have the bucks to support it - that's the problem with client-server!

For putting shell examples in the wiki you can make them separate articles and put a shebang at the start, then it will syntax highlight and categorise into Category:BASH.

Nad 12:13, 15 Nov 2005 (NZDT)

k. Found Wikipedia to be running very slow this morning, are they distributing the project? I would imagine they would have to due to the increasing traffic demands.

Sven 11:17, 15 Nov 2005 (NZDT)

"You have messages" pop's up for a user when their discussion page is edited - on many sites, the changes move too fast to monitor, so its useful to be able to get peoples attention directly, also in this situation people can use their watchlist as their main entry point instead of recent-changes ("my watchlist" is like recent-changes but only for pages you choose to watch). That's what I do on wikipedia and wikimedia, cos their recent-changes scroll by whole screens each minute!

That linking "bug" you had is just that a link only shows up as bold if its linking to the current page.

Nad 10:23, 15 Nov 2005 (NZDT)

I found monotone when looking at the moinmoin wiki project, it had some information on CVS (or VCS) developments and its own recommendations on projects to use (http://moinmoin.wikiwikiweb.de/NewVCS). Arch also looks interesting. I got onto Plone from Robert Gentlemans website. Hes a bit of a computational statistical guru and like to use open source software rather than re-inventing the wheel.

Sven 09:49, 15 Nov 2005 (NZDT)

Those monotone and plone look like damn cool projects man - I'll have to check them out with a dedicated time-slice some time :-)

Nad 15:27, 14 Nov 2005 (NZDT)

Dealing with hierachical structures of mixed types can be an intense headache if you haven't read perlreftut - Mark's very short tutorial about references. I was reminded of it today when having trouble trying to make a hash of lists of lists for my half-nodallised sonovapeer.

Nad 22:54, 8 Nov 2005 (NZDT)

Ok, I've removed all the keywords and made \names blue

Nad 16:26, 7 Nov 2005 (NZDT)

May not need to add any of the contributed packages for the time being. Colour can be the ame as the standard packages. Can GesHi just colorize any command that has a '\' in front of it?

Sven 16:04, 7 Nov 2005 (NZDT)

Yet another markup example freddy

Sven 14:11, 7 Nov 2005 (NZDT)

Can you get a list of all the latex keywords you want? I can add another set for contributed packages - what colour should they be?

Nad 14:02, 7 Nov 2005 (NZDT)

On the subject of GeSHi highlighting for R, one article mentions that R/Splus is similar in syntax to Java, so maybe the GesHi highlighting for Java would be more appropriate. One major thing in R is that left assignment of a variable is done using "<-" e.g. a <- 1. This is a the same as a = 1 (but the arrow convension is better)

Sven 13:25, 7 Nov 2005 (NZDT)

There's a bug where a moved page's properties don't move with it - never got round to fixing it. I've started a tex-rules file in geshi, but for some reason the symbols aren't colouring, but it's getting there anyway.

Nad 11:42, 7 Nov 2005 (NZDT)

Yes, I noticed. This page by one of the original authors of [R] is interesting It looks to be very wiki like : Robert Gentleman.

  • Also when I moved the letters.tex page under my home page the syntax highlighting stopped. Any ideas?
Sven 11:16, 7 Nov 2005 (NZDT)

When you have a "+" after the double brackets of the link it embeds the content (that's an XmlWiki feature, done by the document.php transform which you can see is added to all articles since its in default-properties.xml)

  • The info on document.php is here
Nad 10:38, 7 Nov 2005 (NZDT)

Yo, Just used this page a couple of changes ago to make the non existent link to letter.tex so I could make the article. I wondered why the damn thing appeared in this page once I saved some content - doh!

Sven 10:04, 7 Nov 2005 (NZDT)

Its GeSHi (all the things we're using are listed in Software the project uses). I've already checked for anyone doing tex for geshi but didn't find anything. The XmlWiki script that actually calls the GeSHi class is geshi.php and is automatically part of all articles properties because its in default-properties.xml.

Nad 09:52, 7 Nov 2005 (NZDT)

What was the open source utility you were using that does the syntax highlighting? Im searching the web at the moment for information about highlighting both LaTeX and R

Sven 09:22, 7 Nov 2005 (NZDT)

lol @ User:Sven/Galleries/Teen/Sick/Necro/Pyro

Sven 19:02, 6 Nov 2005 (NZDT)

You can still add stuff in TeX using *.tex (or *.TeX) names for articles, it will still know to treat them as code not wiki, but there will just be no colouring yet. Also we could get some tex->html happeining so that it could render as html with layout, but edit as tex. (ie using tex as an alternative to wiki-markup).

Also, I noticed you experimenting with some article names and preceeding the article name with user:sven. This is a good way to preserve the global namespace and is used by wikipedians too. The convension that's grown is to use "/" characters like a directory structure for names like User:Sven/Galleries/Teen/Sick/Necro/Pyro for example.

Nad 13:32, 6 Nov 2005 (NZDT)

Thats too bad, will look into general syntax rules furthur.

Sven 12:52, 6 Nov 2005 (NZDT)

No TeX highlighting rules either :-(

Nad 14:48, 5 Nov 2005 (NZDT)

The best way to see if I'm online is to email :-)

  • The new version peer2006.pl will allow real-time stuff a lot better.

You the man. On the phone at the moment?

Sven 11:50, 5 Nov 2005 (NZDT)

I've added Scheme syntax support and made articles named *.R default to them. I've moved your "New Article" to Create Directories.R, and it seems to be working.

Nad 13:11, 4 Nov 2005 (NZDT)

Yo, been busy with work stuff. Been using svn a bit too. Have to catch up soon. It was Richards birthday yesterday he must be an old man by now.

Sven 18:39, 1 Nov 2005 (NZDT)

Hi - User:Zenia won't answer cos she uses her own local wiki instead, but I've passed the message of her site being down on to her, and its because she didn't pay for the hosting to carry on. Haven't seen you round for a bit, whachoo been up to?

Nad 16:22, 31 Oct 2005 (NZDT)

p.s. to do signiture like above with user-page link and timestamp do four tilde's in a row like this: ~~~~ (I use a colon :~~~~ so it goes indented on next line)


Yo - sorry I've been out of touch, I've been on an intermittent wireless connection here in Thames. I've made you part of the dev group so you have perms to edit code. But also, those main code articles peer.pl and Nodal/Shell/Perl have a link at the top of them for viewing as raw executable code.


Aw right - It's because my user-page was read only by me, so you couldn't get to my talk page from via there. I've made it readable again.


Howdy, it was just a thought, leave it at that for the moment. Just sometimes I find that you dont have permission to view something, and there sems to be no way to tell. I was traversing to your page by putting User:Nad, or User Talk:Nad in the search box, pretty intuitive.


Yo - I'm in Thames for a few days visiting Milan :-) XmlWiki's todo/bugs page is here... I'm not sure where I would put the RW permissions - do you mean on links to a page, or somewhere on the page itself?

Also - to go to my user page, just click on my name in the recent changes, then click on "Discussion" from there to go to my talk page. Or click on "Users" on the left to get to my page.


Also, you can make new pages with any name you like, the :Sven (and any : named pages) are special purpose pages. The format for linking to another page is:

[[ArticleTitle]]

if you want the link to show up with a different title than the article it links to do this:

[[ArticleTitle|LinkTitle]]

Well the main thing is, you've made it here to your user-talk page :-)

User:Sven is you own personal home page and this page (User_talk:Sven) is your personal communications page.

Bookmarks:Sven is another special article which appear in the "My Articles" list on the side bar. You had moved it to another title, so I moved it back again otherwise you wouldn't have had bookmarks functionality anymore.

I moved the article of X1186 links to X1186. The easiest way to make a new article is to simply create a link to it such as this. Notice that it's red? that means it's a link to a page that doesn't exist yet - if you click the link you'll be taken to the edit view for the new article to start creating it! don't click it yet though - have a look at the source of this page to see how things are done by clicking "Edit". Click "Article" to come back to this view (except in this particular case you click "Discussion" since this is a talk page, not a normal article)

Check out some of the help articles: [[+Help!|]]

Ok, will look at your suggestions. Its quite good to have a tinker and see what happens as Ive done already.

M