<?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=Unexplainedthing</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=Unexplainedthing"/>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php/Special:Contributions/Unexplainedthing"/>
		<updated>2026-04-11T02:33:35Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1168:_tar&amp;diff=385760</id>
		<title>1168: tar</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1168:_tar&amp;diff=385760"/>
				<updated>2025-09-02T07:15:05Z</updated>
		
		<summary type="html">&lt;p&gt;Unexplainedthing: /* Explanation */ no &amp;quot;probably&amp;quot; about it. bomb-defusal is used here as a cliché hypothetical life-or-death situation. and calling it a pun on &amp;quot;Tsar Bomba&amp;quot; makes even less sense; that would only *vaguely* work IF the comic actually said &amp;quot;tarbomb&amp;quot;&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;. Many Unix executables are distributed via tar archives; as a result tar files would be encountered by Unix users as commonly as Windows users encounter EXE files. Depending on the flavor of Unix, the order of the flags, or the exclusion of the hyphen, could render the command incorrect, which would either throw up an error or worse, cause one to accidentally overwrite or delete important files.&lt;br /&gt;
&lt;br /&gt;
The comic alludes to the fact that, despite years of use of the command, it is incredibly hard to remember what the letters stand for without looking them up, such as with Google. 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 confidence, and apologizes for not being able to prevent their imminent death.&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. [[Randall]] points out the paradox that after 15 years he is still unable to write out a proper tar command from memory, yet at the same time he feels that he shouldn't ''have'' to and a newer, better tool really should have come along already.&lt;br /&gt;
&lt;br /&gt;
One could also interpret the scenario as 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.&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;
Rob may refer to {{w|Rob Pike}}, who was a member of the team at AT&amp;amp;T who created Unix.&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! &lt;br /&gt;
:Megan: 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;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color:black; padding:5px; width:fit-content; margin-left: 2em&amp;quot;&amp;gt;&lt;br /&gt;
&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;''&amp;lt;tt&amp;gt;tar&amp;lt;/tt&amp;gt;''&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&amp;amp;nbsp;have&amp;amp;nbsp;&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;amp;nbsp;&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;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:[They all stand in the same position, but without the text displayed. Beat panel.]&lt;br /&gt;
&lt;br /&gt;
:[Still in the 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:Google Search]]&lt;br /&gt;
[[Category:Programming]]&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Nuclear weapons]]&lt;/div&gt;</summary>
		<author><name>Unexplainedthing</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=151:_Mario&amp;diff=384184</id>
		<title>151: Mario</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=151:_Mario&amp;diff=384184"/>
				<updated>2025-08-14T19:11:54Z</updated>
		
		<summary type="html">&lt;p&gt;Unexplainedthing: /* Explanation */ the chevrons really aren't relevant, and also it makes no sense to put that *there*&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 151&lt;br /&gt;
| date      = September 1, 2006&lt;br /&gt;
| title     = Mario&lt;br /&gt;
| image     = mario.png&lt;br /&gt;
| titletext = Why would anyone ever, ever say that? Please, nobody ever say that.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
{{w|One-upmanship}} is the act of surpassing another person. In this case, one female character is one-upping her friend's claim of being taken on a mountain hike with a claim that she was proposed to.&lt;br /&gt;
&lt;br /&gt;
Mario is the major figure in the {{w|Super Mario}} series. In the games, completing specific conditions causes a &amp;quot;1-up&amp;quot; to appear on screen, referring to an additional life. The comic relies on the homonym of the action of one-upmanship and the event of one-ups in Mario.&lt;br /&gt;
&lt;br /&gt;
In the title text, [[Randall]] says that this is a pretty bad joke (and also somewhat tasteless) and he doesn't wish to hear it.&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:Megan: For our anniversary, my boyfriend took me hiking in the mountains.&lt;br /&gt;
:Ponytail: My boyfriend proposed to me.&lt;br /&gt;
&lt;br /&gt;
:Ponytail: They should call you Mario, 'cause you just got &amp;lt;&amp;lt;1 up'd.&amp;gt;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
[[Category:Comics featuring Megan]]&lt;br /&gt;
[[Category:Comics featuring Ponytail]]&lt;br /&gt;
[[Category:Video games]]&lt;/div&gt;</summary>
		<author><name>Unexplainedthing</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=3015:_D%26D_Combinatorics&amp;diff=384177</id>
		<title>3015: D&amp;D Combinatorics</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=3015:_D%26D_Combinatorics&amp;diff=384177"/>
				<updated>2025-08-14T18:12:37Z</updated>
		
		<summary type="html">&lt;p&gt;Unexplainedthing: /* Trivia */ Added the information from the talk page to the trivia section.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 3015&lt;br /&gt;
| date      = November 22, 2024&lt;br /&gt;
| title     = D&amp;amp;amp;D Combinatorics&lt;br /&gt;
| image     = dnd_combinatorics_2x.png&lt;br /&gt;
| imagesize = 328x446px&lt;br /&gt;
| noexpand  = true&lt;br /&gt;
| titletext = Look, you can't complain about this after giving us so many scenarios involving N locked chests and M unlabeled keys.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
&lt;br /&gt;
{{w|Dungeons and Dragons}} (D&amp;amp;D) is a {{w|tabletop role-playing game}} that usually has a &amp;quot;Dungeon Master&amp;quot; (narrator) that takes a team of players through scenarios where they attack monsters and go on quests.&lt;br /&gt;
&lt;br /&gt;
Often, there will be semi-random events: e.g., when attacking a monster, often a player will roll a die and deal damage based on the result. D&amp;amp;D uses a variety of dice, from regular d6 (6-sided, cubic dice) to other {{w|Dice#Common_variations|polyhedral dice}}, with the number of faces denoted by XdY (e.g., 3d10 is a rolling of 3 10-sided dice, which each have numbers from 1 to 10 on it). Common sets include: d4, d6, d8, d10, d12, d20, and occasionally d100 (typically not, however, the [[2626:_d65536|d65536]]).{{cn}}&lt;br /&gt;
&lt;br /&gt;
With these, you can simulate events with a wide variety of denominators. In this case, Cueball gives a {{w|combinatorics|combinatorial}} problem:&lt;br /&gt;
&lt;br /&gt;
* There are 10 arrows.&lt;br /&gt;
* 5 arrows are cursed.&lt;br /&gt;
* You randomly take two.&lt;br /&gt;
* What are the odds that neither of them are cursed?&lt;br /&gt;
&lt;br /&gt;
Calculating using {{w|binomial coefficients}}, there are &amp;quot;10 choose 2&amp;quot; (45) ways to choose two arrows, of which there are &amp;quot;5 choose 2&amp;quot; (10) ways to choose 2 arrows that are non-cursed. As a result, the odds of taking all non-cursed arrows is 10/45, which simplifies to 2/9. &lt;br /&gt;
&lt;br /&gt;
To see this in a different way, the probability of choosing one non-cursed arrow is 5/10, which then must be multiplied by the probability of choosing the second non-cursed arrow, which is now 4/9, giving 20/90 or 2/9, the same result as before.&lt;br /&gt;
&lt;br /&gt;
The Dungeon Master (DM) in this case [[356: Nerd Sniping|has to]] map that probability into rolling multiple dice, whose sums are also not evenly distributed: i.e. if rolling 3d6 (3 six-sided dice) and a d4 (1 four-sided die), the sums can range from 4 to 22. It's pretty hard to do this in one's head, but it does happen that the odds of rolling 16 or more with this combination is 2/9, matching the probability that we want to simulate. Here's a table of all the 6*6*6*4=864 possible outcomes -&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ All possible combinations of rolls for 3d6 + 1d4&lt;br /&gt;
|-&lt;br /&gt;
!Total!!4!!5!!6!!7!!8!!9!!10!!11!!12!!13!!14!!15!!16!!17!!18!!19!!20!!21!!22&lt;br /&gt;
|-&lt;br /&gt;
|Ways to roll it||1||4||10||20||34||52||71||88||100||104||100||88&lt;br /&gt;
| style=&amp;quot;background:#ffffcc;&amp;quot; | ''' ''71'' '''&lt;br /&gt;
| style=&amp;quot;background:#ffffcc;&amp;quot; | ''' ''52'' '''&lt;br /&gt;
| style=&amp;quot;background:#ffffcc;&amp;quot; | ''' ''34'' '''&lt;br /&gt;
| style=&amp;quot;background:#ffffcc;&amp;quot; | ''' ''20'' '''&lt;br /&gt;
| style=&amp;quot;background:#ffffcc;&amp;quot; | ''' ''10'' '''&lt;br /&gt;
| style=&amp;quot;background:#ffffcc;&amp;quot; | ''' ''4'' '''&lt;br /&gt;
| style=&amp;quot;background:#ffffcc;&amp;quot; | ''' ''1'' '''&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
71+52+34+20+10+4+1 = 192&lt;br /&gt;
&lt;br /&gt;
192/864 = 2/9, which matches the desired probability from earlier. The table of outcomes can either be bruteforced with a program, or can be derived using generating functions.&lt;br /&gt;
&lt;br /&gt;
The caption elaborates that the DM has a degree in the relevant field, and is unable to resist applying this to the D&amp;amp;D game when the opportunity arises - opportunities that Cueball eagerly provides for this very reason.&lt;br /&gt;
&lt;br /&gt;
There are several much easier ways of implementing this operation, without coming up with a more complex solution:&lt;br /&gt;
#Do not even attempt to abstract the chances with dice-rolls. Literally present 10 similar-looking arrows, or other objects that are taken to represent arrows (face-down playing cards, for example), where the assigned information of whether each one is cursed initially hidden away from Cueball, and then just let Cueball pick any two. This approach would more likely be used if the D&amp;amp;D gameplay were {{w|Live action role-playing game|live-action}} as opposed to {{w|Tabletop role-playing game|tabletop}} (though is still possible in tabletop). &lt;br /&gt;
#Even just with D&amp;amp;D dice, the DM could ask Cueball to roll a 1d10 for the first arrow, and then again for the second, re-rolling the second so long as Cueball gets the same number as before (which emulates the same sort of process, but with a non-zero chance of having to make and reject an arbitrary number of extra dice-rolls). One could specify that 1-5 represents the cursed arrows and 6-10 represents the non-cursed arrows, following the convention that lower rolls are bad in D&amp;amp;D.&lt;br /&gt;
#Similarly, the player could be asked to roll a d20, with a score of 15 or 16 requiring a re-roll and 17–20 being successful choices. This would give a 4/18 chance, i.e., 2/9 for a successful roll on the first (and any subsequent) rolls. As with option 2, there would be a 1/10 chance of having to make and reject at least one extra dice-roll. &lt;br /&gt;
#If understanding the actual odds, but wishing to keep the dice in use simple, a 2/9 probability can also be found by saying Cueball would succeed when 2D6 produces a 9, 10, or 12 (4/36, 3/36, and 1/36 probability, respectively, giving 8/36, i.e., 2/9).&lt;br /&gt;
#Another method would be to roll 1d6 twice, using the first as a base number and the second as a control die where 1-2 = +0, 3-4 = +6 and 5-6 = +12 for a linear spread of 1-18. In this case a roll of 3, 4, 5, or 6 on the first roll coupled with a 5 or 6 on the second roll would indicate the top four of the eighteen possibilities, 4/18, or 2/9.&lt;br /&gt;
#Or to roll 2d6 and ''multiply'', rather than add, the results. A successful roll is 20 or more.&lt;br /&gt;
#Or to take the maximum of 1d6 and 1d12. Denoting 4 or lower as a successful roll, the method yields a probability of 16/72 = 2/9.&lt;br /&gt;
#Alternatively, approximate the odds by using a d100 (or equivalent roll of two D10s) and seeking an 78 or higher (i.e. the range of 78-99, assuming this roll can produce a zero/double-zero roll, instead of a 'natural 100' for which the range would have to start at 79), which gives a 22% chance, which may be sufficiently acceptable as it is substantially similar to 2/9's effective odds of 22.&amp;lt;span style=&amp;quot;text-decoration:overline&amp;quot;&amp;gt;222&amp;lt;/span&amp;gt;%. If you re-roll either the 0 or 100 (depending on whether you use 78 or 79 as the cutoff), you would bring the probability exactly to 22/99 or 2/9.&lt;br /&gt;
&lt;br /&gt;
The first two options also instantly reveal cases of whether ''two'' cursed arrows are nominally chosen (an outcome that is at identical odds to the opposite possibility of neither being so), should this be useful roleplaying information in addition to the basic fact of ''failing'' to avoid at least one of them. The option suggested in the comic could also be used to indicate this if the dice add up to 10 or lower, the fourth one if (for example) the complementary results of 2, 4 or 5 are rolled, and the final one in the event that the 'percentage' given is 0-21 (or 1-22).&lt;br /&gt;
&lt;br /&gt;
One could argue that the above solutions do not have the &amp;quot;polished&amp;quot; D&amp;amp;D feel of rolling a certain number of dice, adding them up, and seeing if the result is greater than or equal to an entirely correct required total. This is a commonly used mechanic for difficulty checks, hit calculations, and other such chance-based events in D&amp;amp;D. The DM may feel that this dice format is a requirement, but this approach is far too clunky for most DMs to be practical. It may be inferred that as the DM's mind tends towards more combinatorial solutions, she is either unable or unwilling to consider more straightforward and less time-consuming solutions to this cursed arrow problem.&lt;br /&gt;
&lt;br /&gt;
The title text claims that Randall only started doing this to the DM after she herself insisted on forcing another combinatorial puzzle on the players several times, involving a bunch of locked treasure chests and a multitude of keys to unlock them with. This might be a reference to an M-of-N encryption system [https://thalesdocs.com/gphsm/luna/6.3/docs/usb/Content/overview/security_features/mofn_about.htm] [https://blog.apnic.net/2021/05/28/what-is-m-of-n-in-public-private-key-signing/], where a system has ''n'' valid passwords (instead of just one) but requires ''m'' of those passwords to be given before it will open; it is assumed m is greater than 1 but less than n. While this is easy enough to implement in a computer system, it would be extremely cumbersome to build for a physical lock with keys, and spreading the mechanism across multiple separate treasure chests would be impossible without literal magic (luckily, magic is in plentiful supply in a typical Dungeons and Dragons game).{{cn}}&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[Cueball, Megan, Ponytail, White Hat, and Knit Cap are sitting around a table on office chairs. The first and last at either end and the other on the same side facing outwards. Everyone is looking at Cueball who is holding a finger up in front of him while speaking. Ponytail is facepalming while replying. The table is covered in sheets of paper and assorted dice.]&lt;br /&gt;
:Cueball: I grab 2 of the 10 arrows without looking and fire them, hoping I didn't grab one of the 5 cursed ones. Did I?&lt;br /&gt;
:Ponytail: Sigh. Umm. Okay.&lt;br /&gt;
:Ponytail: Roll... Uh... Hang on...&lt;br /&gt;
:Ponytail: Roll 3d6 and a d4. You need... 16 or better to avoid the cursed arrows.&lt;br /&gt;
&lt;br /&gt;
:[Caption below the panel:]&lt;br /&gt;
:I got '''''way''''' more annoying to play D&amp;amp;D with once I learned that our DM has a combinatorics degree and can't resist puzzles.&lt;br /&gt;
&lt;br /&gt;
==Trivia==&lt;br /&gt;
The browser title of this page is &amp;quot;xkcd: D Combinatorics&amp;quot;, instead of &amp;quot;xkcd: D&amp;amp;D Combinatorics&amp;quot;, due to an apparent error on Randall's end. This is thought to be caused by literal interpretation of the '''''&amp;amp;D''''' as a {{w|List of XML and HTML character entity references|character entity}} by the code that created it, though it does not match any normally valid code.&lt;br /&gt;
&lt;br /&gt;
When it was originally uploaded, the title displayed above this comic on xkcd.com was &amp;quot;D&amp;amp;D; Combinatorics&amp;quot;. This was later fixed.&lt;br /&gt;
&lt;br /&gt;
Similar issues occurred when [[3028: D&amp;amp;D Roll]] was uploaded.&lt;br /&gt;
&lt;br /&gt;
Whatever the precise problem, the ampersand in this comic's title also presumably [[explain_xkcd:Community_portal/Admin_requests#RSS_Feed_Broken|broke the explain xkcd RSS feed]], an issue that is said to be only fixable by [[User:Jeff]], who has been inactive for over a year now. {{comic discussion}}&lt;br /&gt;
&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:Comics featuring White Hat]]&lt;br /&gt;
[[Category:Comics featuring Knit Cap]]&lt;br /&gt;
[[Category:Dungeons &amp;amp; Dragons]]&lt;br /&gt;
[[Category:Math]]&lt;br /&gt;
[[Category:Comics edited after their publication]]&lt;/div&gt;</summary>
		<author><name>Unexplainedthing</name></author>	</entry>

	</feed>