[REBOL] Rebol friendly hosting providers Re:

2000-02-18 Thread bobr

At 12:56 AM 2/18/00 +0100, [EMAIL PROTECTED] wrote:
Hi rebols!

I own a web hosting company (happysite.net) and I'm lobbying Rebol
technologies to create a web host certification programme "Rebol friendly
hosting provider". Could you help me out by answering the following
questions?

1) Do you make rebol cgi scripts ?
a) yes
b) no
answer: 
a

 
2) Would you give preference to an isp certified by Rebol technologies as a
"Rebol friendly hosting provider"?
a) yes
b) no
answer: 
a


3) Do you find the following price: USD 20 for 200Megs with native rebol
hosting
a) too high
b) just right
c) dirt cheap
answer:
b


4) Any other comments
answer:
- happysite.net could use a page describing details of merchant account.
micropayments ($1 or below) particularly. 
I have a download in mind that I only want to charge
a very small amount for.

- we might go beyond 600mb of storage. what will be costs then?

- what is cost of periodic backup option? [suggestion: $10 over media cost]

- I hope the preinstalled scripts includes a shopping cart.
 [in that case I could start sending folks your way immediately]


Thanks for your time,

Ricardo Liberato


;# mailto: [EMAIL PROTECTED]



[REBOL] how to format the result of divide operation

2000-02-18 Thread Tiana . Zhang

Hello,

Can anyone tell me how to format the result of divide operation?

Say, 1 / 3 gave me the result 0.
what can I do in order to get 0.3 which has only one digit after the point?

Thanks for any information.

Tiana



[REBOL] how to format the result of divide operation Re:

2000-02-18 Thread support

Do you also want this to "round off" so that .36454 would be reflected .4 ?

john


At 0838 2/18/00 -0600, you wrote:
Say, 1 / 3 gave me the result 0.
what can I do in order to get 0.3 which has only one digit after the point?



[REBOL] Reading files from a web page requiring login/password submission Re:

2000-02-18 Thread mike . yaunish

At 01:53 PM 2/17/2000 -0500, you wrote:
You will need the http-post to assist you with doing this.
See: http://www.nmia.com/~rebol/web/http-post.html

Hi all.

I'm mostly a newbie as a REBOL programmer,
but I have been actively following the threads
in this forum.

I spent roughly 2 hours yesterday reading
REBOL/Core  documentation and trying to
build a script that would automate a cumbersome
process we go through each week: downloading
specific files from a web page whose file names
are constructed to include a form of a date.

I was *blown away* at how REBOL facilitated this;
I now have a good glimpse of what you folks have
been raving about.

My question: for those web pages that I interface
with manually that either have fields requiring
a login and password submission (and maybe the
click of a SUBMIT button as well) is there any way
I can use REBOL/Core to authorize myself (satisfy login
requirements) such that I can proceed to further
pages of interest ?  In most of these cases, direct ftp
access is not enabled (otherwise I would employ ftp).

I'm thinking I need to wait for /Command to do something
of this type ?

Thanks in advance for any help ...

Mike Mastroianni



-- Mike Yaunish --



[REBOL] Reading files from a web page requiring login/password submission Re:(2)

2000-02-18 Thread mjmalpha

Thanks Mike!

Mike Mastroianni

-Original Message-
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, February 18, 2000 10:18 AM
Subject: [REBOL] Reading files from a web page requiring login/password
submission Re:


At 01:53 PM 2/17/2000 -0500, you wrote:
You will need the http-post to assist you with doing this.
See: http://www.nmia.com/~rebol/web/http-post.html

Hi all.

I'm mostly a newbie as a REBOL programmer,
but I have been actively following the threads
in this forum.

I spent roughly 2 hours yesterday reading
REBOL/Core  documentation and trying to
build a script that would automate a cumbersome
process we go through each week: downloading
specific files from a web page whose file names
are constructed to include a form of a date.

I was *blown away* at how REBOL facilitated this;
I now have a good glimpse of what you folks have
been raving about.

My question: for those web pages that I interface
with manually that either have fields requiring
a login and password submission (and maybe the
click of a SUBMIT button as well) is there any way
I can use REBOL/Core to authorize myself (satisfy login
requirements) such that I can proceed to further
pages of interest ?  In most of these cases, direct ftp
access is not enabled (otherwise I would employ ftp).

I'm thinking I need to wait for /Command to do something
of this type ?

Thanks in advance for any help ...

Mike Mastroianni



-- Mike Yaunish --




[REBOL] empty context possible? Re:

2000-02-18 Thread VoToNi

In einer eMail vom 16.02.00 14:05:52 (MEZ) Mitteleuropäische Zeit schreibt 
[EMAIL PROTECTED]:

 Is it possible to create an empty context and put only selected words in? 
for 
 
  security-reasons, like postscript does.
  
(i lost her mail, so by hand :)

Gabrielle answered ([EMAIL PROTECTED])
Yes, it is, but you actually need to create a context with all the
words set to UNSET!. You can refer to the message 95706 I posted
to this list on 31st January for an example (you can find it on
http://www.rebol.org/ or request it to SELMA).

I did and got something similar  to this, but was able to hack it with going 
to global scope by "/probe" instead of "probe". so for security this is not 
enough!! (Gabrielle, please don't try this with "/delete rebol.exe"!!! 
But thank you for the adding-of-contexts-example! I understand this stuff now 
much better! :)

REBOL[]

allowed: make object! [ ; only this two allowed, not "probe" for 
example..
 print: get in system/words 'print
 none: system/words/none
]
all-unsets: use first system/words ['system]

code: [print "Hello!"]
malicious-code: [/probe "hello"] ; the "/" breaks out!

bind code all-unsets
bind code in allowed 'self
do code

bind malicious-code all-unsets
bind malicious-code in allowed 'self
do malicious-code


Gruss Volker



[REBOL] New? programming construct Re:

2000-02-18 Thread VoToNi

rules maybe like this (full code below)

; example
gui: make object! [
a: rule-var "a0"
b: rule-var "b0"
c: rule-var "c0"
rule [ a b ] func [][ trace-state "one of [a b] changed" c/set 
'c-by-rule-ab ]
rule[ c ] func[][ trace-state "c changed" ]

trace-state: func[id][print ["rule[" id "]"   a/get b/get c/get]] ; 
tool
]

I prefer the browser-like approach of Rebol/View: 
one page per action, create a new page after each action. No hidden 
Recursion, no bugs.

In einer eMail vom 17.02.00 04:39:17 (MEZ) Mitteleuropäische Zeit schreibt 
[EMAIL PROTECTED]:

 Those interested in new and unusual programming constructs, take a look at
  R++ from ATT, where Bjarne Stroustrup, the inventor of C++, works. Here's
  the link:
  http://www.research.att.com/sw/tools/r++/
  
  Quote
  R++ extends the C++ language with a single new programming construct -- the
  rule. In addition to data-members and member functions, R++ adds a new kind
  of member to C++ classes namely "member rules". A rule is a statement
  composed of a condition and an action that specifies what to do when the
  condition becomes true. Whenever some program data changes, rules whose
  conditions involve that data are examined, and if a rule's condition
  evaluates to true, its action is executed. The action may of course modify
  data and therefore trigger other rules. Currently R++ is implemented as a
  pre-processor. It translates R++ rules into C++ code.
  /Quote
  
  What would this look like in REBOL?
  
  Andrew Martin
  ICQ: 26227169
  http://members.xoom.com/AndrewMartin/
  

[REBOL[]

;
; tools: rule-var rule
;
rule-var: func [ init-value ][
make object! [
value: init-value
listeners: copy []
set: func [ new-value ] [ 
value: new-value
foreach here listeners  [ here ]
]
get: func[][value]
listen: func[ listener ][ append listeners :listener ]
]
]
rule: function[vars method][sum vals][
foreach here vars [
val: get here
val/listen get 'method
]
]
;
; example
;
gui: make object! [
a: rule-var "a0"
b: rule-var "b0"
c: rule-var "c0"
rule [ a b ] func [][ trace-state "one of [a b] changed" c/set 
'c-by-rule-ab ]
rule[ c ] func[][ trace-state "c changed" ]

trace-state: func[id][print ["rule[" id "]"   a/get b/get c/get]] ; 
tool
]

print "set a"
gui/a/set 'a1
print "set b"
gui/b/set 'b1
print "set c"
gui/c/set 'c1
print "done"
]




Gruss Volker



[REBOL] Re: migration paths

2000-02-18 Thread giesse

Hello [EMAIL PROTECTED]!

On 17-Feb-00, you wrote:

 b in X-SELMA: [REBOL] 107012   [EMAIL PROTECTED] wrote:
 b My latest work on the HTML dialect requires REBOL/View with
 b the new parse block capability.
[...]
 b Please do not tread there so fast.
 b It is fine to be involved with /view so early but
 b "my latest m (now) requires / with feature z"
 b is a phrase that should make all kinds of red flags go up.

Actually, I think Andrew's new code only requires the parse block
capability, which will be in the next REBOL/Core (2.3 I assume). So
there's no need to migrate.

Regards,
Gabriele.
-- 
o) .-^-. (--o
| Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila |
| GIESSE on IRC \ \-\_/-/ /  http://www.amyresource.it/AGI/ |
o) `-v-' (--o




[REBOL] migration paths Re:(2)

2000-02-18 Thread weinstein

I'm brand new to rebol, and using it on a mac, which has some limitations
since it has no command line at present. Two questions...

What is Rebol/view, and is there any sort of GUI dialect out there... I do
sort of feel like i'm in unix circa 82 using rebol...

Matthew

Matthew Weinstein
Director of Secondary Education
Macalester College

vox: (651) 696-6018
fax: (651) 645-3979




[REBOL] migration paths Re:(3)

2000-02-18 Thread Al . Bri

Matthew asked:
 What is Rebol/view, and is there any sort of GUI dialect out there?

GUI dialect = REBOL/View

Asking and answering are simply the rearranging of words; 
It's timing that is the most surprising of things! 
- Tsai Chih Chung, 
Shouts of Nothingness. 

Andrew Martin
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
--



[REBOL] migration paths Re:(2)

2000-02-18 Thread Al . Bri



- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, 19 February 2000 5:48 AM
Subject: [REBOL] Re: migration paths


 Hello [EMAIL PROTECTED]!
 
 On 17-Feb-00, you wrote:
 
  b in X-SELMA: [REBOL] 107012   [EMAIL PROTECTED] wrote:
  b My latest work on the HTML dialect requires REBOL/View with
  b the new parse block capability.
 [...]
  b Please do not tread there so fast.
  b It is fine to be involved with /view so early but
  b "my latest m (now) requires / with feature z"
  b is a phrase that should make all kinds of red flags go up.
 
 Actually, I think Andrew's new code only requires the parse block
 capability, which will be in the next REBOL/Core (2.3 I assume). So
 there's no need to migrate.

Correct! - Andrew

 
 Regards,
 Gabriele.
 -- 
 o) .-^-. (--o
 | Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila |
 | GIESSE on IRC \ \-\_/-/ /  http://www.amyresource.it/AGI/ |
 o) `-v-' (--o
 

Andrew Martin
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
--





[REBOL] migration paths Re:(3)

2000-02-18 Thread icimjs

At 01:45 PM 2/18/00 -0600, you wrote:
I'm brand new to rebol, and using it on a mac, which has some limitations
since it has no command line at present. Two questions...

What is Rebol/view, and is there any sort of GUI dialect out there... I do

A REBOL GUI toolkit with dialects for rapidly creating beatiful GUIs that
is currently in beta (see http://www.rebol.com).

sort of feel like i'm in unix circa 82 using rebol...

ah, those were the days ... 




;- Elan  [: - )]



[REBOL] Parse questions ??

2000-02-18 Thread mdb

Hello All,

I have a file consisting of lines in the following format:

"23123+34234+234234-23423+3-"

ie, n digits followed by a sign etc etc.

The only way i've been able to extract the data into a series is to do two
replaces, replacing "+" by "+ " and "-" by "- " and then parsing it using
the space as a delimiter. I can't use the sign as a delimiter because that
only returns the value and not the sign. 

My first question is, should parse allow the delimited character to be
optionally returned by way of a refinement?? In this case the sign is a
delimiter but also an integral part of the data.

The other problem i had was once i had the data in the form "123+", i
wasn't able to convert it to decimal, because the sign was at the end and
not the beginning, so i had to write code to move it.
Do people think that decimal and integer should be modified to allow for a
optional sign at the end??

Thanks.

Mike. 





[REBOL] how to format the result of divide operation Re:

2000-02-18 Thread KGD03011


Hi Tiana,

There's a script on rebol.org called format.r that does that sort of thing
and more:

http://www.rebol.org/utility/format.r

 format 1 / 3 #.1
== "0.3"
 reformat [pi pi pi pi pi] [#.1 #.2 #.3 #.4 #.5]
== ["3.1" "3.14" "3.142" "3.1416" "3.14159"]


Hope it helps. Please send me any comments you have.

Cheers,
Eric

-

Hello,

Can anyone tell me how to format the result of divide operation?

Say, 1 / 3 gave me the result 0.
what can I do in order to get 0.3 which has only one digit after the point?

Thanks for any information.

Tiana






[REBOL] Rebol doesn't return headers under IIS 5, what am I doing wrong?

2000-02-18 Thread h . a . e . borger

Hi all,

Well, setup REBOL under M$ IIS 5.0 but can't get the scripts to work.
I'm testing the cgiform.r script at the moment
(you can take a look at http://amiga.student.utwente.nl/cgiform.html )
But I get the error message:
"CGI Error

The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:"

And that's it, it doesn't seem to do anything (I tried putting in a
"send" command, but I don't get any mail).
I think REBOL isn't executed. I guess the problem lies within IIS, but I
don't know where!
Anybody have any idea?
I've setup IIS the way Scott told me (and that same way works for PHP3,
which I'm also trying my hand at :-)


--
Ewald Börger



[REBOL] Fw: [REBOL] Ok, how to print to STDOUT Re:

2000-02-18 Thread jorgie

Still looking for help on this... (want output at the command line without
showing a window
--
Erik Jorgensen
Programmer/Analyst - Principle
Customer Service and Support
Information  Access Technology Services
University of Missouri - Columbia
(573) 882-5974
www.missouri.edu/~ccjorgie
[EMAIL PROTECTED]
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 17, 2000 9:45 AM
Subject: [ALLY] Ok, how to print to STDOUT Re:


 Thanks to everyone who responded... But...

 How do I get rebol to print something at the dos prompt? I used the -c
 specifically to suppress the window and the init info during execution,
but
 I expected the same data that can be redirected using  to show up in my
dos
 window.

 Erik

 Notice I made the suggested change...

 --
 Erik Jorgensen
 Programmer/Analyst - Principle
 Customer Service and Support
 Information  Access Technology Services
 University of Missouri - Columbia
 (573) 882-5974
 www.missouri.edu/~ccjorgie
 [EMAIL PROTECTED]



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 16, 2000 7:22 PM
 To: [EMAIL PROTECTED]
 Subject: [ALLY] Ok, how to print to STDOUT


 I wrote the following script:

 ;---snip---
 REBOL [
   File: %drives.r
 ]

 list: make string! 1

 list-drives: func [drives] [
   foreach letter drives [
 if not error? try [read to-file join "/" [letter "/."]]
 [append list to-string letter]
   ]
   print list
 ]

 list-drives "cdefghijklmnopqrstuvwxyz"
 ;---snip---

 But when I run it with:

 rebol.exe -c drives.r

 I do not see the output. (Win98)

 But:

 rebol.exe -c drives.r  t

 Does write the expected output to the file %t

 Help!

 Erik
 --
 Erik Jorgensen
 Programmer/Analyst - Principle
 Customer Service and Support
 Information  Access Technology Services
 University of Missouri - Columbia
 (573) 882-5974
 www.missouri.edu/~ccjorgie
 [EMAIL PROTECTED]




[REBOL] Parse questions ?? Re:

2000-02-18 Thread allenk


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, February 19, 2000 11:15 AM
Subject: [REBOL] Parse questions ??


 Hello All,

 I have a file consisting of lines in the following format:

 "23123+34234+234234-23423+3-"

 ie, n digits followed by a sign etc etc.

 The only way i've been able to extract the data into a series is to do two
 replaces, replacing "+" by "+ " and "-" by "- " and then parsing it using
 the space as a delimiter. I can't use the sign as a delimiter because that
 only returns the value and not the sign.

 My first question is, should parse allow the delimited character to be
 optionally returned by way of a refinement?? In this case the sign is a
 delimiter but also an integral part of the data.

Hi Mike,

You are using parse in its simplist form, as just a split function,
whenever you need more from it, you can create your own parse rules.
See attached script, and the 'parse topics in the docs

 The other problem i had was once i had the data in the form "123+", i
 wasn't able to convert it to decimal, because the sign was at the end and
 not the beginning, so i had to write code to move it.
 Do people think that decimal and integer should be modified to allow for a
 optional sign at the end??

I admit I don't see this form very often, so I would not see any need for it
to be built in,
but others may. It only takes one or two lines to convert this format to an
integer, it doesn't
take much to make your own converter. (see attached script)

Cheers,

Allen K





REBOL []

to-integer-block: func [
{Converts data "23123+34234+234234-A23423+3-" into a block of signed integers
 Skips/ignores illegal chars} 
string [string!] 
/local item list signs numeric rule convert
][
;--- convertor
convert: func [
{Converts end signed strings "4567-" to integer -4567}
string [string!]
/local number sign
][
set [number sign] reduce [(copy/part string (length? string) - 1) last string] 
to-integer join sign number 
]

item: copy ""
list: copy []
signs: to-bitset [#"-" #"+"]
numeric: to-bitset [#"0" - #"9"]
rule: [some [[copy item [some numeric signs] (append list convert item)] | [none 
skip]]]
parse string rule 
return list
]

 
to-integer-block "23123+34234+234234- ABCDE- 23423+3-"
== [23123 34234 -234234 23423 -3]