https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&user=71.186.225.22&feedformat=atomexplain xkcd - User contributions [en]2024-03-29T14:53:52ZUser contributionsMediaWiki 1.30.0https://www.explainxkcd.com/wiki/index.php?title=Talk:951:_Working&diff=35729Talk:951: Working2013-04-30T17:59:30Z<p>71.186.225.22: </p>
<hr />
<div>Unless you're unemployed, in which case spending extra time to find deals is *probably* a good idea since you're not going to be earning any more money with that time anyways. '''[[User:Davidy22|<u>{{Color|purple|David}}<font color=green size=3px>y</font></u><font color=indigo size=4px>²²</font>]]'''[[User talk:Davidy22|<tt>[talk]</tt>]] 08:47, 9 March 2013 (UTC)<br />
* Unless you read the title text. At which point, you are burning enough gas to not only negate the savings, but actually make the cheaper gas more expensive. Sure, if you have 2 gas stations across the street from each other, go to the cheaper one, but even unemployed people should just get the most convenient gas. --[[Special:Contributions/71.186.225.22|71.186.225.22]] 17:59, 30 April 2013 (UTC)</div>71.186.225.22https://www.explainxkcd.com/wiki/index.php?title=426:_Geohashing&diff=32407426: Geohashing2013-04-04T03:09:04Z<p>71.186.225.22: /* Trivia */</p>
<hr />
<div>{{comic<br />
| number = 426<br />
| date = May 21, 2008<br />
| title = Geohashing<br />
| image = geohashing.png<br />
| titletext = Saturday is game night<br />
}}<br />
<br />
==Explanation==<br />
{{w|Geocaching}} is a sport where you have to find things hidden by other people based on geographical coordinates.<br />
<br />
[http://wiki.xkcd.com/geohashing/ Geohashing] is a sport created by Randall based on reaching a random location determined by an [http://wiki.xkcd.com/geohashing/Algorithm algorithm] that involves the current date, location and {{w|Dow Jones Industrial Average|Dow}} opening price.<br />
<br />
The algorithm is built in a way that:<br />
*Makes it impossible to plan a meeting in advance (because of the Dow)<br />
*Changes every day<br />
*Gathers people that are nearby (everyone within the same 1°×1° grid square gets the same position)<br />
<br />
Originally intended as a joke, there are people which do geohashing regularly. Please see the link to the xkcd wiki above.<br />
<br />
{{incomplete}}<br />
<br />
== Trivia ==<br />
In response to comic [[353: Python]], the Python developers implemented the module <code>antigravity</code> in version 2.7+. This module contains a reference geohashing function.<br />
<br />
==Transcript==<br />
:Date (example): 2005-05-26<br />
:That date's (or most recent) DOW opening: 10458.68<br />
:[Concatenate, with a hyphen: 2005-05-26-10458.68]<br />
:md5: db9318c2259923d08b672cb305440f97<br />
:[Split it up into two pieces:]<br />
:0.db9318c2259923d0, 0.8b672cb305440f97<br />
:To decimal: 0.857713..., 0.544544...<br />
:Your location (example): 37.421542, -122.085589<br />
:[Combine integer part of location with fractional part of hash:]<br />
:Destination Coordinates: 37.857713, -122.544544<br />
:Sample Implementation: [http://xkcd.com/geohashing/ http://xkcd.com/geohashing/]<br />
<br />
{{comic discussion}}<br />
[[Category:Comics with color]]</div>71.186.225.22https://www.explainxkcd.com/wiki/index.php?title=353:_Python&diff=32406353: Python2013-04-04T03:08:11Z<p>71.186.225.22: /* Trivia */</p>
<hr />
<div>{{comic<br />
| number = 353<br />
| date = December 5, 2007<br />
| title = Python<br />
| image = python.png<br />
| titletext = I wrote 20 short programs in Python yesterday. It was wonderful. Perl, I'm leaving you.<br />
}}<br />
<br />
==Explanation==<br />
{{w|Python (programming language)|Python}} is a high-level programming language with a heavily simplified syntax (demonstrated here with the {{w|Hello world program|"Hello, world!" program}}).<br />
<br />
{{w|Dynamic typing}} means that you do not have to declare a type for any numbers you enter (for example, "short," "float"); the Python program would automatically know how much space to assign. <br />
<br />
{{w|Whitespace character|Whitespace}} refers to all invisible text characters, like a space or a tab. In most programming languages, for example, C++, levels inside a program need to be set off by brackets while whitespace is irrelevant. By contrast, in Python you set a level simply by indenting the code.<br />
<br />
Methods, functions and constants in Python are packed in so called ''modules''. To use a module, you would use <code>import ''MODULE''</code>. There are lots of ready-to-use modules available. The comic references this by stating that in order to fly it would suffice to import the <code>antigravity</code> module.<br />
<br />
His sampling all the drugs in the medicine cabinet suggests the possibility that he's merely hallucinating flying.<br />
<br />
{{w|Perl}} is another programming language. Interestingly, whereas Perl has an adage about there being more than one way to code for a solution, Python directly addresses this by insisting on only one way to code for a solution.<br />
<br />
== Trivia ==<br />
In response to this comic, the Python developers implemented the module <code>antigravity</code> in version 2.7+. When you <code>import</code> it, the default web browser will open the comic. Also, the module contains a [[426: Geohashing|geohashing]] function.<br />
<br />
==Transcript==<br />
:[Friend is talking to Cueball, who is floating in the sky ]<br />
:Friend: You're flying! How?<br />
:Cueball: Python!<br />
:Cueball: I learned it last night! Everything is so simple!<br />
:Cueball: Hello world is just 'print "Hello, World!" '<br />
:Friend: I dunno... Dynamic typing? Whitespace?<br />
:Cueball: Come join us! Programming is fun again! It's a whole new world up here!<br />
:Friend: But how are you flying?<br />
:Cueball: I just typed 'import antigravity'<br />
:Friend: That's it?<br />
:Cueball: ...I also sampled everything in the medicine cabinet for comparison.<br />
:Cueball: But I think this is the python.<br />
<br />
{{comic discussion}}<br />
<br />
[[Category:Comics featuring Cueball]]<br />
[[Category:Programming]]</div>71.186.225.22