Replies

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

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.

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

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

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)

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

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

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

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".

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.

foo, to random
@foo@fosstodon.org avatar

I trust these brands.

tomw,
@tomw@mastodon.social avatar

@foo For when you want that extra quality and reassurance. SYIDINZN: the name you can trust.

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