[REBOL]
Hello ! is it possible to call cgi scripts that use the 'post'-method by a rebol script. and if yes how can i set the ENV$ variable? Markus Zmija ___ www.zmija.de
[REBOL] parse to blocks or sets
It seems strange to me that digit: charset "0123456789" parse "123" [to digit] and block: ["1" | "2"] parse "123" [to block] fail (on my Mac). Any ideas how to write it better? This works for blocks: block: [to "1" | to "2"] parse "123" [block] but is not so elegant for large blocks. Daniel --- Daniel Haertle [EMAIL PROTECTED] ETH Hoenggerberg HPF E18 phone +41 1 633 2338 Institute of Quantum Electronics fax+41 1 633 1056 Nonlinear Optics Laboratory - 8093 Zuerich - Switzerland ---
[REBOL] REBOL LICENSE Re:
I believe, when you download a version of REBOL for your platform, the license agreement appears for you to read and agree to. Since the download is free, it's a practical way to see the license. Russell [EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 12, 2000 12:52 PM Subject: [REBOL] REBOL LICENSE > Hi, > > I was searching the official web www.rebol.com but I found nothing about > licensing REBOL. So please tell me under which license is distributed REBOL? > Is it free (GPL and so on) or no? > > Thanks > > > Peter Hanusiak > >
[REBOL] REBOL LICENSE
Hi, I was searching the official web www.rebol.com but I found nothing about licensing REBOL. So please tell me under which license is distributed REBOL? Is it free (GPL and so on) or no? Thanks Peter Hanusiak
[REBOL] Problem with SMTP Re:(3)
Correct. You caught me reading email too fast. REBOL will not deal with the proxy for SMTP if it is set to 'generic. Another way to shut off the proxy for a certain protocol is to set the proxy to false for that protocol: system/schemes/smtp/proxy/host: false This will prevent the default proxy settings from falling through into it. Sterling > Hi, > > AFAIK generic (CERN) proxy is for HTTP only. Shouldn't REBOL use it > only for HTTP protocol if it is set in network settings, and don't use > any proxy for SMTP and other protocols? > > -- > Michal Kracik > > [EMAIL PROTECTED] wrote: > > > > If you have a proxy set, REBOL will go through it by default. You can > > make a list of bypass machines like this: > > system/schemes/default/proxy/bypass: ["center.uniba.sk"] > > > > That should bypass the proxy when it connects to your mail server. > > > > Sterling > >
[REBOL] Problem with SMTP Re:(2)
Hi, AFAIK generic (CERN) proxy is for HTTP only. Shouldn't REBOL use it only for HTTP protocol if it is set in network settings, and don't use any proxy for SMTP and other protocols? -- Michal Kracik [EMAIL PROTECTED] wrote: > > If you have a proxy set, REBOL will go through it by default. You can > make a list of bypass machines like this: > system/schemes/default/proxy/bypass: ["center.uniba.sk"] > > That should bypass the proxy when it connects to your mail server. > > Sterling > > > Hi, > > > > I have problem with network settings in REBOL (tested with Win98 and > > Linux RH6.2). When I set correct SMTP server and proxy server (3 CERN) > > I can't send email. But when I set only SMTP server without proxy it's ok. > > In ethereal (network sniffer) I can see correct communication when I haven't > > proxy. But when I have PROXY in ethereal is communication with PROXY(why?) > > but nothing with SMTP server. There are only 5 packets. Two standard UDP > > with DNS query for PROXY host name, and then 3 packets with PROXY. > > > > Here are my user.r > > set-net [ [EMAIL PROTECTED] center.fmph.uniba.sk none >proxy.sturak.sk 8080 generic ] > > > > Please tell me what's wrong. > > Thanks > > > > Peter Hanusiak > > > >
[REBOL] Problem with SMTP Re:
If you have a proxy set, REBOL will go through it by default. You can make a list of bypass machines like this: system/schemes/default/proxy/bypass: ["center.uniba.sk"] That should bypass the proxy when it connects to your mail server. Sterling > Hi, > > I have problem with network settings in REBOL (tested with Win98 and > Linux RH6.2). When I set correct SMTP server and proxy server (3 CERN) > I can't send email. But when I set only SMTP server without proxy it's ok. > In ethereal (network sniffer) I can see correct communication when I haven't > proxy. But when I have PROXY in ethereal is communication with PROXY(why?) > but nothing with SMTP server. There are only 5 packets. Two standard UDP > with DNS query for PROXY host name, and then 3 packets with PROXY. > > Here are my user.r > set-net [ [EMAIL PROTECTED] center.fmph.uniba.sk none >proxy.sturak.sk 8080 generic ] > > Please tell me what's wrong. > Thanks > > Peter Hanusiak > >
[REBOL] Problem with SMTP
Hi, I have problem with network settings in REBOL (tested with Win98 and Linux RH6.2). When I set correct SMTP server and proxy server (3 CERN) I can't send email. But when I set only SMTP server without proxy it's ok. In ethereal (network sniffer) I can see correct communication when I haven't proxy. But when I have PROXY in ethereal is communication with PROXY(why?) but nothing with SMTP server. There are only 5 packets. Two standard UDP with DNS query for PROXY host name, and then 3 packets with PROXY. Here are my user.r set-net [ [EMAIL PROTECTED] center.fmph.uniba.sk none proxy.sturak.sk 8080 generic ] Please tell me what's wrong. Thanks Peter Hanusiak
[REBOL] [REBOL] [REBOL] Redefining functions with objects Re:(4)
Hi Ingo: In reply to your statement: >When your 'op was named 'open, did you change the line >fp: open/new/write %objone.txt >to >fp: system/words/open/new/write %objone.txt >- >?? > >otherwise it has called itself, again and again ... I didn't - and that's why I got a stack overflow, because of unending recursion. Thanks! I'm glad you caught that! Tim At 01:20 PM 4/12/00 +0200, you wrote: >Hi Tim, > >I haven't closely looked at your code, but a >short notice on ... > >Those were the words of [EMAIL PROTECTED]: >> I have probably answered my own question: >> I'm still a newbie, but am pleased to return >> results -> >> ; == consider the following code: the two objects work >> ; independently. They use the same named methods >> ; op, prn, and close >> ; When I named those methods open, print,and close, >> ; I got stack overflows, which suggests to me >> ; that rebol doesn't like me overridding their >> ; own system functions. ><...> >> object-one: make object! >> [ >> op: func [] [fp: open/new/write %objone.txt] >> prn: func [value] >> [append fp value] >> cls: func[] [close fp] >> ] > >-- _ ._ >ingo@)|_ /| _| _ www./_|_) |o(_|(/_ We ARE all FREE> ingo@| |(_|o(_)| (_| >http://www.2b1.de/Rebol/ ._| ._| > >
[REBOL] fun with 'switch Re:(2)
Hi Elan, >Hi Michael, > >1. The Problem >2. The Solution > >1. The Problem: retval: curr-func switch retval [none [print "val-none"] "abort" [print "val-abort"]] >>== none >> >>Notice that the == none is the value returned from 'switch, not the >>execution of the none block. To further illustrate: > > >The reason it didn't work is that > >the none in a block, [none], is a value of type word! the none "as we know >and love it" is a value of type none!: [snip] >The same is true for other values/words such as false, true, on, off. That was very informative and well illustrated. I'd always thought of none, false etc as values in themselves, probably because my editor highlights the words. I knew (in the back of my mind) about none! etc but I never took the time to dissect the differences. I'm kinda surprised now that I hadn't run into this sort of problem earlier because of my prolific use of 'none. (BTW I now define $NONE as a standard variable in Perl along with $TRUE and $FALSE) >2. The Solution: [snip] >To apply it to your problem. Simply reduce the block you pass to switch: > >>> retval: none >== none >>> switch retval reduce [none [print "val-none"] "abort" [print "val-abort"]] >val-none Yep, that works (of course). >Hope this helps, Very much so. Thanks. - Michael Jelinek
[REBOL] fun with 'switch Re:
[EMAIL PROTECTED] wrote: > >> retval: curr-func > >> switch retval [none [print "val-none"] "abort" [print "val-abort"] Did you realize that the one above is a value of type word! and value "none", while your return value is a value of type none! ? You can solve this problem using reduce: >> switch none [ [none [print "found none"] [] == none >> switch 'none [ [none [print "found none"] [] found none >> switch none reduce [ [none [print "found none"] [] found none HTH, Gabriele. -- Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
[REBOL] sendmail Re:(2)
[EMAIL PROTECTED] wrote: > can also write procmail scripts. The company told me there was no way for them > to authenticate SMTP, so they had to shut it down. This kind of thing is It seems a bit silly to me, since they could simply set sendmail to accept connections from localhost only. Anyway, running external programs on UNIX from REBOL is not that difficult. You just have to pipe REBOL's output to bash and you're done. Like: rebol -q script.r | bash HTH, Gabriele. -- Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
[REBOL] Searchable archive/ tcp/ip questions Re:(5)
Hi, maybe I didn't understand you correctly. Can you connect to the internet with other programs on the same computer and at the same time REBOL prints 192.168.0.1? IMHO the "primary" IP address of a computer with multiple network interfaces should be the IP address of a network interface which connects the computer to its default gateway. At least it works for me here this way. BTW I just found that system/network/host-address is just a stored copy of read join dns:// read dns://, so try that instead. -- Michal Kracik [EMAIL PROTECTED] wrote: > > Hello, > > It does print 192.168.0.1 again, so, uhm, is there any other way to get > around this? I can't access the network settings on a remote computer... ;o) > > Thanks, > Rachid > > > it's easy, try this: > > > > >> print system/network/host-address > > 194.213.219.17 > > > > If it prints your other IP address (in your example 192.168.0.1), try to > > change the order of network adapters in Windows network settings.
[REBOL] Sending email Re:
>i tried to send an email using the rebol command: send [EMAIL PROTECTED] "text" . >but then i have got an error message saying that I have to authenticate to >the POP3 server first. It's an authentification technique with the mailserver. Sending mail is done with SMTP client. POP3 is on a mailbox reading program. To send mail, there is the hybrid 'POP before SMTP' and then official "SMTP AUTH". See with your mail admin person which is required. Len
[REBOL] [REBOL] [REBOL] Redefining functions with objects Re:(3)
Hi Tim, I haven't closely looked at your code, but a short notice on ... Those were the words of [EMAIL PROTECTED]: > I have probably answered my own question: > I'm still a newbie, but am pleased to return > results -> > ; == consider the following code: the two objects work > ; independently. They use the same named methods > ; op, prn, and close > ; When I named those methods open, print,and close, > ; I got stack overflows, which suggests to me > ; that rebol doesn't like me overridding their > ; own system functions. <...> > object-one: make object! > [ > op: func [] [fp: open/new/write %objone.txt] > prn: func [value] > [append fp value] > cls: func[] [close fp] > ] When your 'op was named 'open, did you change the line fp: open/new/write %objone.txt to fp: system/words/open/new/write %objone.txt - ?? otherwise it has called itself, again and again ... hope this helps, Ingo -- _ ._ ingo@)|_ /| _| _ ingo@| |(_|o(_)| (_| http://www.2b1.de/Rebol/ ._| ._|
[REBOL] free web hosting with rebol Re:(3)
Hi Martin, don't forget about the extra load scripts will put on your server. You could spend alot of time creating a great script and end up having to pay extra for system resources. Just me thoughts. :) timmy [EMAIL PROTECTED] wrote: > Hi folks, > > I'm new at Rebol, and I would like to have som thoughts of mine straighted > out or confirmed: > > 1. A Rebol script can be used to fetch data from a textfile and put the data > into a HTML template, thus creating an unique web page? In this way one may > render lots of documents of the same kind, but with unique data, such as a > list of products where each product is linked to a script-generated > information page? > > 2. A Rebol script can be used in the way above, but on the server side, > reading data from a text file for input to the HTML template. In this way, > Rebol may serve the same function as Visual Basic or Javascript within an > Active Server Page? > > 3. Which one of the two above methods is preferred -- rendering unique web > pages with a script or having the script read data "on the fly" thus > providing dynamic web pages? > > I would be really glad to get some ideas on this, and maybe even some code > that I can play around with to learn from. Thanks! > > Kind regards, > > Martin Lindholm
[REBOL] Sending email
i tried to send an email using the rebol command: send [EMAIL PROTECTED] "text" . but then i have got an error message saying that I have to authenticate to the POP3 server first. how can do this? markus zmija ___ http://www.zmija.de