• 5 Posts
  • 29 Comments
Joined 3 years ago
cake
Cake day: July 22nd, 2023

help-circle

  • First, imagine a number in JavaScript. (Bit of a nail biter here, huh?)

    let i = 5
    

    Then, we will construct an incrementor. This is really simple: here is the method.

    1. Make a bracket-string-centric version of eval().
    []["filter"]["constructor"]("return i+1")()
    
    1. Reconstruct stringy eval() by using +[] as 0, +!+[] as 1, and implicit conversions as ways to create strings. For example, ‘false’ is (![]+[]), so ‘f’ is (![]+[])[+[]].
    [][
      (![] + [])[+[]] + // f
      ([![]] + [][[]])[+!+[] + [+[]]] + // i
      (![] + [])[!+[] + !+[]] + // l
      (!![] + [])[+[]] + // t
      (!![] + [])[!+[] + !+[] + !+[]] + // e
      (!![] + [])[+!+[]] // r
    ][
      ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c
      (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o
      ([][[]]+[])[+!+[]]+ // n
      (![]+[])[!+[]+!+[]+!+[]]+ // s
      (!![]+[])[+[]]+ // t
      (!![]+[])[+!+[]]+ // r
      ([][[]]+[])[+[]]+ // u
      ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c
      (!![]+[])[+[]]+ // t
      (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o
      (!![]+[])[+!+[]] // r
    ]("return i+1")()
    
    1. Draw the rest of the fucking owl. Final code:
    let i = 5; // haha yay
    
    [][
      (![] + [])[+[]] + // f
      ([![]] + [][[]])[+!+[] + [+[]]] + // i
      (![] + [])[!+[] + !+[]] + // l
      (!![] + [])[+[]] + // t
      (!![] + [])[!+[] + !+[] + !+[]] + // e
      (!![] + [])[+!+[]] // r
    ][
      ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c
      (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o
      ([][[]]+[])[+!+[]]+ // n
      (![]+[])[!+[]+!+[]+!+[]]+ // s
      (!![]+[])[+[]]+ // t
      (!![]+[])[+!+[]]+ // r
      ([][[]]+[])[+[]]+ // u
      ([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+ // c
      (!![]+[])[+[]]+ // t
      (!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+ // o
      (!![]+[])[+!+[]] // r
    ](
      (!![]+[])[+!+[]]+ // r
      (!![]+[])[!+[]+!+[]+!+[]]+ // e
      (!![]+[])[+[]]+ // t
      ([][[]]+[])[+[]]+ // u
      (!![]+[])[+!+[]]+ // r
      ([][[]]+[])[+!+[]]+ // n
      (+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+ // ' '
      ([![]]+[][[]])[+!+[]+[+[]]]+ // i
      (+(+!+[]+(!+[]+[])[!+[]+!+[]+!+[]]+[+!+[]]+[+[]]+[+[]])+[])[!+[]+!+[]]+ // +
      +!+[] // 1
    )()
    // no virus i swear. execute arbitrary code in your browser console.
    

    Anyway, that’s just everyday JS work. It’s like step 5 after resizing the button, but a bit before centering the div.

    based on this. some translation methods done differently.


  • Interesting, 18 up and 16 down as of this comment. Because this started with ~2 downvotes (the first image had terrible jpeg for a few minutes), we either have

    1. my taste did not land
    2. early downvotes beget more downvotes

    this comment is here for notetaking. let’s see if i’m a moron or if iambs are stronger than herds.




  • fool@programming.devtoSelfhosted@lemmy.world•how much power does your system need?
    link
    fedilink
    English
    arrow-up
    31
    arrow-down
    3
    ·
    edit-2
    2 years ago

    I forgive 'em cuz watt hours are a disgusting unit in general

    idea what unit
    speed change in position over time meters per second m/s
    acceleration change in speed over time meters per second, per second m/s/s=m/s²
    force acceleration applied to each of unit of mass kg * m/s²
    work acceleration applied along a distance, which transfers energy kg * m/s² * m = kg * m²/s²
    power work over time kg * m² / s³
    energy expenditure power level during units of time (kg * m² / s³) * s = kg * m²/s²

    Work over time, × time, is just work! kWh are just joules (J) with extra steps! Screw kWh, I will die on this hill!!! Raaah






  • A lot of comments here are suspicious of you, so I’m going to try my hand at guessing whether this was AI.

    Since GPTs are hilariously bad at detecting themselves, I’ll venture on the human spirit!

    First, we establish truth 1: this is copy-pasted.

    Although Moissanite isn’t mentioned twice, everything after “Synthetic Alexandrite” inclusively is mentioned twice. That means this was procedurally copy-pasted. Someone writing on their own would either CTRL+A then CTRL+C and make no mistakes, or not repeat themself at all.

    Of course, we can also look at the half-formalized format that indicates something was copied from raw text and pasted into markdown, rather than formatted with markdown first.

    Colon:
    words words Colon:
    words words Colon:

    copy-paster spotted

    Second, we cast doubt that a human wrote the source.

    • AI-isms vs. non AI-isms
      • Non-reused acronym definitions.

        Garnets like… yttrium iron garnet (YIG)

        This is probably taken straight from the Wikipedia’s site description for YIG. Usually humans don’t define an acronym only to never use it, unless they’re making a mistake, especially not for just making repeated structure. So either Wikipedia was in the training corpus or this was Googled.

      • 5/23 sentences start with “While” (weak ai indicator)

      • no three-em dashes or obvious tricolons are overused (non ai-indicator)

      • no filler bullshit introduction or conclusion (non ai-indicator)

      • obvious repeated structure that you can feel (strong ai indicator)

      • Suspiciously uncreative descriptions (ai indicator)

        “These stones are not just rare but impossible to find naturally, offering a unique and unconventional aesthetic perfect for someone looking to stand out.” (emphasis added)

      • Repetition of “unusual” and “rare” rather than more flavorful or useful adjectives (AI indicator)

        • We’re talking synthetic stuff. Would a human write about rarity?
      • Superficial, neutral-positive voice despite length and possible source. If this was pasted from a technical blog, I’d expect it to have more “I” and personal experiences, or more deep anecdotal flavor (AI indicator)

        • e.g. use of “fascinating” but doesn’t go deeper into any positivities

    Third… let’s take a guess

    So it was copy-pasted from somewhere, but I can’t imagine it being from a blog or website, and it isn’t directly from Wikipedia. It has some nonhuman mistakes, but is otherwise grammatical, neutral-positive, and repetitively structured. And it lacks that deeper flavor. So… it was an AI, but likely not openAI.

    At least there aren’t any very “committal” facts, so the length but lack of depth suggests that everything’s maaaaaaybe true…

    I wasted my time typing this