@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, to SEO
@michael@thms.uk avatar

LOL. This is brilliant 🤣

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, to Laravel
@michael@thms.uk avatar

Apparently the way middleware is defined is changing radically in Laravel 11.

I’m not sure I like this. Seems like too much magic to me 🤔

https://dev.to/grantholle/exploring-middleware-in-laravel-11-2e10

michael, to random
@michael@thms.uk avatar

I’d also like to know as my instance occasionally runs out of memory too.

From: @uastronomer
https://mastodon.monoceros.co.za/@uastronomer/111651600117268157

michael, to fediverse
@michael@thms.uk avatar

With all the arguing about threads the one thing that actually annoys me is the current status quo, where federation is entirely one-sided: any reply just disappears into a black hole, nor can fediverse servers see replies to posts from threads.

It’s just that one post in total isolation.

I assume the answer is ‘no’ but wanted to ask anyway: does anyone know if threads has (or is planning to have) an API to at least fetch responses so it could be integrated with FediFetcher?

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

Just been reading PHP attributes in Laravel.

I must say I found this a really interesting use case of Attributes.

https://blog.oussama-mater.tech/php-attributes/

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

https://peakd.com/philosophy/@crell/2ciyfu-you-are-wrong

Excellent post by @Crell

I think he expresses a lot of things that I have held for a long time. And I believe more and more (although I might be wrong of course 😉) that people not grasping these things is a big big reason for the polarisation and partisanship of our age.

So, read the article! And pay particular attention to the four takeaways at the bottom.

michael, to CSS
@michael@thms.uk avatar

This is an excellent article by @Kilian

I’m not a big fan of summary/details generally because it’s just too inconsistent, but dialogs are great. And I didn’t actually know about input type="color" yet.

Well worth a read.

https://www.htmhell.dev/adventcalendar/2023/2/

#css #js #JavaScript #html #Frontend #Webdev #Webdevelopment

michael, to php
@michael@thms.uk avatar

I’ve been fully convinced of Value Objects for quite some time now. It’s extremely rare I use primitive values these days.

If you still need convincing, you should read this great article:

“Embracing the Value Object pattern in PHP 8.2 significantly enhances code quality, making it more robust and maintainable.”

Indeed it does!

https://dev.to/cnastasi/value-objects-in-php-8-building-a-better-code-38k8

#PHP

michael, to CSS
@michael@thms.uk avatar

Found this to be a very well written intro to media queries:

https://developer.mozilla.org/en-US/blog/getting-started-with-css-container-queries/

michael, to art
@michael@thms.uk avatar

Something else for a change: my incredibly talented wife has just released her new Christmas collection on Etsy.

You should definitely check it out, if you are into this sort of stuff:

https://mylittlechaletshop.etsy.com/?utm_source=mastodon&utm_medium=organic

michael, to random
@michael@thms.uk avatar

What is our hope in life and death?

Christ alone, Christ alone.

https://www.youtube.com/watch?v=TPT5QEDf9bA

michael, to web
@michael@thms.uk avatar

So, I've been playing with Kagi search this week, and I do quite like it:

http://kagi.com

I've been seriously fed up with Google's search recently: results full of ads and/or SEO spam, to the point that it's hard to find info.

The results in kagi search are overall good (though the map is really lacking), but it's just very expensive. I'd definitely need their $10 per month plan, and I'm not sure I could justify this, given there is free (though arguably worse) competition. 🤔

I guess I could cycle through the trial by creating a new account every week (the joys of having my own domain name) but that seems a little ridiculous, too 😆


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 Laravel
@michael@thms.uk avatar
michael, to infosec
@michael@thms.uk avatar

This whole eIDAS situation is absolutely horrific!

In short: The EU wants to force browsers to accept government appointed certificate authorities. Worse, it wants to prohibit browsers from scrutinising the security or propriety of these authorities in any way.

This will endanger the security of every web user worldwide, if it happens.

https://scotthelme.co.uk/what-the-qwac/

michael, to Laravel
@michael@thms.uk avatar

Just had my first Pull Request merged for 🎉

https://github.com/laravel/framework/pull/48925

michael, to Laravel
@michael@thms.uk avatar

Just filed my first PR for the framework, because I discovered a bug in the method that checks whether a request is a prefetch request:

https://github.com/laravel/framework/pull/48923

Any thoughts on the chance of that getting merged, and/or what I could do to improve those chances?

michael, to web
@michael@thms.uk avatar

Bit of a long shot, but has anyone seen a bot identifying itself as fidget-spinner-bot?

This bot seems to be responsible for loads of requests to our servers at work for the last few weeks, and I cannot find anything online at all.

michael, to random
@michael@thms.uk avatar

Touchscreen card devices may prevent blind customers paying https://www.bbc.co.uk/news/disability-67239870

Even as a person with good eyesight, I find these incredibly annoying! I always cover the pin pad when entering my pin, to prevent shoulder surfing, and that just doesn’t work here.

On the contrary the only way to enter your pin on these is to do it slowly and in clear view for everyone. Such a ridiculous thing!

michael, to random
@michael@thms.uk avatar

Oof. Cloudflare down is always great on Thursday night 😔

michael, to random
@michael@thms.uk avatar

Lovely email to wake up to: someone’s cracked my wife’s age old Hotmail password …

Any accounts she actually (still) uses are secured with proper random passwords (no, she hasn’t always appreciated my insistence on this - now she suddenly does 😁), but that one hasn’t been in use for many years.

Only problem is: it’s still associated with her Facebook account. Oopsie 😬

Lesson to learn: make sure you don’t use an unused email address with your still-used (social) accounts…

michael, to random
@michael@thms.uk avatar

https://arstechnica.com/security/2023/10/iphone-privacy-feature-hiding-wi-fi-macs-has-failed-to-work-for-3-years/

LOL. The iOS feature that’s supposed to hide your MAC address on WiFi has apparently never worked 🤦‍♂️🤦‍♂️🤦‍♂️

Fail Tom Hiddleston GIF

michael, to mastodon
@michael@thms.uk avatar

Automattic's Tumblr/ActivityPub integration reportedly shelved

Not particularly surprising, I suppose …

https://notes.ghed.in/posts/2023/tumblr-activitypub-integration/

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

So, today I deployed the 2nd microservice that I had split out from our monolith.

I’m a big believer in avoiding complications, so how did I know I needed microservices?

Both of these were aspects of our app that needed independent scaling from the rest of the app: while the main app scales quite predictably with user growth, these two services see huge fluctuations in usage, regularly increasing (and occasionally decreasing) 10-fold or more in a matter of hours, and without warning.

It also helped that these are logically quite self-contained, without strong dependencies on the state of the application.

Ultimately these two microservices now run on CloudFlare Workers, allowing near infinite scale, and geographic distribution, which is fantastic!

#microservice #microservices #monolith #webdevelopement #webdev #cloudflare #Cloud #

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