• 0 Posts
  • 13 Comments
Joined 4 months ago
cake
Cake day: April 4th, 2026

help-circle



  • There is Carriage Return (CR), and also Line Feed (LF, often called New Line). If you think about old mechanical printers with the metal arm sticking out, a CR operation would move the type head to the far left column, and a LF operation would advance the paper by one line. Variously through the years depending on hardware (typewriter, teletype, those early CRTs that you had to refresh the screen, or modern computers) you would get one or both of those if you pressed Return/Enter, and it’s configurable in software, depending on the software. I don’t know what windows does these days with notepad, but at one time the Enter key sent both (CRLF). UNIX style systems tended to use LF, and older Macs as someone else referenced used CR. If you wrote a generic program to handle anything you had to account for all of them. Mostly these days it gets abstracted away which generally works well enough unless a team of people used a random collection of software to edit a text file.

    printf "\r\nHexadecimal, like that scene from The Martian.\n" | hexdump -C
    00000000  0d 0a 48 65 78 61 64 65  63 69 6d 61 6c 2c 20 6c  |..Hexadecimal, l|
    00000010  69 6b 65 20 74 68 61 74  20 73 63 65 6e 65 20 66  |ike that scene f|
    00000020  72 6f 6d 20 54 68 65 20  4d 61 72 74 69 61 6e 2e  |rom The Martian.|
    00000030  0a                                                |.|
    00000031
    

    The 0a is a Line Feed character, and the 0d is a Carriage Return character. In my terminal without piping it through hexdump you get:

    printf "\r\nHexadecimal, like that scene from The Martian.\n"
    
    Hexadecimal, like that scene from The Martian.
    

    The LF at the end of the string makes it so that the prompt at the terminal doesn’t appear on the same line as the output, and the blank line before the text is caused by the LF at the beginning. I don’t know/care/have to worry about what eats the CR.



  • abusive scraping

    As opposed to the plain old scraping they do to train AI, and generate revenue by selling user comments for others to train AI.

    I read a half-cocked internet theory that a certain someone might’ve purchased twitter just to gain access to an ex-gf’s personal tweets. I judged it as possible but unlikely, as that’s a lot of money to spend on such a thing.

    Now, we’ve all heard stories about reddit blocking accounts for no published reason, and tracking folks down across accounts/IP addresses/etc. That code must be pretty expansive to do the things they’ve done. So one has the thought: if you’ve ever reached out to the reddit hive mind for some kind of support with a personal issue of any kind then that data about you is still floating around in their database and tied to whatever alternate accounts you have, even if it was the “good old days” when you did it.

    Abusive scraping, my ass.






  • I ended up creating an account just to block communities/users. At the time there was a poster posting to his own instance that was federated with lemmy.world, and he was reposting nothing but reddit posts, and the volume was such that they had to go. With no algorithm there’s no way to just see subscribed stuff without losing out on discovering new things.

    And just a tip, Lemmy will let you export (to JSON) your configuration options to include who you’ve blocked.