bobr asked:
> Is there a situation where 'reduce should not be used?
When you only want one result from a script or block, use 'do.
When you want many results from a script or block, use 'reduce.
Andrew Martin
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
-><-
Hi Bob,
A) do works when you only want to load a single object. It's like saying:
do [make object! [word: 'something]]
which - of course - returns a single object, namely the last object (and
here only object) found in the block (returned by load), and not a block
containing all objects that we
It may help to write a little test program, like this:
>> write %trim.r {
{[
{rebol []
{write %text.txt mold system/script/args
{]
{}
and view the contents of %test.txt. Given the example of:
rebol -swq trim.r file1.in file2.out
I get:
"file1.in file2.out"
Bo wrote:
> >system/script/args is only for arguments passed with DO/ARGS.
> >system/options/args is for arguments passed from the command line.
Elan wrote:
> Interesting enough, under Win95 system/script/args did contain the command
line args!
> Actually, they both worked!
Bug in Windows versio
I think select and paths should come close to what you're asking:
for instance:
>> select [ a "this is a" b "this is b" ] 'a
== "this is a"
>> select [ a "this is a" b "this is b" ] 'b
== "this is b"
>> block: [ a "this is a" b "this is b" ]
== [a "this is a" b "this is b"]
>> block/a
== "this i
Hi Bo,
>system/script/args is only for arguments passed with DO/ARGS.
>system/options/args is for arguments passed from the command
>line.
Interesting enough, under Win95 system/script/args did contain the command
line args!
Actually, they both worked! They both contained the same arguments.
Hi Bo,
>system/script/args is only for arguments passed with DO/ARGS.
>system/options/args is for arguments passed from the command
>line.
Interesting enough, under Win95 system/script/args did contain the command
line args!
Actually, they both worked!
;- Elan >> [: - )]
I tested it on my machine (running Win95) and it worked as advertised, i.e.
the arguments were available under system/script/args as a string.
What did you expect would happen? Perhaps the problem is with trim.r?
At 09:04 PM 3/9/00 -0500, you wrote:
>Can some one please send me a example of how
> I would like to use the NNTP client command "newnews" with the REBOL
> nntp protocol to retrieve new messages since a specified date. The
> command format through telnet is as follows:
>
> newnews newsgroups mmdd hhmmss [GMT]
>
> How can I accomplish this, exactly? I want to be able to
>Can some one please send me a example of how to deal with
>command lind arguments please?
And can someone tell me how I do command line arguments with the Macintosh
version?
Bruce.
On 09-Mar-00, [EMAIL PROTECTED] wrote:
> > list-path: %/drive/folder/folder/
> > list: READ list-path
> >with "list" containing the dir-list block. I didn't get this working yet.
Elan:
I had left the "/" off the tail, and REBOL chewed it up.
I believe that was what fixed it; regardless, it i
On 10-Mar-00, [EMAIL PROTECTED] wrote:
> >In what form can I get the above "string" without quotes, so that I can
> >build the URL properly?
> join http://www.some-site.com/ ["a+b+c+d+e"]
> == http://www.some-site.com/a+b+c+d+e
> Hope this helps,
Ah, ha! The string was changed into a block! an
At 05:10 PM 3/9/00 -0800, [EMAIL PROTECTED] wrote:
>Hi Bob,
>
>if I'm not mistaken, it is here where you are loading the file containing
>objects:
>
>> if exists? %articles/stor [ stories: load %articles/stor ]
>
>try the following instead:
>
>if exists? %articles/stor [ stories: reduce load %ar
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]):
>
> > Everyone know somethig about run commands in NT inside a
> > REBOL script ... I need make a "at"
> > command in the DOS's consola and i don't know ... Is it
> > posible???
>
> Hi, at the moment Rebol can't spawn external programs. Robert
T
bpaddock,
system/script/args is only for arguments passed with DO/ARGS.
system/options/args is for arguments passed from the command
line.
Have fun!
On 9-Mar-2000/21:04:02-5:00, [EMAIL PROTECTED] wrote:
>Can some one please send me a example of how to deal with
>command lind arguments please?
Howdy folks
Looking at those weird time! values must have boggled my brain. Please read
"hour" for "year" in my previous post #121264. The message is copied below
with correction. (Bo: can you substitute for previous post to feedback?)
Sorry for the confusion
Larry
- Original Message
Is there any way to simulate Associative Arrays in Rebol?
The type where the index could be a list of random words
like in the language Awk?
Can some one please send me a example of how to deal with
command lind arguments please?
I want to do some thing like this from the command line:
rebol -swq trim.r file.in file.out
Manual says I should see "file.in and file.out" at
system/script/args but I don't.
What am I doing wrong?
In einer eMail vom 10.03.00 01:12:44 (MEZ) Mitteleuropäische Zeit schreibt
[EMAIL PROTECTED]:
[do load], not [load] ?
Your Database contains [make object[..]] ? This are, simply loaded,
three elements, 'make , 'object! , [..]
they must be [do]ne to create the structure.
rugly, try this:
a: mak
In einer eMail vom 10.03.00 00:35:31 (MEZ) Mitteleuropäische Zeit schreibt
[EMAIL PROTECTED]:
> What I ended up using was:
>
> FOREACH [f-1 f-2 f-3 f-4 f-5] files [
> portfolio: MOLD TO STRING!
> REDUCE [f-1 "+" f-2 "+" f-3 "+" f-4 "+" f-5]
>
> When I do it this way, I get
Hi Bob,
if I'm not mistaken, it is here where you are loading the file containing
objects:
> if exists? %articles/stor [ stories: load %articles/stor ]
try the following instead:
if exists? %articles/stor [ stories: reduce load %articles/stor ]
At 06:57 PM 3/9/00 +, you wrote:
>The exa
At 06:15 PM 3/9/00 +, you wrote:
>
>Hello, Elan:
>
>On 09-Mar-00, [EMAIL PROTECTED] wrote:
>
>> One possibility would be:
>
>> >> files: [%a %b %c %d %e %f %g %h %i %j]
>> >> foreach [f-1 f-2 f-3 f-4 f-5] files [
>> print mold to string!
>> reduce [f-1 "+" f-2 "+" f-3 "+" f-4 "+" f-5]
The example below reads a web page of alternating headlines and
associated stories. If the same headline appears on a later scan
the story is ignored. It saves elements parsed from the webpage
as an array (block) of structs (object!s).
It cannot seem to restore them cleanly when rerun later.
why
I'm an innovation-minded freelance Writer-Photographer, but I don't write
code, so I'm looking for someone who does. I'd like my writing samples and
photos to be coded and hosted using REBOL's smart client, as part of my
initial website or as an alternative to a website. (My only current web
p
Hello, Elan:
On 09-Mar-00, [EMAIL PROTECTED] wrote:
> One possibility would be:
> >> files: [%a %b %c %d %e %f %g %h %i %j]
> >> foreach [f-1 f-2 f-3 f-4 f-5] files [
> print mold to string!
> reduce [f-1 "+" f-2 "+" f-3 "+" f-4 "+" f-5] ]
> which results in:
> "a+b+c+d+e"
> "f+g+h+
I would like to use the NNTP client command "newnews" with the REBOL
nntp protocol to retrieve new messages since a specified date. The
command format through telnet is as follows:
newnews newsgroups mmdd hhmmss [GMT]
Does the nntp.r binary simply send a command-line command through a
ma
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 10, 2000 12:26 AM
Subject: [REBOL] Weird stuff with time Re:
> We're all earthlings here :P Maybe someone past
> the orion nebula uses programs for intergalactic
> journeys. I heard the aliens who
Hi Carlos,
If you are running the script under a copy of REBOL that you control, you
can use
rebol -s
(or rebol.exe -s)
to disable security at startup.
If REBOL is running on someone else's remote computer, and you have not
control over that REBOL instance, you are NOT SUPPOSED to be able to
Hi,
I'm new to this list & to REBOL, but from what I've seen, it seems to be
a great language to automate various internet tasks. I'll pressure my
ISP's to install it ASAP :-). My questions will be a little stupid at
first, but I hope that I can give back something to the community sooner
or late
Title: RE: [REBOL] Lowing SECURITY LEVEL within a script
If you look in the users guide at:
/users-guide/users/operunning.html#SecuritySettings
It is all explained
Hi REBOLS,
Is there any way of lowing security level of REBOL within a script without
having to click that warning every time? In other words how can I avoid that
warning dialog everytime?
Carlos
Hi REBOLS,
Is there any way of lowing secure level of REBOL within a script without
having to click that warning every time? In other words how can I avoid that
warning everytime?
Carlos
Hi Allen
Interesting. I think the largest time value for year which works in the
expected way is:
>> 596522:10:12;this is ok (and far beyond any reasonable year
value)
== 596522:10:12
>> 596523:10:12
** Syntax Error: Invalid time -- 596523:10:12.
** Where: (line 1) 596523:10:12
REB
On 09-Mar-00, [EMAIL PROTECTED] wrote:
> In einer eMail vom 09.03.00 06:33:20 (MEZ) Mitteleuropäische Zeit schreibt
> [EMAIL PROTECTED]:
> with
> files: [%a %b %c %d %e %f %g %h %i %j %k] ; ( 11 // 5 <> 0)
> gives
> "a+b+c+d+e"
> "f+g+h+i+j"
> "k+none+none+none+none"
A good point, but "none"
On Thu, Mar 9, 2000, <[EMAIL PROTECTED]> wrote:
>I am searching for a new web hosting service and I figure it is a good
>business practice to ask the hosting service if it is "OK" to use
>scripting languages other than perl for CGI. The response is usually,
>"what scripting languages are you
Whew! I am SO relieved that REBOL can handle the next millenium:
>> print 2999-12-31 + 1
1-Jan-3000
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 09, 2000 9:00 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] Weird stuff with time Re:(2)
Hi Tim &
Title: RE: [REBOL] getting Rebol "OK"
Our server allows Rebol scripts to be run straight out of the cgi-bin. You can see an example of this at http://www.whadup.com click on search, the whole search engine is REBOL based.
You can tell the ISP that all they have to do is put the Rebol.exe in a
Hi Tim & Allen & all!
Last Date I can set with Microsoft Calendar Control (ActiveX) is
31.12.2100 - I consider it enough for all but astrological purposes.
Have you those?
On Thu, 9 Mar 2000 [EMAIL PROTECTED] wrote:
>We're all earthlings here :P Maybe someone past
>the orion nebula uses progr
On Thu, 9 Mar 2000 [EMAIL PROTECTED] wrote:
>> command in the DOS's consola and i don't know ... Is it
>> posible???
>
>Hi, at the moment Rebol can't spawn external programs. Robert
That would be need trick considering different operating systems Rebol is
covering.
For Amiga/MAC/Linux/PC there
I am searching for a new web hosting service and I figure it is a good
business practice to ask the hosting service if it is "OK" to use
scripting languages other than perl for CGI. The response is usually,
"what scripting languages are you thinking about?" When I tell them
REBOL and point t
In einer eMail vom 09.03.00 06:33:20 (MEZ) Mitteleuropäische Zeit schreibt
[EMAIL PROTECTED]:
> >
> >#2
> >"files" (above) will, eventually, be a block of about 300 file names. I
> need
> >to know how to take five file names at a time and make a string that is:
> >"name+name+name+name+name"
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, March 09, 2000 2:12 PM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Run commands in NT's REBOL
> Everyone know somethig about run commands in NT inside a
> REBOL s
Hi Donald,
you wrote:
>What I really wanted to know was how to use a set-word!. The reason is that,
>if the program has an error and stops, the console is still set for a changed
>directory path. This is very annoying, since, to re-run the program, I
have to
>change-dir again and again:
>
> list
hello,
I am unsure if I understand your question but here goes ...
At the current time there is no way to run an external program from within
rebol, hence you cannot create an "at" command.
If you are asking about how to use the NT "at" command to launch rebol at
specific times then this is pos
We're all earthlings here :P Maybe someone past
the orion nebula uses programs for intergalactic
journeys. I heard the aliens who crashed in Roswel, NM
had watches that registered billions of years. :P
[EMAIL PROTECTED] wrote:
> Whilst testing to find the upper limits of time/hour (for an up-tim
HI I don't know how to do that. :(
timmy
[EMAIL PROTECTED] wrote:
> Hi ...
>
> Everyone know somethig about run commands in NT inside a REBOL script ... I need
>make a "at"
> command in the DOS's consola and i don't know ... Is it
> posible???
>
> Please,
>
> Regards
>
> David Guitian
In einer eMail vom 09.03.00 03:39:36 (MEZ) Mitteleuropäische Zeit schreibt
[EMAIL PROTECTED]:
> Trying to figure out what you are trying to accomplish I ran your code and
> get an error message:
>
> >> count: 50
> == 50
> >> out: make string! 1000
> == ""
> >>
> >> for build 1 count 1 [
Hi ...
Everyone know somethig about run commands in NT inside a REBOL script ... I need make
a "at"
command in the DOS's consola and i don't know ... Is it
posible???
Please,
Regards
David Guitian
Whilst testing to find the upper limits of time/hour (for an up-time
monitoring script)
I came across these anomalies in time!
Can anyone explain what is happening here?
How come some large numbers for hours give an error and others
return bizare numbers?
x: 2000:10:12
== 2000:10:12
>> x: 2
Hi I modified your script and added the mail function from
%attach.r (on rebol site) I added some notes to help you.
NOTE: you don't change the To: in my_header ( Just
change your from address and the subject you'd like
for the emails.)
Since I'm a stranger :P you should erase the pasting
of the
50 matches
Mail list logo