This feed omits posts by rms. Just 'cause.

jwz (Jamie Zawinski)
ffmpeg 7.1 to stereo
Dear Lazyweb,

I would like to know how to downmix 7.1 audio to stereo without it sounding like hammered dogshit. Specifically in the context of Scott Pilgrim, which we are screening at DNA Lounge this Sunday.

The file I have is 1:52:15, 1920x1040, 7.1 aac 48kHz. Here are the things that I have tried that sound terrible:

ffmpeg='ffmpeg -hide_banner -loglevel error -y -ss 1:01:33 -i pilgrim.mkv -t 90 -map 0:v:0 -map 0:a:0 -vcodec copy -acodec aac -b:a 192k -movflags faststart' $ffmpeg -ac 2 pilgrim-ac2.mp4 $ffmpeg -ac 2 -lfe_mix_level 1 pilgrim-ac2-lfe.mp4 $ffmpeg -af 'pan=stereo| FL < 0.274804*FC + 0.388631*FL + 0.336565*SL + 0.194316*SR + 0.336565*BL + 0.194316*BR + 0.274804*LFE | FR < 0.274804*FC + 0.388631*FR + 0.336565*SR + 0.194316*SL + 0.336565*BR + 0.194316*BL + 0.274804*LFE' \ pilgrim-pan.mp4 # (via this and this)

Also doesn't work: importing the 7.1 file into iMovie directly. That sounds just like "-ac 2" but with extra clicks.

What did work was having Gabe use Adobe Audition to dump out a 2ch WAV. So we have a solution for this Sunday. But I would still like to know how to solve this in the future using normal tools.

If you are about to "Why don't you just"...

  • ...play the 7.1 file:
    my nightclub is stereo.

  • ...play the 7.1 file and hope for the best in QuickTime Player or VLC downcoding it in realtime:
    I need to do some editing on the file (adding pre-roll and intermission) and I use iMovie for that, which is stereo.

  • ...use something besides iMovie to edit video:
    I do not like iMovie but I understand it. Any time I have experimented with something besides iMovie, I have both not liked it and not understood it.

  • If you are about to say, "I haven't tried this, but..." please don't. I have a very specific test case up there. Run those three recipes on that file. Listen to them. If your fourth recipe sounds better, then and only then tell me about it.
Posted
miguel.de.icaza@gmail.com (Miguel de Icaza) (Miguel de Icaza)
What Maintaining SwiftTerm Taught Me About AI Contributions

If you maintain an open-source project right now, your pull request queue probably looks very different than it did two years ago.

I maintain SwiftTerm, an open-source terminal emulator library that is now seven years old. Today, I estimate that about 80% of the pull requests I receive involve AI in some capacity. Looking back, though, this didn't happen all at once—it came in distinct waves.

Disclosure: as a Mexican national that routinely writes tedious and typo-ridden English blog posts, I had Antigravity fix my writing and repeated tedious and repetitive points (as my wife often points out).

Wave One: Vibe-Coded Band-Aids and Fork Experiments

Before people even started opening AI-assisted pull requests on my repository, I would browse the GitHub network graph just to see what forks were popping up and what problems users were struggling with. Early on, what I found was a lot of "vibe coding"—folks patching around issues in ways that were fundamentally wrong, slapping surface-level band-aids over deeper terminal state bugs. I would fix or implement the feature, despite the fact that the user had not submitted the fix - for the sake of helping all my users.

In one fork I stumbled across, someone had clearly unleashed an autonomous agent to try to fix all of my open issues in rapid fire. Luckily, they never actually submitted those PRs—they were likely just experimenting—and it was only my nosy self browsing the network graph that spotted it. Still, looking through those commits confirmed the early reality: the fixes weren't worth merging. They solved surface symptoms without understanding the system.

The Rise of the Promptsplainer

Alongside those early waves came a new open-source archetype—one that many communities had to deal with: the Promptsplainer.

Some folks are really eager to particiapte in improving a project and LLMs have opened new doors, but they lack some basic etiquette.

A Promptsplainer is someone who asks an LLM a question, gets back a confident-sounding explanation or a sprawling patch, and suddenly believes they can override decades of hard-won domain expertise. They don't actually understand the underlying quirks, race conditions, or protocol edge cases of the codebase they are touching. When a veteran maintainer points out a flaw, the Promptsplainer doesn't go investigate the code; they just copy-paste the maintainer's review comments straight back into their chat session and paste whatever the bot spits out next.

You don't need a massive daily flood of Promptsplainers to feel the damage. Even the occasional encounter can fill a maintainer with rage - and with good reason.

Wave Two: "Send a Patch" Finally Became Real

Here is what has changed dramatically over the last year. We went from AI fixes being flat-out wrong or lazy band-aids to pretty much landing in the right ballpark.

To appreciate why this matters so much to me, you have to remember what maintaining an open-source library looked like just a few years ago. Back then, I would get a steady stream of bug reports—and if I had the spare time, the patience, the kids went to sleep early, and my Netflix queue was empty, I might actually sit down and fix the bug.

For decades, open-source communities had a semi-joking, semi-exasperated stock response whenever a user asked, "Why doesn't it...?". We told them, "Patches welcome," or "Send a PR." Most of the time, we knew they wouldn't, because diving into a complex codebase from scratch was too steep a climb. The perfect storm between unpaid volunteer work, uneducated takes and exasperation.

Like many others, I have witnessed the change from getting bug reports to getting detailed pull requests. And I am personally grateful for this.

My philosophy on incoming contributions comes down to a simple reality: every PR represents a real pain point caught in the wild. It means a real user ran into a problem in their day-to-day work, reported or tracked down the issue, found a working solution, and felt the pain acutely enough that they took the time to package it up and upstream it.

As a maintainer, that is an infinitely better signal than my own laundry list of wish-list items sitting in the issue tracker. Even if the implementation needs additional work, someone just handed me proof of a real-world problem along with a concrete starting point to fix it.

Multi-Agent Code Review on My Side of the Table

The catch is that many coding models and agents still have a bad habit of just doing the fix—taking the shortest path to make a test pass without stepping back to look at the whole library. And not every contributor has learned how to tune their agents for deep engineering review, or has access to the best models for it.

The first pass of AI-generated code often needs work, and that is okay. Just as we spent years developing the discipline to master our programming languages, debuggers, and in some cases, write m4 macros, we now need to develop the muscle for using AI tools effectively—learning how to steer them, verify their assumptions, and audit their output.

For me, building that muscle meant putting AI on my side of the table to bridge the gap. Before I even bother reading a contributor's patch line-by-line, I religiously run /code-review in Claude and /review in ChatGPT [1].

These review passes routinely catch far more than narrow syntax nits—they surface genuine architectural flaws, subtle API breakage, rare side effects, and terminal conformance problems that would take me hours to trace manually [2].

Armed with that feedback, I can point contributors toward concrete architectural fixes—or, if someone disappears after opening a PR for a critical bug, I can clean up their branch and land it myself.

Some maintainers lament that reviewing these PRs feels like talking to someone who just copies and pastes feedback into a remote LLM. But we are still communicating with a human being on the other end. That gives us a real opportunity not just to coach contributors on how to use these tools responsibly, but to model and adopt better engineering practices across our industry. Given that the economics of top-tier reasoning models aren't ideal for everyone doing casual open-source work, I’m happy to foot that bill on my end for the sake of keeping my library healthy.

The Friction of One-Size-Fits-All Rules

This brings me to why I’ve been watching the broader debate around AI policies in large projects like Gnome and Godot with a lot of sympathy—and a bit of concern.

At Godot's massive scale, protecting volunteer reviewers from unvetted submissions and the occasional Promptsplainer is a completely understandable instinct. Nobody wants their Netflix time eaten up by drive-by code the author didn't bother to understand.

The challenge is that drawing hard lines around how code was written inevitably creates friction for experienced contributors who are already doing the architectural heavy lifting. Recently, I tried to upstream a small, production-tested bug fix to Godot as a trial balloon—one of roughly 60 to 80 improvements my team has built and tested in our own tree. Because I disclosed my AI workflow honestly, it ran afoul of their strict guidelines and was rejected.

When a policy polices provenance rather than quality, two unintended things happen:

  1. It penalizes transparency: Honest contributors who disclose their tools get blocked, while others are quietly nudged to keep quiet and pretend they typed every character by hand.
  2. Good fixes stay locked in private forks: Rather than wrestling with policy friction, teams like mine simply keep useful patches in our own internal trees. Because AI has made maintaining forks trivial, it doesn't slow us down—it just means the broader community misses out on fixes that could have helped everyone.

Accountability Over Provenance

The Promptsplainer is a real headache, and open-source projects are right to push back against uncomprehending, drive-by contributions.

But the antidote isn't banning the tools—it's requiring human accountability paired with better review tooling on the maintainer's side. At the end of the day, as the maintainer of a library, it is my role to make the editorial decisions about what goes in—and the people who depend on my library trust me to make those calls. Whether a patch started in an LLM prompt or was typed out by hand doesn't change that responsibility. If a contributor understands the problem, has tested the fix, and can engage thoughtfully in review as a human being, the models they used in their editor shouldn't disqualify their work.

Of course, scaling that kind of review culture when a handful of core maintainers are already stretched thin is a structural challenge all its own.

[1] With Claude I use Opus 5.5 alongside /review in GPT 6.2 with Sol-xhigh. In Claude, /code-review actually launches multiple distinct agents in parallel, each focused on different goals and common engineering mistakes. Looking forward to Antigravity to get this.

[2] In fact these reviews are so thorough, that I use /code-review on my own changes before shipping. In a seven-year-old codebase, it is impossible to keep every historical invariant in your head at once, and those agents regularly catch edge-case scenarios I had completely forgotten about.

Posted
jwz (Jamie Zawinski)
Fucking Apple
Starting about a week ago, nearly any time I close a Safari window in which I have previously done a POST anywhere in that window's history, Safari crashes.

I'm really enjoying this.

A lot.

(Safari 26.6.1, macOS 14.8.9.)

Previously, previously.

Posted
jwz (Jamie Zawinski)
Sterculius, God of Feces, LA edition
Massive geyser of rotting trash prompts emergency health order in LA:

Los Angeles County health officials are ordering the operators of the troubled Chiquita Canyon Landfill in Castaic, California, to provide hotel accommodations and other emergency assistance to nearby residents after a violent eruption sent a towering geyser of decomposing garbage and methane gas into the air Monday afternoon. [...]

"They were drilling this hole about 150 feet deep and 3 feet wide down into this mound of trash," Los Angeles County Fire Capt. Aaron Katon said. [...] Investigators said workers drilling into the landfill apparently encountered a pressurized pocket of methane, causing material to erupt from the opening.

Previously, previously, previously, previously, previously, previously, previously, previously, previously, previously.

Posted
jwz (Jamie Zawinski)
bus dot horse
Detroit transit officials call horses on bus an opportunity to retrain transit operators:

Detroit transit officials say two horses that boarded a city bus Saturday appear to have been brought aboard for reasons other than service, and they called the incident an opportunity to retrain bus operators. [...] The department said it welcomes service animals that meet the requirements of the Americans with Disabilities Act.

It turns out Jordan Williams wasn't actually trying to ride a Detroit bus with his horse Raven:

Williams, cofounder of Urban City Cowboys, was out with his best friend (another horse owner), and their horses in Detroit over the weekend for a fundraiser, riding along 7 Mile Road, when he came across a Detroit Department of Transportation (DDOT) bus pulling into a stop.

Williams said he spoke to the driver, jokingly remarked that the horse was his service animal and was on and off the bus in no time, much to the astonishment of a passenger inside who snapped some pictures. Williams didn't know the person outside recording him -- a video that would soon go viral -- but he did intend to make a splash with the stunt.

Previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously.

Posted
jwz (Jamie Zawinski)
Noise
I like it when it rains because I can have my windows open and the intermittent white noise of car tires in puddles drowns out the continuous white noise of generators and compressors. Also the leaf blowers take a day off.


Update: I spoke too soon.

The leaf blower guy is here.

It is actively raining, and the smattering of leaves that exist in the concrete slab of a neighborhood that I call home are stuck to the sidewalk, utterly impervious to blowing action.

But I guess my HOA is paying him to do this, so here we are.


Update 2: He went and got a broom! Thus demonstrating that "complete the pointless task without a 90dB compressor on your back" was a technology that had been available to them all along.

Posted
jwz (Jamie Zawinski)
Action!
Well it finally happened. I was falling asleep to some dumb action movie and it was riddled with obvious AI-generated bullshit.

This is "Scorpion (2026)" where Beard Man is living a quiet life until The Agency finds him, except this time Aaron Eckhart plays Jason Statham.

I did not expect much from a movie like this, but that expectation dropped to the center of the Earth once the producers demonstrated their utter contempt for visual effects artistry at both the creative level ("we don't value your work") and at the financial level ("and we're definitely not paying you for it").

Even the fake Google Maps displays on their phones were slop, as they crossed the Northern border into "Calyda".

Previously, previously, previously, previously.

Posted
jwz (Jamie Zawinski)
Dox: Basecamp delenda est
Regular readers may recall my year-long attempt to find a replacement for Basecamp (in the interest of not paying monthly rent to a fascist) and the plenitude of terrible suggestions that resulted.

Well, last week I just white-knuckled it and wrote my own from scratch. I call it "Dox". It took about three days to feature-complete, then another day of tweaking. 4k lines of PHP, 250 lines of JS.

Then I had to write a tool to export our nine years of data from Basecamp and into Dox and that took another couple days (surprise, the Basecamp data-export format is comically bad, so I had to roll my own via their API.)

I'm not releasing Dox to the public, because it depends on a few of my internal libraries and I don't feel like spending the time to make it usable for people outside of DNA Lounge, nor do I want to support it for you. At all.

This is just by way of saying: if you find yourself thinking, "This is some bullshit, I should just write my own and be done with it"...

...you might be right.

Previously, previously, previously, previously.

Posted
jwz (Jamie Zawinski)
Today in "Google broke email"
Dear Lazyweb, if I have to self-host IMAP for my non-nerd staff, how do I deal with filtering?

Currently, my staff emails arrive at their @dnalounge.com address and Postfix forwards to their Gmail addresses with all of the usual DMARC/DKIM/ARC/SPF flavoring. It mostly works. Mostly.

If I am interpreting this page correctly, it says that starting in January, Gmail is going to remove the feature where you can send from a non-Gmail address.

In typical Google fashion, it is confusing, but I believe the link on that pages that says "Learn how to send emails from a different email address or alias" should not be interpreted as "this is how you can continue doing it" but should be interpreted as "this is the feature that we are killing, you can't do this any more".

So this is going to force me to take Google out of the loop entirely. I already have IMAP and SpamAssassin working, and it would be easy enough to configure it so that each of my staff have two incoming folders, "Inbox" and "Spam", but that's insufficient: they're going to need, at least:

  • The ability to whitelist a sender;
  • The ability to blacklist a sender or subject;
  • And ideally the ability to filter into arbitrary folders based on their own criteria.

Sieve is a thing that exists, but obviously I can't expect normal people to write Sieve rules by hand. There seem to be a few different web UIs for editing Sieve, but they all look like hot garbage from the 90s.

What is the done thing here, for mobile users who do not think that "just ssh in and edit this file in emacs" is a reasonable solution?

If my question prompts questions of your own, they are probably answered in the highly relevant Previously:

Previously.

Posted
Bram Cohen
The Rules Of Dominoes

Robin Linus has done some truly heroic work showing that verbatim Poker can be done in Bitcoin script as it exists today with no extensions. This is still very much a prototype. Much further along than a prototype Nokitlan is supporting games on Chia, including dominoes (this is built on the Chia gaming work of been doing as the fundamental building block and interoperability substrate). Which got me thinking: What are the best dominoes rules to play on Chia? There are many different dominoes variants, with not that much standardization. The tournaments are a four player version which has a very bridge-like feel and is obviously a complete nonstarter for remote play because it’s just begging for cheating via collusion. For two players there isn’t even a completely standardized set of rules, so that’s my excuse for pondering variants, which I’ll do now.

The double-six set of dominoes is a pretty good start for the medium, because if two players alternate discards that’s 28 turns total max is which is more than ideal but somewhat workable. But there are some things which are problematic:

Thanks for reading Bram’s Thoughts! Subscribe for free to receive new posts and support my work.

There’s a lot of go-fish-like cheating, where a player is required to do something based on information only they can see. Go fish is a terrible game, it has tons of cheating by accident which small children will of course do and then learn that that’s a good thing to do. At the very start of the game a player has to do discard with a double or can use any tile they want out of their hand if they don’t have one. It’s much simpler to just make the double six be the first tile on the board at the beginning of every game.

Passing is only allowed if you don’t have a legal move to play, which is a obviously also a huge cheating problem. This doesn’t come up all that often because usually it’s counterproductive to pass, but adjudicating it after the fact is a disaster, especially in combination with tiles getting pulled from the boneyard later so there’s no way for an outside observer to tell what tiles each person had at each time from later play. It’s much better to simply allow passing at any time. If two passes in a row happen then the hand is over. It wouldn’t be too difficult to implement a rule that a player can’t do a second pass ending the hand if they have a legal move but I suspect that would result in some very cheeseball strategies where one player passes until the other player has very few tiles and then with the greater control of ensuing play easily wins the hand.

Pulling from the boneyard is awkward to implement. Notably the common four player game has no boneyard. All 28 tiles are dealt out at the beginning, 7 each to four players. It does result in some interesting hidden information play, but the lesson from Poker seems to be that when it comes to hidden information less is more, and you want it to stay relevant up until the very end instead of having everything eventually become known and then a straightforward endgame. To that end, and because this is a game mechanic I’ve long wanted to use, I think the best approach is to deal out all tiles at the beginning of the game except for one which is permanently out of play and the players don’t find out until the very end which one it is. Then the game becomes all about guessing what that tile is based on the opponent’s play and there’s lots of room for deceptive play.

There’s some random advantage to the player who gets to go first. That could be counteracted with an amount added to the final pip count like komi in Go but there would need to be some playtesting to figure out what a good value for that would be.

Putting this all together here are the draft rules of Bram’s dominoes. Needs playtesting:

Played with double six dominoes. At the start of the hand a random domino is removed from play, the double six is played out as the start, and the other 26 dominoes are dealt out 13 to each player. The first player to play is selected randomly.

Players alternate putting down a domino which extends one of the two ends of the chain on the board. They must match the number at the end of that chain with the domino they place. A player may alternately pass and must do so if they have no legal placement move.

If a player plays their last tile then they win. If both players pass in a row then their remaining tiles are revealed and which ever one of them has fewer total pips wins (possibly plus komi added to the player who went first).

Thanks for reading Bram’s Thoughts! Subscribe for free to receive new posts and support my work.

Posted
Tom (Jon Lund Steffensen)
Linux-webhotel: Derfor kører de fleste hjemmesider på Linux-servere

Linux webhotel: hvad det er, og hvorfor det er det mest populære valg

Et Linux webhotel er en hostingløsning, hvor hjemmesider, databaser, e-mail og webapplikationer kører på en server med Linux som operativsystem. Et webhotel betyder i praksis, at flere kunder deler serverressourcer som CPU, RAM, lagerplads og netværk, hvilket også beskrives i grunddefinitionen hos Webhotel – Wikipedia, den frie encyklopædi.

Linux blev første gang offentliggjort af Linus Torvalds i 1991, og operativsystemet har siden udviklet sig til en central platform for webservere, cloud-infrastruktur og containerteknologi. I 2026 er Linux fortsat tæt forbundet med klassiske webteknologier som Apache, Nginx, PHP, MySQL, MariaDB og SSH-administration.

Linux webhotel er populært, fordi det passer til de teknologier, som mange hjemmesider faktisk bruger. W3Techs har i flere år målt, at WordPress driver over 40 procent af alle websites globalt, og WordPress’ standardmiljø bygger typisk på PHP og MySQL/MariaDB, som historisk har været tæt integreret med Linux-servere.

Et Linux webhotel skal ikke forveksles med, at brugeren selv skal kunne bruge Linux på sin egen computer. De fleste kunder administrerer deres hosting via kontrolpaneler som cPanel, Plesk, DirectAdmin eller hostingudbyderens eget panel, mens Linux primært fungerer som serverens tekniske fundament.

De største fordele ved Linux hosting: stabilitet, sikkerhed og ydeevne

Linux hosting forbindes ofte med stabilitet, fordi Linux er designet til flerbrugerdrift, procesisolering og lang oppetid. Enterprise-distributioner som Debian, Ubuntu LTS, AlmaLinux og Rocky Linux tilbyder sikkerhedsopdateringer over flere år, og Ubuntu 24.04 LTS har eksempelvis standard-support frem til 2029 ifølge Canonicals officielle livscyklusmodel.

Sikkerheden i et Linux webhotel afhænger ikke kun af operativsystemet, men også af patching, isolation, firewall-regler, backup og adgangsstyring. I praksis bruger mange udbydere teknologier som CageFS, chroot-miljøer, ModSecurity og Fail2ban til at begrænse skader, hvis én konto bliver kompromitteret.

“Security is a process, not a product.” Citatet tilskrives sikkerhedsforskeren Bruce Schneier og bruges ofte som en kort forklaring på, hvorfor hosting-sikkerhed kræver løbende vedligeholdelse frem for én enkelt teknisk løsning.

Ydeevnen på et Linux webhotel påvirkes af webserver, PHP-version, caching, disktypen og antallet af kunder pr. fysisk server. Ifølge PHP-projektets egne udgivelsesnoter har nyere PHP-versioner typisk forbedringer i ydeevne og hukommelsesforbrug, og derfor bør et webhotel i 2026 som minimum tilbyde aktivt understøttede PHP-versioner som PHP 8.2, 8.3 eller nyere.

Linux er også velegnet til automatisering, fordi serveradministration kan udføres via shell-scripts, cron-jobs, SSH og API-baserede deployments. Hvis du vil forstå operativsystemets tekniske rolle bedre, giver Hvad er Linux? – En komplet guide til det åbne styresystem en bredere forklaring på kernel, distributioner og open source-modellen.

En praktisk fordel ved Linux hosting er, at meget dokumentation, fejlsøgning og community-viden allerede er skrevet til Linux-baserede servermiljøer. Stack Overflow Developer Survey har i flere år vist, at Linux er blandt de mest anvendte platforme blandt udviklere, hvilket gør det lettere at finde løsninger på fejl i Apache, Nginx, PHP-FPM, Composer eller MySQL.

Linux vs. Windows webhotel: hvilken serverløsning passer til dit behov?

Linux og Windows webhoteller kan begge drive professionelle hjemmesider, men de passer til forskellige teknologistakke. Linux vælges typisk til PHP, WordPress, Laravel, Drupal, Joomla, Node.js og open source-databaser, mens Windows hosting især er relevant ved ASP.NET, Microsoft SQL Server og klassiske IIS-baserede applikationer.

Windows Server kræver normalt licenser, mens Linux-distributioner ofte kan anvendes uden licensbetaling til selve operativsystemet. Microsofts officielle licensmodel for Windows Server er kernebaseret, hvilket i mange hostingmiljøer gør Windows dyrere at drive end en tilsvarende Linux-platform.

Kriterium Linux webhotel Windows webhotel
Typiske teknologier PHP, MySQL, MariaDB, WordPress, Laravel, Apache, Nginx ASP.NET, C#, IIS, Microsoft SQL Server
Licensmodel Ofte open source uden OS-licens pr. kunde Kommercielle Microsoft-licenser kan påvirke prisen
Kontrolpaneler cPanel, DirectAdmin, Plesk, egne paneler Plesk, IIS Manager, udbyderspecifikke paneler
Typisk målgruppe WordPress-ejere, PHP-udviklere, mindre virksomheder, bureauer Organisationer med Microsoft-stack og .NET-applikationer
Kommandolinje SSH, Bash, cron, Git, Composer PowerShell, IIS-værktøjer, Windows Scheduler

Valget bør afhænge af applikationens afhængigheder frem for en generel idé om, at den ene platform altid er bedre. En WordPress-side uden særlige Microsoft-krav vil næsten altid være enklere at placere på Linux, mens en intern applikation bygget i ASP.NET med SQL Server kan være mere naturlig på Windows.

Når pris, teknologistak og supportniveau skal vurderes samlet, kan det være nyttigt at sammenligne konkrete hostingpakker på tværs af diskplads, PHP-versioner, backup, oppetidsgaranti og supportkanaler; oversigter som findwebhosting.dk kan i den sammenhæng bruges til at skabe et mere struktureret beslutningsgrundlag frem for kun at sortere efter laveste månedspris.

Netværkskvalitet er også en del af hostingoplevelsen, selv om den ofte overses i sammenligninger mellem Linux og Windows. For danske brugere kan lav latenstid, god peering og en stabil internetforbindelse have mærkbar betydning, og emnet hænger naturligt sammen med principperne i Billigt internet: 7 måder at få lavere pris uden at miste hastighed.

Optimal kompatibilitet: hvorfor WordPress og PHP fungerer så godt på Linux

WordPress fungerer særligt godt på Linux, fordi platformen er skrevet i PHP og typisk bruger MySQL eller MariaDB som database. WordPress.org anbefaler i 2026 fortsat moderne PHP-versioner, HTTPS og MySQL/MariaDB-kompatible databaser som centrale krav til drift.

PHP har historisk været tæt knyttet til Linux, Apache og MySQL gennem den klassiske LAMP-stak, som står for Linux, Apache, MySQL og PHP. I moderne hosting er LEMP-stakken også udbredt, hvor Nginx erstatter Apache, men Linux forbliver operativsystemet under webserver, database og applikationslag.

W3Techs har i 2026 fortsat PHP registreret som et af de mest anvendte server-side programmeringssprog på offentlige websites. Det gør PHP-understøttelse, PHP-FPM-konfiguration, OPcache og versionsvalg til konkrete kvalitetskriterier, når man vurderer et Linux webhotel.

WordPress-ydeevne afhænger ofte mere af serverkonfiguration end af temaet alene. Et Linux webhotel med SSD eller NVMe-lager, aktiv OPcache, HTTP/2 eller HTTP/3, objekt-cache og korrekt databasekonfiguration kan reducere svartider, især på WooCommerce-butikker og indholdstunge websites.

For udviklere giver Linux hosting en arbejdsgang, der passer til moderne softwareudvikling. Git-deployments, Composer, WP-CLI, cron-jobs og SSH-adgang gør det muligt at opdatere kode, rydde cache, køre databasekommandoer og automatisere gentagne opgaver uden at være afhængig af manuelle uploads via FTP.

  1. Kontrollér først, at webhotellet understøtter en aktiv PHP-version, fordi ældre PHP-versioner ikke modtager samme sikkerhedsopdateringer. PHP 8.1 nåede ifølge PHP-projektets officielle tidsplan slutningen af aktiv support i 2023, mens nyere versioner bør prioriteres i 2026.

  2. Undersøg derefter, om databasen er MySQL eller MariaDB, og om versionen matcher applikationens krav. WordPress og mange PHP-frameworks fungerer bedst, når databaseversionen ikke halter flere større udgaver efter.

  3. Vurder til sidst adgang til SSH, cron og backups, fordi disse funktioner påvirker både drift og fejlsøgning. Et billigt webhotel uden ordentlig backup kan blive dyrt, hvis en opdatering ødelægger en produktionstjeneste.

Linux hosting er også relevant for mindre specialprojekter, hvor en hjemmeside skal integreres med eksterne API’er, datakilder eller beregningsmoduler. Eksempelvis kræver softwareprojekter som Integrering af en valutaberegner i dine softwareprojekter ofte stabile servermiljøer, planlagte jobs og sikker håndtering af eksterne forespørgsler.

Sådan finder og sammenligner du det rigtige Linux webhotel til din pris

Det rigtige Linux webhotel bør vælges ud fra arbejdsbelastning, krav til support og forventet vækst. En lille informationsside kan ofte køre fint på delt hosting, mens en WooCommerce-butik, et medlemsområde eller en Laravel-applikation kan kræve mere RAM, bedre CPU-prioritering eller en VPS.

Pris bør ikke vurderes isoleret, fordi de billigste pakker ofte har begrænsninger på samtidige processer, inode-forbrug, databaseydelse eller backupfrekvens. I hosting betyder “ubegrænset plads” sjældent ubegrænsede ressourcer, da fair use-politikker normalt regulerer CPU, RAM, I/O og e-mailtrafik.

Hostingtype Typisk anvendelse Fordel Begrænsning
Delt Linux webhotel Blogs, mindre virksomhedssider, simple WordPress-sites Lav pris og enkel administration Delte ressourcer og mindre kontrol
Managed WordPress-hosting WordPress-sider med behov for support og cache Optimeret drift og automatiske opdateringer Ofte dyrere og mindre fleksibelt
Linux VPS Webshops, API’er, Laravel, Node.js, specialsoftware Større kontrol over servermiljøet Kræver mere teknisk ansvar
Dedikeret server Høj trafik, særlige compliance-krav, tung databehandling Dedikerede hardware-ressourcer Højere pris og mere drift

Oppetid bør dokumenteres med målinger, ikke kun markedsføringsløfter. En oppetid på 99,9 procent tillader cirka 8 timer og 46 minutters nedetid om året, mens 99,99 procent reducerer den teoretiske årlige nedetid til cirka 52 minutter.

Backup er et af de vigtigste punkter i en hostingaftale, fordi fejl ofte skyldes opdateringer, brugerhandlinger eller kompromitterede plugins snarere end total servernedbrud. En god backupordning bør som minimum beskrive frekvens, opbevaringsperiode, geografisk placering og om kunden selv kan gendanne filer og databaser.

Datacenterplacering påvirker svartid, databeskyttelse og supportmæssige forhold. Hvis målgruppen primært er i Danmark eller EU, vil hosting i EU ofte gøre det lettere at håndtere GDPR-krav, fordi dataoverførsler uden for EU kan kræve supplerende juridiske vurderinger efter EU-Domstolens Schrems II-praksis fra 2020.

Supportniveauet bør matche kundens tekniske kompetencer. En erfaren udvikler kan klare sig med SSH, logs og dokumentation, mens en mindre virksomhed ofte har brug for dansk support, hurtig gendannelse af backup og hjælp til DNS, SSL-certifikater og e-mailopsætning.

Et seriøst valg af Linux webhotel bør omfatte en teknisk tjekliste før køb. Tjeklisten bør mindst dække PHP-versioner, databaseversioner, SSL, HTTP/2 eller HTTP/3, backup, e-mailgrænser, inodegrænser, staging-miljø, SSH-adgang og mulighed for at opgradere uden nedetid.

Typiske udfordringer ved Linux webhotel og hvordan de håndteres

Den mest almindelige udfordring ved delt Linux hosting er ressourcebegrænsning, hvor én hjemmeside rammer grænser for CPU, RAM, I/O eller samtidige PHP-processer. Symptomerne er langsomme svartider, 508-fejl, 503-fejl eller periodiske timeouts under trafikspidser.

Plugin-konflikter og forældede temaer er en hyppig årsag til problemer på WordPress-baserede Linux webhoteller. Ifølge Wordfence’ sikkerhedsrapporter har sårbarheder i plugins og temaer i flere år været en væsentlig angrebsflade i WordPress-økosystemet, hvilket gør opdateringsdisciplin vigtigere end valg af operativsystem alene.

E-mail fra webhoteller kan give leveringsproblemer, hvis SPF, DKIM og DMARC ikke er korrekt konfigureret. Google og Yahoo skærpede i 2024 kravene til masseafsendere, og i 2026 bør selv mindre afsendere bruge domæneautentificering for at reducere risikoen for spamfiltrering.

Migrering fra ét Linux webhotel til et andet kræver planlægning, fordi DNS, databaseeksport, filrettigheder, e-mailkonti og SSL-certifikater skal flyttes korrekt. En typisk DNS TTL på 300 sekunder kan give hurtig omlægning, mens ældre opsætninger med høj TTL kan give længere overgangsperiode.

Logfiler er centrale ved fejlsøgning på Linux hosting, fordi de viser fejl i webserver, PHP og applikation. Access logs, error logs og slow query logs kan afsløre tunge databaseforespørgsler, manglende filer, bots, brute force-forsøg og fejlslagne cron-jobs.

En praktisk driftsrutine for Linux webhotel bør indeholde månedlig opdatering, ugentlig backupkontrol og kvartalsvis gennemgang af brugerkonti. Denne type rutine reducerer risikoen for nedetid, fordi mange hostingproblemer opdages, før de udvikler sig til akutte fejl.

Ofte stillede spørgsmål

Hvad er et Linux webhotel?

Et Linux webhotel er en hostingløsning, hvor din hjemmeside kører på en server med Linux som operativsystem. Kunden administrerer normalt siden via et kontrolpanel, mens Linux håndterer serverens processer, filer, databaser og netværksfunktioner.

Er Linux webhotel kun for tekniske brugere?

Nej, et Linux webhotel kan bruges af både begyndere og udviklere. Begyndere bruger typisk et grafisk kontrolpanel, mens udviklere kan få ekstra værdi af SSH, Git, cron-jobs og kommandolinjeværktøjer.

Er Linux bedre end Windows til WordPress?

Linux er normalt det mest naturlige valg til WordPress, fordi WordPress bygger på PHP og MySQL/MariaDB, som traditionelt kører meget effektivt på Linux-servere. Windows kan godt bruges til webhosting, men det vælges oftest, når applikationen kræver ASP.NET, IIS eller Microsoft SQL Server.

Hvilken PHP-version bør et Linux webhotel understøtte i 2026?

I 2026 bør et Linux webhotel understøtte aktivt vedligeholdte PHP-versioner som PHP 8.2, 8.3 eller nyere. Ældre PHP-versioner kan give kompatibilitets- og sikkerhedsproblemer, især når WordPress, plugins og frameworks opdateres.

Hvad skal jeg kigge efter, når jeg sammenligner Linux webhoteller?

Du bør sammenligne PHP-versioner, databaseversioner, backup, oppetid, support, lagerteknologi, e-mailgrænser og mulighed for SSH-adgang. Prisen er vigtig, men den bør vurderes sammen med ressourcegrænser og driftsvilkår.

Kan jeg flytte fra et Windows webhotel til et Linux webhotel?

Ja, det er ofte muligt at flytte fra Windows til Linux, hvis hjemmesiden bruger teknologier som PHP, WordPress, MySQL eller statiske HTML-filer. Hvis siden derimod afhænger af ASP.NET, IIS-specifikke funktioner eller Microsoft SQL Server, kræver flytningen teknisk tilpasning.

Posted
jwz (Jamie Zawinski)
Afterglow
Classic After Dark screen savers on modern macOS:

Afterglow is an emulator built specifically for running After Dark modules -- the original 68k module code, not a remake or port -- with no dependencies on ROMs or classic Mac OS. [...] Powered by the Musashi 68k CPU emulator, Afterglow reimplements just enough of the Macintosh Toolbox and OS APIs to run After Dark modules. No Apple ROM or classic Mac OS installation is required.

You can also browse and install software releases directly from the Internet Archive without leaving the app.

Previously, previously, previously, previously, previously, previously.

Posted
Bram Cohen
Math Tidbits

Maximal Fences

I got nerd sniped by this video and with some help from my friend Claude was able to optimize some of the existing records and set some new ones.1

Infinite Tetration

There are a bunch of videos talking about how the infinite tetration function is only defined in a specific range and strangely only hits finite values at the ends of the range, but they don’t show what it actually looks like as a function, so here it is:

Thanks for reading Bram’s Thoughts! Subscribe for free to receive new posts and support my work.

You might wonder what’s going on at the end points here. On the right it’s going completely vertical. There’s nothing actually funny happening on the left, that’s just where the formula for it using the W function splits into two value. But we can make an analytic continuation of it like so:2

Since we’re defining tetration we can make the rules and there’s no reason to limit it to the happenstance constraints of W. But this still leaves the question of what’s going on on the right. It turns out it does extend, but going up, like this:

Looking at it this way raises the question of what the inverse of this function is. It turns out it’s y=x^(1/x). So the natural way of defining this stuff is to start with that function then wonder what happens if we take its inverse and wonder what happens at the points where the W function splits. But in that direction it seems like a bunch of bizarre leaps and generalizations which require justification, where if we instead work backwards from infinite tetration they’re strange phenomena which need explanation.

The big lesson to take away is that if you see W turn up you’re probably looking at the inverse of something, and being able to support that is how W has worked its way into the canon of standard functions.

Unit Distances

After thinking about the unit distance conjecture I came to the surprising realization that for any asymptotic bound it must be possible to constrain the points to being in a ‘barbell’ of two discs exactly a unit distance apart and only take a constant factor hit based on the diameters of the discs. Writeup over here3. I was hoping that this would result in better bounds but it works out that the amount of constant factor on tightening the disc radii exactly cancels out the reduction in number of points covered by their areas. But it does seem to imply that you can find solutions whose points are within arbitrarily tight disc pairs by taking subsets of ever larger solutions. So maybe the optimal solutions all have this form and have some parameterizable epsilon how big the discs can be where any value works.

I don’t know if this observation is novel or is something obvious to people actively studying the problem and they just haven’t written it up because it hasn’t lead anywhere. But I found it interesting and surprisingand hopefully you do too.

1

It turns out Claude was taking my suggested search areas and implementing them verbatim using SLSQP which explains why nobody else had already done it with a bare prompt.

2

It’s possible to do an analytic continuation into the complex numbers which produces all kinds of interesting stuff but I’m not about to make a half hour long video with lots of 3d animations. If somebody else does that I would much appreciate it.

3

I was discussing this with Claude as I worked through it and Claude’s profound inability at geometric visualization made it not follow anything I was saying until I got to this very specific statement and then it was able to prove it immediately in a much more elegant way than I had worked out.

Posted
Tom (Jon Lund Steffensen)
Integrering af en valutaberegner i dine softwareprojekter

Hvorfor it-afdelingens budget ofte rammes af valutakursudsving

Globale it-investeringer og driftsomkostninger er i vid udstrækning underlagt internationale markedskræfter, hvilket gør it-budgetter særligt sårbare over for fluktuationer på valutamarkedet. Ifølge en analyse fra analysehuset Gartner i 2026 udgør software- og cloud-tjenester nu over 35 % af de samlede globale it-omkostninger, og størstedelen af disse afregnes i amerikanske dollars (USD). Når den danske krone (DKK) svækkes over for dollaren, stiger de reelle driftsomkostninger for danske virksomheder øjeblikkeligt, selvom det faktiske forbrug af ressourcer forbliver uændret.

Mange virksomheder opererer med faste årlige budgetter, som lægges i fjerde kvartal af det foregående regnskabsår. Hvis en virksomhed har budgetteret med en USD/DKK-kurs på 6,80, og kursen i løbet af året stiger til 7,20, repræsenterer dette en stigning i omkostningerne på knap 6 %. For en mellemstor it-afdeling med et årligt cloud-budget på 500.000 USD svarer dette til en uforudset ekstraudgift på 200.000 DKK, hvilket kan tvinge ledelsen til at udskyde andre kritiske udviklingsprojekter.

Særligt hardwareindkøb påvirkes også af disse mekanismer, da mikrochips, servere og netværksudstyr produceres globalt med afregning i USD. Selvom udstyret købes gennem en dansk distributør, er priserne ofte indeksreguleret i forhold til dollarkursen på leveringstidspunktet. Dette skaber en uforudsigelighed i forsyningskæden, som kræver konstant overvågning og finansiel risikostyring.

“Valutarisiko i it-afdelingen er ikke længere et perifert problem for finansafdelingen. Det er en direkte operationel udfordring, som kræver præcise værktøjer og proaktiv risikostyring for at undgå budgetskred.”
– Finansiel analytiker i it-sektoren, 2026

SaaS-licenser og cloud-hosting: De skjulte valutaomkostninger i USD

Software as a Service (SaaS) og Infrastructure as a Service (IaaS) har ændret it-afdelingens omkostningsstruktur fra kapitalomkostninger (CAPEX) til operationelle omkostninger (OPEX). Store udbydere som Amazon Web Services (AWS), Microsoft Azure og Google Cloud Platform afregner som standard deres ydelser i USD eller EUR. For europæiske virksomheder betyder det, at den månedlige hostingregning ændrer sig i takt med de globale valutakurser.

Mange af disse cloud-baserede services kører i øvrigt på open-source infrastruktur, hvilket du kan læse mere om i artiklen Hvad er Linux? – En komplet guide til det åbne styresystem. Selvom selve styresystemet ofte er licensfrit, betales der stadig store summer for den underliggende hardwarekapacitet og supportaftaler, som næsten altid afregnes i udenlandsk valuta.

For at styre disse fluktuerende omkostninger anvender mange finansansvarlige en digital valutaberegner, som henter realtidsdata direkte fra de globale finansmarkeder. Dette gør det muligt at estimere de præcise månedlige udgifter i danske kroner og foretage de nødvendige budgetjusteringer i tide. For præcise, bank-verificerede kurser kan man også anvende en ekstern Valutaberegner – omregn opdaterede valutakurser til at verificere de daglige transaktioner og sikre mod ubehagelige overraskelser på kreditkortudtogene.

Udover selve hostingafgifterne er mange enterprise-softwarelicenser (såsom Salesforce, Adobe Creative Cloud og Jira) bundet til dollarpriser. Selv når faktureringen sker via en europæisk enhed i euro, er prisen ofte fastsat ud fra en omregningskurs fra USD, hvilket betyder, at valutasvingninger indirekte overføres til den europæiske køber.

Styr på økonomien ved outsourcing af it-udvikling til udlandet

Outsourcing af softwareudvikling til lande i Østeuropa eller Asien er en udbredt strategi for at reducere lønomkostninger og imødekomme manglen på kvalificeret arbejdskraft i Danmark. Men når man samarbejder med eksterne udviklingshuse i eksempelvis Polen, Ukraine eller Indien, introduceres der komplekse valutarisici. Kontrakter indgås ofte i lokal valuta (såsom polske zloty (PLN) eller indiske rupees (INR)) eller i USD for at skabe en fælles standard.

Hvis den lokale valuta i modtagerlandet styrkes over for den danske krone, stiger timeprisen for udviklerne tilsvarende. En stigning på 10 % i den polske zloty kan hurtigt eliminere den økonomiske fordel, der oprindeligt var ved at outsource opgaven frem for at løse den internt eller med lokale konsulenter. Det er derfor afgørende at indbygge valutaklausuler i samarbejdsaftalerne eller foretage finansiel kurssikring (hedging).

Når der afregnes med udenlandske leverandører, skal moms- og skatteforhold indberettes korrekt til de danske myndigheder, hvor man med fordel kan konsultere SKATs officielle Valutaomregner – info.skat.dk. Korrekt omregning på faktureringstidspunktet er afgørende for at undgå efterreguleringer og sikre, at bogføringen overholder gældende dansk lovgivning.

Brug en præcis valutaberegner til at sikre dine it-budgetter

For at imødegå de risici, som valutafluktuationer medfører, bør it-afdelingen og økonomifunktionen samarbejde tæt om at overvåge markedet. En manuel omregning baseret på tilfældige søgninger på internettet er sjældent tilstrækkelig, da kurserne ændrer sig sekund for sekund. Anvendelsen af professionelle værktøjer sikrer, at man altid arbejder med de mest aktuelle og præcise tal.

Der findes forskellige finansielle strategier til at minimere valutarisikoen, og valget afhænger af virksomhedens risikoprofil og budgetstørrelse. Nedenstående tabel illustrerer de mest almindelige metoder til håndtering af valutarisiko i forbindelse med it-indkøb:

Strategi Beskrivelse Fordele Ulemper
Spot-kontrakter Køb af valuta til den aktuelle dagspris. Enkel administration, ingen langsigtede forpligtelser. Ingen beskyttelse mod fremtidige kursstigninger.
Terminskontrakter (Forwards) Låsning af en valutakurs til levering på en bestemt fremtidig dato. 100 % budgetgaranti og fuld økonomisk forudsigelighed. Man går glip af potentielle gevinster, hvis kursen falder.
Valutaoptioner Retten, men ikke pligten, til at købe valuta til en fastsat kurs. Maksimal fleksibilitet og beskyttelse mod tab. Kræver betaling af en præmie (gebyr) up-front.

Ved systematisk at anvende en præcis beregner kan it-chefen hurtigt simulere forskellige scenarier. Hvis dollarkursen eksempelvis stiger med 5 %, 10 % eller 15 %, kan man øjeblikkeligt se konsekvenserne for det samlede årsbudget og træffe beslutning om, hvorvidt der skal foretages kurssikring via virksomhedens bankforbindelse.

Sådan integrerer du valutadata direkte i dine egne it-systemer

For større virksomheder er manuel indtastning af valutakurser i ERP-systemer (Enterprise Resource Planning) både tidskrævende og forbundet med risiko for menneskelige fejl. Den mest effektive løsning er at automatisere processen ved at integrere realtids-valutadata direkte i virksomhedens økonomisystemer via et API (Application Programming Interface).

Moderne ERP-systemer som Microsoft Dynamics 365, SAP eller NetSuite tilbyder standardmoduler til automatisk valutaopdatering. Ved at forbinde systemet til en pålidelig datakilde via en REST-API kan systemet hente de officielle lukkekurser hver nat. Dette sikrer, at alle indgående fakturaer i fremmed valuta automatisk bogføres med den korrekte omregningskurs på transaktionsdatoen.

En typisk integration fungerer ved, at et script (eksempelvis skrevet i Python eller afviklet som en serverless funktion i cloud’en) kalder API’et, modtager data i JSON-format og opdaterer databasen. Dette reducerer tidsforbruget i finansafdelingen markant og minimerer risikoen for differencer i årsregnskabet, som skyldes forældede eller fejlagtige kursberegninger.

Ofte stillede spørgsmål

Hvorfor svinger it-budgetter på grund af valutakurser?

Mange it-ydelser, herunder cloud-hosting (AWS, Azure) og softwarelicenser (SaaS), afregnes i amerikanske dollars (USD). Når den danske krone svækkes over for dollaren, stiger de reelle udgifter i danske kroner, selvom det faktiske forbrug af it-ressourcer forbliver uændret.

Hvordan påvirker USD-kursen prisen på cloud-hosting?

Cloud-leverandører prissætter som regel deres globale infrastruktur i USD. Hvis dollarkursen stiger med f.eks. 8 % i løbet af et regnskabsår, vil den månedlige regning for cloud-hosting stige med nøjagtig samme procentsats for danske virksomheder, medmindre der er indgået en fast prisaftale.

Hvad er forskellen på en standard valutaberegner og en bank-kurs?

En standard valutaberegner viser typisk midterkursen (spotkursen) på det globale interbank-marked uden tillæg. Når man veksler penge eller betaler fakturaer gennem en erhvervsbank, pålægger banken normalt et vekselgebyr eller et kurstillæg, hvilket gør den reelle afregningskurs en smule dyrere.

Kan man automatisere valutaomregning i sit ERP-system?

Ja, de fleste moderne ERP- og økonomisystemer understøtter automatisk integration via API’er. Ved at opsætte en daglig synkronisering kan systemet automatisk hente og opdatere valutakurserne, hvilket eliminerer manuelt arbejde og sikrer præcis bogføring af udenlandske fakturaer.

Posted
Peter Hutterer
libei and graphics tablets stylus support

While you (yes, you! no, not you, the one behind you) have been sweltering in the heatwaves of the northern hemispheres (Assisted-by: AI), I've been busy adding graphics tablet support to libei. This is scheduled for the soon to be released libei 1.7.0.

The initial work was done by Jason Gerecke and Josh Dickens from Wacom, I've been extending, polishing and testing it for the last few weeks.

Also, upfront: this only covers the stylus part of a tablet, we do not yet have an implementation for the "pad" part (the buttons, dials, rings, strips).

libei is, of course, the library for Emulated Input, a good-enough transport layer for sending logical input events between processes. We're already using libei as part of the XDG Portal Remote Desktop and Input Capture portals where we've been busy hurtling key and pointer events between the participating parties (and soon gesture events and text).

In the next release of libei, we will now also have "ei stylus" capabilities, i.e. the ability to send tablet stylus events. Getting pointer, keyboard and touch events supported was a long undertaking, everything was new and shiny and needed to be added everywhere in the stack. Now that all this is in place, scuffed and scratched, adding tablet events will be quite simple.

The ei stylus interface

Here's a short outline of how libei handles tablet events because it is, of course, different to how libinput handles them. Logical events are much nicer after all than physical hardware events.

First: we have a new interface: "ei_stylus". An EIS implementation (e.g. your compositor) may provide you, the libei client, with a device that supports this interface and one or more associated regions (typically representing the available screen areas). Typically this will be a separate device to the pointer devices or the keyboard devices but it's not a requirement. The ei_stylus interface comes with a bunch of capabilities you'd expect from a stylus (tilt, pressure, distance, ...) that you can selectively enable to emulate the stylus you want to. So basically, EIS will say "here's a stylus device, I support pressure, tilt, rotation, ..." and then the libei client says "This stylus should have pressure and tilt but nothing else". And then you do the normal thing: send proximity events, send tip down/up events, send data for the various capabilities you've enabled.

Happily for the EIS implementation, libei forces the client to take the guesswork out of everything: if you select the pressure capability, you must send a pressure value when coming into proximity. Where libei is used to forward data from a physical stylus (e.g. via some remoting protocol) it is up to the client to deal with firmware bugs that e.g. won't send data until a few frames in.

Note that there is no "tablet" anywhere. The tablet is represented by the region that the device may interact with. So in some ways every tablet is an on-screen tablet (which makes sense since we have logical events).

Multiple styli

The only quirky thing is how to request multiple styli[1]: libei 1.5.0 has added a "request device" request that allows a client to say "hey, EIS, I want a new device with capabilities pointer, keyboard, ...". And, if you've been a nice client, minding your own business, the EIS implementation may just create such a device for you.

So for the case of multiple styli: if the default stylus (if any) isn't good enough, you can now tell EIS that you want a(nother) device with stylus capability, configure the stylus capabilities once the device shows up and voila, you now have a normal pen, an art pen and maybe even an airbrush represented as logical device in libei. And since they're all separate devices in the protocol, they can be individually tracked and used, much like libinput tracks individual styli.

[1] For the "lots" of users that actually use multiple styli...

Peter Hutterer
libei and gesture events

/me gestures vaguely at everything

Oh, hey, this works now? Great!

libei 1.7.0 (to be released soon) comes with a new interface: "ei_gestures" which, creatively, will allow for gestures to be sent between a libei client and an EIS implementation (typically: a Wayland compositor).

I'm not going to go too deeply into how pinch, swipe and hold gestures work, suffice to say we've had those in libinput (for touchpads) for years now so compositors and toolkits should already support those. And since libei and libinput have vaguely equivalent API layers integrating gestures for libei devices in compositors should be fairly straightforward.

The plumbing layers in the portals exist already too, so adding gestures to libei means that - once the compositors support it - we can have gestures support in remote desktop and input capture implementations without needing to update anything else. Hooray! Join in with me. Hooray! Louder! HOORAY!

For testing I had a (vibe-coded and thus immediately abandoned once testing was complete) gesturemouse utility which translates input events from a mouse into gesture events (depending which button is down). But don't let my lack of be a limit to your imagination, I'm sure you can come up with good use-cases for this.

Peter Hutterer
libei and keysym/text events

If you've been paying attention (and I know you have, because it'd be embarrassing for you if you didn't) you'd have noticed that libei 1.6 (May 2026) added support for keysym and text events.

libei sends logical events between a libei client and an EIS implementation (typically: a Wayland compositor) but the keyboard interface it had was designed like real keyboards: key codes together with an (XKB) key map. You press one key, the keymap decides what that key means on the compositor side and off we go. This is easy but not always useful.

As of 1.6.0 libei now also supports an "ei_text" interface. A compositor may choose to provide you[0] with a device that supports this interface and that gives you two really nice opportunities.

First, you can now send a key sym. Instead of sending the KEY_Q key code and hoping it actually translates to 'q' (and if there's e.g. a frenchman^Wfrenchperson lurking behind the keyboard it may mean 'a'), you can now send 'q' as actual keysym. Or 'Q' instead of sending shift+q and hoping for no french influence in the process. It becomes the EIS implementation's job to handle that keysym - if it's a shortcut it may handle it directly, otherwise it may pass it on via Wayland to an application[1]. This centralises the keysym to keycode handling in the EIS implementation which is a pain for compositor authors (though they likely have that code already for e.g. RDP support) but reduces the variety of differently-wrong implementations in clients and of course makes it so much simpler to write clients.

Second, a client can send UTF-8 text to the compositor. So instead of emulating shift, keycodes, etc. you can literally send "Hello World" and expect the EIS implementation to pass that one. Again, makes a bunch of utilities a lot simpler to write and I mostly leave it up to your imagination to figure out what to do with that.

Notably for both cases: libei is about logical events that have a specific meaning that do not need further interpretation. If a client sends 'Q' that means it is supposed to be an uppercase Q. Sending keysym Shift_L and Q makes little sense. And for the utf8 text events: how the text comes to be matters doesn't matter for libei so you may use an IM to make up the text to begin with and send it, once committed, to EIS. It's not for sending partial strings.

As mentioned in the previous post: the plumbing for this is already in place so both clients and compositors can add support for this new interface without having to bother the rest of the stack (e.g. portals). So, hooray I guess.

The text/keysym support is relatively recent so expect this to hit the next compositor version (or the one after that).

[0]: the EIS implementation decides which devices are available and arguing about this is even less useful than arguing with a world cup ref
[1]: after converting it to a key code with possible keymap changes... but hey, such is life