Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  • Rules

    Uncategorized programming bash csh ksh fish opensource fork
    1
    1
    0 Votes
    1 Posts
    0 Views
    Rules* Never execute scripts from the internet* Never execute scripts as root if you do not know what they do#Programming #bash #sh #csh #ksh #fish #OpenSource #fork #bomb #forkbomb https://www.cyberciti.biz/faq/understanding-bash-fork-bomb/
  • 0 Votes
    4 Posts
    0 Views
    @arclight Thanks for the insight.
  • Quick question:

    Uncategorized programming terminal gifs
    1
    0 Votes
    1 Posts
    2 Views
    Quick question: I've seen a lot of programming gifs (screen-recorded gifs of terminals). Which tool(s) are used to create those?#programming #terminal #gifs
  • 0 Votes
    2 Posts
    2 Views
    @Dendrobatus_Azureus @mirabilos has been doing a great work for a long time, here
  • 0 Votes
    1 Posts
    3 Views
    OpenBSD v7.8 is released in the world!#OpenBSD #BSD #Unix #OpenSource #POSIX #Programming https://www.openbsd.org/78.html
  • 0 Votes
    4 Posts
    5 Views
    @G3rt capito grazie.
  • 0 Votes
    1 Posts
    2 Views
    Then: The Internet is designed to route around failure. Now: The Internet is five companies and one of them is broken. #aws #programming #networking
  • #programming

    Uncategorized programming
    1
    1
    0 Votes
    1 Posts
    3 Views
    #programming
  • 0 Votes
    1 Posts
    2 Views
    cross-posted from: https://lemmy.dbzer0.com/post/55628224 I’ve been thinking about discovering underappreciated Lemmy instances. GitHub’s awesome-lemmy-instances used to serve a similar purpose, but it hasn’t been updated in a long time, and I haven’t found anything else like it. I got the idea from this post about finding decentralized communities in the Fediverse. I’m thinking of a Lemmy bot that tracks Lemmy instances, calculates the average number of active users and standard deviation, and identifies instances with activity below the average plus two standard deviations. It would then rank these underutilized instances by performance metrics like uptime and response time, and periodically update a curated list on Lemmy to guide users toward instances that could use more participation. I'd love feedback on how you would go about doing something like this. And specifically how to rank by performance.
  • 0 Votes
    4 Posts
    4 Views
    @rperezrosario I assumed programmer+fediverse=Linux, because that's my feed. But, also, over the three+decades I've been working in tech, I've seen more and more devs being Linux first devs, to the point where the company I work for now has been almost entirely Linux users among the dev team. I don't keep close tabs on everyone, but when it comes up, it's more Linux than anything else, with MacOS second. Everything cloud and web is Linux native, so it's all easier on Linux.
  • 0 Votes
    3 Posts
    5 Views
    @stefano @nixCraft @imil Here on Debian {in MX Linux} I had to add the following tools since the machine is not configured for programmingbmake`apt install bmake`bsdtar`apt install libarchive-tools`then success>> log# $ ./startnb.sh -f etc/sshd.conf* using console: vioconusing QEMU version 7.2.19 (Debian 1:7.2+dfsg-7+deb12u16)[ 1.0000000] NetBSD 11.99.3 (MICROVM) Notice: this software is protected by copyright[ 1.0000000] Detecting hardware... (QBOOT 000000000000)[ 1.0257426] done.[ 1.0345973] kernel boot time: 51msCreated tmpfs /dev (1835008 byte, 3552 inodes)add net default: gateway 10.0.2.2Starting sshd.Server listening on :: port 22.Server listening on 0.0.0.0 port 22.>> End of log^ZI pressed ^C to enter the server to add the needed passwords for the user and rootlogin was a success then#netBSD #BSD #UNIX #OpenSource #programming #quemu #bash #sh
  • 0 Votes
    1 Posts
    3 Views
    The software that takes one developer 30 days to create, cannot be developed by 30 developers in 1 day. #mythicalmanmonth #programming
  • 0 Votes
    9 Posts
    6 Views
    @andre123 😊🙏🙏🙏
  • 0 Votes
    2 Posts
    3 Views
    @codeDude64Who's that girl?Nice thumb area!
  • 0 Votes
    1 Posts
    4 Views
    I've been only able to read this IT note today due to band with constraints. It read like a Stephen King short. Horrific!IMHO, In my humble opinion, the company involved used tactics that I can describe as blatantly criminal.I have some stories and I may talk about one in another post, using similar of obfuscation techniquesYou would be wise to read this story at least twice.Read between the lines.Observe that the company was selling open source services yet used criminal tactics to keep people locked inLinkhttps://it-notes.dragas.net/2025/10/08/the-email-they-shouldnt-have-read/#Story #Stefano #horrible #ethics #unethical #OpenSource #programming #vendor #lockin
  • 0 Votes
    3 Posts
    4 Views
    @etam Good ones.
  • 0 Votes
    1 Posts
    3 Views
    Yeah ok so my experiment was successful, and my toy raytracer now runs on JIT-compiled "shaders" lmao#programming #rust #raytracing #retro
  • 0 Votes
    1 Posts
    2 Views
    spdlog 1.16 released #programming https://github.com/gabime/spdlog/releases/tag/v1.16.0
  • 0 Votes
    3 Posts
    3 Views
    Summary of A Philosophy of Software Design by John Ousterhout Source: danlebrero.com These are notes by Daniel Lebrero Berna on John Ousterhout’s A Philosophy of Software Design. Some advice in the book goes against the current software dogma. The current dogma is the result of previous pains, but has now been taken to the extreme, causing new pains. What the author solves with “Comment-First Development,” others solve with Test-Driven Development. The excuses for not writing comments mirror those for not writing tests. Key Insights It’s easier to see design problems in someone else’s code than your own. Total complexity = Σ(complexity of part × time spent on that part). Goal of good design: make the system obvious. Complexity accumulates incrementally, making it hard to remove. Adopt a “zero tolerance” philosophy. Better modules: interface much simpler than implementation (Deep modules). Design modules around required knowledge, not task order. Adjacent layers with similar abstractions are a red flag. Prioritize simple interfaces over simple implementations. Each method should do one thing and do it completely. Long methods are fine if the signature is simple and the code easy to read. Difficulty naming a method may indicate unclear design. Comments should add precision or intuition. If you aren’t improving the design when changing code, you’re probably making it worse. Comments belong in the code, not commit logs. Poor designers spend most of their time chasing bugs in brittle code. Preface The most fundamental problem in computer science is problem decomposition. The book is an opinion piece. The goal: reduce complexity. 1. Introduction (It’s All About Complexity) Fight complexity by simplifying and encapsulating it in modules. Software design is never finished. Design flaws are easier to see in others’ code. 2. The Nature of Complexity Complexity = what makes code hard to understand or modify. Total complexity depends on time spent in each part. Complexity is more obvious to readers than writers. Symptoms: change amplification, cognitive load, unknown unknowns. Causes: dependencies, obscurity. Complexity accumulates incrementally; remove it aggressively. 3. Working Code Isn’t Enough Distinguish tactical (short-term) from strategic (long-term) programming. The “tactical tornado” writes lots of code fast but increases complexity. 4. Modules Should Be Deep A module = interface + implementation. Deep modules have simple interfaces, complex implementations. Interface = what clients must know (formal + informal). Avoid “classitis”: too many small classes increase system complexity. Interfaces should make the common case simple. 5. Information Hiding (and Leakage) Information hiding is key to deep modules. Avoid temporal decomposition (ordering-based design). Larger classes can improve information hiding. 6. General-Purpose Modules Are Deeper Make modules somewhat general-purpose. Implementation fits current needs; interface supports future reuse. Questions to balance generality: What is the simplest interface covering current needs? How many times will it be used? Is the API simple for current use? If not, it’s too general. 7. Different Layer, Different Abstraction Adjacent layers with similar abstractions are a red flag. Pass-through methods and variables add no value. Fix pass-throughs by grouping related data or using shared/context objects. 8. Pull Complexity Downwards Prefer simple interfaces over simple implementations. Push complexity into lower layers. Avoid configuration parameters; compute reasonable defaults automatically. 9. Better Together or Better Apart? Combine elements when they: Share information. Are used together. Overlap conceptually. Simplify interfaces or eliminate duplication. Developers often split methods too much. Methods can be long if they are cohesive and clear. Red flag: one component requires understanding another’s implementation. 10. Define Errors Out of Existence Exception handling increases complexity. Reduce exception points by: Designing APIs that eliminate exceptional cases. Handling exceptions at low levels. Aggregating exceptions into a common type. Crashing when appropriate. 11. Design It Twice Explore at least two radically different designs before choosing. 12. Why Write Comments? The Four Excuses Writing comments improves design and can be enjoyable. Excuses: “Good code is self-documenting.” False. “No time to write comments.” It’s an investment. “Comments get outdated.” Update them. “Comments are worthless.” Learn to write better ones. 13. Comments Should Describe Things That Aren’t Obvious Comments should add precision and intuition. Document both interface and implementation. 14. Choosing Names Names should be precise and consistent. If naming is hard, the design likely isn’t clean. 15. Write the Comment First Like TDD, comment-first helps design, pacing, and clarity. 16. Modifying Existing Code Always improve design when changing code. Comments belong in code, not commit logs. 17. Consistency Don’t “improve” existing conventions without strong reason. 19. Software Trends Agile and TDD often promote tactical programming. 20. Designing for Performance Simpler code tends to be faster. Design around the critical path. 21. Conclusion Poor designers spend their time debugging brittle systems.
  • 0 Votes
    1 Posts
    3 Views
    Fixing some stuff & adding reflections to my raytracer (along with capping nested traces at a maximum number of bounces)#programming #rust #raytracing #retro

Gli ultimi otto messaggi ricevuti dalla Federazione
  • @dado ahah no no, niente ricette pronte 😄
    Serve studiare un po’ e capire come Fail2Ban “ragiona” 👀
    Io mi limito a costruire le jail bene, poi lui fa il resto...
    diciamo che più che copiare, è meglio imparare l’arte 😎🔧

    Ogni server ha il suo carattere… il mio morde 🐺💥

    read more

  • @snow hai degli esempi? Così da prendere spunto :)

    read more

  • @dado No, una volta creato opportunamente le jail faccio fare a fail2ban

    read more

  • @snow @DigiDavidex hai blacklistato dei domini specifici? IP da fail2ban?

    read more

  • 📜 Cronache dal fronte digitale — i G.A.F.A.M. tornano a bussare ⚔️

    🛡️ Odissea contro i G.A.F.A.M. — e come li ho rimandati a casa (bannati) 🚪🔥

    Da anni navigo nel Fediverso come un vecchio lupo di mare 🐺⚓ — server miei, regole mie.
    Quando i grandi visitatori indesiderati (sì, voi — Google, Amazon, Facebook, Apple, Microsoft 🕵️‍♂️) bussano per curiosare, non offro biscotti 🍪… ma un bel ban servito caldo da Fail2Ban. ☕💣

    Non è paranoia, è cura. I miei server non sono vetrine da scannerizzare: chi tenta forza bruta o scansioni a raffica trova solo porte chiuse e un log che segna “addio”. 🚫📜

    Le recidive? Ah, quelle le tengo care… chi ritorna, resta fuori a lungo — giusto il tempo per riflettere sotto la pioggia digitale. 🌧️🕳️

    Per chi vive nel #Fediverso e ama il #SelfHosting: ricordate, un buon Fail2Ban è come un cane fedele alla porta. Il mio, quando abbaia, non sbaglia. 🐶🔐

    Snow, comandante della piccola flotta Snowfan ⚔️✨
    #privacy #fail2ban #fediverso #selfhosted

    read more

  • @TorbenMau

    Hi! It's on FairTube: https://fair.tube/w/nQ1yvybVW65iUuiX6xmRJQ

    and sorry I have yet to consolidate all the videos on my PeerTube / site. Thanks for the kind words ❤️

    @melaniebartos @JohannesStarke

    read more

  • @WeirdWriter @rysiek

    These two paragraphs struck me in particular:

    > That’s in stark contrast to, say, Google+, which despite corporate backing, incomparably larger budget, and being pushed down people’s throats through forced integration with YouTube, survived mere seven years, nine months, and a week.

    Because unfortunately Google probably doesn't see that as a problem. Or even as the Fedi winning. For them, longetivity doesn't matter, but peak user count.

    > And once it shut down, it shut down. A social network of millions just blipped out of existence one day. All those moments – lost in time, like tears in rain.

    This, too, for them is a good thing. No-one else can profit from "their" data.

    This just makes it so crystal clear how the big one's interests aren't aligned with ours. Google+ wasn't really failing in their book, it had served its purpose and then ceased to do so. To us, this is loss. To Google this is just business.

    read more

  • These waves once carried laughter, summer picnics, and carefree days. The coast was alive, a place families came to relax and dream. Now, tents stretch along the shore where children once played, and the sea witnesses stories of survival instead of joy. Life goes on, but everything else has changed.

    read more
Post suggeriti