@dragonmantank Second person I've heard of this month who got their firmware broken by an update. Yikes.

Heh, glitch is fun. I made this little tool pretty quickly. glitch.com/~tangible-fold

(Testing out a new Beehive RSS feed ...)

kboyd boosted

@dshafik I'm sure something creative could be worked out using Imagick, but I don't think it would be easy.

Another approach I've seen is using HTML Canvas elements to draw it in Javascript and then have the browser save it as an image. (Doesn't quite work in all browsers, though.)

@jim which is funny because if mastodons were still alive, lurking would be the last thing they would do.

Anyone on phpc.social using League\Container? I find it odd that `->add(MyInterface::class, MyService::class)` doesn't pull the concretion from the container; to get the behaviour I want, I need to use something like `$container->add(MyInterface::class, function () use ($container) { return $container->get(MyService::class); })`.

Anyone else find that odd?

Sometimes "Quality Assurance" means shovelling around inside a puddle to try and unclog a drain.


Someone on IRC helped me yesterday. Apparently when JSON-encoding arrays in PHP, if you need an empty array to be encoded as an empty associative array/hash/dictionary, you can use `(object)[]`.

Ah, I remembered one of the places where XML hurt me.

RSS and Atom feeds.

You've practically gotta fuzz the outputs to make sure things don't get absolutely buggered by unexpected characters. Maybe there's an efficient and reliable way to do it, but I got really sick and tired of random breakages.

Oh, wait, technically the Hives are the integrations and the Bees are the individual configurations you set up. And then Chains are what knits the Bees into workflows. Or something. :)

So far it has some good aspects, like a large number of "Bees" (aka Integrations). But I'm not a fan of the configuration file storing passwords in plaintext. And it would be nice if the "chains" (connecting bees together) could be editable via the web. Of course, it's open source, so I could dabble in a bit of Go to contribute improvements.


Learning how to configure "Beehive", a self-hosted Zapier/IFTTT style tool. Sorry for the tootflood, I was setting up an RSS-to-Mastodon chain as the first test.

Okay, I'll grant that - technically speaking - the value '0000-00-00 00:00:00' isn't a valid date. I would counter-argue that perhaps when your system attempts to *autodetect* field types from the first inserted record, maybe it should accept that as a date? Otherwise, it should at least accept '0000-01-01 00:00:00' as a valid date, right?

Show more
PHP Community on Mastodon

Open source. Open community. We are dedicated to building and enriching the PHP community. Join us!

Welcome to the PHP Community on Mastodon! We're a friendly little Mastodon instance providing a place for PHP developers to discuss topics related to PHP, as well as topics unrelated to PHP. First and foremost, we're about building community, and that doesn't always involve technical discussion, so feel free to go off-topic and have fun.

Before you get started, make sure you check out our code of conduct.

Thank you to Jakob Westhoff for allowing the use of the photograph "elePHPants walking through the light."