Editing 1646: Twitter Bot

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 16: Line 16:
 
The story, as told by the web searches, is as follows:
 
The story, as told by the web searches, is as follows:
  
{|class="wikitable"
+
*'''How to write a Twitter bot''': Cueball has no idea where to start, so he just searches for basic advice on writing generic Twitter bots.
!Query
+
*'''Python Twitter library''': The {{w|Python (programming language)|Python}} programming language has a nice {{w|Library (computing)|library}} that [https://pypi.python.org/pypi/twitter interfaces with the Twitter API]. This does all the tricky work of authenticating the bot's identity and sending the messages, so the user can concentrate on the fun parts.
!Explanation
+
*'''Machine learning''': {{w|Machine learning}} is the basis of {{w|Artificial intelligence|artificial intelligence}}.
|-
+
*'''Cloud hosting''': While it's possible to host a Twitter bot on your server, you can also have it {{w|Internet hosting service|hosted}} by someone else - such as {{w|Amazon Web Services|Amazon}} - in order to take advantage of their powerful computers and robust internet connection.
|How to write a Twitter bot|| Cueball has no idea where to start, so he just searches for basic advice on writing generic Twitter bots.
+
*'''Bot troubleshooting''': Cueball is having some trouble with his bot and is looking for some information about resolving the problem.
|-
+
*'''Locked out of EC2 instance''': {{w|Amazon Elastic Compute Cloud|EC2}} is a hosting service by Amazon that allows users to run their code in the hosting server. Cueball was running his bot from EC2, but now he's unable to access his account. He's searching for advice on how to regain access.
|Python Twitter library|| The {{w|Python (programming language)|Python}} programming language has a nice {{w|Library (computing)|library}} that [https://pypi.python.org/pypi/twitter interfaces with the Twitter API]. This does all the tricky work of authenticating the bot's identity and sending the messages, so the user can concentrate on the fun parts.
+
*'''Bot changed own password?''': Cueball is suspecting that the reason he can't access his Amazon EC2 account is that the bot has changed the password without Cueball's knowledge or consent. Since the bot was never programmed to change any passwords at all, the fact that it has done so is pretty scary, as one wonders what other things the bot is doing without being programmed for it.
|-
+
*'''How to fight a bot''': Cueball is trying to physically fight the bot, but he's apparently unsuccessful and the fight results in a loud "boom" and "pew, pew, pew" sounds. The situation is scarier than before, as it starts to resemble the "killbot hellscape" in [[1613: The Three Laws of Robotics]].
|Machine learning|| {{w|Machine learning}} is the basis of {{w|artificial intelligence}}.
+
*'''Cheap flights to Australia''': Cueball has completely given up the possibility of regaining control of the bot, so he flees to {{w|Australia}} instead. [[Randall]] lives in {{w|Massachusetts}}, USA, so Australia would be a far, far away land for him.
|-
+
 
|Cloud hosting|| While it's possible to host a Twitter bot on your server, you can also have it {{w|Internet hosting service|hosted}} by someone else - such as {{w|Amazon Web Services|Amazon}} - in order to take advantage of their powerful computers and robust internet connection.
+
In the title text the  '''Python flag enable three laws''' reference that the Python language is known for having easy constructs to perform difficult tasks (see [[353: Python]]). In this case, it is either assumed that (or Cueball is making yet another query to see if) Python has a configuration flag (i.e., a {{w|Boolean data type|boolean}} value) which, when set to "enabled" (or "true", as opposed to "disabled", or "false"), will cause the bot to follow {{w|Isaac Asimov}}'s famous {{w|Three Laws of Robotics}}. This is a simple enough step, and it might have been enough to prevent the "killbot hellscape" scenario, like the rule is depicted doing in the top panel of [[1613: The Three Laws of Robotics]]. It won't cause the bot to stop being in control, however, but if the bot is following the rules strictly it would not be allowed to even make Cueball uncomfortable, which he already becomes when it changes his password! It is unclear if this message is something he actually desperately tries, only searches for (like the rest of the queries) or something (someone shouts at him) that he should have done before creating the bot in the first place. Or the title text is simply Randall's comment on his own comic, like an idea to add that flag in Python. Just in case.
|-
 
|Bot troubleshooting|| Cueball is having some trouble with his bot and is looking for some information about resolving the problem.
 
|-
 
|Locked out of EC2 instance|| {{w|Amazon Elastic Compute Cloud|EC2}} is a hosting service by Amazon that allows users to run their code in the hosting server. Cueball was running his bot from EC2, but now he's unable to access his account. He's searching for advice on how to regain access.
 
|-
 
|Bot changed own password?|| Cueball is suspecting that the reason he can't access his Amazon EC2 account is that the bot has changed the password without Cueball's knowledge or consent. Since the bot was never programmed to change any passwords at all, the fact that it has done so is pretty scary, as one wonders what other things the bot is doing without being programmed for it.
 
|-
 
|How to fight a bot|| Cueball is trying to physically fight the bot, but he's apparently unsuccessful and the fight results in a loud "boom" and "pew, pew, pew" sounds. The situation is scarier than before, as it starts to resemble the "killbot hellscape" in [[1613: The Three Laws of Robotics]].
 
|-
 
|Cheap flights Australia|| Cueball has completely given up the possibility of regaining control of the bot, so he flees to {{w|Australia}} instead. [[Randall]] lives in {{w|Massachusetts}}, USA, so Australia would be a far, far away land from the bot.
 
|-
 
|'''Title text:''' Python flag enable three laws|| This references that the Python language is known for having easy constructs to perform difficult tasks (see [[353: Python]]). In this case, it is either assumed that (or Cueball is making yet another query to see if) Python has a configuration flag (i.e., a {{w|Boolean data type|boolean}} value) which, when set to "enabled" (or "true", as opposed to "disabled", or "false"), will cause the bot to follow {{w|Isaac Asimov}}'s famous {{w|Three Laws of Robotics}}. This is a simple enough step, and it might have been enough to prevent the "killbot hellscape" scenario, like the rule is depicted doing in the top panel of [[1613: The Three Laws of Robotics]]. It won't cause the bot to stop being in control, however, but if the bot is following the rules strictly it would not be allowed to even make Cueball uncomfortable, which he already becomes when it changes his password! It is unclear if this message is something he actually desperately tries, only searches for (like the rest of the queries) or something (someone shouts at him) that he should have done before creating the bot in the first place. Or the title text is simply Randall's comment on his own comic, like an idea to add that flag in Python. Just in case.
 
|}
 
  
 
==Transcript==
 
==Transcript==
Line 70: Line 57:
 
:Query: Cheap flights Australia
 
:Query: Cheap flights Australia
 
:<font color="gray">Search</font>
 
:<font color="gray">Search</font>
 
==Trivia==
 
On March 23, 2016, a month after the release of this comic, {{w|Microsoft}} released the Twitter bot {{w|Tay (bot)|Tay}} causing many controversies and was shut down only 16 hours after its launch. It's unknown if some people at Microsoft were inspired by this comic.
 
  
 
{{comic discussion}}
 
{{comic discussion}}
Line 78: Line 62:
 
[[Category:Artificial Intelligence]]
 
[[Category:Artificial Intelligence]]
 
[[Category:Computers]]
 
[[Category:Computers]]
[[Category:Google Search]]
 
 
[[Category:Robots]]
 
[[Category:Robots]]
 
[[Category:Programming]]
 
[[Category:Programming]]
 
[[Category:Social networking]]
 
[[Category:Social networking]]
[[Category:Singularity]]
 

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)