home.social

#pythoncode — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #pythoncode, aggregated by home.social.

fetched live
  1. Height map view of the Newton fractal for p(z) = z^3 - 1. You've probably seen something like this before, but I had yet to code it myself. Writing code is fun, and so I'll rather not delegate it to other people's software, let alone this weird Al guy. It's fun even if someone else has already done it, because you can do it your own way. Coding also helps me stay sane, if only to check that my brain hasn't melted away completely.

    One thing I take particular pride in, is doing my own derivatives for the surface normals in lighting. I didn't go to all these fancy schools for nothing, did I? Sure, you could start with the 2D picture and then compute numerical gradients for the height map; it's just the thing if you start with a random photo, but if you start with math, you can stick to the math all the way.

    With the iterated scheme, this means accumulating the Jacobian factor on each iteration. There's a little trick to doing this with a complex number instead of a matrix, but they're just different representations of the same thing.

    The height represents iterations (up to 25) with higher levels converging faster. The iterate steps are smoothed with a fraction representing the remaining distance to the root; it's not quite perfect as the stepped structure remains quite obvious, but it's the best I've come up with so far.

    #newtonfractal #newtonsmethod #fractal #fractalart #relief #heightmap #raymarching #pythoncode #opengl #algorithmicart #algorist #mathart #laskutaide #ittaide #kuavataide #iterati

  2. LIVE ON 🔴

    Discussion, Python et jeu vidéo !

    2 clés Steam sont à gagner en stream 😉

    @Twitch @twitchfr #twitch #twitchstreamer @pythonclcoding @pythonhub #Python #pythoncode @steam

  3. on one of the discord servers im in theres a little bot, and the creator of the bot has added two secret commands. the one we are focusing on has a few hints: it is not a real word, there are no repeat characters, and it is 3 characters long. it is not case sensitive, but thats just because of the limits of the bot itself. for the sake of my sanity, i assume it just uses the standard 26 letter english alphabet, and no numbers, special characters, or diacritics. my question is, is there a way i can make a python program that logs all attempts to find the command, and adds them to a list (said list would also include, before scraping, all 3 letter english words) and then does a search for all combinations matching the criteria, excludes all results that are in the afformentioned list, and then prints it into the console? im pretty bad at coding, so i need a LOT of help here T_T


    #coding #code #python #help #requests #code-help #i-dont-know-how-to-tag #python-code #discord #discord-bot #math #nerd-shit #computer-science #stem #program #programming
  4. 🌈✨ Behold, the latest tech babble from the depths of the internet! Dynamic Abliteration promises the wizardry of #refusal #suppression without the mess of actual understanding. 🤯💥 Just sprinkle some Engram dust and watch as your Python code magically does nothing useful, yet somehow feels very cutting-edge. 🚀🙄
    blog.madhukaraphatak.in/non-de #techbabble #dynamicabliteration #pythoncode #engramdust #HackerNews #ngated

Share on Mastodon

Enter the server where you have an account.