[REBOL] Re: Can't find a recent post about archiving Outlook Express emails to text files

2002-10-03 Thread pat665

Salut Gérard

C'est peut-être ce que tu cherches ...

http://www.codeconscious.com/outlook-express/

Patrick

- Original Message -
From: "Gerard Cote" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 03, 2002 4:41 PM
Subject: [REBOL] Can't find a recent post about archiving Outlook Express
emails to text files


> Hi List,
>
> sorry for the disturbance but I am ready to try the REBOL email client
from Phil B. and I would like to convert all my past emails
> that were received with Outlook Express to simple text files. so I could
be able to grab the interesting contents I selected to get
> them back with the new reader.
>
> I remember having seen - in the last 3 months or so some post about the
way to do it - but after some thorough search in all the
> available archives of this ML, I couldn't anything.
>
> Can someone help me remember from who was this HOW-TO for me to look at it
another time ? A simple ref. to the article explaining
> the how-to will be sufficient too.
>
> I thought it could be Brett or Jason but seemed to found nothing related
to this subject on their sites either. May be I become too
> old ... as everybody gets someday !!!
>
> Thanks,
> Gerard
>
> P.S. Seems to me it was done by selecting the old emails and resending
them - so they can be received as attachments that can then
> be found separately on disk - but I am not sure if there is a shorter way
to do it since I have a big LOT of them to manage ( in the
> many thousands) ... many of them are not REBOL related at all but I want
to keep and put them on CD-ROMs.
>
> And for those that want to get some various SPAM samples, I have TONs of
them under my HANDs. I just have to filter them and resend
> all to anyone interested. May be long however ...
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
> __
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
> d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant

__
Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
d'économies ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: draw has no access to the current face

2002-10-01 Thread pat665

Hi List

Brett said

>>I hope this helps.
>>Brett.

Oh, yes. And I am pretty sure that this has been helpful and interresting
for many Rebolers. May I dare to ask how you have learn all this stuff?

Patrick
- Original Message -
From: "Brett Handley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 1:19 AM
Subject: [REBOL] Re: draw has no access to the current face


> regarding my last post on this thread - Oops wrong button
>
> Looking at this code:
>
>  draw-layout: [
>   h2 "Draw buttons"
>
>   style draw-button box 24x24 with [
>effect:  [draw [pen black fill-pen user-data circle 12x12 10]]
>   ]
>
>   across
>
>   r-btn: draw-button user-data red[ print "hey, I'm red"]
>   b-btn: draw-button user-data blue   [ print "hey, I'm blue"]
>   y-btn: draw-button user-data yellow [ print "hey, I'm yellow!"]
>   g-btn: draw-button user-data green  [ print "hey, I'm green!"]
>  ]
>
>  view center-face layout draw-layout
>
> > Quoting Romano the with "magically binds the effect block words to the
> face
> > objects words".
> >
> > I have some questions about this:
> >
> > Could someone tell me more about this "magic" with ?
> ...
> > why effect is now a set-word! ?
>
> All REBOL/View faces are objects. VID and LAYOUT are used to create this
> object but using a simpler more powerful way to express how to create
them.
>
> So LAYOUT [ button ] will create an object for the button (it will also
> create another for the window but lets ignore that for the moment).  When
> you use LAYOUT [button red] an object is created but this time with a
colour
> of Red. The VID language and LAYOUT translate the "red" into an action of
> setting the face's colour facet to red.
>
> WITH is part of the VID language that allows you to specify the facets
using
> a normal REBOL object specification. So the object that is created has
this
> specification applied to it.
>
> For example, instead of LAYOUT [button red] you could write LAYOUT [
button
> with [color: red] ]
> As you can see [button red] is easier, but the advantage of WITH is that
you
> can create entirely new facets using it.
> For example,
>
> >> LAYOUT [btn: button with [my-special-facet: "Brett"]]
> >> btn/my-special-facet
> == "Brett"
>
> Vid styles are objects too. When you use LAYOUT [style draw-button box
> 24x24]
> You are creating another style object, one which is based on the box
style.
> When Romano used WITH in creating a style he was using a normal REBOL
object
> specification to change the facets (object fields) of the style. This is
why
> EFFECT became a set-word.
>
> > why is it no more needed in "user-data red"?
>
> The style that was created now has this EFFECT. Every face based on that
> style will have the same EFFECT by default.
> The EFFECT block refers to USER-DATA which is a built-in facet of every
VID
> style.
>
> USER-DATA is a VID keyword and built-in facet. For example
>
> >> LAYOUT [btn: button user-data "Brett"]
> >> btn/user-data
> == "Brett"
>
> As you can see just like setting the colour we can set USER-DATA just as
> easily.
>
> > I was asking myself the same questions, when Anton stabbed me in the
back
> > with an even more puzzling code with a "little dialect using the words
> > facet".
> ...
> > As it seems to me, words is a face/facet used to define a face behaviour
> in
> > the form of a function. In this function, new is the object face, while
> args
> > is a block like [fill 255.0.0 [print "hey, I'm red"]]. The "next args"
> part
> > is a bit of a puzzle, because it cannot be removed or the face is not
> > displayed correctly.
>
> Pretty close. Yes WORDS is a facet, but it is used during LAYOUT *only*
not
> during the display of the face. It is a way that more keywords can be
added
> to VID so that your custom styles can have their own specific VID
keywords.
> So what Anton has done is to create a new keyword FILL that is valid for
the
> DRAW-BUTTON style. When LAYOUT processes this specification [draw-button
> fill red ] it executes the WORDS of DRAW-BUTTON to process the FILL
keyword.
>
> > Its goal seems to return whatever is left to be
> > processed to finish the face display.
>
> Yes whatever is left needs to be given back so that LAYOUT can process
other
> attributes and facets after the FILL (and its data).
>
> This is an advanced technique. But as you can see it is very powerful.
> Using WITH to make custom facets and WORDS to add custom VID keywords you
> can create altogether new VID styles that are very easy to specify.
>
> I hope this helps.
> Brett.
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
>
> 
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
d'économies !
> Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
> + 1 mois de jeu en réseau offert !

[REBOL] Re: draw has no access to the current face

2002-10-01 Thread pat665

Thanks Romano,

I have had very exciting moment searching the VID source, experiencing at
the console, trying, failing, asking, being answered ...
Rebol is like some fractals, the more closer you look at it the more you
find interresting stuff, and it never stops.
And its not like God, or stars, or the number pi, it is a human creation !
Thank you Carl at REBOL !
Amazing !

Patrick

- Original Message -
From: "Romano Paolo Tenca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 01, 2002 1:23 AM
Subject: [REBOL] Re: draw has no access to the current face


> Hi pat,
>
> > Romano Paolo Tenca (BTW may I call you Romano for short? )
>
> Yes!
>
> > Quoting Romano the with "magically binds the effect block words to the
face
> > objects words".
> >
> > I have some questions about this:
> >
> > Could someone tell me more about this "magic" with ? why is it no more
> > needed in "user-data red"? why effect is now a set-word! ?
>
> All the magic is relative to object and binding of words. When you define
an
> object starting from a previous object:
>
>  ob: make object! [a: 1]
>  make ob [a: 2]
>
> you assign a new value (2) to the word 'a of the object: this can happen
> because the word 'a in the block is bound to the word 'a in the object
before
> executing the block. The sequence of operations is:
>
>  1) duplicate object ob and its context
>  2) bind the block [a: 2] to the new context
>  3) evaluate the block [a: 2]
>
>  Now in 3) when you change the value of 'a in the block, you really change
the
> value of 'a in the object.
>
> The point is that words are not variable, they have not a value, they are
> alphanumeric pointers to context, which are "invisible" structure created
by
> make object! (not only).
>
> The 'with word of Vid is a shortcut for something like this, only 'ob is
the
> style face and the block is the 'with block.
>
> The 'effect word of Vid, instead, does not bind the block to the object
> context, only assign the block to the effect field.
>
> Effect [draw [pen user-data]] is like:
>
>  new-face: make face []
>  new-face/effect: [draw [pen user-data]]
>
> instead:
>
> with [effect: [draw [pen user-data]]] is like
>
>  new-face: make face [effect: [draw [pen user-data]]]
>
> only in the latter case the block is bound to the face object before
> executing.
>
> ---
> Ciao
> Romano
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
>
> 
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
d'économies !
> Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
> + 1 mois de jeu en réseau offert !
> Clique ici : http://www.ifrance.com/_reloc/mail.etudiant



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: draw has no access to the current face

2002-09-30 Thread pat665

Hi List

Previously in the "draw has no access to the current face" post:

On my quest to produce buttons displayed with the draw dialect and to be
able to have several colors I came to the List with the following code. I
was looking for a more elegant coding.

 draw-layout: [
  h2 "Draw buttons"

  style draw-button box 24x24 effect [
   draw [pen black fill-pen x-color circle 12x12 10]]
   feel [
redraw: func [face act pos][
 if act = 'draw [replace face/effect/2 'x-color face/user-data]
]
   ]
   with [user-data: 'white]

  across

  r-btn: draw-button [ print "hey, I'm red"] with [user-data: 'red]
  b-btn: draw-button [ print "hey, I'm blue"] with [user-data: 'blue]
  y-btn: draw-button [ print "hey, I'm yellow!"] with [user-data: 'yellow]
  g-btn: draw-button [ print "hey, I'm green!"] with [user-data: 'green]
 ]

 view center-face layout draw-layout


Romano Paolo Tenca (BTW may I call you Romano for short? ) came with this
beauty:

 draw-layout: [
  h2 "Draw buttons"

  style draw-button box 24x24 with [
   effect:  [draw [pen black fill-pen user-data circle 12x12 10]]
  ]

  across

  r-btn: draw-button user-data red[ print "hey, I'm red"]
  b-btn: draw-button user-data blue   [ print "hey, I'm blue"]
  y-btn: draw-button user-data yellow [ print "hey, I'm yellow!"]
  g-btn: draw-button user-data green  [ print "hey, I'm green!"]
 ]

 view center-face layout draw-layout

Quoting Romano the with "magically binds the effect block words to the face
objects words".

I have some questions about this:

Could someone tell me more about this "magic" with ? why is it no more
needed in "user-data red"? why effect is now a set-word! ?

I was asking myself the same questions, when Anton stabbed me in the back
with an even more puzzling code with a "little dialect using the words
facet".


 draw-layout: [
  h2 "Draw buttons"

  style draw-button box 24x24
   effect [draw [pen black fill-pen 0.0.0 circle 12x12 10]]
  with [  words: compose [fill ( func [new args][
new/effect/2/4: second args
next args ] ) ] ]

  across

  r-btn: draw-button fill red[ print "hey, I'm red"]
  b-btn: draw-button fill blue   [ print "hey, I'm blue"]
  y-btn: draw-button fill yellow [ print "hey, I'm yellow!"]
  g-btn: draw-button fill green  [ print "hey, I'm green!"]
 ]

 view center-face layout draw-layout

As it seems to me, words is a face/facet used to define a face behaviour in
the form of a function. In this function, new is the object face, while args
is a block like [fill 255.0.0 [print "hey, I'm red"]]. The "next args" part
is a bit of a puzzle, because it cannot be removed or the face is not
displayed correctly. Its goal seems to return whatever is left to be
processed to finish the face display.

Here again, guru's help and comments will be greatly appreciated.

And BTW, I am very thankful to Anton and Romano for their brilliant
contributions.

Patrick



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: draw has no access to the current face

2002-09-29 Thread pat665

Hi Anton,

I like the dialect thing. I was not aware it was possible to do that. It
opens new way for me.
Thanks.

Patrick
- Original Message -
From: "Anton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 30, 2002 1:19 AM
Subject: [REBOL] Re: draw has no access to the current face


> Here's another way:
>
> view layout [
> style button button
> effect [draw [pen black fill-pen 0.0.0 circle 12x12 10]]
> with [
> append init [
> effect/2/4: color
> color: 120.120.150
> ]
> ]
> button blue "blue"
> button green "green"
> ]
>
> It takes the fill-color from face/color, which is handier to write
> at the end than:
>
> with [user-data: blue]
>
> but, as you can see, the button color behind the circle is
> always going to be 120.120.150
>
> Or perhaps a better way is to make your own little dialect,
> using the words facet:
>
> view layout [
> style button button
> effect [draw [pen black fill-pen 0.0.0 circle 12x12 10]]
> with [
> words: compose [
> fill (func [new args][
> new/effect/2/4: second args
> next args
> ])
> ]
> ]
> button blue fill red
> button green fill black
> ]
>
> (Mmm, on REBOL/View 1.2.1.3.1 21-Jun-2001, the second button's
> circle looks more like a square to me... a bug in draw? All is ok
> in the newer betas.)
>
> Anton.
>
> > Hi List,
> >
> > A problem with the draw dialect used in an effect block. My goal is to
> > display 4 buttons. My first attempt was to use a style.
> >
> > f draw-layout: [
> >   h2 "Draw buttons"
> >
> >   style draw-button box 24x24 effect [draw [pen black fill-pen red
circle
> > 12x12 10]]
> >
> >   across
> >   draw-button [ print "hey, I'm clicked!"]
> >   draw-button [ print "hey, I'm clicked!"]
> >   draw-button [ print "hey, I'm clicked!"]
> >   draw-button [ print "hey, I'm clicked!"]
> >  ]
> >
> >  view center-face layout draw-layout
> >
> > This works! However I want 4 different colors and possibly just one
> > parameterizable style. The idea is to use a unique effect block
> > as a model.
> > The only thing I want to change is the fill-color of the circle.
> > To help the
> > changing, I have put a word in the effect block.
> >
> >  [pen black fill-pen x-color circle 12x12 10]
> >
> > The idea is to replace x-color with the desired color at runtime.
Finally
> > the desired color is stored in the face/user-data .
> >
> >  draw-layout: [
> >   h2 "Draw buttons"
> >
> >   style draw-button box 24x24 effect [
> >draw [pen black fill-pen x-color circle 12x12 10]]
> >feel [
> > redraw: func [face act pos][
> >  if act = 'draw [replace face/effect/2 'x-color face/user-data]
> > ]
> >]
> >with [user-data: 'white]
> >
> >   across
> >
> >   r-btn: draw-button [ print "hey, I'm red"] with [user-data: 'red]
> >   b-btn: draw-button [ print "hey, I'm blue"] with [user-data: 'blue]
> >   y-btn: draw-button [ print "hey, I'm yellow!"] with [user-data:
'yellow]
> >   g-btn: draw-button [ print "hey, I'm green!"] with [user-data: 'green]
> >  ]
> >
> >  view center-face layout draw-layout
> >
> >
> > This works too but there could be a simpler solution. I have
> > tried to use a
> > draw block like that:
> >
> >  [pen black fill-pen face/user-data circle 12x12 10]
> >
> > Unfortunately face/user-data is unknown in this block.
> > Is there a way to access the face object here? That is my question !
> >
> > Patrick
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
>
> 
> Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros
d'économies !
> Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
> + 1 mois de jeu en réseau offert !
> Clique ici : http://www.ifrance.com/_reloc/mail.etudiant



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: draw has no access to the current face

2002-09-29 Thread pat665

Hi Romano,

Great. This is the kind of guru trick I was hoping for. Where did you learn
stuff like that ?
May be somebody in the List can explain the "with" real meaning, when to use
it, etc ?

Patrick
- Original Message -
From: "Romano Paolo Tenca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 29, 2002 10:32 PM
Subject: [REBOL] Re: draw has no access to the current face


> Hi pat,
>
> > The idea is to replace x-color with the desired color at runtime.
Finally
> > the desired color is stored in the face/user-data .
> >
> >  draw-layout: [
> >   h2 "Draw buttons"
> >
> >   style draw-button box 24x24 effect [
> >draw [pen black fill-pen x-color circle 12x12 10]]
>
> [...]
> > Unfortunately face/user-data is unknown in this block.
> > Is there a way to access the face object here? That is my question !
>
> Try:
>
> view layout [
> style draw-button box 24x24 with [
> effect: [draw [pen black fill-pen user-data circle 12x12 10]]
> ]
>  draw-button user-data red
>  draw-button user-data green
> ]
>
> So you magically bind the effect block words to the face object words.
>
> ---
> Ciao
> Romano
>
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: cyclic values

2002-09-29 Thread pat665

Hi Joel

Amazing! When will you write a full book about Rebol ?

Great post! Thanks

Patrick

- Original Message - 
From: "Joel Neely" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 29, 2002 2:52 PM
Subject: [REBOL] Re: cyclic values


> Hi, Pat,
> 
> Ingeneous!!!
> 
> (...of course, with me, there's always a "but"... ;-)
> 
> pat665 wrote:
> > 
> > I want to get values in order from a block, the first value
> > coming again after the last, and this forever. Is there a
> > better way than the one I am using now ?
> > 
> > colors: [red green blue]
> > 
> > ; I want color to be red, then green, then blue, then red
> > ;again forever
> > ; the first value is duplicated
> > 
> > color: first colors
> > append colors color
> > 
> > ; then forever
> > color: select colors color
> > 
> 
> That's a nice compact way to accomplish your stated result,
> but under two constraints:
> 
> 1)  the number of values in the block is very small, and
> 2)  the values are all distinct.
> 
> 
> SMALL NUMBER OF VALUES
> --
> 
> Given REBOL 1-origin indexing, the fastest/simplest way I've
> found for cycling an integer counter through the range of
> values 1..N is
> 
> cnt: 0 ;; initialization
> 
> cnt: cnt // N + 1
> 
> which means we could get your "forever" case above by using
> 
> color: pick colors cnt: cnt // + 1
> 
> The alternative to using the modulus operator is explicit
> logic, as in
> 
> color: pick colors counter:
> either counter < length? colors [counter + 1] [1]
> 
> but that is very sub-optimal...
> 
> In any case, the time complexity of modifying the integer
> index is O(1) -- constant -- while the time complexity of
> SELECT on an ordinary block is O(N) -- linear on the size
> of the block.  A little quick benchmarking shows that this
> adds up very quickly.  On my old slow benchmarking box
> (200 MHz Pentium, w95) the timings are (in microseconds)
> 
>   SELECTmodulusEITHER...
> 3 elements 13.94 14.28  18.73
>10 elements 16.76 14.72  19.33
> 
> (As you can see from the second column, there's still some
> statistical variability...)
> 
> The above times were taken using function evaluations, so
> after removing that overhead, we get the following ratios:
> 
>  SELECT  EITHER...
>vs  vs
> modulus  modulus
> 3 elements0.971.41
>10 elements1.181.41
> 
> With only three elements, the SELECT approach saves 3% over
> the modulus approach, but the EITHER strategy costs 41% extra.
> But with ten elements, SELECT is now 18% slower than modulus,
> while EITHER is still 41% slower.
> 
> CONCLUSION:  The SELECT strategy doesn't scale well.
> 
> 
> DISTINCT VALUES
> ---
> 
> Suppose you wanted to simulate a monitor which was cycling between
> the primary colors (e.g. using your original COLORS data), but went
> off in between each color (e.g. interspersed black displays).  If
> we change our block to contain:
> 
> colors: [red black green black blue black]
> color:  first colors
> 
> and then try
> 
> color: select colors color
> 
> We'll find that we're stuck in a green/black cycle, since the first
> occurrence of black is always the one that's found by SELECT.
> 
> CONCLUSION:  The SELECT strategy doesn't handle cases with values
>  that occur more than once in the block.
> 
> 
> HOWEVER...  With all of the above said, for small blocks with
> distinct values, your approach is quite elegant.  Thanks for
> posting it!
> 
> -jn-
> 
> -- 
> ; Joel Neely joeldotneelyatfedexdotcom
> REBOL [] do [ do func [s] [ foreach [a b] s [prin b] ] sort/skip
> do function [s] [t] [ t: "" foreach [a b] s [repend t [b a]] t ] {
> | e s m!zauafBpcvekexEohthjJakwLrngohOqrlryRnsctdtiub} 2 ]
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
> 



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] draw has no access to the current face

2002-09-29 Thread pat665

Hi List,

A problem with the draw dialect used in an effect block. My goal is to
display 4 buttons. My first attempt was to use a style.

 draw-layout: [
  h2 "Draw buttons"

  style draw-button box 24x24 effect [draw [pen black fill-pen red circle
12x12 10]]

  across
  draw-button [ print "hey, I'm clicked!"]
  draw-button [ print "hey, I'm clicked!"]
  draw-button [ print "hey, I'm clicked!"]
  draw-button [ print "hey, I'm clicked!"]
 ]

 view center-face layout draw-layout

This works! However I want 4 different colors and possibly just one
parameterizable style. The idea is to use a unique effect block as a model.
The only thing I want to change is the fill-color of the circle. To help the
changing, I have put a word in the effect block.

 [pen black fill-pen x-color circle 12x12 10]

The idea is to replace x-color with the desired color at runtime. Finally
the desired color is stored in the face/user-data .

 draw-layout: [
  h2 "Draw buttons"

  style draw-button box 24x24 effect [
   draw [pen black fill-pen x-color circle 12x12 10]]
   feel [
redraw: func [face act pos][
 if act = 'draw [replace face/effect/2 'x-color face/user-data]
]
   ]
   with [user-data: 'white]

  across

  r-btn: draw-button [ print "hey, I'm red"] with [user-data: 'red]
  b-btn: draw-button [ print "hey, I'm blue"] with [user-data: 'blue]
  y-btn: draw-button [ print "hey, I'm yellow!"] with [user-data: 'yellow]
  g-btn: draw-button [ print "hey, I'm green!"] with [user-data: 'green]
 ]

 view center-face layout draw-layout


This works too but there could be a simpler solution. I have tried to use a
draw block like that:

 [pen black fill-pen face/user-data circle 12x12 10]

Unfortunately face/user-data is unknown in this block.
Is there a way to access the face object here? That is my question !

Patrick



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] cyclic values

2002-09-29 Thread pat665

Hi List,

I want to get values in order from a block, the first value coming again
after the last, and this forever. Is there a better way than the one I am
using now ?

colors: [red green blue]

; I want color to be red, then green, then blue, then red again forever
; the first value is duplicated

color: first colors
append colors color

; then forever
color: select colors color

Patrick




Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Parsing comment

2002-09-25 Thread pat665

Hi Ladislav,

Could you explain a bit your code ? especially this line

print: func ['x] [reduce ['print to paren! x]]

Why is it not

print: func ['x] [reduce ['print to-paren x]]

Ciao

Patrick
- Original Message -
From: "Ladislav Mecir" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 25, 2002 3:58 PM
Subject: [REBOL] Re: Parsing comment


> Hi,
>
> I don't understand your post. I am pretty sure, that even
>
> print (a + b)
>
> has no meaning in Rebol without a context supplying additional info.
> Example of an atypical meaning:
>
> use [print a] [
> print: func ['x] [reduce ['print to paren! x]]
> a: func ['x 'y] [compose [a (x) (y)]]
> print (a + b)
> ] ; == [print (a + b)]
>
> Cheers
> -L
>
> - Original Message -
>
> Sent: Wednesday, September 25, 2002 5:23 PM
> Subject: [REBOL] Re: Parsing comment
>
>
>
> > Also,  the  whole idea is that REBOL is dynamic. It couldn't be if
> > there was punctuation. I.e.:
> >
> >print a + b
> >
> > DOES  NOT  have  a  meaning, unless evaluated under some rules and
> > some  context.  When you use syntax to give meaning (as opposed to
> > context),  you  are  imposing  artificial limits. Whether they are
> > useful  or  not,  depends.  I  think  that  the  point of REBOL is
> > simplifying, also by removing some artificial limits.
> >
> > Of course, IMHO.
>
> print a + b
>
> would have meaning if evauation order was right to left or parentheses
were
> used
>
> print (a+b)
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Not good for the rebolution

2002-09-20 Thread pat665

Hi Andrew,

Andrew wrote :

>> if test/2 = 'false [ print "ok" ]

Thanks Andrew but I am not looking for a workaround and furthermore even a
newbie can tell that 'false is not a logic (so this syntax will not come
easily). See the following :

>> test: [false false false]
== [false false false]
>> if not test/2 [print "item 2 is false"]
== none

I am not telling that Rebol is wrong. I am telling that there are some
gotchas, like this one, for which the documentation is not very helpfull.
And in my opinion, the List could find a way to change that.

Patrick

- Original Message -
Sent: Friday, September 20, 2002 10:36 AM


>   id <20020920082300.ULMT21398.mta2-rme.xtra.co.nz@Garfield>
>   for <[EMAIL PROTECTED]>; Fri, 20 Sep 2002 20:23:00 +1200
> Message-ID: <000d01c2607e$ef00ad60$926036d2@Garfield>
> From: "Andrew Martin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> References: <002501c2606f$d8f66d20$3801a8c0@postepph>
> Subject: [REBOL] Re: change/at
> Date: Fri, 20 Sep 2002 20:23:00 +1200
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="Windows-1252"
> Content-Transfer-Encoding: 7bit
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook Express 6.00.2800.1106
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
> X-archive-position: 23251
> X-listar-version: Listar v0.129a
> Sender: [EMAIL PROTECTED]
> Errors-to: [EMAIL PROTECTED]
> X-original-sender: [EMAIL PROTECTED]
> Precedence: bulk
> Reply-to: [EMAIL PROTECTED]
> X-list: rebol
>
> > Imagine the effect of such a test on a newbie:
> >
> > >> test: [false false false]
> > == [false false false]
> > >> if test/2 = false [ print "ok" ]
> > == none
> > >> test/2
> > == false
> >
> > It's not good for the Rebolution !
>
>
> >> test: [false false false]
> == [false false false]
> >> if test/2 = 'false [ print "ok" ]
> ok
> >> test/2
> == false
>
> >> test: [foo foo foo]
> == [foo foo foo]
> >> if test/2 = 'foo [ print "ok" ]
> ok
> >> test/2
> == foo
>
> Andrew Martin
> ICQ: 26227169 http://valley.150m.com/
> -><-
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: change/at

2002-09-20 Thread pat665

Hi List,

Gregg said

>> to me, there doesn't seem to be any benefit to adding an /AT refinement
to CHANGE.
>>change at test i true
>>vs.
>>change/at test i true
>>--Gregg

I see an important difference. What a newbie will do is to try "help change"
at the console. Change being the function that "Changes a value in a series
and returns the series after the change.", it seems logical to search the
answer here.

Here again, it's not good for the rebolution !


USAGE:
CHANGE series value /part range /only /dup count

DESCRIPTION:
 Changes a value in a series and returns the series after the change.
 CHANGE is an action value.

ARGUMENTS:
 series -- Series at point to change (Type: series port)
 value -- The new value (Type: any-type)

REFINEMENTS:
 /part -- Limits the amount to change to a given length or position.
 range -- (Type: number series port)
 /only -- Changes a series as a series.
 /dup -- Duplicates the change a specified number of times.
 count -- (Type: number)


Patrick




Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: change/at

2002-09-20 Thread pat665

Hi List

Many thanks Joel and Gabriele for your very understandable replies. I think
the Core manual should emphasize more on these kinds of thing. As many, I
suppose I am used to test code on the console while using a text processor.
Imagine the effect of such a test on a newbie:

>> test: [false false false]
== [false false false]
>> if test/2 = false [ print "ok" ]
== none
>> test/2
== false

It's not good for the Rebolution !

May be Rebol has not yet the right documentation system. I am thinking of a
kind of collaborative manual, based for example on the Core.pdf, but
annotated by the List.


Patrick



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: French Rebolution 2002

2002-09-19 Thread pat665

Hi Frenchies, and others

Ne tirez plus, je me rend ! Nous nous sommes d'ailleurs mal compris ...

I too do not think Rebol is a toy, but it is seen like this by many french
person I know.

Patrick

- Original Message -
From: "Brice Muangkhot" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 5:23 PM
Subject: [REBOL] Re: French Rebolution 2002


Arnaud,

So am I.. If Rebol is a toy, it is a great toy. Terrific; I can work by
playing
with Rebol ;-)).
Seriously, I hope to do something great with Rebol. I was a Java fan, then
C#.
I think the learning curve with Rebol is the best..

Rebol is young but  has a great potential.
Graphic components ( Treeview, Tabs, etc..) should be added to make
application
sexy. Rebol should also provide the way to interface with legacy application
easily.  I know that Rebol is good with XML may be it can go futher:( by
providing database access other than MySql and Oracle, Message Queing,
Worklow,
etc.

Cheers,


Brice

 --- Arnaud Dutartre <[EMAIL PROTECTED]> a écrit : > I am
french
... I discovered REBOL with Login Mag and I think it is not a
> toy ...
> It is great. Actually I try to make PGM converter, I have a beta version
and
> compared with the same application in Java or C++, Rebol is faster to
> develop with ...
>
> Arno:)
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> pat665
> Sent: jeudi 19 septembre 2002 16:30
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Re: French Rebolution 2002
>
>
> Hi Jason,
>
> Nice translation (nothing to say). By the way, I am not as enthousiastic
as
> Olivier regarding the French Rebolution. I think Rebol is almost unknown
in
> France, and the few who do know it, sees it merely as a cute toy.
>
> Patrick
>
> - Original Message -
> From: "Jason Cunliffe" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 19, 2002 7:25 AM
> Subject: [REBOL] French Rebolution 2002
>
>
> Greetings
>
> I just got some encouraging REBOL news from Olivier Auverlot, author of
the
> French REBOL Programming book, host of http://rebolfrance.org/,
Rebol/Magic!
> developer and more.
>
> I asked him about the growth of REBOL in France. The catalyst was the
> arrival on
> newsstands in France of the much loved and respected LOGIN magazine: Issue
> #14 -
> a special edition dedicated to REBOL.
>
> Following is my translation of Olivier's email. I hope it got it right.
> Francophones please correct me if you can. I hope to get a copy of the
> magazine
> and very curious to learn more about REBOL uptake in French universities
and
> research labs.
>
> ./Jason
>
===
>
> "The magazine has attracted pretty growth for the newsletter (at least a
100
> new
> subscribers). Messages posted on LOGIN's forum (www.loginmag.com) have
been
> read
> by approx. 800 people, (compared to 600 for the special edition dedicated
to
> security). On other French language forums, I have met with some
> "aggressive"
> behavior regarding Rebol :-(
> Too bad ! That shows the subject of REBOL rankles, and is becoming better
> and
> better known. Not withstanding, I have learnt that sales of my book have
> picked
> up (69 copies in 10 days).
>
> French [REBOL] projects are many, and often of very high quality (Jabber
> client,
> managing medical datafiles, MySQL and PostGreSQL drivers, Magic!, SNMP
> protocol,
> etc.). In France, the situation is cool for Rebol !!!
>
> Do you know that Rebol is taught and used in several universities and
> research
> labs  (there's an article in LOGIN's Rebol Special Edition about that).
>
> {-- I asked him to clarify what sort of aggressive behavior he had seen
> towards
> Rebol--}
>
> PHP or Java programmers try to show their language is better (with more or
> less
> bad faith). Most of the time they don't even know the subject [Rebol]. On
a
> French Linux Forum, a post about Rebol was even refused because it
> considered to
> be "spam and nothing to do with Linux" (!?!).
>
> All this is very positive.
> The important thing is people are discussing Rebol.
> I am going to do my best, and as quickly as possible, for LOGIN
>
> -Olivier
>
>
> > Le magazine a attiré pas mal de nouveau sur la lettre d'information (une
> > bonne cinquantaine de nouveaux abonnés). Sur le forum de login
> > (www.loginmag.com), les messages postés ont été lus par environ 800
> > personnes (contre 600 pour le HS précédent consacré à la sécurité). Sur
> > différents forum francophon

[REBOL] Re: change/at

2002-09-19 Thread pat665

Hi List,

I have been "unsubscribed" from the list for a couple of days. Therefore I
have not been able to see the replies to my "change/at" post.

The original problem was to change false to true for the ith position in a
block ( [ false false
false ] becoming [ false true false ]

Romano and Gabriele suggested poke, which I had obviously missed.
Joel Neely's answer was interesting and pointed to another gotcha


 >> test: [[0] [0] [0]]== [[0] [0] [0]]
 >> i: 2   == 2
 >> test/:i/1: 1   == [1]

>> neither of the expressions
>>test: [false false false]
>> nor
>>test: [[false][false][false]]
>> contain LOGIC! values ;-)

Isn't odd ? Because I needed logic! values. I found out that the correct way
to do it was

 test: reduce [false false false]

How come it is so ? I frankly do not understand !

Ciao, Patrick



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: French Rebolution 2002

2002-09-19 Thread pat665

Hi Jason,

Nice translation (nothing to say). By the way, I am not as enthousiastic as
Olivier regarding the French Rebolution. I think Rebol is almost unknown in
France, and the few who do know it, sees it merely as a cute toy.

Patrick

- Original Message -
From: "Jason Cunliffe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 19, 2002 7:25 AM
Subject: [REBOL] French Rebolution 2002


Greetings

I just got some encouraging REBOL news from Olivier Auverlot, author of the
French REBOL Programming book, host of http://rebolfrance.org/, Rebol/Magic!
developer and more.

I asked him about the growth of REBOL in France. The catalyst was the
arrival on
newsstands in France of the much loved and respected LOGIN magazine: Issue
#14 -
a special edition dedicated to REBOL.

Following is my translation of Olivier's email. I hope it got it right.
Francophones please correct me if you can. I hope to get a copy of the
magazine
and very curious to learn more about REBOL uptake in French universities and
research labs.

./Jason
===

"The magazine has attracted pretty growth for the newsletter (at least a 100
new
subscribers). Messages posted on LOGIN's forum (www.loginmag.com) have been
read
by approx. 800 people, (compared to 600 for the special edition dedicated to
security). On other French language forums, I have met with some
"aggressive"
behavior regarding Rebol :-(
Too bad ! That shows the subject of REBOL rankles, and is becoming better
and
better known. Not withstanding, I have learnt that sales of my book have
picked
up (69 copies in 10 days).

French [REBOL] projects are many, and often of very high quality (Jabber
client,
managing medical datafiles, MySQL and PostGreSQL drivers, Magic!, SNMP
protocol,
etc.). In France, the situation is cool for Rebol !!!

Do you know that Rebol is taught and used in several universities and
research
labs  (there's an article in LOGIN's Rebol Special Edition about that).

{-- I asked him to clarify what sort of aggressive behavior he had seen
towards
Rebol--}

PHP or Java programmers try to show their language is better (with more or
less
bad faith). Most of the time they don't even know the subject [Rebol]. On a
French Linux Forum, a post about Rebol was even refused because it
considered to
be "spam and nothing to do with Linux" (!?!).

All this is very positive.
The important thing is people are discussing Rebol.
I am going to do my best, and as quickly as possible, for LOGIN

-Olivier


> Le magazine a attiré pas mal de nouveau sur la lettre d'information (une
> bonne cinquantaine de nouveaux abonnés). Sur le forum de login
> (www.loginmag.com), les messages postés ont été lus par environ 800
> personnes (contre 600 pour le HS précédent consacré à la sécurité). Sur
> différents forum francophones, on m'a rapporté des comportements
"agressifs"
> vis à vis de Rebol :-( Tant mieux ! Cela démontre que le sujet dérange et
> devient de plus en plus connu. Sinon, j'ai appris que les ventes de mon
> bouquin avait redécollées (69 exemplaires en 10 jours).
>
> Les projets francophones sont nombreux et très souvent de très bonne
qualité
> (client Jabber, gestion de dossiers médicaux, protocoles MySQL et
> PostgresSQL, Magic!, protocole SNMP, etc.). En France, la situation est
> plutôt cool pour Rebol !!! Savez-tu que Rebol est utilisé et enseigné dans
> quelques universités et dans des laboratoires de recherche (il y a un
> article dans le HS Login sur le sujet).

> Des programmeurs PHP ou Java tentent de démontrer que
> leur langage est meilleur (avec plus ou moins de mauvaise foi). La plupart
> du temps, ils ne connaissent même pas le sujet. Sur un forum Linux
français,
> un message sur Rebol a été refusé car considéré comme étant un "spam sans
> rapport avec Linux" (!?!).
>
> Tout cela est très positif. L'important, c'est qu'on parle de Rebol.
>
> Je vais faire de mon mieux et le plus vite possible pour le Login.
>
> - Olivier

--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.




Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] change/at

2002-09-18 Thread pat665

Hi List,

I think I fall in a very common gotcha. The starting point was:

test: [ false false false ]
i: 2

I wanted to change false to true for the ith position ( [ false false
false ] becoming [ false true false ] ).
My first attemp was:

test/:i: true

The result was

** Syntax Error: Invalid word -- :i:
** Near: (line 1) test/:i: true

I ran thru my Core.pdf, reading every line with a path word inside. I
failed. I was tired. I gave up. Isn't it too bad ?

Now I have found a solution

change at test i true

Does anyone know a better answer ?
Wouldn't it be nice to have a /at refinement for change, giving a more
intuitive (in my eyes) ?

change/at test i true

Patrick



Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies !
Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot
+ 1 mois de jeu en réseau offert ! 
Clique ici : http://www.ifrance.com/_reloc/mail.etudiant 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Download a whole website

2002-08-13 Thread pat665

Hi

I have tested it and it worked fine for me.

One suggestion. May be it could prompt before going one level up.

Patrick

- Original Message -
From: "RebOldes" <[EMAIL PROTECTED]>
To: "RebOldes" <[EMAIL PROTECTED]>
Sent: Monday, August 12, 2002 11:52 PM
Subject: [REBOL] Re: Download a whole website


> Hello Rebol-list,
>   it's not perfect yet, but a lot of fixes:
>
>   do load-thru/update http://oldes.multimedia.cz/utils/reb-web-bot.r
>
>   to download all Internet :(because I have no limits so it will
>   be downloading and downloading until you fill your drive or stop
>   IT:)
>
> --
> >>do [send to-email join 'oliva [EMAIL PROTECTED] "BESsssT REgArrrD,
RebOldes"]
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>


__
Pour mieux recevoir vos emails, utilisez un PC plus performant !
Découvrez la nouvelle gamme DELL en exclusivité sur i (france)
http://www.ifrance.com/_reloc/signedell

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] view bug or bad coding?

2002-08-04 Thread pat665

Hi rebollers,

View bug or bad coding?

Since the bêta VIEW was released, I have a piece of code that crashes. Here
is a very simplified version.
Could you test this code and tell me how it works for you ?
Any idea of the origin of the problem ?

The following line is responsable for the problem:

 bitmap: make image! none

As is, the code will crash. Commented, it is ok.

The error is :

VIEW1207031 a causé une défaillance de page dans
 le module VIEW1207031.EXE à 017f:00443ee3.
Registres :
EAX= CS=017f EIP=00443ee3 EFLGS=00010246
EBX=0001 SS=0187 ESP=006bed78 EBP=00c3ed90
ECX=001e DS=0187 ESI=00e7cabc FS=0f9f
EDX= ES=0187 EDI=00e79814 GS=
Octets à CS : EIP :
08 58 0d 8b 46 04 08 58 0d ff 4c 24 14 83 c6 10
État de la pile :
00c3ed90 00e797f4 00e74188 0001 00443edc 0002 001d 00c3ed90
00e796d4 00e61c58 0001 00443edc 0002 001c 00c3ed90 00e79714


Patrick


8< - - - - - - - - - - - - - - - - - - - - - - - - - -
Rebol []

tl-critere: ["1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14"
"15" "16"]

obj: make object! [
 c: array 16
;-- :(  uncommenting -> crash ! ! !
 bitmap: make image! none

 layout1: layout [
  style mytext text 100x18 right
  style mycheck check 18x18

  vignette: box 256x320 yellow

  below
  guide

  mytext tl-critere/1
  mytext tl-critere/2
  mytext tl-critere/3
  mytext tl-critere/4

  return

  c1: mycheck
  c2: mycheck
  c3: mycheck
  c4: mycheck

  do [ c/1: c1 c/2: c2 c/3: c3 c/4: c4 ]

  return

  do [ print "layout 4.01"] ; debug

  mytext tl-critere/5
  mytext tl-critere/6

  return
  button "That's all folks !" [unview]
  do [ print "layout 4.02"] ; debug
 ]
]

view center-face obj/layout1

8< - - - - - - - - - - - - - - - - - - - - - - - - - -



 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Rugby

2002-07-02 Thread pat665

Hi Ammon

It seems indeed that your rugby is a bit old. You can find rugby at
http://www.rebolforces.com/~erebol/

Patrick

- Original Message -
From: "Ammon Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 01, 2002 9:15 AM
Subject: [REBOL] Re: Rugby


>
> Hi,
>
> Doesn't work on the same machine with port 8002, looking at the source I
> thought that I saw something about 8001 so I tried that one, but got a
> network timeout. ;-(  (I just tried "? serve" at the console to discover
that
> it is in fact using 8001, so why the timeout?)   I am using rugby4 from
the
> script library.  Where do I go to get the latest and greatest?
>
> Thanks!!
> Ammon
>
>
> On Friday 28 June 2002 08:57 pm, you wrote:
> > Hi
> >
> > I have re-run my tutorial quickly to ckeck for any mistake. It seems OK
and
> > runs fine for me between two Windows 98 machine.
> >
> > I think you have a problem on the server side. It is as if you were not
> > using the port 8002, because I got the same error (almost) when  I
change
> > 8002 for 8001.
> >
> > - For my tutorial, I have used rugby, version: 4.3.0. Check your
version.
> > Inspect the source looking for 8002.
> > - You can try to use another port with something like serve/with
> > tcp://:9005 on the server side and do get-rugby-service
> > http://192.168.1.51:9005 on the client side.
> > - You may try to test the tutorial on the same machine with two rebol
> > console. For that, you can use both your IP address  or 127.0.0.1 (which
is
> > localhost).
> >
> > HTH
> >
> > Patrick
> >
> > - Original Message -
> > From: "Ammon Johnson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, June 28, 2002 10:34 AM
> > Subject: [REBOL] Rugby
> >
> > > Hi,
> > >
> > > One more user attempts to walk into the rugby fold, but gets knowcked
> > > down
> >
> > at
> >
> > > the door. ;-)  I have tried to use pat665's tutorial but I meet the
> >
> > following
> >
> > > problem from the "client" machine:
> > > >> do get-rugby-service http://172.30.8.11:8002
> > >
> > > ** Access Error: Cannot connect to 172.30.8.11
> > > ** Where: open-proto
> > > ** Near: open/no-wait/direct dest
> > > write-msg msg dest
> > >
> > > The server happens to be a Windows 2K Advanced Server, and it *IS* at
> > > 172.30.8.11 and I can ping it from the client machine. I have tried
from
> >
> > both
> >
> > > a linux box and a windoze box with the same error from both.  My
target
> > > application is a to have a rugby client running on a linux box access
the
> > > windoze server previously mentioned.
> > >
> > > Your help is greatly appreciated!!
> > > Ammon
> > >
> > >
> > > --
> > > To unsubscribe from this list, please send an email to
> > > [EMAIL PROTECTED] with "unsubscribe" in the
> > > subject, without the quotes.
> >
> >
___
> >___ ifrance.com, l'email gratuit le plus complet de l'Internet !
> > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
> > http://www.ifrance.com/_reloc/email.emailif
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Rugby

2002-06-29 Thread pat665

Hi

I have re-run my tutorial quickly to ckeck for any mistake. It seems OK and
runs fine for me between two Windows 98 machine.

I think you have a problem on the server side. It is as if you were not
using the port 8002, because I got the same error (almost) when  I change
8002 for 8001.

- For my tutorial, I have used rugby, version: 4.3.0. Check your version.
Inspect the source looking for 8002.
- You can try to use another port with something like serve/with tcp://:9005
on the server side and do get-rugby-service http://192.168.1.51:9005 on the
client side.
- You may try to test the tutorial on the same machine with two rebol
console. For that, you can use both your IP address  or 127.0.0.1 (which is
localhost).

HTH

Patrick

- Original Message -
From: "Ammon Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 28, 2002 10:34 AM
Subject: [REBOL] Rugby


> Hi,
>
> One more user attempts to walk into the rugby fold, but gets knowcked down
at
> the door. ;-)  I have tried to use pat665's tutorial but I meet the
following
> problem from the "client" machine:
>
> >> do get-rugby-service http://172.30.8.11:8002
> ** Access Error: Cannot connect to 172.30.8.11
> ** Where: open-proto
> ** Near: open/no-wait/direct dest
> write-msg msg dest
>
> The server happens to be a Windows 2K Advanced Server, and it *IS* at
> 172.30.8.11 and I can ping it from the client machine. I have tried from
both
> a linux box and a windoze box with the same error from both.  My target
> application is a to have a rugby client running on a linux box access the
> windoze server previously mentioned.
>
> Your help is greatly appreciated!!
> Ammon
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: news from my new life with linux

2002-06-16 Thread pat665

Hi Chris,

My minimal X-Windows is ICEWM. When you install Mandrake 8.2 with no pachage
selected, you are prompt to install Linux with "minimal-X". That's what I
chose.

My video card is a 4 Mo Matrox Mystic. Pretty old stuff, I know, but it is
fine for Windows 98.

Since my first message, I have tried to launch rebol only with XTerm. I have
changed my linux to boot on console mode where I can launch xinit for
starting a bare-bone-X-windows-system. In that case, launching view just
displays a big white box on the screen.

It is a pity I will have to use VI to edit rebol code !
And again the very same machine can run decently Rebol - Outlokk Express -
The Rebol Core PDF beeing open in the background AT THE SAME TIME !

Patrick

- Original Message -
From: "Chris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 15, 2002 9:40 PM
Subject: [REBOL] Re: news for my new life with linux


> On 15-Jun-02, pat665 wrote:
>
>
> > PS: I am using Mandrake 8.2 with minimal X-Windows (no KDE, no Gnome) on
a
> > dual boot linux/98 Pentium 200 with 64 Mo RAM).
>
> Define "minimal X-Windows" - which window manager are you using? Blackbox,
> Ice, Enlightenment? And what is your graphics card - if you are using any
> NVidia chipset based cards you need to download and install the kernel
> module off nvidia.com to get any form of acceleration (the
> reverse-engineered nvidia driver is deathly slow). If it isn't an NVidia
> card, check that your card is properly recognised and that you aren't
> running in a famebuffer.
>
> Chris
> --
>  .--{ http://www.starforge.co.uk }-. .---.
> =[ Explorer2260, Designer and Coder \=\ P: TexMaker, ROACH, site
\
> =[___You_will_obey_your_corporate_masters___]==[ Stack:
EETmTmTRRSS--- ]
> May your Tongue stick to the Roof of your Mouth with the Force of a
> Thousand Caramels.
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: news for my new life with linux

2002-06-16 Thread pat665

Hi joanna,

>> I would recommend increasing to 128MB..

I know but my Dell Dimension XPS can't take more than 64 Mo, and again Win98
is fine with that.

Patrick

- Original Message -
From: "Joanna Kurki" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 15, 2002 8:19 PM
Subject: [REBOL] Re: news for my new life with linux


> At 18:57 15.6.2002 +0200, you wrote:
> >Hi rebollers
> >
> >Here are some news from my new life with linux and rebol.
> >
> >Good news :
> >- I like doing mysql with DocKimbel mysql-protocol.
> >- It's ok with CGI too.
> >
> >Bad news:
> >- Oh My God, Rebol is so slow with linux. Especially the Desktop Editor,
it
> >is almost U-N-U-S-A-B-L-E ! I have to go back to Windows 98 to edit my
> >script.
> >
> >How come that on the same machine (I have a dual boot) the editor is so
slow
> >under linux ?
> >Was all the "linux is a full-32-bytes system and so on ..." only
bullshit?
>
> Nope. LInux kernel itself is very efficient and runs all services faster
> than Win98 (ok, things like 3D-GFX might be slower, but networking, files
> etc are definitely faster), besides it keeps on runing stable months
> without need for reboots ...
>
> I suspect this is more problem on Rebol. I have not seen different
versions
> of Rebol tested for speed, but I assume there is some nonoptimal code
> inside Rebol causing slowdown on Linux.
>
>
> >Patrick
> >
> >PS: I am using Mandrake 8.2 with minimal X-Windows (no KDE, no Gnome) on
a
> >dual boot linux/98 Pentium 200 with 64 Mo RAM).
>
> Check amount of free memory .. If you Linux goes to Swap, it slows down
> considerably. It should not, but some Xwindow configurations may cause too
> much memory usage.. I would recommend increasing to 128MB..  Also some
> GFX-cards are not so well supported on Linux,... might be worth checking..
>
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] news for my new life with linux

2002-06-15 Thread pat665

Hi rebollers

Here are some news from my new life with linux and rebol.

Good news :
- I like doing mysql with DocKimbel mysql-protocol.
- It's ok with CGI too.

Bad news:
- Oh My God, Rebol is so slow with linux. Especially the Desktop Editor, it
is almost U-N-U-S-A-B-L-E ! I have to go back to Windows 98 to edit my
script.

How come that on the same machine (I have a dual boot) the editor is so slow
under linux ?
Was all the "linux is a full-32-bytes system and so on ..." only bullshit?

Patrick

PS: I am using Mandrake 8.2 with minimal X-Windows (no KDE, no Gnome) on a
dual boot linux/98 Pentium 200 with 64 Mo RAM).

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Linux CGI problem

2002-06-02 Thread pat665

Hi rebollers,

I am trying to run a very simple CGI script with Apache 1.3.23 under Linux.

1. This script starts with the following two lines

#!/home/pat665/core/rebol -cs
rebol []

2. The script is called from 192.168.1.52 under IE (Windows machine) with
http://192.168.1.51/cgi-bin/cgi-hw.cgi

3. Inside the browser, I got only one word for response

REBOL

4. Using proxy.r with debug-all set to true, I am able to see what I am
getting from Apache.

{HTTP/1.1 200 OK^M
Date: Sun, 02 Jun 2002 21:31:02 GMT^M
Server: Apache-AdvancedExtranetServer/1.3.23 (Mandrake Linux/4mdk)^M
The command line usage is: ^M
Connection: close^M
Content-Type: text/plain^M
^M
^-REBOL  

[REBOL] End/Home key in console mode (Linux)

2002-06-02 Thread pat665

Hi,

A small but annoying problem in console mode under Linux (Mandrake 8.2). I
am in the View console.

- the End key do not work, it displays [8~
- the Home key do not work, it displays [7~

Both keys are working correctly inside the Rebol editor.

I am using a french keyboard.

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Rebol & Linux

2002-06-02 Thread pat665

Hi rebollers,

I am just curious what system is used by the rebol community. I was a
Windows guy, and I am "starting a new life" with Linux.

So which is yours ?

Patrick

PS: Some will notice that this message is send from Windows because I am
still fighting with PPP but I hope to read yours answers from Linux.

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: view-linux

2002-06-02 Thread pat665

Hi Adrian,

Yes my problem is fixed. I have re-installed both Linux and Rebol and the
problem is gone. I think my *BIG* mistake was to install Rebol as a root
which is a typical newbie mistake.

Patrick

- Original Message -
From: "Adrian" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 02, 2002 7:38 AM
Subject: [REBOL] Re: view-linux


Did you solve your problem ? With a little more info I can probably help
you.
- Original Message -
From: "pat665" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 25, 2002 3:32 AM
Subject: [REBOL] view-linux


> Hi,
>
> I am trying to run View on Linux and I am an absolute newbie with Linux. I
> have installed View in my /home directory as root. My problem is that I am
> only able to run View as root.
>
> root # ./rebol <= works fine
>
> pat665 $ ./rebol <= starts something but stops with a message "cannot find
> startx"
>
> Any help, any link to usefull doc would be greatly appreciated
>
> Patrick
>
>
>

__
> ifrance.com, l'email gratuit le plus complet de l'Internet !
> vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
> http://www.ifrance.com/_reloc/email.emailif
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>



--
Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f

Sponsor:
Email.it Free (Internet) Access
Prova il Nuovo Numero Unico valido per tutta Italia a tariffa locale!!!
Email.it Free Access, dai più qualità alla tua navigazione
Clicca qui: http://adv2.email.it/cgi-bin/foclick.cgi?mid=441&d=2-6
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] view-linux

2002-05-28 Thread pat665

Hi,

I am trying to run View on Linux and I am an absolute newbie with Linux. I
have installed View in my /home directory as root. My problem is that I am
only able to run View as root.

root # ./rebol <= works fine

pat665 $ ./rebol <= starts something but stops with a message "cannot find
startx"

Any help, any link to usefull doc would be greatly appreciated

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Missing the list

2002-05-28 Thread pat665

Hi,

I am getting nothing from the list for 2 days. Is there a problem?

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: make-doc-pro: Version 1.0.3 beta available

2002-05-12 Thread pat665

Hi Robert,

RM>At least the actual version I have is checking this. I have updated my
Rebsite to this version.

Yes, the underline problem is fixed.

RM>Any incompatibilities found? [with makespec]

Nop.

RM>> Yes, any idea how to do it? Robert [about css styles]

The CSS style are already stored in a bloc named 'stylesheets. My suggestion
would be to allow using other blocks. For example, a makespec-style block, a
old-make-doc-pro-style block (I liked the old yellow \note style).

BTW Thank you for making Make-doc-pro. I am using it all the time. Even when
experimenting with Rebol, I wanted to keep a trace of what I am doing
("verba volant, scripta manent"). MDP is the easiest way I know to make good
HTML page.

Patrick

- Original Message -
From: "Robert M. Muench" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 12, 2002 4:14 PM
Subject: [REBOL] Re: make-doc-pro: Version 1.0.3 beta available


> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> > pat665
> > Sent: Sunday, May 12, 2002 3:17 PM
> > To: [EMAIL PROTECTED]
> > Subject: [REBOL] Re: make-doc-pro: Version 1.0.3 beta available
>
> > I tested MDP 1.03 with Rebol 2.5.2. I noticed that HTML code, either
> > expressed directly or in a rebol source (in a print statement for
example)
> > are interpreted. This could be usefull sometimes, but in my case it
destroys
> > the document.
>
> Hi, well I think I have to escape the < and > chars... oh BTW: There are
all
> kind of special chars that need to be escaped. Anyone written a function
for
> this? IIRC Allen wrote one some time ago. I put it into my bug-reporter.
>
> > ---Suggestion
> > A line cannot start with a word in *bold* because *boldness* is
indicated
> > with the * character. *This* word was supposed to be bold.
>
> I know, haven't done it yet. Within one of the next releases for 1.0.3.
>
> > ---Suggestion
> > Value including several _ characters are not expressed correctly, for
> > example HKEY_LOCAL_MACHINE from the Windows registry, because the _
> > character is used for underlining text.
>
> Should not happen, as the rule is that the second markup char must be
followed
> by a space. At least the actual version I have is checking this. I have
updated
> my Rebsite to this version.
>
> > ---Suggestion
> > Full compatibility with makespec.
>
> Yes, no problem. Any incompatibilities found?
>
> > ---Suggestion
> > Full parameterization of css style.
>
> Yes, any idea how to do it? Robert
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: make-doc-pro: Version 1.0.3 beta available

2002-05-12 Thread pat665

Hi Robert,

I tested MDP 1.03 with Rebol 2.5.2. I noticed that HTML code, either
expressed directly or in a rebol source (in a print statement for example)
are interpreted. This could be usefull sometimes, but in my case it destroys
the document.
This is a little text that I have used for testing. It gives some example of
the HTML problem. There are some other points and suggestions too.

8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Testing MDP 1.0.3
 author: Patrick Philipot
 date: 12-may-2002

=toc

===CGI with Rebol !
The first line is for Apache. It tells the web server where to find
rebol.exe. It will be ignored if you are using PWS.

---The program
Type and save this program as _cgi-hw.r_ in the cgi-bin directory of your
web server.

 #!d:/rebview/rebol.exe --cgi
 REBOL []

 print "Content-Type: text/html^/^/"

 print [
  
  "Hello CGI-World!"
  
 ]

---Testing with a browser
The testing must be done with a browser by typing the following URL:

 http://localhost/cgi-bin/cgi-hw.r

\note Content-Type Gotcha !
#Notice that there are two newline ("^/^/").
/note

---Getting data from an HTML form (GET method)
Here is the _hello-you-get.html_ page :

 
"Hello You: GET method" 
   http://localhost/cgi-bin/cgi-hy.r";>
Name? 


   
  

===Suggestions
---Suggestion
A line cannot start with a word in *bold* because *boldness* is indicated
with the * character.
*This* word was supposed to be bold.

---Suggestion
Value including several _ characters are not expressed correctly, for
example HKEY_LOCAL_MACHINE from the Windows registry, because the _
character is used for underlining text.

---Suggestion
Full compatibility with makespec.

---Suggestion
Full parameterization of css style.
8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 - - - - - - - - - - - - - - - - - - - - - - - - - - - -


Patrick


- Original Message -
From: "Robert M. Muench" <[EMAIL PROTECTED]>
To: "Rebollist" <[EMAIL PROTECTED]>
Sent: Saturday, May 11, 2002 4:13 PM
Subject: [REBOL] make-doc-pro: Version 1.0.3 beta available


> Hi, as I promised to some of you a new version of make-doc-pro for the
last
> weekend (or the weekend before that) but failed to do so you will get it
on this
> weekend. It's more a beta release this time and you can only get it
through my
> Reb site (remember to reload the file).
>
> Why a beta release you ask? That's quite simple. I have rewritten
make-doc-pro
> from scratch, mainly the parser and the emitter parts are now much cleaner
and
> better to maintain. Further the code is a lot smaller ;-) about 600 lines
of
> code.
>
> The current version has mostly everything for markup. The options, =image
etc.
> stuff is currently missing, no indention done yet. etc. But you can write
all
> the texts and it can now handle words like b*tree ;-)) without a problem.
Oh,
> and it's mostly makespec, makedoc compatible now by handling explicit
> line-breaks in text paragraphs correctly. This should make it possible to
> convert all source-documents from RT.
>
> Have a look at it and let me know what you think. The gaps will be closed
in the
> next days. Robert
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Graph Drawing & /View Performance

2002-05-12 Thread pat665

Hi Etienne

EA> I thought this View version was a beta release ...

Yes it is but it seems logical that the changes are there forever and not to
be removed. Therefore programs have to be adapted. As I said previously, I
am using a "simplified" version of your aqua-blue skin. Mainly just buttons,
backdrop, and text.

EA>An other thing : if your script runs well on the new version, it will
EA>run well on the previous one (I test this everyday).

My situation is different, since I am using 2.5.2, almost all my programs
are ugly :
- buttons have squared corners. It seems to be a transparency problem.I have
tried little things with the key effect with no results.
- backdrop-norm are wrongly displayed on the left border. It seems that they
are displayed twice. On time rightly then again with a small shift to the
right.

EA>What can I share ... ?
If you solve the problems described above, your code will be appreciated.
You could make it available for the list or email it to me privately.

Patrick
- Original Message -
From: "Etienne ALAURENT" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 12, 2002 3:14 AM
Subject: [REBOL] Re: Graph Drawing & /View Performance


Hi, Pat,

I thought this View version was a beta release ...

What can I share ... ?

I can say I discovered two new widgets : drop-down and scroller (witch
derives from slider + 2 arrow buttons). The slider's code and feel are
not the same as in the previous version. If you used a derived widget,
it could not run now.

The transparency is hard to understand without doc. The first difference
I saw between the 2 versions is that to make a face transparent you must
set its 'color to none. I noticed in View 1.2.1 it was not obligatory.

An other thing : if your script runs well on the new version, it will
run well on the previous one (I test this everyday).

I didn't notice other thing particular.

pat665 wrote:

>Hi Etienne,
>
>I see your point however the View 2.5.2 is released now. May be you could
>share what you have learned about the new view with the list ?
>
>Patrick
>- Original Message -
>From: "Etienne ALAURENT" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, May 10, 2002 5:18 PM
>Subject: [REBOL] Re: Graph Drawing & /View Performance
>
>
>Hi, Patrick,
>
>I know these problems.
>I think the new View engine is the same as the Link one.
>So, I made many changes for Link, and it seems to be ok. But I want to
>test it before publishing it.
> So, as soon as the official View version is online, I'll put the new
>skins version online too.
>
>pat665 wrote:
>
>>Hi Etienne,
>>
>>I have been using a simplified version of your aquae-blue skin for a
while.
>>Are-you aware that it doesn't work properly with the 2.5.2 bêta? Backdrops
>>are not correctly displayed, buttons are squared ?
>>
>>Patrick
>>
>
>--
>regards.
>
>---
>Etienne
>---
>
>
>
>
>--
>To unsubscribe from this list, please send an email to
>[EMAIL PROTECTED] with "unsubscribe" in the
>subject, without the quotes.
>
>
>
>___
___
>ifrance.com, l'email gratuit le plus complet de l'Internet !
>vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
>http://www.ifrance.com/_reloc/email.emailif
>
>

--
regards.

---
Etienne
---



--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] RT feedback

2002-05-12 Thread pat665

Hi rebollers

Just curious if someone gets any feedback from RT feedback about the beta
2.5.2. In the past, they used to send a ticket for acknowledgment. I have
reported 4 problems and received nothing. It is hard to know if they got
them or not.

Since I am using 2.5.2, things are not easy :

- my main program crashes
- almost all my other programs look terrible because they are using the
aqua-skin
- make-doc-pro was DOA, but this problem has been fixed.

However I am very happy to see Rebol evolving

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Graph Drawing & /View Performance

2002-05-11 Thread pat665

Hi Etienne,

I see your point however the View 2.5.2 is released now. May be you could
share what you have learned about the new view with the list ?

Patrick
- Original Message -
From: "Etienne ALAURENT" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 10, 2002 5:18 PM
Subject: [REBOL] Re: Graph Drawing & /View Performance


Hi, Patrick,

I know these problems.
I think the new View engine is the same as the Link one.
So, I made many changes for Link, and it seems to be ok. But I want to
test it before publishing it.
 So, as soon as the official View version is online, I'll put the new
skins version online too.

pat665 wrote:

>Hi Etienne,
>
>I have been using a simplified version of your aquae-blue skin for a while.
>Are-you aware that it doesn't work properly with the 2.5.2 bêta? Backdrops
>are not correctly displayed, buttons are squared ?
>
>Patrick
>

--
regards.

---
Etienne
---




--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Problem with Apache and CGI returning text/plain

2002-05-11 Thread pat665

Hi,

Thanks for your script. It works for me too ! My problem was  the .r
extension of my script. The same script with a .cgi works fine. I have found
an explanation for that in the Apache FAQ. For more détails see :

(http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html).

In brief, it is a "bug" in MSIE with HTTP text/plain document. MSIE do not
trust the explicit text/plain content-type and use the file extension
instead. In my case, the .r extension caused the CGI results to be
downloaded instead of displayed.
So I replaced the .r extension with  .txt or  .cgi. and now it works fine.

Patrick

- Original Message -
From: "Bohdan R. Rau" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 10, 2002 7:27 PM
Subject: [REBOL] Re: Problem with Apache and CGI returning text/plain


On May 10 at 13:26 pat665 wrote:

Would you put this script somewhere in the Net?
I don't think I can help you if I won't see results.

Similar script is working OK on my machine
(Apache 1.3.20-2)

http://mavra.linux.bielsko.pl/cgi-bin/heloreb.cgi

-
#!/usr/local/bin/rebol -c
REBOL []
print "Content-Type: text/plain^/"
print "Hello, I am the REBOL script"
-


BTW never use spaces before colon in headers (rfc2068)!

Namarië!

ethanak


--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Problem with Apache and CGI returning text/plain

2002-05-10 Thread pat665

Hi me!

I am replying to myself because I have found (at last) an explanation and a
solution. "When everything else have failed, try to read the documentation
!"  Indeed I have found the answer in the Apache FAQ (see below).

In brief, IE handles text/plain in a non standard way. The solution is to
rename cgi-hw-txt.r to cgi-hw-txt.txt or cgi-hw-txt.cgi .

Patrick

Apache FAQ
Why do my files appear correctly in Internet Explorer, but show up as source
or trigger a save window with Netscape; or, Why doesn't Internet Explorer
render my text/plain document correctly?
MS Internet Explorer (MSIE) and Netscape handle mime type detection in
different ways, and therefore will display the document differently. In
particular, IE sometimes relies on the file extension or the contents of the
file to determine the mime type. This can happen when the server specifies a
mime type of application/octet-stream or text/plain. This behavior violates
the the HTTP standard and makes it impossible to deliver plain text
documents to MSIE clients in some cases. More details are available on
MSIE's mime type detection behavior in an MSDN article
(http://msdn.microsoft.com/workshop/networking/moniker/overview/appendix_a.a
sp) and a note by Alan J. Flavell
(http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html).

The best you can do as a server administrator is to accurately configure the
mime type of your documents by editing the mime.types file or using an
AddType directive in the Apache configuration files. In some cases, you may
be able to fool MSIE into rendering text/plain documents correctly by
assuring they have a .txt filename extension, but this will not work if MSIE
thinks the content looks like another file type.


Patrick
- Original Message -
From: "pat665" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 10, 2002 1:26 PM
Subject: [REBOL] Re: Problem with Apache and CGI returning text/plain


> Hi Scott,
>
> I had it all correct except for the "Options  ExecCGI" that was "Options
> none". However the problem with text/plain is not solved. It seems that
the
> browser cannot identify the text/plain type. May be it will be clearer
with
> the help of the proxy.r script suggested by Mike.
>
> Patrick
>
> - Original Message -
> From: "G. Scott Jones" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 09, 2002 10:17 PM
> Subject: [REBOL] Re: Problem with Apache and CGI returning text/plain
>
>
> > From: "pat665"
> > > Hi rebollers,
> > >
> > > I am having problem with the following script.
> > >
> > > 8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > > #!d:/rebview/rebol.exe --cgi
> > > REBOL []
> > > print "content-type : text/plain^/^/"
> > > print "Hello CGI-World!! (text)"
> > > 8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > >
> > > The script is short but my problem is a bit longer to explain. This
> script
> > > is installed on a windows 98 machine where both Apache and Personal
Web
> > > Server (PWS) are installed (only one server is active at a time).
> > >
> > > The script is called with the following URL from another windows 98
> > machine:
> > >
> > >  http://192.168.1.51/cgi-bin/cgi-hw-txt.r
> > >
> > > The problem is :
> > > - If Apache is running, I am asked to download the file cgi-hw-txt.r.
> > > - If PWS is running, all is correct and I am getting the display of
> "Hello
> > > CGI-World!!!(text)"
> > 
> >
> > Hi, Pat,
> >
> > I've grown a bit rusty in Apache configuration, but be sure to set-up
> > http.conf as follows, then restart apache:
> >
> > 1) scriptalias has been set for the cgi-bin directory.  Typically
> uncomment
> > the following
> >
> > #ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/"
> > to
> > ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/"
> >
> > 2) Be sure cgi-bin has been set to be executable by setting Options to
> > ExecCGI:
> > 
> >   AllowOverride None
> >   Options  ExecCGI
> >   Order allow,deny
> >   Allow from all
> > 
> >
> > 3) If you wish to have executable .r files outside of cgi-bin, need to
add
> > an AddHandler in the AddHandler section as such:
> >
> > AddHandler cgi-script .r
> >
> > This should be considered a security risk, though.
> >
> > Save the httpd.conf file, then restart Apache.
> >
> > Hope this helps.
> > --Scott Jones
> >
> >
> > --
>

[REBOL] Re: Problem with Apache and CGI returning text/plain

2002-05-10 Thread pat665

Hi Scott,

I had it all correct except for the "Options  ExecCGI" that was "Options
none". However the problem with text/plain is not solved. It seems that the
browser cannot identify the text/plain type. May be it will be clearer with
the help of the proxy.r script suggested by Mike.

Patrick

- Original Message -
From: "G. Scott Jones" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 09, 2002 10:17 PM
Subject: [REBOL] Re: Problem with Apache and CGI returning text/plain


> From: "pat665"
> > Hi rebollers,
> >
> > I am having problem with the following script.
> >
> > 8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > #!d:/rebview/rebol.exe --cgi
> > REBOL []
> > print "content-type : text/plain^/^/"
> > print "Hello CGI-World!! (text)"
> > 8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >
> > The script is short but my problem is a bit longer to explain. This
script
> > is installed on a windows 98 machine where both Apache and Personal Web
> > Server (PWS) are installed (only one server is active at a time).
> >
> > The script is called with the following URL from another windows 98
> machine:
> >
> >  http://192.168.1.51/cgi-bin/cgi-hw-txt.r
> >
> > The problem is :
> > - If Apache is running, I am asked to download the file cgi-hw-txt.r.
> > - If PWS is running, all is correct and I am getting the display of
"Hello
> > CGI-World!!!(text)"
> 
>
> Hi, Pat,
>
> I've grown a bit rusty in Apache configuration, but be sure to set-up
> http.conf as follows, then restart apache:
>
> 1) scriptalias has been set for the cgi-bin directory.  Typically
uncomment
> the following
>
> #ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/"
> to
> ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/"
>
> 2) Be sure cgi-bin has been set to be executable by setting Options to
> ExecCGI:
> 
>   AllowOverride None
>   Options  ExecCGI
>   Order allow,deny
>   Allow from all
> 
>
> 3) If you wish to have executable .r files outside of cgi-bin, need to add
> an AddHandler in the AddHandler section as such:
>
> AddHandler cgi-script .r
>
> This should be considered a security risk, though.
>
> Save the httpd.conf file, then restart Apache.
>
> Hope this helps.
> --Scott Jones
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: HTTP spy ?

2002-05-10 Thread pat665

Thanks Mike,

I haven't try it yet but it seems to fit my needs.

Patrick


- Original Message -
From: "Mike Yaunish" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 10, 2002 12:35 AM
Subject: [REBOL] Re: HTTP spy ?


>
> At 02:09 PM 09/05/02 +0200, you wrote:
> I found proxy.r usefull for all this type of thing.
> See: http://www.reboltech.com/library/html/proxy.html
>
> >Thanks Tom,
> >
> >Pretty cool ! Now I can see what is sent  by the browser. On the same
> >subject, in order to know what the browser is getting back, I am using
the
> >following dialog at the rebol console :
> >
> > >>pt: open tcp://192.168.1.51:80
> > >>insert pt "GET /cgi-bin/cgi-txt.r HTTP/1.0^/^/"
> > >>print copy pt
> >HTTP/1.1 200 OK
> >Date: Wed, 08 May 2002 13:36:30 GMT
> >Server: Apache/1.3.24 (Win32) ...
> >
> > >> close pt
> >
> >I am wondering if it is possible to have both what is send by the browser
> >and what the browser is getting back without interfering with the
browser. A
> >sort of tunneling that lets data go thru in and out.
> >
> >Patrick
> >
> >- Original Message -
> >From: "Tom Conlin" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, May 09, 2002 9:27 AM
> >Subject: [REBOL] Re: HTTP spy ?
> >
> >
> > >
> > > For debugging cgi and building bots I have
> > > an "echo-server" running. it just sits on a port and echos
> > > back what it is sent (or at least the first 10k or less of what it is
> > > sent)
> > >
> > > to use it, I go the the page the cgi form is on
> > > I change the browsers proxy to point at the (running) echo-server
> > > and hit the forms submit button.
> > >
> > > echo-server returns a simple html page with _exactly_ what the browser
> > > sent. Its not fancy but it has been very useful to me.
> > > to try the one I'm running you can set your browsers proxy to
> > >
> > > bionix.cs.uoregon.edu port 3776
> > >
> > > feel free to use it occasionaly for unimportant data
> > > (if it starts getting hammered I'll have to pull it)
> > >
> > > if you are interested in running it yourself or need to run it alot
> > > please modify the following to suit your needs (watch the linewraps)
> > >
> > > % cat bin/echoserv
> > > #! /private/bin/rebol -sqw
> > > REBOL [
> > > Title: "ECHO SERVER"
> > > Date: [13-Jan-2002 19-July-1999]
> > > Author: ["Tom Conlin" "Sterling Newton"]
> > > Purpose: {to echo back what your browser sends.
> > >   which may be slightly different than what the
> > >   webserver says it hears.
> > >   helps to debug forms, cgis and to build bots
> > >   I am also capturing a copy in a log  but you may not
care
> > >   or have a place to store it so just comment those lines
out
> > > }
> > > usage: { typicaly you go the the page of interest in your browser
> > > then point the browsers http proxy
> > > at the machine and port this script is running on
> > > then push the pages submit button and see what the browser
> > > intended to say to the server.
> > > (to go back to surfing, stop pointing your browsers proxy
here)
> > >}
> > >note: {based on a script called bogus-proxy.r Sterling helped me
with}
> > > ]
> > > header: {HTTP/1.0 200 OK
> > > Content-Type: text/html
> > >
> > > 
> > > 
> > > }
> > > tailer: {}
> > >
> > > ; this func is only used to timestamp the log file with net style
dates
> > > http-date: func[/local weekdays months gmt][
> > > gmt: now - now/zone
> > > rejoin [pick system/locale/days gmt/weekday ", " gmt/day " "
> > > pick system/locale/months gmt/month " "  gmt/year " "
gmt/time
> > > " GMT^/"]
> > > ]
> > >
> > > serv: open/lines  tcp://:3776  ;EC0 in hex but use what you want
> > > size: 10240; ...or whatever you want
> > >
> > > forever [
> > > stream: make string! size
> > > wait conn: pick serv 1
> > > read-io conn stream size
> > > insert/only conn rej

[REBOL] Re: Graph Drawing & /View Performance

2002-05-10 Thread pat665

Hi Etienne,

I have been using a simplified version of your aquae-blue skin for a while.
Are-you aware that it doesn't work properly with the 2.5.2 bêta? Backdrops
are not correctly displayed, buttons are squared ?

Patrick

- Original Message -
From: "Etienne ALAURENT" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 09, 2002 10:15 PM
Subject: [REBOL] Re: Graph Drawing & /View Performance


> Hi, Richard,
>
> I don't see any difference about exec speed between your 2 scripts.
> But, it's very interesting to know it's better to use one 'show for
> whole window than a 'show for every sub-face.
>
> Cyphre wrote:
>
> >Hi Romano and all,
> >
> >>From my experience:
> >
> >-use "show f" on each face when you need refresh small parts of window
but
> >don't use it when you need show lot of small faces
> >-using one "show f" for whole window is better when you are controling
more
> >faces in the window at the same time...then you rather use 'redraw
function
> >in each small face instead of 'enagage
> >
> >you can see the performance difference in following examples:
> >
> >http://www.rebol.cz/~cyphre/draw-tutor-2orig.r - this script uses method
of
> >refreshing each object face separately
> >
> >http://www.rebol.cz/~cyphre/draw-tutor-2.r - this script uses method of
one
> >global 'show of the whole window area
> >
> >regards,
> >
> >Cyphre
> >
> >- Original Message -
> >From: "Romano Paolo Tenca" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Wednesday, May 08, 2002 9:46 PM
> >Subject: [REBOL] Re: Graph Drawing & /View Performance
> >
> >
> >>Hi Christian,
> >>
> >>>(The lapse I made before was that I had an "show f" in the
> >>>node-face!'s engage function - there none was due. I probably have to
> >>>reread the chapter in "/View in 21 Days" on where to put stuff like
> >>>this - oh well ;-)
> >>>
> >>I have tryed many show position/combination, also tryed  hardware move
> >>
> >with
> >
> >>changes: 'offset, but
> >>
> >> show window
> >>
> >>in this case was the best solution (i do not know why). I do not think
> >>
> >there
> >
> >>is some good doc about show use, but if something is slow often the
reason
> >>
> >is
> >
> >>a great number of (and often also duplicate) show calling.
> >>
> >>---
> >>Ciao
> >>Romano
> >>
> >>
> >>
> >>--
> >>To unsubscribe from this list, please send an email to
> >>[EMAIL PROTECTED] with "unsubscribe" in the
> >>subject, without the quotes.
> >>
> >>
> >>
> >
>
> --
> regards.
>
> ---
> Etienne
> ---
>
>
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Problem with Apache and CGI returning text/plain

2002-05-09 Thread pat665

Hi rebollers,

I am having problem with the following script.

8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#!d:/rebview/rebol.exe --cgi
REBOL []
print "content-type : text/plain^/^/"
print "Hello CGI-World!! (text)"
8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

The script is short but my problem is a bit longer to explain. This script
is installed on a windows 98 machine where both Apache and Personal Web
Server (PWS) are installed (only one server is active at a time).

The script is called with the following URL from another windows 98 machine:

 http://192.168.1.51/cgi-bin/cgi-hw-txt.r

The problem is :
- If Apache is running, I am asked to download the file cgi-hw-txt.r.
- If PWS is running, all is correct and I am getting the display of "Hello
CGI-World!!!(text)"

I have investigated a lot ! These are some fact I have gathered :

- If I change text/plain for text/html, and if I delete the space in
content-type ( "content-type : text/plain" -> "content-type: text/html")
then I am getting a response with Apache.

- Apache ACCESS.LOG gives me the following trace in both cases :

192.168.1.52 - - [09/May/2002:11:07:34 +0200] "GET /cgi-bin/cgi-hw-txt.r
HTTP/1.1" 200 38

As I understand it, the request is OK (200) and returns 38 bytes.

- I have made the following function to test the server from the rebol
console:

 cgi-test: does [
  pt: open tcp://192.168.1.51:80
  insert pt "GET /cgi-bin/cgi-hw-txt.r HTTP/1.0^/^/"
  print copy pt
  close pt
 ]

Here are some results :

With "content-type : text/plain", download in IE
>> cgi-test
HTTP/1.1 200 OK
Date: Thu, 09 May 2002 13:07:15 GMT
Server: Apache/1.3.24 (Win32)
content-type : text/plain
Connection: close
Content-Type: text/plain


Hello CGI-World!! (text)

>>

With "content-type: text/plain", download in IE
>> cgi-test
HTTP/1.1 200 OK
Date: Thu, 09 May 2002 13:09:06 GMT
Server: Apache/1.3.24 (Win32)
Connection: close
Content-Type: text/plain


Hello CGI-World!! (text)

>>

With "content-type: text/html", works in IE
>> cgi-test
HTTP/1.1 200 OK
Date: Thu, 09 May 2002 13:09:59 GMT
Server: Apache/1.3.24 (Win32)
Connection: close
Content-Type: text/html


Hello CGI-World!! (text)

>>

With "content-type : text/html", download in IE
>> cgi-test
HTTP/1.1 200 OK
Date: Thu, 09 May 2002 13:11:21 GMT
Server: Apache/1.3.24 (Win32)
content-type : text/html
Connection: close
Content-Type: text/plain


Hello CGI-World!! (text)

>>

The conclusion here is that the space after "content-type" seems to be very
important.

With Apache  text/plain text/html
space after BADBAD
no spaceBADOK

The same test performed with PWS gives a very different picture.

With PWS text/plain text/html
space after OK OK
no spaceBADOK

So if I want a script that runs with both PWS and Apache, I must choose
text/html and no space after "content-type".

However I am still at a loss regarding Apache and text/plain. Has anyone a
brilliant idea ?


Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: HTTP spy ?

2002-05-09 Thread pat665

Thanks Tom,

Pretty cool ! Now I can see what is sent  by the browser. On the same
subject, in order to know what the browser is getting back, I am using the
following dialog at the rebol console :

>>pt: open tcp://192.168.1.51:80
>>insert pt "GET /cgi-bin/cgi-txt.r HTTP/1.0^/^/"
>>print copy pt
HTTP/1.1 200 OK
Date: Wed, 08 May 2002 13:36:30 GMT
Server: Apache/1.3.24 (Win32) ...

>> close pt

I am wondering if it is possible to have both what is send by the browser
and what the browser is getting back without interfering with the browser. A
sort of tunneling that lets data go thru in and out.

Patrick

- Original Message -
From: "Tom Conlin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 09, 2002 9:27 AM
Subject: [REBOL] Re: HTTP spy ?


>
> For debugging cgi and building bots I have
> an "echo-server" running. it just sits on a port and echos
> back what it is sent (or at least the first 10k or less of what it is
> sent)
>
> to use it, I go the the page the cgi form is on
> I change the browsers proxy to point at the (running) echo-server
> and hit the forms submit button.
>
> echo-server returns a simple html page with _exactly_ what the browser
> sent. Its not fancy but it has been very useful to me.
> to try the one I'm running you can set your browsers proxy to
>
> bionix.cs.uoregon.edu port 3776
>
> feel free to use it occasionaly for unimportant data
> (if it starts getting hammered I'll have to pull it)
>
> if you are interested in running it yourself or need to run it alot
> please modify the following to suit your needs (watch the linewraps)
>
> % cat bin/echoserv
> #! /private/bin/rebol -sqw
> REBOL [
> Title: "ECHO SERVER"
> Date: [13-Jan-2002 19-July-1999]
> Author: ["Tom Conlin" "Sterling Newton"]
> Purpose: {to echo back what your browser sends.
>   which may be slightly different than what the
>   webserver says it hears.
>   helps to debug forms, cgis and to build bots
>   I am also capturing a copy in a log  but you may not care
>   or have a place to store it so just comment those lines out
> }
> usage: { typicaly you go the the page of interest in your browser
> then point the browsers http proxy
> at the machine and port this script is running on
> then push the pages submit button and see what the browser
> intended to say to the server.
> (to go back to surfing, stop pointing your browsers proxy here)
>}
>note: {based on a script called bogus-proxy.r Sterling helped me with}
> ]
> header: {HTTP/1.0 200 OK
> Content-Type: text/html
>
> 
> 
> }
> tailer: {}
>
> ; this func is only used to timestamp the log file with net style dates
> http-date: func[/local weekdays months gmt][
> gmt: now - now/zone
> rejoin [pick system/locale/days gmt/weekday ", " gmt/day " "
> pick system/locale/months gmt/month " "  gmt/year " " gmt/time
> " GMT^/"]
> ]
>
> serv: open/lines  tcp://:3776  ;EC0 in hex but use what you want
> size: 10240; ...or whatever you want
>
> forever [
> stream: make string! size
> wait conn: pick serv 1
> read-io conn stream size
> insert/only conn rejoin[header stream tailer]
> close conn
> ; comment out the next lines if you do not need a log
> write/append %/tmp/echoserv.log rejoin[
> newline "# " conn/host tab http-date stream newline
> ]
> ]
> close serv ; not that we are apt to get here
> --

>
> On Wed, 8 May 2002, pat665 wrote:
>
> > Hi rebollers,
> >
> > Exploring how CGI works I am in need of an HTTP spy. I mean a rebol
program
> > that could listen to what a web server is getting but without
interfering
> > (always the first directive "do not interfere").
> >
> > For now I am using this code that works but is blocking the web server.
> >
> > 8< - - - - - - - - - - - - - - - - - - - - - - - - - -
> >
> > Rebol []
> >
> > pt: open tcp://:80
> > forever [
> > wait pt
> > print "Data coming ..."
> > connexion: first pt
> > buffer: copy ""
> > until [
> > data: copy ""
> > read-io connexion data 255
> > append buffer data
> > found? find data "^/"
> > ] ; until
> > print buffer
> 

[REBOL] Rebol 2.5.2 Make-doc-pro gives an error

2002-05-07 Thread pat665

Hi rebollers, Hi Robert

Using make-doc-pro (version: 0.9.8 from the rebol library, or version 1.0.0)
on a very simple text gives an error. There is no error with rebol 2.5.

The Error is :

Unknown TAG found: to-word join sect num

The text is :

8<- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-
Rebol 2.5.2 test

 author: Patrick Philipot
 date: 7-may-2002

=toc

===Make-doc-pro gives an error

Unknown TAG found: to-word join sect num

===I am using Version: 1.0.0

bye!

###

8<- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Rebol/view 2.5.2 crashes !

2002-05-07 Thread pat665

Hi rebollers,

I have just reported the following problem to feedback.

rebol 2.5.2 "Save as" in the desktop editor.

"Save as" opens a file selector where the button "Ouvrir" should be labelled
"Enregistrer". Tested with Windows 98 (french version).
Ouvrir is the french for Open (Enregistrer/Save).

--

rebol 2.5.2 Incorrect slider in the desktop editor

When editing a source code with the desktop editor (right click, button
edit), if the source is too long to fit in the window then the slider is not
correct: the moving part occupies all the space. You have to click on it
once. After that it is smaller and moving correctly.

--

Rebol 2.5.2 Big crash in REBOL.EXE at 017f:00443ee2.

The following error occurs while running a program. I have reduced the
program as much as I could. The crash occurs only if the following line is
uncommented.

; bitmap: make image! none


REBOL a causé une défaillance de page dans
 le module REBOL.EXE à 017f:00443ee2.
Registres :
EAX= CS=017f EIP=00443ee2 EFLGS=00010246
EBX=0001 SS=0187 ESP=006bf070 EBP=00de6140
ECX=0007 DS=0187 ESI=00e311a8 FS=0fb7
EDX=00d035e0 ES=0187 EDI=00e777e8 GS=
Octets à CS : EIP :
08 58 0d 8b 46 04 08 58 0d ff 4c 24 14 83 c6 10
État de la pile :
00de6140 00e777c8 00e2878c 0001 00443edb 0004 0006 00de6140
00e77818 0071fe38 0001 00443edb 000b 0005 0071ed34 006d0610

Rebol []

tl-critere: ["1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14"
"15" "16"]

obj: make object! [
 c: array 16
;-- :(  uncommenting -> crash !
! !
 bitmap: make image! none

 layout1: layout [
  style mytext text 100x18 right
  style mycheck check 18x18

  vignette: box 256x320 yellow

  below
  guide

  mytext tl-critere/1
  mytext tl-critere/2
  mytext tl-critere/3
  mytext tl-critere/4

  return

  c1: mycheck
  c2: mycheck
  c3: mycheck
  c4: mycheck

  do [ c/1: c1 c/2: c2 c/3: c3 c/4: c4 ]

  return

  do [ print "layout 4.01"] ;

  mytext tl-critere/5
  mytext tl-critere/6

  return
  button "That's all folks !" [unview]
  do [ print "layout 4.02"] ;
 ]
]

view center-face obj/layout1

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] How to remove the last item of a serie ?

2002-05-05 Thread pat665

 Hi, rebollers !

 My actual problem is to remove the last character of a string. Has anyone a
 better way ?

 ; way 1
 test: "abcde"
 reverse test
 remove test
 reverse test
 test

 ; way 2
 test: "abcde"
 remove back tail test
 test

 Patrick


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: CGI with Apache under Windows 2000

2002-04-23 Thread pat665

Hi Petr and Joel,

I have just added this line to my script, and it works so far.

#! d:/rebview/rebol.exe --cgi

I thought this kind of thing were only needed for linux and other unix like
system. My script is still a .r (not a .cgi), however I have tested with the
.cgi extension, and it is ok too.

Strange too, I have removed these two lines from srm.conf and it still works
fine.

ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/"
AddType application/x-httpd-cgi .r

However, my script is pretty basic and may be I will have to restore some of
these. In case, I will keep your answer close. Thanks again.

Patrick

- Original Message -
From: "Petr Krenzelok" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 3:22 PM
Subject: [REBOL] Re: CGI with Apache under Windows 2000


> pat665 wrote:
>
> You have to configure Apache in httpd.conf file. Put something like
> following at the end of file:
>
>   ; your real OS path to
> cgi-bin directory 
> Options ExecCGI
> AllowOverride None
> order allow,deny
> allow from all
> 
>
> Then put your script inside above specified cgi-bin directory and make
> sure you have following put on the first line of the script:
>
> example script:
> -
> #! C:/rebol/command/rebolcmd.exe --cgi
>
> REBOL []
>
> print "Content-type: text/html^/^/"
> print "OK"
> 
>
> let your scripts have .cgi suffix, unless you allowed .r to be treated
> as cgi scripts too ...
>
> -pekr-
>
> >Hi List,
> >
> >I am testing a little cgi script with Apache. This script is already
tested
> >and running fine under Windows 98 and Personal Web Server. Any help would
be
> >greatly appreciated :
> >
> >(1) The script
> >(2) The /conf/srm.conf file
> >(3) The error.log
> >
> >Patrick
> >
> >(1) The script
> >
>
>8<-
-
> >
> >REBOL []
> >
> >print "Content-Type: text/html^/^/"
> >
> >print [
> > 
> > "CGI with Rebol"
> > 
> > "Hello CGI-World!"
> >
> >
> >]
>
>8<-
-
> >
> >
> >(2) The /conf/srm.conf file
>
>8<-
-
> >
> ># REBOL section
> >ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/"
> >AddType application/x-httpd-cgi .r
>
>8<-
-
> >
> >
> >(3) The error.log
>
>8<-
-
> >
> >[Tue Apr 23 13:51:44 2002] [error] [client 127.0.0.1]
> >c:/apache/cgi-bin/hw-cgi.r is not executable; ensure interpreted scripts
> >have "#!" first line
> >[Tue Apr 23 13:51:44 2002] [error] [client 127.0.0.1] (2)No such file or
> >directory: couldn't spawn child process: c:/apache/cgi-bin/hw-cgi.r
>
>8<-
-
> >
> >
> >
>
>
>___
___
> >ifrance.com, l'email gratuit le plus complet de l'Internet !
> >vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
> >http://www.ifrance.com/_reloc/email.emailif
> >
> >
> >
> >
>
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] CGI with Apache under Windows 2000

2002-04-23 Thread pat665

Hi List,

I am testing a little cgi script with Apache. This script is already tested
and running fine under Windows 98 and Personal Web Server. Any help would be
greatly appreciated :

(1) The script
(2) The /conf/srm.conf file
(3) The error.log

Patrick

(1) The script

8<--

REBOL []

print "Content-Type: text/html^/^/"

print [
 
 "CGI with Rebol"
 
 "Hello CGI-World!"


]
8<--


(2) The /conf/srm.conf file
8<--

# REBOL section
ScriptAlias /cgi-bin/ "C:/Apache/cgi-bin/"
AddType application/x-httpd-cgi .r
8<--


(3) The error.log
8<--

[Tue Apr 23 13:51:44 2002] [error] [client 127.0.0.1]
c:/apache/cgi-bin/hw-cgi.r is not executable; ensure interpreted scripts
have "#!" first line
[Tue Apr 23 13:51:44 2002] [error] [client 127.0.0.1] (2)No such file or
directory: couldn't spawn child process: c:/apache/cgi-bin/hw-cgi.r
8<--


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: OT

2002-04-22 Thread pat665

Hi joel,

You are right. My goal with append [] was to force the result to be a block.
I was wrong and it is a confort to learn something from this post.
I apologize to the list for being out of topic expressing my sadness about
the recent development in France with two lines of rebol.

Patrick

- Original Message -
From: "Joel Neely" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 1:41 PM
Subject: [REBOL] Re: OT


> Hi, Patrick,
>
> pat665 wrote:
> >
> > Hi rebollers,
> >
> > How to find the two best ?
> >
>
> > results: [2.38 1.90 0.47 6.95 19.41 17.19 2.08 4.33 5.31 15.85 1.20 3.44
> > 5.39 3.96 5.82 4.32]
> > winners: append [] copy/part sort/reverse results 2
> > == [19.41 17.19]
> >
>
> Why the
>
> append []
>
> part, and not just
>
> copy/part sort/reverse results 2
>
> (just curious)?
>
> -jn-
>
> --
> ; Joel Neely joeldotneelyatfedexdotcom
> REBOL [] do [ do func [s] [ foreach [a b] s [prin b] ] sort/skip
> do function [s] [t] [ t: "" foreach [a b] s [repend t [b a]] t ] {
> | e s m!zauafBpcvekexEohthjJakwLrngohOqrlryRnsctdtiub} 2 ]
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] OT

2002-04-22 Thread pat665

Hi rebollers,

How to find the two best ?

results: [2.38 1.90 0.47 6.95 19.41 17.19 2.08 4.33 5.31 15.85 1.20 3.44
5.39 3.96 5.82 4.32]
winners: append [] copy/part sort/reverse results 2
== [19.41 17.19]

Lots of people here were expecting [19.41 15.85].

Patrick


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: For loop and dynamic variable

2002-04-18 Thread pat665

Bonjour,

Nos amis anglais appellent ça un ""oneliner" :

 for i 1 3 1 [ if exists? f: to-file rejoin ["output" i ".tmp"][delete f]]

Patrick

- Original Message -
From: "COFFRE Richard FTO" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 18, 2002 12:01 PM
Subject: [REBOL] For loop and dynamic variable


Hi

I have the following code :

output1: %output1.tmp
output2: %output2.tmp
output3: %output3.tmp

if exists? output1 [ delete output1 ]
if exists? output2 [ delete output2 ]
if exists? output3 [ delete output3 ]

I want to simplify it like this :

for i 1 3 1 [
   output(i): %output(i).tmp
   if exists? output(i) [ delete output(i) ]
]

Any ideas ?

TIA

Richard Coffre
France Telecom Orbiscom
Tél. : 01 47 61 46 28
"Share what you know, learn what you don't"


--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: How to make a layout from a block

2002-04-18 Thread pat665

Hi,

I am not sure I get your problem, but have you try that :

>> a: [title "Test" backcolor red]
>> main: layout a
>> view main

Patrick
- Original Message - 
From: "Thorsten Moeller" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 18, 2002 12:03 PM
Subject: [REBOL] How to make a layout from a block


> 
> Hi,
> 
> i have a block containing layout-information associated with a word like:
> 
> a: [title "Test" backcolor red]
> 
> i want this block to become the block of a layout like this:
> 
> main: layout [title "Test" backcolor red]
> 
> How can i do this?
> 
> Thanks
> 
> Thorsten
> 
> -- 
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
> 
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
> 

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Missing CGI doc

2002-04-13 Thread pat665

Hi Ammon,

Thanks Ammon ! I should have mentionned that I had already dig through the
RCUG which is a bit obsolete. For example, there is a description of the
decode-cgi-query function that do not exist anymore !

RCUG >>The decode-cgi-query function returns a block that contains variable
names and their values. See the HTML form example in the next section.

That's why I am looking for other sources of information.

Patrick

- Original Message -
From: "Ammon Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 9:46 PM
Subject: [REBOL] Re: Missing CGI doc


> in the Core 2.3 User Guide, Chapter 12 'Network Protocals' -- CGI 12-49
>
> That is a fairly simple example the hardest part is probably configuring
the
> Webserver let us know what you need. ;-)
>
> HTH
> Ammon
>
>
> On Friday 12 April 2002 09:21 am, you wrote:
> > Hi rebollers,
> >
> > In RT FAQ it is mentioned that a CGI howto should be available in the
howto
> > section. It is not.
> > At Rebol Forces, there is also a broken link to a cgi-basics.html.
> >
> > Is there a place where one can find these ?
> >
> > Patrick
> >
> >
> >
> >
> >
> >
> >
___
> >___ ifrance.com, l'email gratuit le plus complet de l'Internet !
> > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
> > http://www.ifrance.com/_reloc/email.emailif
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: (No subject)Date: Sat, 13 Apr 2002 11:07:21 +0200

2002-04-13 Thread pat665

Hi Allen,

Thank you for the CGI-How-TO. CGI docs are pretty rare, especially for
"Windows people" like me. I am testing and gathering what I have found to
produce something readable for newbies.

Both RCUG 2.3 and this old How-To use the cgi-decode-query function which no
longer exists. There is nothing about CGI in the "REBOL-Core 2_5_0
Changes.htm" page. The only conclusion is (elementary my dear Watson) that
the change occurred between the 2.3 and the 2.4 .

Patrick

- Original Message -
From: "Allen Kamp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 13, 2002 12:08 AM


> References: <007b01c1e23e$35380cc0$3401a8c0@pat665>
<200204121442.ubeajt.prq.37kbpol@augustus>
> Subject: [REBOL] Re: Missing CGI doc
> Date: Sat, 13 Apr 2002 07:49:00 +1000
> MIME-Version: 1.0
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook Express 6.00.2600.
> X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.
> X-archive-position: 18870
> X-listar-version: Listar v0.129a
> Sender: [EMAIL PROTECTED]
> Errors-to: [EMAIL PROTECTED]
> X-original-sender: [EMAIL PROTECTED]
> Precedence: bulk
> Reply-to: [EMAIL PROTECTED]
> X-list: rebol
>
>
> The old cgi how-to is here
http://www.rebol.com/howto.html#cgi-scripts.html
>
> As for cgi-basics (was in archive) from REBOL Forces, I'll have to track
> down.
>
> Cheers,
>
> Allen
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Newbie parsing problem

2002-03-29 Thread pat665

Hi Richard

Try [thru "call" to end] like this.

texte: ["without the text" "with call inside" "with call" "without it"]

foreach ligne texte [
 if parse/all ligne [ thru "call" to end ][
  print ligne
 ]
]


HTH

Patrick

- Original Message -
From: "Richard Coffre" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 10:53 AM
Subject: [REBOL] Newbie parsing problem


Hi,

I would like to extract all the lines containing the string call and write
them with a newline.

I have the following code, but nothing happens, what's wrong ?

REBOL []

texte: read/lines %generic4.txt

foreach ligne texte
[
if parse/all texte [ "call" ]
[
write/append %calls.txt ligne
]
]

Thanks in advance

-
"Sound Mind, Sound Body" Juvénal
"Lire et être curieux, c'est la même chose" Pascal Quignard
"Qui triomphe de lui-même possède la force" Lao-Tseu, extrait du Tao Te King
"Dans la course à la qualité, il n'y a pas de ligne d'arrivée" David Kearns
Allez voir mon site : http://www.desala.org

-
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs,
Toolbar...
Web/Wap : www.netcourrier.com
Téléphone/Fax : 08 92 69 00 21 (0,34 ? TTC/min)
Minitel: 3615 NETCOURRIER (0,15 ? TTC/min)

--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Calling local functions from parse rules...

2002-03-29 Thread pat665

Hi Carl

I am not a 'bind guru, however the following seems to work.

parse-this: func [blk rules /local str local-func value][
str: copy ""
local-func: func [n][append str n]
parse blk bind rules 'str
print str
]

Patrick

- Original Message - 
From: "Carl Read" <[EMAIL PROTECTED]>
To: "REBOL List" <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 10:02 AM
Subject: [REBOL] Calling local functions from parse rules...


> Hello all,
> 
> I'm trying to write a function that does some parsing within it and
> the parse rules require a local function to be called, but I can't get
> parse to recognise the function.  Here's an example of the problem...
> 
> parse-this: func [blk rules /local str local-func value][
> str: copy ""
> local-func: func [n][append str n]
> parse blk rules
> print str
> ]
> 
> Which give this error...
> 
> >> parse-this ["abc"][set value string! (local-func value)]
> ** Script Error: local-func has no value
> ** Where: parse-this
> ** Near: local-func value
> 
> How do I get it to recognise 'local-func without making 'local-func a
> global function?  By using 'bind perhaps?  But how?  No way I've
> tried has worked.
> 
> Also, 'value in the parse rule there becomes global...
> 
> >> ? value
> VALUE is a string of value: "abc"
> 
> I want that kept local to the function too.  Any help appreciated...
> 
> -- 
> Carl Read
> 
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
> 

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] new link on the REBOL News Page

2002-03-25 Thread pat665

Hi rebollers,

Two new link on the REBOL News Page. However the second one points to an old
spot.
(Already reported to feedback).

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: RF - New Article - Building a Server Engine

2002-03-21 Thread pat665

Hi Allen,

Thanks for the printing link !

Patrick

- Original Message -
From: "Allen Kamp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 10:27 PM
Subject: [REBOL] RF - New Article - Building a Server Engine


> Hi REBOLs,
>
> Another new article this month, thanks Maarten!
>
> Building a Server Engine by Maarten Koopmans.
> If you want to start using REBOL for server applications, you may consider
> building a server engine for all network communications. In this article
> Maarten describes the HIgh Performance Engine of Rugby (HIPE).
>
> http://www.rebolforces.com/articles/hipe.html
>
> Cheers,
>
> Allen K
>
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] 2.6 ?

2002-03-19 Thread pat665

Hi rebollers

On Wed, 6 Mar 2002 09:53:17 Carl Sassenrath wrote :

>The experimental 2.6 will be released next week for Windows and
>Linux platforms.  We will announce it here on this list and on our
>website.

Since then I saw only very minor change on RT site and nothing on the list.

Did I miss something ?
Something wrong with RT?


Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: [refactoring s-c?]

2002-03-17 Thread pat665

Hi Ladislav,

1. first 'first

If I understand nonsame1 is equivalent to nonsame except if called with the
word 'first.

<>

same? 'first nonsame1 'first
** Script Error: first has no value

<>

So I have tried to find out the part of nonsame1 that breaks ...
In the following line from nonsame1, I see two parts :

 use reduce [word] reduce ['first reduce [word]]

or
 use  

 being a block of words, here a block with only one word.
 being a block to evaluate. Evaluation returning the given word.

A little test shows that  is correct.

 >> myword: 'first
 == first
 >> reduce [myword]
 == [first]

Therefore I concentrate myself on . To emulate  I create
this little function

 test: func [x [word!]][do reduce ['first reduce [x]]]

However I was desappointed with the result.

 >> test myword
 == first

No error, so neither  or  is responsible for the error. It
is only when they are bind together by use, that an error rises. I think
also there is nothing wrong with 'first by itself. To clear that, I have
made the following test where 'first is replaced by 'second.

 >> test2: func [word [word!]][use reduce [word] reduce ['second reduce
[word]]]
 >> test2 'second
 ** Script Error: second has no value

Bingo ! let's try to remove first ...

 >> test2: func [word [word!]][use reduce [word] reduce [reduce [word]]]
 >> test2 'first
 == [first]

It is almost ok, except that a block is returned instead of a word. And it
was indeed the purpose of using 'first to give us a word. A part that it
returns a block, test2 give us the right thing : a word with the same
spelling but not the same word.

 >> first test2 'first
 == first

Here we can get the "new" first with the same spelling.

 >> same? 'first first test2 'first
 == false

And it is not the same as the global first. From that it is easy to build
test3 which is indeed nonsame :

 >> test3: func [word [word!]][first use reduce [word] reduce [reduce
[word]]]
 >> test3 'first
 == first
 >> same? 'first test3 'first
 == false

2. second reduce

Let's play again with my simplification of use :

 use  

where

 is a block including one word
 is a block returning that word

Why can't we simply write :

 test4: func [x [word!]][use [x][x]]

This is an answer

 >> use [x][x]
 ** Script Error: x has no value
 ** Where: do-boot
 ** Near: x

The x in part 2 exists but have never been set. It has no value to return.
In fact, we don't want the value of x but the word associated. May be this
could work.

 test4: func [x [word!]][use [x]['x]]

 >> test4 'first
 == x

Nope, 'x is taken litteraly here.

 test4: func [x [word!]][use [x][compose [('x)]]]

 >> test4 'first
 == [x]

 test4: func [x [word!]][use reduce [x][compose [('x)]]]

 >> test 'first
 == [first [first]]

Yeah, another puzzle: one in -> two out. However it is first that comes out.
So I think I understand the first reduce. Let's replace compose by reduce
too.

 test4: func [x [word!]][use reduce [x][reduce [x]]]

 >> test4 'first
 == [first]

Not bad ! but is it the real one ?

 >> same? 'first first test4 'first
 == true

No luck again. Indeed it says something. Since we get the global 'first, it
means that the use did not work at all.

This one is a bit tricky

 test5: func [x [word!]][use [first][reduce [x]]]

 >> test5 'first
 == [first]
 >> same? 'first test5 'first
 == false

It works, however it works only with 'first. It shows anyway that only  needs to be taken care of. Let's try to see what is wrong in that .

 test6: func [x [word!]][use reduce [x][print reduce [x]]]

 >> test6 'first
 ** Script Error: first expected series argument of type: series pair event
money date object port
 time tuple any-function library struct event
 ** Where: test6
 ** Near: first

It seems that x is evaluated again. To prevent evaluation, it can be put in
an extra block.

 test6: func [x [word!]][use reduce [x][print [reduce [x

 >> test6 'first
 first

As we know that print reduces its argument, all we have to do is to replace
print by reduce.

 test7: func [x [word!]][use reduce [x][reduce [reduce [x

 >> test7 'first
 == [[first]]

And yet there is an external block to get rid of.


 test8: func [x [word!]][use reduce [x] reduce [reduce [x]]]

 >> test8 'first
 == [first]
 >> same? 'first test8 'first
 == false

And finally from what we learned from (1.).

 test9: func [x [word!]][first use reduce [x] reduce [reduce [x]]]

 >> test9 'first
 == first
 >> same? 'first test9 'first
 == false

Which is not a surprise because test9 is nonsame.

3. third contexts.html

I was very proud to see my name in the acknowledgements part. I show it to
everybody in the house except my cat.

4. fourth unbound

I noticed the replacement of error? by any-type? I will look into later,
because I have very few little grey cells available at the moment.

Patrick

- Original Message -
From: "Ladislav Mecir" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 17, 2002 8:44 AM
Subject: [REBOL] Re: [refactoring s-c?]


> 

[REBOL] Re: [refactoring s-c?]

2002-03-16 Thread pat665

Hi Ladislav,

I am even more confused, but I like that!
I can play the luke-who-wants-to-be-a-jedi part, master Yoda.

1. Assuming that nonsame is correct, I have tested that :

 a: 100
 word1: nonsame 'a

 >> s-c? 'a 'word1
 == true

I was puzzled because I thought that use will create a new context and
return something bound to this context. I had found an interesting example
of that in the escribe archives :

 a: 1
 block: [a]
 use [a] [a: 2 append tail block [a]]

 >> block
 == [a a]
 >> s-c? first block second block
 == false

Fortunately I realized my mistake and that the correct testing was :

 >> s-c? 'a word1
 == false

That was confirmed by

 >> s-c? 'a nonsame 'a
 == false


Assertion 1 : nonsame returns a word bound to another context.
Assertion 2 : this context is created by use.
Assertion 3 : nonsame returns a word with the same spelling.

 >> mold word1
 == "a"
 >> mold 'a
 == "a"

I am aware that assertion 1 and assertion 3 are certainly bound because it
is not possible to have two words with the same spelling in the same
context.

2. From (1) I  have learned that use was required to create a new word with
the same spelling but different. As for comparing nonsame1 and nonsame, I
have learned nothing. As far as I can tell they are equivalent :

 >> word2: nonsame1 'a
 == a
 >> s-c? 'a word2
 == false

3. Why reduce ? I have still no idea, but I can try removing it and see what
happens.

ns: func [
word [word!] {the given word}
][
use [word][word]
]

 >> ns 'a
 ** Script Error: word has no value
 ** Where: ns
 ** Near: word

Definitively wrong

ns: func [
word [word!] {the given word}
][
use [word] reduce [word]
]

 >> ns 'a
 == 100

Returns a value. It is not good.

ns: func [
word [word!] {the given word}
][
use [word] reduce ['first reduce [word]]
]

 >> ns 'a
 == a

Looks better. first is used to extract a word rather than a value. An extra
block is needed to be the body that use requires. However this is not good
because :

 >> same? 'a ns 'a
 == true

Assertion 4 : I am exhausted !

4. As far as I can tell now, I am not able to explain why nonsame is better
than nonsame1. All my experiments have fail to prove any of :

- nonsame1 and nonsame do not return always the same result
- nonsame1 has an undesired side-effect
- nonsame1 rises an error

5. Epilogue

Learning that I know nothing is indeed a valuable lesson. Knowing that is
certainly better than pretending to know something that I don't. I don't
know if I am ready for understanding the truth. It is not for the apprentice
to decide. I have spent half my day with all these trials and must return
now to a normal life !  Hoping for the best

Patrick

- Original Message -
From: "Ladislav Mecir" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 7:15 PM
Subject: [REBOL] Re: [refactoring s-c?]


> Hi Pat,
>
> thanks for looking into that. The goal of the USE and REDUCE usage is to
> create a word equal to a given word but not the same as the given word. I
> could have defined a function NONSAME as follows:
>
> nonsame1: func [
> {
> create a word equal to the given word
> but not the same as the given word
> }
> word [word!] {the given word}
> ] [
> use reduce [word] reduce [
> 'first reduce [word]
> ]
> ]
>
> My implementation was incorrect (as I have found out when I looked into
it).
> A correct implementation should have been as follows:
>
> nonsame: func [
> {
> create a word equal to the given word
> but not the same as the given word
> }
> word [word!] {the given word}
> ] [
> first use reduce [word] reduce [
> reduce [word]
> ]
> ]
>
> Can you find my error?
>
> The implementation of the S-C? function could then have been as follows:
>
>  s-c?: func [
> {Are word1 and word2 bound to the same context?}
> word1 [word!]
> word2 [word!]
> ] [
> found? any [
> all [
> undefined? word1
> undefined? word2
> ]
> all [
> not undefined? word2
> same? word1 bind nonsame word1 word2
> ]
> ]
> ]
>
> Cheers (and thanks for your question)
> Ladislav
>
> - Original Message -
> From: "pat665" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, March 13, 2002 10:43 PM
>

[REBOL] Re: [refactoring s-c?]

2002-03-15 Thread pat665

Thank you romano

I think I have a long way in front of me before I fully understand the s-c?
code. Sometimes it seems the more I go the less I know.
I would be glad if someone (Ladislav ?) could explain it to me.


Patrick

No news of rebol/core 2.6 ? it was supposed to be available this week, isn't
it ?

- Original Message -
From: "Romano Paolo Tenca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 14, 2002 2:23 PM
Subject: [REBOL] Re: [refactoring s-c?]


> Hi Pat,
>
> > all [
> > not undefined? word2
> > same? word1 first bind [word1] word2
> > ]
> > ]
> > ]
>
> 1) If you do not get 'word1 o reduce [word1], 'word1 is 'word1, not its
value
> (the real word to test)
>
> 2) if 'word1 is not in the context of 'word2, bind does not change it and
> same? return true.
>
> >> o: context [b: 2]
> >> same? 'a first bind [a] in o 'b
> == true
>
> ---
> Ciao
> Romano
>
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] [refactoring s-c?]

2002-03-13 Thread pat665

Hi rebollers

Again exploring Ladislav's contexts.html, I have difficulty understanding
the s-c? function. The goal of the s-c? function is to test if two words are
in the same context.

"Two Words WORD1 and WORD2 are bound to the same context, if the expression
(s-c? word1 word2) yields TRUE."

Here (1) is the original version of s-c? and (2) my simplified version. Both
return the same result (3). Something is certainly missing in the simplified
version, but what ? what are the purposes of the 'use and 'reduce in the
original version ?

(1)
;; s-c? function

 undefined?: func [
{determines, if a word is undefined}
word [any-word!]
] [
error? try [error? get/any :word]
]

 s-c?: func [
{Are word1 and word2 bound to the same context?}
word1 [word!]
word2 [word!]
] [
found? any [
all [
undefined? word1
undefined? word2
]
all [
not undefined? word2
same? word1 bind use reduce [word1] reduce [
'first reduce [word1]
] word2
]
]
]
;; the (over?) simplified version

(2)
 sc: func [
{Are word1 and word2 bound to the same context?}
word1 [word!]
word2 [word!]
] [
  print mold use reduce [word1] reduce ['first reduce [word1]]
found? any [
all [
undefined? word1
undefined? word2
]
all [
not undefined? word2
same? word1 first bind [word1] word2
]
]
]

;; tests

(3)

 >> o: make object! [a: 1 b: 2]
 >> a: 100
 == 100
 >>
 >> word1: 'a
 == a
 >> word2: second first o
 == a
 >> word3: third first o
 == b

The original s-c? gives :

 >>s-c? word1 word2
 == false
 >>s-c? word1 word3
 == false
 >>s-c? word2 word3
 == true

The simplified version gives

 >>sc word1 word2
 a
 == false
 >>sc word1 word3
 a
 == false
 >>sc word2 word3
 a
 == true

As for the subject of this post, I was just kidding. I'am pretty sure that
Ladislav's code do not need any refactoring.

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: getting rid of empty string in a block.

2002-03-13 Thread pat665

Hi Stéphane

Try this

>> foreach i t [if (length? i) <> 0 [print i]]
one
two

Rebol is smart, but not smart enough to figure out where to stop in that
case : if length? i <> 0

Salut

Patrick


- Original Message -
From: "Bansard Stephane" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 5:39 PM
Subject: [REBOL] getting rid of empty string in a block.


> Hi all,
>
> I want to sort a file by line alphabetic order. It appears it works at
once as I
> write an idea ! Rebol is great !
> str: copy []
> foreach l (sort read/lines %my-file) [append str join l "^/"]
>
> But I haven't thought of blank line which are empty string in the sort
> read/lines resulting block.
>
> I try using the string length. But I don't understand the following
evaluations
> :
>
> >> t: ["" "" "one" "two"]
> >> foreach i t [print length? i]
> 0
> 0
> 3
> 3
> >> foreach i t [if length? i [print i]]
>
>
> one
> two
> >> foreach i t [if length? i <> 0 [print i]]
> ** Script Error: length? expected series argument of type: series port
tuple
> struct
> ** Near: if length? i <> 0
>
> >> foreach i t [if (length? to-string i <> 0) [print i]]
>
>
> one
> two
>
> 
>
> What would be the best solution to get rid of the empty strings ? (or of
any
> empty values of a block, be they string or of any type? Could you give me
a
> pointer to the explanation of this in the official doc ?
>
> Many thanks,
> Best regards
> Stephane
>
>
>
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Warning: rebol-list@hds-energy.com - No such user!

2002-03-11 Thread pat665

Help rebollers

For every post I have made today, I have received a MDeamon reply (I have
used two different computer).
It is like I had send something to [EMAIL PROTECTED] which I have
not !

Any idea?

Patrick

PS: the attached file is just plain text.

< Attached file : begin>
Received: from pop.indigo.ie [194.125.133.230] by hds-energy.com
[192.168.1.1] with POP (MDaemon.v2.7.SP2.R) for <[EMAIL PROTECTED]>;
Mon, 11 Mar 2002 18:01:13 +
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 92996 messnum 1190899 invoked by uid 127); 11 Mar 2002
17:41:50 -
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 92963 messnum 1195719 invoked from
network[208.201.243.114/cobalt.reboltech.com]); 11 Mar 2002 17:41:48 -
Received: from cobalt.reboltech.com (208.201.243.114)
  by relay05.indigo.ie (qp 92963) with SMTP; 11 Mar 2002 17:41:48 -
Received: from cobalt.reboltech.com (localhost [127.0.0.1])
 by cobalt.reboltech.com (8.9.3/8.9.3) with ESMTP id JAA17029;
 Mon, 11 Mar 2002 09:28:04 -0800
Received: with LISTAR (v0.129a; list rebol); Mon, 11 Mar 2002 09:28:04 -0800
(PST)
Received: from randall.mail.atl.earthlink.net
(randall.mail.atl.earthlink.net [207.69.200.237])
 by cobalt.reboltech.com (8.9.3/8.9.3) with ESMTP id JAA17019
 for <[EMAIL PROTECTED]>; Mon, 11 Mar 2002 09:28:03 -0800
Received: from antoninus-z.mspring.net ([207.69.231.70]
helo=antoninus.mspring.net)
 by randall.mail.atl.earthlink.net with smtp (Exim 3.33 #1)
 id 16kTdY-0002mh-00
 for [EMAIL PROTECTED]; Mon, 11 Mar 2002 12:31:04 -0500
X-MindSpring-Loop: [EMAIL PROTECTED]
Received: from th01.opsion.fr ([195.219.20.11])
 by antoninus.mspring.net (Earthlink Mail Service) with SMTP id
u8pqen.nrg.37kbpq6
 for <[EMAIL PROTECTED]>; Mon, 11 Mar 2002 12:31:02 -0500 (EST)
Received: from 80.13.183.36 [80.13.183.36] by th01.opsion.fr id
200203111730.3181; Mon, 11 Mar 2002 17:30:49 GMT
Message-ID: <002301c1c922$d76731e0$3801a8c0@postepph>
From: "pat665" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
References: <002701c1c8d1$36721210$3801a8c0@postepph>
<[EMAIL PROTECTED]>
Subject: [REBOL] Re: XP with rebol?
Date: Mon, 11 Mar 2002 18:33:20 +0100
MIME-Version: 1.0
Status:  U
X-UIDL: 1015868510.93003.relay05.indigo.ie
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-archive-position: 17843
X-listar-version: Listar v0.129a
X-original-sender: [EMAIL PROTECTED]
Precedence: bulk
Reply-to: [EMAIL PROTECTED]
X-list: rebol
X-MDaemon-Deliver-To: [EMAIL PROTECTED]

Hi Joel

> That probably makes 35 kilograms of answer to what was intended
> as a 1000 milligram question ;-) but I hope there's something
> useful in there!

Useful indeed and informative. It is always a pleasure to read you.

Patrick

- Original Message -
From: "Joel Neely" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 2:33 PM
Subject: [REBOL] Re: XP with rebol?


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 9:31 PM
Subject: Warning: [EMAIL PROTECTED] - No such user!


> [EMAIL PROTECTED] - no such user here.
>
> : Message contains [1] file attachments
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] [subject: first-class language]

2002-03-11 Thread pat665

Hi rebollers,

Digging the archives again ...

On Wednesday, 12-sep-2001, Holger Kruse wrote : 
> "Rebol is a first-class language ..."
>

What is a first-class language ?

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: ['bind for dummies]

2002-03-11 Thread pat665

Hi Gregg

Thank you. Site and rebsite updated.

http://www.pat665.free.fr/doc/bind.html

Cheers

Patrick
- Original Message - 
From: "Gregg Irwin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 7:04 PM
Subject: [REBOL] Re: ['bind for dummies]


> Good stuff Pat!
> 
> 
> In section 4.2, should this:
> 
> "One solution is to bound the code to the local 'member."
> 
> instead read:
> 
> "One solution is to bind the code to the local 'member."
> 
> Thanks!
> 
> --Gregg
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
> 

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: XP with rebol?

2002-03-11 Thread pat665

Hi Joel

> That probably makes 35 kilograms of answer to what was intended
> as a 1000 milligram question ;-) but I hope there's something
> useful in there!

Useful indeed and informative. It is always a pleasure to read you.

Patrick

- Original Message - 
From: "Joel Neely" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 2:33 PM
Subject: [REBOL] Re: XP with rebol?


> Hi, Pat,
> 
> pat665 wrote:
> > 
> > I found your new article about iteration very interesting.
> >
> 
> Thanks!
> 
> >
> > I notice the usage of many eXtreme Programming words such as
> > metaphor, refactoring, DRY...
> >
> 
> In brief, I used those terms because they are now common (and
> succincnt) enough that I assumed/hoped that they would get the
> key ideas across without my having to further expand the text
> to discuss them.  (The rest of this answer is background for
> anybody who is interested in digital archaeology... ;-)
> 
> Many of the terms currently en vogue in XP (and even more of
> the concepts) have been around long before "XP" became a hot
> buzzword (and even longer before uSoft mis-appropriated it ;-)
> 
> Although the ideas has been around for a long time (and is
> central IMHO to OOP), the first time I recall seeing the term
> "metaphor" commonly used in the sense of my last article
> was about 1984, in the phrase "desktop metaphor" to describe
> the GUI use of a computer monitor invented by Xerox, developed
> by Apple, and later copied by uSoft.  The phrase "desktop
> metaphor" was actually consciously in my mind while writing
> the article, but I've emphasized in my teaching since the
> early 70's that almost everything we talk about in programming
> is in metaphorical terms: "file", "integer", "string", "print",
> "memory", and so on.
> 
> As for "refactoring", Martin Fowler's book:
> 
> Refactoring: Improving the Design of Existing Code
> Martin Fowler
> Addison-Wesley
> ISBN 0-201-48567-2
> 
> has a very apt subtitle.  The notion of taking code and making
> improvements by small, systematic changes in structure has also
> been around for a long time.  We used to call it "incremental
> refinement" or "iterative development", but I guess those terms
> sounded too academic to catch on with the great masses of COBOL
> programmers back in the day...
> 
> The FORTH community has been using the term "factoring" since
> at least the early 80's to describe the idea of grouping,
> organizing, and structuring to find and express the simple
> ideas that underly most large, complex blobs of functionality.
> 
> As for "DRY", it's a nice, compact buzzphrase for an idea that
> has been around since at least FORTRAN days:  when you find
> yourself writing the same code over and over, it's time to pull
> it out into a re-usable routine.  I'll have to say that REBOL
> (as well as LISP, Scheme, Smalltalk, Prolog, and a few others)
> has *way* better means of doing that abstraction than FORTRAN
> or COBOL.  Even c is an "improvement" over FORTRAN/COBOL in
> that sense, but c has its own set of conceptual barriers...
> 
> >
> > Are-you an XP programmer?
> >
> 
> Hmmm...  I've read the literature, and was even in a class
> taught by Kent Beck (back when "patterns" were his focus
> rather than "XP").  I think that there are many good ideas
> in the specific set of practices distilled under the XP
> banner, but I don't think that they are universally
> applicable, nor the only good way to program (and I believe
> that the XP literature says as much).  Some projects and
> organizations simply aren't compatible with that style, and
> some situations (such as a solitary REBOL programmer trying
> out ideas, trying to come up with the definitive Killer REBOL
> Demo, or doing research) just don't have all of the official
> ingredients -- such as a team, a user, or a definite schedule.
> 
> As with all good methodologies, I highly recommend that
> professional programmers read the literature, try the ideas
> out, and then use them when appropriate in their own work.
> 
> >
> > Do you think Rebol is suited for XP?
> > 
> 
> Probably about as much as many "mainstream" languages.
> 
> In the sense of "XP as institutionalized RAD", I think REBOL
> has a number of very nice capabilities that allow one to do
> "spikes" and to construct/iterate/refactor code to let the
> user see how things are

[REBOL] Re: XP with rebol?

2002-03-11 Thread pat665

Hi Joel

> That probably makes 35 kilograms of answer to what was intended
> as a 1000 milligram question ;-) but I hope there's something
> useful in there!

Useful indeed and informative. It is always a pleasure to read you.

Patrick


- Original Message - 
From: "Joel Neely" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 2:33 PM
Subject: [REBOL] Re: XP with rebol?


> Hi, Pat,
> 
> pat665 wrote:
...
> 
> That probably makes 35 kilograms of answer to what was intended
> as a 1000 milligram question ;-) but I hope there's something
> useful in there!
> 
> -jn-
> 
> -- 
> ; sub REBOL {}; sub head ($) {@_[0]}
> REBOL []
> # despam: func [e] [replace replace/all e ":" "." "#" "@"]
> ; sub despam {my ($e) = @_; $e =~ tr/:#/.@/; return "\n$e"}
> print head reverse despam "moc:xedef#yleen:leoj" ;
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
> 

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: ['bind for dummies]

2002-03-11 Thread pat665

Oops, sorry

http://www.pat665.free.fr/doc/bind.html

Thanks

Patrick

- Original Message -
From: "Hallvard Ystad" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 11, 2002 8:59 AM
Subject: [REBOL] Re: ['bind for dummies]


Dixit pat665 (20.52 10.03.2002):
>Hi rebollers
>
>1. I have made a kind of 'bind for dummies.
>(http://www.pat665.free.fr/doc/bind.htm)

Add an L to the URL and it works!

~H

Prætera censeo Carthaginem esse delendam

--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] XP with rebol?

2002-03-11 Thread pat665

Hi Joel

I found your new article about iteration very interesting. I notice the
usage of many eXtreme Programming words such as metaphor, refactoring,
DRY...
Are-you an XP programmer ? Do you think Rebol is suited for XP?

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] ['bind for dummies]

2002-03-10 Thread pat665

Hi rebollers

1. I have made a kind of 'bind for dummies.
(http://www.pat665.free.fr/doc/bind.htm)
It is not finished yet ... Any feedback from the list will be appreciated.

2. I am still confused about 'use. To be realy honest I don't get it at all
! Again any help will be appreciated.

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: escaping characters?

2002-03-10 Thread pat665

Hi,

Like C, Rebol has some "escape characters" such as #"^/" for newline. Each
escape character is prefixed by a caret ^, so the first needed escape
sequence is #"^^" to insert a real caret in a string.

 #"^^" to insert a caret in a string
 #"^"" to insert a double quote in a string

The most usefull characters have a mnemonic notation.

 #"^(null) or "#"^@" for the null character
 #"^(tab)" or #"^-" for tabulation
 #"^(back)" or #"^H" for backspace
 #"^(line)" or #"^/" for newline
 #"^(page)" or #"^L" for newpage
 #"^(esc)" or #"^[" for escape
 #"^(del)" or #"^~" for delete

With the same notation and hexadecimal values we can produce any character.

 #"^(00)"
 ...
 #"^(FF)"


Patrick
- Original Message -
From: "Adrian" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 10, 2002 3:22 PM
Subject: [REBOL] escaping characters?


> Hello,
> I`m new to Rebol and I have a simple question. I don`t seem to
> be able to find the answer to.
> How do you print quotes? I tried print ""hello"" print "\"hello\"" and
> others. Is there a way to escape characters like you do in C and other
> languages. Also newlines (\n) . Any input is appreciated.
>
> Adrian
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] [inconsistency in object?]

2002-03-08 Thread pat665

Hi rebollers

It seems that 'self exists in any object.

 o: make object! [
  a: 1
  b: 2
  c: 3
  d: does [print [a b c]]
 ]

 >> first o
 == [self a b c d]

How come that rebol/words have no 'self ?

 >> type? rebol/words
 == object!
 >> first rebol/words
 == [end! unset! error! datatype! context! native! action! routine! op!
function! object! struct! library! port! any-type! any-word!...



Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: [understanding 'bind]

2002-03-08 Thread pat665

Thanks Romano

I am working on your material. I hope to be able to release my "'bind for
dummies" soon.

Patrick
- Original Message -
From: "Romano Paolo Tenca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 07, 2002 5:40 PM
Subject: [REBOL] Re: [understanding 'bind]


> Hi, Pat
>
> Object creation in Rebol it is a little "strange". The first times i
looked at
> Rebol, I read the collowing code:
>
> make object! [
>  a: 1
>  ]
>
> like: "create an object and set its field 'a at 1".
>
> Today I read the code in another mode:
>
>  1) create a new context with the word 'a and the word 'self
>  2) assign to the value of 'self in this new context a pointer
>  to a representation of the new context (an object! datataype)
>  3) bind the user block to the new context
>  4) evaluate the user block
>  5) return the value of the local word 'self
>
> There is little difference between an use block and an object creation:
>
> use [a] [
>  a: 1
>  ]
>
> can be read:
>
>  1) create a new context with the word 'a ()
>  2) ()
>  3) bind the user block to the new context
>  4) evaluate the user block
>  5) return the (result of  the evaluation)
>
> I've put some parens to signal the where are changes. As you can see, the
> changes are for the local 'self and the result, but both 'use and 'make
> object! do 3 things:
>
>  1) create a context
>  2) bind a block to it
>  3) evaluate the binded block
>
> 'bind simply overrides the value of the words in the block with the value
of
> the words in the local context. If a word is not defined in the local
context,
> it conserve its previous context (if any) and its previous value (if any).
>
> To be more precise: 'bind discards the old word and put in your block a
new
> word, bound to the new context.
>
> A word cannot be changed at all. It is like 10. You can put 2 where one
time
> there was 10, but you can't change 10 to make it 2.
>
> Also set-words cannot be changed at all:
>
> a: 6
>
> does not means:
>
> "change the value of a"
>
> it means:
>
>   "change the value which the context of 'a assigns to the symbol 'a"
>
> 'Set changes the context not the word.
>
> One consequence is that you can pass a word from a block of code to
another
> without changing its binding. In other words: you can use a word of
another
> context in the "actual" one.
>
> The function behaviour is a little different:
>
> func [a][a: 1]
>
> can be read:
>
>  1) create a local context with the word 'a ()
>  2) ()
>  3) bind the user block to the new context
>  4) ()
>  5) return (a pointer to the function code)
>
> The binded block is NOT immediately evaluated, it will be evaluated only
when
> the 'func result (the function! datatype) will be evaluated. There are
others
> differences, like the args stuff, the default value of local words (=none!
> instead of unset!) but for the binding it is all. We can think to a
function
> like a delayed 'use block: the evaluation - not the bind - is delayed.
>
> Now to your code:
>
> > o: make object! [
> >  print: func [b [block!]][rebol/words/print compose ["o-print-> " (b)]]
> >  test1: does [print ["test"]]
> >  test2: func [b [block!]][do b]
> >  test3: func [b [block!]][do bind b 'self]
> > ]
> >
> > o/test1
> > o/test2 [print ["Hello World!"]]
> > o/test3 [print ["Hello World!"]]
>
> In the object 'o appears the set-word print:, it becomes a word of the new
> local context.
> Every occurrence of the word 'print in the body block will be bound to the
> local context: that 'print in test1 will become a local word. Then Rebol
> evaluates the code of the object block, which creates the function test1.
Its
> body is binded the the local context of the function, which in this case
does
> not contain the word 'print, the word print is unchanged and remain bound
to
> the previous context (the object context).
>
> When you invoke o/test1, will be evaluated the word 'print, bound to the
> object context.
>
> When you invoke o/text2, with the block [print ["Hello World!"]], the word
> 'print in this block is by default bound to the global context. The
funtion
> test2 executes this block without any changes, so the value of 'print will
be
> the same of the global 'print.
>
> The funtion test3, instead, binds this block the object context (addressed
> with 'self); this context contains the word 'print, so the value of 'print
> changes and becomes the same of the local function 'print.
>
> Hope this help.
>
> ---
> Ciao
> Romano
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
su

[REBOL] [understanding 'bind]

2002-03-07 Thread pat665

Hi rebollers, Hi Romano

I am making progress on the exploration of the 'bind command. I have
discovered it can be used for functions too. This is a short example where
'bind is used to access a locally defined 'print function instead of the
global one.

rebol []
o: make object! [
 print: func [b [block!]][rebol/words/print compose ["o-print-> " (b)]]
 test1: does [print ["test"]]
 test2: func [b [block!]][do b]
 test3: func [b [block!]][do bind b 'self]
]

o/test1
o/test2 [print ["Hello World!"]]
o/test3 [print ["Hello World!"]]
halt

Results are :

o-print->  test
Hello World!
o-print->  Hello World!

Is it a good example ?
Has anyone a practical illustration for that kind of usage ?
Remarks and critics will be appreciated.

Patrick

PS : I have in mind to produce a small "'Bind for dummies" html document.

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: [subject: error and trial]

2002-03-06 Thread pat665

Hi Ladislav,

I vote for Unbound?

Patrick

- Original Message -
From: "Ladislav Mecir" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 8:35 AM
Subject: [REBOL] Re: [subject: error and trial]


> Hi all,
>
> thanks to Holger for his explanation,
>
> <>
> ...
> A better name would be
> unbound?.
> ...
> <>
>
> I feel, that the word 'undefined? may be confusing too. If we can agree on
a
> better notion, I will change my text. Any votes (or other candidates)?
>
> Cheers
> L
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] The List is Back

2002-03-05 Thread pat665

Yeah the list is back !

I have so much material that I printed most of it. My dessert will be Holger
contribution. I have to thank Ladislav for his always very short posts "qui
font mouche à tous les coups". I have a lot from Joel too about bind and
use.
And I have discovered from Andrew's post, the existence of rebol/words/x
that allows one to access the global x from inside a context/object.

>> x: 100
== 100
>> for x 1 3 1 [print [x " <-> " rebol/words/x]]
1  <->  100
2  <->  100
3  <->  100
>>

Great day for the list !

Patrick



 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: [subject: error and trial]

2002-03-05 Thread pat665

Hi Ladislav,

I was sure I was missing something. Very clever indeed  and elegant once one
has got it ! May I respectfully suggest that a little note or comment in
contexts.html would help the reader ?


Patrick

- Original Message -
From: "Ladislav Mecir" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 8:46 AM
Subject: [REBOL] Re: [subject: error and trial]


> Hi Pat,
>
> your code is almost correct, it just omits one special case. See the
> following example:
>
> >> type? a: make error! "my error"
> == error!
> >> u-def? 'a
> == true
> >> undefined? 'a
> == false
>
> Cheers
> L
>
>
> --
> From: "pat665"
> Sent: Monday, March 04, 2002 10:54 PM
> Subject: [REBOL] [subject: error and trial]
>
>
> Hi rebollers,
>
> I am coming again with a question posted on November the 23th 2001. At the
> time, I thought I had understood Ladislav's answer, but the truth is I am
> not so sure.
>
> All began while reading Ladislav's contexts.html...
>
> "There are Words that do not have the ability to refer to Rebol values. We
> can call them undefined Words. [ ...] This function can be used to find
out,
> if a Word is undefined: "
>
>  undefined?: func [
> {determines, if a word is undefined}
> word [any-word!]
> ] [
> error? try [error? get/any :word]
> ]
>
> My question was "why use error? two times?". In my eyes, a more simple
> version of the function could be :
>
>  u-def?: func [
> {determines, if a word is undefined}
> word [any-word!]
> ] [
> error? try [get/any :word]
> ]
>
> We can test these two functions whith Ladislav's own example of an
undefined
> word.
>
> a-word: first first rebol/words ;== end!
>
>  >> undefined? a-word
>  == true
>  >> u-def? a-word
>  == true
>
>  >> undefined? 'print
>  == false
>  >> u-def? 'print
>  == false
>
> I am not pretending I am right, because I must be wrong! but I deeply need
> to understand where and why !
>
> Patrick
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Bind and Use

2002-03-05 Thread pat665

Hi Ladislav,

There is no problem of reliability here. Andrew simply changed the subject.
Previous subject was "Re diversion".

Patrick
- Original Message -
From: "Ladislav Mecir" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 8:56 AM
Subject: [REBOL] Re: Bind and Use


> Hi all,
>
> it looks like both me and e-scribe missed the original message from Pat.
The
> reliability of delivery seems questionable?
>
> Cheers
> L
>
> From: "Andrew Martin"
> Sent: Tuesday, March 05, 2002 3:23 AM
> Subject: [REBOL] Bind and Use
>
>
> Patrick wrote:
> > I would like to know more about bind and use.
>
> 'bind is used to make Rebol script written outside a context, appear to be
> written inside a context. For example:
>
> >> Test: [print [1 2 3]]
> == [print [1 2 3]]
> >> x: make object! [
> [print: func [x] [rebol/words/print ["Result:" x]]
> [f: does [do bind Test 'self]
> []
> >> x/f
> Result: 1 2 3
> >> Test: [
> [print [4 5 6]
> [print [7 8 9]
> []
> == [
> print [4 5 6]
> print [7 8 9]
> ]
> >> x/f
> Result: 4 5 6
> Result: 7 8 9
> >>
>
>
> 'use allows one to reuse words. For example:
> >> use [print] [
> [print: func [x] [rebol/words/print ["Result:" x]]
> [print 1 + 2
> []
> Result: 3
> >>
> >> print "test"
> test
> >>
>
> I hope that helps!
>
> Andrew Martin
> Working for the Rebolution...
> ICQ: 26227169 http://valley.150m.com/
> -><-
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] [subject: error and trial]

2002-03-04 Thread pat665

Hi rebollers,

I am coming again with a question posted on November the 23th 2001. At the
time, I thought I had understood Ladislav's answer, but the truth is I am
not so sure.

All began while reading Ladislav's contexts.html...

"There are Words that do not have the ability to refer to Rebol values. We
can call them undefined Words. [ ...] This function can be used to find out,
if a Word is undefined: "

 undefined?: func [
{determines, if a word is undefined}
word [any-word!]
] [
error? try [error? get/any :word]
]

My question was "why use error? two times?". In my eyes, a more simple
version of the function could be :

 u-def?: func [
{determines, if a word is undefined}
word [any-word!]
] [
error? try [get/any :word]
]

We can test these two functions whith Ladislav's own example of an undefined
word.

a-word: first first rebol/words ;== end!

 >> undefined? a-word
 == true
 >> u-def? a-word
 == true

 >> undefined? 'print
 == false
 >> u-def? 'print
 == false

I am not pretending I am right, because I must be wrong! but I deeply need
to understand where and why !

Patrick

PS: this message has been posted twice because I realized that I did not use
the right "from" (the one who is listed) for the first one. You should
receive this one first if I am not wrong (again).

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Diversion

2002-03-04 Thread pat665

Thanks Romano

I will certainly ask for help about binding. I have avoided the subject for
a while because I found it too difficult. I was hoping that I was ready now.
Unfortunately, as I was re reading some Ladislav stuff this weekend, I
discovered some code I do not quite understand.

Patrick
- Original Message -
From: "Romano Paolo Tenca" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 5:07 PM
Subject: [REBOL] Re: Diversion


> Hi Pat,
>
> I'm here. About binding, ask and i'll try to answer, for what I know.
>
> I've found Ladislav's site always down in the last weeks.
>
> Ladislav: you should find another web server: at least for HTML pages
there
> are plenty of fast free services.
>
> ---
> Ciao
> Romano
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Diversion

2002-03-04 Thread pat665

Hi Ladislav,

It is still invisible to me. I will try again at home . However it would be
cool to have your work available at RebolForce, wouldn't it ?

Patrick
- Original Message -
From: "Ladislav Mecir" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 4:37 PM
Subject: [REBOL] Re: Diversion


> Hi Pat,
>
> strange, it is accessible for me, don't know what's up?
>
> Cheers
> Ladislav
>
> <>
>
> Hi
>
> At last, I am not alone in my loneliness !
>
> Even Ladislav's Website seems to be down (http://www.sweb.cz/LMecir/). By
> the way, I would like to know more about bind and use. If anyone has
> examples, explanations, even raw material ?
>
> Joel, Ladislav, Gregg, Carl, Romano, Gabrielle, Andrew, Brett, Alan,
> Maarten, Petr, Allen, Robert, Sunanda, Jason ?
>
> Patrick
>
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Diversion

2002-03-04 Thread pat665

Hi

At last, I am not alone in my loneliness !

Even Ladislav's Website seems to be down (http://www.sweb.cz/LMecir/). By
the way, I would like to know more about bind and use. If anyone has
examples, explanations, even raw material ?

Joel, Ladislav, Gregg, Carl, Romano, Gabrielle, Andrew, Brett, Alan,
Maarten, Petr, Allen, Robert, Sunanda, Jason ?

Patrick

- Original Message -
From: "Terry Brownell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 9:02 AM
Subject: [REBOL] Diversion


>
> I've noticed that the weekend postings to this board seem to drop by at
least 90%.  Is that a sign that Rebol is a workplace diversion?
>
> TB
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] loneliness

2002-03-01 Thread pat665

Hi rebollers,

Where are you ? I am receiving almost nothing from the list for two days.
Something happening ?

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Morphing (was: About CONTINUATIONS)

2002-02-28 Thread pat665

Hi

I found this site on scheme.
http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme.html .
You can download it entirely. I did know anything about this language
before. I discovered it has many many things that reminds me Rebol.

Patrick


- Original Message -
From: "Chris Double" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 28, 2002 10:48 AM
Subject: [REBOL] Re: Morphing (was: About CONTINUATIONS)


> > Where would a developer begin, if one had an interest in implementing
> Scheme
> > in REBOL?
>
> "Lisp in Small Pieces" is the name of the book you want. It's an excellent
> book on writing various Lisps with source code in Scheme. Converting this
to
> Rebol shouldn't be too difficult.
>
> Chris.
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: About View "Skinz" Contest

2002-02-25 Thread pat665

Hi

The FX5 site (both HTML or RebSite) seams out of order (impossible to test
anything).

Patrick

- Original Message -
From: "Etienne ALAURENT" <[EMAIL PROTECTED]>
To: "Rebol-list" <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 12:32 AM
Subject: [REBOL] About View "Skinz" Contest


> Hi all,
>
> I noticed the View "Skinz" Contest. It's a very good idea indeed :-)
>
> 2 remarks :
> -1) Don't forget that winamp is for Window$. Many people don't use
> Window$ but Apple or Linux or others OS with View. If you want to make
> an Mp3 player for everybody, you can't do this specially for Window$ OS.
> -2) About my skins : yes, I built skins for View. Everybody can use them
> for any app. But it was a test. The code is not optimized, can contain
> bugs, is slow on slower machines (especially complex widgets), and will
> not run with the next View version (this version will be derived from
> IOS with better graphical support, I presume). The net update is not
> optimal (the best approach is to implement a sharing file system, with
> file replication, like in IOS => this could be an interesting contest).
> Other thing, I would like to see different implementations for skinning,
> because I think other people could have other good ideas. Try for
> instance the FX5 skin, the Dockimbel's Winskin, ...
>
> --
> regards.
>
> ---
> Etienne
> ---
>
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: [subject: escape characters]

2002-02-24 Thread pat665

Thanks Joel, Romano, Gabrielle, and Gregg

I  had already explored the Rebol/Core ( both the PDF and the .HTML
version ) searching for ^(tab). Unfortunately in my case, the caret ^ was
missing in the table I was looking for ...

It is quite often that I have the feeling "I read that somewhere but where
was it" .

Patrick
- Original Message -
From: "Joel Neely" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 24, 2002 2:31 PM
Subject: [REBOL] Re: [subject: escape characters]


> Hi, Pat,
>
> pat665 wrote:
> >
> > ... What I would like now is to populate a third column
> > with a more symbolic notation. For now, I have got only
> > three item for this column.
> >
>
> According to
>
> http://www.rebol.com/docs/core23/rebolcore-16.html
>
> in the section on "Strings":
>
> You can include special characters and operations in strings
> by prefixing them with a caret (^). Special characters include:
>
>  Special Characters
>
> Character  Definition
> "  Inserts a double quote (").
> }  Inserts a closing brace (}).
> ^  Inserts a caret (^).
> /  Starts a new line.
>(line)  Starts a new line.
> -  Inserts a tab.
>(tab)   Inserts a tab.
>(page)  Starts a new page.
>(letter)Inserts control-letter (A-Z).
>(back)  Erases one character left of the insertion point.
>(null)  Inserts a null character.
>(escape)Inserts an escape character.
>(xx)Inserts an ASCII character by hex (xx) number.
>
> and in the section on "Other Values / Character":
>
> Characters can include escape sequences that begin with a
> caret (^) and are followed by one or more characters of
> encoding. This encoding can include the characters #"^A"
> to #"^Z" for control A to control Z (upper- and lower-case
> are the same):
>
>   #"^A" #"^Z"
>
> Following is a table of control characters that can be
> used in REBOL.
>
>Control Characters
>
> Character Definition
> #"(null)" or #"@" null (zero)
> #"(line)", #"/" or, #"."  end of line
> #"(tab)" or #"-"  horizontal tab
> #"(page)" new page (and page eject)
> #"(esc)"  escape
> #"(back)" backspace
> #"(del)"  delete
> #"^"  caret character
> #"^"" quotation mark
> #"(00)" to #"(FF)"hex forms of characters
>
> The entries all (except #"^"") contain the typo that the
> ^ prefix is omitted.
>
> Also, notice that ^(esc) works for both character and string
> literals, while ^(escape) works only in strings.
>
> -jn-
>
> --
> ; sub REBOL {}; sub head ($) {@_[0]}
> REBOL []
> # despam: func [e] [replace replace/all e ":" "." "#" "@"]
> ; sub despam {my ($e) = @_; $e =~ tr/:#/.@/; return "\n$e"}
> print head reverse despam "moc:xedef#yleen:leoj" ;
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: [subject: escape characters]

2002-02-24 Thread pat665

Thanks Gregg

Modifying your program, I can produce two columns. What I would like now is
to populate a third column with a more symbolic notation. For now, I have
got only three item for this column.

1#"^A"
2#"^B"
3#"^C"
4#"^D"
5#"^E"
6#"^F"
7#"^G"
8#"^H"  #"^(back)"
9#"^-"   #"^(tab)"
10   #"^/"  newline
11   #"^K"
12   #"^L"
13   #"^M"
14   #"^N"
15   #"^O"
16   #"^P"
17   #"^Q"
18   #"^R"
19   #"^S"
20   #"^T"
21   #"^U"
22   #"^V"
23   #"^W"
24   #"^X"
25   #"^Y"
26   #"^Z"
27   #"^["
28   #"^\"
29   #"^]"
30   #"^!"
31   #"^_"


Patrick

- Original Message -
From: "Gregg Irwin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 23, 2002 8:34 PM
Subject: [REBOL] Re: [subject: escape characters]


> Hi Pat,
>
> I think it's only the low ASCII characters that are escaped.
>
> >> for i 1 31 1 [prin mold to-char i]
>
#"^A"#"^B"#"^C"#"^D"#"^E"#"^F"#"^G"#"^H"#"^-"#"^/"#"^K"#"^L"#"^M"#"^N"#"^O"#
> "^P"#"^Q
> "#"^R"#"^S"#"^T"#"^U"#"^V"#"^W"#"^X"#"^Y"#"^Z"#"^["#"^\"#"^]"#"^!"#"^_"
>
> --Gregg
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] [subject: escape characters]

2002-02-23 Thread pat665

Hi rebollers,

Like the C programming language, rebol has some espace characters. One
example is #"^/" for newline.

I have found some others, but failed to find a complete list. These are what
I have found so far :

#"^(tab)" or #"^-" for tabulation
#"^(back)" or #"^H" for backspace
#"^/" for newline

Have you more ?

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: An object by another name

2002-02-19 Thread pat665

Hi

I've got an answer for you.

>> num: ask "Car number please?"
Car number please?3
== "3"
>> ChosenCar: get to-word join "car" num
>> chosencar/model
== "Riviera"
>>

Patrick

PS: I learned this method from Ingo Hohmann from the rebol-list a few month
ago.


- Original Message -
From: "Martin Middleton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 19, 2002 8:52 PM
Subject: [REBOL] An object by another name


> Let's say I have the following:
>
> car: make object! [
>  make: "Ford"
>  model: "Custom 500"
>  color: white
> ]
>
> car1: make car [
>model: "Escort"
>color: red
> ]
>
> car2: make car [
>  model: "Taurus"
>  color: blue
> ]
>
> car3: make car [
>  make: "Buick"
>  model: "Riviera"
>  color: silver
> ]
>
> And assume that my REBOL program asks the user the to enter a number
> between 1 and 3 and that I save the response in something called
car-choice.
>
> How can I "combine" (probably a bad choice of terminology) the value "car"
> and the user's response so that I end up with a value I can use to refer
to
> the proper object. In other words, if the user enters "2", I want to be
> able to do something like:
>
>  car-chosen: car2 [I know I can't just "join" the two values to create
> a pointer to car2]
>
> so that later in the script I can refer to the variables within car-chosen
as
>
>  print car-chosen/model
>
> which should display "Taurus".
>
>
> - martin
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] [transparency mystery]

2002-02-13 Thread pat665

Hi reboller,

How come that I can't get any transparency for buttons ?

Let me explain a bit ...

I was reading the "How to Create Custom Buttons how-to" when I noticed that
all the button images had white background. Furthermore every example in the
how-to uses a white background for the layout. In fact, in one changes the
layout background to blue for example, the result is ugly : rectangular
button with white corner.

Using PaintShop Pro, I started to experiment creating button with
transparent background. I tried .GIF and .PNG in vain. The result was
rubbish.

I then remembered Etienne ALAURENT aqua-skin. Looking around I found very
pretty round cornered button (button_up.png for example). In PaintShop Pro,
these buttons have magenta background. However, when I substitute the
original black backgrounded rebol button, with Etienne ALAURENT button, the
result is still rubbish.

What am I missing ?
Does anyone had any idea to make transparency ?

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] [transparency mystery] ii

2002-02-13 Thread pat665

[As Windows froze while I was in Outlook - I'am sending this message again]

Hi reboller,

How come that I can't get any transparency for buttons ?

Let me explain a bit ...

I was reading the "How to Create Custom Buttons how-to" when I noticed that
all the button images had white background. Furthermore every example in the
how-to uses a white background for the layout. In fact, in one changes the
layout background to blue for example, the result is ugly : rectangular
button with white corner.

Using PaintShop Pro, I started to experiment creating button with
transparent background. I tried .GIF and .PNG in vain. The result was
rubbish.

I then remembered Etienne ALAURENT aqua-skin. Looking around I found very
pretty round cornered button (button_up.png for example). In PaintShop Pro,
these buttons have magenta background. However, when I substitute the
original black backgrounded rebol button, with Etienne ALAURENT button, the
result is still rubbish.

What am I missing ?
Does anyone had any idea to make transparency ?

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: rugby: object functions?

2002-02-13 Thread pat665

Hi

Here is a solution.

>> do %rugby.r
>> fob: make object! [
[a: func [] [print "a" ]
[]
>> fn: get in fob 'a
>> serve [fn ]

HTH

Patrick

- Original Message - 
From: "David Hawley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 13, 2002 12:40 AM
Subject: [REBOL] rugby: object functions?


> Just starting to play with rugby. But my first diff from examples was an 
> attempt to serve object functions.
> 
> fob: make object! [
> a: func [] [print "a" ]
> ]
> 
> trying to server fob and fob/a give the same error as seen below. It 
> would be nice to be able to serve functions in an objectby just passing 
> the object, but perhaps this makes no sense.
> 
> Dave
> 
>  >> serve/with [fob ] tcp://:9092
> a
> ** Script Error: to-word is missing its value argument
> ** Where: build-stubs
> ** Near: append stub build-proxy/with to-word entry
> 
>  >> serve/with [fob/a ] tcp://:9092
> a
> ** Script Error: to-word is missing its value argument
> ** Where: build-stubs
> ** Near: append stub build-proxy/with to-word entry
> 
> 
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
> 

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Rugby-core syntax

2002-02-10 Thread pat665

Hi Petr

Thanks for warming me up. I feel better. I like Maarten's idea to build a
simplified rugby. I spend some hours testing the new rugby-core and updating
my notes and you can imagine I was at least surprised by Maarten answer
especially after his ...

>I invite you all to use it and test it, if you find bugs, report them to
me.
>I'll fix it asap.

I think simplicity and consistency are important in software.

You were the first to point that
serve/witch [now] tcp://:9002
is not consistent with
do get-rugby-service http://localhost:9002

And as rugby is now only HTTP, it seems to me that
serve/witch [now] tcp://:9002
can be simplified like this
serve/with [now] 9002
or like this
serve/port [now] 9002

However Maartens own rugby. It's his baby. One he can be proud of . I am
confident he will let us know if he wants some more testing and suggestions,
or maybe just testing.

Patrick

- Original Message -
Sent: Saturday, February 09, 2002 6:06 PM


> Received: from trz.cz (ppp956.ostrava.worldonline.cz [212.90.240.85])
> by moon.moravia-steel.cz (8.11.6/8.11.6) with ESMTP id g19HNFS05639
> for <[EMAIL PROTECTED]>; Sat, 9 Feb 2002 18:23:16 +0100
> Message-ID: <[EMAIL PROTECTED]>
> Date: Sat, 09 Feb 2002 18:10:28 +0100
> From: Petr Krenzelok <[EMAIL PROTECTED]>
> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.7)
Gecko/20011221
> X-Accept-Language: cs, en-us
> MIME-Version: 1.0
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Re: [rugby-core release]
> References: <001901c1b171$df08c800$3401a8c0@pat665>
<001501c1b182$d374da40$[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 7bit
> X-archive-position: 16848
> X-listar-version: Listar v0.129a
> Sender: [EMAIL PROTECTED]
> Errors-to: [EMAIL PROTECTED]
> X-original-sender: [EMAIL PROTECTED]
> Precedence: bulk
> Reply-to: [EMAIL PROTECTED]
> X-list: rebol
>
> Maarten Koopmans wrote:
>
> >Thanks for the tesing, but this is all known behaviour and won't change
for
> >know.
> >
> I am sorry I can't agree here. Rugby is very young. It is not used by
> thousands of users to be reluctant to changes. Simplification is alway a
> good thing. I am surprised by your statement, as you e.g. agreed to
> "refinementise" basic functions. Still some function names/calling
> conventions are confusing, so why not to change it?
>
> so e.g.
>
> serve/with [now] http://:9002
> serve/with [now] xml-rpc://:9002
>
> could be informative, but
>
> serve/with [now] 9002 ; is also nice suggestion
>
> or even:
>
> serve [now] http://:9002
> serve/default [now]
>
> is one of other possible conventions, but following is surely confusing:
>
> serve/witch [now] tcp://:9002
> do get-rugby-service http://localhost:9002
>
> Take it following way - if ppl ask, they are somehow not understanding
> something = confused.
>
> So, please, don't lock ourselves with compatibility issues, especially
> in very early stages of product development ...
>
>
> -pekr-
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Ann: Rugby major security update

2002-02-04 Thread pat665

Hi Maarten

I am using rugby XPi beta 1 . Do I need to download this update ?

Patrick

- Original Message -
From: "Maarten" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 04, 2002 9:45 AM
Subject: [REBOL] Ann: Rugby major security update


> All,
>
> The bug Romano described in his email this weekend has been fixed in Rugby
> version 4.3.1
>
> This very nasty bug would allow anyone who studied the Rugby message
format
> to execute aribitrary code on the server due to a 'do' instead of a 'load'
in
> the function that decompresses the molded message.
>
> I urge everyone to upgrade ASAP, as using versions earlier than 4.3.1 will
> make you very vulnerable.
>
> Many thanks to Romano for exposing this bug and providing the sample code.
>
> The new version is available at:
>
> http://www.rebolforces.com/~erebol/download.htm
>
>
> The mirror at www.vrijheid.net will be updated later.
>
> --Maarten
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: ANN: make-doc-pro 1.0.2

2002-02-01 Thread pat665

Hi Robert

Testing the new make-doc-pro.r, I got some errors when I selected the
make-doc-pro.txt file.

Unknown TAG found: title
Unknown TAG found: cells
Unknown TAG found: cells
Unknown word or style: =fonts
Misplaced item: [normal: ]
Unknown word or style: =fonts
Misplaced item: [normal: ]
Unknown word or style: =fonts
Misplaced item: [normal: ]
Unknown word or style: =fonts
Misplaced item: [normal: ]


Patrick

- Original Message -
From: "Robert M. Muench" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 01, 2002 10:15 AM
Subject: [REBOL] Re: ANN: make-doc-pro 1.0.2


> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> > pat665
> > Sent: Thursday, January 31, 2002 9:29 PM
> > To: [EMAIL PROTECTED]
> > Subject: [REBOL] Re: ANN: make-doc-pro 1.0.2
>
> > I just download the new make-doc-pro-102.zip. Running make-doc-pro.r
gives
> > an error :
> >
> > ** Script Error: include has no value
> > ** Where: do-boot
> > ** Near: include %public/rm_library.r
> > destinationdirectory: make file!
> > >>
>
> Hi, grrr... yep I made a mistake. It's fixed now.
>
> > Another little thing, in the make-doc-pro.txt "introduction" is
misspelled.
>
> Thanks ;-). Robert
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: ANN: make-doc-pro 1.0.2

2002-01-31 Thread pat665

Hi robert,

I just download the new make-doc-pro-102.zip. Running make-doc-pro.r gives
an error :

** Script Error: include has no value
** Where: do-boot
** Near: include %public/rm_library.r
destinationdirectory: make file!
>>

Another little thing, in the make-doc-pro.txt "introduction" is misspelled.

===Introdcution

Patrick
- Original Message -
From: "Robert M. Muench" <[EMAIL PROTECTED]>
To: "Rebollist" <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 8:11 PM
Subject: [REBOL] ANN: make-doc-pro 1.0.2


Hi, I just released make-doc-pro version 1.0.2 You can find it on my
homepage.
There are some bugs fixed:

1.0.2
Compiling two times the same file resulted in wrong header code for the
second
run.

Bullets and number can now be used inside tables. Use newline to seperate
the
bullets/enums from each other. (see test2.txt for example).

Empty table cells are now displayed correctly.

Please note I "changed" the copyright stuff a bit, in that the make-doc-pro
footer has to stay there. Please read the copyright section... and I hope
this
won't flood my mailbox as in the case of Rugby ;-))

Let me know what you think about it and what new features you would like to
see.

--
Robert M. Münch
IT & Management Freelancer
Mobile: +49 (0)177 2452 802
Fax   : +49 (0)721 8408 9112
Web   : http://www.robertmuench.de

--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.


 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: Implementing the associative model of data (tm) in Rebol

2002-01-29 Thread pat665

Hi Petr

To get more info, you need to download for free "Sentences personal
edition". You will find then that several .PDF documentations are available.


Patrick
- Original Message -
From: "Petr Krenzelok" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 29, 2002 9:31 AM
Subject: [REBOL] Re: Implementing the associative model of data (tm) in
Rebol


> I just read the white-paper and I don't understand one thing - it talks
about
> advantages upon relational model, while it doesn't show single example of
how
> data are stored, and what tool to use for querying. It is very easy to say
SQL
> is something to be replaced, but then they should say in what form are
> queries/views applied. Or I just don't understand it deeply enough yet. Do
you
> have any practical example of associative model usability? What exactly do
> schemas and metadata describe?
>
> Thanks,
> -pekr-
>
> Andrew Martin wrote:
>
> > So I had a look at the white paper and implemented the flight example in
> > Rebol. Here's the contents of %Flight.r:
> >
> > "Flight BA1234"
> > "London Heathrow"
> > 12/Aug/98
> > 10:25
> > "arrived at"
> > "on"
> > "at"
> > [1 5 2]
> > [8 6 3]
> > [9 7 4]
> > "Concorde"
> > [10 6 11]
> >
> > Basically a block of Rebol values; string!, date!, time! and block!. The
> > associations are the three integers in blocks at the end. Then I wrote
this
> > to join up the associations:
> >
> > Database: load %Flight.r
> >
> > SVO: function [Database [block!] Item] [Subject Verb Object] [
> > either block? Item [
> > Subject: Item/1
> > Verb: Item/2
> > Object: Item/3
> > Subject: SVO Database Database/:Subject
> > Verb: SVO Database Database/:Verb
> > Object: SVO Database Database/:Object
> > reduce [Subject Verb Object]
> > ] [
> > Item
> > ]
> > ]
> >
> > foreach Item Database [
> > print SVO Database Item
> > ]
> >
> > And running the above script gives the output:
> >
> > Flight BA1234
> > London Heathrow
> > 12-Aug-1998
> > 10:25
> > arrived at
> > on
> > at
> > Flight BA1234 arrived at London Heathrow
> > Flight BA1234 arrived at London Heathrow on 12-Aug-1998
> > Flight BA1234 arrived at London Heathrow on 12-Aug-1998 at 10:25
> > Concorde
> > Flight BA1234 arrived at London Heathrow on 12-Aug-1998 at 10:25 on
Concorde
> > >>
> >
> > Note that I've added the "on Concorde" part to the example.
> >
> > I'll think I'll work up some more magic stuff and thread my HTML dialect
> > through it, so I can create sentences (SVOs) through a browser
> > interactively.
> >
> > Andrew Martin
> > ICQ: 26227169 http://valley.150m.com/
> > -><-
> >
> > --
> > To unsubscribe from this list, please send an email to
> > [EMAIL PROTECTED] with "unsubscribe" in the
> > subject, without the quotes.
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] security annoyance

2002-01-20 Thread pat665

Hi Rebollers

I am experiencing a security annoyance regarding the 'do command.

Let me illustrate this with a minimal (not to be tested) rebol program :

rebol [title: "security annoyance"]
do %../include/foo.r
foo
halt

The 'do line always ask me for permission to execute %foo.r. The only way to
get through is to move/copy the include directory in the program directory.
As I intend to use the include directory from various locations, it is not
the best solution.

I have tried several work-around unsuccesfully :
- the secure function
- the rebol.exe -s
- the rebol.exe --secure none

My rebol directory is organized like this :

/d/rebview <-- rebol home
/d/rebview/local   <-- base for all my programs
/d/rebview/local/p1<-- a program directory
/d/rebview/local/p2<-- a program directory
...
/d/rebview/local/pX<-- a program directory

/d/rebview/local/include   <-- the place for reusable program

Any idea ?

Patrick

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




[REBOL] Re: RANDOM's & PICK's args

2002-01-20 Thread pat665

Hi Donald

With Rebol, you can use random directly on a block of string to get the same
block randomized.

colors: ["red" "green" "yellow" "blue" "white"]
while [not tail? colors] [
colors: random colors
print first colors
remove colors
]

;blue
;yellow
;green
;red
;white

HTH

Patrick
- Original Message -
From: "Donald Dalley" <[EMAIL PROTECTED]>
To: "Mail List REBOL" <[EMAIL PROTECTED]>
Sent: Sunday, January 20, 2002 1:03 AM
Subject: [REBOL] RANDOM's & PICK's args


> Hi, REBOLs:
>
> I am trying to PICK a set (say 3-9) of random, non-duplicated strings out
> of a block of 50. The strings are to be presented as a row of BUTTONs.
> BUTTON needs a string...
>
> How do we use >both< a RANDOM range and a seed, at the same time?
> The docs don't show how and all efforts, so far, have failed.
>
> Also, PICK always complains that the index arg is of the wrong type, when
I
> try to combine the two procedures. I used a word & a number, but it didn't
> work with either.
>
> The following are some ideas I used, but getting a random string has never
> worked, so it has become messy:
>
>   balls: [ "String 1" "String 2" "String 3 " ... "String 50" ]
>   b-seed: RANDOM 50
>
>pick-string FUNC [ "Picks a random string from balls." balls b-seed][
>PICK balls (PROBE b-seed)
>   ; yes, more work is needed here
>]
>
> Tried to display each string with something like
> BUTTON pick-string MAROON 50x50 FONT-SIZE 32
> but now the string does not display in the button.
>
> I was thinking that removing each string from balls, when picked, would
> ensure that there were no duplicates, but I haven't tried yet. CLEAR,
CHANGE
> & REMOVE are like using a chainsaw, therefore I presume REPLACE is needed
to
> delete just one element from a series/block. How can REPLACE be used to
not
> leave a blank string in the block, so that it can't be picked? This would
> also affect RANDOM's range the way I am using it.
>
> Any help/ideas will be appreciated.
>
> Donald Dalley
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

 
__
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.




  1   2   >