Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Posting Untappd Checkins to Mastodon (and other services)

· 2 comments · 700 words · Viewed ~210 times


HTML source code of the page.

I'm a big fan of Untappd. It's a social drinking app which lets you check in to a beer and rate it. Look, we all need hobbies, mine is drinking cider. You can see a list of everything I've drunk over the 13 last years. Nearly 900 different pints! After checking in, the app automatically posts to Twitter. But who wants to prop up Alan's failing empire? Not me! So here's some quick code to…

Naming things is hard - DNS for the Federated Web

· 5 comments · 500 words · Viewed ~365 times


The multicoloured interlocking lines of the Fediverse logo.

How should I design my personal DNS for all the cool new Federated Services and IndieWeb protocols? Way back in the early 2000s, I started this website - shkspr.mobi. A few years later, I added a blog. I could have used the main domain, or created a subdomain like blog.shkspr.mobi. In the end, I chose a subdirectory of shkspr.mobi/blog I don't know if that was the right choice back then, but…

How much decentralisation is too much?

· 22 comments · 1,000 words · Viewed ~4,089 times


The Mastodon logo. It sort of looks like a smiling elephant.

Twitter's over, my dudes! And now everyone is on Mastodon! But Mastodon isn't a site, it is a federated network running an interoperable protocol! Yay for ActivityPub! Anyway, that means there isn't one Mastodon website. There are many. There is only one Twitter. There is only one Facebook. There is only one Instagram. If you want to interact with Twitter/FB/Insta then you have to do it on…

The ethics of syndicating comments using WebMentions

· 23 comments · 700 words · Viewed ~546 times


The WebMention logo is a stylised letter W with an arrow at the end.

This blog uses WebMention technology. If you write an article on your website and mention one of my blog posts, I get a notification. That notification can then be published as a comment. It usually looks something like this: This means readers of my post can see where it has been mentioned around the web. They can read your article after reading mine. Nice! I've also set up a "bridge"…

A Quick Guide to Filters on Mastodon

· 4 comments · 450 words · Viewed ~1,121 times


The settings page with lots of options.

I do not care for the game of Rugby. After many wet and cold days on the school sports field, I had any latent enthusiasm for it beaten out of me. There is nothing you or anyone else can say which will convince me to take an interest in it. You may feel the same way about a specific sport, or the Great British Bake Off, or Linux. That's fine. We're all different. This can be a problem on…

WebMentions, Privacy, and DDoS - Oh My!

· 16 comments · 700 words · Viewed ~421 times


Crappy line drawing explaining the above.

Mastodon - the distributed social network - has two interesting challenges when it comes to how users share links. I'd like to discuss those issues and suggest a possible way forward. When you click on a link on my website which takes you to another website, your browser sends a Referer. This says to the other site "Hey, I came here using a link on shkspr.mobi". This is useful because it lets…

Getting Started with Mastodon's Conversations API

· 1 comment · 1,550 words · Viewed ~1,288 times


A threaded conversation. You can see the order in which people have replied to each other - and what posts they are referencing.

The social network service "Mastodon" allows people to publish posts. People can reply to those posts. Other people can reply to those replies - and so on. What does that look like in the API? Here's a quick guide to the concepts you need to know - and some code to help you visualise conversations. When you scroll through the website, you normally see a list of replies. It looks like this: …

Twitter's archive doesn't have alt text - but Mastodon's does!

· 2 comments · 400 words


The Twitter logo drawn in circles.

Because I don't trust Alan, the Hyperprat who now runs Twitter, I decided to download my Twitter archive before setting my account to dormant. About a decade ago, I wrote about how the Twitter archive works and where it is deficient. Things have got better, but there are still annoying limitations. For example, Hannah Kolbeck - founder of the Alt Text Reminder Bot recently pointed out that…

How to search Mastodon by date & time

· 7 comments · 1,150 words · Viewed ~1,641 times


The Mastodon logo. It sort of looks like a smiling elephant.

Two years ago to the day, I built Twistory - a service for seeing what you posted on Twitter on this day in previous years. If you've ever used Facebook, you'll know how it is supposed to work. You see posts which show that exactly 5 years ago you were starting a new job, 6 years ago you were at a wedding, etc. The Twitter version never really worked properly because the Twitter API doesn't…

Better sharing of WordPress posts to Mastodon

· 3 comments · 300 words · Viewed ~778 times


The Mastodon logo. It sort of looks like a smiling elephant.

WordPress's Jetpack plugin allows you to easily syndicate your blog to Twitter, LinkedIn, Tumblr, Email, and a few other services. But there's no native way to publish directly to your Mastodon feed. This is a guide to how I got my blog to publish every new post to Mastodon with a nicely formatted preview. This uses Jan's "Share on Mastodon" plugin which you'll need to install and configure. …

Create a "Share To Mastodon" Button for WordPress

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


A WordPress Popup.

Everyone is decamping from Twitter to Mastodon! The great thing about the Federated Internet (hereafter the "Fediverse") is that it is distributed. The bad thing is… it is distributed! What do I mean by that? Here's an example of the problems with decentralised systems. If I want to create a link on a website which will share text to Twitter, I just create a URl which points to: t…

Easy guide to building Mastodon bots

· 22 comments · 650 words · Viewed ~8,651 times


API keys.

Twitter is dead! Long live Mastodon! I've written lots of 'bots for Twitter - and been part of their developer outreach programme. Lots of us have politely requested improvements to the bot experience on Twitter, but to no avail. So, today I'm going to show you how to quickly and easily write your first Mastodon-bot. Bots In Spaaaaaaace Step 1 - you need to set up a new account for your bot. …