[REBOL] Rebol/Command

2000-04-20 Thread jregent

Could I please be added to the list of betatesters?

Thank You,

Nice day and congratulations to Bo :-)

Jan Regent





[REBOL] Rebol/Command Re:

2000-04-20 Thread cbayona

Me too.

At 05:27 AM 04/20/2000, you wrote:
Could I please be added to the list of betatesters?

Thank You,

Nice day and congratulations to Bo :-)

Jan Regent




[REBOL] unsubsribe

2000-04-20 Thread KB3

unsubsribe




[REBOL] Limit on data in CGI Post? Re:(4)

2000-04-20 Thread allenk

 
  Also, decode-cgi is only for the GET request and not for POST.  Yo
  uwill find that POST data has a more complex structure... almost like
  an email with attachments.  You will have to deal with that data
  yourself.
 
Jan wrote..
 That's not right.
 The default encoding for POST is the same as for GET, i.e. 
 application/x-www-form-urlencoded. 

Hi Jan

Sterling is refering to the common use of POST for multiple mime types
enctype="multipart/form-data" (used for file uploads), 
where as he says, it is much more like dealing with email attachments.

Cheers,

Allen K





[REBOL] Limit on data in CGI Post? Re:(3)

2000-04-20 Thread rex

On Wed, Apr 19, 2000, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

:CGI POST calls will send the data you want to the CGI process.  When
:yo uare handling it yo umay need multiple reads to get it all... it
:may not all be there when you do your first read.  You'll notice that
:with POST you also get some headers and one of them should tell you
:how much data to expect.  Therefore you can write a read loop to get
:it all.
:
:You would most likely need to check to make sure that the port is
:still open as well as read from it (copy) to deal with data transfer
:delays and all.

:Also, decode-cgi is only for the GET request and not for POST.  Yo
:uwill find that POST data has a more complex structure... almost like
:an email with attachments.  You will have to deal with that data
:yourself.

Thanks, this has been driving me nuts. :)  I don't 
have to worry
about uploads yet, everything's being submitted with url-encoding.

.:Eric




[REBOL] Rebol/Command Re:

2000-04-20 Thread ajamaya

Me too, please!


--- [EMAIL PROTECTED] wrote:
 Could I please be added to the list of betatesters?
 
 Thank You,
 
 Nice day and congratulations to Bo :-)
 
 Jan Regent
 
 
 

__
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com




[REBOL] Re: Welcome to the REBOL email list.

2000-04-20 Thread carlos



[EMAIL PROTECTED] wrote:

 Welcome to the REBOL email list.

 Thanks for joining in the discussion.  This email
 list is run by a REBOL script named SELMA: Simple
 Email List-Managing Applet.

 Here is some helpful information:

 Commands to REBOL SELMA are given on the subject
 line of your message. These commands are currently
 supported:

   help - get this information
   suggest - make a suggestion about the list
   selma-source - get the current source code to SELMA
   get msg N - send yourself message #N
   subscribe - add yourself to the list
   unsubscribe - remove yourself from the list

 No other commands are provided at this time.

 -SELMA




[REBOL] IP reading enhancement, WAS: Searchable archive/ tcp/ip questions Re:(5)

2000-04-20 Thread mailinglists

Hello Michal,

Oops, sorry, noticed your message a bit late!

- Original Message -
 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?

Yep, exactly! I'm on the internet (dial-up networking, Win98), and Rebol
prints my network IP address instead of the internet IP number...
winipcfg does give me the correct number, but Rebol doesn't.

But it's probably a windows thing, because when I synchronise my
computer over the network, and then attempt to go online, IE5 just keeps
telling me I have to connect (when I have 'connect when there is no
network present' checked), so I figure it's a windows thing.

BUT, since winipcfg CAN read the correct address, perhaps Rebol should
be more perceptive in this case? Perhaps a refinement that reads out the
PPP-adapter's IP address, instead of the primary IP address?

How about it RT?

Regards,
Rachid




[REBOL] IP reading enhancement, WAS: Searchable archive/ tcp/ip questions Re:(6)

2000-04-20 Thread holger

On Thu, 20 Apr 2000, you wrote:

 Yep, exactly! I'm on the internet (dial-up networking, Win98), and Rebol
 prints my network IP address instead of the internet IP number...
 winipcfg does give me the correct number, but Rebol doesn't.
 
 But it's probably a windows thing, because when I synchronise my
 computer over the network, and then attempt to go online, IE5 just keeps
 telling me I have to connect (when I have 'connect when there is no
 network present' checked), so I figure it's a windows thing.
 
 BUT, since winipcfg CAN read the correct address, perhaps Rebol should
 be more perceptive in this case? Perhaps a refinement that reads out the
 PPP-adapter's IP address, instead of the primary IP address?

REBOL gets the IP address from the host name, using DNS lookup, and this
is arguably the correct thing to do.

The problem is that some programs use IP addresses for all kinds of things,
and this easily causes problems on multi-homed hosts because a program
has no way of knowing which IP address is correct. As a rule, a program
ideally should never use local IP addresses for anything other than printing
debugging/diagnostic information. Local IP addresses should definitely never be
used in a protocol in any way. 

Because of that, adding refinements to extend the current IP address API in
REBOL would only make things worse, because it would require scripts to be
changed by every user so the refinements match the configuration of the machine
they are running on -- a bad idea.

Unfortunately in REBOL/Core 2.2 the FTP implementation uses local IP addresses
in such an incorrect way, which is causing problems for some users. The correct
thing is not to change the way REBOL determines the local IP address, but rather
to fix the protocols so they do not need to know local IP addresses at all :-).
FTP in REBOL/View does it correctly, and the fix will also be in the next /Core
release.

--
Holger Kruse
[EMAIL PROTECTED]




[REBOL] Rebol webserver which executes Rebol scripts?

2000-04-20 Thread bobkanuri

Hi,

Sorry if this has been covered already but I couldn't find anything in the
examples, documentation, or mailing list archive and I'm a clueless newbie
in Rebol. Basically, is it possible to create a Rebol webserver which
executes Rebol scripts? For example, say I had a Rebol webserver which
serves a html form. Could I pass the values on this form to a Rebol script
and have it return a dynamically generated webpage?

I tried RUI (http://195.181.8.32/dm98411/rebol/ and
http://rebol.org/cgi-bin/cgiwrap/rebol/userlist-search.r?type=wordssection=
bodyindexes=10search=rui). It shows that this is possible. However, RUI is
slow, it lacks documentation, and the interface is unlike anything I've seen
in web development. I don't mean to knock RUI because it's very slick and
maybe it's the only way of doing this. However, it'd be nice to have a
simpler and cleaner model. Especially as a way to package Rebol scripts for
those who fear everything non-gui.

If this has already been discussed could somebody send me a link?

Thanks,
Bob




[REBOL] Rebol webserver which executes Rebol scripts? Re:

2000-04-20 Thread Al . Bri

Bob wrote:
 ... is it possible to create a Rebol webserver which executes Rebol
scripts?

Have a look at http://www.rebol.org

There's a rebol web server or two there. Plus there's a simple one in the
examples, I believe in the rebol site. There's also been other web servers
posted on this mailing list. Nearly all of them can run rebol scripts.

You could also get the beta REBOL Apache module, which, I believe, runs a
lot quicker.

And, as a cgi, you can run REBOL under several non-rebol web servers, such
as MS PWS and others.

I hope that helps.

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




[REBOL] IP reading enhancement, WAS: Searchable archive/ tcp/ip questions Re:(7)

2000-04-20 Thread mailinglists


Thanks for the thorough explanation, Holger!

But, how can I solve my problem? I want to know my internet IP address,
how do I get it from Rebol?

TIA,

Rachid

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 20, 2000 15:14
Subject: [REBOL] IP reading enhancement, WAS: Searchable archive/ tcp/ip
questions Re:(6)


On Thu, 20 Apr 2000, you wrote:

 Yep, exactly! I'm on the internet (dial-up networking, Win98), and
Rebol
 prints my network IP address instead of the internet IP number...
 winipcfg does give me the correct number, but Rebol doesn't.

 But it's probably a windows thing, because when I synchronise my
 computer over the network, and then attempt to go online, IE5 just
keeps
 telling me I have to connect (when I have 'connect when there is no
 network present' checked), so I figure it's a windows thing.

 BUT, since winipcfg CAN read the correct address, perhaps Rebol should
 be more perceptive in this case? Perhaps a refinement that reads out
the
 PPP-adapter's IP address, instead of the primary IP address?

REBOL gets the IP address from the host name, using DNS lookup, and this
is arguably the correct thing to do.

The problem is that some programs use IP addresses for all kinds of
things,
and this easily causes problems on multi-homed hosts because a program
has no way of knowing which IP address is correct. As a rule, a program
ideally should never use local IP addresses for anything other than
printing
debugging/diagnostic information. Local IP addresses should definitely
never be
used in a protocol in any way.

Because of that, adding refinements to extend the current IP address API
in
REBOL would only make things worse, because it would require scripts to
be
changed by every user so the refinements match the configuration of the
machine
they are running on -- a bad idea.

Unfortunately in REBOL/Core 2.2 the FTP implementation uses local IP
addresses
in such an incorrect way, which is causing problems for some users. The
correct
thing is not to change the way REBOL determines the local IP address,
but rather
to fix the protocols so they do not need to know local IP addresses at
all :-).
FTP in REBOL/View does it correctly, and the fix will also be in the
next /Core
release.

--
Holger Kruse
[EMAIL PROTECTED]




[REBOL] online database manipulation

2000-04-20 Thread ralph

Hi REBOLers:

Among many other REBOLian projects, I am putting my ref book, THE SANDERS
PRICE GUIDE TO AUTOGRAPHS on line. It has over 80,000 prices. Until
REBOL/command is available and I can use mySQL, I've got the info on the
server as a tab-delimited text file. I read it into REBOL via this
technique:

a: read/lines %auto.db


a: to-hash a
b: []

random/seed now/time

repeat count 10 [append b pick a (random ((length? a) - 10))
]

You can a test of this in action (getting 10 random lookups every time
Refresh is hit) at http://abooks.com/cgi-bin/randauto.r.

My question: can anyone suggest a more efficient way to doing this?

Thanks,

--Ralph Roberts
REBmeister,
ALEXANDER BOOKS





[REBOL] IP reading enhancement, WAS: Searchable archive/ tcp/ip questions Re:(8)

2000-04-20 Thread holger

On Fri, 21 Apr 2000, you wrote:
 Thanks for the thorough explanation, Holger!
 
 But, how can I solve my problem? I want to know my internet IP address,
 how do I get it from Rebol?

You cannot, because "Internet IP address" is not a clearly defined term.
Some users have multiple Internet connections, some none at all. Also, not all
platforms provide APIs that allow REBOL to get IP addresses on individual
interfaces, not to mention the difficulty of even figuring out which interface
connects you to "the Internet". Plus there are complications with IP-NAT,
proxies...

Why do you need to know at all ? :-)

--
Holger Kruse
[EMAIL PROTECTED]




[REBOL] online database manipulation Re:

2000-04-20 Thread allenk


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 21, 2000 11:32 AM
Subject: [REBOL] online database manipulation


 Hi REBOLers:

 Among many other REBOLian projects, I am putting my ref book, THE SANDERS
 PRICE GUIDE TO AUTOGRAPHS on line. It has over 80,000 prices. Until
 REBOL/command is available and I can use mySQL, I've got the info on the
 server as a tab-delimited text file. I read it into REBOL via this
 technique:


Hi Ralph,

Just a small tweak for you. If the length of 'a doesn't need to be looked up
all the time in the loop, then assign it once. e.g

a-length: length? a
repeat count 10 [append b pick a (random a-length - 10))

Allen K


 a: read/lines %auto.db


 a: to-hash a
 b: []

   random/seed now/time

   repeat count 10 [append b pick a (random ((length? a) - 10))
   ]

 You can a test of this in action (getting 10 random lookups every time
 Refresh is hit) at http://abooks.com/cgi-bin/randauto.r.

 My question: can anyone suggest a more efficient way to doing this?

 Thanks,

 --Ralph Roberts
 REBmeister,
 ALEXANDER BOOKS