flipboard.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Welcome to Flipboard on Mastodon. A place for our community of curators and enthusiasts to inform and inspire each other. If you'd like to join please request an invitation via the sign-up page.

Administered by:

Server stats:

1.2K
active users

#c

58 posts45 participants7 posts today

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:
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:

#rust#cpp#c

🌘 擴充緩衝區以避免資料複製
➤ 提升 C++ 應用程式效能的關鍵技巧
johnnysswlab.com/growing-buffe
Johnny's Software Lab 探討了在 C++ 中擴充緩衝區以避免不必要的資料複製的技巧。文章指出,資料複製在某些情況下可能非常耗費資源,因此盡量避免是效能優化的重要策略。在 C 語言中,`realloc` 函數可以擴充緩衝區,但 C++ 缺乏等效功能,需要透過自訂容器或模擬 `realloc` 的行為來實現。文章詳細探討了在 Linux 和 Windows 平臺上實現擴充緩衝區的策略,包括使用 `mmap` 和 `VirtualAlloc` 等系統呼叫,並介紹了 jemalloc 提供的相關功能。最後,作者分享了一個簡單的 `jsl::vector` 實作,展示了在擴充緩衝區時避免複製的實際效果。
+ 這篇文章深入淺出地解釋了緩衝區擴充的原理和實際操作,對於想提升 C++ 效能的工程師來說非常有幫助。
+ 我一直苦惱於資料複製的
#C++效能 #記憶體管理 #最佳化

Johnny's Software Lab · Growing Buffers to Avoid Copying Data - Johnny's Software LabCopying data can be expensive in some cases, especially since it it doesn’t change the data, it’s just moves it. Therefore we, engineers interested in performance, want to avoid copying data as much as possible. We already talked about avoiding data copying in C++ earlier. In that post, we talked about what mechanism C++ has… Read

Level 2 Diploma in Electrical Installation (C&G 2365-02) London
⚡ Start Your Electrical Career with C&G Level 2 Diploma!
Hands-on training in electrical installation (buildings & structures).

Duration: Approximately 24 weeks

Minimum age: 16+

SmartScreen LMS 

In-centre workshops 
📍 Location| 📆 Enroll for April-May 2025
📞 Call Now: 0203 062 4555 | or click Register Here 👈

#electrical installation diploma, #C&G 2365-02 course UK,
#ElectricalTraining #City and Guild 2365 #ElectricianCareers