• 7 Posts
  • 122 Comments
Joined 3 years ago
cake
Cake day: June 12th, 2023

help-circle

  • It does not follow that merely looking at or altering the generated code makes it acceptable. By the rules that have been adopted, a contributor cannot take substantial implementation produced by an LLM, clean it up manually, and then treat the resulting patch as if it had been originally written by them.

    I wonder how they intend to enforce this one. Raw LLM output will trigger some kind of “Spidey sense” for anyone woo has seen enough of it. But I don’t know how I would tell manually cleaned up LLM output apart from manually written original code






  • pcouy@lemmy.pierre-couy.frtoScience Memes@mander.xyz69 rule
    link
    fedilink
    English
    arrow-up
    15
    ·
    15 days ago

    I never knew this fun fact ! I’ll try to use it with my students, and see if I this gets me more attention when I give them the trick to compute powers of 2 in your head (210 =~ 103, which leads to ln(103) =~ 10*ln(2) ).

    For anyone wondering, the trick is : Powers of 2 below 10 are easy enough to remember or just compute in your head. So if you want to approximate 2x, write it as (210*a)*(2b), with a=x//10 (integer division) and b=x%10 (modulo). b will be 9 or less, so 2b is easy to compute, and 210*a = (210)a =~ 1000a is also easy to compute.

    For instance, 232 = (230)(22). Since 230=~10003 ; and 22=4, then 232 =~ 4(1000)^3 = 4 billion. Once you get used to it, you’ll be able to say that 264 is approx 16 billion billions in no time ! :)







  • I have a custom made ansible role that does what you are asking for. I’ve wanted to clean it up a bit before putting it up on Github, and your post just gave me a motivation to stop procrastinating it :) This was initially made for my own use, and I’m not an Ansible expert so it can have some rough edges, but I tried my best to make it adhere to the Ansible way of doing things (applying the same role to a host twice should be idempotent).

    Using this role, I’m able to quickly define wireguard networks, define which peer participates in which network, optionally configure a peer as a router (with NAT and port forwarding) for a given network. For Ansible-managed hosts, it installs wireguard, generates and deploys wireguard configurations, and enables IP forwarding on exit nodes. It can also generate ready-to-deploy wireguard configurations for externally managed hosts.

    The repo is at https://github.com/pcouy/ansible-wireguard . I tried giving some instructions in the readme but they may not be detailed enough. If you try it, please open an issue for anything that’s not clear enough from the readme so I can improve it. (I tried making a “Quick start” section for people who never used ansible before)


  • I did something similar for digitizing old camcorder family videos. I hooked up a VCR through a cheap elgato RCA -> USB capture card to my home server, and did something similar to you with a preview feed available on my LAN.

    I even built a (really ugly) web UI which lets me pick an audio and video source, start the preview stream and display it in the browser without actually starting the capture, then start/stop the capture, edit the ffmpeg flags, and set the output file name. I can share it with you if you are interested







  • Debian is already noiriously lagging behind latest package versions (that’s how they make it so stable : they freeze all package versions when they release a new version of Debian, and only backport security fixes).

    Either your AI was trained before Debian 13 came out, or it is giving you really bad advice. I can’t think of a single good reason to use an older Debian for a fresh install…