Howto: Disable image pop-ups in WordPress comments

by @edent | # # # #
An mshots popup obscuring the screen.

If you have the Akismet spam plugin for WordPress, you’ll be familiar with this problem. When your mouse pointer goes over any URL, you get a large website preview taking over parts of your screen. I asked for a way to turn this off and I’m happy to say the developers listened! Sadly, there’s no…

Continue reading →

Better Keyboard Buttons in CSS

by @edent | # # # # | 2 comments | Read ~924 times.
A pet cat typing on a computer keyboard.

Here’s a simple scrap of CSS which you can Ctrl+C and Ctrl+V kbd { border: .1em solid #aaa; border-radius: 15%; display: inline-block; padding: .1em .5em; background: linear-gradient(180deg, #fff, #fff, #fff, #ddd); user-select: none; cursor: pointer; color: #000; font-weight: bold; } kbd:hover { background: linear-gradient(0deg, #fff, #fff, #fff, #ddd); } Features Semantic use of the kbd…

Continue reading →

Semantic Dates in Wagtail Blog Posts

by @edent | # # #
The HTML5 Logo.

(Written because I couldn’t find an easy guide online.) Here’s the code (formatted for readability): <time datetime=”{{page.first_published_at|date:”c”}}”> {{page.first_published_at|date:”j F Y”}} </time> You can also use last_published_at if it is a page which has been updated. WHY?!??! Semantics. HTML5 contains the <time> element. The contents of it show up as normal running text, but the metadata…

Continue reading →

LED strips for under-bed lighting

by @edent | # # # # | 5 comments | Read ~257 times.
Lights threaded over slats.

When we moved house, we found the previous owners had installed under-cupboard lighting in the kitchen. It uses basic and cheap 12V LED strips. The strips are flexible and have glue on the back. We didn’t like them in the kitchen. So we tried them on the stairs. Trying to work out where I want…

Continue reading →

Finding your most popular Tweets

by @edent | # # # | 1 comment
The Twitter logo drawn in circles.

Twitter’s search interface has all sorts of lovely and obscure options. My three favourites are “min_retweets:”, “min_replies:”, and “min_faves:” Using those filters, you can create a search for Tweets which meet a certain threshold. For example, here are my Tweets which have been liked more than 500 times: twitter.com/search?q=from:edent min_faves:500 Here are the ones which…

Continue reading →

Configuring Pop!_OS – Keyboard lights, fonts, and more

by @edent | # # # # | 1 comment
Font selection panel.

I’ve got a new laptop which runs Linux! These are mostly notes to myself. Fonts First, from the console, install Gnome Tweaks sudo apt install gnome-tweaks Run Tweaks and select “Fonts”. You can swap fonts, boost them, and generally have a good fiddle. Increasing the scaling factor is a good way to boost the size…

Continue reading →

Fix screen tearing on rotated external monitors (Ubuntu / POP!_OS)

by @edent | # # # # # | 1 comment | Read ~105 times.
Pop up window with several login options.

I have a vertical monitor for my new Linux laptop. Because it is rotated 90 degrees, this causes problems with some graphics drivers on Linux (and Mac!). Here’s a solution I found for my Intel graphics card. Edit this file: sudo nano /etc/gdm3/custom.conf Find this line: WaylandEnable=false Change it to: #WaylandEnable=false Reboot. On Pop!_OS, there…

Continue reading →

How to take solar export readings on the Honeywell AS302P smartmeter

by @edent | # # | Read ~211 times.
Honeywell Cumulative Export display.

I can’t find these instructions anywhere online – so I hope these notes help! The AS302P SMETS2 has two buttons. I’ve labelled the top button A and the bottom button B. Press the A button once to bring up the menu. The display should light up. It should show “General”. Press the B button. This…

Continue reading →

Remove the first few lines from a string in PHP

by @edent | # # # | 1 comment
Binary code displayed on a screen.

Problem: I have a multiline string – not a file – and I want to remove the first few lines from it and keep the rest. I found this surprisingly unintuitive. So these are notes in case I want to do it again. Feel free to suggest a better way! Example Given this input: $str…

Continue reading →

Turn an old eReader into an Information Screen (Nook STR)

by @edent | # # # # # # | 12 comments | Read ~7,567 times.
Nook with a train display.

Here’s a quick tutorial for turning an old Nook into a passive display. This is an update to my 2013 post End Result An eInk screen which displays the trains I can catch from my local station. It shows the next few available trains, and whether they’re delayed. It also shows how long until the…

Continue reading →