• 0 Posts
  • 41 Comments
Joined 1 year ago
cake
Cake day: June 10th, 2023

help-circle
  • Hello,promitheas

    Welcome to Linux Community.

    It sounds like you are experiencing some quality issues using Microsoft forums, could you please provide some details to let us assist you better:

    1->General System Information: Could you provide some details about your PC’s hardware specifications? Specifically, the processor, amount of RAM, and the graphics card you are using.

    2->System File Check: When you say you automatically checked system files, did you use the built-in System File Checker (SFC) tool? Did it report any issues, or did it indicate that everything was fine?

    3->Event Viewer: In the Event Manager, can you provide more specific details about the critical errors you see? For example, the exact error messages and any associated error codes.

    Have you researched the specific error messages you found in the Event Manager (e.g., Application Error, Application Hang, Windows Error Reporting, DbxSvc, DistributedCOM, nvlddmkm)? Understanding these errors can often provide clues about the root cause of the problem. In the meantime, are you getting a blue screen on your device, and if it’s convenient, try to see if a small dump file has been generated in the corresponding path, which you can upload and share with me-<Read small memory dump files - Windows Client | Microsoft Learn>

    4->Cooling and Hardware Issues: Have you noticed any unusual temperature increases while running games or any other hardware-related issues like unusual fan noises or system freezes?

    5->Rollback to Previous Windows Version: If the issue started immediately after switching to Windows 11, have you considered rolling back to your previous Windows version temporarily to see if the crashes persist?

    The five points of detail above are intended to give me a better understanding of the situation so that I can give potential advice and solutions.

    Best regards,

    ImplyingImplications |Microsoft Community Support Specialist


  • I had to create an account on a government website. The website didn’t list a character limit so I used a password manager to generate a 32 character password. My account was created but I couldn’t log in. I used the “forgot my password” option and I received an email of my password in plain text. I also noticed why I couldn’t log in. The password was truncated to just 20 characters. Brilliant website! Tax dollars at work!


  • ImplyingImplications@lemmy.catoProgrammer Humor@lemmy.mlPure evil
    link
    fedilink
    arrow-up
    69
    arrow-down
    1
    ·
    14 days ago

    Everything is 0s and 1s to a computer. What a pattern of 0s and 1s encodes is decided by people–often arbitrarily. Over the years there have been attempts to standardize encodings but, for legacy reasons, older encodings are still valid.

    The 0s and 1s that encode ’ in UTF-8 (a standardized encoding) are the same 0s and 1s that encode ’ in CP-1252 (a legacy encoding).

    The � symbol is shown when the 0s and 1s don’t encode anything of meaning.





  • A lot of responses here so I’ll suggest a different approach. You can watch your python code execute line by line using a debugger. That might help with understanding how it all works.

    def my_sum(list):
        result = 0
        for number in list:
            result += number
        return result
    
    my_list = [1, 2, 3, 4, 5]
    list_sum = my_sum(my_list)
    print(list_sum)  # Prints 15
    

    If you run the above code line by line in a debugger, you’ll see that when it gets to list_sum = my_sum(my_list) the program will jump into the function my_sum(list) where “list” is a variable holding the value of “my_list”. The program continues line by line inside of the function until it hits the return result statement. The program then returns to the line it was at before jumping into the function. “my_sum(my_list)” now has an actual value. It’s the value that the return statement provided. The line would now read list_sum = 15 to python.

    A debugger shows you which lines get executed in which order and how the variables update and change with each line.

    Just a note: python has a built-in sum() function you could use instead of writing your own my_sum() function, but a debugger won’t show you how built-in functions work! They’re built into the language itself. You’d need to look up Python’s documentation to see how they actually function under the hood.














  • __ LINE __ is a preprocessor macro. It will be replaced with the line number it is written on when the code is compiled. Macros aren’t processed when debugging. So the code will be skipped during debug but appear in the compiled program, meaning the program will work fine during debug but occasionally not work after compile.

    “__ LINE __ % 10” returns 0 if the line number is divisible by 10 and non-zero if not. 0 is considered false and non-zero is considered true.

    #define is also macro. In this case, it will replace all instances of “true” with something that will only sometimes evaluate to true when the program is compiled.