• 6 Posts
  • 58 Comments
Joined 2 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.






  • fool@programming.devtoSelfhosted@lemmy.worldhow much power does your system need?
    link
    fedilink
    English
    arrow-up
    31
    arrow-down
    3
    ·
    edit-2
    3 months 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








  • CRYPT-- oh, you mean how the nice tutorial peeps have affected us.

    Vimjoyer has increased the adoption rate for flakes on NixOS. And also NixOS use in general.

    Mental Outlaw has probably contributed to new Gentoo users, quoth the meme, but Gentoo is still a dying breed compared to its heyday in the early naughts.

    Fireship has made people – particularly CS students I believe – more comfortable with trying out new programming languages. (The “I’ll check out the Fireship video first” approach. But then again, ChatGPT has arguably had the same effect across undergraduates… that’s a digression)

    Asahi Lina’s longform Rust dev work, while less of a network effect, has had its own substantial effects within the Asahi Linux “Linux on the M-series” sphere. I believe she also helped port a kind of anime mocap engine onto Linux, which could over the longterm boost the anime-nerd Linux-nerd center Venn diagram. But that’s speculation.

    edit:

    In a broader perspective, with the combination of SteamOS and large YouTubers trying out Linux, Linux desktop adoption will probably increase more than it has now. I doubt it will pass 10% though with Linux’s reputation (tech nerds, compile all day, games don’t run, command line – even though these are improving, it’s hard to kick)



  • 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