Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Automatically deleting WordPress comments using a theme

· 350 words


The Logo for WordPress.

Let's say you want to automatically delete specific sorts of comments from your WordPress blog. For example, immediately trashing any comment that has a specific phrase "Elephant Juice" in it. You can do this by going to Settings -> Discussion → Disallowed Comment Keys. Or you can add something to your theme's functions.php file. Here's the code snippet: add_action( 'comment_post', '…

Should the WordPress scheduler use datetime-local?

· 9 comments · 600 words


The Logo for WordPress.

There's a brilliant post by WordPress about how they've optimised some of the backend code to make it more efficient. So here's a suggestion for something else which can be optimised. If you want to schedule a blog post to be published later, you have to use this WordPress control: I find it mildly annoying. I don't get why part of it is a dropdown. And the number fields don't pop up my…

Can the iPhone do that yet?

· 6 comments · 1,450 words · Viewed ~469 times


Screenshot of the iPhone homescreen showing .

While farting around online, I stumbled across this 2008 Time Capsule from Stephen Fry. In it, he discusses the state of mobile phones - diving into the problems with BlackBerry's and Apple's latest offerings. BlackBerry had released the Storm and Apple's 2nd iPhone was now 3G capable. It's quite the glimpse into what we thought the future would be like. Halfway through, he says: When the…

What will the Web be like in 20 years?

· 7 comments · 700 words · Viewed ~1,480 times


Robot faced Mark Zuckerberg is wearing a VR headset - it digs painfully into his smiling cheeks.

Way back in 2011, I contributed to an article on The Next Web called "What will the Web be like in 20 years?". Foolishly, I missed the 10 year anniversary, but let's see how we're doing against those predictions a little over halfway through. My prediction for the Web? The same speed. Faster pipes & processors – more bloated markup & JS. Well... fuck! Bang on the money there. The web is f…

WeWork - how did anyone fall for this bullshit?

· 8 comments · 750 words · Viewed ~607 times


Poster for Hulu's documentary about WeWork. The CEO stares out over a cityscape.

I've just finished watching Hulu's WeWork documentary. It is genuinely one of the funniest movies I've seen this year. Seriously, how can you watch that and not crack up? If I were the head of an investment fund, I think I probably would have fallen for Theranos. Sure, Elizabeth Holmes was a bit of a kooky Steve Jobs tribute act - but the science sounded plausible. Perhaps with due…

One month with a solar battery - real statistics

· 8 comments · 950 words · Viewed ~915 times


Graph with multiple lines. There's a spike about 6AM which is probably a kettle being boiled. Another near lunchtime which might be a microwave. The evening has a couple of hours of high use - which is probably a washing machine.

August is meant to be full of gloriously hot days. An endless parade of sunshine and drinks in the park. This year it seemed mostly grey, miserable, and prone to pissing it down at a moment's notice. We all know that solar panels' efficiency wilts in the heat, but do they get a tan work standing in the English rain? At the beginning of August we installed a 4.8kWh solar battery to supplement…