Skip Navigation
Not everything can be done in constant time, that's O(k)
  • T = O(n) means that there exists a single constant k such that T < kn for all sufficiently large n. Therefore O(n!^2) is not the the same as O(n!), but for example both 10n!, 10000n!, n! + n^2 (note the plus) are O(n!).

    Another way to think about this: suppose you believe that O(n) and O(n^2) are distinct. Now plug in only numbers that are factorials (2, 6, 24, ...).

  • Slow print preview (multiple browsers)

    The print preview is taking about 2 minutes to generate in Firefox, and for the last 15 seconds the entire Firefox window becomes unresponsive. I am only "printing" to a PDF to save, and I have no printers connected to my (modern) laptop.

    When I tried on Chrome for comparison, it takes about 30 seconds (still a ridiculous amount of time) but without the freezing behavior.

    I tried setting print.prefer_system_dialog to false (which does not generate a preview that I can see), but Firefox still takes just as long to pop up the system dialog and the window still freezes.

    I only really care about fixing the problem with Firefox. Any suggestions are welcome, thanks!

    Info:

    • Mozilla Firefox 121.0
    • Google Chrome 120.0.6099.129
    • 11th gen Intel laptop on Arch Linux
    0
    graffiti @lemmy.world Buildout @lemmy.world
    Tagged pole

    Clean little tag I saw on a fallen pole.

    0
    Error uploading pictures (JSON.parse)

    I am getting an error when uploading an image from a local file: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

    Even after the error the file name appears in the image name section, but when posted no image is actually included. I have seen another similar post to this about a month ago, but OP said issue was fixed (not the case for me on Linux and Firefox). For what it's worth, the issue also appears on Photon (in addition to standard UI).

    2
    InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)BU
    Buildout @lemmy.world
    Posts 3
    Comments 12