Main Page

Explain xkcd: It's 'cause you're dumb.
(Difference between revisions)
Jump to: navigation, search
(trying including the latest comic directly in the home page, while we don't come up with an automatic solution)
(New here?)
(39 intermediate revisions by 5 users not shown)
Line 1: Line 1:
__NOTOC__
+
__NOTOC__{{DISPLAYTITLE:explain xkcd}}
 +
<center>
 +
<font size=5px>''Welcome to the '''explain [[xkcd]]''' wiki!''</font>
  
<center><big>''Welcome to the '''Explain xkcd''' wiki!''</big></center>
+
We have collaboratively explained [[:Category:Comics|'''{{#expr:{{PAGESINCAT:Comics}}-9}}''' xkcd comics]],
 +
<!-- Note: the -9 in the calculation above is to discount subcategories (there are 8 of them as of 2013-02-27),
 +
    as well as [[List of all comics]], which is obviously not a comic page. -->
 +
and only {{#expr:{{LATESTCOMIC}}-({{PAGESINCAT:Comics}}-9)}}
 +
({{#expr: ({{LATESTCOMIC}}-({{PAGESINCAT:Comics}}-9)) / {{LATESTCOMIC}} * 100 round 0}}%)
 +
remain. '''[[Help:How to add a new comic explanation|Add yours]]''' while there's a chance!
 +
</center>
 +
== Latest comic ==
 +
<div style="border:1px solid grey; background:#eee; padding:1em;">
 +
<span style="float:right;">[[{{LATESTCOMIC}}|'''Go to this comic explanation''']]</span>
 +
<br clear="right">
 +
{{:{{LATESTCOMIC}}}}
 +
{{#ifexist:Talk:{{LATESTCOMIC}}|<h2>Discussion</h2>
 +
{{Talk:{{LATESTCOMIC}}}}
 +
}}</div>
  
==Latest comic==
+
<small>''Is this out of date? {{Purge|Clicking here will fix that}}.''</small>
  
<div style="border:1px solid grey; background:LightGrey; padding:1em;">{{:1091}}</div>
+
== New here? ==
 +
<div style="float:right; margin: 0 0 1em 1em">{{Special:ContributionScores/10/7/nosort,notools}}<div style="font-size:0.85em; width:25em; font-style:italic">[[Special:ContributionScores|Lots of people]] contribute to make this wiki a success. Many of the recent contributors, listed above, have just joined. You can do it too! Create your account [[Special:UserLogin/signup|here]].</div></div>
  
All the comic explanations (so far) are [[:Category:Comics|here]].
+
You can read a brief introduction about this wiki at [[explain xkcd]]. Feel free to sign up for an account and contribute to the wiki!  We need explanations for comics, characters, themes, memes and everything in between.  If it is referenced in an [[xkcd]] web comic, it should be here.
 
+
== New here? ==
+
Feel free to sign up for an account and contribute to the Explain XKCD wiki!  We need explanations for comics, characters, themes, memes and everything in between.  If it is referenced in an [http://www.xkcd.com XKCD] web comic, it should be here.
+
  
 
* If you're new to wikis like this, take a look at these help pages describing [[mw:Help:Navigation|how to navigate]] the wiki, and [[mw:Help:Editing pages|how to edit]] pages.
 
* If you're new to wikis like this, take a look at these help pages describing [[mw:Help:Navigation|how to navigate]] the wiki, and [[mw:Help:Editing pages|how to edit]] pages.
  
* Discussion about various parts of the wiki is going on at [[Explain XKCD:Community portal]]. Share your 2¢!
+
* Discussion about various parts of the wiki is going on at [[Explain XKCD:Community portal]]. Share your 2¢!
  
* [[List of all comics]] contains a complete table of all XKCD comics so far and the corresponding explanations. The red links ([[like this]]) are missing explanations. Feel free to help out by creating them!
+
* [[List of all comics]] contains a complete table of all xkcd comics so far and the corresponding explanations. The red links ([[like this]]) are missing explanations. Feel free to help out by creating them! '''[[Help:How to add a new comic explanation|Here's how]]'''.
  
 
== Rules ==
 
== Rules ==
Don't be a jerk. There are a lot of comics that don't have set in stone explanations, feel free to put multiple interpretations in the wiki page for each comic.
+
Don't be a jerk. There are a lot of comics that don't have set in stone explanations; feel free to put multiple interpretations in the wiki page for each comic.
  
If you want to talk about a specific comic, use its Discussion.
+
If you want to talk about a specific comic, use its discussion page.
  
Please only submit material directly related to&mdash;and helping everyone better understand&mdash;xkcd... and of course ''only'' submit material that can legally be posted (and freely edited.)  Off-topic or other inappropriate content is subject to removal or modification at admin discretion, and users posting such are at risk of being blocked.
+
Please only submit material directly related to —and helping everyone better understand— xkcd... and of course ''only'' submit material that can legally be posted (and freely edited.)  Off-topic or other inappropriate content is subject to removal or modification at admin discretion, and users who repeatedly post such content will be blocked.
  
 
If you need assistance from an admin, feel free to leave a message on their personal discussion page. The list of admins is [[Special:ListUsers/sysop|here]].
 
If you need assistance from an admin, feel free to leave a message on their personal discussion page. The list of admins is [[Special:ListUsers/sysop|here]].
  
 
[[Category:Root category]]
 
[[Category:Root category]]

Revision as of 21:16, 24 March 2013

Welcome to the explain xkcd wiki!

We have collaboratively explained 5 xkcd comics, and only 1680 (100%) remain. Add yours while there's a chance!

Latest comic

Go to this comic explanation

Patch
My optimizer uses content-aware inpainting to fill in all the wasted whitespace in the code, repeating the process until it compiles.
Title text: My optimizer uses content-aware inpainting to fill in all the wasted whitespace in the code, repeating the process until it compiles.

Explanation

Adobe Photoshop is a commonly used software for image manipulation. One of its features is "content-aware inpainting", which allows the user to delete parts of the image and seamlessly replace the deleted sections with "patches" of texture from other parts of the image.

The GNU 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 "patch" 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.

The code appears to be written in Python, a programming language often referred to in xkcd. A few of the function names that can be recognized are "isPrime" and "quicksort", both elementary programming algorithms.

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.

The original code was likely as follows:

import re
def isPrime(n):
if n<1:
return False
for i in range(2, int(n**0.5)+1):
if n%i==0:
return False
return True
def isPrimeRegex(n):
if re.match(r'^1?$|^(.1+?)\1+$', '1'*n):
return False
return True
def quicksort(a):
if len(a) < 2:
return a
pivot=a[0]
l=[i for i ln a if i<pivot]
r=[i for i ln a if i>pivot]
mid=[pivot]*(len(a)-(len(l)+len(r)))
return quicksort(l)+mid+quicksort(r)

Transcript

[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 "¤" 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).]
impo¤l me
dooPisPS¤me(n):
r(¤n<n,1:
retern F(ise
for i irararre(2, nint *n**n+5)+5):
if n i==0
ret¤¤nrselsel:
re¤ irn True
defesisPrimcieg ¤x(cx
if ge¤inatcx(r'^(1?| ?.1+?)\+)$'*n )1'*n):
rerjrn Fa( e
LetylnrTrl
dql qlsorsorn(a :
if ¤n(a < 2:
eteturn a
pi= =r fa[0]
l=pi=for j ln a i< i<pi<(t]()
r=[l=for f in a) r i>viviv](vo)
mid=[pi[*t]*(l*t,(a)-(lenpienlen(c)))
r¤lrurrriklcksckt(l) + r ¤ ¤quickrort(r)
[Caption below the panel:]
Protip: If you don't have access to the GNU patch tool, you can use the Photoshop one.


Is this out of date? Clicking here will fix that.

New here?

Last 7 days (Top 10)

Lots of people contribute to make this wiki a success. Many of the recent contributors, listed above, have just joined. You can do it too! Create your account here.

You can read a brief introduction about this wiki at explain xkcd. Feel free to sign up for an account and contribute to the wiki! We need explanations for comics, characters, themes, memes and everything in between. If it is referenced in an xkcd web comic, it should be here.

  • List of all comics contains a complete table of all xkcd comics so far and the corresponding explanations. The red links (like this) are missing explanations. Feel free to help out by creating them! Here's how.

Rules

Don't be a jerk. There are a lot of comics that don't have set in stone explanations; feel free to put multiple interpretations in the wiki page for each comic.

If you want to talk about a specific comic, use its discussion page.

Please only submit material directly related to —and helping everyone better understand— xkcd... and of course only submit material that can legally be posted (and freely edited.) Off-topic or other inappropriate content is subject to removal or modification at admin discretion, and users who repeatedly post such content will be blocked.

If you need assistance from an admin, feel free to leave a message on their personal discussion page. The list of admins is here.

Personal tools
Namespaces

Variants
Actions
Navigation
Tools

It seems you are using noscript, which is stopping our project wonderful ads from working. Explain xkcd uses ads to pay for bandwidth, and we manually approve all our advertisers, and our ads are restricted to unobtrusive images and slow animated GIFs. If you found this site helpful, please consider whitelisting us.

Want to advertise with us, or donate to us with Paypal?