• 4 Posts
  • 87 Comments
Joined 3 years ago
cake
Cake day: July 16th, 2023

help-circle
  • maybe they were looking for extra special characters like 🁄 or ⶸ. Who am I kidding, RFC 1738 tells us that literally everything is unsafe and you know, we need to prepare for the inevitable occasion when the password somehow ends up inside an URL.

    The characters “<” and “>” are unsafe because they are used as the delimiters around URLs in free text;
    the quote mark (“”") is used to delimit URLs in some systems.
    The character “#” is unsafe
    The character “%” is unsafe

    It ends up with

    Thus, only alphanumerics, the special characters
    $ - _ . + ! * ’ ( ) ,
    are safe









  • sus@programming.devtoProgrammer Humor@programming.devTeams
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    4 months ago

    “You want to use teams a bit? We have a session here” “I’d be happy to, actually. Not really, but it wouldn’t be bad” “Not really? If you say so, I have a teams session ready right here” “No. No. I’m not stupid” “People use it every day.” “Tell the truth” “It’s a good user experience.” “So are you ready to use it? For 5 minutes?” “No, I’m not an idiot.”







  • The oxford that says this?

    Acronym

    1. A group of initial letters used as an abbreviation for a name or expression, each letter or part being pronounced separately; an initialism

    or the merriam webster that says this?

    Some people feel strongly that acronym should only be used for terms like NATO, which is pronounced as a single word, and that initialism should be used if the individual letters are all pronounced distinctly, as with FBI. Our research shows that acronym is commonly used to refer to both types of abbreviations.





  • We can avoid expensive branches (gasp) by using some bitwise arithmetic to achieve the so-called “absolute value”, an advanced hacker technique I learnt at Blizzard. Also unlike c, c# is not enlightened enough to understand that my code is perfect so it complains about “not all code paths returning a value”.

    private bool IsEven(int number)
    {
        number *= 1 - 2*(int)(((uint)number & 2147483648) >> 31);
        if (number > 1) return IsEven(number - 2);
        if (number == 0) return true;
        if (number == 1) return false;
        throw new Exception();
    }