WWW posts page 2

Apache PHP FPM and “Primary Script Unknown”

A while back, I wrote about dealing with the Apache / FastCGI error ‘Primary script unknown’ when trying to access non-existent PHP files. Bots often do this trying to test for vulnerabilities, and it can fill up error logs and be annoying to look through. In that post, I fixed the problem through mod_rewrite and a RewriteCond. For PHP 2.4+, there is a more broad and likely more efficient solution using the <If> directive. It will work for all virtual hosts on a server.

Continue reading post "Apache PHP FPM and “Primary Script Unknown”"

Homebrew `composer` 2.6.x failing

For some reason, the Homebrew version of composer hasn’t been working recently, either 2.6.1 or 2.6.2. So I’ve manually grabbed the phar from getcomposer.org and replaced the file it was getting. I’m running the latest MacOS and up to date Homebrew, PHP, and Composer on an Intel Macbook Air. When I would run composer, I would get an exception

Continue reading post "Homebrew `composer` 2.6.x failing"

:wq Bram Moolenaar

Sad to hear of Bram Moolenaar’s recent death. RIP. He was the creator and main developer of vim, the common and influential *NIX text editor. I encountered the editor in the early aughts from a CS professor who used it and was very quick with it. I’ve used it over the years on Linux servers, where it is one of the few command line editors always installed. It has a learning curve, but I’ve gotten comfortable with it over the years. With the death of the Atom editor, I’ve been moving toward vim as my primary editor.

Bram continued to steer the development of the editor up to its death, so it will be interesting to see where it goes without him. Some complained he kept the editor from modern features, resulting in a fork called neovim. We’ll see if vim modernizes more without Bram, if the project slows or dies without him, if neovim takes over, or if perhaps some efforts to re-merge the projects are made.


CSS wishes: add to existing rules

Some months ago, I wrote a 2023 CSS wishlist for things I’d like to see in the spec. Among them was the desire to be able to add to existing CSS values. This would be particularly useful for multi-value properties like transition and transform, although it would also be cool to be able to add to existing numeric values, like 2em more padding than this would otherwise have. There would be difficulties implementing this as described in that post though. I’ve thought of some other possible options that may be less problematic.

Continue reading post "CSS wishes: add to existing rules"

Inline emoji favicon

On a simple one-page site, I wanted as much as possible to be inline in the single document request. I didn’t have a favicon, and I didn’t want browsers to make that extra request. I considered just adding an empty file, as I’ve done sometimes in the past, but that would still be an extra request. So I looked up if it could be inlined. It can be done, with a data URL. And using an SVG format, an emoji can be used for a cheap actual icon.

Continue reading post "Inline emoji favicon"