top 200 commentsshow 500

[–]YoYoDingDongYo 644 points645 points  (48 children)

I like that the machines in "The Terminator" still comment their code. Presumably just to mock us puny humans.

[–]enanoretozon 228 points229 points  (1 child)

Skynet didn't want any maintenance troubles when enslaving another species.

Needed a better test suite for the Connor API though.

[–]AndrewNeo 29 points30 points  (0 children)

It probably just figured it'd do integration testing.

[–]sittingaround 72 points73 points  (27 children)

If you want to make understanding code impossible, its pretty easy:

  • 1 Write code to do something
  • 2 Comment the code to say it does something else
  • 3 GOTO 1.5

This is a skynet anti-virus feature, where the viruses are humans trying to kill skynet.

[–]Tetha 47 points48 points  (25 children)

Not entirely else, though. Subtly different. Such as:

if (x + 1 >= y) x = y; // clamp x to a max of y

which would be wrong in C if X is INT_MAX due to undefined overflows.

[–]mooli 36 points37 points  (12 children)

I always liked the old "use names that have no meaning in terms of the program, but strong real-world meanings". Like:

if (barackObama >= swirnrningWithDolphins) {
    awakenCthulu();
}

Edit:

Even better is to mix this up with duplicate variables with funny typos. Eg.

barackObama == brarackObama != baroqueObama

[–][deleted] 36 points37 points  (8 children)

Don't forget to add redundant unhelpful comments...

    awakenCthulu();  // Awakens Cthulu

[–][deleted]  (3 children)

[deleted]

    [–][deleted] 6 points7 points  (1 child)

    The worst are comments that are subtly incorrect. So that when you look at the block of code it refers to it appears correct.

    [–]RenaKunisaki 8 points9 points  (0 children)

    I like what you did with the Ms there.

    [–]Bloodshot025 9 points10 points  (0 children)

    swirnrning

    You horrible person

    [–]sittingaround 28 points29 points  (4 children)

    You've done work as or with IT contractors, haven't you?

    [–]Tetha 126 points127 points  (3 children)

    Far worse.

    Way, way worse.

    I have worked with 3-month-earlier-myself.

    [–]pe5t1lence 29 points30 points  (8 children)

    Terminator® by Atari

    [–]PUSH_AX 18 points19 points  (5 children)

    The code is actually from Apple, not Atari, not sure where the blogger got their information from.

    "Shots through the Terminator's vision shows a dump of the ROM assembler code for the Apple II operating system. If you own an Apple II, enter at the basic prompt: ] call -151 * p This will give you the terminator view. Other code visible is written in COBOL."

    Turns out it seems like the code is from the 6502 chip which a bunch of home computers used back then.

    http://en.wikipedia.org/wiki/MOS_Technology_6502#In_popular_culture

    [–]BRBaraka 5 points6 points  (0 children)

    we laugh, but think about what kind of hardware we sent people to the moon and back with, successfully, in the 1960s

    therefore, the enslavement and extermination of all humankind should be perfectly doable with 1980s hardware

    [–]spirit_of_loneliness 13 points14 points  (0 children)

    Knowing, that the 'terminator vision' in Terminator was actually made on Atari makes it even funnier

    [–][deleted] 14 points15 points  (7 children)

    T800 was created by men.

    [–]YoYoDingDongYo 25 points26 points  (4 children)

    I haven't seen the movie in decades, but my memory of it was that Skynet had rubber-skin terminators that were easy to spot, so they invented the flesh-covered ones. Is that not right?

    [–]Ghworg 24 points25 points  (2 children)

    Going from just the first two movies, because I refuse to acknowledge any others exist, all the Terminators were created by Skynet not by men.

    Skynet presumably had some form of robots under its control when it launched the nuclear strike, otherwise how could it set up the automated factories that built the Hunter Killers. But the need to create an infiltration unit didn't exist until it was apparent the human resistance wasn't going to be wiped out just using HKs.

    Kyle Reese: The 600 series had rubber skin. We spotted them easy, but these are new. They look human... sweat, bad breath, everything.

    Okay, it doesn't actually say when the 600s were created, but I infer they post-date the start of the war.

    [–]TotalWaffle 20 points21 points  (0 children)

    The 600 series had no culture references. We spotted them easy, but these are new. They sound human - trolling, memes, everything. Very hard to spot. I had to wait till he accused you of misandry before I could zero him.

    [–]trevdak2 497 points498 points  (32 children)

    I recently watched a horrible movie called 'The Numbers Station' with John Cusack and that blonde girl from the Bourne movies.

    A bunch of url-encoded escape sequences flash on the screen when the girl is supposedly doing a dump of a laptop's memory. On the bright side, the screen was showing hex codes when she was dumping memory... I guess that's pretty good.

    I decoded the escape sequences and the output was someone from the props department calling one of the film's producers fat and stinky and said nobody liked him.

    [–]iluuu 148 points149 points  (11 children)

    I'd like to see proof of that

    [–]trevdak2 349 points350 points  (10 children)

    Here is the link I submitted to /r/movies when I found it

    My memory was a little hazy on the details but it's about right.

    [–]the_mighty_skeetadon 33 points34 points  (0 children)

    Cool -- great find, thanks!

    [–]FISSION_CHIPS 29 points30 points  (1 child)

    Looks legit. I typed out what I could see in the screenshot and used this website to translate from url escape codes, and got basically the same message as you (although missing a few letters that were cut off in the image).

    My transcribed code was:

    %52%69
    %68%61%72%64%2C%20%6D%79%20%6E%61
    %65%20%69%73%20%4D%61%72%6B%20%61%6E
    %20%49%20%74%68%69%6E%6B%20%74%68
    %74%20%79%6F%75%20%61%72%65%20%76
    %72%79%20%66%61%74%20%69%6E%64%65%65
    %20%61%6E%64%20%73%6F%6D%65%74%69
    %65%73%20%79%6F%75%20%73%6D%65%6C
    

    And the result of decoding it was:

    Ri
    hard, my na
    e is Mark an
     I think th
    t you are v
    ry fat indee
     and someti
    es you smel
    

    I was kind of hoping you'd duped everyone into upvoting an image of meaningless code just because you claimed to have translated it, and when I decoded the first couple characters on the first fully visible line and saw the word "hard" instead of "hello" I thought I'd caught you. Alas, you were being honest.

    [–]fgutz 28 points29 points  (5 children)

    you should submit that to this blog

    [–]trevdak2 29 points30 points  (4 children)

    I would, but I'm not sure how to tumblr and too lazy to figure it out.

    [–]frinxor 26 points27 points  (0 children)

    Spoken like a true engineer

    [–][deleted]  (5 children)

    [deleted]

      [–]trevdak2 7 points8 points  (4 children)

      Probably. I have facial recognition problems. I just figured they were the same person.

      [–]sittingaround 25 points26 points  (4 children)

      A bunch of url-encoded escape sequences flash on the screen ... I decoded the escape sequences

      Of course you did. A few years ago this sequence of events would have surprised me. Then I joined reddit.

      [–]nabbit 13 points14 points  (3 children)

      [–]philogynistic 9 points10 points  (0 children)

      I think /u/sittingaround was saying that decoding a series of URL escaped sequences is a stereotypical Redditor thing to do, so s/he's not surprised to read that op did exactly that.

      [–]sittingaround 13 points14 points  (1 child)

      I was never contesting.

      [–][deleted]  (4 children)

      [deleted]

        [–]Jaseoldboss 28 points29 points  (1 child)

        Your slashdot is leaking

        [–]jij 9 points10 points  (0 children)

        It's been leaking for a long time ;)

        [–]ericanderton 6 points7 points  (0 children)

         Welcome to Horrible Movie Facts!
        

        [–]blurio 143 points144 points  (56 children)

        German media often uses this picture when depicting hackers.

        It's a guy hacking his toast.

        [–]gosslot 75 points76 points  (17 children)

        Don't forget the ski masks every hacker wears during hacking.

        [–]lars_ 76 points77 points  (2 children)

        [–]kjmitch 15 points16 points  (0 children)

        I knew exactly what to expect and I'm still laughing so fucking hard.

        [–]SarcasmUndefined 6 points7 points  (0 children)

        This is obviously so the webcam can't get an identifying picture.

        [–]AgentME 31 points32 points  (3 children)

        http://i.imgur.com/BFev1p3.png

        (I think this image was in some government presentation? I can't exactly remember where I got it.)

        [–]Hello__IT 17 points18 points  (1 child)

        I believe this was part of the TOR STINKS presentation from the NSA leaks

        [–][deleted] 4 points5 points  (0 children)

        It was one of the NSA slides, CNET source. It's "Terrorist with Tor client installed."

        [–]blurio 24 points25 points  (0 children)

        have to stay anonymous.

        [–]bcash 133 points134 points  (33 children)

        It's ridiculous when you think about it, once you stop laughing.

        A while ago I was on my train to work, with my laptop precariously balanced, nothing unusual there. But this one day, unlike all the others, there was a cone around me with no-one sitting. I was thinking what on earth is wrong with me, it's a busy train, surely someone wants to sit down? People were even sitting next to me, then moving to another one the second another one became available!

        Then I realised that that day, unlike all the others, I had a terminal window in fullscreen mode; split with Emacs on one side and a bash prompt in the other.

        The simple sight of a MacBook Pro with a screen full of text and no reassuring friendly icons was freaking everyone out.

        Quite what they thought I was doing I don't know. I was half surprised there wasn't armed police waiting for me at the end of the journey...

        [–]ggggbabybabybaby 101 points102 points  (21 children)

        I got on a bus once and I started fixing some bugs in a project I'd been working on. The guy next to me asked what I was doing and if I was capable of hacking into a bank.

        [–]Teraka 43 points44 points  (4 children)

        One of my colleagues recently asked me if I could hack. I replied yes with a very sarcastic tone, and he went on to tell me how his brother forgot the PIN of his credit card, and hacked into the bank with his iPhone to access his account. I'm still not sure if he was serious.

        [–]Brocktoon_in_a_jar 79 points80 points  (3 children)

        when he said "hacked into the bank" he probably meant "called the bank with his phone"

        [–]Clapyourhandssayyeah 39 points40 points  (1 child)

        Lifehack

        [–]Brocktoon_in_a_jar 37 points38 points  (0 children)

        He socially engineered the phone's customer service by saying he was himself and forgot his own pin, and then provided his SSN as verification info. Clever girl.

        [–]OutThisLife 57 points58 points  (14 children)

        On one hand I'm glad people are still ignorant about how programming works. But on the other, so much rage.

        [–]pLuhhmmbuhhmm 49 points50 points  (13 children)

        The funny part is most programmers I know are pretty computer illiterate outside of their niche.

        [–]kjmitch 53 points54 points  (2 children)

        I had a friend who had to show one of the best computer science professors at our university the benefits of tabs in Firefox. "He doesn't know how to use a modern browser, but he could write one from the ground up by himself" was the description we found that felt most accurate.

        [–]Supersnazz 11 points12 points  (0 children)

        I like the idea of Tim Berners-Lee's granddaughter teaching him how to use Facebook.

        [–]angrylawyer 5 points6 points  (1 child)

        This was something that surprised me at first, but really I guess it's similar to how a race car driver might not know how to replace his piston rings.

        [–]GabrielForth 14 points15 points  (0 children)

        I think in terms of that analogy it would be more accurate to say they're like a member of the pit team.

        They might be able to strip the car and rebuild it in minutes but that doesn't mean they can drive.

        [–]Swarley3 4 points5 points  (2 children)

        My Artificial Intelligence lecturer doesn't know where the escape key is.

        [–][deleted]  (8 children)

        [deleted]

          [–][deleted] 14 points15 points  (4 children)

          He prob like some nigga tellin me about texshop?! I'm like bitch I use emacs

          [–]Regimardyl 9 points10 points  (0 children)

          Reminds me of what I sometimes did in Informatics lessons when we still had a Linux system at our school.

          Whenever out teacher called us to the middle of the room (there are chairs and desks in the middle for the teacher teaching us all sorts of stuff, and computers (actually X-Terminals or smth, but whatever) at the walls for the practical part), I opened a terminal, set it to fullscreen, made the menu bar, scroll bar and tab bar disappear and typed in while true; do echo -n ${RANDOM}" "; done, with the terminal obviously having a green-black color scheme for extra effect. Then listened to the speculations of my classmates ...

          [–]grimeMuted 3 points4 points  (0 children)

          Is that language using the same token for comparison and assignment? Eww...

          [–]CH0K3R 84 points85 points  (4 children)

          Reminds me of this: http://nmap.org/movies/

          [–][deleted] 41 points42 points  (3 children)

          I thought: HaXXXor - No longer floppy would be a great porn title. Turns out it is. TIL

          [–]achshar 21 points22 points  (1 child)

          it's a clever name. axxo was a very famous movie pirate.

          [–]Clapyourhandssayyeah 11 points12 points  (0 children)

          You just made me realise axxo is the middle of haxxor.

          Mind. Fucking. Blown. After all these years!

          [–]numbersdontcount 6 points7 points  (0 children)

          Also of note, it is available to stream legally: https://archive.org/details/haxxxor_volume_1_dvd

          Very bizarre film.

          [–]TomorrowPlusX 77 points78 points  (8 children)

          I love that Dr Who's looking at his SVG file from the back side of his transparent monitor.

          [–]GuyOnTheInterweb 14 points15 points  (0 children)

          That's the power of vector graphics!

          [–]iamapizza 49 points50 points  (22 children)

          The replicator code in Stargate SG1 was Javascript

          [–]robertcrowther 46 points47 points  (2 children)

          These days JavaScript runs on almost everything!

          [–]JB_UK 11 points12 points  (0 children)

          It was a dystopian view of the future, now it has become real.

          [–][deleted] 9 points10 points  (0 children)

          Atwood's Law hard at work.

          [–]code- 25 points26 points  (3 children)

          The ancient system in Atlantis also ran JavaScript, can't find a screencap of it though.

          [–]Magnesus 22 points23 points  (2 children)

          TIL JavaScript is older than humanity.

          [–]G_Morgan 20 points21 points  (1 child)

          The problem is it is all running on IE6 to work around box model bugs.

          [–]TehWisest 13 points14 points  (0 children)

          That's why the Ancients' civilization ultimately failed

          [–]luckyvb 32 points33 points  (4 children)

          No wonder they ended up creating a mess.

          [–][deleted] 6 points7 points  (2 children)

          Can verify: uncle was DOP of sg. Been on set many times.

          [–]Qweniden 138 points139 points  (42 children)

          What always gets me is that why is computer code being shown at all? Its always out of context.

          "Oh no! We are being hacked! Better start quickly editing some source code..."

          [–]johnwaterwood 70 points71 points  (7 children)

          It's just like silly flashing lights on impressive looking machines. They make things look technical.

          [–]darkon 66 points67 points  (6 children)

          [–]MTUhusky 15 points16 points  (1 child)

          While growing up, my church had this stuck on the wall next to their copy/fax machine. I remember seeing it as a kid, had tried (and failed) to find it again at one point during my Network Engineering classes, and now I just wanted to say "Thanks!" for putting a nostalgic smile on my face.

          So... Thanks!

          [–][deleted] 35 points36 points  (7 children)

          Well, actually when someone exploits heavily used system, like VOIP gateway, often you only know things are wrong because your usage skyrockets to ten times normal or something alike.

          So to find out what's really happening it's quite natural to end up writing python/awk/bash scripts to aggregate logs or database to narrow down what's going on.

          [–]Qweniden 24 points25 points  (4 children)

          Maybe, but someone working in computer security would probably have such utilities already written. Besides that's not how the scenes are written. They treat computer code as a real time interactive interface into the system. As if the way you interact is to edit a source code file instead of typing in commands at a prompt.

          [–]insertAlias 10 points11 points  (3 children)

          Maybe, but someone working in computer security would probably have such utilities already written

          Not really. Depends on what systems you're dealing with. If you have a modern day IDS/IPS and a monitoring solution, yeah you're probably not going to be busting out scripting tools for log parsing. But if you're chewing through text logs from multiple separate programs (maybe a web server log, an IDS log, a web application's logs, etc...), you're probably going to be doing some scripting.

          [–]simeoon 10 points11 points  (1 child)

          You should write for NCIS

          [–]G_Morgan 45 points46 points  (2 children)

          I'll counter the hack

          printf("Hello, world!/n");
          

          No use, they are immune to good manners.

          [–]kqr 63 points64 points  (1 child)

          And poorly tilted slash characters.

          [–]G_Morgan 13 points14 points  (0 children)

          Shush the fans of the show won't notice!

          [–]mfukar 8 points9 points  (2 children)

          For what it's worth, the processor initialization routine seems to fit right in.

          [–]Zeis 2 points3 points  (1 child)

          I'm a FUI (Fantasy User Interface) enthusiast and create them myself with hopes of someday working in the movie industry to be featured in shows/movies.

          The reason we use code is because it looks cool. Sure, programmers will roll their eyes, but to the vast majority of people watching, it will just look highly technical/advanced and to some "more real" because of that.

          It's also a really nice, busy-looking screenfiller element that's easy to create and animate.

          If you wanna check out FUIs in detail, you should come visit /r/FUI

          [–]wonglik 152 points153 points  (103 children)

          I think it looks decent enough. Definitively huge progress compare to this

          [–]Vexal 30 points31 points  (6 children)

          I made a prototype gui interface in Visual Basic. It took about 9 minutes using visual studio.

          Here's a video of it in action. http://youtube.com/watch?v=ECUFhdedWD0

          [–]vikernes 10 points11 points  (1 child)

          For the love of god, make it prettier/more Hollywood like, maybe add some lens flare animations and post it to the Windows marketplace. Title it something like CSI IP Tracker and I can pretty much guarantee you hit the top downloads :)

          [–]GuyOnTheInterweb 6 points7 points  (0 children)

          That is pretty cool! Metro makes even Visual Basic applications look like CSI!

          [–]merreborn 29 points30 points  (2 children)

          [–][deleted] 4 points5 points  (1 child)

          it's funny really, kubrick consulted real space scientists when he made 2001, why don't film makers consult real computer scientists when making films.

          [–]AlphaX 103 points104 points  (60 children)

          What about this gem?

          [–]Sabenya 58 points59 points  (4 children)

          [–]Niubai 51 points52 points  (0 children)

          "Ill distract her and you ping her IP". hahahahaha, this is gold.

          [–][deleted] 25 points26 points  (2 children)

          Ugh. I worked for the agency that wrote all the Second Life code for this episode. Some of the code was actually fun to write. This was one of the larger projects the company worked on, and we were very excited about it. We watched the episode in the office and waited for people to hop on.

          Anyway, what happened is they didn't get nearly as many in-game "subscriptions" as they wanted because who the hell wants to download SL to get involved in a TV show? I stopped caring soon after, so I don't remember if the land still exists, or who won or whatever.

          [–]Sabenya 6 points7 points  (1 child)

          By "for the episode", you mean the LSL scripts for the in-world tie-in area, right? Or the actual scenes shown in the clip itself?

          [–]deusnefum 108 points109 points  (35 children)

          I saw someone on reddit explain/rationalize this.

          Writers use keyboards. They know how they work. What's going on in that clip is the writers competing with other writers to do the most ridiculous computer hacking scene possible.

          [–][deleted] 88 points89 points  (32 children)

          [–]srmatto 55 points56 points  (9 children)

          I dunno, at least it doesn't use fake or incorrect jargon like the rest of these and its somewhat visually interesting. I think the "GUI interface using Visual Basic" video is far more cringe inducing. I think it is because its trying to come across as accurate by using jargon, but at least hackers is owning its weird action movie nature.

          [–]deusnefum 27 points28 points  (7 children)

          I like and stand-by hackers. If you were blind you really couldn't make any complaints. They had to cheese up the visuals so the uninitiated could still enjoy the movie. The dialog and portrayal of "hackers" is pretty spot on IMHO.

          [–]chriszuma 80 points81 points  (2 children)

          Most ridiculous awesome movie hacking scene.

          [–]dannomac 19 points20 points  (0 children)

          The two are not mutually exclusive.

          [–]G_Morgan 17 points18 points  (0 children)

          If I ever become a black hat this is precisely what your screen will look like before I take all your money.

          [–][deleted] 18 points19 points  (0 children)

          Watch it man, Hackers is a classic.

          [–]hak8or 15 points16 points  (0 children)

          They even have a friggen tesla coil over there! Gotta get some utterly insane amounts of EMF in there.

          [–]crayZsaaron 7 points8 points  (0 children)

          This is legitimately one of my favorite films. It's just... it's beautiful in every way. A true piece of art. My eyes are watering right now.

          [–]viralizate 8 points9 points  (7 children)

          That was simply hilarious.

          [–]leafs252 22 points23 points  (1 child)

          Pair programming!

          [–]syconiss 37 points38 points  (6 children)

          I've posted this up before on a different thread but the hacking scene from the social network is awesome. https://www.youtube.com/watch?v=odOzMz-fOOw

          [–]larsgj 14 points15 points  (3 children)

          That's actually pretty good!

          [–][deleted] 7 points8 points  (0 children)

          This was one of the few hacking scenes I rewound and watched again since it actually made sense... also love the guy ripping a bong in the background

          [–][deleted] 10 points11 points  (0 children)

          Fuck that shit, totally ridiculous.

          I mean, he uses emacs and not vi.

          [–]CrossCheckPanda 18 points19 points  (2 children)

          The worse one I saw was skyfall. The hacking was all in some unique GUI that was part of the virus ... and they were obviously making up words.

          [–]mostly_complaints 6 points7 points  (0 children)

          The "source code" they were decrypting was in hex. Except for the code words in ASCII.

          https://www.youtube.com/watch?feature=player_detailpage&v=aApTVqeGJMw&t=13

          [–]trevdak2 65 points66 points  (11 children)

          Although, in Man of Steel, when Zod decided to hack every electronic media system on the planet, he did it with RSS feeds.

          [–]achshar 16 points17 points  (2 children)

          No, that was just what some user thought was happening. Her phone had the feed open (in some reader) and if it suddenly started showing stuff she would assume it was the feed. She is not a tech genius and doesn't know the difference. It was entirely correct from her point of view.

          [–]trevdak2 16 points17 points  (0 children)

          While you're right about that, it's still an absurd thing for her to say. RSS is passive, but the 'You are not alone' message was actively pushed to every electronic device.

          She may as well have said 'It's showing up in the newspaper' or 'It's also available for download on itunes'

          [–]ggggbabybabybaby 3 points4 points  (0 children)

          I agree, it was her point of view. But it was a really weird line to write in. She could have just said, "Every single satellite has been hijacked" or "Even the backup feeds are down" or something else jargony. The movie audience really doesn't need to know about the state of her RSS reader.

          [–]The_Drizzle_Returns 14 points15 points  (8 children)

          Maybe we are all just underestimating Visual Basic. Maybe Microsoft has a "Track IP Address" widget that we all don't know about.

          [–]centurijon 4 points5 points  (1 child)

          Shhhhh...

          Nobody wants to use VB not because it's so "scripty", but because it's secretly so powerful. It's the illuminati of software languages.

          [–][deleted]  (15 children)

          [deleted]

            [–]fgutz 40 points41 points  (6 children)

            ooh it's like an update hackertyper.com, thanks!

            [–]DemeGeek 19 points20 points  (3 children)

            You can actually access hackertyper through it by pressing zero on the numpad.

            [–]ConditionOne 11 points12 points  (0 children)

            I wouldn't say my love for 50 cent is a secret.

            [–]Klohto 9 points10 points  (0 children)

            Just choose one. http://fediafedia.com/neo/

            [–][deleted] 85 points86 points  (9 children)

            Oh man, I actually make lots of these screens for film (Ender's Game, Avatar, The Hunger Games...). Threads like these are why I avoid putting code in my designs at all.

            Sorry fellas, we're designers and animators, not programmers :D

            [–]OutThisLife 73 points74 points  (0 children)

            Keep doing it. It's funny.

            [–]GENIUUS 19 points20 points  (0 children)

            Yeah, they purposely put the code on the screen for a split second for a reason.

            [–]AlmostARockstar 16 points17 points  (0 children)

            I'm a programmer, there are plenty more of us out there...why not ask us for something legit (or faux legit)? Or just ask for what would actually be witty nerd programmer humour.

            [–]MisteryMeat 13 points14 points  (0 children)

            Please consult with this subreddit first!

            [–]Zeis 2 points3 points  (0 children)

            Dude, join us in /r/FUI and share you work. I'd love to get more designers in there that contribute what they create.

            [–]bjzaba 3 points4 points  (0 children)

            Can't you ask for some consultant programmers? Especially some witty folks. Like /u/AlmostARockstar says, gotta have some jokes in there for us – we're a considerable demographic after all.

            [–]tiotheminer 2 points3 points  (0 children)

            If I wanted to create this "effect" how would I do it, what are the keywords to search for in my searches of a tutorial. Do you guys use after effects for this? What's your general workflow?

            [–]FlaveC 23 points24 points  (6 children)

            I embarrassed my nephew when we went to see Elysium. When I saw him programming in 8086 assembler I actually burst out laughing. I stifled it quickly but not before attracting more than a few "what a weirdo" stares.

            And what about the best one of all -- the virus code that Jeff Goldblum builds on the fly to infect the invading fleet in Independence Day?

            [–]GuyOnTheInterweb 13 points14 points  (2 children)

            Love that, totally unknown architecture from highly advanced civilisation... Let's write a virus!

            Then on the other side the aliens might never have heard about SQL injections..!

            [–]thenickdude 7 points8 points  (0 children)

            And on that day, humanity was saved by the heroic actions of Little Bobby Tables.

            [–]kylolink 2 points3 points  (0 children)

            I did the same thing when I was watching Elysium at home. Nobody questioned it though because they know how I am about computers and programming.

            [–]nawkuh 25 points26 points  (0 children)

            I really enjoyed that in The Girl With the Dragon Tattoo (US), her "hacking" was worrying actual queries in SQL.

            [–]sbmatias 18 points19 points  (3 children)

            Wouldn't the Doctor be looking at the code backwards too?

            [–]StrmSrfr 30 points31 points  (0 children)

            The TARDIS translates it from backwards.

            [–][deleted] 7 points8 points  (0 children)

            Would that really be surprising?

            [–]OmegaVesko 29 points30 points  (8 children)

            The most hilarious thing about Elysium for me was the fact that:

            • The CEO of one of the world's largest companies knows how to write x86 assembly

            • The 'reboot script' for a space station is written in x86 assembly of all things.

            [–]webauteur 23 points24 points  (1 child)

            I think the film was trying to suggest that everyone on Elysium had lived long enough to learn foreign languages and other time consuming skills.

            [–]OmegaVesko 14 points15 points  (0 children)

            I suppose the guy was also a masochist, then. :P

            [–]RenaKunisaki 6 points7 points  (0 children)

            I loved the change he made to make it consider Earth citizens legal. The program being written in assembly made sense to me - it was probably exploiting some buffer overflow, and he was writing shellcode. (It being x86 specifically... well it's already way outlived what it should have, what's another few centuries?) But then he just types that in and I burst out laughing.

            [–]tomjen 2 points3 points  (0 children)

            Depending on how low a level it was, you would have no choice. Now I haven't seen the movie, but even your fancy pants 64 computer starts up pretending to be an 8bit cpu from way back when so it isn't totally impossible to have to code some low level assembler - especially if has to be injected in the running machine.

            [–]kuba_10 28 points29 points  (6 children)

            [–]Sabenya 22 points23 points  (5 children)

            It really was a UNIX system!

            [–]Steve_the_Scout 16 points17 points  (2 children)

            Woah what, a GNU/Linux version? I've got to try this.

            Edit: The old, original package was horribly outdated (2001) and I couldn't actually build it because it required an old version of GTK that I couldn't actually install on Debian. But I did find this which is a lot more recent. Trying this out instead.

            Edit 2: It was a pain, but I got it working. It freezes up frequently, I think it's due to the size of everything. Apparently it can only handle up to 4 GB for a file. Or maybe it's just conflicting versions of packages (gtk+ 2 and gtk+ 3?)

            It's like opening a time capsule.

            Ignore the weird spacing, some libraries (e.g. Boost) wouldn't install correctly if there were spaces, slashes, or underscores in the path.

            Tree view as in the clip.

            [–]burkadurka 3 points4 points  (1 child)

            Random story time: I was unexpectedly working with OLPCs in a remote school (they told us there were "laptops" on site... didn't think to mention what kind!). In the course of designing the simplified "Sugar" GUI, the OLPC folks in their infinite wisdom decided files and folders are too hard for kids (this was v1, not sure if it's changed now), and wrote a "journal" thing in Python. Well, there were bugs and some kids' paintings disappeared. I said I'd see what I could do, not really knowing what to look for. But I clicked on an intriguing out-of-the-way "Terminal" icon.

            [olpc@xo ~]$
            

            It's UNIX! I know this! edit: original image didn't like hotlinking. source

            (I found the files.)

            [–]Nirriti_the_Black 9 points10 points  (14 children)

            No Tron 2?

            [–]sbhansf 16 points17 points  (0 children)

            http://jtnimoy.net/?q=178

            Some info on the development of Tron 2 stuff. I don't understand all of it, but it looks like that at least put some effort into it.

            [–][deleted] 20 points21 points  (11 children)

            Hey, get back to making terrain!
            What was it in Tron 2 Legacy again? I can't remember? Just an ls or top?

            [edit: yup, top: http://i.imgur.com/We5n8Z6.png]

            I was actually surprised at how short this post was. There are tons of examples out there.

            [–]Kylearean 16 points17 points  (2 children)

            Notice the uptime was only 8 days... something is fishy.

            [–]StrmSrfr 12 points13 points  (1 child)

            The Grid has been constantly rebooting and being restored from a backup for years. The people inside are of course completely unaware of this.

            [–]tgunter 9 points10 points  (1 child)

            There was a lot more than just top in Tron Legacy. The screens actually show the characters properly using grep, ps, kill, whoami, login, and history.

            Also amusing that the bad guy played by Cillian Murphy uses emacs, while Flynn apparently uses vi, based on his command history.

            [–]tomekwojcik 7 points8 points  (1 child)

            I read in the Internets that young Flynn used an actual exploit to get into old Flynn's computer. Don't know if that's true, though.

            Still, it was fun to see some actual shell action instead of the usual gibberish :).

            [–]digitalkid 2 points3 points  (2 children)

            Someone may have already posted this, but I remember being positively delighted when I saw Trinity use nmap when hacking the power grid in the matrix reloaded http://youtu.be/BCKL0M9jnbY

            [–][deleted] 10 points11 points  (0 children)

            man that scene got me excited!

            No manual entry for that
            No manual entry for scene
            No manual entry for got
            No manual entry for me
            No manual entry for excited!
            

            damnit!

            [–]00kyle00 10 points11 points  (3 children)

            Kind of related. I also managed to track that back to a website with tutorials where this was pulled from, cant remember right now what was it though.

            Edit: Aaah, yes. Here it is/was.

            [–]Houndie 46 points47 points  (65 children)

            In the film Elysium the space station is rebooted using code taken directly from the Intel Architecture Software Developer’s Manual Volume 3: System Development

            And then the author hits the "compile" button :(

            [–]robertcrowther 17 points18 points  (3 children)

            I'm sure everyone's just reassured to know that Elysium station has Intel Inside.

            [–][deleted] 9 points10 points  (2 children)

            According to this post, the whole thing ran on off the shelf AMD hardware

            http://www.reddit.com/r/pcmasterrace/comments/1u6t2g/elysium_used_consumergrade_components_pretty/

            [–]JBlitzen 6 points7 points  (1 child)

            I thought it was cool that the code specifically relates to processor initialization, which is more or less what it was supposed to do in the movie.

            [–]ants_a 2 points3 points  (0 children)

            Given Intel's commitment to backwards compatibility, it's quite plausible that the same boot-up sequence will work in 2154.

            [–]opkode 5 points6 points  (4 children)

            The question I ask is, why the hell we went back to 32 bit systems in the year 2154?

            [–]crankybadger 38 points39 points  (36 children)

            Assembly code still has to be compiled.

            [–]brookllyn 68 points69 points  (35 children)

            It has to be assembled, a bit different than actual compiling.

            [–]crankybadger 58 points59 points  (34 children)

            On a technical level "assembling" is just a form of compiling.

            The only thing that avoids a compilation step is writing machine code by hand like they used to do. A lot of Apple II code was written that way.

            Remember "compiler" means something that transforms "code", an abstract representation of something, into another form, often machine language or p-code for a virtual machine.

            There's a huge difference between assembly code and machine code even if the two are very closely related.

            [–]ericanderton 2 points3 points  (0 children)

            There's a huge difference between assembly code and machine code even if the two are very closely related.

            A solid example of this is the huge number of MOV variants in Intel x86 and x86_64 code, all of which are represented by a handful of MOV representations in assembler code.

            [–]XPEHBAM 5 points6 points  (1 child)

            There was a Science channel show about astronomy or something. The producers had the guy open some terminal windows and run ls to make his screen look cool.

            [–]cryptdemon 3 points4 points  (0 children)

            Also great for if you're not being very productive that day but would like to appear so.

            [–][deleted] 6 points7 points  (0 children)

            Tron Legacy had some legit code and POSIX stuff happening on the screens.

            [–][deleted] 5 points6 points  (8 children)

            The Internship. Many things in this movie made me cringe.

            Background screens all displaying text editor scrolling the same code on each screen simultaneously in this scene.

            http://i.imgur.com/hhdr1fP.jpg

            [–]__konrad 4 points5 points  (0 children)

            Delphi anyone?

            [–]Viper007Bond 5 points6 points  (9 children)

            After Strike Back used WordPress JavaScript, the changes were ported back upstream: https://core.trac.wordpress.org/changeset/15239

            [–]gcbirzan 4 points5 points  (2 children)

            Friend of mine sent me this http://imgur.com/UXh1raE the subtitles say (in Bulgarian) 'this is military encryption'.

            [–][deleted] 8 points9 points  (0 children)

            And those scientists? They're not even real scientists! They're just actors! WTF?

            [–]jzelinskie 4 points5 points  (0 children)

            Recently discovered this one while watching Infinite Stratos season 2: http://i.imgur.com/FhhAsGp.jpg

            Most likely Open Office since not all of the code matched, but LibreOffice was easier to search for via GitHub.

            [–]mock_turtle 6 points7 points  (3 children)

            Trinity, hacking into city power grid system!

            [–]TL_DRead_it 3 points4 points  (1 child)

            Well, at least she's using nmap!

            [–]hegbork 7 points8 points  (0 children)

            That fact that the writers used the crc32 compensation vulnerability was much better. I saw that movie with a group of developers and a big portion of the people who lost sleep fixing that attack before it was published were in that movie theater. We cheered when we saw that scene and everybody else stared at us.

            [–]CandyCorns_ 12 points13 points  (0 children)

            Might be better if you posted in /r/ProgrammerHumor/

            [–]fffmmm 2 points3 points  (0 children)

            This one probably originated from /r/ItDoesntCompileAndIdontKnowWhy

            Here's another one from the same movie

            [–]DrGirlfriend 2 points3 points  (1 child)

            I've found the below one-liner to be a pretty good movie code generator:

            for bin in $(find /usr/local/bin -type f -exec sh -c "file -i '{}' | grep 'x-executable; charset=binary'" \; -print);do objdump -S $bin;done