@tomw@mastodon.social
@tomw@mastodon.social avatar

tomw

@tomw@mastodon.social

Web developer. Sometimes designer. I like code, words and mass movements. Jag lär mig #svenska.

Interested in/may post about #html #css #wordpress #openweb #decentralisation #socialism #protest

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

tomw, to random
@tomw@mastodon.social avatar

Someone needs to invent something worse than screens so that all the people who rabbit on about "screens" being bad will embrace them as "the wholesome alternative to (new bad thing)".

This is basically what has happened with kids' comics at this point.

tomw,
@tomw@mastodon.social avatar

Luckily this is one of the times when I'm pretty sure Silicon Valley is on the case

kev, to random
@kev@fosstodon.org avatar

I recently wrote about how Mastodon is DDoSing me every time I post a link to this site. I've managed to fix the problem...I think.

https://kevquirk.com/i-stopped-mastodon-ddosing-me-i-think

tomw,
@tomw@mastodon.social avatar

@kev Yep, a caching plugin fixes it as you discovered. I'm not familiar with your CMS but for the more common case of Wordpress, installing WP Super Cache (or similar) fixes the problem at a stroke.

tomw, to random
@tomw@mastodon.social avatar

I just used jQuery in a new project and you know what, I don't even feel bad. I just needed to hide all the elements with one class and show all the elements with a different class. A one-liner in jQuery and not in anything else!

tomw,
@tomw@mastodon.social avatar

(It seems like it would be easy in vanilla JS but you have to do some messy iteration as far as I can tell)

tomw,
@tomw@mastodon.social avatar

Name a better API than

$('.myclass').hide();

(Which hides not just one element, but all with that class.)

I'll wait.

tomw,
@tomw@mastodon.social avatar

Everyone turned against jQuery because it was a "big" dependency, which it kind of was... 10 years ago.

Nowadays people are importing 100x more JS without a second thought. jQuery is snappy compared to 'modern' websites.

tomw, to wordpress
@tomw@mastodon.social avatar

I think @dbushell is correct that modern , at least the way they want you to do it, is a "CSS-in-JSON-in-HTML-comments-in-a-PHP-file" mess.

Luckily you can just ignore full site editing and the not-quite-React nonsense and continue to happily write themes in PHP/HTML/CSS.

https://dbushell.com/2024/05/07/modern-wordpress-themes-yikes/

datarama, to random
@datarama@hachyderm.io avatar

Where do people who self-host their websites, mastodon instances etc. actually host things these days?

(Hetzner are villains now, and so are DigitalOcean I gather?)

tomw,
@tomw@mastodon.social avatar

@datarama If you move web hosts every time a web host does something bad, you'll be moving web hosts every day

infobeautiful, to random
@infobeautiful@vis.social avatar
tomw,
@tomw@mastodon.social avatar

@infobeautiful This is why if you're ever trying to guess a padlock code, you should start at around 1950 and keep incrementing by 1

mrpjevans, to random
@mrpjevans@mastodon.social avatar

One for fellow software devs out there.

I thought 'Oh, a silly grammar cock-up that makes for a fun local news story'. Then I read the first line. I won't spoil the surprise but maybe make sure there's no-one close when you yell 'OH FOR FU...'

https://www.bbc.co.uk/news/uk-england-york-north-yorkshire-68942321

tomw,
@tomw@mastodon.social avatar

@mrpjevans St Mary€™s Walk, I know it well

tomw, to random
@tomw@mastodon.social avatar

ncrs yr typng spd by lvng t ll th vwls

tomw,
@tomw@mastodon.social avatar

fllw fr mr lf hcks

tomw,
@tomw@mastodon.social avatar

@mahryekuh You got it! (The first one)

tomw, to random
@tomw@mastodon.social avatar

Every security expert ever: "Do not use incrementing ID numbers"

Every Shopify-based shop: "Thanks for your order # 1201"

tomw,
@tomw@mastodon.social avatar

I've also not followed this rule in the past because it is Too Annoying in most cases.

But I felt kind of bad about it. Clearly they don't, so whatever.

tomw,
@tomw@mastodon.social avatar

@flakess True - unless they deliberately change the numbers sometimes, it does leak all-time total and rough rate

davepolaschek, to random
@davepolaschek@writing.exchange avatar

I saw the fuss about the “Don’t link to our website” people yesterday, and didn’t comment much until this morning, because I hadn’t realized just how crap-laden their page was (my ad-blocker did its job). My initial reaction was that they kept talking about “the mastodon devs should fix this” but isn’t part of the deal with open source (which mastodon is, right?) that if you see a problem, you can go fix it yourself which they didn’t seem to have any interest in. Open source much, guys?

tomw,
@tomw@mastodon.social avatar

@davepolaschek I think they are one of those crapola sites that started as a social media page and then set up a website. It does seem a very self-imposed web performance issue

ifixcoinops, to random
@ifixcoinops@retro.social avatar

🦆🐰🐺🐇🐭🐨🐴 we're all gonna visit 🐧's site at once to make a link preview
🦝 ooo, you shouldn't do that
🐧 I'm going to serve each of you six whole damn megabytes
🦝 ooo I've got another shouldn't just for you
🐧 maybe I should post about why is my site so slow
🦝 furtling for crumbs at the bottom of the Shouldn't Bag ooooo
🦊🦅🐗🐫 let's post about how none of this is actually a problem for anyone
🦝 turning the Shouldn't bag upside down and shaking it oh god hang on one at a time ONE at a TIME

tomw,
@tomw@mastodon.social avatar

@ifixcoinops Going to borrow this post format for future use

tomw, to random
@tomw@mastodon.social avatar

If a few hundred simultaneous requests can bring down your website, don't moan about Mastodon instances for sending them. Fix your website.

This doesn't need to be a big job – for most servers it's a couple of config lines, plus for Wordpress or similar you'll likely need caching.

It will prepare you for the day when you publish something that gets a lot of (genuine) traffic.

This level of traffic is not a "distributed denial of service", it is a "small-to-medium-sized request for service".

tomw,
@tomw@mastodon.social avatar

I do have some sympathy if you're just out here trying to run a little website, but honestly none if you claim in any way to be a person who knows anything about software, for example the type of person who might use the term "DDoS".

gamingonlinux, (edited ) to random
@gamingonlinux@mastodon.social avatar

I want to do a test on how much traffic and resources the Mastodon embed takes on my server, so boost this plz

Edit: all done, you can stop sharing now lol

https://www.gamingonlinux.com/2024/05/steam-deck-most-played-for-april-2024-has-plenty-of-fallout/

tomw,
@tomw@mastodon.social avatar

@gamingonlinux This is because you are not running your website on a potato

tomw, to random
@tomw@mastodon.social avatar

Stop releasing "new web browsers" that are just Chromium.

Stop releasing "new search engines" that are just Bing.

What a colossal waste of time.

tomw, to random
@tomw@mastodon.social avatar

It's strange to see people on here defending Tiktok, the most obvious Trojan Horse since 1000BC.

The main defence seems to be that Facebook also sent us a horse full of soldiers. Which is true. So we... just have to accept horses full of soldiers now? Out of a sense of fairness? I don't see how that follows.

yvanspijk, to random
@yvanspijk@toot.community avatar

The word 'bairn' (child), which is used in Scots, Northern and Scottish English, is closely related to 'born' and 'to bear'.

These words all come from a root meaning "to carry".

When a baby is born it's been carried to term.
The infant is then carried around.

Zoom in for more:

tomw,
@tomw@mastodon.social avatar

@yvanspijk It was interesting as a (British) English speaker to learn that child in Swedish is "barn" because you do immediately make the link to Scots "bairn". There is something a touch Scandinavian about the whole sound of Scots.

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