[REBOL] flavors versions...

2000-09-20 Thread zoon

flavors  versions...
Hiall -

OK, now I'm really losing it. Here's the way I have things set up on my NTWS4.0 
machine:

E:
\Program Files
\_Rebol
\Command
\Core
\View


I install Command, and "upgrade". A zipfile called "rebol031.zip" is written into 
\Command. I open and extract. Command is over-written by Core. Luckily, I still have 
the the original installer "command031.zip".

I install Core, and "upgrade". I get a message that I'm using an unknown version of 
Rebol.

I install View, switch to console, and "upgrade". An exe is written into \View. I run 
it, expecting View to open, but find that it is an installer. I change the Install 
path to /e/program files/_rebol/view, click "Install", and get a message that 
/e/program files/_rebol/view/rebol.exe cannot be overwritten.


HUH? I asked this before, but got conflicting answers: can I put all three EXEs into 
the same folder, but call them command.exe, core.exe and view.exe?
Are there differences in the supporting files that would make this impossible? How are 
other people dealing with the bountiful and myriad flavors and versions of Rebol? I'm 
not, so far!

-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX




[REBOL] flavors versions... Re:(2)

2000-09-20 Thread zoon

[EMAIL PROTECTED] wrote:
 
 Hi Pete,
 
 1. Upgrading Command: I suspect the REBOL/Command uses an umodified /Core
 upgrade function (bug!). That upgrade function (because its unmodified)
 does the same thing it would do if it was evaluated under /Core. It
 downloads the latest /Core archive. Keep in mind that /Command is an
 experimental version. To upgrade it go to
 http://www.rebol.com/xpers/xpers.html and download the latest version.
 
 2. Upgrading /Core: Which /Core version are you currently using? Does there
 exist a newer stable version, or are you trying to upgrade from/to an
 experimental version? If that is the case use the above url as well.
 
 3. View: When /View is installed it attempts to write a copy of the /View
 executable to the target directory. If that target directory is identical
 to the directory from which you launched /View, then /View will not be able
 to overwrite itself (MS Windows stops it from doing that). You must unpack
 /View to a different (for instance temp) directory, and install it from
 there. If launched from a different directory /View will successfully
 overwrite the old version of /View it finds in the target directory. (I had
 a similar problem on my Win95 machine and solved it by unpacking /View to a
 different directory).
 
 Hope this helps.

Thanks Elan - 

As far as the other files associated with Rebol, how do you handle storage?
Either I have multiple versions of the same files in different directories, or I
overwrite a script intended for use with View with one that only works in Core,
etc. Maybe scripts should have command: core: and view: blocks that only get
executed depending upon the version of rebol being used... 

I'm enjoying the book, BTW. 
-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX




[REBOL] returning an object from a function, sort of

2000-08-17 Thread zoon

hiall

btw, I sent a message almost identical to this one from my home account last
night, and it isn't here. Is it because the list doesn't rec that other account?

anyway...

I've got a function called logo-factory that accepts a string argument, and
should return an object referenced by a word = the passed string. ie., if I type

*logo-factory Logo1*

I should get the same result as if I typed

*Logo1: make object! []*

I'm befuddled as to how to do this exactly -- I'm sure the answer is right under
my nose ;-)

Here's sort of what I have so far:

*
logo-factory: func [
"Creates and returns a named logo object."
name [string!] "The name of the object to be created."
][
? make object! [
type: "text"
text: ""
pict: #{}
file: ""
altt: ""
switch-type: func [
"Toggles the logo object's type between 'text' and 'pict'."
][
type: either type = "text" ["pict"]["text"]
]
]
]
*

Obviously, there's a lot missing here, like handling an argument string which
can't be used as a valid word, etc. Other functions like get-pict and
write-html, etc., also need to be added.

Any and all suggestions are welcome!


-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX




[REBOL] returning an object from a function, sort of Re:(2)

2000-08-17 Thread zoon

[EMAIL PROTECTED] wrote:
 
 Hi Pete,
 
 To be able to pass a word to your function and have the word set to the
 object created in the function requires two changes to your code:

I could also do it like:

logo-factory: func [
["Creates and returns a named logo object."
['name [word!] "The name of the object to be created."
[  ][
[set name make object! [
[type: "text"
[text: ""
[pict: #{}
[file: ""
[altt: ""
[switch-type: func [
[ "Toggles the logo object's type between 'text' and
'pict'."
[  ][
[ type: either type = "text" ["pict"]["text"]
[]
[  ]
[]

example use:

 logo-factory Logo1
 logo-factory Logo2
 probe Logo1

make object! [
type: "text"
text: ""
pict: #{}
file: ""
altt: ""
switch-type: func [
{Toggles the logo object's type between 'text' and 'pict'.}
][
type: either type = "text" ["pict"] ["text"]
]
]
 Logo1/text: "Emporium of Liquid Fun"
== "Emporium of Liquid Fun"
 Logo1/switch-type
== "pict"
 probe Logo1

make object! [
type: "pict"
text: "Emporium of Liquid Fun"
pict: #{}
file: ""
altt: ""
switch-type: func [
{Toggles the logo object's type between 'text' and 'pict'.}
][
type: either type = "text" ["pict"] ["text"]
]
]
 probe Logo2

make object! [
type: "text"
text: ""
pict: #{}
file: ""
altt: ""
switch-type: func [
{Toggles the logo object's type between 'text' and 'pict'.}
][
type: either type = "text" ["pict"] ["text"]
]
]

But, of course, after all that, I see now that it might be better if the object
were internally identified, rather than depending upon the word that happens to
reference it ;-)

make object! [
name: "Logo1"
type: "Primary Store Logo"
styl: "text"
text: "Emporium of Liquid Fun"
etc...

-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX




[REBOL] Core/View/etc. install plan

2000-08-15 Thread zoon

hiall -

I know I queried regarding this before, but apparently failed to retain any
answer that made sense to me.

If I want to install Core and View, do I need to have them separate, or could I
put everything together except the executables (sounds unlikely), or do I need
both installed at all? 

Is Core a subset of View?

Is the latest Core inherently more stable than the latest View? Or is it just
the View-y parts of View that are less stable?

Is there an easy way of separating usr-lib and example scripts that only pertain
to one executable or the other?


-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX




[REBOL] Browser? Re:(2)

2000-07-06 Thread zoon

[EMAIL PROTECTED] wrote:
 

 
 REBOL []
 do http://www.2b1.de/

 do http://www.2b1.de/
** Access Error: Cannot make directory /c/Program
Files/REBOL/View/public/www.2b1.de/.
** Where: m-dir path return path


??? 

-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX




[REBOL] (NT) View home

2000-06-23 Thread zoon

How does View determine it's home? I see where it reads home, but where does the
actual value come from? I have it installed in E:\Program Files\_Rebol\View and
when I try to check for updates, it tells me there's a problem and I should set
up the Network stuff. When I try to do that, it asks for permissions to write
E:\Program Files\Rebol\View\user.r, which of course doesn't exists. If I try to
rename _Rebol to Rebol, I get a permission denied message. Wha?




-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX




[REBOL] TextPad syntax for Rebol Re:

2000-06-06 Thread zoon

[EMAIL PROTECTED] wrote:
 
 For those that might be interested, I just whipped up a
 syntax definition file. Available at the following url:
 
 in rebol:
 write/binary %rebol.syn read http://users.iitowns.com/deryk/rebol/rebol.syn
 
 in a normal browser:
 http://users.iitowns.com/deryk/rebol/rebol.syn
 
 Then copy the file to the System directory of TextPad.
 
 I got tired of the bland black and white ;)  Hope someone else can make
 use of it as well.
 

Deryk - how does this work? I copied the file, but don't see any way to enable
its use (TextPad 3.2.0; is this old?)

-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX

Get a cool electronic checking account at: 
https://preview.x.com/new_account.asp?[EMAIL PROTECTED]




[REBOL] Rebol layers

2000-06-02 Thread zoon

(WinNT) (Amiga v. tomorrow...)

What exactly is the relationship between Core and View?

The latest View beta (nice installer!) creates a REBOL folder with a View folder
inside it.
Should Core reside in a "Core" folder in the same REBOL folder? ie., since I
installed Core manually, I'll move it from it's current location and fix any
shortcuts, etc. Does View encapsulate all the Core functionality? If not, why
are the EXEs named the same? Are the scripts that I downloaded while installing
View the same ones that I got from www.rebol.com when I installed Core? What
about the documentation? 

etc. etc. etc.



-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX

Get a cool electronic checking account at: 
https://preview.x.com/new_account.asp?[EMAIL PROTECTED]




[REBOL] Rebol layers THANKS ALL Re:(2)

2000-06-02 Thread zoon

[EMAIL PROTECTED] wrote:
 
 Have a nice day,
 

THANKS ALL! ;-)

-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX

Get a cool electronic checking account at: 
https://preview.x.com/new_account.asp?[EMAIL PROTECTED]




[REBOL] SunOS 5.6? Re:(2)

2000-05-08 Thread zoon

[EMAIL PROTECTED] wrote:
 
  Any plans to support SunOS 5.6 or whatever (this happens to be the OS my virtual
  host uses ;-)
 
 SunOS 5.6 = Solaris 2.6.  Try the Solaris binary and see if it works
 for you.
 

shortly after posting that message I found this out, downloaded the Solaris
binary, installed it and vanilla 0.3.0, and now have them both running happily
on my virtual host ;-) Thanks for the reply...

-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX

Get a cool electronic checking account at: 
https://preview.x.com/new_account.asp?[EMAIL PROTECTED]




[REBOL] XML and REBOL: anyone use it? Re:(2)

2000-03-16 Thread zoon

[EMAIL PROTECTED] wrote:
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, March 16, 2000 2:33 AM
  To: [EMAIL PROTECTED]
  Subject: [REBOL] XML and REBOL: anyone use it?
 
  Can someone tell me how to get
  information from XML into variables? Because it doesn't seem
  very trivial
  without doing some sort of parsing engine, which is what
  parse-XML is supposed to be.
 
 Hi, well I would create a parse dialect to handle your tags. Than I
 would build up some objects representing your content. If you have
 names, you can use these names as object names and add the properties
 to it. parse-parse AFAIK just builds up a parse-tree, don't know if
 there are some traversing functions.
 

I also need this kind of thing. I'm trying to write (among other things) a rebol
script for turning Oracle data (which we spit out in XML form) into a
proprietary flatfile format for a certain inventory management program.

-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX

Get a cool electronic checking account at: 
https://preview.x.com/new_account.asp?[EMAIL PROTECTED]



[REBOL] pleh! pleh! basic reborientation needed!

2000-03-15 Thread zoon

I started out with much energy, and am now floundering on the simplest things.

I cannot get *anything* to do with command line arguments to work at all.
I have tried cp-ing examples from messages here, and they don't work.

(Well... K.R.'s path example seemed to work for what it was worth, 
and I now surround the inner part of each script with:
-
savecd: system/script/parent/path
...
change-dir savecd
-
so I don't have to change-dir back after every do %...)

Anyway, something as simple as...

 do %projects/test/params.r "doggy"
(alternately: do %projects/test/params.r doggy
  or: do %projects/test/params.r [doggy]
  or: do %projects/test/params.r ["doggy"])

params.r (just the guts, ma'am)
-
; yeeth! just gimme the first one!
either string? system/script/args [
args: parse system/script/args none
print args/1

][
print "No arguments passed."
]
-
or should that be:
-
; by this time, I really don't care if there were no params!
args: parse system/script/args none
forall args [
print args/1
]
-
finally:
-
do %something "please!"
-

I've tried every combination I can think of for the last hour without success.
Like using system/options/args... different looping constructs, different number
of parameters on the command line, etc. If anyone wants to observe me losing it
in detail, I can send a copy (13K) of my last session history on request. 

Going (?) nuts.

-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX

PS: This whole thing strikes me as kind of funny, since the first thing I did in
rebol was a directly interpreted one-liner that checked a webserver for its
status and sent an email if it was down -- which worked on the first try. Maybe
it was something I ate for breakfast...



[REBOL] Testing CGI Locally Re:(2)

2000-03-15 Thread zoon

[EMAIL PROTECTED] wrote:
 
[snip]

  Hi,
 
  I'm new to Rebol and to Web development, and I've been playing around with
 a
  few CGI scripts while learning Rebol.  I was wondering if there is a
 simple
  way to test these scripts on my PC (running Win 95) before uploading them
 to
  our web server.  Any advice would be appreciated.
 
  Thanks,
  Dan
 

what about a rebol webserver?

-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX



[REBOL] pleh! pleh! basic reborientation needed! Re:

2000-03-15 Thread zoon

Allen Kamp wrote:
 
  Hi Pete,
 
  Sometimes when you get stuck, look at the refinements of the function you
  are using.

[snipped nice clear explanation]

cool - I think I get it now ;-) here's another problem, which I could have sworn
I've seen an example of, but now can't find:

tse: read http://...blah...blah...blah.

I know I can find (manually) the strings (rebol wildcards shown)

Last Traded/FONT/TDTD WIDTH=100FONT SIZE="2" FACE="Helvetica,
Arial"*nbsp;
Net Change/FONT/TDTD WIDTH=100FONT SIZE="2" FACE="Helvetica,
Arial"*/FONT

somewhere on this page. I need to get what * is in each case. I've tried things
like:

ltrade: copy/part (find tse "nbsp;") (find tse {Last Traded/FONT/TDTD
WIDTH=100FONT SIZE="2" FACE="Helvetica, Arial"})

but this obviously doesn't work... prob. because I don't understand what (number
series port) means here:

 help copy
Returns a copy of a value.
Arguments:
value -- Usually a series (series port bitset)
Refinements:
/part -- Limits to a given length or position.
range --  (number series port)
/deep -- Also copies series values within the block.



Thanks for your help!


-- 
Pete Wason|"LWATPLOTG"|[EMAIL PROTECTED]|[EMAIL PROTECTED]|CUCUG|TA|PHX

Get a cool electronic checking account at: 
https://preview.x.com/new_account.asp?[EMAIL PROTECTED]