I'm going to go out and take nine pictures of different Wendy's restaurants at dusk from different angles and then I'm going to post them online and say "Hey guys, I just made this amazing new AI-powered image generator! Here are the images it created when I told it to generate images of Wendy's at dusk! Ask me something else for it to generate!" And then when someone responds I'll go out and take nine photos of whatever they asked for and post those and be like "Wow, I'm an AI expert!"

Surprising (IMO) PHP behavior: 3v4l.org/uXNp7#v7.4.30

`array_unshift($array, 'foo'); array_unshift($array, 'bar');` does not cause the same result as `array_unshift($array, 'foo', 'bar');`.

Just woke up from a nightmare. In it, I built a website with a newsletter popup. Gotta take a shower now and cleanse myself of that filth

There are three kinds of lies: lies, damned lies, and `window.innerHeight`

Desktop Safari seems to currently have a bug where if you try to access two sites using HTTP authentication at the same time, it keeps prompting for the credentials; I think it's trying to use site A's credentials on site B and then showing the prompt when they fail and vice versa. Might be happening because (in my case) both sites are on the same domain but with different subdomains. Anyone else seeing something like that?

Why it's a terrible idea to use flags or country names on your language selector, #88,248,324. Seriously, explain this to me.

Apparently, if you're a customer in China, they want you to use the English site rather than the Traditional Chinese site. But that's okay, because clicking on "English" next to the Chinese flag takes you to a page in simplified Chinese anyway.

liqui-moly.com/en/pt/ (yep, that's the URL)

When they do this shit where they cover up the article with a pop-up, enabling reader mode will sometimes let you see the whole article. It didn't work in this case, though - the article was truncated.

…by JS, but the full article is still in the HTML.

If you're going to do this anti-user shit on your news site, at least have the sense to crop the article server-side. It's a lost cause, though. I have never responded to a content-hiding pop-up like this and I never will.

This is what's wrong with the tech industry. The expectation that one should give their free time *EVERY DAY* or you're somehow "not passionate".

My response to that would be fuck you and your shitty fucking culture.

My kids and family are FAR more important to me than your ridiculous expectations.

</rant> 🙃

To all the new people who seem to be flooding this instance since Bogeyman du Jour bought Twitter, remember: All users and posts on this server are "on Mastodon." Just like you are always "on Chrome" when using a web browser or "in Ford" while driving.

Also, all video game consoles are Nintendos.

Apparently is happening right now in (drama sigh) Portland. Seeing some of the tweets about it is like meeting up with people you knew from high school who grew up to be junkies - the "junk" in this case being corporate-focused Silicon Valley techno-gobbledy-gook.

A wistful thread from Earl "merlinofchaos" Miles: twitter.com/merlinofchaos/stat

Look at these nightmarish build instructions. How horrifying.

And yet… I'll try them. At some point.

github.com/pkulchenko/wxlua/bl

I think my problem with Stripe's documentation seeming so contradictory with multiple ways to do the same "this should be simple" thing is that I'm actually looking at documentation for several different versions of their PHP library, all intermingled. But it's hard to tell.

On Stripe's very large and somewhat incomprehensible API pages, they've hijacked Command-F (and presumably the non-Mac equivalents) to show whatever the hell this is rather than using my browser's normal "find on page" function (though fortunately I've found hitting Command-F again lets me use it).

Whoever came up with this will burn in the deepest pit of web design hell. Who the hell would want this? It's really hard to fathom a more unwanted feature that isn't an outright virus or something.

I guess this will help save time for recruiters who won't hire cis white men. Now if only AngelList will allow job seekers to filter out jobs not available to cis white men, my time will be saved too.

The tech industry in Current Year, everyone!

@reykjalin I tried submitting a patch for your PHPCS Nova extension via `git send-email` since I guess that's what you have to do with Sourcehut. I've never done that before - hopefully it got to you. Please let me know here or via email if something screwed up.

Really, Composer is written in , and it does everything. If you're a PHP dev and you're going to write a tool to be used by other PHP devs, why would you ever use a tool other than PHP?

Symfony's routes are defined in YAML files, and its CLI tool is written in Go.

Okay, moving right along.

Show older
PHP Community on Mastodon

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