[REBOL] input a bunch?

2000-07-25 Thread balayo
hey list guys, I have something like this: print "type something" input: somthingtyped this works like a champ when I type stuff in at the console. but I'd prefer to get it in some other way, and pasting mucks stuff up. how can I get, say, a paragraph into input? I'm typing in stuff that I do

[REBOL] Bug in 'use? Re:(11)

2000-07-25 Thread deadzaphod
>Hello [EMAIL PROTECTED]! >On 25-Lug-00, you wrote: > c> That looks like a bug. -Carl > >Hmm... do you have some little spare time to tell us how contexts >work? Isn't binding done word-by-word? Isn't hierarchy achieved by >multiple pass binding? > >You're confusing me, now. :-) > >Regards, >

[REBOL] APL'ish operations Re:(3)

2000-07-25 Thread bhandley
> Perfect. Just what I needed. Wish there was a way to > make simple one-off functions in a block like [ + 5] > etc. > I think you can. Again according to what you need. This is where Rebol shines. Rebol gives you the ability to interpret blocks (and strings) in way other than the default provide

[REBOL] Anyone doing something with LDAP? Re:(2)

2000-07-25 Thread jeff
When your dealing with LDAP, you have to first deal with BER (basic encoding rules -- a subset of ASN.1 -- abstract syntax notation, spec 1). This is a binary TLV (Type Length Value) encoding scheme for sending "self describing" objects around the network. Th

[REBOL] Anyone doing something with LDAP? Re:

2000-07-25 Thread doug . vos
There is a free LDAP perl/cgi script called LDAP express at http://www.browserexpress.com/LE-Features.shtml It looks like about 7 or 8 pages of perl -script. It can be translated to REBOL, but also looks like it depends on some other serious looking perl mods (.pm files). Anybody, know of some

[REBOL] Words, Bindings and Contexts. (7)

2000-07-25 Thread lmecir
I see, that the fact, that my series didn't explain the behaviour of functions WRT Recursion and Binding is a flaw. Here is the continuation (a model of the behaviour): ; Model of Rebol function: ; sim-function!: make object! [ ; every function has got a Context

[REBOL] Bug in 'use? Re:(11)

2000-07-25 Thread larry
I have been confused for a long time about contexts (touted as an important feature of the REBOL language) and the related issues concerning 'bind. It seems to me that a good explanation of the workings of contexts from RT is long overdue. At least tell us if this is for sure a bug and if it is

[REBOL] Bug in 'use? Re:(11)

2000-07-25 Thread lmecir
Me too. > Hello [EMAIL PROTECTED]! > > On 25-Lug-00, you wrote: > > c> That looks like a bug. -Carl > > Hmm... do you have some little spare time to tell us how contexts > work? Isn't binding done word-by-word? Isn't hierarchy achieved by > multiple pass binding? > > You're confusing me, now.

[REBOL] Anyone doing something with LDAP?

2000-07-25 Thread doug . vos
Has anyone put together any scripts using LDAP? LDAP (light-weigt directory access protocal) There was some talk of LDAP going into /command at one time. - Doug

[REBOL] New REBOL Networking Document Re:

2000-07-25 Thread doug . vos
The section where you discuss FTP could use some examples as to how using read [ scheme: 'FTP host: foo.fee.ftp.com ...etc. ] is not only useful but necessary as in the case where an odd password is used for the FTP server such as PW: "123/abc" <-- slash is legal for P

[REBOL] Re: Bug in 'use? Re:(9)

2000-07-25 Thread giesse
Hello [EMAIL PROTECTED]! On 25-Lug-00, you wrote: c> That looks like a bug. -Carl Hmm... do you have some little spare time to tell us how contexts work? Isn't binding done word-by-word? Isn't hierarchy achieved by multiple pass binding? You're confusing me, now. :-) Regards, Gabriele.

[REBOL] code that crashes Re:

2000-07-25 Thread vhirsch
I get the same behavior. Your one liner works with local files but fails with ftp. This multi-line replacement works for me: f1: read ftp://user:pass@site insert find f1 "these words" code write ftp://user:pass@site f1 Vic Hirsch [EMAIL PROTECTED] >>> <[EMAIL PROTECTED]> 07/25 4:06 AM

[REBOL] Bug in 'use? Re:(11)

2000-07-25 Thread lmecir
Hi Volker, no, the behaviour is correct. Try this: unset 'b a: make object! [b: none unset 'b if not value? 'b [b: "a bee!"]] a/b > > > [rebol[author: "Volker"] > > {seems 'make does no deep binding? without bug this > should set 'b in object-context too (hopefully)?} > > unset 'b > a: make ob

[REBOL] code that crashes

2000-07-25 Thread balayo
Hey list, two things... I have a pretty big html file with a bunch of same-page links, that goes something like this: link link link #linktarget .. I want to rebolize the page so I can generate additions to the page (make a "rebol" db).. how might I best accomplish this? also, tell me if t

[REBOL] Bug in 'use? Re:(10)

2000-07-25 Thread agem
[rebol[author: "Volker"] {seems 'make does no deep binding? without bug this should set 'b in object-context too (hopefully)?} unset 'b a: make object! [if not value? 'b [b: "a bee!"]] b a/b ] >> unset 'b >> a: make object! [if not value? 'b [b: "a bee!"]] >> b == "a bee!" >> a/b ** Script Er

[REBOL] One more thing - Odd behavior with setting variables Re:

2000-07-25 Thread agem
[rebol[] paths: ["blah1/" "blah blah2/" ] a: second paths ? a paths: [%blah1/ %"blah blah2/" ] a: second paths ? a ] A is a string of value: "blah blah2/" A is a file of value: %blah%20blah2/ if you use some functions, they may handle strings and files differently. >> exists? %bak == true >>

[REBOL] Odd behavior with setting variables Re:(3)

2000-07-25 Thread agem
Maybe simple the glorious all-beginners error ? ;-) > currentpath: "ftp://blah:[EMAIL PROTECTED]/blah/blah/" ?? currentpath: COPY "ftp://blah:[EMAIL PROTECTED]/blah/blah/" ; !! rebol-magic, note the internal SOURCE CHANGED below! because of this use [copy "whatever string or other series"]

[REBOL] APL'ish operations Re:(2)

2000-07-25 Thread rohitjain1
--- [EMAIL PROTECTED] wrote: > > There are two ways you could go, depending on what > you want. > Change each element within the series, or return a > new series with the > result of your operation applied to each element. > > For the first approach... > > values-block: [1 2 3] > while [not tai

[REBOL] APL'ish operations Re:

2000-07-25 Thread bhandley
There are two ways you could go, depending on what you want. Change each element within the series, or return a new series with the result of your operation applied to each element. For the first approach... values-block: [1 2 3] while [not tail? values-block] [ values-block: change values-

[REBOL] One more thing - Odd behavior with setting variables Re:

2000-07-25 Thread bhandley
> > > path: ["blah1" "blah2" "blah3" "blah4" "blah5"] > > > > is better written as: > > paths: [%blah1/ %"blah blah2/" ... > > paths: [%blah1/ %"blah blah2/" (i dont get it) > In this case paths is a block. A block groups a number of values. You've shown two values - both represent re

[REBOL] APL'ish operations

2000-07-25 Thread rohitjain1
Apologies if this is trivial ... but I can't seem to find a good way to do this. I want to do elementwise operations on sequences, i.e. add a scalar to each element, dot product of two sequences, cross product, matrix vector products. How do I do this in REBOL? I tried foreach, forall with modify

[REBOL] One more thing - Odd behavior with setting variables

2000-07-25 Thread webmaster
At 04:08 AM 7/25/00 -0500, you wrote: >This: > > path: ["blah1" "blah2" "blah3" "blah4" "blah5"] > > is better written as: > paths: [%blah1/ %"blah blah2/" ... paths: [%blah1/ %"blah blah2/" (i dont get it) this makes no sense to me. first there is a % then a space then %" then "

[REBOL] Use of commas in text data import Re:

2000-07-25 Thread Al . Bri
> workpath: join currentpath [first path "albumpath.data"] > currentdata: join {"} [load to-url workpath {"}] > currentalbum: load to-url workpath > append block currentdata I'm still not sure of your intent. Can you just write what you intend, rather than just trying to write something? You'll t

[REBOL] Use of commas in text data import Re:

2000-07-25 Thread webmaster
Duh. I was using load and I change to read and it works fine. later At 05:01 AM 7/25/00 -0500, you wrote: >Ok. > >So now I am importing data files made of text. > >If the imported text data includes a comma, like that. > >It hangs the process and breaks. > >Is there a way to specify that the da

[REBOL] Use of commas in text data import

2000-07-25 Thread webmaster
Ok. So now I am importing data files made of text. If the imported text data includes a comma, like that. It hangs the process and breaks. Is there a way to specify that the data being imported should be read as text and not to hang on any punctuation? workpath: join currentpath [first path

[REBOL] Odd behavior with setting variables Re:(3)

2000-07-25 Thread Petr . Krenzelok
[EMAIL PROTECTED] wrote: > That worked even less. > > I have no idea what is going wrong. I have tried so many things. > But it will not clear or delete the contents of the variables in addition, > I actually set the variable again afterwords and it doesn't take. > > Here is basic part of code

[REBOL] Odd behavior with setting variables Re:(4)

2000-07-25 Thread webmaster
Thank You! I will try em. At 08:59 PM 7/25/00 +1200, you wrote: >Just a few comments. > > > currentpath: "ftp://blah:[EMAIL PROTECTED]/blah/blah/" > >Did you know that Rebol works with URLs directly? Like this: > > >> currentpath: ftp://blah:[EMAIL PROTECTED]/blah/blah/ >== ftp://blah:[EMAIL PRO

[REBOL] Odd behavior with setting variables Re:(3)

2000-07-25 Thread Al . Bri
Just a few comments. > currentpath: "ftp://blah:[EMAIL PROTECTED]/blah/blah/" Did you know that Rebol works with URLs directly? Like this: >> currentpath: ftp://blah:[EMAIL PROTECTED]/blah/blah/ == ftp://blah:[EMAIL PROTECTED]/blah/blah/ This: > path: ["blah1" "blah2" "blah3" "blah4" "blah5"]

[REBOL] Odd behavior with setting variables Re:(2)

2000-07-25 Thread webmaster
That worked even less. I have no idea what is going wrong. I have tried so many things. But it will not clear or delete the contents of the variables in addition, I actually set the variable again afterwords and it doesn't take. Here is basic part of code block: make block! 300 currentpath: "

[REBOL] Odd behavior with setting variables Re:

2000-07-25 Thread Al . Bri
Try: MyNewString: copy "" MyNewBlock: copy [] Andrew Martin ICQ: 26227169 http://members.xoom.com/AndrewMartin/ -><- - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, 25 July 2000 5:50 PM Subject: [REBOL] Odd behavior with setting var