Difference between revisions of "Implementations/Utilities"

From Geohashing
imported>Relet
(Created page with "== Comic Creator == {{30w compliant|yes=1}} A python class to recreate [http://xkcd.com/426/ the original comic], but for any given date with your own coordinates! Below shows th...")
 
imported>Relet
(Comic Creator)
Line 6: Line 6:
  
 
In the image, [[Dow]] values less than 10,000.00 are padded with leading spaces, however in the algorithm it is not so it is compliant with other the algorithms. As [[User:Tjtrumpet2323|Tim P]] suggested, the comic is akin to all the bank cheques with "19__" printed on them being used in 2000.  The "form" has 5+2 "boxes" because that's how [[Dow]] prices are now, but that doesn't mean it can't be different.
 
In the image, [[Dow]] values less than 10,000.00 are padded with leading spaces, however in the algorithm it is not so it is compliant with other the algorithms. As [[User:Tjtrumpet2323|Tim P]] suggested, the comic is akin to all the bank cheques with "19__" printed on them being used in 2000.  The "form" has 5+2 "boxes" because that's how [[Dow]] prices are now, but that doesn't mean it can't be different.
 +
 +
=== Bugs ===
 +
* The font sizes are not exactly as the original and there can still be some alignment problems.
 +
* The -0 issue is ignored. Only if you enter -0 as an integer you get an incorrect outcome. You are supposed to enter your own location as a float, up to 6 decimals, everything is okay even when you enter -0.0.

Revision as of 07:43, 10 April 2012

Comic Creator

This implementation IS FULLY 30W-compliant.

A python class to recreate the original comic, but for any given date with your own coordinates! Below shows the comic for the first North East Netherlands meetup. Although it fetches the Dow itself, you can add &dowjones=12345.67 if it doesn't do so correctly (e.g., peeron.com is down). Created by Hugo.

http://www.astro.rug.nl/~buddel/cgi-bin/geohashingcomic/geohashingcomic.cgi?year=2008&month=5&day=24&lat=55.218512&lon=6.566854

You can download the script as well if you wish.

In the image, Dow values less than 10,000.00 are padded with leading spaces, however in the algorithm it is not so it is compliant with other the algorithms. As Tim P suggested, the comic is akin to all the bank cheques with "19__" printed on them being used in 2000. The "form" has 5+2 "boxes" because that's how Dow prices are now, but that doesn't mean it can't be different.

Bugs

  • The font sizes are not exactly as the original and there can still be some alignment problems.
  • The -0 issue is ignored. Only if you enter -0 as an integer you get an incorrect outcome. You are supposed to enter your own location as a float, up to 6 decimals, everything is okay even when you enter -0.0.