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/)PE
Posts
11
Comments
2,367
Joined
2 yr. ago
  •  undefined
        
    [ This program prints "Hello World!" and a newline to the screen; its
      length is 106 active command characters. [It is not the shortest.]
    
      This loop is an "initial comment loop", a simple way of adding a comment
      to a BF program such that you don't have to worry about any command
      characters. Any ".", ",", "+", "-", "<" and ">" characters are simply
      ignored, the "[" and "]" characters just have to be balanced. This
      loop and the commands it contains are ignored because the current cell
      defaults to a value of 0; the 0 value causes this loop to be skipped.
    ]
    ++++++++                Set Cell #0 to 8
    [
        >++++               Add 4 to Cell #1; this will always set Cell #1 to 4
        [                   as the cell will be cleared by the loop
            >++             Add 2 to Cell #2
            >+++            Add 3 to Cell #3
            >+++            Add 3 to Cell #4
            >+              Add 1 to Cell #5
            <<<<-           Decrement the loop counter in Cell #1
        ]                   Loop until Cell #1 is zero; number of iterations is 4
        >+                  Add 1 to Cell #2
        >+                  Add 1 to Cell #3
        >-                  Subtract 1 from Cell #4
        >>+                 Add 1 to Cell #6
        [<]                 Move back to the first zero cell you find; this will
                            be Cell #1 which was cleared by the previous loop
        <-                  Decrement the loop Counter in Cell #0
    ]                       Loop until Cell #0 is zero; number of iterations is 8
    
    The result of this is:
    Cell no :   0   1   2   3   4   5   6
    Contents:   0   0  72 104  88  32   8
    Pointer :   ^
    
    >>.                     Cell #2 has value 72 which is 'H'
    >---.                   Subtract 3 from Cell #3 to get 101 which is 'e'
    +++++++..+++.           Likewise for 'llo' from Cell #3
    >>.                     Cell #5 is 32 for the space
    <-.                     Subtract 1 from Cell #4 for 87 to give a 'W'
    <.                      Cell #3 was set to 'o' from the end of 'Hello'
    +++.------.--------.    Cell #3 for 'rl' and 'd'
    >>+.                    Add 1 to Cell #5 gives us an exclamation point
    >++.                    And finally a newline from Cell #6
    
      
  • Kids are like a white paper, experience is what makes a kid “stupid” / “smart” or just to who they are.

    But yea, I agree, that many adults have not the education they would need to educate a kid properly. There should in my opinion be support from society (like with government founding) that ensures parents can get educated enough. The society would profit highly from such efforts, I think, as well educated people can look after themself and are less likely generating costs that society (through taxes) has to pay compared to less educated people.

  • Privacy @lemmy.ml
    Petter1 @lemm.ee

    Study AI before it studies you.

    Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ @lemmy.dbzer0.com
    Petter1 @lemm.ee

    YouTube Warez

    I recently got my (via VPN) YouTube subscription cancelled and now I am wondering, if YouTube videos are findable in the usenet or using torrent tracker.

    Does anyone already have experience with this? I block ads, but it seems not like a sustainable solution.

    linuxmemes @lemmy.world
    Petter1 @lemm.ee

    Linux is easy!

    Linux @lemmy.ml
    Petter1 @lemm.ee

    When you try to be fancy 😂

    West Coast EDM @lemmy.dbzer0.com
    Petter1 @lemm.ee

    Music recommendations searching

    Right now, I mostly listen to these artists right now:

    cloZee, LSDream, Dirt Monkey, subtronic, Zingara, liquid stranger, svdden death, mellow head, Griz, Jantsen, SoDown, LUZCID, champagne drip, Ganja White Night, Zomboy, Blunts and Blondes, Austeria

    Now I wanted to ask, du you like them as well?, and do you have any recommendations based on my listening behaviour?

    😄✌🏻

    Linux @lemmy.ml
    Petter1 @lemm.ee

    Apply backport gentree to 5.15 kernel

    Hey there

    I have to add backported drivers to my 5.15 kernel source in order to create a embedded Linux on kernel 5.15 compatible with newer devices like 5ghz wifi dongles.

    I understood that I have to use this command:

     undefined
        
    Python3 ./ gentree --integrate --clean /path/to/linux-next /path/to/my/5.15-kernel-source-git
    
      

    But it fails stating it wanted to copy a file from new linux that only exists in the old linux

    Have I understood that wrong?

    Edit: it says it does not find …/lib/memneq.c which seems not existing there at least since 6.2 🤔

    Edit2: I fear that it only backports 5.15 drivers to even older kernels 😮 so, I think I have to integrate lwfinger‘s rtw88 backport into my 5.15 kernel sources, somehow, after all

    https://backports.wiki.kernel.org/index.php/Documentation/integration

    Cemu Underground @lemmy.dbzer0.com
    Petter1 @lemm.ee

    Is there a wiiU piracy?

    The wiiU is a very great console to hack, it can run all older Nintendo consoles including GC, wii and ds. Aren’t there any user here wanting to discuss that?

    3DSPiracy @lemmy.dbzer0.com
    Petter1 @lemm.ee

    I just love the hshop (and the ghost eshop(for the NDS roms))

    Had to download for about 36h 🤣 but it worked well

    Arch Linux @lemmy.ml
    Petter1 @lemm.ee

    Can someone tell him that I think that I know the problem?

    I have a 5,5 myself, but not installed arch yet (I will because of Nvidia 🤪btw) and I have the same problem. The solution is to boot with the stick unplugged and holding alt until you get into the boot choosing thingy. While on that screen, plug in the usb you want to boot from. It should magically appear. I have no clue why it doesn’t appear directly, it even reads from the USB (blinking lights in the stick), but it even works, if it is plugged in while initial boot, just plug out plug in and ding it appears.

    Retro Technology @lemmy.ca
    Petter1 @lemm.ee

    reuse airport express

    I got two AirPort Express from my dad. Now, since the hardware is so old, I thought maybe there is way to get root or at least elevated rights somehow in order to play with it a little

    Hope someone knows something about it, or knows which community may help me better with

    😊have a nice day!

    Wii U Hacks @lemm.ee
    Petter1 @lemm.ee

    let's start: go to wiiu.hacks.guide

    There you will be lead how to mod your we. If you are done, we can Talk about all the funny homebrew apps available 🎉😃

    ⚠️I’m not a mod⚠️