• 1 Post
  • 6 Comments
Joined 1 year ago
cake
Cake day: October 12th, 2023

help-circle
  • I used to have this problem and I’m not sure exactly how to fix it but I can say that it helps a lot if you consider what potential responses you might get before you speak. Don’t just say things because you want to say them, say things because they open up the conversation for interesting responses. This is not the same as “asking a lot of questions” because that’s exhausting, as anyone who’s dealt with a Sealion knows. Instead, try to say things that are open-ended. If your chat’s tone is comedic, try not fixing your typos so that someone else can chain a joke off of them. If the chat’s tone is serious, try making an analogy that connects the current topic to a previous one. If the chat’s tone is toxic, you can leave.


  • yep! the ascii standard was originally invented for teletypewriters, and includes four ‘blocks’ of 32 codes each, for 128 in total, so it only uses seven bits per code.

    the first block, hex 00 - 1F, contains control codes for the typewriter. stuff like “newline”, “backspace”, and “ring bell” all go in here.

    The second block has the digits are in order, from hex 30 = ‘0’ all the way to hex 39 = ‘9’,

    The uppercase alphabet starts at hex 41 = ‘A’, and exactly one block later, the lowercase alphabet starts at hex 61 = ‘a’. This means their binary codes are 100 0001 and 110 0001, differering only in a single bit! So you can easily convert between upper and lowercase ascii by flipping that bit.

    The remaining space in the last three blocks is filled with various punctuation marks. I’m not sure if these are in any particular order.

    The final ascii code, 7F, is reserved for “delete”, because its binary representation is 111 1111, perfect for “deleting” data on a punch card by punching over it.


  • Almost all web traffic now uses the utf-8 encoding, a clever hack which works because ascii is a seven-bit code but web traffic uses 8-bit bytes.

    • If the first bit is 0, treat the byte as ascii.
    • if the first bit is 1, treat the byte as part of a multi-byte unicode character.

    multi-byte characters in utf-8 can officially be up to four bytes long, with 11 of those 32 bits used for tracking the size of the multi-byte block. That leaves 2^21 code points available, about two million in total, easily enough for every alphabet you could need to write on a website, and all without breaking ascii.



  • My stance on this is that if a machine can do the work of a hundred men, then ninety-nine men should be able to retire early with pay. Anything else is theft.

    So, yes, I support UBI, and no, I don’t think it would break capitalism. It’s the same amount of money being put into circulation, just for less work.


  • nycki@lemmy.worldtoAsk Lemmy@lemmy.worldI want to learn how to code
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    16 days ago

    There’s lots of options for starter projects, but I’d say a great place to start is making yourself a personal web page in html, css, and js. you can host it for free on github, neocities, or nekoweb, and its really cool to make something you can show off.

    Even if you don’t stick with html as your primary language, the web is so ubiquitous now that you’ll want to know it eventually!