Hi,
I was wondering if I could use REBOL to make a simulator that listens on a
port and analyses the incoming data?
Is REBOL strong in parsing?
I've had little/no experience with REBOL but paging the dictionary, it is
quite appealing.
Cheers,
Marco
--
Marco Frissen [EMAIL PROTECTED]
Test Engin
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 04, 1999 1:02 AM
Subject: [REBOL] http server... Re:(9)
> Kat,
>
> I did some more experimenting. Here's what's returned by a VERY
simplistic
> web server (written in PERL):
>
> HTTP/1.0 404
[EMAIL PROTECTED] wrote:
> An interesting and insightful story about REBOL can be found in the
> latest release of "Linux World" at:
>
> http://www.linuxworld.com/linuxworld/lw-1999-10/lw-10-rebol.html
>
> Let the "REBOL Incursion" begin...
>
heh, I am just reading it :-) Carl, what's the stor
Kat,
I did some more experimenting. Here's what's returned by a VERY simplistic
web server (written in PERL):
HTTP/1.0 404 Object Not Found
Content-type: text/html
HTTP/1.0 404 Object Not Found
This would seem to support my last suggestion that these two lines (at
least) in a header might be
An interesting and insightful story about REBOL can be found in the
latest release of "Linux World" at:
http://www.linuxworld.com/linuxworld/lw-1999-10/lw-10-rebol.html
Let the "REBOL Incursion" begin...
-Carl
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 04, 1999 3:39 PM
Subject: [REBOL] Dates Re:
>
>Howdy Allen:
>
> > Hi Rebols,
> >
> > Has anyone got an i-date to REBOL date formatter? Or is
> > there one built in I haven't f
Kat,
As I said, I'm not privy to the inner workings of the 'read command in
REBOL, so cannot say just what it might be looking for. I'm only
speculating based on the difference in behaviour we're observing here. If
it's possible for you to insert some header info before the HTML file that's
ret
Howdy Allen:
> Hi Rebols,
>
> Has anyone got an i-date to REBOL date formatter? Or is
> there one built in I haven't found. I actually thought
> that to-date might work...but alas no luck
>> to-date skip to-idate now 5
== 3-Nov-1999/21:37:42-8:00
-jeff
Hi Rebols,
Has anyone got an i-date to REBOL date formatter? Or is there one built in I
haven't found.
I actually thought that to-date might work...but alas no luck
Version 2.2.0.31
d: to-idate now
== "Mon, 4 Oct 1999 15:26:50 +1000"
>> id-date: to-idate now
== "Mon, 4 Oct 1999 15:27:06 +1000"
Well, like i said, i wrote the server from the port access level up. What
header would Rebol like, and how is it sent?
Kat
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 03, 1999 4:17 PM
Subject: [REBOL] http server... Re:(6)
> Kat,
>
>
Kat,
Interesting that what's coming back has no header info in it. Here are the
result I see from a local connection (to OmniHTTPd server) and to an Apache
server on the net (both using Tom Jensen's code) for access:
===OMNI
HTTP/1.0 200 Document Follows
Content-Leng
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]):
> I need some help about recursive data structures (stacks, queues, trees, etc)
> Which is the best method in Rebol for the creation and manipulation of
> these structures?
>
> Example:
> The following is a simple C code for insertion and deletion o
Hi,
I had a similar problem. Then I looked in my %user.r file, and discovered
that I had long ago entered a "replace" function there and forgot about it.
I removed it, and the built in "replace" works fine now. Could you have
redefined the function somehow?
Regards,
Bernie Schneider
CIBER, Inc
I just upgraded to the new release and tried to build the "dictionary.html"
file. Here is what happened:
>> do %reboldoc.r
Script: "REBOL Dictionary" (11-Jun-1999/21:57)
301 words in dictionary
alias has no also block
any-block! has no examples
any-function! has no examples
any-string! has no
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 03, 1999 7:51 AM
Subject: [REBOL] Re: http server... Re:(3)
> On 03-Nov-99, [EMAIL PROTECTED] wrote:
>
> (reply at bottom of mail)
>
> -snip-
>
> >
> > Doesn't. I downloaded several web page
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 03, 1999 6:53 AM
Subject: [REBOL] http server... Re:(4)
> Hi Kat,
>
> Ok, well, from this post you seem to have the direction of slashes down
now.
My server accepts the slashes in both dire
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 03, 1999 7:12 AM
Subject: [REBOL] http server... Re:(4)
> [EMAIL PROTECTED] wrote:
>
> > What's happening?
>
> Let's do a test. Tell me what's the output of:
>
> port: open/binary tcp://loca
> Hi :-)
>
> 1) first, I would change your block to:
>
> Names: [
> Bill_Smith [
> workemail [EMAIL PROTECTED]
> homeemail [EMAIL PROTECTED]
> title "Engineer"
> ]
> ]
>
> If you want to use path navigation, for e.g.
>
> info: names/Bill_Smith
>
> Now you are able
Most likely you are not using the new 2.2 release of Core. Don't
forget folks, always try to:
>> upgrade
connecting to: www.rebol.com
Script: "Download Current Version" (2-Nov-1999/18:30:33-8:00)
Your copy of Linux, Libc6 iX86 REBOL/core 2.2.0.4.2 is currently up-to-date.
>>
To keep your copy
[EMAIL PROTECTED] wrote:
> Just as I sent my question I read the answer in a message sent yesterday
> by "Bo" Lechnowsky...
>
> Good, I got %redit-archive.r, extracted the files, and tried:
>
> >> do %redit.r
> Script: "REBOL native editor" (7-Oct-1999)
> ** Script Error: compose has no value.
Hi :-)
dir: read %/C/
found? find dir %autoexec.bat
true
found? find dir %autoexec.ba?
false
Is there any chance to do so? Or do I have to convert 'dir in the string
first?
Thanks,
-pekr-
Hi,
->> source to-integer
to-integer: func ["Converts to integer value." value "Value to
convert"][to integer! value
]
->> source to
to: native [
{Constructs and returns a new value after conversion.}
type [any-type!] "The datatype or example value."
spec [any-type!] "The attributes
Hi Rebols
I need some help about recursive data structures (stacks, queues, trees, etc)
Which is the best method in Rebol for the creation and manipulation of
these structures?
Example:
The following is a simple C code for insertion and deletion of stack elements.
How can be rewritten in REBOL?
Just as I sent my question I read the answer in a message sent yesterday
by "Bo" Lechnowsky...
Good, I got %redit-archive.r, extracted the files, and tried:
>> do %redit.r
Script: "REBOL native editor" (7-Oct-1999)
** Script Error: compose has no value.
** Where: append bounds compose/deep [
Thanks for the heads-up Ed. I'm still trying with no success as yet. I'll
give it a couple more days then just put it on the NT/IIS box and see how
that works.
Paul
>I tried for ages to get PWS to work with rebol but could not get it to
>work.
>I ended up giving up and using Apache instea
[EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED] schrieb:
>
> Hi,
>
> Can you give a small example of the problem? Nothing like that has shown
> up
> in our testing, so it may be something in the way you are using it that
> we
> are unaware of. Thanks.
>
> - jim
>
> Sorry, I have to exc
Hi gang,
... some three weeks ago our Inet admins changed topology of our
network, slowing down connection to firewall significantly. It's not
problem for web browsing, but as we have to use socks hosts setting
we've got problem on stations using Netscape. Time to solve the
situation ...
After s
[EMAIL PROTECTED] schrieb:
Hi,
Can you give a small example of the problem? Nothing like that has shown
up
in our testing, so it may be something in the way you are using it that
we
are unaware of. Thanks.
- jim
Sorry, I have to excuse.
I guess the different behavior is the outcom
Sounds like you're simply not using Vers 2.2 (or beta). Do the following to
check:
rebol/version
? replace
snip
>with the following resultswhats up?
>>> numbers: [1 2 3 4 5 6 7 8 9]replace numbers [4 5 6] ["four" "five" "six"]
>** Script Error: replace has no value.
>** Where: replace
I'm running this example script from the rebol home page
numbers: [1 2 3 4 5 6 7 8 9]
replace numbers [4 5 6] ["four" "five" "six"]
print numbers
with the following resultswhats up?
>> numbers: [1 2 3 4 5 6 7 8 9]replace numbers [4 5 6] ["four" "five" "six"]
** Script Error: replace has no v
On 03-Nov-99, [EMAIL PROTECTED] wrote:
(reply at bottom of mail)
-snip-
>
> Doesn't. I downloaded several web pages, IE5 showed them fine from the web
> and from my server, and hung on them from my server. Other people using
> various non-Rebol web browsers http'd me, and read the files ok too
On 03-Nov-99, [EMAIL PROTECTED] wrote:
> Hello,
> On 28-Oct-99, [EMAIL PROTECTED] wrote:
>
>>
>> While we're on the subject of optimization, how about this?
>>
>> now - 1-1-1970 * 86400
>
>>> In Perl <*shudder*> and Unix, you can use the number of seconds from the
>>> Epoch (January 1, 1970)
[EMAIL PROTECTED] wrote:
> What's happening?
Let's do a test. Tell me what's the output of:
port: open/binary tcp://localhost:80
insert port make string! [
"GET /Books/Dictionary/A-dct.txt HTTP/1.0" CRLF
CRLF
]
wait port
buffer: make string! 1024
read-io port buffer 1024
close port
pri
Hi Kat,
Ok, well, from this post you seem to have the direction of slashes down now.
Why the properly formed URL still hangs the 'read command I cannot say,
since 'read is native and I am not privy to its code or why the error
message is appearing.
However, in your earlier example, the explanat
Hi :-)
1) first, I would change your block to:
Names: [
Bill_Smith [
workemail [EMAIL PROTECTED]
homeemail [EMAIL PROTECTED]
title "Engineer"
]
]
If you want to use path navigation, for e.g.
info: names/Bill_Smith
Now you are able to navigate even further:
names/B
note: it is actually www.moneymarketing.co.uk
and it is hosted here...
:)
Francois
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 03, 1999 12:32 PM
To: [EMAIL PROTECTED]
Subject: [REBOL] exists? url Re:
Me thinks they aren't active...
Me thinks they aren't active... or perhaps intermittently so (they appear to
be hosted by Tabnet in CA). That URL would not come up here in Netscape,
and note the following:
>> read dns://www.moneymarketing.com
== none
>> read dns://moneymarketing.com
== none
>> read dns://moneymarket.com
== 209
sorry, that was my mistake in the email...! I meant to put
www.moneymarketing.co.uk
However every now and then the server dies, can anyone eleborate
as to what exists? url looks to find? I have noticed in the
past that servers using ColdFusion seem to return a false value
even though I can get to
[EMAIL PROTECTED] wrote:
> Hi,
>
> Can you give a small example of the problem? Nothing like that has shown up
> in our testing, so it may be something in the way you are using it that we
> are unaware of. Thanks.
Hi Jim, :-)
as for script I sent to the list yesterday, it still crashes even u
Hi,
Can you give a small example of the problem? Nothing like that has shown up
in our testing, so it may be something in the way you are using it that we
are unaware of. Thanks.
- jim
At 12:55 PM 11/3/99 +0100, you wrote:
>I have massive problems with the new verion.
>
>read-io from a ope
I have massive problems with the new verion.
read-io from a opened tcp port behaves totally different from the previous
versions.
It puts the third parameter (length or maximum number of bytes to read)
before the received messages into the buffer and does not get all the bytes I
expect in the m
> I have written a script to determine the status of a bunch
> of web servers.
>
> All of them are responding fine except one, returning a false statement.
> However when I connect to the server using a browser it is running fine. I
> realise that Rebol is probably looking for valid HTML headers
Hi all - have been reading the HowTo section of the Rebol documentation
concerning Simple Databases.
With a database such as the following
Names: [
[
"Bill" "Smith"
workemail [[EMAIL PROTECTED]]
homeemail [[EMAIL PROTECTED]]
title [Engineer]
]
]
etc e
I have written a script to determine the status of a bunch
of web servers.
All of them are responding fine except one, returning a false statement.
However when I connect to the server using a browser it is running fine. I
realise that Rebol is probably looking for valid HTML headers on port 80 o
44 matches
Mail list logo