9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: lucio@proxima.alt.za
To: 9fans@9fans.net
Subject: Re: [9fans] new toy - gmap
Date: Thu, 26 Mar 2009 08:29:54 +0200	[thread overview]
Message-ID: <edd56c0e508ab35523f6419fc89307f5@proxima.alt.za> (raw)
In-Reply-To: <7644cab877b70498cce32d2d5ddf8bfa@quintile.net>

> Pick up the new code, it reads the key from /lib/gmapkey
> and gets the longditude and latitude the correct way round
> (as several people have told me.

I use:

lng=`{echo $here(2) | sed -e 's/^-(.*)/+\1/' -e 's/^([0-9])/-\1/'}

Because double negatives (--) don't seem to cut it in the URL :-)
I imagine there's a better way, but rc programming is not my strong
suit.  And I can't test now the simplification that drops the \1 from the first term.

I got caught by the fact that the space after -e is mandatory (why?)
and the first \1 belongs to me trying to figure out what I was doing
wrong.

++L




  parent reply	other threads:[~2009-03-26  6:29 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-13  0:05 Steve Simon
2009-03-13 18:27 ` Akshat Kumar
2009-03-13 20:09   ` Steve Simon
2009-03-13 20:37     ` Akshat Kumar
2009-03-13 22:44       ` Bruce Ellis
2009-03-13 22:59         ` J.R. Mauro
2009-03-13 23:11           ` LiteStar numnums
2009-03-13 23:12             ` David Leimbach
2009-03-13 23:15               ` Bruce Ellis
2009-03-13 23:11           ` David Leimbach
2009-03-13 23:17             ` J.R. Mauro
2009-03-13 23:21               ` Bruce Ellis
2009-03-13 23:23               ` LiteStar numnums
2009-03-13 23:26                 ` Bruce Ellis
2009-03-13 23:45                   ` J.R. Mauro
2009-03-13 18:54 ` hiro
2009-03-13 23:46 ` blstuart
2009-03-13 23:52   ` Anthony Sorace
2009-03-13 23:58     ` blstuart
2009-03-14  0:22       ` erik quanstrom
2009-03-14  4:25         ` Bruce Ellis
2009-03-13 23:54   ` Steve Simon
2009-03-14  0:03     ` blstuart
2009-03-14  0:28     ` J.R. Mauro
2009-03-26  6:29     ` lucio [this message]
2009-03-26 13:35       ` erik quanstrom
2009-03-16 10:08 ` Balwinder S Dheeman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=edd56c0e508ab35523f6419fc89307f5@proxima.alt.za \
    --to=lucio@proxima.alt.za \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).