• 8 Posts
  • 102 Comments
Joined 1 year ago
cake
Cake day: August 11th, 2023

help-circle

  • areyouevenreal@lemm.eetoProgrammer Humor@lemmy.mlblahaj
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    edit-2
    1 month ago

    You’re still trying to weasel out of being wrong. It’s not an archive nor is it compressed. Go read what a Portable Executable is. It’s not about being diplomatic or whatever. Just admit you’re wrong and go and read about how it actually works. You might learn something.


  • areyouevenreal@lemm.eetoProgrammer Humor@lemmy.mlblahaj
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    1 month ago

    Bruh an exe is not an archive. Some just happen to contain an archive, not all. As me and the other guy discovered some archive utilities can read them, but what they are doing is closer to a binary analysis tool than unpacking an actual archive. It’s not about being nerdy, it’s about getting your facts right.


  • Okay that’s actually slightly different from what I was expecting. Does the .text file contain machine code or assembly language by any chance? It seems the archive program can pull out the executable code as well, similar to the binary analysis tools I have worked with.

    .reloc is probably the relocation table used by the OS to load the program into an address space.


  • areyouevenreal@lemm.eetoProgrammer Humor@lemmy.mlblahaj
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    1 month ago

    Mate I saw the blind leading the blind and had to step in. You could have actually opened some exes on Linux as the other guy suggests. In fact I am surprised you never noticed your system presenting that option. It just isn’t actual proof of what they said, even if it appears like it. In fact I am a bit lost how neither of you realized something weird was going on. On what planet would an executable format being a zip file make any sense? Exes actually can include several executable formats.

    There are things like self extracting archives that make this all more confusing. They are basically an archive with an extraction program in the same file. Installer exes work in a similar way too. Not all exes can be extracted since not all of them contain secret hidden archives or extra resources.

    There actually are tools to show you the contents of an executable file, and you could probably learn a lot by using one. They contain more than just a blob of machine code like one might assume. Often they contain data as well, and instructions and information on how to load the executable like what memory layout to use.

    I am annoyed that people upvoted the other guy without double checking as well. Now we have more people walking around spreading misinformation just because of some guy on Lemmy. This is why things like climate change become contentious issues. People come to their own conclusions based on partial information, and since it appears to make sense without proper investigation it gets spread around like wildfire. It’s only when you actually know what’s going on at a deeper level that it becomes possible to spot the flaws in the reasoning.


  • You are actually correct. They can contain archived files or resources that can be unpacked with an archive program (including on Linux btw), but they aren’t just a zip file. That’s why my Linux archive manager (ark I think) offer to open one, but won’t execute it. They can see the extra content even if they can’t execute the file as intended.


  • areyouevenreal@lemm.eetoProgrammer Humor@lemmy.mlblahaj
    link
    fedilink
    arrow-up
    4
    arrow-down
    2
    ·
    edit-2
    1 month ago

    Just because they open in 7-Zip or whatever doesn’t mean they are just a zip file. There are several kinds of archives. EXEs are a special case as well. They aren’t archives at all. Rather they can contain archives or extra content along with being an executable. One reason is self extracting archives. Here an archive is packaged with an extraction program as an exe all in one. The other case is exes that have extra resources like images, videos, graphics textures, etc. Either way it’s an executable plus some extra stuff, not a zip archive. DLLs I am not sure about, but I suspect something similar is happening here.

    Next time you should research stuff before posting it on Lemmy. Things are sometimes more complicated than they appear.

    docx you are correct about though. Specifically it’s a zip file that contains XML files and resources.

    Edit: I actually found an article on self extracting archives, it’s quite an interesting technology to be fair even if it causes confusion: https://en.m.wikipedia.org/wiki/Executable_compression












  • Depending on what battery protection modes are in play, many have smart charging or other features designed to prolong life. Also a fair few batteries come out with greater than design capacity from the factory. It’s called a design capacity and not an absolute capacity for a reason. A phone battery that left the factory at 110% could conceivably still be at or above 100%.

    Fyi it’s not overnight charging that’s the issue either, it’s charging to 100%. What one device consider 100% varies and devices will essentially lie to you about it. 4.2V is normally considered 100% full for Lithium Cobalt Oxide batteries yet some devices push higher than this while others skirt under to pad capacity and cycle life respectively. It’s about tradeoffs.