Saturday
Aug172019

Seasonal variation in the numbers of Phaonia subventa

I have written a little script to help me create plots showing the seasonal variation in the numbers of various species of fly I have collected.

Most species show a large peak in numbers in late spring or early summer with none or very few in winter.  The Muscid fly Phaonia subventa is unusual in showing fewer flies in the summer than in the winter.  I had noticed that it was one of the most common woodland flies in winter (I have seen them on Christmas day morning, sunning themselves on tree trunks when the temperature was below 5C) but I hadn't realised, until I saw the above plot, that they seem to almost completely disappear during the summer months. This might be a consequence of the dry summers we have had in the south of England in the past few years.

My script is still a bit primitive (it is written in Gnu Awk!) and I intend to tidy it up and extend it (and maybe rewrite it in Rust).  But if you are interested you can find a copy in the Github repository where I store the catalog of my fly collection (https://github.com/tristrambrelstaff/flies).  The script is mplot.awk.

Thursday
Jul112019

How to make a PDF document searchable

I had a large PDF file that I wanted to be able to search quickly but it just contained images of text, not the actual text itself, so all searches in it failed.

I use Ubuntu so I reasoned that there should some solution for me available out on the Web.  There was.  This is the one I chose:

Install pdfsandwich:

sudo apt-get install pdfsandwich

Run pdfsandwich on the file you want to become searchable:

pdfsandwich test.pdf -o test-searchable.pdf -nthreads 12 -first_page 5 -last_page 290

Here I use the -nthreads option to prevent pdfsandwich from locking up my computer by using all of its 16 processors.  I also use the -first_page and -last_page options to exclude the table of contents and the index from the searchable area (these just produce unnecessary duplicate search results).  The -o option specifies the name of the output file.

The resulting file was less than a tenth the size of the original (20MB instead of 350MB) so the text and images were more grainy but they were still easily readable. And being able to search it quickly makes the document much more useful to me than the original was.

Sunday
May262019

Stag Beetle

A male stag beetle, Lucanus cervus (Coleoptera: Lucanidae).

This specimen was taken on The Warren, Caversham, UK on 2019-05-25 and was released after being photographed.

Saturday
Apr272019

Great Tit

A dead great tit, Parus major

Found on the staircase of our flats. It must have got in through one of the open windows but then panicked and crashed itself into a closed windows while trying to get out again.

Three years ago a nuthatch died in the same way.

Photos taken on 2019-04-27 in Reading, UK.

Monday
Apr012019

Sciomyzid Fly

A male Sepedon sphegea (Diptera: Sciomyzidae).  Identified using the key of Rozkosny, 1984.

Specimen taken beside the Jubilee River, near Taplow, UK on 2019-03-30.