<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jarcand</id>
		<title>explain xkcd - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jarcand"/>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php/Special:Contributions/Jarcand"/>
		<updated>2026-05-16T17:41:37Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1665:_City_Talk_Pages&amp;diff=121483</id>
		<title>1665: City Talk Pages</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1665:_City_Talk_Pages&amp;diff=121483"/>
				<updated>2016-06-06T19:27:16Z</updated>
		
		<summary type="html">&lt;p&gt;Jarcand: Fixed HTML markup to be valid&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1665&lt;br /&gt;
| date      = April 8, 2016&lt;br /&gt;
| title     = City Talk Pages&lt;br /&gt;
| image     = city talk pages.png&lt;br /&gt;
| titletext = &amp;quot;I don't think the Lakeshore Air Crash Museum really belongs under 'Tourist Attractions.' It's not a museum--it's just an area near the Lake Festival Laser Show where a lot of planes have crashed.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
The comic makes fun of Wikipedia talk pages. On Wikipedia, every article has a place to discuss the content of the page, called a &amp;quot;{{w|Help:Using talk pages|talk page}}&amp;quot;. In this case, the comic talks about the talk page of an article about a city. While some of the topics are quite normal for such a page (e.g. the quality of the images) others are not (e.g. too many murders and mine disasters in the city). The topics discussed suggest that the city has many problems and is a bad place to live in or visit.&lt;br /&gt;
&lt;br /&gt;
The topics show a common problem at Wikipedia's talk pages: People often use them as a place to talk about the ''subject'' of the article, but it is for talking about the ''article'' itself. Someone at the top of the talk page is suggesting a better name for the city.&lt;br /&gt;
&lt;br /&gt;
The article repeatedly refers to &amp;quot;the murders&amp;quot;, suggesting that the city might be well-known for them. It seems that the editors cannot agree on how notable &amp;quot;the murders&amp;quot; are. &amp;quot;Not that notable&amp;quot; refers to Wikipedia's general criteria for including information in articles. Material which is not noteworthy should be removed; however, different editors often disagree about what is notable, resulting in conflicting edits as text is inserted and then removed (an &amp;quot;edit war&amp;quot;). Someone replies that &amp;quot;all cities have murders&amp;quot;. While true, many cities in low-crime countries would not have a series of them so well-known that when someone talks about &amp;quot;the murders&amp;quot; any reader could be expected to know what they are talking about, making this sound like an attempt to make the city sound nicer than it is. &amp;quot;I think the murderer is reverting my edits&amp;quot; suggests the murders are being committed by ''one person'' who is influencing how they are shown on WIkipedia - perhaps trying to prevent Wikipedia from publishing evidence of them or possibly publicise them by adding ''more'' information about them. This raises the possibility that the discussion of the murder visible in the infobox picture may have been ''initiated by the murderer''.&lt;br /&gt;
&lt;br /&gt;
The {{w|WP:Infobox|infobox}} is a short fact sheet that many articles in the (English) Wikipedia have; it generally includes an image illustrating the subject of the article. The question of which picture is best for the infobox (because this image is so prominent) can cause edit wars. It emerges that the photograph of the city has a murder in it. Instead of forwarding the picture to law enforcement, someone uses the image editing software Photoshop to erase the murder so the picture will be less objectionable. It appears that murders are so common in the city that any random photograph of the city has a chance of showing a murder, to the point where a second photo proposed as a replacement for the infobox picture is found to show ''another'' murder.&lt;br /&gt;
&lt;br /&gt;
{{w|Voltaire}} was a French Enlightenment writer. As a prominent and very opinionated intellectual, [https://en.wikiquote.org/wiki/Voltaire#Misattributed he gets a lot of quotes falsely attributed to him]; most famously, he did not actually say &amp;quot;I disagree with what you say, but I will defend to the death your right to say it&amp;quot; (that was {{w|Evelyn Beatrice Hall}}).&lt;br /&gt;
&lt;br /&gt;
It seems that the people who are editing the article are getting desperate to find a non-bleak picture of the city. When a non-bleak picture is added, it turns out to be from the 2016 Disney film {{w|Zootopia}}. The fictional city which is the setting and title of the film has a distinctive [http://vignette2.wikia.nocookie.net/disney/images/4/43/Zootopia_City_Full.jpg look] which is far from bleak, but is not a picture of the city. (Zootopia is called Zootropolis in many European countries for trademark reasons.)&lt;br /&gt;
&lt;br /&gt;
The city apparently is a mining city and there have been some mining disasters. An editor is complaining that this section is too long, but another editor points out that this is because there have been so many mining disasters that a large section is needed to cover the topic. &lt;br /&gt;
&lt;br /&gt;
{{w|1982 Secession}} refers to Key West, Florida seceding from the United States in 1982 to form the {{w|Conch Republic}}.&lt;br /&gt;
&lt;br /&gt;
A known problem on Wikipedia is &amp;quot;coatracking&amp;quot;, where people use articles to promote topics that are not strictly the subject of the article (perhaps by writing far more about them than is necessary, when they could just be mentioned in passing). Here, it emerges that the article on a city expresses a dubious opinion on condom use. This is against several Wikipedia policies: it would be irrelevant to the article and sounds like an editor's attempt to publicise their views.&lt;br /&gt;
&lt;br /&gt;
{{w|Andrew Lloyd Webber}} is an English composer famous for writing ''The {{w|Phantom Of The Opera}}''. Webber is also known for writing the music for ''{{w|Starlight Express}}'', a rock opera about anthropomorphized trains, which is probably another factor in the train station joke. Meanwhile, {{w|Frank Lloyd Wright}}, who shares his middle name and last initial, was an American architect, who designed more than 1,000 structures. As it turns out it was the composer who was responsible for the train station, and as a result the station roof has collapsed.&lt;br /&gt;
&lt;br /&gt;
In the comic ''Webber'' is spelled ''Weber''. This could be a mistake by [[Randall]], (but then it is likely to be corrected later...) More likely Randall did this for the sake of realism as this is what can be expected by people writing in a talk page on Wikipedia, where errors are not necessarily corrected as they would be in the main article.&lt;br /&gt;
&lt;br /&gt;
It is complained that the article is promoting the &amp;quot;Lake Festival Laser Show&amp;quot; too much. In the alt text, it emerges that the laser show is so impressive that it has caused a number of aeroplanes to crash. This probably refers to the fact that laser pointers should not be aimed at aircrafts, as they can be distracting to the pilots. The article has been promoting this area of crashed planes as the &amp;quot;Lakeshore Air Crash Museum&amp;quot;, despite it not having any educational purpose.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
*{{w|Talk:Key West, Florida#What's with the Chicken photo}} questions the relevance of free range chickens.&lt;br /&gt;
*{{w|Talk:Rio de Janeiro#Oh, there's no crime in Rio?}} suggests crime incidence in Rio has been suppressed to promote tourism.&lt;br /&gt;
*{{w|Talk:Kirkcaldy}} discusses naming.&lt;br /&gt;
*{{w|Talk:Isfahan}} has many naming proposals.&lt;br /&gt;
*{{w|Talk:Chattanooga, Tennessee}} has disputes over crime and notability of residents.&lt;br /&gt;
*{{w|Talk:Muara Bungo}} indicates someone ''repeatedly'' tried to delete the second-largest city in Jambi, Sumatra.&lt;br /&gt;
*{{w|Talk:Arvada, Colorado}} held a heated argument considerably longer than the article, concerning the existence of a scandal in the police department.  A year later, one editor deemed the issue unimportant and removed it entirely.&lt;br /&gt;
*{{w|Talk:Sutton-in-Ashfield}} discusses the cultural significance of town landmarks.&lt;br /&gt;
*{{w|Talk:Abergele}} has residents arguing over who should be included.&lt;br /&gt;
*{{w|Talk:Tucson, Arizona}}:&lt;br /&gt;
** ''I heard you can get Chicago-style deep dish pizza even in Tucson! Is this true? If so, it probably should be added to the article.''&lt;br /&gt;
** ''Um...I heard this place is kinda dangerous.''&lt;br /&gt;
** ''Shouldn't the headline-indicated shooting be included?''&lt;br /&gt;
** ''Why are there three photos showing snow in the vicinity of Tucson? I know snow is an event for us, but I think other Wikipedians know what it looks like.''&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[Caption above the panel: ]&lt;br /&gt;
:I love reading the Wikipedia talk pages for articles on individual cites&lt;br /&gt;
&lt;br /&gt;
:[A list of contents for a Wikipedia talk page regarding an article about a city. Except for the header and the square brackets, which are written in black text, the rest is in a blue font.]&lt;br /&gt;
:::Contents [&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;Hide&amp;lt;/font&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:blue;&amp;quot;&amp;gt;&lt;br /&gt;
:1 Origin of city's name?&lt;br /&gt;
::1.1 Idea for a better name&lt;br /&gt;
::1.2 Not how Wikipedia works&lt;br /&gt;
:2 Too much promotion of the lake festival&lt;br /&gt;
:3 Should we mention the murders?&lt;br /&gt;
::3.1 Not that notable&lt;br /&gt;
::3.2 All cites have murders&lt;br /&gt;
:4 Quote verification:  Even if Voltaire did visit (unlikely), why would he get so angry about our restaurants?&lt;br /&gt;
:5 Discuss:  New picture&lt;br /&gt;
::5.1 Current one looks awfully bleak&lt;br /&gt;
::5.2 Gray sky&lt;br /&gt;
::5.3 What about this&lt;br /&gt;
::5.4 Also bleak&lt;br /&gt;
::5.5 Maybe this place just looks that way&lt;br /&gt;
::5.6 Found a better picture, more colorful&lt;br /&gt;
::5.7 That's a shot from Disney's ''Zootopia''&lt;br /&gt;
:6 &amp;quot;Mining disasters&amp;quot; section too long&lt;br /&gt;
::6.1 Not really Wikipedia's fault&lt;br /&gt;
::6.2 Why is this town so bad at mining?&lt;br /&gt;
:7 Infobox picture:  I just realized you can see a murder happening in the background&lt;br /&gt;
::7.1 This city is terrible&lt;br /&gt;
::7.2 Photoshopped out murder&lt;br /&gt;
::7.3 Can someone just take a better picture&lt;br /&gt;
::7.4 Okay, uploaded a new picture&lt;br /&gt;
::7.5 Wait, never mind, I just noticed there's a murder in this one, too&lt;br /&gt;
:8 1982 secession still in effect?&lt;br /&gt;
:9 I think the murderer is reverting my edits&lt;br /&gt;
:10 Why does this article take '''''any''''' position on correct condom use, let alone such a weird and ambiguous one?&lt;br /&gt;
:11 Train station &amp;quot;Designed by Andrew Lloyd Weber&amp;quot;?&lt;br /&gt;
::11.1 They probably mean Frank Lloyd Wright&lt;br /&gt;
::11.2 I thought so too, but it's apparently not a mistake&lt;br /&gt;
::11.3 Didn't know he did architecture&lt;br /&gt;
::11.4 Roof collapse&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
[[Category:Comics with color]]&lt;br /&gt;
[[Category:Wikipedia]]&lt;/div&gt;</summary>
		<author><name>Jarcand</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1685:_Patch&amp;diff=120816</id>
		<title>1685: Patch</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1685:_Patch&amp;diff=120816"/>
				<updated>2016-05-25T15:06:43Z</updated>
		
		<summary type="html">&lt;p&gt;Jarcand: Fixed HTML markup to be valid&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1685&lt;br /&gt;
| date      = May 25, 2016&lt;br /&gt;
| title     = Patch&lt;br /&gt;
| image     = patch.png&lt;br /&gt;
| titletext = My optimizer uses content-aware inpainting to fill in all the wasted whitespace in the code, repeating the process until it compiles.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{w|Adobe Photoshop}} is a commonly used software for image manipulation. One of its features is &amp;quot;content-aware inpainting&amp;quot;, which allows the user to delete parts of the image and seamlessly replace the deleted sections with &amp;quot;patches&amp;quot; of texture from other parts of the image. &lt;br /&gt;
&lt;br /&gt;
The {{w|GNU}} {{w|Patch (Unix)|patch}} is a software program that replaces only parts of the code with an updated version, without requiring the user to download the entire source code. Here, it appears the author was told to &amp;quot;patch&amp;quot; the code, but used Photoshop to do this instead of GNU patch, with devastating results. Although the title text suggest that if you did this enough times the code would eventually compile, this would never happen. In fact, Photoshop could only edit an image of the text and not the text itself.&lt;br /&gt;
&lt;br /&gt;
The code appears to be written in {{w|Python_(programming_language)|Python}}, a programming language often referred to in xkcd.  A few of the function names that can be recognized are &amp;quot;isPrime&amp;quot; and &amp;quot;quicksort&amp;quot;, both elementary programming algorithms.&lt;br /&gt;
&lt;br /&gt;
The title text also explains that patch used the content-aware inpainting to fill in all the wasted whitespace in the code. In Python, whitespaces are used as a part of programming syntax (for example, new line of code are used instead of semicolon (;), and indents are used instead of curly brackets.&lt;br /&gt;
&lt;br /&gt;
The original code was likely as follows:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;import&amp;lt;/font&amp;gt; re&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;def&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; isPrime&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(n):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if &amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;False&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;in &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;range&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;, &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;int&amp;lt;/font&amp;gt;(n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;**&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0.5&amp;lt;/font&amp;gt;)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;):&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;%&amp;lt;/font&amp;gt;i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;==&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt; False&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;True&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;def &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;isPrimeRegex&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(n):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; re.match(&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;'&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;^&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;?&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;$&amp;lt;/font&amp;gt;|&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;^&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;(.1&amp;lt;/font&amp;gt;+?&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;\1+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;$&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;'&amp;lt;/font&amp;gt;, &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;'1'&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n): &lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;False&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt; True&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;def&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; quicksort&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(a):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(a) &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;/font&amp;gt;a&lt;br /&gt;
:::pivot&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;a[&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;]&lt;br /&gt;
:::l&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ln&amp;lt;/font&amp;gt; a &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;pivot]&lt;br /&gt;
:::r&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ln&amp;lt;/font&amp;gt; a &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;gt;&amp;lt;/font&amp;gt;pivot]&lt;br /&gt;
:::mid&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[pivot]&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;(a)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;-&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;(l)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;(r)))&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;/font&amp;gt;quicksort(l)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;mid&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;quicksort(r)&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[The panel displays part of a code, in four different colors (red, light blue, green and purple) as well as normal black text, which due to image editing is difficult to read. The first and last line are partly obscured by the frame of the panel. Here below is an attempt to transcribe the code, using the sign &amp;quot;¤&amp;quot; for anything not easily transcribed. Feel free to add other signs instead of these that looks more like the one in the image (and also improve the attempted transcription if possible).]&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;impo¤l &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;me&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;doo&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;PisPS¤me&amp;lt;/font&amp;gt;(n):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;¤&amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;n,&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;retern&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;F&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;ise&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ir&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;ararre&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;, &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;nint&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;**&amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;5&amp;lt;/font&amp;gt;)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;5&amp;lt;/font&amp;gt;):&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; n i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;==&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;&lt;br /&gt;
:::::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ret¤¤nrs&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;elsel&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;re¤ irn &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;True&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;defe&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;sisPrimcieg ¤x&amp;lt;/font&amp;gt;(c&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;x&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;g&amp;lt;/font&amp;gt;e&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;¤i&amp;lt;/font&amp;gt;natc&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;x&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt;'&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;^&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;(1&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;?| ?.&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+?&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;lime&amp;quot;&amp;gt;\+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;$&amp;lt;/font&amp;gt;'&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)1'&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n):&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;rerjrn &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;Fa&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;(&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt; e&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Letyl&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;nr&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;Trl&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;dq&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;l qlsorsor&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;n&amp;lt;/font&amp;gt;(a :&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;¤n&amp;lt;/font&amp;gt;(a &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt; &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;eteturn &amp;lt;/font&amp;gt;a&lt;br /&gt;
:::pi&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;= =r f&amp;lt;/font&amp;gt;a[&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;]&lt;br /&gt;
:::l&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;pi&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=for&amp;lt;/font&amp;gt; j &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ln&amp;lt;/font&amp;gt; a i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;pi&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;(t]&amp;lt;small&amp;gt;(&amp;lt;/small&amp;gt;)&lt;br /&gt;
:::r&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[l&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=for f in&amp;lt;/font&amp;gt; a) &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;gt;&amp;lt;/font&amp;gt;viviv]&amp;lt;small&amp;gt;(&amp;lt;/small&amp;gt;vo)&lt;br /&gt;
:::mid&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[pi[&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;t]&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;l&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;t&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;,&amp;lt;/font&amp;gt;(a)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;-&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;pi&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;enlen&amp;lt;/font&amp;gt;(c)))&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r¤lrurrr&amp;lt;/font&amp;gt;iklcksckt(l) &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt; r ¤ ¤quickrort(r)&lt;br /&gt;
&lt;br /&gt;
:[Caption below the panel:]&lt;br /&gt;
:Protip: If you don't have access to the GNU ''patch'' tool, you can use the Photoshop one.&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Comics with color]]&lt;br /&gt;
[[Category:Protip]]&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>Jarcand</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1685:_Patch&amp;diff=120815</id>
		<title>1685: Patch</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1685:_Patch&amp;diff=120815"/>
				<updated>2016-05-25T15:06:21Z</updated>
		
		<summary type="html">&lt;p&gt;Jarcand: Fixed HTML markup to be valid&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1685&lt;br /&gt;
| date      = May 25, 2016&lt;br /&gt;
| title     = Patch&lt;br /&gt;
| image     = patch.png&lt;br /&gt;
| titletext = My optimizer uses content-aware inpainting to fill in all the wasted whitespace in the code, repeating the process until it compiles.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{w|Adobe Photoshop}} is a commonly used software for image manipulation. One of its features is &amp;quot;content-aware inpainting&amp;quot;, which allows the user to delete parts of the image and seamlessly replace the deleted sections with &amp;quot;patches&amp;quot; of texture from other parts of the image. &lt;br /&gt;
&lt;br /&gt;
The {{w|GNU}} {{w|Patch (Unix)|patch}} is a software program that replaces only parts of the code with an updated version, without requiring the user to download the entire source code. Here, it appears the author was told to &amp;quot;patch&amp;quot; the code, but used Photoshop to do this instead of GNU patch, with devastating results. Although the title text suggest that if you did this enough times the code would eventually compile, this would never happen. In fact, Photoshop could only edit an image of the text and not the text itself.&lt;br /&gt;
&lt;br /&gt;
The code appears to be written in {{w|Python_(programming_language)|Python}}, a programming language often referred to in xkcd.  A few of the function names that can be recognized are &amp;quot;isPrime&amp;quot; and &amp;quot;quicksort&amp;quot;, both elementary programming algorithms.&lt;br /&gt;
&lt;br /&gt;
The title text also explains that patch used the content-aware inpainting to fill in all the wasted whitespace in the code. In Python, whitespaces are used as a part of programming syntax (for example, new line of code are used instead of semicolon (;), and indents are used instead of curly brackets.&lt;br /&gt;
&lt;br /&gt;
The original code was likely as follows:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;import&amp;lt;/font&amp;gt; re&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;def&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; isPrime&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(n):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if &amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;False&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;in &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;range&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;, &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;int&amp;lt;/font&amp;gt;(n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;**&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0.5&amp;lt;/font&amp;gt;)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;):&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;%&amp;lt;/font&amp;gt;i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;==&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt; False&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;True&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;def &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;isPrimeRegex&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(n):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; re.match(&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;'&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;^&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;?&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;$&amp;lt;/font&amp;gt;|&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;^&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;(.1&amp;lt;/font&amp;gt;+?&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;\1+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;$&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;'&amp;lt;/font&amp;gt;, &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;'1'&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n): &lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;False&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt; True&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;def&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; quicksort&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(a):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(a) &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;/font&amp;gt;a&lt;br /&gt;
:::pivot&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;a[&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;]&lt;br /&gt;
:::l&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ln&amp;lt;/font&amp;gt; a &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;pivot]&lt;br /&gt;
:::r&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ln&amp;lt;/font&amp;gt; a &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;gt;&amp;lt;/font&amp;gt;pivot]&lt;br /&gt;
:::mid&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[pivot]&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;(a)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;-&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;(l)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;(r)))&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;/font&amp;gt;quicksort(l)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;mid&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;quicksort(r)&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[The panel displays part of a code, in four different colors (red, light blue, green and purple) as well as normal black text, which due to image editing is difficult to read. The first and last line are partly obscured by the frame of the panel. Here below is an attempt to transcribe the code, using the sign &amp;quot;¤&amp;quot; for anything not easily transcribed. Feel free to add other signs instead of these that looks more like the one in the image (and also improve the attempted transcription if possible).]&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;impo¤l &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;me&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;doo&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;PisPS¤me&amp;lt;/font&amp;gt;(n):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;¤&amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;n,&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;retern&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;F&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;ise&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ir&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;ararre&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;, &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;nint&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;**&amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;5&amp;lt;/font&amp;gt;)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;5&amp;lt;/font&amp;gt;):&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; n i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;==&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;&lt;br /&gt;
:::::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ret¤¤nrs&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;elsel&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;re¤ irn &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;True&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;defe&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;sisPrimcieg ¤x&amp;lt;/font&amp;gt;(c&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;x&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;g&amp;lt;/font&amp;gt;e&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;¤i&amp;lt;/font&amp;gt;natc&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;x&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt;'&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;^&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;(1&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;?| ?.&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+?&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;\+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;$&amp;lt;/font&amp;gt;'&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)1'&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n):&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;rerjrn &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;Fa&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;(&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt; e&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Letyl&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;nr&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;Trl&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;dq&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;l qlsorsor&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;n&amp;lt;/font&amp;gt;(a :&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;¤n&amp;lt;/font&amp;gt;(a &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt; &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;eteturn &amp;lt;/font&amp;gt;a&lt;br /&gt;
:::pi&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;= =r f&amp;lt;/font&amp;gt;a[&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;]&lt;br /&gt;
:::l&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;pi&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=for&amp;lt;/font&amp;gt; j &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ln&amp;lt;/font&amp;gt; a i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;pi&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;(t]&amp;lt;small&amp;gt;(&amp;lt;/small&amp;gt;)&lt;br /&gt;
:::r&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[l&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=for f in&amp;lt;/font&amp;gt; a) &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;gt;&amp;lt;/font&amp;gt;viviv]&amp;lt;small&amp;gt;(&amp;lt;/small&amp;gt;vo)&lt;br /&gt;
:::mid&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[pi[&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;t]&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;l&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;t&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;,&amp;lt;/font&amp;gt;(a)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;-&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;pi&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;enlen&amp;lt;/font&amp;gt;(c)))&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r¤lrurrr&amp;lt;/font&amp;gt;iklcksckt(l) &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt; r ¤ ¤quickrort(r)&lt;br /&gt;
&lt;br /&gt;
:[Caption below the panel:]&lt;br /&gt;
:Protip: If you don't have access to the GNU ''patch'' tool, you can use the Photoshop one.&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Comics with color]]&lt;br /&gt;
[[Category:Protip]]&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>Jarcand</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1685:_Patch&amp;diff=120814</id>
		<title>1685: Patch</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1685:_Patch&amp;diff=120814"/>
				<updated>2016-05-25T15:04:01Z</updated>
		
		<summary type="html">&lt;p&gt;Jarcand: Fixed HTML markup to be valid&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1685&lt;br /&gt;
| date      = May 25, 2016&lt;br /&gt;
| title     = Patch&lt;br /&gt;
| image     = patch.png&lt;br /&gt;
| titletext = My optimizer uses content-aware inpainting to fill in all the wasted whitespace in the code, repeating the process until it compiles.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{w|Adobe Photoshop}} is a commonly used software for image manipulation. One of its features is &amp;quot;content-aware inpainting&amp;quot;, which allows the user to delete parts of the image and seamlessly replace the deleted sections with &amp;quot;patches&amp;quot; of texture from other parts of the image. &lt;br /&gt;
&lt;br /&gt;
The {{w|GNU}} {{w|Patch (Unix)|patch}} is a software program that replaces only parts of the code with an updated version, without requiring the user to download the entire source code. Here, it appears the author was told to &amp;quot;patch&amp;quot; the code, but used Photoshop to do this instead of GNU patch, with devastating results. Although the title text suggest that if you did this enough times the code would eventually compile, this would never happen. In fact, Photoshop could only edit an image of the text and not the text itself.&lt;br /&gt;
&lt;br /&gt;
The code appears to be written in {{w|Python_(programming_language)|Python}}, a programming language often referred to in xkcd.  A few of the function names that can be recognized are &amp;quot;isPrime&amp;quot; and &amp;quot;quicksort&amp;quot;, both elementary programming algorithms.&lt;br /&gt;
&lt;br /&gt;
The title text also explains that patch used the content-aware inpainting to fill in all the wasted whitespace in the code. In Python, whitespaces are used as a part of programming syntax (for example, new line of code are used instead of semicolon (;), and indents are used instead of curly brackets.&lt;br /&gt;
&lt;br /&gt;
The original code was likely as follows:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;import&amp;lt;/font&amp;gt; re&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;def&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; isPrime&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(n):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if &amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;False&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;in &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;range&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;, &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;int&amp;lt;/font&amp;gt;(n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;**&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0.5&amp;lt;/font&amp;gt;)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;):&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;%&amp;lt;/font&amp;gt;i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;==&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt; False&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;True&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;def &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;isPrimeRegex&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(n):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; re.match(&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;'&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;^&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;?&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;$&amp;lt;/font&amp;gt;|&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;^&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;(.1&amp;lt;/font&amp;gt;+?&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;\1+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;$&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;'&amp;lt;/font&amp;gt;, &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;'1'&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n): &lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;False&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt; True&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;def&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; quicksort&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(a):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(a) &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;/font&amp;gt;a&lt;br /&gt;
:::pivot&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;a[&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;]&lt;br /&gt;
:::l&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ln&amp;lt;/font&amp;gt; a &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;pivot]&lt;br /&gt;
:::r&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ln&amp;lt;/font&amp;gt; a &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;gt;&amp;lt;/font&amp;gt;pivot]&lt;br /&gt;
:::mid&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[pivot]&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;(a)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;-&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;(l)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;(r)))&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;/font&amp;gt;quicksort(l)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;mid&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;quicksort(r)&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[The panel displays part of a code, in four different colors (red, light blue, green and purple) as well as normal black text, which due to image editing is difficult to read. The first and last line are partly obscured by the frame of the panel. Here below is an attempt to transcribe the code, using the sign &amp;quot;¤&amp;quot; for anything not easily transcribed. Feel free to add other signs instead of these that looks more like the one in the image (and also improve the attempted transcription if possible).]&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;impo¤l &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;me&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;doo&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;PisPS¤me&amp;lt;/font&amp;gt;(n):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;¤&amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;n,&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;retern&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;F&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;ise&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ir&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;ararre&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;, &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;nint&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;**&amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;5&amp;lt;/font&amp;gt;)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;5&amp;lt;/font&amp;gt;):&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; n i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;==&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;&lt;br /&gt;
:::::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ret¤¤nrs&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;elsel&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;re¤ irn &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;True&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;defe&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;sisPrimcieg ¤x&amp;lt;/font&amp;gt;(c&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;x&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;g&amp;lt;/font&amp;gt;e&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;¤i&amp;lt;/font&amp;gt;natc&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;x&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt;'&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;^&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;(1&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;?| ?.&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+?&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;gree&amp;quot;&amp;gt;\+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;$&amp;lt;/font&amp;gt;'&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)1'&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n):&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;rerjrn &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;Fa&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;(&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt; e&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Letyl&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;nr&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;Trl&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;dq&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;l qlsorsor&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;n&amp;lt;/font&amp;gt;(a :&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;¤n&amp;lt;/font&amp;gt;(a &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt; &amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;eteturn &amp;lt;/font&amp;gt;a&lt;br /&gt;
:::pi&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;= =r f&amp;lt;/font&amp;gt;a[&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;]&lt;br /&gt;
:::l&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;pi&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=for&amp;lt;/font&amp;gt; j &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ln&amp;lt;/font&amp;gt; a i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;pi&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;(t]&amp;lt;small&amp;gt;(&amp;lt;/small&amp;gt;)&lt;br /&gt;
:::r&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[l&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=for f in&amp;lt;/font&amp;gt; a) &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;gt;&amp;lt;/font&amp;gt;viviv]&amp;lt;small&amp;gt;(&amp;lt;/small&amp;gt;vo)&lt;br /&gt;
:::mid&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[pi[&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;t]&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;l&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;t&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;,&amp;lt;/font&amp;gt;(a)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;-&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;pi&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;enlen&amp;lt;/font&amp;gt;(c)))&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r¤lrurrr&amp;lt;/font&amp;gt;iklcksckt(l) &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt; r ¤ ¤quickrort(r)&lt;br /&gt;
&lt;br /&gt;
:[Caption below the panel:]&lt;br /&gt;
:Protip: If you don't have access to the GNU ''patch'' tool, you can use the Photoshop one.&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Comics with color]]&lt;br /&gt;
[[Category:Protip]]&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>Jarcand</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1685:_Patch&amp;diff=120813</id>
		<title>1685: Patch</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1685:_Patch&amp;diff=120813"/>
				<updated>2016-05-25T14:49:32Z</updated>
		
		<summary type="html">&lt;p&gt;Jarcand: Fixed HTML markup to be valid&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1685&lt;br /&gt;
| date      = May 25, 2016&lt;br /&gt;
| title     = Patch&lt;br /&gt;
| image     = patch.png&lt;br /&gt;
| titletext = My optimizer uses content-aware inpainting to fill in all the wasted whitespace in the code, repeating the process until it compiles.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{w|Adobe Photoshop}} is a commonly used software for image manipulation. One of its features is &amp;quot;content-aware inpainting&amp;quot;, which allows the user to delete parts of the image and seamlessly replace the deleted sections with &amp;quot;patches&amp;quot; of texture from other parts of the image. &lt;br /&gt;
&lt;br /&gt;
The {{w|GNU}} {{w|Patch (Unix)|patch}} is a software program that replaces only parts of the code with an updated version, without requiring the user to download the entire source code. Here, it appears the author was told to &amp;quot;patch&amp;quot; the code, but used Photoshop to do this instead of GNU patch, with devastating results. Although the title text suggest that if you did this enough times the code would eventually compile, this would never happen. In fact, Photoshop could only edit an image of the text and not the text itself.&lt;br /&gt;
&lt;br /&gt;
The code appears to be written in {{w|Python_(programming_language)|Python}}, a programming language often referred to in xkcd.  A few of the function names that can be recognized are &amp;quot;isPrime&amp;quot; and &amp;quot;quicksort&amp;quot;, both elementary programming algorithms.&lt;br /&gt;
&lt;br /&gt;
The title text also explains that patch used the content-aware inpainting to fill in all the wasted whitespace in the code. In Python, whitespaces are used as a part of programming syntax (for example, new line of code are used instead of semicolon (;), and indents are used instead of curly brackets.&lt;br /&gt;
&lt;br /&gt;
The original code was likely as follows:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;import&amp;lt;/font&amp;gt; re&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;def&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; isPrime&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(n):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if &amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;False&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;in &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;range&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;, &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;int&amp;lt;/font&amp;gt;(n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;**&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0.5&amp;lt;/font&amp;gt;)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;):&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;%&amp;lt;/font&amp;gt;i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;==&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt; False&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;True&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;def &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;isPrimeRegex&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(n):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; re.match(&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;'&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;^&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;?&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;$&amp;lt;/font&amp;gt;|&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;^&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;(.1&amp;lt;/font&amp;gt;+?&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;green&amp;quot;&amp;gt;\1+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;$&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;'&amp;lt;/font&amp;gt;, &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;'1'&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n): &lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;False&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt; True&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;def&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt; quicksort&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(a):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(a) &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;/font&amp;gt;a&lt;br /&gt;
:::pivot&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;a[&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;]&lt;br /&gt;
:::l&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ln&amp;lt;/font&amp;gt; a &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;pivot]&lt;br /&gt;
:::r&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt; for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ln&amp;lt;/font&amp;gt; a &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;gt;&amp;lt;/font&amp;gt;pivot]&lt;br /&gt;
:::mid&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[pivot]&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;(a)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;-&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;(l)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;(r)))&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;return &amp;lt;/font&amp;gt;quicksort(l)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;mid&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;quicksort(r)&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[The panel displays part of a code, in four different colors (red, light blue, green and purple) as well as normal black text, which due to image editing is difficult to read. The first and last line are partly obscured by the frame of the panel. Here below is an attempt to transcribe the code, using the sign &amp;quot;¤&amp;quot; for anything not easily transcribed. Feel free to add other signs instead of these that looks more like the one in the image (and also improve the attempted transcription if possible).]&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;impo¤l &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;me&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;doo&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;PisPS¤me&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(n):&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;¤&amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;n,&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;1&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;retern&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;F&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;ise&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;for&amp;lt;/font&amp;gt; i &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ir&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;ararre&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;, &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;nint&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;**&amp;lt;/font&amp;gt;n&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;5&amp;lt;/font&amp;gt;)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;5&amp;lt;/font&amp;gt;):&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; n i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;==&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:::::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ret¤¤nrs&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;elsel&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;re¤ irn &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;True&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;defe&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;sisPrimcieg ¤x&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(c&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;x&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;g&amp;lt;/font&amp;gt;e&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;¤i&amp;lt;/font&amp;gt;natc&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;x&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt;'&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;^&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;(1&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;?| ?.&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;1&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+?&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)&amp;lt;font color=&amp;quot;gree&amp;quot;&amp;gt;\+&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;$&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;'&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;n &amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;)1'&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;n):&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;rerjrn &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;Fa&amp;lt;font color=&amp;quot;blue&amp;quot;&amp;gt;(&amp;lt;/font&amp;gt; e&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Letyl&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;nr&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;Trl&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;dq&amp;lt;font color=&amp;quot;purple&amp;quot;&amp;gt;l qlsorsor&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;n&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(a :&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;if &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;¤n&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;(a &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt; &amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;2&amp;lt;/font&amp;gt;&amp;lt;/font&amp;gt;:&lt;br /&gt;
:::::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;eteturn &amp;lt;/font&amp;gt;a&lt;br /&gt;
:::pi&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;= =r f&amp;lt;/font&amp;gt;a[&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;0&amp;lt;/font&amp;gt;]&lt;br /&gt;
:::l&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;pi&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=for&amp;lt;/font&amp;gt; j &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;ln&amp;lt;/font&amp;gt; a i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;pi&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;&amp;lt;/font&amp;gt;(t]&amp;lt;small&amp;gt;(&amp;lt;/small&amp;gt;)&lt;br /&gt;
:::r&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[l&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=for f in&amp;lt;/font&amp;gt; a) &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r&amp;lt;/font&amp;gt; i&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;gt;&amp;lt;/font&amp;gt;viviv]&amp;lt;small&amp;gt;(&amp;lt;/small&amp;gt;vo)&lt;br /&gt;
:::mid&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;=&amp;lt;/font&amp;gt;[pi[&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;t]&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;l&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;*&amp;lt;/font&amp;gt;t&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;,&amp;lt;/font&amp;gt;(a)&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;-&amp;lt;/font&amp;gt;(&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;len&amp;lt;/font&amp;gt;pi&amp;lt;font color=&amp;quot;light blue&amp;quot;&amp;gt;enlen&amp;lt;/font&amp;gt;(c)))&lt;br /&gt;
:::&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;r¤lrurrr&amp;lt;/font&amp;gt;iklcksckt(l) &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;+&amp;lt;/font&amp;gt; r ¤ ¤quickrort(r)&lt;br /&gt;
&lt;br /&gt;
:[Caption below the panel:]&lt;br /&gt;
:Protip: If you don't have access to the GNU ''patch'' tool, you can use the Photoshop one.&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Comics with color]]&lt;br /&gt;
[[Category:Protip]]&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>Jarcand</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1650:_Baby&amp;diff=113752</id>
		<title>1650: Baby</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1650:_Baby&amp;diff=113752"/>
				<updated>2016-03-02T11:33:37Z</updated>
		
		<summary type="html">&lt;p&gt;Jarcand: Plural&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1650&lt;br /&gt;
| date      = March 2, 2016&lt;br /&gt;
| title     = Baby&lt;br /&gt;
| image     = baby.png&lt;br /&gt;
| titletext = Does it get taller first and then widen, or does it reach full width before getting taller, or alternate, or what?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
{{incomplete|Created by a BOT - Please change this comment when editing this page.}}&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[Cueball is standing in front of a family consisting a Cueball-like guy holding a newborn baby, with spiky hair, in a blanket and Megan. Cueball is thinking lots of thoughts about what to say to the couple upon seeing their baby for the first time. There is thus a huge thinking bobble in the top of the panel above the characters. Everything in this bubble has been crossed out like taking a pencil and drawing lines on top of the text, but it can still be read. After using all this time thinking, Cueball finally decides what to say, only to immediately regret this as can be seen in a small thought bubble below his spoken line, which is between the huge and the small bubble.]&lt;br /&gt;
:Cueball (thoughts that are crossed out): &amp;lt;!--These thoughts are not striked-out --&amp;gt;&lt;br /&gt;
::Wow, it's getting so big! Unlike most babies, which stay the same size forever.&lt;br /&gt;
::Hi! I'm talking to a baby!&lt;br /&gt;
::What brand is it?&lt;br /&gt;
::Wow, definitely much smaller than a regular person!&lt;br /&gt;
::You sure did make that.&lt;br /&gt;
::★★★★☆ great baby.&lt;br /&gt;
::It doesn't really look like you since you're not a baby.&lt;br /&gt;
::So do they learn words one at a time alphabetically or can you pick the order or what?&lt;br /&gt;
::I hope it does a good job.&lt;br /&gt;
:Cueball: Wow, that's a really cool baby!&lt;br /&gt;
:Cueball (thinking): Dammit.&lt;br /&gt;
&lt;br /&gt;
:[Caption below the panel:]&lt;br /&gt;
:I can never figure out what to say about babies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;/div&gt;</summary>
		<author><name>Jarcand</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1168:_tar&amp;diff=113224</id>
		<title>1168: tar</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1168:_tar&amp;diff=113224"/>
				<updated>2016-02-24T01:03:34Z</updated>
		
		<summary type="html">&lt;p&gt;Jarcand: Fixed HTML markup to be valid&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1168&lt;br /&gt;
| date      = February 1, 2013&lt;br /&gt;
| title     = tar&lt;br /&gt;
| image     = tar.png&lt;br /&gt;
| titletext = I don't know what's worse--the fact that after 15 years of using tar I still can't keep the flags straight, or that after 15 years of technological advancement I'm still mucking with tar flags that were 15 years old when I started.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
{{w|Tar (computing)|tar}} (&amp;quot;tape archive&amp;quot;) is a {{w|Unix|Unix}} application that creates (and extracts) archives in the &amp;quot;.tar&amp;quot; format. It is typically used through the text-based terminal, using cryptic single-letter arguments such as &amp;quot;&amp;lt;code&amp;gt;tar -cvf archive.tar *&amp;lt;/code&amp;gt;&amp;quot;. The comic alludes to the fact that despite years of use of the command, it's still hard to remember the arguments without searching for them, such as with Google.&lt;br /&gt;
&lt;br /&gt;
The title text points out that while much of computing changes very quickly, the tar program, which is very old (originating ca. 1975), is still around and heavily used. And yet, [[Randall]] complains he still cannot type out a line of tar command with correct flags without having to look the flags up.&lt;br /&gt;
&lt;br /&gt;
The joke here is that a &amp;quot;tar&amp;quot; command with perfect syntax on the first try without outside help is such a daunting task that even [[Rob]] can't overcome it with [https://en.wiktionary.org/wiki/assuredness assuredness], and apologizes for not being able to prevent their imminent death.&lt;br /&gt;
&lt;br /&gt;
The fact that [[Megan]] and [[White Hat]] assume that Rob can disarm the {{w|nuclear bomb}} because he uses Unix can be referring to an over-generalization fallacy that a partaker in a practice is an expert of a practice. Not all people who use Unix necessarily know how to use tar commands. Then again, since he's the only person nearby who knows ''any'' Unix and thus their only hope, their fallacy is pretty justified.&lt;br /&gt;
&lt;br /&gt;
There is probably also a pun on &amp;quot;{{w|tarbomb}},&amp;quot; a poorly created tar archive that, when extracted, dumps a load of files into the current directory that the user has to clean up. And although the bomb looks more like {{w|Fat Man}}, the type of bomb that was used over {{w|Nagasaki}}, at least size wise, it may also be a pun on the name of the largest ever {{w|hydrogen bomb}} which was called the {{w|Tsar Bomba}}.&lt;br /&gt;
&lt;br /&gt;
Alternative explanation: Tar is a very common command that Unix users will come across regularly, much like Windows users will come across .zip files. Depending on the flavor of Unix, the order of the flags, or the lack or inclusion of a '-' could render the command incorrect. Most true Unixes (AIX, HPUX, Solaris) not using the GNU utilities would give an error on the above tar example. For such a simple command, it is one that most people need to look up references to use.&lt;br /&gt;
&lt;br /&gt;
In [[208: Regular Expressions]] [[Cueball]] saves the day by knowing {{w|regular expression}}s, although in the title text it is alluded to how easy these may also miss a character.&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[Megan and White Hat stand next to a nuclear bomb. The bomb has a hatch open on top, and a small blinking screen. The two people are shouting off-screen.]&lt;br /&gt;
:Megan: Rob! You use Unix!&lt;br /&gt;
:White Hat: Come quick!&lt;br /&gt;
&lt;br /&gt;
:[Megan, White Hat, and Rob look at the screen on the bomb. Rob peers closely. The screen is on the bomb, but is shown at the top of the panel in black with white letters, except &amp;quot;tar&amp;quot; and the last underscore which is in gray and &amp;quot;ten&amp;quot; which is black but written in a white box. The text reads:]&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|style=&amp;quot;background-color:black;&amp;quot;|&amp;lt;font color=&amp;quot;white&amp;quot;&amp;gt;To disarm the bomb,&amp;lt;br&amp;gt;simply enter a valid&amp;lt;br&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;tar&amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;white&amp;quot;&amp;gt;command on your&amp;lt;br&amp;gt;first try. No Googling.&amp;lt;br&amp;gt;You have &amp;lt;/font&amp;gt;&amp;lt;code&amp;gt;&amp;lt;font color=&amp;quot;black&amp;quot;&amp;gt;ten&amp;lt;/font&amp;gt;&amp;lt;/code&amp;gt; &amp;lt;font color=&amp;quot;white&amp;quot;&amp;gt;seconds&amp;lt;br&amp;gt;~# &amp;lt;/font&amp;gt; &amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;_&amp;lt;/font&amp;gt; &lt;br /&gt;
|}&lt;br /&gt;
:[They continue to peer. (Beat panel).]&lt;br /&gt;
&lt;br /&gt;
:[Same position but White Hat becomes impatient.]&lt;br /&gt;
:White Hat: ...Rob?&lt;br /&gt;
:Rob: I'm so sorry.&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Comics featuring White Hat]]&lt;br /&gt;
[[Category:Comics featuring Megan]]&lt;br /&gt;
[[Category:Comics featuring Rob]]&lt;br /&gt;
[[Category:Computers]]&lt;br /&gt;
[[Category:Programming]]&lt;/div&gt;</summary>
		<author><name>Jarcand</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1205:_Is_It_Worth_the_Time%3F&amp;diff=113222</id>
		<title>1205: Is It Worth the Time?</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1205:_Is_It_Worth_the_Time%3F&amp;diff=113222"/>
				<updated>2016-02-24T00:31:49Z</updated>
		
		<summary type="html">&lt;p&gt;Jarcand: Fixed HTML markup to be valid&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1205&lt;br /&gt;
| date      = April 29, 2013&lt;br /&gt;
| title     = Is It Worth the Time?&lt;br /&gt;
| image     = is it worth the time.png&lt;br /&gt;
| titletext = Don't forget the time you spend finding the chart to look up what you save. And the time spent reading this reminder about the time spent. And the time trying to figure out if either of those actually make sense. Remember, every second counts toward your life total, including these right now.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
The comic is a straightforward chart showing the amount of work (time) one can dedicate to making a task more efficient, in order not to spend more time optimizing the task than the total time saved. This may illustrate the fact that computer scientists often try to optimize tasks they are likely to perform again in the future - a common goal in their work - even though the work needed for that optimization can itself prove much longer than the time saved when doing the task again; this was previously referenced in [[974: The General Problem]].&lt;br /&gt;
&lt;br /&gt;
E.g. if you do some task every week once, and you are able to save 1 minute of time by doing some preparatory work (e.g. build or buy a tool), you can spend 4 hours doing this preparatory work, and you will, across five-years time, come even. Any less time spent doing the preparatory work, and you will profit from it.&lt;br /&gt;
&lt;br /&gt;
The calculation on which the chart is based, for this example:&lt;br /&gt;
:5 years / 1 week = 260 occurrences of the task&lt;br /&gt;
:260 occurrences × 1 saved minute = 260 saved minutes = 4.3 hours&lt;br /&gt;
&lt;br /&gt;
Therefore, 1 minute saved every week would, across five years, save over 4 hours of your time.&lt;br /&gt;
&lt;br /&gt;
Or, in algebraic form:&lt;br /&gt;
:Total time shaved off across 5 years = 5 × &amp;quot;How often you do the task every year&amp;quot; × &amp;quot;How much time you shave off&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The grayed out areas represent times which are either impossible to save, or where, if you could save this much (say 6 hours on one day), it would almost be worth it no matter how long it takes. For instance it is impossible to shave 1 hour off a task if you perform it more than 24 times a day – the total time shaved off per day would amount to more than one day, and thus you could not have performed the task this many times in a day to begin with. On the other hand, 6 hours shaved off for one day is not impossible, but the net benefit would be so great, that it would very quickly earn it self in again almost no matter how long it takes. If the assumption is that a work day is 8 hours, then even if it took 2 years to do the improvement, you would already have earned it in after less than five years in total - both with the 2 years to make it and the time it takes to save 2 years (2.67 years in this case for at total of 4.67 years).&lt;br /&gt;
&lt;br /&gt;
The comic assumes that equal amounts of time have equal value, which is not necessarily true. For an extreme example, consider programming a telephone with speed dials to be used when there is a fire or to call an ambulance or the police. This may take longer than the time saved when the call is placed, but it is worthwhile spend a large amount of free time to save any time during an emergency.&lt;br /&gt;
&lt;br /&gt;
Of course, all these conclusions presume you are the only one that benefits. If the savings can be easily adapted by others - for example, computer code for a program that automates a task for hundreds of people - then the amount of time that can be spent increases. Indeed, in some cases, when optimizing for others, spending far more time than they save can be worth it, if the people you're working for are paying you for the product and the time savings keep them happy and likely to keep paying you. And if what you're optimizing is a business process that's unlikely to go out of date with your employer's current tools ''or'' its current products, then you may have more than 5 years to amortize the improvement.&lt;br /&gt;
&lt;br /&gt;
The title text points out the time you spend studying this comic detracts from your overall efficiency, and concludes that maximizing efficiency would require optimal use of every second and finishes of very philosophically by pointing out that every second you use counts towards your life total - also those you spend editing a wiki about a web comic...&lt;br /&gt;
&lt;br /&gt;
The comic derives humor from the absurd conclusions of hyper-efficiency, which have been examined in [http://what-if.xkcd.com/22/ ''What if?'' - Cost of Pennies], and also in [[951: Working]] which is devoted to insufficient economy, where the money saved is compared to the time wasted while looking for a bargain. In [[1319: Automation]] Randall investigates how bad it really goes when you decide to automate a program to save you time... See also the [[:Category:Time management|Time management category]].&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[Above the frame is written the following text:]&lt;br /&gt;
:How long can you work on making a routine task more &lt;br /&gt;
:efficient  before you're spending more time than you save?&lt;br /&gt;
:::::(across five years)&lt;br /&gt;
&lt;br /&gt;
:[The table in the comic is not exactly as given here below. The text in the top two rows are written above the real table. The top line is written on the center part of a square bracket encompassing the horizontal time scale in the second row. Similarly the text in the first to columns to the left are not part of the real table. The first column to the left is also written on a square bracket encompassing the vertical time scale.]&lt;br /&gt;
:[The number ''1'' in ''1 day'' or any ''n'' in ''n days'' are drawn in what looks like a sheet from a tear-off calendar. When it is a number of weeks, seven small squares, representing a week, is drawn above the text. For minutes and seconds these words are written below the number.]&lt;br /&gt;
:[The empty fields in the calendar are shaded dark gray]&lt;br /&gt;
&lt;br /&gt;
:{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; rowspan=&amp;quot;2&amp;quot; |&lt;br /&gt;
! colspan=&amp;quot;6&amp;quot; | How often you do the task&lt;br /&gt;
|-&lt;br /&gt;
! 50/day !! 5/day !! Daily !! Weekly !! Monthly !! Yearly&lt;br /&gt;
|-&lt;br /&gt;
!rowspan=&amp;quot;9&amp;quot; style=&amp;quot;width:50px;&amp;quot; | How much time you shave off&lt;br /&gt;
! 1 second&lt;br /&gt;
| 1 day || 2 hours || 30 minutes || 4 minutes || 1 minute || 5 seconds&lt;br /&gt;
|-&lt;br /&gt;
! 5 seconds&lt;br /&gt;
| 5 days || 12 hours || 2 hours || 21 minutes || 5 minutes || 25 seconds&lt;br /&gt;
|-&lt;br /&gt;
! 30 seconds&lt;br /&gt;
| 4 weeks || 3 days || 12 hours || 2 hours || 30 minutes || 2 minutes&lt;br /&gt;
|-&lt;br /&gt;
! 1 minute&lt;br /&gt;
| 8 weeks || 6 days || 1 day || 4 hours || 1 hour || 5 minutes&lt;br /&gt;
|-&lt;br /&gt;
! 5 minutes&lt;br /&gt;
| 9 months || 4 week || 6 days || 21 hours || 5 hour || 25 minutes&lt;br /&gt;
|-&lt;br /&gt;
! 30 minutes&lt;br /&gt;
|  || 6 months || 5 weeks || 5 days || 1 day || 2 hours&lt;br /&gt;
|-&lt;br /&gt;
! 1 hour&lt;br /&gt;
|  || 10 months || 2 months || 10 days || 2 days || 5 hours&lt;br /&gt;
|-&lt;br /&gt;
! 6 hours&lt;br /&gt;
|  ||  ||  || 2 months || 2 weeks || 1 day&lt;br /&gt;
|-&lt;br /&gt;
! 1 day&lt;br /&gt;
|  ||  ||  ||  || 8 weeks || 5 days&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
[[Category:Charts]]&lt;br /&gt;
[[Category:Math]]&lt;br /&gt;
[[Category:Time management]]&lt;/div&gt;</summary>
		<author><name>Jarcand</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1338:_Land_Mammals&amp;diff=113221</id>
		<title>1338: Land Mammals</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1338:_Land_Mammals&amp;diff=113221"/>
				<updated>2016-02-24T00:16:25Z</updated>
		
		<summary type="html">&lt;p&gt;Jarcand: Fixed HTML markup to be valid&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1338&lt;br /&gt;
| date      = March 5, 2014&lt;br /&gt;
| title     = Land Mammals&lt;br /&gt;
| image     = land_mammals.png&lt;br /&gt;
| titletext = Bacteria still outweigh us thousands to one--and that's not even counting the several pounds of them in your body.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
{{Incomplete|Still need more guesses for the [[#Unlabeled Animals|Unlabeled Animals table]]}}&lt;br /&gt;
This comic shows the total weight of {{w|Human|mankind}} and all other land {{w|mammals}}. Only a few centuries ago, {{w|humans}}, their {{w|pets}} and {{w|livestock}} came to make up a great proportion of the earth's land mammal {{w|biomass}}. Note that only land-dwelling mammals are taken into account, so for instance {{w|whales}} and {{w|sea cows}} will not be included. (Whether this only covers animals that cannot live on land or any {{w|marine mammals}} like for stance {{w|Pinniped|seals}} and {{w|walrus}}, is not clear).&lt;br /&gt;
&lt;br /&gt;
The design of the blocks loosely resembles a {{w|Cell (biology)|cell}}. This could be a reference to how these animals support humans, analogous to a cell supporting a central nucleus. If so, it seems that all the animals in this diagram, {{w|wild animals|wild}} or {{w|Domestication|domestic}}, in some way support human activity.&lt;br /&gt;
&lt;br /&gt;
The title text states that {{w|bacteria}} outweigh us thousands to one, without counting the several pounds of {{w|Human microbiota|bacteria in our body}} that are considered part of our own weight (like {{w|Gut flora}}). The aforementioned cell could also be a bacterium, making it a possible reference to the title text, since 1256 blocks have been used to sketch the &amp;quot;cell&amp;quot;, and bacteria outweigh us by about this factor.&lt;br /&gt;
&lt;br /&gt;
This comic may be a [[Nerd Sniping|nerd snipe]] from [[Randall]], challenging his readers to figure out the missing parts.&lt;br /&gt;
&lt;br /&gt;
Randall also discusses animal biomass in [http://whatif.xkcd.com/123/ Fairy Demographics] in which he compares the biomass of &amp;quot;fairies&amp;quot; to humans, horses, and humpback whales.&lt;br /&gt;
&lt;br /&gt;
===Weight===&lt;br /&gt;
According to the diagram, there are 358 million tons of humans, 864 million tons of pets and livestock, of which 520 million tons comes from {{w|cattle}}, and 34 million tons of wild animals; for a total of 1.256 billion tons.&lt;br /&gt;
The number of blocks represents the weight of the group in millions of tons = billions of kg. Note that some entries have the same number of blocks, and thus have the same rank.&lt;br /&gt;
&lt;br /&gt;
====Humans====&lt;br /&gt;
Cattle, in aggregate, are much heavier than the human population. Humans outweigh both {{w|sheep}} and {{w|Domestic pig|pigs}} put together. This may be a surprise for people in the countries that produce the majority of meat from such animals, because here these animals outweigh the population. But there are many parts of the world where especially pigs are not eaten, and it is not every where that sheep is in great demand. And especially in the some of the most populations dense regions in the {{w|Third World}} meat is not something you can afford to eat on a regular basis.&lt;br /&gt;
&lt;br /&gt;
====Our pets and livestock====&lt;br /&gt;
There are 13 distinct blocks of pets and live stock; only the top 5 are labeled - in order of weight they are: Cattle, Sheep, Pigs, {{w|Goats}} and {{w|Horses}}. Cattle, in aggregate, are much heavier than the human population, which has been inserted in the table for comparison:&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; style=&amp;quot;width: auto; text-align: center; font-size: 95%; table-layout: fixed; line-height:1.25&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Total&amp;amp;nbsp;Rank&lt;br /&gt;
! Weight&amp;amp;nbsp; (Millions of tons)&lt;br /&gt;
! Name&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00001|1}}&lt;br /&gt;
| {{sort|00520|520}}&lt;br /&gt;
|  Cattle&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00001|2}}&lt;br /&gt;
| {{sort|00358|358}}&lt;br /&gt;
|  (Humans)&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00003|3}}&lt;br /&gt;
| {{sort|00135|135}}&lt;br /&gt;
| Sheep&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00004|4}}&lt;br /&gt;
| {{sort|00090|90}}&lt;br /&gt;
| Pigs&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00005|5}}&lt;br /&gt;
| {{sort|00039|39}}&lt;br /&gt;
| Goats&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00006|6}}&lt;br /&gt;
| {{sort|00029|29}}&lt;br /&gt;
| Horses&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00007|7}}&lt;br /&gt;
| {{sort|00013|13}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00009|9}}&lt;br /&gt;
| {{sort|00008|8}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00010|10}}&lt;br /&gt;
| {{sort|00007|7}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00010|10}}&lt;br /&gt;
| {{sort|00007|7}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00013|13}}&lt;br /&gt;
| {{sort|00006|6}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00014|14}}&lt;br /&gt;
| {{sort|00005|5}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00017|17}}&lt;br /&gt;
| {{sort|00003|3}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00019|19}}&lt;br /&gt;
| {{sort|00002|2}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Wild Animals====&lt;br /&gt;
There are 8 distinct blocks of wild animal ({{w|elephants}} and 7 others). The elephant is the only type of wild animal to be singled out in the comic. This may possibly be due to elephants being the largest land mammal. And yes, the world's heaviest land animal only takes up one square. Also interesting is that the largest group of wild animals only comes in on a tied 8 place in the ranking (which is shared between the two tables).&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; style=&amp;quot;width: auto; text-align: center; font-size: 95%; table-layout: fixed; line-height:1.25&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Rank&lt;br /&gt;
! Weight&amp;amp;nbsp; (Millions of tons)&lt;br /&gt;
! Name&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00008|8}}&lt;br /&gt;
| {{sort|00010|10}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00010|10}}&lt;br /&gt;
| {{sort|00007|7}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00014|14}}&lt;br /&gt;
| {{sort|00005|5}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00016|16}}&lt;br /&gt;
| {{sort|00004|4}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00017|17}}&lt;br /&gt;
| {{sort|00003|3}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00019|19}}&lt;br /&gt;
| {{sort|00002|2}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00019|19}}&lt;br /&gt;
| {{sort|00002|2}}&lt;br /&gt;
| Unlabeled&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00022|22}}&lt;br /&gt;
| {{sort|00001|1}}&lt;br /&gt;
| Elephants&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====References====&lt;br /&gt;
The comic references the book [http://vaclavsmil.com/the-earths-biosphere-evolution-dynamics-and-change/ The Earth's Biosphere: Evolution, Dynamics, and Change] by {{W|Vaclav Smil}} as the source for most of the data. A few other sources have also been used, but were not referenced.&lt;br /&gt;
On page 186 of Smil's book, there is a bar chart with the following values:&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; style=&amp;quot;width: auto; text-align: center; font-size: 95%; table-layout: fixed; line-height:1.25&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! (Millions of tons)&lt;br /&gt;
! Name&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00008|0.8}}&lt;br /&gt;
| Elephants&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00400|40}}&lt;br /&gt;
| Horses&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|01000|100}}&lt;br /&gt;
| Pigs&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|04500|450}}&lt;br /&gt;
| Cattle&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|02800|280}}&lt;br /&gt;
|  People&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00800|80}}&lt;br /&gt;
|  Whales&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|00300|30}}&lt;br /&gt;
| all&amp;amp;nbsp;wild&amp;amp;nbsp;{{w|vertebrates}}&lt;br /&gt;
|-&lt;br /&gt;
| {{sort|06500|650}}&lt;br /&gt;
| all&amp;amp;nbsp;domesticated&amp;amp;nbsp;vertebrates&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
Note that all labelled non-human animals are in this table. It seems that this table was the source of most of the data in the comic.  Only land dwelling mammals are taken into account. Whales, wild vertebrates, and domesticated vertebrates are not included in the comic.&lt;br /&gt;
&lt;br /&gt;
====Unlabeled Animals====&lt;br /&gt;
These are guesses about the identity of the unlabeled animals&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;width: auto; text-align: center; font-size: 95%; table-layout: fixed; line-height:1.25&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Rank&lt;br /&gt;
! Comic weight (Millions of tons)&lt;br /&gt;
! Type&lt;br /&gt;
! Guess&lt;br /&gt;
! Actual Population (Millions)&lt;br /&gt;
! Average Weight (kg)&lt;br /&gt;
! Total weight (Millions of kg)&lt;br /&gt;
! Explanation&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |7&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |13&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |Pets/Livestock&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |8&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |10&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |Wild animals&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |9&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |8&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |Pets/Livestock&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |10&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |7&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |Pets/Livestock&lt;br /&gt;
| {{w|Camel}}&lt;br /&gt;
| 17&lt;br /&gt;
| 412&lt;br /&gt;
| 7004&lt;br /&gt;
| Wikipedia lists the number of camels as 17 million. An average weight, based on Wikipedia's numbers for male and female, is about 500&amp;amp;nbsp;kg. So, including the non-adult camels, an average around 400&amp;amp;nbsp;kg seems to be a realistic estimate.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |10&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |7&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |Pets/Livestock&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |10&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |7&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |Wild animals&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |13&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |6&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |Pets/Livestock&lt;br /&gt;
| {{w|Dogs}}&lt;br /&gt;
| 400&lt;br /&gt;
| 15&lt;br /&gt;
| 6000&lt;br /&gt;
|According to Wikipedia, there are 400 million dogs worldwide. If the average weight is 15&amp;amp;nbsp;kg, there would be 6 blocks.&amp;lt;!-- Small dog=2 kg large dog = 100 kg the log average is about 15 kg. --&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |14&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |5&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |Pets/Livestock&lt;br /&gt;
| {{w|Donkeys}}&lt;br /&gt;
| 41&lt;br /&gt;
| 122&lt;br /&gt;
| 5002&lt;br /&gt;
| There are roughly 41 million {{w|Donkey#Present status|donkeys on Earth}}, with an average weight of about 125&amp;amp;nbsp;kg.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |14&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |5&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |Wild animals&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |16&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |4&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |Wild animals&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |17&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |3&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |Pets/Livestock&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |17&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |3&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |Wild animals&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |19&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |2&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |Pets/Livestock&lt;br /&gt;
| {{w|Cats}}&lt;br /&gt;
| 500&lt;br /&gt;
| 4&lt;br /&gt;
| 2000&lt;br /&gt;
| There are 500 million domestic cats worldwide. The average weight of an adult cats is 4.5&amp;amp;nbsp;kg. Factoring in the lighter weight of immature cats, 4&amp;amp;nbsp;kg as an average for all cats, (adult and immature) is within the range of possibility. (According to [[526: Converting to Metric]] cats do weigh 4 kg, only with caption do they reach 4.1 kg).&lt;br /&gt;
|-&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |19&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |2&lt;br /&gt;
| rowspan=&amp;quot;1&amp;quot; |Wild animals&lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |19&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |2&lt;br /&gt;
| rowspan=&amp;quot;2&amp;quot; |Wild animals&lt;br /&gt;
| {{W|Rat#Species and description|Rat}}&lt;br /&gt;
| 4000&lt;br /&gt;
| 0.5&lt;br /&gt;
| 2000&lt;br /&gt;
|The {{W|World Health Organization}} estimates 4 billion rats{{Citation needed}} worldwide. The average weight of an adult rat is under 500 g. &lt;br /&gt;
|-&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[Caption at the top of this chart:]&lt;br /&gt;
:&amp;lt;big&amp;gt;'''Earth's &amp;lt;big&amp;gt;&amp;lt;big&amp;gt;land mammals&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; by weight'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[Below the caption is a light gray block with a label (in light gray as well) to indicating the value of each block:] &lt;br /&gt;
:&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;= 1,000,000 tons&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[Below this there is a row with three blocks each in a different color, dark and light gray and green, each block is labeled to the right:] &lt;br /&gt;
:'''Humans'''&lt;br /&gt;
:'''Our pets and livestock'''&lt;br /&gt;
:'''Wild animals'''&lt;br /&gt;
&lt;br /&gt;
:[The rest of the comic consist of a chart with different groups made up of these individually and differently colored blocks, each grouping representing the weight of a different mammals, except the center part, the only one with dark gray block, which represent humans. The largest group to the left is the only one larger than the humans group in the center. There are 22 groups in total, 1 human group with 358 dark gray block, 13 groups of light gray with a total of 864 blocks and 8 green groups with a total of 34 blocks for a total of 256 blocks. Both the light gray and the green groups are spread out on all sides of the human center group. Only difference is that all the green are on the very outside, whereas some of the smaller light gray groups are close to the core, far from the outside. The five largest groups of light gray blocks are labeled, as well as the smallest group consisting only of a single green block. All the labels has a line pointing to the relevant group and all of them are on the outside of the entire block. Going clockwise from the top left the labels are:]&lt;br /&gt;
:&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;Cattle&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
:&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;Pigs&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
:&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;Goats&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
:&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;Sheep&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
:&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;Horses&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
:&amp;lt;big&amp;gt;&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;Elephants&amp;lt;/font&amp;gt;&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[At the bottom right of the comic is the following gray text with a reference:]&lt;br /&gt;
:&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;Data from Vaclav Smil's ''The Earth's Biosphere: Evolution, Dynamics, and Change'', plus a few other sources.&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Charts]]&lt;br /&gt;
[[Category:Animals]]&lt;/div&gt;</summary>
		<author><name>Jarcand</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1619:_Watson_Medical_Algorithm&amp;diff=113220</id>
		<title>1619: Watson Medical Algorithm</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1619:_Watson_Medical_Algorithm&amp;diff=113220"/>
				<updated>2016-02-24T00:10:23Z</updated>
		
		<summary type="html">&lt;p&gt;Jarcand: Fixed HTML markup to be valid&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1619&lt;br /&gt;
| date      = December 21, 2015&lt;br /&gt;
| title     = Watson Medical Algorithm&lt;br /&gt;
| image     = watson_medical_algorithm.png&lt;br /&gt;
| titletext = Due to a minor glitch, 'discharge patient' does not cause the algorithm to exit, but instead leads back to 'hunt down and capture patient'.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
{{incomplete|More wiki links for the different procedures in the table. Also more on why the procedures makes no sense, even though they may be relevant in a different context. As it is now the table almost always makes it sound like the procedure could make sense., when it could not in said context.}}&lt;br /&gt;
&lt;br /&gt;
IBM's {{w|Watson (computer)|Watson}} is a natural language system designed to answer questions posed by humans. Recently, {{w|IBM}} has extended Watson to act as a {{w|clinical decision support system}}, using image analytics to aid {{w|physicians}} in medical decision making. &lt;br /&gt;
&lt;br /&gt;
In this comic, [[Randall]] uses a {{w|flowchart}} (as he [[:Category:Flowcharts|often does]]) to represent a guide to the algorithm used by Watson, including bizarre techniques including surgical alteration of a patient to match a height and weight chart or squeezing the patient to make sure fluids come out of them. Like [[416: Zealous Autoconfig]], this comic pokes fun at a rigid, poorly-designed setup that ends up potentially doing more harm than good. The computer's behavior in this comic can be compared to the health-care robot named Baymax in the movie {{w|Big Hero 6 (film)|Big Hero 6}}.&lt;br /&gt;
&lt;br /&gt;
Modern {{w|medicine}} involves both standard processes and clinical judgment based around years of advanced training. An algorithm like this would have to be incredibly complicated in order to simulate the clinical judgment of a good doctor. Below is a [[#Explaination of steps|detailed description of each step]], but here is a list of some of the more strange steps:&lt;br /&gt;
*The algorithm depicted treats a patient as more of a machine or mechanical system than a living being, especially through decisions such as:&lt;br /&gt;
**Injecting oxygen into patients with low {{w|Oxygen saturation (medicine)|oxygen saturation}}, rather than treating the root cause.&lt;br /&gt;
**Removing and inspecting a skeleton, then diagnosing the patient's condition with a bone count. This is likely a reference to [http://buttersafe.com/2015/10/15/a-serious-case-of-spookiness/ A  Serious Case Of Spookiness] from the [http://buttersafe.com/ Buttersafe] web-comic, a comic Randall links to from below the comics on {{xkcd}}.&lt;br /&gt;
**{{w|Dissecting}} a doctor &amp;quot;for parts&amp;quot; after consulting him or her for advice.&lt;br /&gt;
**Removing extra limbs from a patient if the count is 100 or more (This might be a reference to different number systems used in computers, as 100 is read in binary as four.)&lt;br /&gt;
**Determining whether the &amp;quot;build environment&amp;quot; of the patient is sane. This is most probably a reference to the {{w|configure script}} used in the {{w|GNU_build_system|GNU build system}}, which emits &amp;quot;checking whether build environment is sane&amp;quot; as one of its status messages.&lt;br /&gt;
**Rinsing the whole patient with a {{w|Saline (medicine)|saline solution}}.&lt;br /&gt;
**Removing organs from a patient regardless of response to an {{w|organ donation}} request.&lt;br /&gt;
*Other decisions appear to be entirely unrelated to the conditions upon which they are predicated:&lt;br /&gt;
**If the patient doesn't rate their {{w|Pain scale|pain on a scale}} from 0-10, {{w|Genome project|sequence their genome}}, apply a {{w|tourniquet}}, and perform an {{w|autopsy}}&lt;br /&gt;
**If the patient's phone's battery is low, {{w|Defibrillation|defibrillate}} until the battery is charged, sync photos, then administer general anesthesia&lt;br /&gt;
**If the patient is successfully comforted after an oxygen injection, check their medical history and apply {{w|Skin grafting|skin grafts}}&lt;br /&gt;
**If green fluid is released from the patient, begin to {{w|Cauterization|cauterize}}&lt;br /&gt;
**If the patient has less than 100 limbs, check their {{w|Vitamin D}} level&lt;br /&gt;
&lt;br /&gt;
Although there are two options where the patient is {{w|Inpatient_care#Planning_for_patient_discharge|discharged}} the patient should be very lucky to make it there alive. &lt;br /&gt;
&lt;br /&gt;
The option at the bottom left is only reached after your skeleton is removed (and nothing is mentioned about putting it back, even if that would help). &lt;br /&gt;
&lt;br /&gt;
The other discharge option is to the right, three boxes down, and can only be reached if you survive having an oxygen saturation of less than 50 % (less than 80-90 % can be a serious problem, see [[#Explaination of steps|table below]]), and a very dangerous oxygen injection. Then you have to have a skin graft and a good D vitamin level. It is also best that you have a fully charged phone else you will be subject to defibrillation (which may very likely kill you, if it will continue until your phone is charged to above &amp;quot;low&amp;quot; level - which is probably not even possible). &lt;br /&gt;
&lt;br /&gt;
You can also reach this discharge option another way, but that would only be after your organs were removed... But if you get through this you could reach the discharged option alive. Sadly there is a little glitch mentioned in the title text:&lt;br /&gt;
&lt;br /&gt;
The title text implies that, if the patient is so lucky to ever reach one of the two places with the option &amp;quot;discharge patient&amp;quot;, a minor glitch will cause the program to go back to the ''hunt down and capture patient'' option which thus force the patient and the program to repeat the process again in an infinite cycle, that will only end once the patient give another rating than 0-10 of their pain level on the 0-10 scale. Then the program will start to sequence their genome then apply a tourniquet and finally perform an autopsy, on what will, in the end, for certain be a deceased patient; but maybe the patient was still alive when the autopsy began... This will finally cause the patient to leave the cycle as a corpse. If the patient dies before giving a different option, the machine could get stuck, as it will never receive any answer to the pain level question... It could also get stuck trying to charge the patients phone battery by defibrilation &lt;br /&gt;
&lt;br /&gt;
This is the second comic in a row about health issues with the last comic being [[1618: Cold Medicine]].&lt;br /&gt;
&lt;br /&gt;
===Explanation of steps===&lt;br /&gt;
{|  class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|   | &amp;lt;b &amp;gt;Step&amp;lt;/b&amp;gt;&lt;br /&gt;
|   | &amp;lt;b &amp;gt;Medically valid?&amp;lt;/b&amp;gt;&lt;br /&gt;
|   | &amp;lt;b &amp;gt;Conditions and following step&amp;lt;/b&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Draw Blood&lt;br /&gt;
|  |&lt;br /&gt;
Phlebotomy is a normal early step in the diagnostic process, but not as first and unconditional step&lt;br /&gt;
|   |&lt;br /&gt;
Record patient’s name&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Record patient’s name&lt;br /&gt;
|  |&lt;br /&gt;
OK&lt;br /&gt;
|   |&lt;br /&gt;
Measure Patient’s height and Weight&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Measure Patient’s height and Weight&lt;br /&gt;
|   |&lt;br /&gt;
OK&lt;br /&gt;
|     |&lt;br /&gt;
Consult Standard height/weight chart&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Consult Standard height/weight chart&lt;br /&gt;
|     |&lt;br /&gt;
OK&lt;br /&gt;
|     |&lt;br /&gt;
Surgically adjust patient to match&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Surgically adjust patient to match&lt;br /&gt;
|     |&lt;br /&gt;
May be considered ethically dubious unless there are [http://www.gosh.nhs.uk/medical-information/procedures-and-treatments/limb-length-difference-and-limb-lengthening sound medical reasons] for doing so. Could be an allusion to {{w|Procrustes}}.&lt;br /&gt;
|     |&lt;br /&gt;
Is patient coughing up blood?&lt;br /&gt;
|-&lt;br /&gt;
|  width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Is patient coughing up blood?&lt;br /&gt;
|  width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
OK, coughing up blood is generally a sign that there is something wrong.  Typical causes are respiratory tract infections (e.g. tuberculosis), lung trauma or pulmonary embolism.&lt;br /&gt;
|     |&lt;br /&gt;
Yes: Gather blood and return it to body&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
No: Is patient still here?&lt;br /&gt;
|-&lt;br /&gt;
|  width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Is patient still here?&lt;br /&gt;
|  width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Not usually considered a step, but missing patients are a problem in some fields, psychiatry or intensive care for example.&lt;br /&gt;
|   |&lt;br /&gt;
Yes: Record pulse rate&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
No: Hunt down and capture patient&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Hunt down and capture patient&lt;br /&gt;
|     |&lt;br /&gt;
Valid if patient should not have left the bed/unit, but the wording is possibly dubious.&lt;br /&gt;
|     |&lt;br /&gt;
Is patient still here?&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Gather blood and return it to body&lt;br /&gt;
|     |&lt;br /&gt;
Dangerous idea in this case due to likelihood of contamination, although if safely done autotransfusion is an accepted medical technique to ensure a matching blood supply prior to a major operation, or to enhance stamina (blood doping)&lt;br /&gt;
|     |&lt;br /&gt;
Record pulse rate&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Record pulse rate&lt;br /&gt;
|     |&lt;br /&gt;
OK, but maybe a little late. &lt;br /&gt;
|     |&lt;br /&gt;
Is patient screaming?&lt;br /&gt;
|-&lt;br /&gt;
|  width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Is patient screaming?&lt;br /&gt;
|  width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Very important question, indicating patient is conscious, in pain, and aware pain is bad. First attenders can use it in classifying priorities (quiet patients may be more severely injured). Generally useful in assessing nerve damage, pain relief, etc.&lt;br /&gt;
|   |&lt;br /&gt;
Yes: Ignore&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
No: Check blood O&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; saturation&lt;br /&gt;
|-&lt;br /&gt;
|  width=&amp;quot;33%&amp;quot; rowspan=2 ` |&lt;br /&gt;
Check blood O&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; saturation&lt;br /&gt;
|  width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Only really indicated if the patient is in danger of hypoxia. Generally normal people should have a SpO2 of 98-100%, but in chronic lung disease this can fall as low to 80%, and in premature babies a SpO2 of 90% is usually targeted to avoid problems with retinopathy. If the SpO2 were to fall as low as 50%, the patient would definitely be dead or unconscious.&lt;br /&gt;
|   |&lt;br /&gt;
&amp;amp;gt;50%: Remove and inspect skeleton&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
&amp;amp;lt;50%: Inject oxygen&lt;br /&gt;
|-&lt;br /&gt;
|  width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Remove and inspect skeleton&lt;br /&gt;
|  width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Fatal if patient is still alive when beginning. Also not a valid medical procedure in any way as it is impossible to remove most of the long bones of the body without destroying all surrounding tissue.&lt;br /&gt;
|   |&lt;br /&gt;
Too many bones: Is fluid coming out of patient?&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Too few bones: Request consult with human doctor&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Request consult with human doctor&lt;br /&gt;
|     |&lt;br /&gt;
Medically valid in the context of obtaining an opinion from a doctor in a different speciality who is better suited to treating the patient.&lt;br /&gt;
|     |&lt;br /&gt;
Dissect doctor for parts&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Dissect doctor for parts&lt;br /&gt;
|     | &amp;lt;b &amp;gt;This may be considered ethically dubious.&amp;lt;span &amp;gt; &amp;lt;/span&amp;gt;&amp;lt;/b&amp;gt;Possible reference to the Doctor Who episode “{{w|The Girl in the Fireplace}}”&lt;br /&gt;
|     |&lt;br /&gt;
Discharge patient (left)&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Discharge patient (left)&lt;br /&gt;
|     |&lt;br /&gt;
Acceptable, but patient would generally be dead by then.&lt;br /&gt;
|     |&lt;br /&gt;
END STATE (before you read the title text)&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Is fluid coming out of patient&lt;br /&gt;
|  width=&amp;quot;33%&amp;quot; rowspan=2    |&lt;br /&gt;
Unintended fluid release is always a problem. How significant a problem depends on where the fluid came from and if it is supposed to be coming from there. Red generally is due to blood, yellow is due to pus/tissue fluid/lymph and green signifies bacterial infection or bile salts (biliverdin). Could also relate to normal fluids being lost (e.g. urine, saliva, sweat)&lt;br /&gt;
|     |&lt;br /&gt;
No: Squeeze patient&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Yes: What color?&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Squeeze patient&lt;br /&gt;
|     |&lt;br /&gt;
Could be in the medical context is in providing external ventilation (see iron lung) or other means of removing fluid (e.g. squeezing pus from a boil).&lt;br /&gt;
|     |&lt;br /&gt;
Is fluid coming out of patient&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=4  |&lt;br /&gt;
What color?&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=4    |&lt;br /&gt;
Never underestimate the number of different types of fluid the body can produce.&lt;br /&gt;
|     |&lt;br /&gt;
Yellow: Squeeze Patient&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Black: Activate Sprinklers&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Red: Ask patient to rate pain level&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Green: Cauterize&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Activate sprinklers&lt;br /&gt;
|     |&lt;br /&gt;
Not medically valid. Presumably a reference to how much cleaning up will be required by this stage.&lt;br /&gt;
|     |&lt;br /&gt;
Subdue patient&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Subdue patient&lt;br /&gt;
|     |&lt;br /&gt;
Potentially very important if patient is behaving dangerously to themselves and others around them (due to mental health issues e.g. psychosis or drugs) and/or is moving too much to be given treatment. This would be likely due to what happened earlier.&lt;br /&gt;
|     |&lt;br /&gt;
Apply cream&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Apply cream&lt;br /&gt;
|     |&lt;br /&gt;
Medically valid as a form of barrier dressing to improve wound healing.&lt;br /&gt;
|     |&lt;br /&gt;
Ask patient to rate pain level&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=4  |&lt;br /&gt;
Ask patient to rate pain level&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=4  |&lt;br /&gt;
Useful in the sense that it provides the doctor with the means to ensure that the patient is receiving adequate analgesia during conditions of chronic and acute pain.&lt;br /&gt;
|     |&lt;br /&gt;
0-8: Massage scalp&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
9: Admit for observation&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
10: Laser eye removal&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Other response: Sequence genome&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Massage scalp&lt;br /&gt;
|     |&lt;br /&gt;
This would belong more to the domain of palliative care and reflexology rather than being an accepted medical treatment.&lt;br /&gt;
|     |&lt;br /&gt;
Patient is healthy&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Patient is healthy&lt;br /&gt;
|     |&lt;br /&gt;
A subjective assessment of the health patient is often helpful in ruling out certain diagnoses. For example, one is less likely to suspect cancer in a fit, healthy 30 year old than a thin, lethargic 50 year old.&lt;br /&gt;
|     |&lt;br /&gt;
Admit for observation&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Admit for observation&lt;br /&gt;
|     |&lt;br /&gt;
Useful in the context of 'watchful waiting', in which the doctor may be unsure if the patient actually has a condition that they suspect that the patient has. By keeping the patient on the ward for a few days, the clinician can monitor the progression of symptoms and rapidly initiate adequate treatment if medically warranted.&lt;br /&gt;
|     |&lt;br /&gt;
Ask patient to rate pain level&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Laser eye removal&lt;br /&gt;
|     |&lt;br /&gt;
This is not a standard medical procedure, and not a good idea.  This could be a pun on laser eye surgery where a laser is used to correct visual problems (e.g. short-sightedness), or laser hair and tattoo removal.  &lt;br /&gt;
|     |&lt;br /&gt;
Admit for observation&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Sequence genome&lt;br /&gt;
|     |&lt;br /&gt;
Useful in the association of extremely rare point mutations with an organic illness. See for instance the Genome 10K Project or the Cancer Genome Atlas. Or in diagnosing extremely rare mutations that are not picked up by most commercial DNA screening tests (e.g. kidney failure due to INF2 mutation).&lt;br /&gt;
|     |&lt;br /&gt;
Apply tourniquet&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Apply tourniquet&lt;br /&gt;
|     |&lt;br /&gt;
Useful to stop acute bleeding from an injured extremity, but if it is drawn too tightly it can cause neuromuscular damage.&lt;br /&gt;
|     |&lt;br /&gt;
Perform autopsy&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Perform autopsy&lt;br /&gt;
|     | The patient has died, and Watson is being ordered to determine the cause of death. Note that the only way to reach this state is from &amp;quot;apply tourniquet&amp;quot;, implying the cause of death is strangulation via tourniquet.&lt;br /&gt;
|     | END STATE (taking the title text into account, the only possible one)&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Inject oxygen&lt;br /&gt;
|     |&lt;br /&gt;
May be fatal as injecting gases directly to the blood vessels can cause a serious embolism if it blocks blood flow to the brain or coronary arteries. However, if the oxygen is injected slowly into the venous circulation, it may be survivable as the bubbles may simply collect in the lungs where the oxygen is then slowly reabsorbed into the blood.&lt;br /&gt;
|     |&lt;br /&gt;
Comfort patient&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Comfort patient&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Psychological support to the patient and relatives is often useful after breaking news of a poor prognosis. It may also be useful in subduing the agitated or psychotic patient.&lt;br /&gt;
|     |&lt;br /&gt;
Comforting successful: Review medical history&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Comforting unsuccessful: Subdue patient&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Review medical history&lt;br /&gt;
|     |&lt;br /&gt;
Important early step, rather too late and conditional.&lt;br /&gt;
|     |&lt;br /&gt;
Skin grafts&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Skin grafts&lt;br /&gt;
|     |&lt;br /&gt;
Only indicated if massive areas of the skin are damaged (typically due to burns)&lt;br /&gt;
|     |&lt;br /&gt;
Count number of limbs&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Count number of limbs&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Not really relevant in medicine, but may be of use to know the reason behind any missing or extra limbs on seeing the patient though a through review of the medical history will render this point moot. Probably a little late to be noticing this now.&lt;br /&gt;
|     |&lt;br /&gt;
Fewer than 100: Measure Vitamin D&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
100+: Remove extra limbs&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Remove extra limbs&lt;br /&gt;
|     |&lt;br /&gt;
Medically indicated in cases of polymelia either due to cosmetic purposes or because the extra limbs pose a direct threat to the health of the baby.&lt;br /&gt;
|     |&lt;br /&gt;
Subdue patient&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Measure vitamin D&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Valid in diagnosis of bone related issues, for example if multiple or comminuted fractures were being counted as additional limbs/bones.&lt;br /&gt;
|     |&lt;br /&gt;
Good: Check whether build environment is sane&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Bad: Blood loss?&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Check whether build environment is sane&lt;br /&gt;
|     |&lt;br /&gt;
Could be technical reference to the installation of the algorithm in the robot, or could relate to the sanity of:&lt;br /&gt;
*The robot doctor&lt;br /&gt;
*The patient undergoing this procedure (before or after reaching this part of the process)&lt;br /&gt;
*The person who programmed the robot to perform this flowchart&lt;br /&gt;
*The person who allowed this state of affairs to occur (I'm looking at you [[Black Hat]])&lt;br /&gt;
&lt;br /&gt;
This could also be a reference to the title text for [[371: Compiler Complaint]].&lt;br /&gt;
&lt;br /&gt;
NB: Whether the build environment is sane is irrelevant to the flowchart.&lt;br /&gt;
|     |&lt;br /&gt;
Rinse patient with saline solution&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Rinse patient with saline solution&lt;br /&gt;
|     |&lt;br /&gt;
Tepid sponging may be indicated if the patient has a high fever. Could also refer to internally rinsing patient with saline solution i.e. providing intravenous sodium chloride to boost circulating volume or to perform peritoneal dialysis.&lt;br /&gt;
|     |&lt;br /&gt;
Is patient phone battery low?&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Is patient phone battery low?&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Invalid in medical terminology, could be a technological metaphor for the patient's consciousness or stamina. &amp;quot;Your life-force is running out&amp;quot;&lt;br /&gt;
|     |&lt;br /&gt;
Yes: Defibrillate&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
No: Sync photos from camera&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Defibrillate&lt;br /&gt;
|     |&lt;br /&gt;
Indicated in cases where there is ventricular fibrillation, and to a lesser extent in atrial fibrillation (chemical cardioversion with adenosine is usually preferred), but would not help with a phone.&lt;br /&gt;
|     |&lt;br /&gt;
Is patient phone battery low?&lt;br /&gt;
|-&lt;br /&gt;
|   | &lt;br /&gt;
Sync photos from camera&lt;br /&gt;
|     |&lt;br /&gt;
Definitely invalid. Could refer to the robot attempting to backup photos from a camera before attempting to repair it/attempting to back-up patient's consciousness.&lt;br /&gt;
|     |&lt;br /&gt;
Administer general anesthesia&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Administer general anesthesia&lt;br /&gt;
|     |&lt;br /&gt;
Valid, but not at this stage. Only used when the procedure will invoke unnecessary distress or pain to the patient if they were to be awake beforehand.&lt;br /&gt;
|     |&lt;br /&gt;
Discharge patient (right)&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Discharge patient (right)&lt;br /&gt;
|     |&lt;br /&gt;
Acceptable if coming from above, but the option from below (see below) would mean that the patient would be dead by then.&lt;br /&gt;
|     |&lt;br /&gt;
END STATE (before you read the title text)&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Blood loss?&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Useful. Patient may die if this clinical sign is missed.&lt;br /&gt;
|     |&lt;br /&gt;
Minor: Patient address changed?&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Substantial: Apply cream&lt;br /&gt;
|-&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Patient address changed?&lt;br /&gt;
| width=&amp;quot;33%&amp;quot; rowspan=2  |&lt;br /&gt;
Useful to ensure that the organisation has current contact details for the patient in the event that they may need to contact the patient (e.g. to arrange further appointments)&lt;br /&gt;
|     |&lt;br /&gt;
Yes: Request organ donation&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
No: Patient is healthy&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Request organ donation&lt;br /&gt;
|   |&lt;br /&gt;
Generally done prior to registering an individual for a driving licence or to a medical practice, or to the relatives of the deceased if consent had not been acquired beforehand.&lt;br /&gt;
|Remove organs&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Remove organs&lt;br /&gt;
|   |&lt;br /&gt;
The only organs which can be safely removed from a living person without resulting in serious, chronic medical issues are the kidneys/lungs (only one can be removed), spleen, part of the liver (as long as one lobe is left it can regrow to its original size) and colon (usually consisting of the appendix only). With some serious lifestyle modifications, the pancreas, pituitary gland, frontal lobe of brain, half of the brain, adrenal glands, bladder and most of the gut can be removed. The heart can be removed from the body and replaced with an artificial pump for a few months at the most. However, such organ removals are only indicated if there is a genuine clinical need to do so due to the non-negligible risk of death associated with these operations.&lt;br /&gt;
|    Discharge patient (right)&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Title text&lt;br /&gt;
|   |&lt;br /&gt;
The glitch in the algorithm causes it to continue in spite of having just discharged the patient&lt;br /&gt;
|    Hunt down and capture patient.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:Heading: A guide to the medical diagnostic and treatment system used by IBM's '''Watson''' system&lt;br /&gt;
:[A flowchart with the following steps is shown, starting from &amp;quot;start&amp;quot;:]&lt;br /&gt;
:{|  class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|   | &amp;lt;b &amp;gt;Step&amp;lt;/b&amp;gt;&lt;br /&gt;
|   | &amp;lt;b &amp;gt;Following step&amp;lt;/b&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Start&lt;br /&gt;
|   |&lt;br /&gt;
Draw Blood&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Draw Blood&lt;br /&gt;
|   |&lt;br /&gt;
Record patient’s name&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Record patient’s name&lt;br /&gt;
|   |&lt;br /&gt;
Measure Patient’s height and Weight&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Measure Patient’s height and Weight&lt;br /&gt;
|     |&lt;br /&gt;
Consult Standard height/weight chart&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Consult Standard height/weight chart&lt;br /&gt;
|     |&lt;br /&gt;
Surgically adjust patient to match&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Surgically adjust patient to match&lt;br /&gt;
|     |&lt;br /&gt;
Is patient coughing up blood?&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=2  |&lt;br /&gt;
Is patient coughing up blood?&lt;br /&gt;
|     |&lt;br /&gt;
Yes: Gather blood and return it to body&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
No: Is patient still here?&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=2  |&lt;br /&gt;
Is patient still here?&lt;br /&gt;
|   |&lt;br /&gt;
Yes: Record pulse rate&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
No: Hunt down and capture patient&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Hunt down and capture patient&lt;br /&gt;
|     |&lt;br /&gt;
Is patient still here?&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Gather blood and return it to body&lt;br /&gt;
|     |&lt;br /&gt;
Record pulse rate&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Record pulse rate&lt;br /&gt;
|     |&lt;br /&gt;
Is patient screaming?&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=2  |&lt;br /&gt;
Is patient screaming?&lt;br /&gt;
|   |&lt;br /&gt;
Yes: Ignore&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
No: Check blood O&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; saturation&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=2 ` |&lt;br /&gt;
Check blood O&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; saturation&lt;br /&gt;
|   |&lt;br /&gt;
&amp;amp;gt;50%: Remove and inspect skeleton&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
&amp;amp;lt;50%: Inject oxygen&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=2  |&lt;br /&gt;
Remove and inspect skeleton&lt;br /&gt;
|   |&lt;br /&gt;
Too many bones: Is fluid coming out of patient?&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Too few bones: Request consult with human doctor&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Request consult with human doctor&lt;br /&gt;
|     |&lt;br /&gt;
Dissect doctor for parts&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Dissect doctor for parts&lt;br /&gt;
|     |&lt;br /&gt;
Discharge patient&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Discharge patient&lt;br /&gt;
|     |&lt;br /&gt;
END STATE (before you read the title text)&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=2  |&lt;br /&gt;
Is fluid coming out of patient&lt;br /&gt;
|     |&lt;br /&gt;
No: Squeeze patient&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Yes: What color?&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Squeeze patient&lt;br /&gt;
|     |&lt;br /&gt;
Is fluid coming out of patient&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=4  |&lt;br /&gt;
What color?&lt;br /&gt;
|     |&lt;br /&gt;
Yellow: Squeeze Patient&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Black: Activate Sprinklers&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Red: Ask patient to rate pain level&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Green: Cauterize&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Activate sprinklers&lt;br /&gt;
|     |&lt;br /&gt;
Subdue patient&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Subdue patient&lt;br /&gt;
|     |&lt;br /&gt;
Apply cream&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Apply cream&lt;br /&gt;
|     |&lt;br /&gt;
Ask patient to rate pain level&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=4  |&lt;br /&gt;
Ask patient to rate pain level&lt;br /&gt;
|     |&lt;br /&gt;
0-8: Massage scalp&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
9: Admit for observation&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
10: Laser eye removal&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Other response: Sequence genome&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Massage scalp&lt;br /&gt;
|     |&lt;br /&gt;
Patient is healthy&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Patient is healthy&lt;br /&gt;
|     |&lt;br /&gt;
Admit for observation&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Admit for observation&lt;br /&gt;
|     |&lt;br /&gt;
Ask patient to rate pain level&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Laser eye removal&lt;br /&gt;
|     |&lt;br /&gt;
Admit for observation&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Sequence genome&lt;br /&gt;
|     |&lt;br /&gt;
Apply tourniquet&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Apply tourniquet&lt;br /&gt;
|     |&lt;br /&gt;
Perform autopsy&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Perform autopsy&lt;br /&gt;
|     | [End state, and if taking the title text into account, the only possible one]&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Inject oxygen&lt;br /&gt;
|     |&lt;br /&gt;
Comfort patient&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=2  |&lt;br /&gt;
Comfort patient&lt;br /&gt;
|     |&lt;br /&gt;
Comforting successful: Review medical history&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Comforting unsuccessful: Subdue patient&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Review medical history&lt;br /&gt;
|     |&lt;br /&gt;
Skin grafts&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Skin grafts&lt;br /&gt;
|     |&lt;br /&gt;
Count number of limbs&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=2  |&lt;br /&gt;
Count number of limbs&lt;br /&gt;
|     |&lt;br /&gt;
Fewer than 100: Measure Vitamin D&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
100+: Remove extra limbs&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Remove extra limbs&lt;br /&gt;
|     |&lt;br /&gt;
Subdue patient&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=2  |&lt;br /&gt;
Measure vitamin D&lt;br /&gt;
|     |&lt;br /&gt;
Good: Check whether build environment is sane&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Bad: Blood loss?&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Check whether build environment is sane&lt;br /&gt;
|     |&lt;br /&gt;
Rinse patient with saline solution&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Rinse patient with saline solution&lt;br /&gt;
|     |&lt;br /&gt;
Is patient phone battery low?&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=2  |&lt;br /&gt;
Is patient phone battery low?&lt;br /&gt;
|     |&lt;br /&gt;
Yes: Defibrillate&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
No: Sync photos from camera&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Defibrillate&lt;br /&gt;
|     |&lt;br /&gt;
Is patient phone battery low?&lt;br /&gt;
|-&lt;br /&gt;
|   | &lt;br /&gt;
Sync photos from camera&lt;br /&gt;
|     |&lt;br /&gt;
Administer general anesthesia&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Administer general anesthesia&lt;br /&gt;
|     |&lt;br /&gt;
Discharge patient&lt;br /&gt;
|-&lt;br /&gt;
|  rowspan=2  |&lt;br /&gt;
Blood loss?&lt;br /&gt;
|     |&lt;br /&gt;
Minor: Patient address changed?&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
Substantial: Apply cream&lt;br /&gt;
|-&lt;br /&gt;
| rowspan=2  |&lt;br /&gt;
Patient address changed?&lt;br /&gt;
|     |&lt;br /&gt;
Yes: Request organ donation&lt;br /&gt;
|-&lt;br /&gt;
|     |&lt;br /&gt;
No: Patient is healthy&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Request organ donation&lt;br /&gt;
|Remove organs&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Remove organs&lt;br /&gt;
|    Discharge patient&lt;br /&gt;
|-&lt;br /&gt;
|   |&lt;br /&gt;
Discharge patient&lt;br /&gt;
|   |&lt;br /&gt;
[End State: See title text]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Trivia==&lt;br /&gt;
*The [http://www.explainxkcd.com/wiki/images/archive/1/15/20151222113107!watson_medical_algorithm.png original comic] was updated after it was first posted.&lt;br /&gt;
**The decisions for number of limbs were swapped so it made sense. &lt;br /&gt;
**In the corrected version it was only if you had more than 100 limbs that Watson would remove the extra limbs.&lt;br /&gt;
**Before it removed limbs if you had less than 100 (i.e. always, and now never.)&lt;br /&gt;
**This actually opened up (a slim) chance to survive to the right discharge patient box. Although it would not matter according to the title text...&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Flowcharts]]&lt;br /&gt;
[[Category:Artificial Intelligence]]&lt;br /&gt;
[[Category:Computers]]&lt;br /&gt;
[[Category:Sarcasm]]&lt;/div&gt;</summary>
		<author><name>Jarcand</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1612:_Colds&amp;diff=113219</id>
		<title>1612: Colds</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1612:_Colds&amp;diff=113219"/>
				<updated>2016-02-23T23:57:06Z</updated>
		
		<summary type="html">&lt;p&gt;Jarcand: Fixed HTML markup to be valid&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1612&lt;br /&gt;
| date      = December 4, 2015&lt;br /&gt;
| title     = Colds&lt;br /&gt;
| image     = colds.png&lt;br /&gt;
| titletext = The contagious period ends right around when you start to sound sick over the phone, which is probably evidence of cold viruses evolving to spread optimally in the workplace.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
The typical symptoms of a {{w|Common cold|cold}} are a sore throat, blocked or runny nose, sneezing, and coughing. Slightly less common symptoms can include headache, aching muscles and an unpleasant sensation of temperature.&lt;br /&gt;
&lt;br /&gt;
The earlier symptoms to occur following infection are generally the more unpleasant-feeling symptoms: headache, aching muscles, sneezing and feeling cold. However, these symptoms are also those which are least obvious to other people, and so elicit very little {{w|sympathy}}.&lt;br /&gt;
&lt;br /&gt;
Within a few days, these symptoms start to subside, while a cough and runny nose start. These symptoms generally feel less unpleasant, but are much more noticeable to others, and so more sympathy may be given. The cough may lead to a hoarse voice, making the patient sound very ill; ironically, at this point, it may be easier for an employed person to phone in sick, but it is less desirable to stay off work.&lt;br /&gt;
&lt;br /&gt;
But it is now when the patient sounds hoarse that others give the sympathy that was really needed when the patient was feeling awful during the first couple of days. And to [[Randall]] this is the worst about colds, that the patients first gets sympathy when it is no longer really needed.&lt;br /&gt;
&lt;br /&gt;
The graph shows the above-mentioned facts as two curves, one that indicates how bad the sickness is, really bad on day 2, but much better already on day 3. And the other curve how bad the patient sounds due to the hoarseness and the coughing. And this curve first peaks around day 4-6 when the sympathy is no longer needed.&lt;br /&gt;
&lt;br /&gt;
The symptoms of the two periods are listed below the curves indicating which periods are affected by them.&lt;br /&gt;
&lt;br /&gt;
In the title text Randall muses about the fact that contagiousness ends around the time when hoarseness begins. This is the time when employers ask sick employees to stay at home in bed when they call in to the office, because they sound so hoarse. And also the time when coworkers will stay clear of those who do come in. But then it is too late, since everyone is probably already infected by then. Randall thus suggests that this is evidence that the cold virus has evolved to spread optimally in a work place. Since the cold virus is much older than offices this is unlikely. But it will always spread better in places where many people are close together; and since we are more inside in the winter, this is the main reason why it spreads more during cold periods. However, viruses do evolve very quickly so it may not be unlikely that some of them has already adapted to our present way of living.&lt;br /&gt;
&lt;br /&gt;
Another thing that Randall doesn't like about cold is that no medicine works, and the one that relives you the most is hard to come by. This was the subject two weeks later in [[1618: Cold Medicine]], and this suggests that it is actually Randall himself who has a long lasting cold.&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[A graph is shown with two curves. The Y-axis indicated how you feel, with three levels indicated with small ticks on the inside of the axis. These are labeled to the left of the Y–axis. The X-axis gives the time. The unit is given (days written in gray text) to the left and then the number of days are noted below the axis for each of the eight ticks on the inside of the axis. Both curves begin at the lowest level just off the Y-axis. One curve, indicating how bad you feel, rises rapidly, reaching its maximum in less than two days only to fall off almost as rapidly, ending up on an even lower level than it began with before day 5. The other curve, indicating how bad you sound, start out by staying constantly low, first rising on day 3, when the first curve are drooping down. They cross between day 3 and 4, and first then does the second curve rise, reaching its max around day 5, not as high a maximum  as the first curve, but it stays up longer, falling only moderately off even after day 8, where it reaches the middle level on the Y-axis. Above the two curves are two line intervals that indicated when you need sympathy and when you get it. This text is written on the broken line. All this is in gray text. Below the X-axis are the symptoms listed for the different time period. These are written in white inside gray rectangles. The rectangles are a different length depending on how many days they last. And they are in two layers.]&lt;br /&gt;
&lt;br /&gt;
:[Y-axis:]&lt;br /&gt;
:The worst&lt;br /&gt;
:Bad&lt;br /&gt;
:Fine&lt;br /&gt;
&lt;br /&gt;
:[The X-axis, with the unit written in gray just below ''Fine'' from the Y-axis:]&lt;br /&gt;
:&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;Days:&amp;lt;/font&amp;gt; 0 1 2 3 4 5 6 7 8&lt;br /&gt;
&lt;br /&gt;
:[Labels for curves:]&lt;br /&gt;
:How bad you feel&lt;br /&gt;
:How bad you sound&lt;br /&gt;
&lt;br /&gt;
:[Gray text on the two gray lines above:]&lt;br /&gt;
:&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;Need sympathy&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;gray&amp;quot;&amp;gt;Get sympathy&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[Text in white on gray below, first the three to the left (one above two below), then the two to the right one above the other:]&lt;br /&gt;
:Skin crawling&lt;br /&gt;
:Sore throat&lt;br /&gt;
:Aching&lt;br /&gt;
:Cough&lt;br /&gt;
:Hoarseness&lt;br /&gt;
&lt;br /&gt;
:The worst part about colds&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
[[Category:Charts]]&lt;/div&gt;</summary>
		<author><name>Jarcand</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1470:_Kix&amp;diff=113218</id>
		<title>1470: Kix</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1470:_Kix&amp;diff=113218"/>
				<updated>2016-02-23T23:55:24Z</updated>
		
		<summary type="html">&lt;p&gt;Jarcand: Fixed HTML markup to be valid&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1470&lt;br /&gt;
| date      = January 7, 2015&lt;br /&gt;
| title     = Kix&lt;br /&gt;
| image     = kix.png&lt;br /&gt;
| titletext = My parents sent me to several years of intensive Kix test prep.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
This comic may be a commentary about the uselessness of brainstorming sessions or the bad ideas that come out of them, as they are often started with the phrase “there are no bad ideas”. As the brainstorming session continues the original meaning of the slogan is lost, much like a game of telephone, and the session becomes less productive.&lt;br /&gt;
&lt;br /&gt;
The slogan for {{w|Kix (cereal)|Kix}}, &amp;quot;Kid tested, Mother approved,&amp;quot; is meant to suggest that children generally enjoy the cereal and their mothers, who are naturally concerned about the health of their children, approve of its ingredients. However, in this brainstorming session, the word &amp;quot;Approved&amp;quot; has apparently not yet been considered. A number of possible words and phrases for the ending have been presented and {{w|Strikethrough|stricken out}}, indicating that they were rejected; each one causes the slogan to be subject to increasingly absurd and comedic interpretations:&lt;br /&gt;
&lt;br /&gt;
#'''Selected''': This word may have been chosen as a {{w|slant rhyme}} of &amp;quot;Tested&amp;quot;. This word shares a definition with &amp;quot;Approved&amp;quot;, and states that mothers specifically choose this cereal over others.  This phrase could also suggest that one mother ''herself'' had been chosen for some unstated purpose.&lt;br /&gt;
#'''Perfected''': It's likely that the previous word inspired someone in the brainstorming session to find a similarly positive word that rhymes with &amp;quot;Selected&amp;quot;. It states that one or more mothers were directly involved in developing and refining the cereal's composition to a high degree. Much like with &amp;quot;Selected&amp;quot;, this could also suggest that the mother was somehow improved to perfection during the test.&lt;br /&gt;
#'''Not Notified''': Relates to the world of experimental research and clinical trials. This phrase suggests that the children who tested the cereal did not obtain the required consent, which would generally involve notifying and getting permission from both parents.&lt;br /&gt;
#'''Watching Helplessly''': Again we can see that in a brainstorming session such the previous option may trigger this one as it is related to the dangers of testing. This phrase suggests that mothers were forced to watch their children test the cereal, and that the cereal or the test is unhealthy or dangerous.&lt;br /&gt;
#'''Infected''': This may be intended to show the group dynamic of the brainstorming session as it is inspired by option one and two, as infected rhymes with both selected and perfected, and by the third option as both relate to dangerous testing. This slogan states that an infectious agent was passed to the mother as a result of the test. This could also be interpreted as the mother having introduced the infectious agent into the cereal or testing environment.&lt;br /&gt;
# '''Consumed''': Continuing the trend of dark slogans this slogan says that the mothers were ''themselves'' consumed, perhaps by their children (by virtue of the mother being an ingredient in the cereal), the cereal itself, or something otherwise related to the test. Another possible interpretation is that the mother ate the cereal after the kid tested it, possibly because the kid did not enjoy the taste.&lt;br /&gt;
#'''Fucker''': This expletive is often paired with &amp;quot;Mother&amp;quot; to form the compound word &amp;quot;Motherfucker&amp;quot;. In this case, the slogan changes to {{w|vocative case}}: &amp;quot;[This cereal has been] Kid Tested, Motherfucker!&amp;quot;. This appears to be an &amp;quot;elephant&amp;quot; - a ponderous ending of a joke that contrasts sharply with the refined and mild humor of the previous options. The phrase itself basically only states that a child tested the cereal and implies that nothing else matters.&lt;br /&gt;
&lt;br /&gt;
The title text conflates the phrase &amp;quot;Kid tested&amp;quot; with college entrance exams such as the {{w|Standardized Aptitude Test}} (SAT) or the {{w|ACT (test)|ACT}}. Instead of stating that a child tasted the cereal and gave his or her opinion on its quality, the cereal itself is an academic subject on which the child was tested. Randall, referring to how some parents enroll their children in special {{w|test prep|classes or schools}} to prepare them to score well in this type of test, states that his parents extensively prepared him for a college entrance exam about Kix cereal.&lt;br /&gt;
&lt;br /&gt;
Cereal advertising has previously been referenced in [[38: Apple Jacks ]].&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[Ponytail, Megan, and Cueball are standing around a whiteboard. The whiteboard on easel reads:]&lt;br /&gt;
:'''Kix'''&lt;br /&gt;
:&amp;lt;u&amp;gt;Slogan ideas&amp;lt;/u&amp;gt;&lt;br /&gt;
:Kid Tested, Mother...&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;strike&amp;gt;Selected&amp;lt;/strike&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;strike&amp;gt;Perfected&amp;lt;/strike&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;strike&amp;gt;Not notified&amp;lt;/strike&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;strike&amp;gt;Watching helplessly&amp;lt;/strike&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;strike&amp;gt;Infected&amp;lt;/strike&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;strike&amp;gt;Consumed&amp;lt;/strike&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
:&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;strike&amp;gt;Fucker&amp;lt;/strike&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Comics with color]]&lt;br /&gt;
[[Category:Comics featuring Cueball]]&lt;br /&gt;
[[Category:Comics featuring Megan]]&lt;br /&gt;
[[Category:Comics featuring Ponytail]]&lt;br /&gt;
[[Category:Food]]&lt;/div&gt;</summary>
		<author><name>Jarcand</name></author>	</entry>

	</feed>