Pages

Wednesday, May 25, 2011

Cock Sparrer - Trouble on the Terraces - lyrics

I couldn't find 'em anywhere with Google, so I transcribed the lyrics from Cock Sparrer's "Trouble on the Terraces"  it's been a favorite of mine for many years.

For those not in the know, it's basically about football violence/soccer hooliganism/fun times - I think there is a documentary by the same name, about the same thing, but I haven't seen it and I don't know if it's related otherwise.

Here's a youtube posting that has the audio if you're interested: http://www.youtube.com/watch?v=o0YchVPQdkE

Anyway, without further ado, the lyrics:



You say you want the authorities to take action
But I don't believe you're genuinely concerned
You say you want the terraces to be closed down
But your son is one of us, so when will you learn?

Adrenaline's running high, and most got nothing to fear
It's all part of the game; it adds to the atmosphere
We got trouble on the terraces, on the terraces, on the terraces

Next time you see me running on the pitch
Don't forget I'm just the same as you
It's a split second gut reaction that is happening to me
It ain't 'cause I've got nothing else to do

Adrenaline's running high, and most got nothing to fear
It's all part of the game; it adds to the atmosphere
We got trouble on the terraces, on the terraces, on the terraces

We got trouble, riots, aggro, now
(repeat)



Tuesday, March 29, 2011

Perl script to concatenate PDF files

I hammered this together a few minutes ago because I find I often need something like this. It's a perl script that concatenates PDF files from the command line. It could be adapted pretty easily for web form input or a gui app if you wanted to badly enough.

The only prerequisites I know of are Perl and Ghostscript which should be found on virtually any modern unix-type system and possibly some Windows ones too.

I don't intend to offer support per se but let me know if you have any questions.

Cheers,

Stephen

Releasing under GPLv3 http://www.gnu.org/licenses/gpl.html.

#!/usr/bin/perl -w
# ^^ change path if necessary

# a script to concatenate PDF files. just give it PDF files as arguments, in the
# order you want them concatenated.
# cobbled together from the 'gs' command line example found at
# http://doeidoei.wordpress.com/2009/04/12/easy-way-to-concatenate-pdf-files-in-ubuntu-linux/

# NOTE: I have not tested this with any other papersize than letter!
# it does handle portrait/landscape without fuss however.

use strict;

my $cmdstr='gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf';
my $cmdargs='';

my @infiles = @ARGV;

if (scalar(@infiles)> 0){
  foreach my $file (@infiles) {
    $cmdargs .= " $file";
  }

  exec $cmdstr . $cmdargs;
} else {
  print "Syntax: $0 [input PDF file 1] ... [input PDF file n]\n";
}