Skip to content

{ Tag Archives } perl

Finding the dimensions of a PostScript image

If I have images in .ps or .eps format, how can I tell how big they are? i.e. how big would they print out at ‘natural’ size without any scaling?
If they have a correct bounding box defined — more likely with EPS than PS files — this bit of Perl will show you the width [...]

Also tagged ,

Simple server status monitoring with PHP and Perl

Recently, one of our web servers fell victim to an apparent DoS attack, being hammered with hundreds of simultaneous dynamic page requests, far more than it’s specced to handle. To its credit, it stayed up, although it took about five minutes to log in via ssh, and when we spotted what was happening, the load [...]

Also tagged , ,