
Released: #swad v0.1
Looking for a simple way to add #authentication to your #nginx reverse proxy? Then swad *could* be for you!
swad is the "Simple Web Authentication Daemon", written in pure #C (+ #POSIX) with almost no external dependencies. #TLS support requires #OpenSSL (or #LibreSSL). It's designed to work with nginx' "auth_request" module and offers authentication using a #cookie and a login form.
Well, this is a first release and you can tell by the version number it isn't "complete" yet. Most notably, only one single credentials checker is implemented: #PAM. But as pam already allows pretty flexible configuration, I already consider this pretty useful
If you want to know more, read here:
https://github.com/Zirias/swad
I’m interested in seeing Fedi’s opinion on this. Also reply with a more detailed opinion and your language of choice if you feel so inclined. Boost if you are interested in this too.
When my compiler reports an error, I most often see this as:
Show HN: Corral – A Visual Logic Puzzle About Enclosing Numbers
https://mohammed321.github.io/projects/corral_web/index.html
#ycombinator #programming #examples #html5 #C #library #learn #games #videogames
https://www.europesays.com/1970869/ Sungrow Organizes Madrid Conference to Support Spain’s Renewable Energy Goals with C&I and Hybrid Energy Solutions #c&i #CleanEnergy #europe #HybridEnergy #PV+ESS #RenewableEnergy #RenewableEnergy #SolarEnergy #spain #Sungrow #sustainability
Did you ever dream to write your own videogame for the #SEGA #MasterSystem?
xfixium has released a *complete* #video #tutorial: "Make Your Own Game with #devkitSMS" where he creates a Ms. Pac-Man clone using the #C language!
The whole series is here: https://www.youtube.com/watch?v=9jGkoHX3BSk&list=PLBYs5vZbDPv6UPqtU_deDSihZjeoCkUsS&index=1 and you also can download the ROM (for free) here: https://www.smspower.org/Homebrew/MsPacManClassic-SMS , with the whole source code freely available here: https://github.com/xfixium/SMS-Ms-Pac-Man
This weeks #C and #Linux post. Remember, I too am learning as I create these series of posts, please point out errors if you find them.
C Post: https://www.spsanderson.com/steveondata/posts/2025-04-02/
Linux Post: https://www.spsanderson.com/steveondata/posts/2025-04-04/
This weeks #C and #Linux post. Remember, I too am learning as I create these series of posts, please point out errors if you find them.
C Post: https://www.spsanderson.com/steveondata/posts/2025-04-02/
Linux Post: https://www.spsanderson.com/steveondata/posts/2025-04-04/
Neu in .NET 9.0 [15]: Vektorumwandlungen
Für die Vektortypen in .NET gibt es neue Konvertierungsmethoden.
https://www.europesays.com/fr/1748/ David Hallyday annonce qu’il s’apprête à être grand-père pour la deuxième fois #C’estMerveilleux #DavidHallyday #Divertissement #Entertainment #EstelleLefebure #FR #France #GrandPère #Heureuxévénement #JohnnyHallyday
I've made a fraction-based calculator, for simplifying rational expressions (written in ANSI-C using vi)
I was aiming to merge a scientific calculator with "bc", because I often need to simplify various fractions and whatnot. Quite happy with the result!
Uses shunting yard algorithm to evaluate the expressions, and a naive descent parser (I think?) to tokenise
Aside: OpenBSD's "editline" is very easy to use
Please ask any questions :)
I wonder what would a c clone, like a c++ that is, instead of being object oriented, it was functional, like a cλλ, like inline assembly with category theory whitepaper code. That would be the most language ever. Like no side effects, with totally side effects. Like it also has some object stuff like how c++ is supposed to have some but it's just a featureful struct. I'm genuinely curious, morbidly. #programming #c #cpp #haskell #programminglanguages #doesanybodylikethis #insanity #darkwoke
Hawkmoth v0.20 is out!
Hawkmoth is a Sphinx extension to import C and C++ documentation comments into Sphinx based documentation.
The main new feature in this release is automatic configuration of the system header search paths. Unfortunately, libclang does not get them right out of the box on most distros, so we have to help it a little.
Fixed cancelling a thread job in #poser's #threadpool. Using a semaphore to do this seems reliable
Oh my. #Multithreading, #synchronization, async #Unix #signals, this is pure "fun" ...
https://github.com/Zirias/poser/commit/aa4e02b728a549f0e3c4687750b90749d48fcfdc
DId lots of smaller improvements to #swad ... but first, I had to hunt down a crash . Finally found it was caused by my #poser lib (to be fixed later): A connection there can resolve the hostname of a remote end and does so in a thread job to avoid blocking. If the connection dies meanwhile, the job is canceled. Seems my canceling mechanism relying on a signal to the thread is, well, not reliable (the signal can arrive delayed). Ok, for now just disabled name resolution to sidestep that.
Now, integration with #nginx is much better. I intrdoduced (optional) custom headers to transport the authentication realm and the redirect URI, plus state management in the session, so these can be passed to the "auth" endpoint. This requires to make sure nginx always passes the session #cookie, Unfortunately, I still need a "hacky" redirect configuration for login in nginx. If auth_request could just pass the response body, this would be unnecessary ....
The nginx configuration shows #swad running on "files" and another nginx running on "wwwint" serving #poudriere output there. This nginx instance helpfully adds cache hints, which I have to override, so a redirect works as expected when for example the swad session times out.
arena: Arena Allocator implementation in pure C as an stb-style single-file library via @RunxiYu https://lobste.rs/s/vslqmv #c
https://github.com/tsoding/arena
While implementing complex numbers for #simd I tripped over failures wrt. negative zero. After multiple re-readings of C23 Annex G and considering the meaning of infinite infinities on a 2D plane (with zeros simply being their inverse) I believe #C and #CPlusPlus should ignore the sign of zeros and infinities in their x+iy representations of complex numbers. https://compiler-explorer.com/z/YavE4MnMj provides some motivation.
Am I missing something?
Datadog is hiring Senior Software Engineer - OpenTelemetry Agent
#c #cplusplus #golang #java #rust #dotnet #seniorengineer
Paris, France
Full-time
Datadog
Job details https://jobsfordevelopers.com/jobs/senior-software-engineer-opentelemetry-agent-at-datadoghq-com-feb-3-2025-68fa80?utm_source=mastodon.world&utm_medium=social&utm_campaign=posting
#jobalert #jobsearch #hiring