lunedì 31 gennaio 2011

Simile timeline inside mediawiki

Since I do not have enough (interesting) work to do, I tried to incorporate the fancy simile timeline widget into a brand new mediawiki 1.16.1 and...

after some googling and some js alert stating

Failed to derive URL prefix for Timeline API code files


I managed to have it working...
And editable wiki a page contains data!

a remainder for myself and a tip for my readers:

* use Extension HTMLets
and
* use local js (trying to get scripts from MIT website raises that nasty error)

voilà

here a snapshot

giovedì 27 gennaio 2011

OpenOffice and non-greedy regex

Today I discovered with a mix of horror and microsoft-feeling that OpenOffice 3.2 has a reduced version of regex and that therefore the ? don't produces non-greedy regex expressions...

Here seems to be a workaround

Find

<([:alpha:]+)[^>]*>([^<]*)


Replace:

$2