I'm blogging about Emacs, Drupal, php and exciting subjects

· Lars Nielsen

A Deliberate, Documented CPU Tradeoff That Turned Out Backwards

A CPU isolation setting sat unchanged for weeks, explicitly documented as deliberately left alone to avoid destabilizing a live system. When it finally got measured instead of just trusted, the setting turned out to be backwards — giving unrestricted access to the exact processes it was supposed to be isolated from, while pinning the processes causing the contention to almost nothing.

Read article A Deliberate, Documented CPU Tradeoff That Turned Out Backwards
· Lars Nielsen

API Platform Returned an IRI Instead of the Object, and Saving the Form Cleared the Owner

In CaRMen, my CRM, every deal has an owner and every activity has an assignee: a user. For a while the deal list showed "-" in the Owner column for every deal, which looked like a display bug. It was worse than that. Opening a deal and saving it, without touching the owner field, removed the owner from the deal. The same happened to an activity's assignee.

Read article API Platform Returned an IRI Instead of the Object, and Saving the Form Cleared the Owner
· Lars Nielsen

sshd_config Said PasswordAuthentication no. A cloud-init Drop-in Had Already Said Yes.

On the database server of my search engine project, /etc/ssh/sshd_config said PasswordAuthentication no. The server accepted password logins anyway, and a bot on the internet was guessing the root password around the clock. Every attempt failed, but only because the password held, not because the setting did.

Read article sshd_config Said PasswordAuthentication no. A cloud-init Drop-in Had Already Said Yes.
· Lars Nielsen

The First Real End-to-End Test Found a Login Error Nobody Had Ever Seen

CaRMen, the small CRM I run for myself, had unit and controller tests from early on, but nothing that drove an actual browser against the actual frontend until October. Setting up Playwright properly — @playwright/test instead of plain playwright, a Chromium-only project, role-based locators, a shared login helper — took one evening.

Read article The First Real End-to-End Test Found a Login Error Nobody Had Ever Seen
Subscribe to Linkhub