or
join rootdir %log.txt
== %/config/log.txt
Regards
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
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
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]
gards,
Jan
- Original Message -
Yes, it is possible. Try this:
--- %redirect.cgi ---
#!/home2/strejcek/REBOL/rebol -cs
REBOL[]
print "Location: http://www.rebol.com^/"
quit
This cgi kicks you to www.rebol.com
Is it what you are asking for?
Regards
Jan
[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/REBOL/rebol -cs
REBOL
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.
[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 example
.
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
now how to send mail from REBOL now with two email addresses in
To field.
Regards,
jan
--
Jan Strejcek
[EMAIL PROTECTED]
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]
]
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]
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]
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]
reak (with refinement /return to
return
some value)
Another $0.02 :-)
Regards.
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
--
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]
ust 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
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]
d,
content of form is added to URL of script). Somewhere I heard that some
software has this limit only 512 kB.
I'm not sure what's the state of this limit now, but it's quite often
to exceed 1024 chars without any problem. Maybe you should look into
specifications for URL.
Regards,
Jan
--
Ja
.
But I should warn you: function input? 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
--
...Len
--
Jan Strejcek
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]
Hey,
What about 'detab the script at first before next converting?
(please, please :-)
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
?
Carlos
--
Jan Strejcek
[EMAIL PROTECTED]
--
Jan Strejcek
[EMAIL PROTECTED]
quot;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]
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 some I should recommend this
document to your attention:
http://www.rebol.com/user-guide/style.html
Cheers,
jan
--
Jan Strejcek
[EMAIL PROTECTED]
ng, 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]
-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]
. 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 Strejcek"
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...).
Regards,
Jan
--
Jan Strejcek
[EMAIL PROTECTED]
le:
--%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.2.4.1, but new beta
ma
gards,
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 to
36 matches
Mail list logo