Mac ads, Spider-man 3, APEC annoyances

  • Most of the Mac ads are a bit so-so, with the counsellor and the confirm-or-deny one probably being the best. But they are just begging for a comic response like this.
  • Saw Spiderman 3 on Monday. Primary plot themes: forgiveness; wrestling with your internal demons; everyone has a choice; being self-absorbed; revenge; father-child relationship. I enjoyed it, but thought Spiderman 2 was a better film, with its central plot theme of balancing personal life versus the greater good. Oh, and Monday night is my new cinema night – we were 2 of only 8 people in a 420 seat theatre – love it!
  • As part of the APEC summit in September:
    • large parts of Sydney’s CBD will be sealed off (causing traffic gridlock)
    • the mobile phone coverage in the city may be partially jammed (apparently to stop people bombing George Bush via text message)
    • three inner-city train stations will be closed
    • the police have just been given extraordinary stop-and-search powers and the power to incarcerate “suspicious” people without charge until the conference is over (yet another strike against due-process)
    • and no doubt people protesting globalisation will be tempted to run amuck like lunatics smashing windows and burning things

    … Gee, I can hardly wait! Some local politicians have been heard to question why APEC even needs to be held in Sydney at all – couldn’t it be in Canberra instead? I’m inclined to agree; the whole reason Canberra even exists is because 100 years ago, Sydney and Melbourne squabbled like little children over which of them should be the nation’s capital – and the compromise solution was that nobody should be happy, and that a new artificial capital city should be build, at significant taxpayer expense, in the middle of nowhere, half-way between the two cities, thus pissing off everyone equally (seriously – you can’t make stuff like this up). Now, if there are any benefits to my tax dollars subsidising an artificial capital in the middle of nowhere, surely hosting conferences that nobody normal wants should be one of those benefits? If not, then I just have to ask: what the hell is the point of Canberra? … Thus far, the one and only redeeming factor to APEC is that Friday the 7th September has been declared a public holiday – Yay!

Posted in pov

Wikipedia FS, plus quick steps for setting up

Wikipedia FS allows you to treat MediaWiki articles like files on a Linux system. You can view the wiki text, and edit the wiki text, all using your standard editors and command-line tools.

Steps for setting up

If you want to have a quick play with Wikipedia FS, here are the series of steps I used today on an Ubuntu 6.04 system to get it installed from scratch; Most of these you can probably cut-and-paste directly onto a test machine, and should hopefully work on any modern Ubuntu or Debian system:

# Load the FUSE module:
modprobe fuse

# Install the FUSE libs:
apt-get install libfuse-dev libfuse2

# Get, build, and install the python-fuse bindings:
cd /tmp
mkdir python-fuse
cd python-fuse/
bunzip2 python-fuse-2.5.tar.bz2
tar xf python-fuse-2.5.tar
cd python-fuse-2.5
apt-get install python-dev
python build
python install

# Get, build, and install WikipediaFS
cd /tmp
mkdir wikipediafs
cd wikipediafs/
tar xfz wikipediafs-0.2.tar.gz
cd wikipediafs-0.2
python install

# Install the “fusermount” program (if not installed):
# First “nano /etc/apt/sources.list”, and uncomment the line to enable installing from universe, e.g. uncomment the line like this: “deb dapper universe”
apt-get update
apt-get install fuse-utils

# Mount something:
mkdir ~/wfs/
mount.wikipediafs ~/wfs/

# The above line will create a default configuration file. Edit this now:
nano ~/.wikipediafs/config.xml
# You may want to create a throwaway login on the Wikipedia for testing wikipediaFS now. This
# will allow you to edit articles. Or you can use your main account instead of a test account,
# it’s up to you – but I preferred to set up a separate test account. Either way, keep note of your
# account details & password for the <site> block below.
# Now, uncomment the example FR Wikipedia site, and change to the English site. For example, the <site> block should look something like this:
# — START —
# —– END —–

# Then unmount and remount the filesystem to ensure the above gets applied:
fusermount -u ~/wfs/
mount.wikipediafs ~/wfs/

Using it

# Can now use the filesystem. For example:
cat ~/wfs/wikipedia-en/Japan | less
# This should show the text of the Japan article.

# See what’s in the sandbox:
cat ~/wfs/wikipedia-en/Wikipedia:Sandbox

# Now edit the sandbox:
nano ~/wfs/wikipedia-en/Wikipedia:Sandbox

# Change some stuff, save, wait about 10 seconds for the save to complete, and (fingers crossed) see if the changes worked.

Probably not production ready

I have to emphasise here that WikipediaFS does seem a little flaky. Sometimes it works, and sometimes it doesn’t. In particular, I wanted to reset the Wikipedia’s sandbox after playing with it from this wiki text:

<!– Hello! Feel free to try your formatting and editing skills below this line. As this page is for editing experiments, this page will automatically be cleaned every 12 hours. –>

To this wiki text:

{{Please leave this line alone (sandbox talk heading)}}
<!– Hello! Feel free to try your formatting and editing skills below this line. As this page is for editing experiments, this page will automatically be cleaned every 12 hours. –>

I.e. a one-line change. Simple, you say? … well, sorry, but you’d be wrong! In particular there seems to be something about “}}” and the character before it that caused my WikipediaFS installation to behave very strangely. It would look like an edit had saved successfully, but when you went back into editing the file, all the changes you made would be lost:

Save which VI thinks has succeeded, but which actually has failed.

No indication that the above save has failed, but actually it has.

So, I tried breaking the above change down into smaller and smaller pieces, until the save worked. Here are the pieces that I could get to work:

  1. Adding “{{Please leave this line alone (sandbox talk heading)” (note no closing “}}”, because it wouldn’t save successfully with that included)
  2. Deleting “{{“
  3. Deleting “t”
  4. Deleting “es”
  5. Deleting the newline
  6. At that stage, I simply could not successfully delete the final “t”, no matter want I did. Eventually I gave up doing this with Wikipedia FS, and deleted the “t” using my normal account and web browser.

So, although WikipediaFS is fun to play with, and is certainly an interesting idea, I do have to caution you that WikipediaFS may sometimes exhibit dataloss behaviour, and so in its current form you might not want to use it as your main editing method.

MediaWiki 1.10 out, next release thought to be start of July

MediaWiki 1.10 has been released – yay! From a brief email exchange with Brion, the release manager, the next release is currently planned for the start of July, so as to make up ground for the longer than normal 1.10 release cycle. This means that instead of the usual 3 months between releases, this time you may have around 1 month and 20 days (nearly half the usual time). So, if you wanted to integrate anything largish into the next release (MS SQL support could fall into this category, as could the rev_deleted work), starting sooner rather than later could be a good idea.