9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] 3 questions
@ 2006-05-29 17:14 Fco. J. Ballesteros
  0 siblings, 0 replies; 14+ messages in thread
From: Fco. J. Ballesteros @ 2006-05-29 17:14 UTC (permalink / raw)
  To: jmk, rminnich, 9fans

:  After the 'how do we read/store mail on Plan 9' a couple of months ago,
:  has anyone done anything to improve the situation, e.g. memory footprint?

I have done something.
In the Plan B distrib I copied to sources, there's a program that
should work also for Plan 9. It should be at
/n/sources/contrib/nemo/sys/src/cmd/mail2fs/ IIRC

The idea is that mail2fs converts from mbox format to a file tree.
For example, my current inbox (listed from its root), is:

200605/6679/text    rsc@swtch.com   Re: [9fans] 3 questions                          
200605/6678/text    rsc@swtch.com   Re: [9fans] 3 questions                          
200605/6677/text    quanstro@quans  Re: [9fans] 3 questions                          
200605/6676/text    jmk@plan9.bell  Re: [9fans] 3 questions                          
200605/6675/text    quanstro@quans  Re: [9fans] 3 questions                          
200605/6674/text    jcenteno@gsyc.  Re: programa en canal historia                   
....

Then, to read mail, I use mails (which merely pretty-prints */[0-9]*/text)
or one for the wrappers. Indeed, cat */[0-9]*/text works well enough.

Would this suffice?
I remember complaints about the speed of using grep to search within this,
but in practice, I manage. If that's a problem, maybe what we need is a
generic file search a-la google for our files.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] 3 questions
  2006-05-30  4:34   ` Ronald G Minnich
  2006-05-30  6:26     ` arisawa
@ 2006-05-30  7:35     ` quanstro
  1 sibling, 0 replies; 14+ messages in thread
From: quanstro @ 2006-05-30  7:35 UTC (permalink / raw)
  To: 9fans

seppuku.

On Mon May 29 23:45:44 CDT 2006, rminnich@lanl.gov wrote:
> lucio@proxima.alt.za wrote:
> 
> > Well, what's so bad about editing raw HTML?  It is considerably more
> > embarrassing to publish the type of unreadable trash (only its mother
> > could love that HTML!) produced by the average HTML editor.  Take a
> > look, sometimes.
> 
> It's not me. It's a user. This is a very common problem. I just edit 
> html myself. But I was wondering if there was something more acceptable 
> under plan 9 than raw html.
> 
> thanks
> 
> ron


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] 3 questions
  2006-05-30  4:34   ` Ronald G Minnich
@ 2006-05-30  6:26     ` arisawa
  2006-05-30  7:35     ` quanstro
  1 sibling, 0 replies; 14+ messages in thread
From: arisawa @ 2006-05-30  6:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

I am converting my own style which I call tt format to html format.
The tt format is like below:

H1: main title here
H2: subtitle hera
unordered list is
- something here
- something here
- something here

Program code is
P:!
some program code
...
...
!

H2: Where is the example
All of my web pages are written using tt format.
You can look the examples at
- http://ar.aichi-u.ac.jp
- http://plan9.aichi-u.ac.jp

A special page for tt format is
http://ar.aichi-u.ac.jp/tt/

The converter is written in python. You can download from
http://ar.aichi-u.ac.jp/tt/ptt.py


Kenji Arisawa

On 2006/05/30, at 13:34, Ronald G Minnich wrote:

> lucio@proxima.alt.za wrote:
>
>> Well, what's so bad about editing raw HTML?  It is considerably more
>> embarrassing to publish the type of unreadable trash (only its mother
>> could love that HTML!) produced by the average HTML editor.  Take a
>> look, sometimes.
>
> It's not me. It's a user. This is a very common problem. I just  
> edit html myself. But I was wondering if there was something more  
> acceptable under plan 9 than raw html.
>
> thanks
>
> ron



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] 3 questions
  2006-05-29 17:15 ` lucio
@ 2006-05-30  4:34   ` Ronald G Minnich
  2006-05-30  6:26     ` arisawa
  2006-05-30  7:35     ` quanstro
  0 siblings, 2 replies; 14+ messages in thread
From: Ronald G Minnich @ 2006-05-30  4:34 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

lucio@proxima.alt.za wrote:

> Well, what's so bad about editing raw HTML?  It is considerably more
> embarrassing to publish the type of unreadable trash (only its mother
> could love that HTML!) produced by the average HTML editor.  Take a
> look, sometimes.

It's not me. It's a user. This is a very common problem. I just edit 
html myself. But I was wondering if there was something more acceptable 
under plan 9 than raw html.

thanks

ron


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] 3 questions
  2006-05-29 16:33 Ronald G. Minnich
                   ` (5 preceding siblings ...)
  2006-05-29 17:58 ` Russ Cox
@ 2006-05-30  3:05 ` Micah Stetson
  6 siblings, 0 replies; 14+ messages in thread
From: Micah Stetson @ 2006-05-30  3:05 UTC (permalink / raw)
  To: rminnich, Fans of the OS Plan 9 from Bell Labs

> last question. "You're kidding", she says, "you guys just edit raw html?"
> Well, er, I stammer, pretty much. So, how do you folks out there edit your
> web pages? I never even thought about it until now. I just do the html
> dance.

When I have to do this stuff, I sometimes use a little macro
preprocessor I put together for it.  I haven't written a man page, but
if you're interested, I'll send it to you.  It goes something like
this:

cat >foo.hi <<EOF
<def name="page">
  <html>
     blah blah blah
</def>
<def name="/page">
    blah blah
  </html>
</def>
EOF
cat >foo.hm <<EOF
<include file="foo.hi">
<page>
  whatever
</page>
EOF
hm foo.hm >foo.html

My wife uses this with sam and mk to manage a small web site.

Micah


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] 3 questions
  2006-05-29 17:57 ` Russ Cox
@ 2006-05-30  0:04   ` geoff
  0 siblings, 0 replies; 14+ messages in thread
From: geoff @ 2006-05-30  0:04 UTC (permalink / raw)
  To: 9fans

I use htmlroff to convert papers to HTML and edit the rest by hand.
HTML is essentially just DEC's old Runoff with `<' and `>' instead of
`.', so it's pretty easy to mark up plain text, as you've seen.  It's
not like you're asking her to write Runoff in IBM 1620 machine
language and toggle it in through the front panel switches.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] 3 questions
  2006-05-29 17:58 ` Russ Cox
@ 2006-05-29 22:55   ` Adrian Tritschler
  0 siblings, 0 replies; 14+ messages in thread
From: Adrian Tritschler @ 2006-05-29 22:55 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Russ Cox wrote:
>> Second question: drawterm in from a windows box. i can see C: (c-coli) but
>> not d-coli, e-coli, etc. in /mnt/term. How do I get  to these other
>> things?
> 
> You can't.  There used to be a -r option so you
> could set which one (but just one) /mnt/term
> corresponded to, but even that is gone now.
> If you want to add it back, feel free.

The way I got around this when I wanted to was to mount the D: under
(say C:\drive-D)

http://groups.google.com.au/group/comp.os.plan9/browse_thread/thread/8cf84763553d87c2/ae9d836f25b36e1d?q=tritschler+drive&rnum=1#ae9d836f25b36e1d

> Russ
	Adrian
- ---------------------------------------------------------------
Adrian Tritschler                          mailto:ajft@ajft.org
Latitude 38°S, Longitude 145°E, Altitude 50m,      Shoe size 44
- ---------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEe3vuIRiOsXzK05QRAt8KAJ9MxwQMFO1zswnoBacuBxlGWYZ0qACg66bq
SwHY8IXWj4cVl68DgYlqXbg=
=Eqbr
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] 3 questions
  2006-05-29 16:33 Ronald G. Minnich
                   ` (4 preceding siblings ...)
  2006-05-29 17:57 ` Russ Cox
@ 2006-05-29 17:58 ` Russ Cox
  2006-05-29 22:55   ` Adrian Tritschler
  2006-05-30  3:05 ` Micah Stetson
  6 siblings, 1 reply; 14+ messages in thread
From: Russ Cox @ 2006-05-29 17:58 UTC (permalink / raw)
  To: rminnich, 9fans

> Second question: drawterm in from a windows box. i can see C: (c-coli) but
> not d-coli, e-coli, etc. in /mnt/term. How do I get  to these other
> things?

You can't.  There used to be a -r option so you
could set which one (but just one) /mnt/term
corresponded to, but even that is gone now.
If you want to add it back, feel free.

Russ



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] 3 questions
  2006-05-29 16:33 Ronald G. Minnich
                   ` (3 preceding siblings ...)
  2006-05-29 17:15 ` lucio
@ 2006-05-29 17:57 ` Russ Cox
  2006-05-30  0:04   ` geoff
  2006-05-29 17:58 ` Russ Cox
  2006-05-30  3:05 ` Micah Stetson
  6 siblings, 1 reply; 14+ messages in thread
From: Russ Cox @ 2006-05-29 17:57 UTC (permalink / raw)
  To: 9fans

> last question. "You're kidding", she says, "you guys just edit raw html?"
> Well, er, I stammer, pretty much. So, how do you folks out there edit your
> web pages? I never even thought about it until now. I just do the html
> dance.

You could always introduce her to troff and use htmlroff.
Then raw HTML will look like a civilized alternative.

Russ



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] 3 questions
  2006-05-29 16:33 Ronald G. Minnich
                   ` (2 preceding siblings ...)
  2006-05-29 16:49 ` jmk
@ 2006-05-29 17:15 ` lucio
  2006-05-30  4:34   ` Ronald G Minnich
  2006-05-29 17:57 ` Russ Cox
                   ` (2 subsequent siblings)
  6 siblings, 1 reply; 14+ messages in thread
From: lucio @ 2006-05-29 17:15 UTC (permalink / raw)
  To: 9fans

> last question. "You're kidding", she says, "you guys just edit raw html?"
> Well, er, I stammer, pretty much. So, how do you folks out there edit your
> web pages? I never even thought about it until now. I just do the html
> dance.

Well, what's so bad about editing raw HTML?  It is considerably more
embarrassing to publish the type of unreadable trash (only its mother
could love that HTML!) produced by the average HTML editor.  Take a
look, sometimes.

++L



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] 3 questions
  2006-05-29 16:33 Ronald G. Minnich
  2006-05-29 16:36 ` quanstro
  2006-05-29 16:40 ` quanstro
@ 2006-05-29 16:49 ` jmk
  2006-05-29 17:15 ` lucio
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 14+ messages in thread
From: jmk @ 2006-05-29 16:49 UTC (permalink / raw)
  To: rminnich, 9fans

On Mon May 29 12:34:44 EDT 2006, rminnich@lanl.gov wrote:
> ...
> last question. "You're kidding", she says, "you guys just edit raw html?"
> Well, er, I stammer, pretty much. So, how do you folks out there edit your
> web pages? I never even thought about it until now. I just do the html
> dance.
> ...

You guys have web pages?

After the 'how do we read/store mail on Plan 9' a couple of months ago,
has anyone done anything to improve the situation, e.g. memory footprint?

--jim


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] 3 questions
  2006-05-29 16:33 Ronald G. Minnich
  2006-05-29 16:36 ` quanstro
@ 2006-05-29 16:40 ` quanstro
  2006-05-29 16:49 ` jmk
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 14+ messages in thread
From: quanstro @ 2006-05-29 16:40 UTC (permalink / raw)
  To: rminnich, 9fans

you could try replacing imap4d.c:307 with ';'.

- erik


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [9fans] 3 questions
  2006-05-29 16:33 Ronald G. Minnich
@ 2006-05-29 16:36 ` quanstro
  2006-05-29 16:40 ` quanstro
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 14+ messages in thread
From: quanstro @ 2006-05-29 16:36 UTC (permalink / raw)
  To: rminnich, 9fans

try telneting to the imap4d server. then type this:
(you need the integer prefix -- that's imap's command
tag.  you can use any string, unique to that session.)

1 login $USER $PASSWORD
2 select inbox
3 fetch 1 all
4 fetch 1 body[]
5 logout

if you hang on 4, you have some sort of network problem.

- erik

On Mon May 29 11:35:04 CDT 2006, rminnich@lanl.gov wrote:
> I've got a system up  and a reluctant user.
> 
> "I don't like that acme mail" she says. So, I have set up (almost) imap4d
> over ssl. Both thunderbird and mac mailer get part way in:
>                 : imap4d debugging enabled
>                 * OK roo.hsd1.nm.comcast.net. IMAP4rev1 server ready
> 
> and then hang.  They are waiting for something, and imap4d seems to be
> waiting. If I disconnect them, I see this:
> 
>           * bad empty command line: bad syntax
> 
>           * bye end of input
> 
> 
> any idea what could be going wrong here?
> 
> Second question: drawterm in from a windows box. i can see C: (c-coli) but
> not d-coli, e-coli, etc. in /mnt/term. How do I get  to these other
> things?
> 
> last question. "You're kidding", she says, "you guys just edit raw html?"
> Well, er, I stammer, pretty much. So, how do you folks out there edit your
> web pages? I never even thought about it until now. I just do the html
> dance.
> 
> thanks
> 
> ron
> 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* [9fans] 3 questions
@ 2006-05-29 16:33 Ronald G. Minnich
  2006-05-29 16:36 ` quanstro
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Ronald G. Minnich @ 2006-05-29 16:33 UTC (permalink / raw)
  To: 9fans

I've got a system up  and a reluctant user.

"I don't like that acme mail" she says. So, I have set up (almost) imap4d
over ssl. Both thunderbird and mac mailer get part way in:
                : imap4d debugging enabled
                * OK roo.hsd1.nm.comcast.net. IMAP4rev1 server ready

and then hang.  They are waiting for something, and imap4d seems to be
waiting. If I disconnect them, I see this:

          * bad empty command line: bad syntax

          * bye end of input


any idea what could be going wrong here?

Second question: drawterm in from a windows box. i can see C: (c-coli) but
not d-coli, e-coli, etc. in /mnt/term. How do I get  to these other
things?

last question. "You're kidding", she says, "you guys just edit raw html?"
Well, er, I stammer, pretty much. So, how do you folks out there edit your
web pages? I never even thought about it until now. I just do the html
dance.

thanks

ron


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-05-30  7:35 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-29 17:14 [9fans] 3 questions Fco. J. Ballesteros
  -- strict thread matches above, loose matches on Subject: below --
2006-05-29 16:33 Ronald G. Minnich
2006-05-29 16:36 ` quanstro
2006-05-29 16:40 ` quanstro
2006-05-29 16:49 ` jmk
2006-05-29 17:15 ` lucio
2006-05-30  4:34   ` Ronald G Minnich
2006-05-30  6:26     ` arisawa
2006-05-30  7:35     ` quanstro
2006-05-29 17:57 ` Russ Cox
2006-05-30  0:04   ` geoff
2006-05-29 17:58 ` Russ Cox
2006-05-29 22:55   ` Adrian Tritschler
2006-05-30  3:05 ` Micah Stetson

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).