Profile avatar
simonw.xyz
UK Web Developer, mostly Laravel. Svelte 5 is a vibe. I'm a drummer, vegan, engaged, and have 2 rabbits. Learning British Sign Language. Get creative and learn stuff, always.
61 posts 33 followers 266 following
Regular Contributor
Active Commenter

Spotted the CSS Painting API draft spec. The idea that using a little CSS and JS you could turn any element into a <canvas> via background-image is wild. They have an example rendering an image placeholder, but imagine passing your paint worklet a blurhash variable, rendering an lqip while loading.

I improved this weird clock! It has a different colour for pm, hours and minutes move gradually, and nothing animates backwards on minute / hour changes, much nicer. That happened because css animating from 1 turn to 0 turn doesn't take the "shortest path". The solution... Only ever increase!

The time is 3:27:49, as you can clearly see by this clock I just made with a few stacked conical gradients and a mask. I've always enjoyed abstract and hard to read clocks. svelte.dev/playground/3...

#Laravel people. When using "create" policies in your views, do you do anything to avoid fully qualified classes? E.g. `@can('create', \App\Models\User::class)`

git switch -c "update-$(date +%Y%m%d)" Why would I take 1 minute to write the current date, when I can spend 10 minutes working out how to properly interpolate a formatted date into my branch name.

Looking back at old code, I think I used to lean into imperative solutions for problems a lot more than I do now. As an example, years ago, formatting a model's attributes for output I wrote a system which format based on the attribute name, ending "diameter" (append mm), or "volume" (ml), etc.

I passed my BSL 203 (conversation) assessment with full marks! Absolutely stoked. Proud of my fiancée for passing hers too. Next up, the presentation assessment 😬. #BSL

Starting off my year learning how to type again. I've modelled my layout on my 60 key ortho's, and I'm tweaking things every day still until I can iron out the little snags from losing another row of keys. Still, enjoying the process! Beautiful little keyboard. #zsa

If you've got a custom domain handle and created a bsky.social account to reserve your old one. Here's what you need to do: Delete that reserved account. Claim it on your main account by switching your handle to it. Move back over to your custom domain. That'll reserve the account.

I recently posted that you can easily translate PHP Enums for the UI, like select boxes, etc. Nice to see something similar in the Nova 5 docs, allowing Enum use in their Select Field builder directly. I'll probably use their conventions for consistency now when adding enum helper methods.

You can avoid acquiring a bsky addiction by simply not downloading the app. Use the webapp instead only when you feel like it rather than chasing push notifications all day.

Last week I ran into nixos issues. My laptop wouldn't open apps, it didn't recognise hardware. I figured the best way to fix it would be to go back to the initial install state and work my way forwards again. Lo and behold that worked. No sweat.

Nix doesn't have a docs problem it has a discovery problem! So let me fix that by giving you all my favorite docs, youtubers, blogs and nix projects. (also no personal config have been listed) Make sure to reply if you think i missed any. (1/5)

Everything that @everydaylouie.bsky.social makes is brilliant. The range of their creativity is so impressive. The music is always uniquely such a bop, the animations and presentation is varied and full of vibe. This latest is no exception, love it. 🐍 www.youtube.com/watch?v=7aFe...

Hey all, I just shared my project on reddit. If you have an account and like using blueview, please could you upvote and share www.reddit.com/r/SideProjec... I don't really know reddit very well, so would really appreciate any help with the post 🙂 Thanks in advance you lovely people!

Sure, mate! Here's some example Translatable enum traits, how they might be used, and a bit of a writeup in the readme! github.com/mister-simon... Should be of interest for any #laravel people, or generally anyone who uses a lot of PHP Enums. Enjoy!