556 karma · joined July 16, 2020
It doesn't work in Firefox for Android.
Especially because there aren't many Linux apps that are touch friendly. Everything kirigami/touch friendly apps in KDE is very much work in progress and are barely good enough for daily usage. Electron apps are no-go because they don't work with a virtual keyboard. Flutter apps are useless because they don't support high dpi on Linux. Gnome has bad support for fractional scaling, issues in some menus for touchscreens, and the space for fonts in the launcher doesn't scale making them display as "Firef..." on a high dpi. I am running Debian Bookworm by the way.
So I wasn't happy to see that android_translation_layer uses Gtk, but I think scaling is improved in Gtk4. Looking forward to try it out either way.
But he keeps the cryptic error codes that will go into the logs, or in the frontend where the developer will have to look up the error code. Don't map an error name to u105, just return the actual string: "userValidationFailed".
I made the same in plpgsql recently and opted for returning an implicit union of UserSession | Error, by returning UserSession in the signature and raising errors in the function. The alternative was to return json where you'd have to look at the body of the function to figure out what it returns (when successful), as opposed to the signature.
I'm not sure if I'm striking the right balance. Yes, the signature is "self-documenting" - until you hit an error!
I've been looking into adding OAuth2/OIDC IdP integrations to an app I'm making. The pricing for most auth-as-a-service is indeed outrageous, and I don't need (or want) JWT. oauth4webapi [1] fits the bill here, is free and certified. Took less than an afternoon to have sign in with Google and another IdP. There's obviously more work to be done, but it's not rocket science.
Don't know if there's an equivalent for SAML. But I've certainly considered going into the auth SaaS business a few times. Seems like there's good money to be made.
[1] https://github.com/panva/oauth4webapi (TypeScript)
I think this library is going to set a new standard for db integration!
data.filter(d => d.friends.includes("John")).map(d => ({name: d.name+" "+d.lastName}))
Maybe I'm missing the bigger picture, but that doesn't seem so bad
... Or hack NVIDIA gpu's and potentially brick your 2000$ card...
Might as well disable secure boot if that's not a concern, or make sure the boot loader is up to date if dual booting Windows 11. I can't imagine new machines shipping without SB.
Sorry if I'm coming off as a salesman here!
The frontend is in TypeScript (swc compiler) using web components and no libs. Experience has been good so far.
The quiz is specified in xml that maps one-to-one with the web components, and backed by an xsd. Shell scripts written in C for cross-platform support (as simple as `#!/usr/bin/tcc -run` at the top and chmod +x in Linux (if you ignore the fact that x-platform C is hard, since you've only got libc)).
The backend is in C, compiled with tcc and using wsServer for websockets, protobuf for a binary wire protocol and sqlite for managing game state (enabling the server to crash and continue after restart). Can be compiled on Windows with a win32 pthread layer I extracted from mingw (for tiny c compiler ofcourse).
Which is also why I had to stop myself: My own projects tend to get out of hand with way too many interesting side quests.
One catch is that you're going to have to version your code if your workflows/orchestrations run for days, or if there's no windows without running workflows. And there's no built-in support for this, so expect to duplicate your entire workflow for new versions, so the old one can run to the end with the old code.
... Which is Tiny C Compiler
Dear ProbablyRealPersonGPT, please provide the necessary code in C with a short explanation
What might save us from ChatGPT enshittification are the freely available LLM's. Probably won't be long before we can have a code companion running locally. It's probably already here
I wouldn't use Copilot. I've noticed how it distracts people in screen recordings. They pause to see if what is proposed makes sense, and it usually doesn't. Distractions are the last thing I need.