@lewis@social.lol avatar

lewis

@lewis@social.lol

Senior software engineer, cyclist, film lover, sci-fi and horror reader, and a Dad

Substitutes obsession with bikes for a personality.

Harmful to aquatic life. Dispose responsibly.

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

lewis, to random
@lewis@social.lol avatar

📝 New post: Adding some slashpages

Inspired by the release of slashpages.net, I've added a couple to my blog

🔗 https://lewisdale.dev/post/adding-some-slashpages/

afilina, to random
@afilina@phpc.social avatar

I need your advice on testing React. I want to mock API responses, but without using a complex Docker setup. Ideally, a way to simply say what fetch should return. Then I can test that the UI correctly responds to every scenario provided by the API contract. Was thinking Jest.

lewis,
@lewis@social.lol avatar

@afilina I've used this before: https://mswjs.io/docs/integrations/node/

It's a bit fiddly to get setup initially, but it does work fairly well.

The other way I've done it is to have the calling function/class take a fetchFn, which defaults to native fetch, but for tests I can pass a mocked function in instead

robb, to random
@robb@social.lol avatar

I'm so exhausted by various self-hosted projects that say "It's easy to host on {Netlify|Vercel|CloudFlare}" with no thought about what happens when those companies no longer offer a free tier, get too expensive, or you just want to move off of them. One specific host as part of the infrastructure is a terrible idea.

Do you know what's nice and easy to install on a server and not locked to one vendor? PHP. https://rknight.me/notes/202405211209/

lewis,
@lewis@social.lol avatar

@robb I didn't even realise people wrote PHP anymore

🎣

lewis, to random
@lewis@social.lol avatar

📝 New post: My favourite albums

It's Saturday, so let's take a break from Golang to hear a rundown of my 5 favourite albums

🔗 https://lewisdale.dev/post/my-favourite-albums/

robb, to random
@robb@social.lol avatar
lewis,
@lewis@social.lol avatar

@robb The good news is that it does eventually slow down

The bad news is that by that point Baby Knight will probably be starting school & you get a whole new virus soup to enjoy

lewis, to random
@lewis@social.lol avatar
lewis,
@lewis@social.lol avatar

@sarajw I'm fine thanks, a couple of scrapes and bruises but nothing too serious! Will be avoiding that bridge from now on 😅

lewis, to cycling
@lewis@social.lol avatar

📝 New post: Macclesfield Bikeathon

Just some thoughts about finishing the Macclesfield Bikeathon yesterday

🔗 https://lewisdale.dev/post/macclesfield-bikeathon/

robb, to random
@robb@social.lol avatar

Every Phone I've Ever Owned https://rknight.me/blog/every-phone-ive-ever-owned/

Now I've written this I really want to try and buy them all again.

lewis,
@lewis@social.lol avatar

@robb @bendaubney My Dad had it and it's still his favourite phone. I remember him giddily watching Spiderman 3 on it, because it came preloaded and it was the first time he'd ever been able to watch a video on a phone.

belldotbz, to random
@belldotbz@mastodon.social avatar

This is a rather interesting read https://kevquirk.com/mastodon-is-ddosing-me

Hat tip to @hdv for the link

lewis,
@lewis@social.lol avatar

@belldotbz @hdv I feel like the ActivityPub spec should be extended so that metadata like open graph images can be sent along with posts containing links, so they're only fetched once. The caveat to that being it becomes hard to update it once it's out - but that's already the case, so 🤷🏻‍♂️

robb, to random
@robb@social.lol avatar

Can’t believe they called the feedback in the new Apple pencil “haptic" instead of "hand throb”

lewis,
@lewis@social.lol avatar

@robb @jonathanreed So you had so many opportunities to not post this?

robb, to random
@robb@social.lol avatar

7622 https://rknight.me/blog/7622/

Wanna know the ridiculous reason I spell my name with 2 Bs? You got it.

#WeblogPoMo2024

lewis,
@lewis@social.lol avatar

@robb @maique I have a somewhat-similar situation with my school friends. Both my first and surnames are also first names, so teachers always called me “Dale”, which stuck to the point where I just went by Dale until I went to uni.

There are people I was friends with for years who had no idea my name was Lewis

lewis, to random
@lewis@social.lol avatar

I’m very glad I prepared my first weeks posts. Moving house this weekend and we won’t have internet until Tuesday at the earliest, so no chance to write anything this weekend

lewis,
@lewis@social.lol avatar

In other news, buying a superking-sized bed seems like a great idea until you have to move it

robb, to random
@robb@social.lol avatar
lewis,
@lewis@social.lol avatar

@robb I can't believe it happened.

On the toggle part, a fair few of them are built into Raycast by default - searching "toggle" gives me the ability to toggle dark mode, bluetooth, fullscreen, mute etc

lewis,
@lewis@social.lol avatar

@robb Looks like there are a couple, but also I imagine your Alfred workflows would be transferrable too if you'd rather keep them all in one place

lewis, to random
@lewis@social.lol avatar

📝 New post: WeblogPoMo 2024

Once again unable to say no to a commitment, I&;ve signed up to WeblogPoMo 2024, in which I post something to my blog every day for the month of May

🔗 https://lewisdale.dev/post/weblogpomo-2024/

adam, to random
@adam@social.lol avatar

The Fibonacci sequence can be found all throughout the natural world, including on this busted digital McDonalds drive-thru sign.

lewis,
@lewis@social.lol avatar

@adam Guess the milkshake machine was broken again

robb, to random
@robb@social.lol avatar
lewis,
@lewis@social.lol avatar

@robb Taking bets on how long before EchoFeed has a toaster integration

robb, to random
@robb@social.lol avatar
lewis,
@lewis@social.lol avatar

@robb "She speaks clearly, in a way that is reminiscent of a teacher or a steadfast multigrain snack."

Exquisite reporting, I love this

lewis, to cycling
@lewis@social.lol avatar

Finally! 🎉

lewis,
@lewis@social.lol avatar

And it came in! It’s so pretty, this is my first ever brand new bike 😍

sarajw, to cycling
@sarajw@front-end.social avatar

My god, I'm only trying to buy a new helmet and I'm so bewildered.

Virginia Tech helmet ratings, MIPS, the recent German ADAC trials that basically said the Uvex Urban Planet is the only helmet worth having (no MIPS tho) and now that one helmet is out of stock everywhere...

Ugh. What do I doooooo? I didn't want to have to think about this so haaaaaard. I'll accept recommendations. I have a decades old Giro helmet, and it's high time to upgrade.

lewis,
@lewis@social.lol avatar

@sarajw Specialized Align II is a really highly-rated helmet, with MIPS, and it’s reasonably priced. Ive not had any major crashes so can’t personally attest to the head protection (and I’d like to keep it that way), but it’s comfortable and is easily adjustable

Edent, to webdev
@Edent@mastodon.social avatar

🆕 blog! “I can't use my number pad for 2FA codes”

This has to be the most infuriating bug report I've ever submitted. I went to type in my 2FA code on a website - but no numbers appeared on screen. Obviously, I was an idiot and had forgotten to press the NumLock button. D'oh! I toggled it on and typed again. No numbers appeared. I […]

👀 Read more: https://shkspr.mobi/blog/2024/04/i-cant-use-my-number-pad-for-2fa-codes/

lewis,
@lewis@social.lol avatar

@Edent Sorry, our app only supports 60% layout mechanical keyboards, it's in the TOS.

lewis, to random
@lewis@social.lol avatar

Ordered a massive pipe wrench to try and help remove a very seized seatpost (I don’t have a table vice), but then managed to get it unstuck before the wrench arrived so now I just like… have a pipe wrench that I’m almost certainly going to forget to return

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