[REBOL] Re: works for GET, not POST
Ryan, It appears as though you will need to read from system/ports/input to receive the actual POST query data. This process is explained in more detail in the "REBOL/Core User's Guide," which is available in pdf format online at: http://www.rebol.com/download_manual.html or the print version is available through www.rebolpress.com . The relevent section begins on page 402, with POST explained on the following two pages. Hope this helps. - Scott - Original Message - From: "Ryan C. Christiansen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 19, 2001 5:19 PM Subject: [REBOL] works for GET, not POST > I'm using the following function, which is derived from the "Official > Guide," for CGI. > > retrieve-user-data: func [] [ > return make object! decode-cgi > either system/options/cgi/request-method = "POST" [ > input > ][ > system/options/cgi/query-string > ] > ] > > > I use it as such: > > cgi-input: retrieve-user-data > > to give me an object containing the input values. > > My usage is working for GET operations but not for POST. What am > I doing wrong? > > -Ryan > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: #REBOL
Hello Paul On 20-Jan-01, Paul Tretter wrote: > > We have now established chat on #rebol on EFNET on IRC. Also anyone know > when QNX version of /core experimental will be extended or new one > released the other one is expired. > > Paul Tretter > Not sure as to your ? but wanted the list to know that a newer version of QNX RTOS is out Regards -- In God we trust... all others we voice verify. -- Scherker JMS Trustee http://www.jms.org HP=http://www.sonic.net/~alanwall/ First computer solar powered vic-20 AmigaQNX-notAmigaNG=no good computers for people not suits sent via Yam ver2.2 on AmigaForever verIV Be a Rebel get Rebol@ rebol.com UIN#=9391028 -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: how do I get ampm format for time?
On 21-Jan-01, [EMAIL PROTECTED] wrote: > Howdy, Senator Racko: >> #1) I consider that most of you overlooked a biggie. > Likewise: > Some of us (me) had no idea this was intended as a > Programming Challenge (way too busy to read the whole > thread), and was only paying attention when they noticed a > bug in some posted code. I'd cut-and-pasted Bob's function and gave it a time to see what it did with it, but it just gave me an error, which I thought may have been due to the cutting-and-pasting, (I miss attachments on this list, as I'm sure others do), so I just assumed that what he wanted was a way to convert times to AM-PM format, (since REBOL /can /do the opposite), as it's not difficult to extract times from dates if that's what's wanted. Oh well. (: -- Carl Read [EMAIL PROTECTED] -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] #REBOL
We have now established chat on #rebol on EFNET on IRC. Also anyone know when QNX version of /core experimental will be extended or new one released the other one is expired. Paul Tretter -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: ANY function
Thanks Andrew that should do it. I didnt even think of that. Paul Tretter - Original Message - From: "Andrew Martin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 2:15 PM Subject: [REBOL] Re: ANY function > Paul Tretter wrote: > > Does anyone have an any function that returns only true values? > > Try: > not none? any [ > find string "Stuff" > ; etcetera > or: > any [ > found? find string "stuff" > ; etcetera > > I hope that helps! > > Andrew Martin > ICQ: 26227169 http://members.nbci.com/AndrewMartin/ > -><- > > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: web-based archive for this list
David wrote: > This is the most active rebol list and a great knowledgebase. Are there searchable archives on the web? Try: http://www.rebol.org Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/ -><- -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: how do I get ampm format for time?
Howdy, Senator Racko: > #1) I consider that most of you overlooked a biggie. Likewise: Some of us (me) had no idea this was intended as a Programming Challenge (way too busy to read the whole thread), and was only paying attention when they noticed a bug in some posted code. I just get a little edgy when people start extrapolating from some code I banged out and posted to the list into a large scale assessments of my work, or the company I work for. :) Of course, it's best to always post code that you think is well polished, as a representative of your company, but I don't necessarily feel obliged to meet specific requirements of a non-customer especially if I'm not aware of those particular requirements. :-) A suggestion: Threads that are Programming Challenges should put "[PROGRAMMING CHALLENGE]", or something like that, in the subject line so I can avoid accidentally posting in those threads. (-: Muchos gracias, and salud! -jeff -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: ANY function
Paul Tretter wrote: > Does anyone have an any function that returns only true values? Try: not none? any [ find string "Stuff" ; etcetera or: any [ found? find string "stuff" ; etcetera I hope that helps! Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/ -><- -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: how do I get ampm format for time?
At 06:57 PM 1/19/01 -0600, GS Jones wrote: >Hi, Jeff, Bo, et al > >It seems to work at all the "boundary" cases, but please yell if I >overlooked something. nearly everyone missed something. shall I grade all of us on a curve? #1) I consider that most of you overlooked a biggie. Succinct was chosen as a precise word. It doesn't only mean small or fast or unreadable. (smile) It particularly doesn't mean "change the spec". It doesn't matter how fast you make it if I must insert an intermediate function to convert what you wrote into what would function as a drop-in replacement. You would have to benchmark the intermediate too. I used the word named 'dt (vs tm) as an argument in my example for a reason. I also did not restrict the argument type for a reason. I was passing date!s (not time!s) into it. Specifically I was passing structures that would have a /time path or refinement to them. These were not just time paths to things I made up, they had to work with standard rebol return values that had a /time refinement. In some cases I made a /local dt and copied your argument to the local as in myampm: func [ adt /local dt ] [ dt: adt/time ... ] in order to avoid the intermediate function call overhead. Here are test cases derived from actual working sections of the code where the function is used. time-ampm modified? %user.r time-ampm ( oo: make object! [ time: now ] ) time-ampm now #2) most of you did not get the fact that the result was to be fixed width (zero padded on the left) -- the clue was in the comment ; hh:mm vs [h]h:mm This one turned out to be less important as the system I was trying to mimic [remember my reason for starting the "How do I thread(s)" ??? ] said fixed width in the spec but in implementation [reality] was variable width and not 0 padded! this one has a boundary case which wrecks even my own code. time-ampm 20-Jan-2001/18:57:53 #3) what about being able to get only what you are interested in? >this version allows coding by deletion >since the two parts ... However, This part of the challenge seems to have been ignored. In the area of potential refinements, I saw very little in the replies that could be easily tweaked return the two separate values (AM PM vs 12 hrfmt). I guess it was the excitement of the hunt. so here you also have a lesson in "coupling and cohesion". RT is to be congratulated in the cohesion of the base date!time! refinements. I will let you each decide how badly you sacrificed coupling in the interest of beating a benchmark. Overall, I appreciate the effort and thanks for your participation. Most of you figured out that there was little I stood to gain by putting up my challenge if my own code worked adequately already. Indeed, I was also trying to make the community (not just RT) aware of practical and potential extensions (see http://rebol.com/contribution_source.html ) or alternatively, refinements to the base time!date! types involved. (see refinements below) Being the stickler for orthogonality I am, I noted that REBOL can accept 12hour format but is not so good at emitting it (or allowing the programmer to). print 20-Jan-2001/08:57PM By pointing out so many different ways one can make mistakes at the boundaries in emitting it and getting you to come up with a concise function that does it all, I make it attractive to be standardized or codified. If any of you want to resubmit a better and more concise solution (read succinct) that RT can consider for a to-ampm (like to-idate) with refinements that allow selective inclusion/exclusion of the parts then lets hear it! In the meantime, what if it were just a simple part of the datatypes involved? As I have watched Rebol evolve, "being able to get [at] only what you are interested in" is a characteristic of the base type support in the language. --proposed refinements-- Date Refinements: /year -- Returns the year only. /month -- Returns the month only. /day -- Returns the day of the month only. /time -- Returns the time only. /zone -- Returns the time zone offset from GMT only. /date -- Returns date only. /weekday -- Returns day of the week as integer (Sunday is day 7). /inampm -- time portion as [h]h:mm:ss[A|P]M, variable width hh, first hour is 12 not 0 can be combined with /time to return time only portion Time Refinements: /hour -- (stet) /minute -- (stet) /second -- (stet) /ampm -- ante meridiem, returns "AM" or "PM" /in12hr -- [h]h:mm:ss, variable width hh, first hour is 12 not 0 example: { ftim: modified? %/databse/srcobjs print ftim/inampm print now/inampm } -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] ANY function
Does anyone have an any function that returns only true values? Paul Tretter -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] web-based archive for this list
this is the most active rebol list and a great knowledgebase. are there searchable archives on the web? regards, david __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: script library on rebol.com vs rebol.org
- Original Message - From: "Robert Philippe" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 2:48 AM Subject: [REBOL] Re: script library on rebol.com vs rebol.org > I'd like to put my pennies worth in also. I agree with Mark, We shouldn't > force the authors to update their code. I think the programs were made > public out of a sense of community sharing. Sorry, I think you guys missed my point. Nothing to do with forcing at all. Many of the authors I know have more recent versions and would like to get the updated ones there, but have been unable to whilst the upload bot has been failing. There have been a number of core releases since some of those scripts went up there, some are very out of date (obsolete functions), others were broken by changes in core. Besides its a little courtesy for the author, let 'em know you like the script, report any bugs, have they got an update?, ask about their coding style, technical choices. A lot of us who have contributed many scripts to the public sphere, do not object to such questions/comments, many friends have been made through these interchanges. Cheers, Allen K -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: REB-site updated
Hi Gabriele, I've downloaded your DBMS for study, If you don't mind. I think I'll be a great learning experience. Also, Nice Picture :-) Robert P. - Original Message - From: "Gabriele Santilli" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 19, 2001 2:26 PM Subject: [REBOL] Re: REB-site updated > Hello David! > > On 19-Gen-01, you wrote: > > DV> What is the url? thanks. david > > Sorry, you can reach it thru "Rebol.it" icon or entering: > > http://web.tiscalinet.it/rebol/index.r > > Regards, > Gabriele. > -- > Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL programmer > Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/ > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: REB-site updated
I was just thinking as I was downloading the script that we should have an add to favorites type of capability to the /View interface. Paul Tretter - Original Message - From: "Gabriele Santilli" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 19, 2001 1:26 PM Subject: [REBOL] Re: REB-site updated > Hello David! > > On 19-Gen-01, you wrote: > > DV> What is the url? thanks. david > > Sorry, you can reach it thru "Rebol.it" icon or entering: > > http://web.tiscalinet.it/rebol/index.r > > Regards, > Gabriele. > -- > Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL programmer > Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/ > > -- > To unsubscribe from this list, please send an email to > [EMAIL PROTECTED] with "unsubscribe" in the > subject, without the quotes. > -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.
[REBOL] Re: REB-site updated
Hello David! On 19-Gen-01, you wrote: DV> What is the url? thanks. david Sorry, you can reach it thru "Rebol.it" icon or entering: http://web.tiscalinet.it/rebol/index.r Regards, Gabriele. -- Gabriele Santilli <[EMAIL PROTECTED]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/ -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.