Good morning from fixing UTC -> BST transition bugs in my home control system.
Jamie Matthews
@jamie@mtth.org
Sussex, UK. Web engineer. Python, Django, etc. Dynamic language and boutique fuzz pedal enthusiast. Born at 342ppm. Dabbling in energy-oriented home automation, personal decarbonisation and no-dig gardening šæ
Idle thought: maybe DRF Serializers should have been called "Normalizers" š¤
I asked ChatGPT-4 to write a haiku about solar panels:
Sun's rays from above,
Silent power on rooftops,
Green energy thrives.
This is the lowest Iāve seen it by a long way (since Iāve been paying attention)
Ā£20bn funding to ācut carbon emissionsā says the headline. But it seems like a lot of this will be going to carbon capture projects.. which are just fossil fuel industry subsidies. Just donāt emit the carbon in the first place! Spend it on lots more wind, solar, battery storage, heating decarbonisation and #insulatebritain
@ghickman I asked a few people including a couple of electricians. Everyone said the Zappi is best. Particularly if you have solar panels (which I donāt but hopefully will soonish).
Today is the day. No more diesel!
Today I picked up a thousand litres of organic peat-free compost and now Iām reading up on ideal seed sowing dates. After dabbling with lettuce, courgettes and a few tomato plants last year, this year Iām going to give it a proper go.
My ISP is on the Fediverse social.aa.net.uk/users/aaisp/s
@ulope glad someone got the reference! I was an avid user before I figured out that all I needed was Notepad
@carlton interesting... I can see the similarities! I always liked the look of Elm but I've never tried it. No need for a fan club here, particularly compared to the contributions you make to Django and the universe in general.
@webology huh, Iād found a few libraries like that but didnāt realise @adamchainz made one!
One nice thing about manipulating tuples directly (rather than wrapping tags in functions and using kwargs for attrs) is that you donāt have to worry about that kinda janky class_ thing š just do {āclassā: āwhateverā}
A few weeks ago I open sourced a tiny library Iāve been noodling on for a while: github.com/j4mie/hotmetal
Itās for generating HTML from basic Python data structures. Itās a bit weird and most people will probably hate it (which is fine). But Iāve now built a moderately complicated web app with it and Iām never going back to string-based templates!
Oh, and it runs quite happily under MicroPython on a ~Ā£4 microcontroller, which is fun.
lukeplant.me.uk/blog/posts/pyt
Such a good post. Embrace dynamic behaviour.
Aside: the new spec-to-serializer stuff I just added to django-readers is all about dynamic creation of serializer classes github.com/dabapps/django-read
Fairly impressed with missing.style/ (from the makers of htmx and _hyperscript). If, like me, you enjoy somewhat dull-looking websites and hate CSS, it might just be for you.
@carlton šš»
@neil šš»
A little late to the fediverse party perhaps, but here I am.