This script does basically what jcwren's infamous monkmap is doing, but isn't it cool to have a script like that on your own computer?
The version of this script requires a monks.xml file, listing all the monks coordinates. Thanks to jcwren, a daily updated XML file is now available at his site! Writing the script that grabs from the site XML is left as an exercise to the reader (the most lazy of you could probably try to convince me to post it too).
Update: All the necessary files are now available for download (.tgz 2M).
If you like this node, be sure to ++ Corion's node too!
New! Daily updated pictures of the North American, Europe and World are available here
Caution, big pictures!
There's still some features to add, namely
Find a way to elegantly manage the overlapping names done!
Generate an Imagemap done!
- The ability to dynamically zoom in/out in an area
- Plenty of other things I'll think of in a few minutes
the up-to-date code is now located at the node drawmap.pl
Updates
- 2001/06/15:
- Fixed the text color, it's now really white
Added preview pics
- 2001/06/16
- v.0.02 : Now using Getopt::Mixed to parse the arguments, so much cleaner!
Added a bad attempt to fix the overlapping name problem
- 2001/06/17
- v.0.03 : A better way to avoid overlaps, thanks to Corion!
- 2001/06/17
- v.0.04 : An even better way to avoid overlaps and some changes in the logic, thanks again to Corion!
2001/06/19Moved to code to drawmap.pl and added a link to the original XML file at tinymicros.com
<kbd>--
my $ OeufMayo = new PerlMonger::Paris({http => ' paris.mongueurs.net'});</kbd>
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|