[REBOL] How do I save and restore an array of objects Re:(4)

2000-03-09 Thread Al . Bri
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/ -><-

[REBOL] How do I save and restore an array of objects Re:(4)

2000-03-09 Thread icimjs
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

[REBOL] Command Line Args Re:(2)

2000-03-09 Thread Al . Bri
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"

[REBOL] Command Line Args Re:(3)

2000-03-09 Thread Al . Bri
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

[REBOL] Associative Arrays in Rebol? Re:

2000-03-09 Thread icimjs
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

[REBOL] Command Line Args Re:(2)

2000-03-09 Thread icimjs
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.

[REBOL] Command Line Args Re:(2)

2000-03-09 Thread icimjs
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 >> [: - )]

[REBOL] Command Line Args Re:

2000-03-09 Thread icimjs
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

[REBOL] newnews Re:

2000-03-09 Thread kevin
> 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

[REBOL] Command Line Args Re:

2000-03-09 Thread cplp
>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.

[REBOL] Some niggley things Re:(6)

2000-03-09 Thread ddalley
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

[REBOL] Some niggley things Re:(4)

2000-03-09 Thread ddalley
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

[REBOL] How do I save and restore an array of objects Re:(3)

2000-03-09 Thread bobr
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

[REBOL] Run commands in NT's REBOL Re:(2)

2000-03-09 Thread jhagman
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

[REBOL] Command Line Args Re:

2000-03-09 Thread bo
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?

[REBOL] Weird stuff with time Re:(2)

2000-03-09 Thread larry
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

[REBOL] Associative Arrays in Rebol?

2000-03-09 Thread bpaddock
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?

[REBOL] Command Line Args

2000-03-09 Thread bpaddock
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?

[REBOL] How do I save and restore an array of objects Re:(2)

2000-03-09 Thread VoToNi
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

[REBOL] Some niggley things Re:(3)

2000-03-09 Thread VoToNi
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

[REBOL] How do I save and restore an array of objects Re:(2)

2000-03-09 Thread icimjs
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

[REBOL] Some niggley things Re:(3)

2000-03-09 Thread icimjs
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]

[REBOL] How do I save and restore an array of objects Re:

2000-03-09 Thread bobr
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

[REBOL] Smart Client

2000-03-09 Thread LKanter100
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

[REBOL] Some niggley things Re:(2)

2000-03-09 Thread ddalley
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+

[REBOL] newnews

2000-03-09 Thread RChristiansen
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

[REBOL] Weird stuff with time Re:(2)

2000-03-09 Thread allenk
- 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

[REBOL] Lowing SECURITY LEVEL within a script Re:

2000-03-09 Thread icimjs
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

[REBOL] Rebol/WinNT + OmniHttpd

2000-03-09 Thread moeller
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

[REBOL] Lowing SECURITY LEVEL within a script Re:

2000-03-09 Thread mprice
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

[REBOL] Lowing SECURITY LEVEL within a script

2000-03-09 Thread carloslorenz
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

[REBOL] Lowing SECURE LEVEL within a script

2000-03-09 Thread carloslorenz
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

[REBOL] Weird stuff with time Re:

2000-03-09 Thread larry
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

[REBOL] Some niggley things Re:(3)

2000-03-09 Thread ddalley
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"

[REBOL] getting rebol "OK" Re:

2000-03-09 Thread rex
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

[REBOL] Weird stuff with time Re:(3)

2000-03-09 Thread mjelinek
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 &

[REBOL] getting Rebol "OK" Re:

2000-03-09 Thread mprice
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

[REBOL] Weird stuff with time Re:(2)

2000-03-09 Thread a9700094
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

[REBOL] Run commands in NT's REBOL Re:(2)

2000-03-09 Thread a9700094
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

[REBOL] getting rebol "OK"

2000-03-09 Thread norsepower
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

[REBOL] Some niggley things Re:(2)

2000-03-09 Thread VoToNi
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"

[REBOL] Run commands in NT's REBOL Re:

2000-03-09 Thread robert . muench
> -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

[REBOL] Some niggley things Re:(5)

2000-03-09 Thread icimjs
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

[REBOL] Run commands in NT's REBOL Re:(2)

2000-03-09 Thread johnkenyon
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

[REBOL] Weird stuff with time Re:

2000-03-09 Thread tim781
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

[REBOL] Run commands in NT's REBOL Re:

2000-03-09 Thread tim781
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

[REBOL] solved: dynamic words 2 Re:(2)

2000-03-09 Thread VoToNi
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 [

[REBOL] Run commands in NT's REBOL

2000-03-09 Thread guity
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

[REBOL] Weird stuff with time

2000-03-09 Thread allenk
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

[REBOL] e-mail with attachement Re:

2000-03-09 Thread tim781
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