Profile for splitbrain

Display name
Andreas Gohr
Username
@[email protected]
Role
admin

About splitbrain

Fields

Pronouns
he/him
Bestest Boy 🐺
@tarly

Bio

Blogger, open source developer, maker, human from Berlin.

Stats

Joined
Posts
1271
Followed by
550
Following
113

Recent posts

huh. You used to be able to select "listen to this page" in Google Chrome on Android and it would use text to speech to read the page to. Now the option is still there, but it generates an AI podcast like thing based on the article??? That's not what I asked for!

there's some media that leaves an everlasting impression on your brain. may it be an idea or a feeling from that media that will pop up again and again in your thoughts over the years.

bojack horseman is one of those for me. I don't think anyone I know gave that silly cartoon a second look. but that shit went much deeper than any animated series with anthropomorphized animals has any right to.

🤷‍♂️ dunno what I'm trying to say here. but i c u, bojack.

Am I being stupid or does HTMX not support this very simple use case?

on form submit:
1) clear the target area
2) show a loading indicator
3) trigger an ajax call
4) wait for the ajax call to return
5) hide the loading indicator
6) fill the target area

Ideally I would want the loading indicator IN the target area, but that would make it usable only once. Stupid, but I can live with it...

But what seems not to work is 1). It will show my indicator but not clear the target area.

It seems I have to write additional JS to get that behavior. Well then I can write the thing myself. So much for the promise of not having to write JavaScript for simple things.

#htmx #javascript

Hey, electronic geeks. I need your help.

We have a lamp in our living room containing a bunch of white LED strips. We really like the lamp, unfortunately the remote to control the brightness and color temperature broke.

I am now thinking about "simply" replacing the LED driver with a new one that can be controlled via WiFi (ideally via Home Assistant).

However I am having a hard time to find a driver with exactly the specs of the original. I think it's probably because I don't 100% understand how these specs work.

Can you:

* point out drivers wich should be able to replace this one?
* explain if and what wiggle room I would have when selecting a driver?

#electronics #led #homeassistant #fedihelp #rtwelcome

Over the weekend I had to implement a bot blocker for #DokuWiki (see https://phpc.social/@dokuwiki/115718031689877459)

I just ran a script over the log files to see who is never getting through the bot check, expecting lots of smaller search engine spiders. But no, it seems really like 99% of bots are trying to mask as a end user browsers like Chrome, Safari, etc.

When you group the results by IP, you can see that they tried dozens of different user agent strings, sometimes with a seemingly random version number.

A handful also tried common search engine identifiers (Google, Yahoo...). Good thing I am letting those in via their published IP ranges rather than by user agent.

#bots

from time to time I assign an inconsequential small issue to github copilot to see how it does. and it's surprisingly bad. much worse than claude code or codex would do.

capitalism is failing me again.

I am looking for a retractable USB-C cable. But one that is only pulled from one side of the spool, not one where I have to pull on both sides.

Length should be at least a meter and it should be able to cope with 100W charging - no need for data or video.

The idea is to mount the housing under my desk (or other furniture) and being able to pull out the cable when needed and have it neatly recoil when not.

Does anyone know a product? Or has a good idea on how to DIY it?

Update: I might have found one: https://amzn.to/4q3QbR9


#askfedi #usbc #rtwelcome #diy