[REBOL] text file changes Re:

2000-07-09 Thread icimjs

At 03:59 PM 7/10/00 +1000, you wrote:
>hi all
>just need a little help with something..
>i am trying to change all returns in a text file to tabs 

file: read %some-filename.txt

replace/all file "^/" "^-"

>and then change 
>every occurence of ZZZ to a returnis this possible?

replace/all file "ZZZ" "^/"

>i am on windoze 98se.the file is about 12mb with about 500,000 records.
>i have checked the user guide but couldn't get anything out of it regarding 
>this sort of thing
>
>thanks in advance
>keith
>
>
>

;- Elan [ : - ) ]




[REBOL] text file changes

2000-07-09 Thread bebox

hi all
just need a little help with something..
i am trying to change all returns in a text file to tabs and then change 
every occurence of ZZZ to a returnis this possible?
i am on windoze 98se.the file is about 12mb with about 500,000 records.
i have checked the user guide but couldn't get anything out of it regarding 
this sort of thing

thanks in advance
keith




[REBOL] REBOL: THE OFFICIAL GUIDE Re:(4)

2000-07-09 Thread bpaddock


>I can't believe how ungrateful people are being. You get the language for
>free, but when you have a chance to put a few extra dollars into RT hands,
>you look for ways to avoid it.
>
>Buy direct and pay the extra as a way of saying "Thank You" to Carl and the
>team.

Actually I'm kind of sorry I started this thread.  I simply
wanted to know about the "February" edition of the book, and
what those numbers on the book sites meant.

I never planed on buying it any place else, I had to look
there to passifiy my frugal wife.  I still keep hear about
the $15 I could have saved on "Embedded Systems Building
Blocks" if I'd done it her way.

I'll be placing my order with RebolPress just as soon as the
wife is not looking at the credit card statement... :-)




[REBOL] Launching another URL Re:(2)

2000-07-09 Thread tim

Hi Alessandro:
>t> I'd like to launch another URL from a CGI script.
>t> I could have the CGI program write a META tag like:
>t> http://foo.bar/blatz.r">
>t> Is there a better way to do this using rebol-specific
>t> features.
>
>You mean you start a CGI script from a web page (say, sending a form or
clicking on a link) and the script sends your browser to another page?
>You can do that with redirection, a standard practice for CGI. I don't
have access to my documentation, but it amounts to add a simple string in
the header. Nothing rebolous.
>
http://foo.bar/blatz.r">
Is one way to do it, that's probably what you're referring to, if not,
and you come across any other approach, 
I would consider it a favor if you sent it to me.

Also, I have found that the rebol print command: 
print "Location: http://www.rebol.com^/" will do the same. 

Thank you! 
:)-Tim




[REBOL] REBOL: THE OFFICIAL GUIDE Re:(4)

2000-07-09 Thread gschwarz

I agree
Money for work done is a good pat on the back.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 10, 2000 10:34
Subject: [REBOL] REBOL: THE OFFICIAL GUIDE Re:(3)


>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 10, 2000 2:01 AM
> Subject: [REBOL] REBOL: THE OFFICIAL GUIDE Re:(2)
>
>
> > No disrespect intended, but having found the book for $31.89 with no
> > shipping (at ecampus) I don't think the tip sheet is worth the extra
> $13.60.
> > On a side note, it seems that there are two other Rebol books out there
as
> > well. I'm still getting this one, but...
>
> I can't believe how ungrateful people are being. You get the language for
> free, but when you have a chance to put a few extra dollars into RT hands,
> you look for ways to avoid it.
>
> Buy direct and pay the extra as a way of saying "Thank You" to Carl and
the
> team.
>
> Cheers,
>
> Allen K
>
>
>
>
>




[REBOL] REBOL: THE OFFICIAL GUIDE Re:(3)

2000-07-09 Thread allenk


- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 10, 2000 2:01 AM
Subject: [REBOL] REBOL: THE OFFICIAL GUIDE Re:(2)


> No disrespect intended, but having found the book for $31.89 with no
> shipping (at ecampus) I don't think the tip sheet is worth the extra
$13.60.
> On a side note, it seems that there are two other Rebol books out there as
> well. I'm still getting this one, but...

I can't believe how ungrateful people are being. You get the language for
free, but when you have a chance to put a few extra dollars into RT hands,
you look for ways to avoid it.

Buy direct and pay the extra as a way of saying "Thank You" to Carl and the
team.

Cheers,

Allen K







[REBOL] Re: Find speed

2000-07-09 Thread alex . pini

>- Open Your Mind -<



Quoting from Brian Hawley's message (08-Jul-00 01:31:18).

b>   This either means resorting the list after every
b> insert, using an incremental insertion sort, or making
b> sure the data is inserted in order.

Hmmm. :->
You mean something like this invented example?

  >> probe data
  == [15 98 60 52 10 2]

  >> insert/sorted/compare data 15 :method
  == [98 60 52 15 10 2]

Hey, staff!.. How 'bout... :->




Alessandro Pini ([EMAIL PROTECTED])

"!naidne elttil etah I"




[REBOL] Re: Adding data to hyperlinks, etc.

2000-07-09 Thread alex . pini

>- Open Your Mind -<



Quoting from Ryan's message (08-Jul-00 23:49:23).

n> The next feature I want to add is a commenting system. I want the reader to 
n> be able to click on a hyperlink for "comments" which will then execute a .cgi 
n> script. The .cgi script will then render a page including all of the comments  
n> people have posted in regards to the news article in question. The question I 
n> have is, how do I pass a value to a script from a hyperlink so that the 
n> script renders the correct set of comments?

Want to comment?

In case the mailer/browser mangled the above *text*, I'm writing it again, replacing 
angular brackets with square brackets.

[a href="path/comment.cgi?reference=12345"]Want to comment?[/a]




Alessandro Pini ([EMAIL PROTECTED])

"Our first course of action should be to collect more information." "My thinking 
exactly!" (7 of 9 & E.M.H.P.)




[REBOL] Re: Automation query...

2000-07-09 Thread alex . pini

>- Open Your Mind -<



Quoting from Elan's message (06-Jul-00 10:17:28).

i>date: replace form now "/" "-"
i>date: replace/all date ":" "."

Just for completeness, and knowing it's less readable, what about

  date: replace/all replace form now "/" "-" ":" "."




Alessandro Pini ([EMAIL PROTECTED])

"Artistic differences?" "I would hardly call mister Paris' ideas 'artistic'." (Torres 
& Tuvok)




[REBOL] Re: Does rebol --do "print 123" for e.g. work for ya?

2000-07-09 Thread alex . pini

>- Open Your Mind -<



Quoting from Petr Krenzelok's message (06-Jul-00 14:04:53).

P> I am just curious if running rebol with command line parameters work for
P> you? I get following error:
P> 
P> rebol --do "print 123"

I get 123. Should be correct, but...


P> ** Script Error: print is missing its value argument.
P> ** Where: print
P> ** Press enter to quit...

I get that error if I try without quotes. Should be correct, but...


... when I ask 

  rebol --do "print 123 * 5"

I get 123 instead of 615. Oddly enough, when I do as the User's Guide says and ask

  rebol --do "print 1 + 2"

I get 3, which is correct.

I use  REBOL/Core 2.3.0.1.1  and  REBOL/View 0.9.9.1.1


[[[ many hours later... ]]]

O-K! I got it, I was practically sleeping, back then... "*" is an escaping 
character in Amiga's shell, something you use to insert quotes in a quoted string, 
like this: "the beam was 14*" long", so if I escape the escaper (huh?) and ask

  rebol --do "print 123 ** 5"

I get 615, which is correct. If I ask 

  rebol --do "print 10  4"

I get 1, which is correct. Do you have similar escaping problems with your quotes, 
by any chance?




Alessandro Pini ([EMAIL PROTECTED])

"Beam me to the stars / Beam me up to Mars" (Edelweiss)




[REBOL] Re: Launching another URL

2000-07-09 Thread alex . pini

>- Open Your Mind -<



Quoting from Tim's message (07-Jul-00 07:03:47).

t> I'd like to launch another URL from a CGI script.
t> I could have the CGI program write a META tag like:
t> http://foo.bar/blatz.r">
t> Is there a better way to do this using rebol-specific
t> features.

You mean you start a CGI script from a web page (say, sending a form or clicking on a 
link) and the script sends your browser to another page?
You can do that with redirection, a standard practice for CGI. I don't have access to 
my documentation, but it amounts to add a simple string in the header. Nothing 
rebolous.




Alessandro Pini ([EMAIL PROTECTED])

"And the image is reflected back to the other side" (The Alan Parsons Project)




[REBOL] Re: REBOL: THE OFFICIAL GUIDE Re:(5)

2000-07-09 Thread alanwall

Hello [EMAIL PROTECTED]

On 09-Jul-00, [EMAIL PROTECTED] wrote:
> 
>> On 10-Jul-00, [EMAIL PROTECTED] wrote:
>> 
>>> You mentioned three REBOL books? The only other one I know of is my
>>> REBOL FOR DUMMIES in September?
>> 
>> There was the REBOL Core Guides published by RT themselves in 1998
>> when REBOL first went public.  The "other" official REBOL book, I
>> guess. (:
>> 
> 
> Ah ha! I never saw those. No doubt they are correctible... er... I mean
> collectibles by now.
> 
> --Ralph
> 
Got 1 with Carls sig :) Do I hear $1000.00 ?  :) 
Regards
-- 
Everything should be made as simple as possible, but not simpler.
-- Albert Einstein
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 on AmigaForever ver3
Be a Rebel get [EMAIL PROTECTED]
UIN#=9391028




[REBOL] Re: REBOL: THE OFFICIAL GUIDE Re:(3)

2000-07-09 Thread alanwall

Hello [EMAIL PROTECTED]

On 09-Jul-00, [EMAIL PROTECTED] wrote:
> 
>> No disrespect intended, but having found the book for $31.89 with no
>> shipping (at ecampus) I don't think the tip sheet is worth the extra
>> $13.60.
>> On a side note, it seems that there are two other Rebol books out there
>> as well. I'm still getting this one, but...
>> 
> 
> It's true that others are offering the book for less but they don't HAVE
> the book and won't for several weeks yet. The reality of the book
> distribution channel is that it takes time to fill the pipeline. You have
> to remember, the conventional book trade is still a very archaic biz;
> totally different from any other business and pretty moribund in its
> channels of distribution. My company is doing the fulfillment for REBOL
> PRESS and we are getting the books directly from the printer,
> shortcircuiting the normal process. Amazon.com, for example, gets their
> books either from the publisher (we sell them lots of books) or from the
> largest book wholesaler, Ingram. Either way at least a two- or three-tier
> process involving shipment and transhipment. This is true for B&N and all
> the rest. I've gone through this with numerous of my own books and the
> books we publish here. I know it's a great source of frustration to the
> end user but we have always beat the big guys by two weeks to a month in
> shipping books. It pays to be nimble these days in ecommerce. The fastest
> way to get REBOL: THE OFFICIAL GUIDE is from http://www.rebolpress.com.
>  now, if we only could get the Harry Potter book to distribute, too.
> 
> 
> You mentioned three REBOL books? The only other one I know of is my REBOL
> FOR DUMMIES in September?
> 
O'Reilly is also working on 1
Regards
-- 
The quiet ones are the ones that change the universe. The loud ones only
take the credit.
-- Londo
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 on AmigaForever ver3
Be a Rebel get [EMAIL PROTECTED]
UIN#=9391028




[REBOL] REBOL: THE OFFICIAL GUIDE Re:(5)

2000-07-09 Thread ralph


> On 10-Jul-00, [EMAIL PROTECTED] wrote:
>
> > You mentioned three REBOL books? The only other one I know of is my
> > REBOL FOR DUMMIES in September?
>
> There was the REBOL Core Guides published by RT themselves in 1998
> when REBOL first went public.  The "other" official REBOL book, I
> guess. (:
>

Ah ha! I never saw those. No doubt they are correctible... er... I mean
collectibles by now.

--Ralph





[REBOL] Re: REBOL: THE OFFICIAL GUIDE Re:(3)

2000-07-09 Thread carl

On 10-Jul-00, [EMAIL PROTECTED] wrote:

> You mentioned three REBOL books? The only other one I know of is my
> REBOL FOR DUMMIES in September?

There was the REBOL Core Guides published by RT themselves in 1998
when REBOL first went public.  The "other" official REBOL book, I
guess. (:




[REBOL] REBOL: THE OFFICIAL GUIDE Re:(3)

2000-07-09 Thread ralph


> No disrespect intended, but having found the book for $31.89 with no
> shipping (at ecampus) I don't think the tip sheet is worth the
> extra $13.60.
> On a side note, it seems that there are two other Rebol books out there as
> well. I'm still getting this one, but...
>

It's true that others are offering the book for less but they don't HAVE the
book and won't for several weeks yet. The reality of the book distribution
channel is that it takes time to fill the pipeline. You have to remember,
the conventional book trade is still a very archaic biz; totally different
from any other business and pretty moribund in its channels of distribution.
My company is doing the fulfillment for REBOL PRESS and we are getting the
books directly from the printer, shortcircuiting the normal process.
Amazon.com, for example, gets their books either from the publisher (we sell
them lots of books) or from the largest book wholesaler, Ingram. Either way
at least a two- or three-tier process involving shipment and transhipment.
This is true for B&N and all the rest. I've gone through this with numerous
of my own books and the books we publish here. I know it's a great source of
frustration to the end user but we have always beat the big guys by two
weeks to a month in shipping books. It pays to be nimble these days in
ecommerce. The fastest way to get REBOL: THE OFFICIAL GUIDE is from
http://www.rebolpress.com.  now, if we only could get the Harry Potter
book to distribute, too.


You mentioned three REBOL books? The only other one I know of is my REBOL
FOR DUMMIES in September?


--Ralph Roberts




> > >REBOL: THE OFFICIAL GUIDE, the first commercial book about
> > >the REBOL language, is now at the printers! You can check
> > >the contents and read a sample chapter at REBOL Press
> > >Online, http://www.REBOLpress.com.
> >
> > I thought it was interesting to note that Barnes And Noble
> > says this book has a "sales rank of 127,053", for the
> > *February Edition*.
> >
> > Does that mean they sold 127k+ copies of a nonexistent book?
> >
> >
> http://shop.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=6
> 61E9NA68H&
> mscssid=37372K8DA4SR2JTS001PQUW8M69N11F1&isbn=007212279X
> >
> > Amazon.com is selling the *July Edition* with a "sales rank
> > of 84,434".  Sold?  Searched for? Page looked at? What?
> >
> >
> http://www.amazon.com/exec/obidos/ASIN/007212279X/qid=96301/sr
=1-1/103-2
087116-3747003
>
> Their prices are less but you don't get the Special Offer:
>
> >Special Offer: Order your advance copy of REBOL: THE
> OFFICIAL GUIDE (with CD) directly from REBOL Press Online
> and receive an exclusive, limited-edition DESIGNER'S TIP
> SHEET written and signed by REBOL's Designer, Carl
> Sassenrath! Not available in bookstores or through any other
> source. It includes numerous insider tips that make REBOL
> scripts easier to write and more powerful to use.
>
>
> --
> For information on any of the following check out my WEB site at:
>http://www.csonline.net/bpaddock/
> Chemical Free Air Conditioning/No CFC's, Chronic Pain Relief, Echofone,
> Matric Limited, Neurophone, Oil City PA, Philadelphia Experiment.
>  http://www.uCOS-II.com
>





[REBOL] A data inconsistency Re:(13)

2000-07-09 Thread ingo

Hi Anton,

I am sorry, this mail got somehow sorted right at the end ...

Have a look at this transcript ...

>> t1: func [a][if a = 1 [throw make error! "Never use 1, you fool"] 'ok]  
>  
>> t2: func [[catch] a][if a = 1 [throw make error! "Never use 1, you fool"] 'ok]

So, we have to functions, that differ only in the [catch]

>> t1 1
** Throw Error: ** User Error: Never use 1 you fool.
** Where: throw make error! "Never use 1, you fool"

>> t2 1
** User Error: Never use 1, you fool.
** Where: t2 1

You see the difference in the error mmessages? [catch] 
catches all errors in the func, and throws them as if 
they happened at the time of calling, instead of inside
the script. That's handy, if you want to, e.g. validate
function arguments, like seen here, or a C like assert
function ...


regards,

Ingo


Once upon a time [EMAIL PROTECTED] spoketh thus:
> Oh ho, Ingo !
> 
> Thanks for pointing that out... Just what I want!
> I remember seeing disarm in the dictionary, but I never tried it out until
> now. :-)
> Perhaps we could write a wrapper function that automatically wraps function
> calls.
> Incidentally, what does the special attribute 'catch, mentioned in help func,
> do?




[REBOL] solved (was adding data to hyperlinks, etc. ) Re:(4)

2000-07-09 Thread RChristiansen

Ahh, yes. I feel I have it solved:

print reform [rejoin [{A HREF="http://www.domain.dom/cgi-
bin/displaycomments.cgi?comments-directory=} article-temp/reference-
number]]

This will create a link that will carry the reference number of the news article 
to the displaycomments.cgi script and thus the displaycomments.cgi script 
will know in which directory to look for the comments related to that article.

> If the QUERY_STRING contains only a value and not a word, I will not be
> able to pull the value from the cgi object, correct?




[REBOL] adding data to hyperlinks, etc. Re:(3)

2000-07-09 Thread RChristiansen

If the QUERY_STRING contains only a value and not a word, I will not be 
able to pull the value from the cgi object, correct?

> Is it possible to pass variables to a REBOL script via a hyperlink as
> such?
> 
> http://www.rebol.com/cgi-bin/test.cgi?value1
> 
> The QUERY_STRING will then contain "value1" correct? as if I had submitted
> a form to the .cgi script?




[REBOL] adding data to hyperlinks, etc. Re:(2)

2000-07-09 Thread RChristiansen

Is it possible to pass variables to a REBOL script via a hyperlink as such?

http://www.rebol.com/cgi-bin/test.cgi?value1

The QUERY_STRING will then contain "value1" correct? as if I had submitted 
a form to the .cgi script?



> In the interim while I haven't received any responses, I thought of a
> third solution, albeit I don't like it. The third solution is to have each
> news article rendered within its own form and to have its own submit
> button. The form can carry the article's reference number via the cgi
> object. This is probably the easiest solution, but I can't stand the
> thought of having so many submit buttons on a news headlines page. Perhaps
> I'll change the value of the submit button to be "!" so that it doesn't
> take up so much space. Otherwise, if anyone has an answer to my previous
> question I'm all ears.
> 
> 8-)
> 
> -Ryan
> 
> >Hello. Before I progress any further, I need some advice.
> >
> >With my script News Site, the script saves news articles as object 
> >expressions and loads them into memory before rendering a page based on
> >the values in the objects. One of the object values is a reference number
> >to differentiate the object from all others (since the objects are only
> >object expressions they are assigned to object words upon loading.)
> >
> >The next feature I want to add is a commenting system. I want the reader
> >to be able to click on a hyperlink for "comments" which will then execute
> >a 
> .cgi 
> >script. The .cgi script will then render a page including all of the 
> comments  
> >people have posted in regards to the news article in question. The
> >question 
> I 
> >have is, how do I pass a value to a script from a hyperlink so that the
> >script renders the correct set of comments?
> >
> >I have thought of another option, albeit more cumbersome. During the time
> >
> the 
> >main script creates object expressions for the news articles themselves,
> >the script could create a separate .cgi script just for that article. But
> >how 
> can 
> >I write a script to a directory and then make the script executable all
> >at the same time? I'm thinking the web server will see the .cgi extension
> >and assign it executable status, but I'm not sure that is always the
> >case.
> >
> >I hope you're understanding what I am writing. Your help is much 
> appreciated.
> >
> >-Ryan
> >
> >
> 





[REBOL] Where's the docs for user-defined-dialects? Re:

2000-07-09 Thread ingo

Hi Tom,

here's a little cursor positioning dialect, I just now
wrote, this is a very simple example, but easier to understand.

REBOL [
   Title: "Cursor positioning dialect"
   author: "Ingo Hohmann"
   email: [EMAIL PROTECTED]
   usage: {
  print cursor2 [ home "My header" pos 13x13 "this starts at 13x13" up 3 "Hey" ]
  print cursor2 [ clear "+" (screen-size/y - 2) "-" "+" "." 
pos 2x1 "|" (screen-size/y - 2) " " "|" "." 
pos 3x1 "+" (screen-size/y - 2) "-" "+" ]
   }
   known-bugs: [
  {positioning problem, can't go to first column in the next row, when at end of 
row
   (try to skip the "." in second example
  }
   ]
]

cursor2: func [ 
   [catch] 
   commands [block!] 
   /local screen-size string arg cnt cmd c 
][
   ; get the size of the screen
   screen-size: (  
  c: open/binary [scheme: 'console]
  prin "^(1B)[7n" 
  arg: next next to-string copy c
  close c
  arg: parse/all arg ";R"
  forall arg [change arg to-integer first arg]
  arg: to-pair head arg
   )
   ; some setup
   string: copy ""
   cmd: func [s][join "^(1B)[" s]
   ; compose, so that () get reduced
   commands: compose bind commands 'screen-size
   ; parse the dialect
   arg: parse commands [
  any [
 'direct set arg string! (append string arg) |
 'home   (append string cmd "H") |
 'kill   (append string cmd "K") |
 'clear  (append string cmd "J") |
 'upset arg integer! (append string cmd [arg "A"]) |
 'down  set arg integer! (append string cmd [arg "B"]) |
 'right set arg integer! (append string cmd [arg "C"]) |
 'left  set arg integer! (append string cmd [arg "D"]) |
 'pos   set arg pair!(append string cmd [arg/x ";" arg/y "H" ]) |
 'del   set arg integer! (append string cmd [arg "P"]) |
 'space set arg integer! (append string cmd [arg "@"]) |
 'move  set arg pair!(append string cmd [arg/x ";" arg/y "H" ]) |
 set cnt integer! set arg string! (append string head insert/dup copy "" arg 
cnt) |
 set arg string! (append string arg)
  ]
   ]
   if not arg [throw make error! "Unable to parse block"]
   ;return string to be printed
   string
]


Once upon a time [EMAIL PROTECTED] spoketh thus:
> Hi,
> 
> The subject says it all. This is the most interesting feature of the
> language and seems to be virtually undocumented. That can't be right can
> it???




[REBOL] REBOL: THE OFFICIAL GUIDE Re:(4)

2000-07-09 Thread mdinowit

buy.com = $3.95 shipping.
http://www.bestbookbuys.com/cgi-bin/bbb.cgi?ISBN=007212279X

> It's even cheaper at buy.com
>
> $29.99
>
> http://www.us.buy.com/books/product.asp?sku=30559961
>
> > No disrespect intended, but having found the book for $31.89 with no
> > shipping (at ecampus) I don't think the tip sheet is worth the extra
> > $13.60. On a side note, it seems that there are two other Rebol books
out
> > there as well. I'm still getting this one, but...
> >
> >
> > > >REBOL: THE OFFICIAL GUIDE, the first commercial book about
> > > >the REBOL language, is now at the printers! You can check
> > > >the contents and read a sample chapter at REBOL Press
> > > >Online, http://www.REBOLpress.com.
> > >
> > > I thought it was interesting to note that Barnes And Noble
> > > says this book has a "sales rank of 127,053", for the
> > > *February Edition*.
> > >
> > > Does that mean they sold 127k+ copies of a nonexistent book?
> > >
> > >
> >
http://shop.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=661E9NA68
> > H& mscssid=37372K8DA4SR2JTS001PQUW8M69N11F1&isbn=007212279X > >
Amazon.com
> > is selling the *July Edition* with a "sales rank > of 84,434".  Sold?
> > Searched for? Page looked at? What? > >
> >
http://www.amazon.com/exec/obidos/ASIN/007212279X/qid=96301/sr=1-1/103
> > -2 087116-3747003 > > Their prices are less but you don't get the
Special
> > Offer: > > >Special Offer: Order your advance copy of REBOL: THE >
> > OFFICIAL GUIDE (with CD) directly from REBOL Press Online > and receive
an
> > exclusive, limited-edition DESIGNER'S TIP > SHEET written and signed by
> > REBOL's Designer, Carl > Sassenrath! Not available in bookstores or
> > through any other > source. It includes numerous insider tips that make
> > REBOL > scripts easier to write and more powerful to use. > > > -- > For
> > information on any of the following check out my WEB site at: >
> > http://www.csonline.net/bpaddock/ > Chemical Free Air
> > Conditioning/No CFC's, Chronic Pain Relief, Echofone, > Matric Limited,
> > Neurophone, Oil City PA, Philadelphia Experiment. >
> >   http://www.uCOS-II.com >
> >
>
>




[REBOL] adding data to hyperlinks, etc. Re:(2)

2000-07-09 Thread tim

Hi Ryan:
You can add information to a url like so:
http://www.mydomain/cgi-bin/mine.cgi/arg1/arg2
where /arg1/arg2 function like command-line arguments.
I would be happy to help you further here, but you
should look up information on the cgi standards.

I would be willing to send you the article that I will be
writing for Andrew Kamp's site. I should have a draft
after tuesday, and I will also have a documented rebol
CGI object module available for public domain sometime
after that as well.
regards
tim
At 01:29 AM 7/9/00 -0500, you wrote:
>In the interim while I haven't received any responses, I thought of a third 
>solution, albeit I don't like it. The third solution is to have each news 
>article rendered within its own form and to have its own submit button. The 
>form can carry the article's reference number via the cgi object. This is 
>probably the easiest solution, but I can't stand the thought of having so 
>many submit buttons on a news headlines page. Perhaps I'll change the value 
>of the submit button to be "!" so that it doesn't take up so much space. 
>Otherwise, if anyone has an answer to my previous question I'm all ears.
>
>8-)
>
>-Ryan
>
>>Hello. Before I progress any further, I need some advice.
>>
>>With my script News Site, the script saves news articles as object 
>>expressions and loads them into memory before rendering a page based on the 
>>values in the objects. One of the object values is a reference number to 
>>differentiate the object from all others (since the objects are only object 
>>expressions they are assigned to object words upon loading.)
>>
>>The next feature I want to add is a commenting system. I want the reader to 
>>be able to click on a hyperlink for "comments" which will then execute a 
>.cgi 
>>script. The .cgi script will then render a page including all of the 
>comments  
>>people have posted in regards to the news article in question. The question 
>I 
>>have is, how do I pass a value to a script from a hyperlink so that the 
>>script renders the correct set of comments?
>>
>>I have thought of another option, albeit more cumbersome. During the time 
>the 
>>main script creates object expressions for the news articles themselves,
the 
>>script could create a separate .cgi script just for that article. But how 
>can 
>>I write a script to a directory and then make the script executable all at 
>>the same time? I'm thinking the web server will see the .cgi extension and 
>>assign it executable status, but I'm not sure that is always the case.
>>
>>I hope you're understanding what I am writing. Your help is much 
>appreciated.
>>
>>-Ryan
>>
>>
>
>




[REBOL] REBOL: THE OFFICIAL GUIDE Re:(3)

2000-07-09 Thread RChristiansen

It's even cheaper at buy.com

$29.99

http://www.us.buy.com/books/product.asp?sku=30559961

> No disrespect intended, but having found the book for $31.89 with no
> shipping (at ecampus) I don't think the tip sheet is worth the extra
> $13.60. On a side note, it seems that there are two other Rebol books out
> there as well. I'm still getting this one, but...
> 
> 
> > >REBOL: THE OFFICIAL GUIDE, the first commercial book about
> > >the REBOL language, is now at the printers! You can check
> > >the contents and read a sample chapter at REBOL Press
> > >Online, http://www.REBOLpress.com.
> >
> > I thought it was interesting to note that Barnes And Noble
> > says this book has a "sales rank of 127,053", for the
> > *February Edition*.
> >
> > Does that mean they sold 127k+ copies of a nonexistent book?
> >
> >
> http://shop.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=661E9NA68
> H& mscssid=37372K8DA4SR2JTS001PQUW8M69N11F1&isbn=007212279X > > Amazon.com
> is selling the *July Edition* with a "sales rank > of 84,434".  Sold? 
> Searched for? Page looked at? What? > >
> http://www.amazon.com/exec/obidos/ASIN/007212279X/qid=96301/sr=1-1/103
> -2 087116-3747003 > > Their prices are less but you don't get the Special
> Offer: > > >Special Offer: Order your advance copy of REBOL: THE >
> OFFICIAL GUIDE (with CD) directly from REBOL Press Online > and receive an
> exclusive, limited-edition DESIGNER'S TIP > SHEET written and signed by
> REBOL's Designer, Carl > Sassenrath! Not available in bookstores or
> through any other > source. It includes numerous insider tips that make
> REBOL > scripts easier to write and more powerful to use. > > > -- > For
> information on any of the following check out my WEB site at: >   
> http://www.csonline.net/bpaddock/ > Chemical Free Air
> Conditioning/No CFC's, Chronic Pain Relief, Echofone, > Matric Limited,
> Neurophone, Oil City PA, Philadelphia Experiment. >   
>   http://www.uCOS-II.com >
> 





[REBOL] REBOL: THE OFFICIAL GUIDE Re:(2)

2000-07-09 Thread mdinowit

No disrespect intended, but having found the book for $31.89 with no
shipping (at ecampus) I don't think the tip sheet is worth the extra $13.60.
On a side note, it seems that there are two other Rebol books out there as
well. I'm still getting this one, but...


> >REBOL: THE OFFICIAL GUIDE, the first commercial book about
> >the REBOL language, is now at the printers! You can check
> >the contents and read a sample chapter at REBOL Press
> >Online, http://www.REBOLpress.com.
>
> I thought it was interesting to note that Barnes And Noble
> says this book has a "sales rank of 127,053", for the
> *February Edition*.
>
> Does that mean they sold 127k+ copies of a nonexistent book?
>
>
http://shop.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=661E9NA68H&;
mscssid=37372K8DA4SR2JTS001PQUW8M69N11F1&isbn=007212279X
>
> Amazon.com is selling the *July Edition* with a "sales rank
> of 84,434".  Sold?  Searched for? Page looked at? What?
>
>
http://www.amazon.com/exec/obidos/ASIN/007212279X/qid=96301/sr=1-1/103-2
087116-3747003
>
> Their prices are less but you don't get the Special Offer:
>
> >Special Offer: Order your advance copy of REBOL: THE
> OFFICIAL GUIDE (with CD) directly from REBOL Press Online
> and receive an exclusive, limited-edition DESIGNER'S TIP
> SHEET written and signed by REBOL's Designer, Carl
> Sassenrath! Not available in bookstores or through any other
> source. It includes numerous insider tips that make REBOL
> scripts easier to write and more powerful to use.
>
>
> --
> For information on any of the following check out my WEB site at:
>http://www.csonline.net/bpaddock/
> Chemical Free Air Conditioning/No CFC's, Chronic Pain Relief, Echofone,
> Matric Limited, Neurophone, Oil City PA, Philadelphia Experiment.
>  http://www.uCOS-II.com
>




[REBOL] Boredom leads to creativity..

2000-07-09 Thread deryk

Simple contact manager, available at:

browser:
http://users.iitowns.com/deryk/rebol/contacts.tar.gz

rebol:
do http://users.iitowns.com/deryk/rebol/contacts.rip

Have fun. :)

Deryk




[REBOL] Updating Lists in View/VID

2000-07-09 Thread carl

Hi,

I've been trying to put together a list-box of text using Vid's  list 
keyword, and while I can get the box to show the initial text okay, I
can't work out how to update it.  The following's a simple example of
the approach I'm using...


REBOL []

test-list: [["item 1"]["item 2"]["item 3"]]

change-list: [
test-list: [["new item 1"]["new item 2"]]
list-box/data: test-list show list-box
]

view layout [ size 300x150 backdrop 130.130.150
list-box: list 200x120 [ text 200x15 [do change-list]]
data test-list map [text]
]


This will place the "item 1", "item 2", and "item 3" strings in the
box, but when I click on them to [do change-list], nothing changes,
the "new item 1" and "new item 2" strings not replacing the list as
I'd hoped they would.

So, is the   list-box/data:  I'm using in change-list wrong, or is
there something I'm leaving out?

Carl Read.




[REBOL] adding data to hyperlinks, etc. Re:(2)

2000-07-09 Thread Al . Bri

Ryan wrote:
> The next feature I want to add is a commenting system.

Have you thought about a system like Xerox's Sparrow:
http://www.parc.xerox.com/istl/projects/sparrow/doc/www7/
or CritSuite by Ka-Ping Yee:
http://crit.org/http://crit.org/index.html
? They have useful features that might inspire you.

Andrew Martin
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
-><-