• 0 Posts
  • 93 Comments
Joined 11 months ago
cake
Cake day: July 21st, 2023

help-circle



  • petersr@lemmy.worldtoScience MemesElsevier
    link
    fedilink
    English
    arrow-up
    27
    ·
    4 days ago

    Well, I guess PDF has one thing going for it (which might not be relevant for scientific papers): The same file will render the same on any platform (assuming the reader implements all the PDF spec to the tee).



  • From ChatGPT:

    Me: Water exits a nozzle at coordinate (0, 1.7m) and hits the ground at (2m, 0). Assume the water exits the nozzle at 90 degree (i.e. straight to the right). How can we determine the speed of the water?

    (here I made some rough assumptions based on the image, and assumed that her feet were at (0, 0)

    Answer: The speed of the water exiting the nozzle can be determined using the principles of projectile motion.

    1. Determine the time of flight:

      The water is projected horizontally from a height of 1.7 meters and hits the ground at 2 meters horizontally. The vertical motion is governed by the equation: [ y = y_0 + v_{y0} t - \frac{1}{2} g t^2 ] Here, ( y_0 = 1.7 ) meters, ( v_{y0} = 0 ) m/s (since there is no initial vertical velocity), and ( g = 9.8 ) m/s² (acceleration due to gravity).

      The water hits the ground when ( y = 0 ): [ 0 = 1.7 - \frac{1}{2} \times 9.8 \times t^2 ] Solving for ( t ): [ 1.7 = 4.9 t^2 ] [ t^2 = \frac{1.7}{4.9} ] [ t = \sqrt{\frac{1.7}{4.9}} \approx 0.59 \text{ seconds} ]

    2. Determine the horizontal velocity:

      The horizontal distance covered is 2 meters. Since horizontal velocity ( v_x ) is constant (there is no horizontal acceleration), the distance can be given by: [ x = v_x t ] Here, ( x = 2 ) meters and ( t \approx 0.59 ) seconds: [ v_x = \frac{2}{0.59} \approx 3.39 \text{ m/s} ]

    Therefore, the speed of the water exiting the nozzle is approximately 3.39 m/s.







  • petersr@lemmy.worldtoScience MemesLPT Do it.
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 month ago

    I hear ya. But to be honest, what they are doing here is fine, and doesn’t seem malicious. There is an Open Document specification and they stick to it, but the spec doesn’t enforce everything. For instance for the ordering of certain elements on the page, I bet you they store store those elements in memory in an efficient data structure where ordering doesn’t matter, so when writing out the memory to disk, the easiest for them to do is just write it out in what order it appears in their data structure.

    But there are probably other cases where they are not so innocent.


  • petersr@lemmy.worldtoScience MemesLPT Do it.
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 month ago

    I will join that therapy session. This is pretty much what we did, except LFS, since it was “a requirement” to also track what they layouting of the Excel file was like.

    And even extracting and inserting the code was not stable. Excel will arbitrarily change the casing of “.path” to “.Path” for no reason and add and remove whitespace between functions as it see fit. It was such a pain. We also had a hard time handling unicode strings for instance containing a degree sign. And the list goes on.



  • petersr@lemmy.worldtoScience MemesLPT Do it.
    link
    fedilink
    English
    arrow-up
    50
    ·
    edit-2
    1 month ago

    Let me tell you something. I cannot tell you what company, but I have been tasked with putting Excel files in git “because they are just zip archives with xml” and it is just a disaster. Everytime you save the document it will save certain parts of the xml code in arbitrary ways (like each image is in a list and the order of that list is random everytime), some metadata is re-written everytime like time of last modified and finally all the xml files are one single line. The git diffs are complete useless and noisy and just looking at the Excel file will cause git to consider it updated. So sure, you can use git to snapshot you Office documents… But just don’t.