soc.octade.net is a Fediverse instance that uses the ActivityPub protocol. In other words, users at this host can communicate with people that use software like Mastodon, Pleroma, Friendica, etc. all around the world.

This server runs the snac software and there is no automatic sign-up process.

Admin email
social@octade.net

Search results for tag #code

[?]Dustrial » 🌐
@dustrial.net@bsky.brid.gy

Morning rituals.

    [?]Dustrial » 🌐
    @dustrial.net@bsky.brid.gy

    electromagnetic spectrum shift

      Dustrial boosted

      [?]Dustrial » 🌐
      @dustrial.net@bsky.brid.gy

      pixelcrushed

        [?]Tim (Wadhwa-)Brown :donor: » 🌐
        @timb_machine@infosec.exchange

        Interesting Git repos of the week:

        Detection:

        * github.com/Yamato-Security/WELA - improve your Windows logging

        Bugs:

        * github.com/timb-machine-mirror - popping WebLogic via SAML

        Exploitation:

        * github.com/Mrnmap/RedTeam - a nice list of tools
        * github.com/H4CK3RT3CH/RedTeam- - another nice list of tools
        * github.com/redteaminfra/redtea - Puppet powered red team infrastructure
        * github.com/apocalypse9949/Redt - AI driven red team framework 🤖
        * github.com/CR-DMcDonald/letitr - seizing hanging Azure tenant domains with Gandi
        * github.com/SyscallX-18113/Apkx - automated analysis of Android APKs

        Cryptography:

        * github.com/bandrel/HashcatRose - Hashcat rule analyzer and interpreter 🤖

        , ,

          [?]C++ Wage Slave [He, him, his] » 🌐
          @CppGuy@infosec.space

          @erinaceus

          Right. It really depends on the job in hand.

          For simple and obvious fixes, just a few cases might be enough. For a larger feature or one with lots of tricky edge conditions, I might write tens or hundreds. Occasionally (for things like numeric rounding or date-formatting near boundary conditions or line-wrapping UTF-8 text) I'll write a script to autogenerate some of them.

          I don't use an to write tests for the same reason that I don't ask QA to write the tests for me: I have a deeper understanding of how the code works, the problems and bugs I encountered while writing it, and sometimes the bugs that a future maintainer might allow to slip in. I do ask to review the tests to make sure I've not missed anything. Knowing that a review is coming helps to keep me honest.

          I have a fairly radical view that the tests are almost more important than the shipping , because a good set of tests enables you to overhaul and improve the code in ways that would otherwise be too dangerous. Lack of tests leads to small, timid localised fixes, which leads to a dense thicket of special cases, which leads to an unmaintainable codebase that eventually has to be thrown away. If you don't have decent tests then, sooner or later, you won't have a product.

          @icing

            [?]hairylarry » 🌐
            @hairylarry@gamerplus.org

            @mdhughes @screwlisp @etenil

            Recursive Math Slap!

            This was my challenge. No LOOP. Just a recursive function.

            It wasn't too hard.

            gitlab.com/hairylarryland/math

            Doesn't run in sbcl. Not sure why.

            To run.

            Download mathslap-rec.clisp

            If you have clisp open a terminal in the directory containing mathslap-rec.clisp

            clisp mathslap-rec.clisp

            It should give text and numbers and add a number after each iteration.

              [?]hairylarry » 🌐
              @hairylarry@gamerplus.org

              @screwlisp @lkn @aral

              Now I just need to make some time to write mathslap as a recursive function. The right way, the wrong way, and the lisp way.

                Dustrial boosted

                [?]Dustrial » 🌐
                @dustrial.net@bsky.brid.gy

                pattern that give you no place to stand.

                  [?]hairylarry » 🌐
                  @hairylarry@gamerplus.org

                  @etenil @mdhughes @screwlisp @hairylarry@mastodon.social

                  Thanks all for your help.

                  To the best of my ability I have implemented Gene's code review suggestions and I have uploaded the current version to the repository.

                  mdh, the program is now broken on sbcl. I get an error.

                  Lock on package COMMON-LISP violated when globally declaring *RANDOM-STATE* SPECIAL while in package COMMON-LISP-USER.

                  I'm also wondering if there's a better way to do while(true) than

                  while(= 1 1)

                  part1

                    [?]hairylarry » 🌐
                    @hairylarry@gamerplus.org

                    I wrote my first computer game, MathSlap.

                    Game by @Carl.

                    Program by @hairylarry@mastodon.social

                    It's in lisp and runs in a terminal.

                    You can play solo or multiplayer on the internet by sharing your terminal window.

                    It was a learning exercise for me. An easy program to get me started with lisp.

                    Here's the repository.

                    gitlab.com/hairylarryland/math

                    I think most linux distros come with clisp. Also runs on windows and mac.

                    Let me know if you run it or if you have trouble running it.

                    Thanks

                      [?]hairylarry » 🌐
                      @hairylarry@gamerplus.org

                      @screwlisp @mdhughes

                      The new version.

                      Without warnings?

                      Also with a q to quit.

                      Code in reply.

                        [?]hairylarry » 🌐
                        @hairylarry@gamerplus.org

                        @mdhughes @screwlisp

                        I am going to work on my code some more to include your suggestions and resolve all the warnings. I will also write something about how to play the game.

                        I will run these changes by both of you.

                        Then I will submit it to screwlisp's zine.

                        Thanks for all your help. It is, intentionally, a very simple project but I have learned so much about how to code lisp.

                          [?]✨ollOGies🎆 » 🌐
                          @philsawa@ioc.exchange

                          day 84

                          20260708Wed(6,7,8: )

                          (tiny bike seat sketch)

did 1h on 3 dif stationary bikes (20min ea)

small seat hurt

medium seat felt funny

&recumbent felt best

might have to trade the gas guzzler in for an etrike someday

doing an fcc rdb question set

                          Alt...(tiny bike seat sketch) did 1h on 3 dif stationary bikes (20min ea) small seat hurt medium seat felt funny &recumbent felt best might have to trade the gas guzzler in for an etrike someday doing an fcc rdb question set

                            [?]hairylarry » 🌐
                            @hairylarry@gamerplus.org

                            @mdhughes
                            @screwlisp
                            @dadget
                            @Carl

                            Thanks to @screwlisp for the inspiration and to @mdhughes for help with the code.

                            For your zine I wrote a lisp program.

                            ;;;; MathSlap program written by Larry Heyl - Game developed by Carl Heyl
                            ;;;; To win make an equation with the supplied numbers, in order, adding any symbols you want but one and only one equal sign.

                            code in part 2

                              [?]adison verlice » 🌐
                              @adisonverlice@tweesecake.social

                              helo everyone. i've jst been informed that there is a new LLAMA variant, llama 4 scout, available on cloudflare workers AI. personally, i was planning on testing this on bsid-js in replacement of the llama 3.2 11b model we are currently using. anyone played with this model under and recommend it? .

                                [?]Aral Balkan » 🌐
                                @aral@mastodon.ar.al

                                RE: infosec.exchange/@darkuncle/11

                                “When writing is hard, it’s often not just because we are tired, underfed, or inefficient but because our mind is trying to tell us crucial things. How many draft texts to colleagues or family members have we all stared at in frustration, wondering why they don’t feel quite right—until we finally realize that they need to be rethought completely, or not sent at all? When a book I was writing became an almost hopeless grind, I tore up 90 percent of the manuscript; it became a far more honest work for having been halted at a conceptual dead end, forcing me to turn back.

                                AI can’t make that kind of judgment.”

                                Holds equally for code.

                                  [?]Marcus "MajorLinux" Summers » 🌐
                                  @majorlinux@toot.majorshouse.com

                                  Oh, no!

                                  How'd that get in there?!

                                  One day after discovery, Meta pulls facial recognition code from its smart glasses

                                  arstechnica.com/tech-policy/20

                                    1 ★ 0 ↺

                                    [?]OCTADE » 🌐
                                    @octade@soc.octade.net

                                    You could do the weblord thing and get a $20/yr cheap VPS then try:

                                    Forgejo: https://forgejo.org ...

                                    "Forgejo is a Free Software platform for collaboration and productivity in software development. It offers a familiar environment to GitHub users, easy installation and maintenance, and a focus on security, scaling, federation and privacy."
                                    ... or cgit, which is very fast and slick for the barebones portal ...

                                    ... codeberg has a nice setup (via forgejo) if you don't want to self-host.


                                      0 ★ 7 ↺
                                      Wilson boosted

                                      [?]OCTADE » 🌐
                                      @octade@soc.octade.net

                                      "Remember that there is a distinction between a programming language and a graphical user interface. Don't confuse snazzy graphics (generated using someone else's libraries and tools) with good programming."
                                      ~ Bjarne Stroustrup (C++ Inventor)

                                      @infostorm@a.gup.pe @hacking@a.gup.pe @c@a.gup.pe @programming@a.gup.pe @dev@a.gup.pe @quotes@a.gup.pe