Posts

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

tomw, to random
@tomw@mastodon.social avatar

Who needs a Wework when you can take your laptop to the library?

tomw, to random
@tomw@mastodon.social avatar

Someone asked me how to update your website's share image on the app formerly known as Twitter.

The answer, as far as I know: you don't. As far as I can tell it now fetches images once and never re-checks. The 'card validator' that used to force a refresh went away ages ago.

(Yes I know just don't use it blah blah but people get worked up about what image their website shows there.)

tomw, to random
@tomw@mastodon.social avatar

Hearty congratulations to whoever made this status page an SPA.

tomw, to CSS
@tomw@mastodon.social avatar

OK, which wise guy made it so that background-size: cover is order-dependent, ie. can't be specified before the main background declaration?

Sirs0ri,
@Sirs0ri@corteximplant.com avatar

@tomw background: ...; is a shortcut for pretty much all the background related properties, and setting it implicitly sets all its included values.

So for example background: red; implicitly also sets background-size to its default value of auto. Since the declarations inside of a single rule are processed top -> bottom, that implicitly set background-size would overwrite a previously set explicit background size.

This goes for all shorthands as fas as I know; the following example would result in a currentColor colored border, not a red one:

border-color: red;<br></br>border: 3px solid;<br></br>
tomw,
@tomw@mastodon.social avatar

@keithjgrant Yeah, I see. You'd think I'd run into this more often! I suppose I don't tend to use the shorthand properties tbh. But in this case I was setting a colour and an image so I used it.

tomw, to random
@tomw@mastodon.social avatar

The use of screenshots as a universal data interchange mechanism is one of those things that makes me ashamed on behalf of all software developers ever

tomw, to random
@tomw@mastodon.social avatar

"The Department for Work and Pensions is seeking new powers to require banks to trawl the accounts of millions of people who receive benefits... It is likely to use artificial intelligence to flag activity considered suspicious"

What could possibly go wrong?

https://www.theguardian.com/society/2024/mar/04/ministers-urged-to-scrap-plans-for-surveillance-of-benefit-claimants-bank-accounts

abreaction,
@abreaction@mastodon.world avatar

@tomw

Lots, but I think they'll find an assload of fraud.

tomw, to random
@tomw@mastodon.social avatar

I feel like if anyone will know it'll be someone here:

What is this connector?

It's USB at one end and this thing at the other.

tomw,
@tomw@mastodon.social avatar

@CFDS hahaha

I'm going to plead toothbrush on this one! We have a bunch of kids' toothbrushes.

tomw,
@tomw@mastodon.social avatar

@CFDS You were right - I found the matching toothbrush! See the pic of the cable there. Thanks for your help.

tomw, to random
@tomw@mastodon.social avatar

I used to wonder about the "missing generation" at (mostly left wing) meetings, conferences etc, where it felt like everyone in attendance was either under 30 or over 50.

Anyway, now I know the answer is "having kids". Duh. Could have figured that one out really.

Susan_calvin,
@Susan_calvin@mastodon.social avatar

@tomw childcare is a fundamental issue of equality and equity and more people need to recognise that.

sarajw,
@sarajw@front-end.social avatar

@tomw yeeeeep. I am exactly in that phase right now.

tomw, to random
@tomw@mastodon.social avatar

It's always funny to me when people don't realise that their internal labels for things will show like this

(Quite a mild example, I've seen worse!)

tomw,
@tomw@mastodon.social avatar

Sub-genre: people who do not realise that their Mailchimp archives are public and include all the variants of emails they send to different list segments

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

"Hello it's me, your friend the package manager"

Me: "update the-thing"

"Ohohoho I think you mean upgrade! Not update! Ohoho even though this error message shows that I clearly understood the intent anyway! Use the right word fool!"

johncarneyau,
@johncarneyau@mastodon.social avatar

@tomw “Hello, I am Python and you are in my REPL.”

Me: “exit”

“Oh dear. You meant “exit()” didn’t you? When will you people ever learn? 🙄 Ctrl+D also works. OBVIOUSLY.”

tomw, to random
@tomw@mastodon.social avatar

Sometimes people ask me "when is the best time of day to send an email?"

And I tell them, well, no one really knows, studies disagree, etc.

But I schedule all my list emails for 8.15am. It just feels right.

tomw, to random
@tomw@mastodon.social avatar

People say success is about hard work etc but I waited for (checks) about two months to solve a hard problem and an easier answer just fell into my lap

tomw, to CSS
@tomw@mastodon.social avatar

I always loved the "CSS Zen Garden" approach to – that is, keep your HTML the same and write a new stylesheet for an entirely new design. It doesn't always quite work out but it's what I always aim for.

I realised that part of my problem with Tailwind is that it is the polar opposite of that ideal. You can't zen-garden a Tailwind site at all. It is the maximum anti-zen approach.

tomw, to random
@tomw@mastodon.social avatar

I write opinionated software and the primary opinion contained within is "Javascript sux"

tomw,
@tomw@mastodon.social avatar

I know Javascript and yet every bit I have learned has been against my will

tomw, to random
@tomw@mastodon.social avatar

XMLHttpRequest

  • works everywhere
  • amusingly nostalgic name
  • takes 1 minute to implement

fetch

  • have to visit caniuse again
  • also I forgot how to use it
  • screw this
tomw,
@tomw@mastodon.social avatar

A few times I've written an if/then with fetch used if it is supported and XHR as fallback but then realised that is basically pointless, since XHR still works

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