Tuesday, February 7, 2017

Data Science Trolling at the Airport: Using R to Look Like the Matrix

I've been quite busy at work lately, but I am working on some new, serious posts (one on Support Vector Machines, another on Trumps claims of voter fraud).  For today though, just a fun post about trolling people who like to stare at programmers in public.  

Occasionally, I am stranded somewhere in public (like an airport or a conference) when I need to do some serious coding (side note: one large company has a significant piece of their software architecture running that I wrote on a bench in Las Vegas).  In these situations I open my laptop and start coding, but often notice that people are staring at my computer screen. It doesn't bother me that much, but over time it does become a bit annoying.  A few theories for the stares:

  • It's novel: They've never seen a programmer at work before.
  • It's me specifically: I tend to fidget, and be generally annoying when coding.
  • Its evil: When normal people see programmers writing code in movies, they're always doing something fun and exciting, or evil. They're hackers. 




A Solution:

Anyway, I eventually get annoyed with people staring at me, and based on my third bullet point, decide to give them a show, troll them just a bit.  I wrote this very short piece of code a few years ago in an airport, it's for R and actually quite simple:




It uses a loop, runif() and some rounding to create 70,000,000 random number and print them to the console.  It basically makes your computer screen look like something from a hacker or Matrix movie.  The Sys.sleep() function is something to parameterize based on your system settings, but the point of it is to make the console animate as though you are in a movie.  What does this code create?  I  Here's video of the code running: 




Recommendations for maximum silliness: 

  • When you start the code, maximize the command line portion of your computer.
  • Make sure you're setup for black background and white or green text, for maximum appearance of evil.
  • For bonus points try to give the appearance that you are really up to something:
    • Wringing of hands or nervous fingers help with this appearance.
    • Rocking back and forth slightly while intently staring at the screen.
    • Mumbling under breath things like "it's working, it's working!" or "almost in... almost in."






19 comments:

  1. Excellent Sharing. You have done great job. I gathered lots of new information. . Devops Online Training | Data Science Online Training

    ReplyDelete
  2. Hi, I am really happy to found such a helpful and fascinating post that is written in well manner. Thanks for sharing such an informative post.R Programming Online Training | Hadoop Online Training

    ReplyDelete
  3. Thank you for sharing such a nice and interesting blog with us. Hope it might be much useful for us. keep on updating...!!
    seo company in india
    digital marketing company in india

    ReplyDelete
  4. Great blog.you put Good stuff.All the topics were explained briefly.so quickly understand for me.I am waiting for your next fantastic blog.Thanks for sharing.Any coures related details learn.... Dot Net Training in Chennai
    Android Training in Chennai
    Selenium Training in Chennai
    Hadoop Training in Chennai

    ReplyDelete
  5. Everyone wants to get unique place in the IT industry’s for that you need to upgrade your skills, your blog helps me improvise my skill set to get good career, keep sharing your thoughts with us.

    Data Science Online Training

    ReplyDelete
  6. Hi, I really happy to read your blog. I will gather lot of new information from this blog. you will written in well manner. Thanks for sharing.


    Data Science Training in Bangalore

    ReplyDelete
  7. Gengories Blogs article.Pretty useful information posted here. We share data science contribution of matrix uses and concussion sites. In these topics explained is very and understand very quickly. We want to hear & learn for Hadoop well to it visit
    Hadoop Training in Chennai

    ReplyDelete
  8. Thanks for sharing such a wonderful article with us.It's very useful for the begginers to Data Science.In this article I gathered a lot of information about Data Science

    ReplyDelete
  9. Great post. The strategy you have posted Data Science Trolling at the Airport: Using R to Look Like the Matrix this technology helped me to get into the next level and had lot of information in it.Get more.. Software Testing Training in Bangalore
    Devops Training in Bangalore

    ReplyDelete
  10. Nice blog has been shared by you. it will be really helpful to many peoples who are all working under the technology.thank you for sharing this blog.

    Data Science Online Training
    Hadoop Online Training

    ReplyDelete
  11. Hi admin, really you have done great job. A career in data science makes you a well decision maker in other scopes of lifetime. At its core, Data Science Training in Bangalore goes you into a good data-driven decision maker.

    ReplyDelete
  12. Nice Blog. It is really an useful information, Thanks for sharing
    Data science training

    ReplyDelete
  13. Wonderful Blog!!! Your post is very informative about Hadoop technology. Thank you for sharing the article with

    us.

    Hadoop Training in Chennai |
    Hadoop Course in Chennai

    ReplyDelete
  14. Thank you so much for sharing this worth able content with us. The concept taken here will be useful for my future programs and i will surely implement them in my study. Keep blogging article like this.

    Data science training in Marathahalli|
    Data science training in Bangalore|
    Hadoop Training in Marathahalli|
    Hadoop Training in Bangalore|

    ReplyDelete
  15. I’m really impressed with your blog article, such great & useful knowledge you mentioned here...Python Training in Marathahalli

    Data Science Training in BTM Layout

    ReplyDelete
  16. The lodging is likewise close to the lodging group in Miami. Consequently, this air terminal inn has as of late been redesigned. https://lutonairportparking.uk.com

    ReplyDelete