Author Archives: admin

Festival Midpoint

It’s the evening of the fifth film festival day as I write this, and here are my (technical) reflections this far:

  • Swedish short films are still bad, generally speaking. The technical quality and craftsmanship is poor, to put it kindly.
  • Come to think of it, Swedish feature-length films are not much better.
  • Finland, on the other hand, still outputs feature films to very high technical standards. The images are gorgeous and the sound mixes precise and crisp. It is obvious that their people know what they are doing.
  • If you disregard their independent productions, American films tend to look surprisingly bland on screen. Their catering budgets equal a minor third world country’s, but the images are featureless and boring. It is as if they had tried (and succeeded) to replicate the increasingly poor multiple generation 35mm prints of the last few years before the media died.
  • Digital cinema is here to stay. Unfortunately. I will not screen a single new 35mm feature this year. Not one. Can you imagine how sad this makes me feel?

I will probably post more comments later, at some point.

How to Read SPL Files

I learned how to recover files from failed printer queues today. The printer in question, a HP Laserjet, had been offline for two weeks at least but Windows 7 had happily added to the queue in the meantime, never bothering to tell the user – my wife – that it had somehow managed to disconnect the printer from its local network. The other computers in the household – a couple of Macs and Linux boxes – had no issues.

The observant reader might, of course, ask the obvious question: how come it took her two weeks to notice? It is a good question, with the answer being that in this household, things get printed out and then forgotten. The printer is in our basement and apparently it’s easier to think “I’ll grab it later” than to make sure the printout is OK. In other words, most of the printouts really aren’t all that important.

This time around, she had printed out a receipt for my son’s online purchases for the up and coming film festival. Several shows were at stake; he had spent a lot of money. The receipt was needed because there was no confirmation email in my son’s inbox (he had probably entered the wrong email address) and the box office, of course, requires some sort of proof of purchase before handing out the physical tickets. All this brings us neatly back to the printer queue with two dozen files in it, none of which was any closer to reaching the printer today than two weeks ago. The printer tray was empty.

Panic ensued and I was enlisted to see what could be done. I found the printer spool in Windows\System32 and was soon able to locate the right date and the prime candidate file, a Windows SPL file, that is, a file in Windows printer spool format. A quick glance in a text editor confirmed that it was indeed a receipt, but how should one read an SPL file? Or would it be better to troubleshoot Windows 7 for printer connectivity.

The latter, I knew, was almost guaranteed to require a reinstall of the printer drivers, most likely resulting in a deleted queue and I wouldn’t be anywhere closer to a solution.

The former, however, turned out to be easy. All I had to do was download something called SPLView, a printer spool file reader, open the SPL file in the program and print it out from there. Once I had reinstalled the drivers, that is.

Feeling Like A (Real) Programmer

I’ve spent most of tonight writing an XQuery script that reads stuff from a linkbase I’m using to keep track of resources in eXist. It’s not much yet, just a couple of queries to get resource URIs based on various conditions, but it strikes me that doing an extended XLink implementation in eXist really shouldn’t be that hard. Even by a non-programmer such as yours truly.

Updating an eXist-DB System

We’re doing a major overhaul on an eXist-DB system we built for the Swedish Federation of Farmers. There’s a bit of everything in this one. There’s XProc running nightly conversions and on-demand publishing with FO, an oXygen editing environment based on DocBook, and XForms and XQuery for various administrative tasks. It’s a pretty cool system already, and now we’re making it better.

Looking forward to this one.

Harder Than I Thought

Getting rid of this ftp problem (see my previous post about updating WordPress) was harder than I thought. The answer was right in front of me, though. IF I had bothered to read the readme file rather than abusing Google, that is.

  1. Make sure that your wp-content folder and its contents use www-data:www-data for <user>:<group>.
  2. Copy the actual plugins and themes from /usr/share/wordpress/wpcontents to your wp-content rather than using the symlinks.
  3. Add this to your WP config file in /etc/wordpress:
    define( ‘FS_METHOD’, ‘direct’ );

This is a LOT better than using ftp or uploading plugins and themes manually.

My New Site

Yesterday I got myself a shiny new low-end VPS at VPSDime to host my sgmlguru.org site. For now, I’ve installed WordPress (to which I am considering moving the blog you’re reading now, if it all pans out) and maybe some other stuff. We’ll see.