My Lemmy Oracle
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
tfm@piefed.europe.pub to Programmer Humor@programming.devEnglish · 2 个月前

Exclusive insights

piefed.europe.pub

message-square
59
fedilink
638

Exclusive insights

piefed.europe.pub

tfm@piefed.europe.pub to Programmer Humor@programming.devEnglish · 2 个月前
message-square
59
fedilink
alert-triangle
You must log in or register to comment.
  • gigachad@piefed.social
    link
    fedilink
    English
    arrow-up
    168
    ·
    2 个月前

    I guess you could add some sleep(1) inbetween

    • 9point6@lemmy.world
      link
      fedilink
      arrow-up
      93
      ·
      2 个月前

      Needs to be a sleep(3) and sleep(5) between the last ones just to add suspense

      • toynbee@lemmy.world
        link
        fedilink
        arrow-up
        41
        ·
        2 个月前
        sleep $(( 1 + $RANDOM % 5 ))
        
        • idunnololz@lemmy.world
          link
          fedilink
          arrow-up
          7
          arrow-down
          1
          ·
          2 个月前

          No it has to be controlled suspense.

      • wheezy@lemmy.ml
        link
        fedilink
        arrow-up
        10
        ·
        2 个月前

        Needs a 99% print too just before the 5 second sleep. Followed by a 99.9% and another 2 second sleep. Never print 100 and just run a traceroute in a loop.

        Followed by a “we’re in” from the hacker as we’re made to believe he’s reading the console spam like he’s Neo from the matrix as he types faster and faster into an unresponsive terminal window.

    • xav@programming.dev
      link
      fedilink
      arrow-up
      87
      arrow-down
      8
      ·
      2 个月前

      This is Python. It’s already show enough.

      • gigachad@piefed.social
        link
        fedilink
        English
        arrow-up
        31
        arrow-down
        3
        ·
        2 个月前

      • StarvingMartist@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        21
        ·
        2 个月前

        Ooof starting the day with violence I see

        • xav@programming.dev
          link
          fedilink
          arrow-up
          11
          ·
          2 个月前

          “One troll a day keeps the intelligent people away”

      • ripcord@lemmy.world
        link
        fedilink
        arrow-up
        10
        arrow-down
        1
        ·
        2 个月前

        That’s not python

        • gigachad@piefed.social
          link
          fedilink
          English
          arrow-up
          48
          arrow-down
          1
          ·
          2 个月前

          It’s valid Python code though, the semicolons will run but are unnecessary

          • NeatNit@discuss.tchncs.de
            link
            fedilink
            arrow-up
            38
            arrow-down
            2
            ·
            edit-2
            2 个月前

            demo of semicolons being allowed in Python

            I am so perplexed and horrified. I’m going to need several weeks to get over this. What is this?!

            • Mad_Punda@feddit.org
              link
              fedilink
              arrow-up
              21
              ·
              2 个月前

              A way to have several statements on the same line?

              • NeatNit@discuss.tchncs.de
                link
                fedilink
                arrow-up
                11
                ·
                2 个月前

                It seems I had semicolons confused with braces:

                if picture is broken, it’s this:

                ~ $ python -c "from __future__ import braces"
                  File "<string>", line 1
                SyntaxError: not a chance
                
                • palordrolap@fedia.io
                  link
                  fedilink
                  arrow-up
                  8
                  ·
                  2 个月前

                  Guido undoubtedly had a strong, strong hatred of the number of ways braces are overloaded in Perl.

                  Do you really want an example?

                  sub doHref { { do { ${someglobal{Href}} = {} }; last }; }

                  Every single pairing there serves a different syntactic purpose. Some are related purposes, and I’ve crowbarred a few in unnecessarily for the sake of an example, but different nonetheless.

                  The outer pair declares the sub, and the next pair is a free block that works as a once-through unlabelled loop, which is exited with the last. (Most other languages use break for this purpose.)

                  The next pair are for the do which doesn’t act as a loop like the free block does. The next innermost pairing wrap a variable and the inner, innermost pairing indicate that the variable is a member of a hash (associative array) and we’re accessing the record named Href.

                  The lone {} indicates a hash reference, so we’re assigning a reference to an empty, anonymous hash to that hash record.

                  This example is ridiculous of course. There’s no need for most of those braces and syntax to do what it actually does. Also assigning to global variables is generally frowned upon.

                  sub doHref { $someglobal{Href} = {} }

                  … is equivalent and cuts out most of the guff. Still three different uses though.

            • I Cast Fist@programming.dev
              link
              fedilink
              arrow-up
              4
              ·
              2 个月前

              What is this?!

              Python

              • NeatNit@discuss.tchncs.de
                link
                fedilink
                arrow-up
                2
                ·
                2 个月前

                Blasphemy!

          • ripcord@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            2 个月前

            Yeah but it wasnt intended to be python

            • gigachad@piefed.social
              link
              fedilink
              English
              arrow-up
              6
              ·
              2 个月前

              Maybe we should call the meme police then

              • ripcord@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                2 个月前

                On xav?

  • GreenKnight23@lemmy.world
    link
    fedilink
    arrow-up
    58
    ·
    2 个月前

    what about the sleeps between each print?

    where’s the comments?

    why isn’t it DRY?

    3/10 code, PR rejected.

    • urandom@lemmy.world
      link
      fedilink
      English
      arrow-up
      17
      ·
      2 个月前

      where’s the comments?

      // this prints 80%

      • TooManyFoods@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        2 个月前

        This is python

        • boonhet@sopuli.xyz
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          2 个月前

          Python with semicolons? I mean I guess it’ll run but why

          • TooManyFoods@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            2 个月前

            For the POWER of doing something UNNECESSARY because you CAN

  • sorter_plainview@lemmy.today
    link
    fedilink
    arrow-up
    48
    ·
    2 个月前

    You know hackers in the movies are very polite and care for their user. When they are hacking or wiping the disk they show proper progress. That is much better user experience than many corporate products. Be like hackers in the movie.

    • jaybone@lemmy.zip
      link
      fedilink
      English
      arrow-up
      22
      ·
      2 个月前

      Ransomware has better tech support and customer service than your cell phone provider or ISP.

      • wheezy@lemmy.ml
        link
        fedilink
        arrow-up
        9
        ·
        2 个月前

        Their profits come from actual “customers”. They can’t just layoff half of their work force and use stock buybacks to make the line go up. Shit has to actually work.

  • rbn@sopuli.xyz
    link
    fedilink
    arrow-up
    37
    ·
    2 个月前

    For those who want a more convincing but still low-effort variant of this, use… https://hackertyper.net/

    Press F11 in your browser to run it in fullscreen.

    • lemmyknow@lemmy.today
      link
      fedilink
      arrow-up
      8
      ·
      2 个月前

      The Hollywood command is effortless and runs on terminal

  • TankovayaDiviziya@lemmy.world
    link
    fedilink
    arrow-up
    34
    ·
    2 个月前

    Did he type the furiously on to the keyboard? No? Then it’s not hacking.

    • Adalast@lemmy.world
      link
      fedilink
      arrow-up
      28
      ·
      2 个月前

      I have seen like 2 movies where the hacker just ran a script and danced around the room until the progress bar got to the top, then he hit a couple inputs and ran another script and went back to dancing. It was so surreal to see something so much closer to real than the feverish hammering in a keyboard.

      • WhyJiffie@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 个月前

        ah yeah, I’m always dancing when hacking gov systems

      • A_norny_mousse@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        2 个月前

        Which movies?

      • Hoimo@ani.social
        link
        fedilink
        arrow-up
        1
        ·
        2 个月前

        There’s also The Core where the hacker says “yea, I can do it”, demands unlimited hot pockets and all of Xena Warrior Princess on VHS, then locks himself up in his room.,

    • Natanael@infosec.pub
      link
      fedilink
      arrow-up
      12
      ·
      2 个月前

      https://hackertyper.com/

      • A_norny_mousse@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        2 个月前

        Classic! Sometimes I call it up just to enjoy that feeling.

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    20
    ·
    2 个月前

    have you seen who runs the fbi? this’ll probably work irl

  • Damage@feddit.it
    link
    fedilink
    arrow-up
    16
    ·
    2 个月前

    It takes skill to hack such an organization using only printf

    • noughtnaut@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      2 个月前

      You’d be surprised how versatile that one thing is. Or, should I say, how much abuse it gets at ioccc…

  • Evilschnuff@feddit.org
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 个月前

    The hacking in Mr Robot looked more authentic, I really liked it. But they usually just executed some random scripts without printouts lol.

  • kambusha@sh.itjust.works
    link
    fedilink
    arrow-up
    9
    ·
    2 个月前

    I’ve been hacking the world this whole time!

  • paulbg@programming.dev
    link
    fedilink
    arrow-up
    8
    ·
    2 个月前

    behind the scenes: youtube video of a python loop

  • stupidcasey@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    2 个月前

    But look how much effort he put into ricing his terminal this guy’s good.

  • lemmydividebyzero@reddthat.com
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 个月前

    Yeah, few people know that the FBI tells you the progress when hacking them.

  • PastafARRian@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    8
    ·
    2 个月前

    “ChatGPT, write me a program to hack the FBI”

    • goatinspace@feddit.org
      link
      fedilink
      arrow-up
      2
      ·
      2 个月前

      Prints a long summary with hallucinations

  • 𞋴𝛂𝛋𝛆@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    2 个月前

    what HP printers really do

    • jaybone@lemmy.zip
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 个月前

      In Soviet Russia, print() statement runs on printer.

  • Lucidlethargy@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    2 个月前

    Guys, you can’t just come in here and post exactly how hackimg works.

    That’s illegal!!1!

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.92K users / day
  • 5.02K users / week
  • 8.61K users / month
  • 19.4K users / 6 months
  • 1 local subscriber
  • 27.3K subscribers
  • 1.94K Posts
  • 70.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org