[REBOL] Simple Q: Building filenames Re:

2000-04-22 Thread strejcek
or join rootdir %log.txt == %/config/log.txt Regards Jan -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] positive? bug

2000-04-05 Thread strejcek
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

[REBOL] CGI problem Re:

2000-04-04 Thread strejcek
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]

[REBOL] Redirecting CGI Content Re:(4)

2000-04-01 Thread strejcek
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

[REBOL] Redirecting CGI Content Re:(2)

2000-03-31 Thread strejcek
[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

[REBOL] [REBOL]CGI Bug in rebol? Re:

2000-03-30 Thread strejcek
found this stuff interesting: http://www.rebol.cz/cgi/ Regards, Jan -- Jan Strejcek [EMAIL PROTECTED] -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] [REBOL]Where's CGI Documentation? Re:

2000-03-29 Thread strejcek
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]

[REBOL] JPEG, GIF, and PNG dimensions Re:(4)

2000-03-28 Thread strejcek
7 + (256 * data/8) y: data/9 + (256 * data/10) reduce [x y] ] Regards, Jan -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] JPEG, GIF, and PNG dimensions Re:

2000-03-27 Thread strejcek
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.

[REBOL] CGI - Generator Re:(2)

2000-03-02 Thread strejcek
[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

[REBOL] CGI - Generator

2000-03-01 Thread strejcek
. Jan -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] 'send and the subject-line Re:

2000-02-24 Thread strejcek
now how to send mail from REBOL now with two email addresses in To field. Regards, jan -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] System... and the other objects! Re:

2000-02-22 Thread strejcek
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]

[REBOL] decode-cgi problems

2000-02-20 Thread strejcek
] 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]

[REBOL] [BUG] in 'return

2000-02-20 Thread strejcek
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]

[REBOL] cgi and post

2000-02-20 Thread strejcek
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]

[REBOL] [BUG] in 'return Re:(2)

2000-02-20 Thread strejcek
reak (with refinement /return to return some value) Another $0.02 :-) Regards. Jan -- Jan Strejcek [EMAIL PROTECTED] -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] Emailing Files from a form Re:

2000-02-15 Thread strejcek
- 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]

[REBOL] Emailing Files from a form Re:

2000-02-15 Thread strejcek
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]

[REBOL] installation problems on slackware

2000-02-07 Thread strejcek
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

[REBOL] [BUG]

2000-01-30 Thread strejcek
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]

[REBOL] Form method - POST or GET? Re:

2000-01-21 Thread strejcek
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

[REBOL] input--thanks. Re:

2000-01-14 Thread strejcek
. 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

[REBOL] how to create a hidden or encrypted script? Re:(5)

2000-01-13 Thread 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]

[REBOL] Displaying REBOL script with embedded HTML on REBOL site Re:(3)

2000-01-13 Thread strejcek
Hey, What about 'detab the script at first before next converting? (please, please :-) Jan -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] Can't view an HTML page sent with REBOL Re:

2000-01-04 Thread strejcek
? Carlos -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] REBOL Trivia :) Re:

1999-12-07 Thread strejcek
-- Jan Strejcek [EMAIL PROTECTED]

[REBOL] More syntax/documentation Q's Re:(2)

1999-11-30 Thread strejcek
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]

[REBOL] another dumb problem!! Re:(2)

1999-11-23 Thread strejcek
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]

[REBOL] Round function Re:(6)

1999-11-20 Thread strejcek
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]

[REBOL] Round function Re:(4)

1999-11-20 Thread strejcek
-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]

[REBOL] almost counter CGI Re:(4)

1999-11-16 Thread strejcek
. 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"

[REBOL] loading a web page resulting from cgi post Re:

1999-11-15 Thread 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]

[REBOL] input? problem

1999-11-02 Thread strejcek
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

[REBOL] parse by newline Re:

1999-11-01 Thread strejcek
gards, Jan -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] Multiple Expressions in Parsing Rules Re:

1999-10-29 Thread strejcek
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