Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)PC
Posts
37
Comments
165
Joined
2 yr. ago
  • Self hosting emails is a pain, but I've been doing it for almost 2 years and I do not have any of these issues. I'm not an expert either, I just thoroughly followed a tutorial to properly configure dmarc, dkim and everything else and everything just works (I just hope I'm not jinxing it by writing this :D )

  • There are a few things I don't like about this scoring system :

    • Why is there a "Top Provider Content Share" metric if its gonna score the same as the "Top Provider User Share" every time ?
    • Why is the Top Provider Content Share not higher than the user share ? For instance, emails usually have at least one sender and one recipient, making it twice as likely that at least one of them is using gmail. If an email has 10 recipients across 10 different providers, each provider has a copy of the data
    • Why is ease of hosting a mail server rated so well ? How is "leveraging email hosting services" decentralized in any way ?
    • Why are we using a random repo created a few hours ago by a random github user as a reference ?
  • AI @lemmy.ml
    pcouy @lemmy.pierre-couy.fr

    Livestream of my RL agent training on Super Mario Bros

    twitch.tv pcouy_ - Twitch

    Hey there, I’m Pierre Couy, a professional software developer and computer science teacher who’s passionate about computer-related stuff.This stream shows the training process of a deep reinforcement learning agent I've programmed from scratch. It has no prior knowledge about anything

    pcouy_ - Twitch

    publication croisée depuis : https://lemmy.pierre-couy.fr/post/1059609

    Hey everyone!

    I've been working on my own toy reinforcement learning (RL) framework for a while now and have nearly implemented a full Rainbow agent—though I'm still missing the distributional component due to some design choices that make integration tricky. Along the way, I’ve used this framework to experiment with various concepts, mainly reward normalization strategies and exploration policies.

    I started by training the agent on simpler games like Snake, but things got really interesting when I moved on to Super Mario Bros. Watching the agent learn and improve has been incredibly fun, so I figured—why not share the experience? That’s why I’m streaming the learning process live!

    Right now, the stream is fairly simple, but I plan to enhance it with overlays showing key details about the training run—such as hyperparameters, training steps/episodes, performance graphs, and maybe even a way to visualize the age

  • Alternatively, if your databases are on a filesystem that supports snapshots (LVM, btrfs or ZFS for instance), you can make a snapshot of the filesystem, mount the snapshot and backup thame database from it. This will ensure the backup is consistent with itself (the backed up directory was not written to between the beginning and the end of the backup)

  • The shell management command now automatically imports models from all installed apps. [...] This behavior can be customized to add or remove automatic imports.

    https://docs.djangoproject.com/en/dev/releases/5.2/

    This is really cool, I've been using a third party extension for this purpose

  • Because you either need an announce URL or publishing your torrent to the DHT for your friends to be able to peer with you.

    Seeding copyrighted material using a public announce URL or the DHT will get you in trouble in most western countries.

  • Enabling multi DC redundancy is really easy though. The other providers you mentioned may have it by default, but they're also a lot more expensive.

    I love that they let me pick my own redundancy strategy, without forcing me to pay for theirs

  • border-radius: max(0px, min(8px, calc( (100vw - 4px - 100%) * 9999)) );

    Oh I missed this. I think it's only here to showcase doing math between different units, which is really nice in my opinion. I'm thinking about a few instances where I had to resort to dirty JS hacks just because CSS did not support this at the time

  • We still see somewhat old browsers, especially from people using Safari on Apple devices (because IIRC it only updates when you update the whole OS). But it's a lot better than it used to be thanks to most browser having auto-updates

  • I'm not sure how this relates to the shared post. I'm just searched the article for "radius" and only found one example where a variable is defined then used later. Were you talking about this ? Or can you clarify what "radius calculation" you hate ?

  • Programming @programming.dev
    pcouy @lemmy.pierre-couy.fr

    Goodbye SASS, welcome back native CSS

  • Well it's in the name, they are code smells, not hard rules.

    Regarding the specific example you cited, I think that with practice it becomes gradually more natural to write reusable functions and methods on the first iteration, removing the need for later DRY-related refactorings.

    PS : I love how your quote for the Rule of Three is getting syntax highlighted xD (You can use markdown quotes by starting quoted lines with > )

  • Let's rephrase my opinion, so that we can (hopefully) agree on something : What I'm arguing against is the "ChatGPT-style" (or "tutorial-style") comments that I've seen all over juniors' code, even before LLMs got widespread

  • I'm not sure how we disagree. At least, I don't disagree with you. My whole comment was talking about "what" comments. "Why" comments are a very good thing to have where they're needed

  • That's not what I said. I said that comments can often (but not always) be replaced with good and explicit names.

    This can be pushed to some extreme by making functions that only get called at a single place in the code, just for the sake of being able to give a name to the code that's inside (instead of inlining it and adding a comment that conveys the same informations as the function's signature)

    It's definetly not for everyone, but for beginners/juniors it gives something objective they can aim for when trying to build good coding habits

  • Programming @programming.dev
    pcouy @lemmy.pierre-couy.fr
    luzkan.github.io Code Smells Catalog

    A collection of Bad Code Smells in a Catalog form for Developers & Researchers. Code Smell is a typical bad code implementation, and learning these concepts immiedietly makes you a better developer!

    Code Smells Catalog
    Programming @programming.dev
    pcouy @lemmy.pierre-couy.fr
    ruudvanasseldonk.com The yaml document from hell

    As a data format, yaml is extremely complicated and it has many footguns. In this post I explain some of those pitfalls by means of an example, and I suggest a few simpler and safer yaml alternatives.

    A 10 minute read covering some YAML edge-cases that you should have in mind when writing complex YAML files

    Programming @programming.dev
    pcouy @lemmy.pierre-couy.fr

    How to shuffle songs? - Spotify Engineering

    This (old) post details how to interfere with randomness to make it feel more random to the end user.

    This reminded me of how many games “cheat” in a similar way to make critical hits seem more fair (increase the probability when it has not triggered for too long and decrease it when it just triggered)

    Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ @lemmy.dbzer0.com
    pcouy @lemmy.pierre-couy.fr

    VPS provider to host a cheap WireGuard relay for torrenting

    I'm looking for a cloud provider with a cheap VPS offer to host my own wireguard relay and use it to seed.

    I've read that Switzerland is safe for torrenting, so I was thinking about using Infomaniak. Does anyone has experience with seeding torrents from their IP addresses ? I'm also interested in other suggestions.

    Thank you :)

    Self-hosting @slrpnk.net
    pcouy @lemmy.pierre-couy.fr

    Let's Encrypt is 10 years old today !

    letsencrypt.org Let's Encrypt

    Let's Encrypt is a free, automated, and open Certificate Authority brought to you by the nonprofit Internet Security Research Group (ISRG). Read all about our nonprofit work this year in our 2024 Annual Report.

    Let's Encrypt

    publication croisée depuis : https://lemmy.pierre-couy.fr/post/805239

    Happy birthday to Let's Encrypt !

    Huge thanks to everyone involved in making HTTPS available to everyone for free !

    Selfhosted @lemmy.world
    pcouy @lemmy.pierre-couy.fr

    Let's Encrypt is 10 years old today !

    letsencrypt.org Let's Encrypt

    Let's Encrypt is a free, automated, and open certificate authority brought to you by the nonprofit Internet Security Research Group (ISRG). Read all about our nonprofit work this year in our 2023 Annual Report.

    Let's Encrypt

    publication croisée depuis : https://lemmy.pierre-couy.fr/post/805239

    Happy birthday to Let's Encrypt !

    Huge thanks to everyone involved in making HTTPS available to everyone for free !

    Technology @beehaw.org
    pcouy @lemmy.pierre-couy.fr

    Let's Encrypt is 10 years old today !

    letsencrypt.org Let's Encrypt

    Let's Encrypt is a free, automated, and open certificate authority brought to you by the nonprofit Internet Security Research Group (ISRG). Read all about our nonprofit work this year in our 2023 Annual Report.

    Let's Encrypt

    publication croisée depuis : https://lemmy.pierre-couy.fr/post/805239

    Happy birthday to Let's Encrypt !

    Huge thanks to everyone involved in making HTTPS available to everyone for free !

    Technology @lemmy.world
    pcouy @lemmy.pierre-couy.fr

    Let's Encrypt is 10 years old today !

    letsencrypt.org Let's Encrypt

    Let's Encrypt is a free, automated, and open certificate authority brought to you by the nonprofit Internet Security Research Group (ISRG). Read all about our nonprofit work this year in our 2023 Annual Report.

    Let's Encrypt

    Happy birthday to Let's Encrypt !

    Huge thanks to everyone involved in making HTTPS available to everyone for free !

    GPU @programming.dev
    pcouy @lemmy.pierre-couy.fr

    Neural Network prototype on Shadertoy - Interactive handwritten digits classifier

    I've kept playing with shader programming and managed to export a trained neural network's weights as GLSL variable definitions. The code is ugly as hell as I've done a lot of quick experiments with it, and I went all-in with macros where functions would probably be better suited. I hope you still find it interesting.

    Excluding neural network weights, the whole thing is ~300 lines of code and can run a few variations of a simple convolutional network.

    Blogging @programming.dev
    pcouy @lemmy.pierre-couy.fr

    Mitosis in the Gray-Scott model : an introduction to writing shader-based chemical simulations

    cross-posted from: https://lemmy.pierre-couy.fr/post/678825

    Hi ! I've been working on this article for the past few days. It would mean a lot to me if you could provide some feedback.

    It is about implementing a physico-chemical simulation as my first attempt to write a shader. The code is surprisingly simple and short (less than 100 lines). The "Prerequisite" and "Update rules" sections, however, may need some adjustments to make them clearer.

    Thanks for reading

    GPU @programming.dev
    pcouy @lemmy.pierre-couy.fr

    Mitosis in the Gray-Scott model : an introduction to writing shader-based chemical simulations

    cross-posted from: https://lemmy.pierre-couy.fr/post/678825

    Hi ! I've been working on this article for the past few days. It would mean a lot to me if you could provide some feedback.

    It is about implementing a physico-chemical simulation as my first attempt to write a shader. The code is surprisingly simple and short (less than 100 lines). The "Prerequisite" and "Update rules" sections, however, may need some adjustments to make them clearer.

    Thanks for reading

    For all your programming needs @lemmygrad.ml
    pcouy @lemmy.pierre-couy.fr

    Mitosis in the Gray-Scott model : an introduction to writing shader-based chemical simulations

    cross-posted from: https://lemmy.pierre-couy.fr/post/678825

    Hi ! I've been working on this article for the past few days. It would mean a lot to me if you could provide some feedback.

    It is about implementing a physico-chemical simulation as my first attempt to write a shader. The code is surprisingly simple and short (less than 100 lines). The "Prerequisite" and "Update rules" sections, however, may need some adjustments to make them clearer.

    Thanks for reading

    Programming @beehaw.org
    pcouy @lemmy.pierre-couy.fr

    cross-posted from: https://lemmy.pierre-couy.fr/post/678825

    Hi ! I've been working on this article for the past few days. It would mean a lot to me if you could provide some feedback.

    It is about implementing a physico-chemical simulation as my first attempt to write a shader. The code is surprisingly simple and short (less than 100 lines). The "Prerequisite" and "Update rules" sections, however, may need some adjustments to make them clearer.

    Thanks for reading

    Programming @programming.dev
    pcouy @lemmy.pierre-couy.fr

    Mitosis in the Gray-Scott model : an introduction to writing shader-based chemical simulations

    Hi ! I've been working on this article for the past few days. It would mean a lot to me if you could provide some feedback.

    It is about implementing a physico-chemical simulation as my first attempt to write a shader. The code is surprisingly simple and short (less than 100 lines). The "Prerequisite" and "Update rules" sections, however, may need some adjustments to make them clearer.

    Thanks for reading

    Privacy Guides @lemmy.one
    pcouy @lemmy.pierre-couy.fr

    publication croisée depuis : https://lemmy.pierre-couy.fr/post/653426

    This is a guide I wrote for Immich's documentation. It features some Immich specific parts, but should be quite easy to adapt to other use cases.

    It is also possible (and not technically hard) to self-host a protomaps release, but this would require 100GB+ of disk space (which I can't spare right now). The main advantages of this guide over hosting a full tile server are :

    • it's a single nginx config file to deploy
    • it saves you some storage space since you're only hosting tiles you've previously viewed. You can also tweak the maximum cache size to your needs
    • it is easy to configure a trade-off between map freshness and privacy by tweaking the cache expiration delay

    If you try to follow it, please send me some feedback on the content and the wording, so I can improve it

    Privacy @lemmy.ml
    pcouy @lemmy.pierre-couy.fr

    Increase privacy by using nginx as a caching proxy in front of a map tile server

    This is a guide I wrote for Immich's documentation. It features some Immich specific parts, but should be quite easy to adapt to other use cases.

    It is also possible (and not technically hard) to self-host a protomaps release, but this would require 100GB+ of disk space (which I can't spare right now). The main advantages of this guide over hosting a full tile server are :

    • it's a single nginx config file to deploy
    • it saves you some storage space since you're only hosting tiles you've previously viewed. You can also tweak the maximum cache size to your needs
    • it is easy to configure a trade-off between map freshness and privacy by tweaking the cache expiration delay

    If you try to follow it, please send me some feedback on the content and the wording, so I can improve it

    Fediverse @lemmy.ml
    pcouy @lemmy.pierre-couy.fr

    Lots of dead Lemmy/Kbin domains have CNAME records pointing to the same domain parking company

    publication croisée depuis : https://lemmy.pierre-couy.fr/post/584644

    While monitoring my Pi-Hole logs today, I noticed a bunch of queries for XXXXXX.bodis.com, where XXXXXX are numbers. I saw a few variations for the numbers, each one being queried several times.

    Digging further, I found out these queries were caused by CNAME records on domains that look like they used to point to Lemmy/Kbin instances.

    From what I understand, domain owners can register a CNAME record to XXXXXX.bodis.com and earn some money from the traffic it receives. I guess that each number variation is a domain owner ID in Bodis' database. I saw between 5 to 10 different number variations, each one being pointed to by a bunch of old Lemmy domains.

    This probably means that among actors who snatch expired domains, several of them have taken a specific interest with expired domains of old Lemmy instances. Another hypothesis is that there were a lot of domains registered for hosting Lemmy during

    Fediverse @lemmy.world
    pcouy @lemmy.pierre-couy.fr

    Lots of dead Lemmy/Kbin domains have CNAME records pointing to the same domain parking company

    While monitoring my Pi-Hole logs today, I noticed a bunch of queries for XXXXXX.bodis.com, where XXXXXX are numbers. I saw a few variations for the numbers, each one being queried several times.

    Digging further, I found out these queries were caused by CNAME records on domains that look like they used to point to Lemmy/Kbin instances.

    From what I understand, domain owners can register a CNAME record to XXXXXX.bodis.com and earn some money from the traffic it receives. I guess that each number variation is a domain owner ID in Bodis' database. I saw between 5 to 10 different number variations, each one being pointed to by a bunch of old Lemmy domains.

    This probably means that among actors who snatch expired domains, several of them have taken a specific interest with expired domains of old Lemmy instances. Another hypothesis is that there were a lot of domains registered for hosting Lemmy during the Reddit API debacle (about 1 year ago), which started expiring recently.

    Are ther