pine editor derby, was Re: London.pm identity cards

2003-08-30 Thread Chris Devers
On Fri, 29 Aug 2003, Michel Rodriguez wrote:

 On Fri, 29 Aug 2003, Sam Vilain wrote:

  On Fri, 29 Aug 2003 09:26, Michel Rodriguez wrote;
 
MR (where is the pound sign when you need it?).
 
  Try AltGr+Shift+3 (or AltGr+#) with a standard XFree86 keymap...

 No AltGr on my keyboard, but Alt+# works in vi, but not in pico
 apparently, too bad I like using the native editor in pine.

In your ~/.pinerc, make sure that

enable-alternate-editor-cmd

is one of the options selected under 'feature-list', and also set

editor=/path/to/vim

(or if you're the regressive type, editor=/path/to/vi) in the same file.
That or search for the equivalent editor directives under the config
options, by typing 'mscweditorenter' -- but the other way is faster :)

Once the editor to use is enabled  set, you can drop into it with ^_ (I
think under older versions of Pine it was ^^ or something, but ^_ seems to
be the keystroke on versions from the past year or two).

If you want to use vi instead of pico always, select the option labeled
enable-alternate-editor-implicitly -- this kind of screws up the display
of message header info though, so personally I didn't care for this
setting. Pico will do for most email for me anyway, but having the option
to reach vim for more subtle formatting etc is nice to have.



-- 
Chris Devers[EMAIL PROTECTED]
http://devers.homeip.net:8080/resume/

integral, adj.
(Of a solution) accurate to the nearest whole number, as: The PENTIUM
has an integral FPU.

-- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995



Re: pine editor derby, was Re: London.pm identity cards

2003-08-30 Thread Peter Sergeant
 If you want to use vi instead of pico always, select the option labeled
 enable-alternate-editor-implicitly -- this kind of screws up the display
 of message header info though, so personally I didn't care for this
 setting.

How so? Dropping into it from mutt, the headers are nicely highlighted
(where appropriate), and I've added a bit of magic to put me directly
into input mode a line down from the headers... Does pine treat this so
differently?

+Pete



Re: pine editor derby, was Re: London.pm identity cards

2003-08-30 Thread Chris Devers
On Sat, 30 Aug 2003, Peter Sergeant wrote:

  If you want to use vi instead of pico always, select the option labeled
  enable-alternate-editor-implicitly -- this kind of screws up the display
  of message header info though, so personally I didn't care for this
  setting.

 How so? Dropping into it from mutt, the headers are nicely highlighted
 (where appropriate), and I've added a bit of magic to put me directly
 into input mode a line down from the headers... Does pine treat this so
 differently?

I like Pine a lot, but this is an area where I'll concede that Mutt does a
better job -- but that's mainly because Pine  Pico are pretty tightly
integrated.

long-winded explanation, because I'm having a hard time succinctly
 describing in plain text how this plain text application works... :-( 

In Pine, my default message composition interface -- at least for the
first screenful of information, is something like this:

From: Chris Devers [EMAIL PROTECTED]
Reply-To: Chris Devers [EMAIL PROTECTED]
To  : [EMAIL PROTECTED]
Attchmnt:
Subject : Re: pine editor derby, was Re: London.pm identity cards
- Message Text -
On Sat, 30 Aug 2003, Peter Sergeant wrote:

  If you want to use vi instead of pico always, select the option

[  a screenful of editable fields ... ]

^G Get Help ^X Send^R Read File ^Y Prev Pg  ^K Cut Text  ^O Postpone
^C Cancel   ^J Justify ^_ Alt Edit  ^V Next Pg  ^U UnJustify ^T To Spell

The lines up to /^- Message Text -$/ line are configurable, but
they are distinct from the editable area itself. Also, the command help
lines at the bottom display one set of commands when the cursor is in the
header lines, and another set when in the message composition section. The
example above is from message composition mode.

If the message is long enough, you scroll away from the headers and then
Pico gets the whole display area (minus the bottom command rows), but
there's always a strong division between headers, message, and footers.



The best description I can think of is to imagine these applications as if
Pine  Mutt were GUI applications or web pages.

In Pine, the header rows are treated like labeled text fields, message
body composition is a separate multi-row text area, and the footer command
row is like a set of labeled buttons. This means that it is not possible,
for example, to move the cursor onto any area other than the labeled
areas in the header or the message composition section.

From what I've used of Mutt, on the other hand, it seems like the whole
screen is editable, so if it were a GUI then the whole area would be a
text field, and you can (I think?) move the cursor anywhere within that
region that you choose. In the background, Magic[tm] happens to make sure
that special parts of that editable area are handled in special ways. (If
I misunderstand that, feel free to correct me -- I'm not a Mutt user :)


This is why handling of external editors works so non-smoothly in Pine.
When you invoke an external editor, you go into a different full screen
mode.

Functionally, after you fill in the header lines and hit down or enter
to leave the header lines, the screen is redrawn with Vim or Emacs or what
have you, and the entire screen real estate is given to that editor to
work on your message body.

To get back to your header lines, you have to quit out of the editor, at
which point you're dropped back to a screen like what you see above.

The transition is hardly seamless.

In GUI/browser terms, it's like filling in the header fields, then opening
up a fully external application to edit the message body and only the
message body. After you save your changes in that external application and
quit out of it, you're dropped back into the original.

Mutt, by contrast, seems to allow the external editor to control
everything, so there isn't that sense of going through a tunnel to get to
the editor -- Mutt itself is almost more like a proxy between $EDITOR and
the mail system.

I suspect that if the transition were to get any better in Pine, a way
would have to be found to embed $EDITOR into the display area such that it
can share that portion of the screen below the header lines  (maybe)
above the command lines -- like an applet $EDITOR, or something.


Does this make sense? It's pretty straightforward, but I'm not sure if I'm
describing it clearly, hence the rambling... :-/



-- 
Chris Devers [EMAIL PROTECTED]
http://devers.homeip.net:8080/

throwaway, adj.
(Of a program) sold below cost for public debugging. See also PROTOTYPING.

-- from _The Computer Contradictionary_, Stan Kelly-Bootle, 1995



London.pm identity cards

2003-08-29 Thread Andy Wardley
You know how people are always asking what it means to be a 
london.pm member?  Do you have to live in London?  Do you have
to attend meetings?  Do you have to watch Buffy?  Or do you just
have to be subscribed to the mailing list?

Well I have a great idea!  How about we all carry London.pm ID cards?
That way, you could walk down any street in any town in the world and
instantly know who was a card-carrying London.pm member just by asking
to see their ID cards.

It's perfect!  It would probably save us millions by all but eliminating
benefit fraud, mailing list spam, and people typing messages with their
winkies.

A

(Yep, I've got another day off work and it's raining.  Idle minds, etc.)




Re: London.pm identity cards

2003-08-29 Thread Michel Rodriguez
On Fri, 29 Aug 2003, Andy Wardley wrote:

 You know how people are always asking what it means to be a
 london.pm member?  Do you have to live in London?  Do you have
 to attend meetings?  Do you have to watch Buffy?  Or do you just
 have to be subscribed to the mailing list?

 Well I have a great idea!  How about we all carry London.pm ID cards?
 That way, you could walk down any street in any town in the world and
 instantly know who was a card-carrying London.pm member just by asking
 to see their ID cards.

 It's perfect!  It would probably save us millions by all but eliminating
 benefit fraud, mailing list spam, and people typing messages with their
 winkies.

I can even offer to provides those for cheap, say 39.95 pounds (where is
the pound sign when you need it?).

Michel Rodriguez
Perl amp; XML
http://www.xmltwig.com




Re: London.pm identity cards

2003-08-29 Thread Paul Makepeace
Je 2003-08-29 09:19:27 +0100, Andy Wardley skribis:
 It's perfect!  It would probably save us millions by all but eliminating
 benefit fraud, mailing list spam, and people typing messages with their
 winkies.

I saw an RFID bug recently - they're imminently swallowable, or even
winky-insert-up-able (kacoens^ovebla). Mmm, a vibrating London.pm (at
strictly ultra high frequencies, natch).

Paul

-- 
Paul Makepeace ... http://paulm.com/

If bees make honey, then my sofa wouldn't speak through my guest's
 bottoms.
   -- http://paulm.com/toys/surrealism/



Re: London.pm identity cards

2003-08-29 Thread Elaine -HFB- Ashton
Andy Wardley [EMAIL PROTECTED] quoth:
*
*Well I have a great idea!  How about we all carry London.pm ID cards?
*That way, you could walk down any street in any town in the world and
*instantly know who was a card-carrying London.pm member just by asking
*to see their ID cards.

:) Well, I'll put it to you this way...I've never had a problem picking
out perl people in a crowd

e.



Re: London.pm identity cards

2003-08-29 Thread Dominic Mitchell
Michel Rodriguez [EMAIL PROTECTED] wrote:
 I can even offer to provides those for cheap, say 39.95 pounds (where is
 the pound sign when you need it?).

#163;

What, no HTML email?  ;-)

-Dom

-- 
| Semantico: creators of major online resources  |
|   URL: http://www.semantico.com/   |
|   Tel: +44 (1273) 72   |
|   Address: 33 Bond St., Brighton, Sussex, BN1 1RD, UK. |



Re: London.pm identity cards

2003-08-29 Thread Michel Rodriguez
On Fri, 29 Aug 2003, Dominic Mitchell wrote:

 Michel Rodriguez [EMAIL PROTECTED] wrote:
  I can even offer to provides those for cheap, say 39.95 pounds (where is
  the pound sign when you need it?).

 #163;

 What, no HTML email?  ;-)

I can see a new thread starting, with people arguing for and against ID
cards in XML (but will they be in Esperanto?).

Michel Rodriguez
Perl amp; XML
http://www.xmltwig.com





Re: London.pm identity cards

2003-08-29 Thread Paul Makepeace
Je 2003-08-29 09:58:40 +0100, Dominic Mitchell skribis:
 Michel Rodriguez [EMAIL PROTECTED] wrote:
  I can even offer to provides those for cheap, say 39.95 pounds (where is
  the pound sign when you need it?).
 
 #163;

pound; might be easier for some to remember.

http://www.w3.org/TR/html4/sgml/entities.html

Paul, who prefers the 'q' suffix: I found 10q in some old jeans.

-- 
Paul Makepeace ... http://paulm.com/

What is how big is the sky? This is not the time for questions! This is
 the time for action!
   -- http://paulm.com/toys/surrealism/



Re: London.pm identity cards

2003-08-29 Thread Sam Vilain
On Fri, 29 Aug 2003 09:26, Michel Rodriguez wrote;

  MR (where is the pound sign when you need it?).

Try AltGr+Shift+3 (or AltGr+#) with a standard XFree86 keymap...
-- 
Sam Vilain, [EMAIL PROTECTED]

This year's modesty award is given for a phrase spoken by a lecturer
after a rather difficult concept had just been introduced.
  You may feel that this is a little unclear but in fact I am
lecturing it extremely well.




Re: London.pm identity cards

2003-08-29 Thread Elaine -HFB- Ashton
Michel Rodriguez [EMAIL PROTECTED] quoth:
*
*I can see a new thread starting, with people arguing for and against ID
*cards in XML (but will they be in Esperanto?).

http://www.axis-of-aevil.org/photos/yapc2003/IMG_1812.html

Just have people be the XML :)

e.



Re: London.pm identity cards

2003-08-29 Thread Earle Martin
On Fri, Aug 29, 2003 at 11:08:07AM +0200, Michel Rodriguez wrote:
 I can see a new thread starting, with people arguing for and against ID
 cards in XML (but will they be in Esperanto?).

XML? Huh!

rdf:RDF
 xmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#;
 xmlns:foaf=http://xmlns.com/foaf/0.1/;


foaf:Group
 foaf:nameLondon Perl Mongers/foaf:name
 foaf:homepage rdf:resource=http://london.pm.org//
 foaf:member
  foaf:Person
   foaf:nameEarle Martin/foaf:name
   foaf:mbox_sha1sum8699ba79a95abf86e0055c133bf5d87ceab921e9/foaf:mbox_sha1sum
   foaf:homepage rdf:resource=http://downlode.org/
  /foaf:Person
 /foaf:member
/foaf:Group

/rdf:RDF

-- 
# Earle Martin http://c2.com/cgi/wiki?EarleMartin
$a=f695a9a2176a7dd1618af6649896ee10f05ea986de18af6277e9a1d8ef4696644569a1d.
8ef46961ae1e64277e9896eea7d92ea8003e9a1d8ef4696f6950;$b=8ALB6AIA4.BA2;$c=
join,unpackC*,$b;$c=~s/7/2/g;@b=split,$c;foreach$d(@b){$e=hex(substr($a
,$f,$d));while(length($e)8){substr($e,0,0)=0;}print packb8,$e;$f+=$d;}



Re: London.pm identity cards

2003-08-29 Thread Ben
On Fri, Aug 29, 2003 at 10:11:13AM +0100, Sam Vilain wrote:
 
 This year's modesty award is given for a phrase spoken by a lecturer
 after a rather difficult concept had just been introduced.
   You may feel that this is a little unclear but in fact I am
 lecturing it extremely well.

That sounds like a quote from TWK, or someone like him.

That's the second pseudo-Kornerism you've sigged us with today. Is
there a reason?

Ben, curious now 



Re: London.pm identity cards

2003-08-29 Thread Paul Makepeace
Je 2003-08-29 10:35:13 +0100, Ben skribis:
 On Fri, Aug 29, 2003 at 10:11:13AM +0100, Sam Vilain wrote:
  
  This year's modesty award is given for a phrase spoken by a lecturer
  after a rather difficult concept had just been introduced.
You may feel that this is a little unclear but in fact I am
  lecturing it extremely well.
 
 That sounds like a quote from TWK, or someone like him.

Or pretty much any of the older Cambridge lecturers. I'm quite sure I've
heard something word for word in at least one Maths xerox
sess^W^Wlecture.

Similarly, in a tutorial, I'm not here to teach, I'm here to research.

Paul

-- 
Paul Makepeace ... http://paulm.com/

What is beauty? Weblogs.
   -- http://paulm.com/toys/surrealism/



Re: London.pm identity cards

2003-08-29 Thread Michel Rodriguez
On Fri, 29 Aug 2003, Sam Vilain wrote:

 On Fri, 29 Aug 2003 09:26, Michel Rodriguez wrote;

   MR (where is the pound sign when you need it?).

 Try AltGr+Shift+3 (or AltGr+#) with a standard XFree86 keymap...

No AltGr on my keyboard, but Alt+# works in vi, but not in pico
apparently, too bad I like using the native editor in pine.

The cut-n-paste versions seems to work though: £ (although don't ask me
what encoding I am using, ssh-ing from a Unicode enabled terminal to a
machine that does not support Unicode and using pine there is a source of
neverending headaches :--(

To go back to the ID card subject, we have it in France, and I haven't
been asked to show it by the police once in the last 10 years. It is
mostly used when taking the plane, when you pay a purchase by check and
as a proof of citizenship when dealing with bureaucracy. Interestingly
enough a passport is not actually a proof of citizenship, at least in
France and Canada [1][2]. Note that the bureaucracy here also seems to
think that there are various levels of ID cards: they deny that the one I
hold is a proof of citizenship, as it was delivered abroad and is not one
of those shiny new safe ones they started delivering at the height of
the xenophobia wave of the early 90's

Bottom line, I believe the law that forces you to carry your ID at all
times is yet an other way of allowing the police to harass people they
don't like, while never being used against proper citizens (the
definition of proper varying with each law enforcement personel, but
generally not including anyone too dark-skinned)


[1] http://www.france.diplomatie.fr/etrangers/vivre/passeport/
Qu'est-ce que le passeport ?

C'est un document de voyage qui permet à son titulaire de circuler à
l'étranger. Tout en n'en constituant pas la preuve, il établit une
présomption de la nationalité de son titulaire.

loose translation: ([A passport] is a travel document that allows its
bearer to travel abroad. Although it is not a proof of citizenship, it
hints at it (I love this sentence!)

[2] http://www.ppt.gc.ca/faq/index_e.asp#232
...A Canadian passport is an official travel document to identify the
bearer, not proof of citizenship...


Michel Rodriguez
Perl amp; XML
http://www.xmltwig.com




Re: London.pm identity cards

2003-08-29 Thread Sam Vilain
On Fri, 29 Aug 2003 10:35, Ben wrote;

  Be That's the second pseudo-Kornerism you've sigged us with
  Be today. Is there a reason?

Sheer chance I'm afraid :-)
-- 
Sam Vilain, [EMAIL PROTECTED]

$h=$ENV{HOME};@q=split/\n\n/,`cat $h/.quotes`;$s=$h/.s
.ignature;$t=`cat $s`;print$t,\n,$q[rand($#q)],\n;