[REBOL] Simple Q: Building filenames Re:

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

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

2000-04-20 Thread strejcek
n rebol, try this: http://www.rebol.cz/cgi Happy Easter, Jan -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] positive? bug

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

[REBOL] CGI problem Re:

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

[REBOL] Redirecting CGI Content Re:(4)

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

[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/REB

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

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

[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. g

[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 exam

[REBOL] CGI - Generator

2000-03-01 Thread strejcek
rt. Have a nice day. Jan -- Jan Strejcek [EMAIL PROTECTED]

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

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

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

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

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

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

[REBOL] cgi and post

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

[REBOL] [BUG] in 'return

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

[REBOL] decode-cgi problems

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

[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
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]

[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 shar

[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] to

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

2000-01-21 Thread strejcek
into specifications for URL. Regards, Jan -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] input--thanks. Re:

2000-01-14 Thread strejcek
o it via POP protocol > >(documented somewhere on www.rebol.com). > > > >Regards, > >Jan > -- > ...Len > -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] newbie question: ?? Re:

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

[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] how to create a hidden or encrypted script? Re:(5)

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

[REBOL] What's next for REBOL... Re:(5)

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

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

2000-01-04 Thread strejcek
; > Anyone can help me? > > Carlos -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] REBOL Trivia :) Re:

1999-12-07 Thread strejcek
27;brownie button' ?) Regards, Jan -- Jan Strejcek [EMAIL PROTECTED]

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

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

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

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

[REBOL] Round function Re:(4)

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

[REBOL] Round function Re:(6)

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

[REBOL] almost counter CGI Re:(4)

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

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

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

[REBOL] almost counter CGI Re:(2)

1999-11-13 Thread strejcek
format (also for CGI use))... Regards, Jan > http://cgi.math.muni.cz/~strejcek/counter.cgi?hits=123&size=5 -- Jan Strejcek [EMAIL PROTECTED]

[REBOL] almost counter CGI

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

[REBOL] exists? url Re:

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

[REBOL] input? problem

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

[REBOL] parse by newline Re:

1999-11-01 Thread strejcek
to_parse "/n" Regards, 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 t

[REBOL] simple cgi - help needed Re:

1999-01-16 Thread strejcek
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]