@michael@thms.uk
@michael@thms.uk avatar

michael

@michael@thms.uk

Full stack web developer currently working mostly with #PHP / #Laravel, Vanilla #Javascript and #SCSS. Love learning more about (almost) anything, but particularly #MySQL and #InfoSec. Currently learning Arabic. Husband, father of two boys, Christian.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

michael, (edited ) to mastodon
@michael@thms.uk avatar

It looks like relay.fedi.buzz is going to break once 4.2 comes out:

https://github.com/mastodon/mastodon/pull/23989

This is VERY bad news for users of small instances like myself.

I do understand the reasoning behind it, and I'm not sure there is a good alternative. But it sure feels a bit like a deja vu from the self hosted email days ...

michael, to random
@michael@thms.uk avatar

Woha, this is unexpected: in a future update mastodon will automatically turn off open registration if no mod has logged in for a week or longer:

https://github.com/mastodon/mastodon/pull/29318

This is great news, and should hopefully significantly cut down on abandoned servers being used to send spam!

(And this is in addition to also having open registrations off by default on new servers.)

Great news!

#mastoadmin #spam

michael, to infosec
@michael@thms.uk avatar

Just throwing this out there: For my free lancing I often need to share passwords or other secrets with clients. (Or they with me.)

I usually suggest Signal for that, but obviously most people don't have that.

Is there a a good (and not too pricey - I only do very few free lance projects, so only need it once every few months) password sharing option for this?

I tried 1Password shared vaults, but even that is just too complex for many of my clients.

Open to self hosted ideas, as I have a server I could install this on.

Ideally a very simple thing where both my clients can securely input passwords to share with me without having to create an account (secret link and OTP, or something like that) and I can share links with clients.

Any thoughts?

michael, to random
@michael@thms.uk avatar

Oopsie. Just back from a 1 hour downtime caused by my hard disk running out of space in the middle of the working day 🙈

Back now thanks to pg_repack. Insane how much space the indexes waste on mastodon!

michael, (edited ) to random
@michael@thms.uk avatar

PSA: It looks like mastodon.social has implemented hCAPTCHA on their signups yesterday.

So, if you have limited / suspended mastodon.social because of the spam issue, you may wish to reconsider this.

This will also likely mean that spammers will move to different instances (already seeing them targeting mastodon.world).

You may wish to consider implementing hCAPTCHA yourself to protect your own instance, and here is the relevant PR:

https://github.com/mastodon/mastodon/pull/25019

The reason I'm suggesting this, is because if you are a small/medium instance with open registrations, and spammers find and abuse your instance, I imagine that other instances will limit/suspend your instance without hesitation, given how willing some were to limit/suspend the much larger mastodon.social.

But do note this comment on the PR:

“To give some context to people seeing this: this is an emergency feature backport from Glitch SOC to help mitigating an ongoing spam wave, this feature may not make it in a next release, or with significative changes.”

Edited to add: multiple people have rightly commented on the accessibility concerns with hCaptcha: hCaptcha is really really really bad for blind and visually impaired people.

Please have a look at this excellent reply for more details:

https://dragonscave.space/@Mayana/110383119877022255

michael, to random
@michael@thms.uk avatar

@vyr I've applied your glitch-soc search PR, including this commit: https://github.com/VyrCossont/mastodon/pull/9/commits/2159ca83f7affe39f33af4f22654ced6a1182523 but I still get irrelevant search results.

What am I doing wrong?

michael, to privacy
@michael@thms.uk avatar

“The fediverse is a privacy nightmare” - A lot of good thoughts by @Bloonface

Whilst the headline may be inflammatory, the thrust of the article stands: That as soon as you publish anything on the fediverse it'll get copied to 10’s of 1,000's of servers, and is then completely and irrevocably out of your control.

Some may argue that's a feature rather than a bug (and I'd be tempted to agree to a large extent), but I wonder what proportion of the fediverse is aware - let alone understand the implications - of it.

https://blog.bloonface.com/2023/07/04/the-fediverse-is-a-privacy-nightmare/

michael, to fediverse
@michael@thms.uk avatar

I'm super happy to announce the release of v6.0.0.

The headline feature is that FediFetcher now supports pulling in context and missing posts from servers! Thank you so much, @teq for your hard work.

For more details - including upgrade instructions - see https://github.com/nanos/FediFetcher/releases/tag/v6.0.0

michael, to random
@michael@thms.uk avatar

Over the last few days I'm getting a lot of errors in my Mastodon UI.

In my web server logs I get this error a lot:

ActiveRecord::ConnectionTimeoutError (could not obtain a connection from the pool within 5.000 seconds (waited 5.000 seconds); all pooled connections were in use)

Any thoughts on how to resolve this?

michael, (edited ) to mastodon
@michael@thms.uk avatar

I just checked, and it appears that only about 1% of all 300k Mastodon users that my instance knows about currently have opted into full text search 😢

Really hoping that number will increase!

Also, does anyone know how Mastodon indexes users from non-Mastodon fediverse servers? These presumably don't have the indexable flag set. I hope Mastodon still indexes those, given that pretty much all other Fediverse software indexes all users?!

(edit: been asked a few times how i got those numbers: Two simple SQL queries: select count(*) from accounts; followed by select count(*) from accounts where indexable = true;)

michael, to programming
@michael@thms.uk avatar

I don't understand colour contrast calculations:

I got 2 buttons with red background. One with black text, the other with white.

colour contrast ratio with the black on red button is supposedly 4.81, while white on red is only 4.35 (which crucially is below the 4.5 threshold)

Yet, to my eye the white on red is much more legible than black on white.

What am I missing?

michael, to fediverse
@michael@thms.uk avatar

Question for all the #mastodev people:

For #FediFetcher I'd like to use the ActivityPub API, rather than the Mastodon API to pull replies.

For example: At the moment I'm using the api/v1/timelines/home endpoint to get all statuses in my timeline. I then attempt to get replies from the remote servers.

But the uri that mastodon returns in that response is to the Mastodon API endpoint. This is annoying, because obviously Mastodon != Fediverse, and I'd love to just go to ActivityPub, rather than implement each software separately.

Is it possible to somehow get ActivityPub endpoints for those statuses?

#Fediverse #ActivityPub #mastodonapi

michael, to mastodon
@michael@thms.uk avatar

Interesting development with regards to #mastodon.xyz: the registry suspended the domain apparently: https://twitter.com/TheKinrar/status/1676675781290872842

Wondering if Mastodon GmbH filed a trademark complaint?

Also highlights one problem with Mastodon: you cannot change the domain name of an instance. If the problem (whatever it is) isn't resolved, the instance is gone forever.

#mastoadmin

michael, to random
@michael@thms.uk avatar

I've noticed a lot of chatter about setting up Elasticsearch for Mastodon 4.2's new full text search over the last few days, including what hardware is required, how difficult is it, etc.

So I thought I’d write down my experience, including the hardware I'm running Elasticsearch on for my single user instance:

https://blog.thms.uk/2023/09/mastodon-elasticsearch?utm_source=mastodon

#mastoAdmin #singleUserInstance #FullTextSearch #Elasticsearch

michael, to fediverse
@michael@thms.uk avatar

mastodon_get_replies is now FediFetcher!

FediFetcher is a simple Python script that can help you pull missing responses from other instances into your own instance. It can also backfill profiles of new followers and followings.

It can be run as cron job, container, or even a GitHub action, meaning you don't need any infrastructure at all.

For more information check out

https://blog.thms.uk/fedifetcher?utm_source=mastodon

michael, to random
@michael@thms.uk avatar

LOL. Just had a look at one of the fediblock directories.

It appears as though my single user instance is on there, with the reason eloquently described - and I quote in full - thusly:

‘Penis’

🤣 🤣 🤣 🤣

michael, (edited ) to php
@michael@thms.uk avatar

I've just updated to 2024.1 among others because I'm excited for the new terminal.

You are supposed to be able to enable this at Settings | Tools | Terminal | Enable New Terminal, but I don't have that setting.

Am I missing something?

[Edit: Turns out this is for the new UI only]

michael, to random
@michael@thms.uk avatar

The more I’m trying to learn Arabic the more I’m becoming convinced that whoever came up with that script, did so with the express intention to mock learners.

How else can you explain that ج ح and خ all make very different sounds, whilst the sounds for ث and ط are essentially indistinguishable 🙄

michael, to random
@michael@thms.uk avatar

Hm. So, if you where to have a query that has 23 subqueries, and a total character count of 15,000 characters (excluding indentation) - you've gone mad, right?

Asking for a friend, of course 😬

michael, to random
@michael@thms.uk avatar

Can someone help me?

recently attempted to charge me $9.68, but I have no clue what for.

My Billing Overview shows $0.00 for everything, and their Support hasn’t responded.

Does anyone know how I can figure out what the charge was for?

michael, to php
@michael@thms.uk avatar

Huh. Just had a look at sleep functions in PHP, and came across this nugget in the docs for time_nanosleep().

What sort of absolute mess is this?! Can time_nanosleep() seriously return a boolean or an array?!

And then thye wonder why PHP has a bad reputation.

(Before you tell me that PHP is best, or whatever: I agree. I like PHP. But this still seems like a terrible implementation.)

michael, to random
@michael@thms.uk avatar

Yesterday we’ve had one (1) day of sunshine and warmth, after about two weeks of grey, cold misery.

Today I’ve spoken to several Brits (both online and in person) and they are all like ‘oh. Thank God it’s gonna be raining today.’

The more time I spend in the UK (and I’ve been here for over a decade now), the more I am forced to agree with Obelix: ‘they are nuts, those Brits!’ 😂

michael, to random
@michael@thms.uk avatar

Got this report for yesterday:

ThreadResolverWorker ArgumentError: wrong number of arguments (given 3, expected 2)

My hunch is that this is a Mastodon, rather than FediFetcher issue, but before I close it, I wanted to ask users of FediFetcher if you've seen this yourself?

https://github.com/nanos/FediFetcher/issues/67

michael, to infosec
@michael@thms.uk avatar

https://arstechnica.com/security/2023/09/how-google-authenticator-gave-attackers-one-companys-keys-to-the-kingdom/

Interesting conclusion:

“The most important moral of this story is that FIDO2-compliant forms of MFA are the gold standard for account security. For those sticking with TOTPs, Google Authenticator is intended to provide a happy medium between usability and security. This balance may make the app useful for individuals who want some form of MFA but also don’t want to run the risk of being locked out of accounts in the event they lose a device. For enterprises like Retool, where security is paramount and admins can manage accounts, it’s woefully inadequate.”

Something to think about 🤔

michael, (edited ) to random
@michael@thms.uk avatar

I've just had another look at my mastodon instance's web interface for the first time in a while (I usually use Ivory), and the UI changed completely.

It's much darker and ... 'boxy'.

Not sure I'm a fan of the boxed look, to be honest. Has some serious retro feel about it to me.

Are the mastodon team cooking up a big overhaul? If so, then they are off in the completely wrong direction imo.

What do you think?

(Screenshot now attached, for those whose instances are not yet on the latest version.)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • thenastyranch
  • rosin
  • everett
  • cisconetworking
  • love
  • Youngstown
  • slotface
  • Durango
  • ngwrru68w68
  • kavyap
  • tacticalgear
  • DreamBathrooms
  • mdbf
  • megavids
  • magazineikmin
  • cubers
  • modclub
  • InstantRegret
  • ethstaker
  • osvaldo12
  • GTA5RPClips
  • khanakhh
  • anitta
  • provamag3
  • normalnudes
  • tester
  • JUstTest
  • All magazines