2024-02-28 23:25:45

Righty. I think I have a nicely working watch script + auto-reloader that doesn't poll.

That was WAY harder than I expected – mostly because of how nginx doesn't put headers on some things.

Need to tidy up and document. But want to get this into my small site template!

Making things simple is complicated!

2024-02-28 09:20:05

So having discovered Live.js and Turbowatch and then deciding to write my own simple file watcher using a shell script and Live.js as a reloader, I wondered… do you need to poll?

WebSockets was an option for sending server-side changes to the browser. But too complex for my needs.

Then I found this ancient Server-Side Events API that's been around since Chrome version 6! And it's PERFECT!

developer.mozilla.org/en-US/do

2024-02-25 23:33:55

Dang it – didn't quite get everything updated. But a @chriscoyier post referenced Turbowatch and Live.js as a simple file watcher/browser reloader combo.

I want something simpler than Turbowatch though, and more modern than Live.js.

Live.js also didn't work with Laravel Valet. šŸ˜¢

BUT… I got it all working! It's 55 lines of shell script and 10k of modernised JS (uncompressed). I will build it into my small static site template and write up soon!!

šŸ˜ƒ

2024-02-25 13:01:30

Iā€™ve been thinking a lot about code style recently. Naming conventions. Simple refactors. Stuff like that.

I canā€™t think of who in is doing this (outside of recommending PHPCS and WPCS).

Am I missing something/someone? Or is this a gap that needs filling?

2024-02-24 09:56:22

I was also discussing sport with a Canadian this week and she told me that because ā€œhockeyā€ means ā€œice hockeyā€ by default they need a term for hockey-on-grass.

And that term is ā€œfloor hockeyā€

Which for some reason makes me giggle.

2024-02-24 09:54:14

Words that Americans seem to use a lot that I think carry cultural weight that I, as a Brit, donā€™t understand:

– ā€œcompellingā€ (as in ā€œThatā€™s a compelling toolā€)
– ā€œappreciateā€ (as in ā€œI appreciate you.ā€)

I wonder what I say that carries cultural weight that my other-side-of-the-pond colleagues donā€™t understand.

2024-02-24 09:50:37

Today will also require careful management of sugar/caffeine levels. Will be very easy to overdo it.

Yes, Iā€™m middle-aged and these are the things I think about now when Iā€™m socialising. šŸ˜‚

2024-02-24 09:43:52

Iā€™m travelling to London today toā€¦ errā€¦ socialise with people in real life?!

Will I remember how?

Tips/advice?

Best worst advice wins.

2024-02-22 12:56:26

My friend Tim is running a workshop. Heā€™s really very smart, has a TON of experience, and heā€™s entertaining too:

ā€œI'm running a workshop on how to clean a hacked Site, it's on the 21st March and I hope I can tempt you to come! I'm excited, I think I have managed to get the balance between technical and accessible, so that it genuinely is useful to everyone.ā€

timnash.co.uk/workshop/

2024-02-19 20:02:44

Another week, another single-page web app gets spun up. These are the new domain names. šŸ˜‚

This one is secret for now. But real fun to make.

Figuring out in-browser background removal with JS/CSS. Plus turning HTML into images to print.

Cool stuff!

2024-02-18 08:55:13

US Politics + ā€œOh my eyes!ā€ design.


Even if you thought Trump was a good politician, would you really look at this and think youā€™d want to spend $400 on them?

Keep scrolling tooā€¦ thereā€™s a VERY special offer at the bottom.

gettrumpsneakers.com/