IT

Atril (evince, document viewer) default directory for Save As

For the XFCE desktop environment Atril is the default PDF viewer and I also use it to open any PDF files from Firefox. It is a great lightweight document viewer which does what I need most of the time. One exception is when after opening a PDF file from Firefox I decide to keep the file and select File Save As. Atril insists on saving the file in $HOME/Documents, which is practically never the directory I want to use…

Continue reading Atril (evince, document viewer) default directory for Save As

Disable annoying XFCE automatic maximise window feature

In XFCE when you move a window around and it gets close to the top edge of the screen it suddenly jumps to maximised size – this is never what I want and so I find this feature really annoying.

The setting where this feature can be turned off is hidden in a somewhat counter intuitive location:

Yes, the setting is called ‘Accessibility – Automatically tile …’!

Fix for packet loss and latency problems with Virgin Media cable connections

About ten days ago my network connection with Virgin Media started to play up. I was experiencing significant packet loss, at times in excess of 50%, and increased latency times with peaks at more than 100ms.

Continue reading Fix for packet loss and latency problems with Virgin Media cable connections

Recovery of scanned PDF corrupted by email transfer

Occasionally when my scanner is emailing me a PDF it gets corrupted along the way. Most of the time the individual scanned images in the PDF are either perfectly valid or at least can viewed, even though the PDF viewer refuses to open the corrupt PDF file.

The bash script below will extract the images and then combine them again into a valid new PDF file.

Continue reading Recovery of scanned PDF corrupted by email transfer

Certwatch SSL certificate expiry warning

If you have just received an e-mail similar to the one below, read on.

From: root@your.domain.org To: sysadmin@your.domain.org Subject: The certificate for server.your.domain.org will expire in 13 days Date: yesterday (BST) ################# SSL Certificate Warning ################ Certificate for hostname ‘sws.hlan.laczik.org’, in file (or by nickname): /etc/pki/tls/certs/localhost.crt The certificate needs to be renewed; this can be done using the ‘genkey’ program. Browsers will not be able to correctly connect to this web site using SSL until the certificate is renewed. ########################################################## Generated by certwatch(1)
Continue reading Certwatch SSL certificate expiry warning

Special character mangling in WordPress and SyntaxHighlighter

The SyntaxHighlighter WordPress plug-in is used to display code ‘as is’; unfortunately WordPress again is too clever for its own good and mangles special characters like & and ” even before the text gets to the SyntaxHighlighter blocks in the Block Editor.

The solution is to add a filter function in your custom functions.php file:

Continue reading Special character mangling in WordPress and SyntaxHighlighter

Touchscreen calibration

I found that I use my laptop’s touch screen more frequently – it is particularly useful for image editing. However, when I work in my (home) office I also use a multi-screen set-up with three monitors. The problem is that the touch region of the laptop screen automatically gets scaled to the overall size of my screen, which spans multiple monitors.

Continue reading Touchscreen calibration