== %/config/
>> join rootdir "log.txt"
== %/config/log.txt
or
>> join rootdir %log.txt
== %/config/log.txt
Regards
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
n rebol, try this:
http://www.rebol.cz/cgi
Happy Easter,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
ve? 1:00
== true
I think that positive? 0:00 should be false, or shouldn't ?
(version: 2.2.0.4.2)
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
Are working on CGI's in REBOL? -> http://www.rebol.cz/cgi
ne that has worked has been:
> #!rebol -cs
If rebol starts from the first line of text file with executable flag,
it takes only one option (only one '-?'). It's not problem of rebol
AFAIK, it's common manner.
I don't know why. Please take it as the fact.
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
index.html^/"
Regards,
Jan
> - Original Message -
> > Yes, it is possible. Try this:
> >
> > --- %redirect.cgi ---
> > #!/home2/strejcek/REBOL/rebol -cs
> >
> > REBOL[]
> > print "Location: http://www.rebol.com^/"
> > quit
&
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hello,
>
> This is a slightly different interpretation of the question, but is it
> possible to redirect to another page from a Rebol CGI script?
Yes, it is possible. Try this:
--- %redirect.cgi ---
#!/home2/strejcek/REB
Tim.
> >
> >If you are playing with CGI and REBOL,
> >maybe you can found this stuff interesting:
> >
> >http://www.rebol.cz/cgi/
> >
> >Regards,
> >Jan
> >
> >--
> >Jan Strejcek
> >[EMAIL PROTECTED]
> >
> >
>
--
Jan Strejcek
[EMAIL PROTECTED]
Hi Tim.
If you are playing with CGI and REBOL,
maybe you can found this stuff interesting:
http://www.rebol.cz/cgi/
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
7 + (256 * data/8)
y: data/9 + (256 * data/10)
reduce [x y]
]
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
> Out of curiosity, has anyone written any Rebol/Core code that will
> extract the dimensions of JPEG, GIF, and PNG files? I know this is more
> the realm of Rebol/View, but it would be useful for Rebol/Core CGI
> scripts too.
Hi Eric.
Here is the function returning x and y sizes of gif.
g
> [EMAIL PROTECTED] wrote:
>
> > http://www.rebol.cz/cgi/
>
> Jan, this is great! I think it will be very useful here. :-)
I hope so. I'm still waiting for first real use...
(The main power can be seen on large forms, but it can be
quite handy also for small forms, as an exam
rt.
Have a nice day.
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
is, i.e.
get the addressees automatically from To, CC and BCC fields.
and make from Content field the body of the mail.
I don't know how to send mail from REBOL now with two email addresses in
To field.
Regards,
jan
--
Jan Strejcek
[EMAIL PROTECTED]
. (system/schemes).
> How can I know all the objects under a certain object?!
Try this:
>> tmp: make object! [a: 1 b: 2]
>> first tmp
== [self a b]
OR for concrete words in object:
>> found? in tmp 'a
== true
>> found? in tmp 'c
== false
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
"Not integer!"]
> > ]
> > none
> > ]
> >
> > >> test [ 1 2 3 "a" 5 6]
> > == none
> >
> > Dictionary says:
> >
> > Exits the current function immediately, returning a value as the result of
> > the function.
> >
> > So It's a bug IMHO.
> >
> > To exit only 'forall should be used break (with refinement /return to
> return
> > some value)
> >
> > Another $0.02 :-)
> >
> > Regards.
> > Jan
> >
> >
> > --
> > Jan Strejcek
> > [EMAIL PROTECTED]
> >
> >
>
--
Jan Strejcek
[EMAIL PROTECTED]
(question for Holger?)
what about reading stdin by this way:
instr: make string! 5 * 1024
while [found? tmp: pick system/ports/input 1][append instr tmp]
What are using You?
Thanks.
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
, returning a value as the result of
the function.
So It's a bug IMHO.
To exit only 'forall should be used break (with refinement /return to return
some value)
Another $0.02 :-)
Regards.
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
mp]
]
append first tmp value
][
append list reduce [to-set-word name value]
])
]
parse/all args [any equate]
list
]
Or maybe the plus-to-space function can be replaced by
replace/all string! "+" " "
>> probe obj: make object! decode-cgi "=4"
make object! [
: "4"
]
>> get in obj to-word ""
== "4"
Well, that was my two cents.
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
-
>
> But this code just hangs my server. What did I do wrong?
>
> Derrick
> [EMAIL PROTECTED]
> [ Game Review Index - http://rothrock.intercoastal.com/gri
> [ Cynthia Rothrock World Order - http://rothrock.intercoastal.com
>
--
Jan Strejcek
[EMAIL PROTECTED]
cgi/uploadfile] ;--The form field is called
> uploadfile
> -
>
> But this code just hangs my server. What did I do wrong?
>
> Derrick
> [EMAIL PROTECTED]
> [ Game Review Index - http://rothrock.intercoastal.com/gri
> [ Cynthia Rothrock World Order - http://rothrock.intercoastal.com
>
--
Jan Strejcek
[EMAIL PROTECTED]
Hello.
I make one cgi in REBOL for one czech Amiga dealer. The problem is
that their internet provider has some troubles with installing REBOL.
Their system:
slackware-4.0, libc6, kernel 2.2.14 SMP (iX86)
If they try to execute REBOL, this error message occurs:
./rebol: error in loading shar
I probably found bug in 'parse when using marking and modifying the string
[sorry if it was already reported]
REBOL 2.2.0.4.1
See some rules:
test1: [any ["^-^-" copy ii thru newline mark: (print ii) :mark] to end]
test3: [any ["^-^-" copy ii thru newline mark: (print ii mark: mark) :mark] to
into
specifications for URL.
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
o it via POP protocol
> >(documented somewhere on www.rebol.com).
> >
> >Regards,
> >Jan
> --
> ...Len
>
--
Jan Strejcek
[EMAIL PROTECTED]
? has a bug in version 2.2.0.4.1
(Linux) and maybe in others.
If you wanna just read some mailbox, try to do it via POP protocol
(documented somewhere on www.rebol.com).
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
Hey,
What about 'detab the script at first before next converting?
(please, please :-)
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
one short comment to your discussion:
It will be also useful to provide a way how to crypt
only function - not all script. I can easily imagine situation,
when one wants provide rebol function to other REBOL funs without
giving them a possibility to see or modify the source.
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
> [EMAIL PROTECTED] wrote:
>
> > Hello, is Rebol keeping count of all these "me too" messages, or will there
> > be a "go here for the Rebol/view beta" message later? If the former...
> > ME TOO.
> >
>
> Hey, one copy to Czech Republic, please :-)
Hey, Petr.
Let me fix your order, please:
TWO
;
> Anyone can help me?
>
> Carlos
--
Jan Strejcek
[EMAIL PROTECTED]
27;brownie button' ?)
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
uot; ]
> >== ["this" "is" "a" "test"]
> >>> i: 3
> >== 3
> >>> x/:i
> >== "a"
> >
> >>> ; but all attempts to set x/:i seem to fail
> >
> >>> x/:i: "the"
> >** Syntax Error: Invalid word -- :i:.
> >** Where: (line 1) x/:i: "the"
>> do rejoin compose [ "x/"(:i)": " "{the}"]
== ["this" "is" "the" "test"]
>>
(I know, it's ugly :-).
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
+ 1]
> ** Syntax Error: Invalid word-get -- :.
> ** Where: (line 1) if( str = "&") [x : x + 1]
> >>
> Now fixed
> >> if( str = "&") [x: x + 1]
> == 1
Hi folks.
I don't wanna get you angry, but a few last lines
convinced me that
and why should -1,5 (or by US syntax -1.5)
be rounded to -2. I think it should be rounded to -1 and I also
think that the definiton of rounding by to-integer! (x + 0.5)
is fully convenient.
(I study math (also ;-) on university for more than 4 years... :-)
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
integer constant to
> make all practical numbers positive, then rounding, then subtracting the
> constant.
Yes, this is good solution.
round: func [a][
either negative? a [
b: to-integer a - 10
b + round a - b
][to-integer a + 0.5]
]
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
Fs. But it take some time,
because implementation of LZW compression is needed...
Regards,
Jan
Well, here is the script with minor changes but with huge comment:
(I'll also send it to rebol.org soon)
REBOL [
Title:"GIF number generator"
Author: "Jan St
open tcp/ip connection to www server and act like browser,
i.e. on port 80 communicate via http protocol.
(commands like GET,...) I wanna make some support exactly for
this (calling cgi scripts with submitting data by POST method),
but I'm quite bussy now (just working on GIF support for rebol.
format (also for CGI use))...
Regards,
Jan
> http://cgi.math.muni.cz/~strejcek/counter.cgi?hits=123&size=5
--
Jan Strejcek
[EMAIL PROTECTED]
of digits (supported 1-10)"
]
--end of %counter.cgi---
calling:
http://www.whereyouplaceit.com/counter.gci?hits=123&size=5
it is working here:
http://cgi.math.muni.cz/~strejcek/counter.cgi?hits=123&size=5
increasing the counter isn't implemented yet (but it's really very easy).
I&
> 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
g file:
--%mailik--
>From [EMAIL PROTECTED] Mon Nov 1 14:11:21 1999
Date: Mon, 1 Nov 1999 15:02:08 +0100 (CET)
From: Jan Strejcek <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: ugh
--
Jan Strejcek
[EMAIL PROTECTED]
--end of %mailik--
and when I write on my linux (with 2.1
to_parse "/n"
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
> Hello,
>
> I've just about solved my HTML parsing question from yesterday. (The code
> segment I provided yesterday provided a simplistic example.) For some reason
> I don't quite understand, the information I needed on parsing is found in
> the "Addendum" to the Users Guide.
>
> I now want t
p! decode-cgi system/options/cgi/query-string
number: load cgi/number
digits: load data/digits
if all [integer? number integer? digits] [
...
]
Hope this Helps.
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
43 matches
Mail list logo