[REBOL] Newbie: Help with image buttons (View)

2002-09-26 Thread Matthew Kim

Hi,

I'm trying to make a cell phone demo for the computer which involves
having the button on the phones to become active.

For example... I want the demo to be able to have clickable 'numbers' to
dial a phone number, and a clickable 'send' button to emulate placing a
call.

I run into a problem because, the phone's buttons are not rectangular in
shape.  I made the phone's buttons into separate images and overlayed
them onto the main image of the phone, but the REBOL buttons are
rectangular in shape, and have a shadow/border.


Is there a way either to:

1) Make the buttons in REBOL/VIEW, have no border and no effect when the
mouse clicks on it? (Buttons usually sink when clicked on).

2) Make a coordinate system over the image of the phone and detecting
mouse clicks over that coordinate, particularily over buttons?

Thanks!
Matt

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: text-list

2002-09-26 Thread Carl Read

On 26-Sep-02, Greg Schwarz wrote:

 I am having a problem in finding the position in the list, I want to
 know if it is the first, second... last, not the text of the picked
 line in the list.
 The below is just a quick test to help me find the answer, not the
 real use. The real use is reading a number of lines in a file and
 only the name of the line is shown in the list (eg. part type) so as
 to delete and add complete lines in the file.

 REBOL []
 group1: layout [
 account: text-list data sort load %.

 button Account [print account/picked ]
 button Quit 240.10.10 [quit]
 ]
 view group1

Hi Greg,

You could use index? and find.  ie, something like this...

button Account [print index? find account/data account/picked]

That would only work correctly if you were sure your list wouldn't
contain duplicates though.  You'd also have to take into account that
you can pick more than one item in a list if Ctrl is used when
clicking - picked will contain a block of strings then, not just a
string.  (For this reason I'd guess the index to the picked item
isn't stored anywhere in text-list, but I may be wrong about that.)

If you can have duplicates in the list, using same? to check if what's
found matches what's picked might be one way to test it.  (Find finds
series that are equal, but they may not be the same series.)  If
they're not the same, then repeat the find from where the match was
found until they do.

HTH.

-- 
Carl Read

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Cross Platform? Then what about Mac OS X?

2002-09-26 Thread Carl Read

On 26-Sep-02, Laurence Giddings wrote:

 After reading the long discussions recently on the 
 importance/significance of Rebols
 multi platform/OS capabilities I am prompted to ask once again when 
 support for the Macintosh OS X  system might be forth coming?

They do specifically say they plan to support OS X in their FAQ...

http://www.rebol.com/faq.html

We like OSX and we are now planning to support REBOL/View and our
other products as well.

That's a different statement to the... We have REBOL/Core running on
a variety of CE devices. However, porting REBOL/View and related
products to specific platforms is accelerated when a customer or
sponser funds the porting effort. you'll find futher down the page. 
So, reading between the lines, I'd say it's now a case of when, not
if.  My guess is that it wouldn't make sense to release a version
before the next release of View, so maybe you'll see it then or soon
afterwards.  [Disclaimer - just a guess.  I have no inside knowledge
on this.  I don't even know when then is...]

 I know there are a few Mac users around on this ML, but I am sure
 there would be many many more if RT would only support us.

I'm sure that's true and I'm sure they know it.

(Then again, I'm sure there'd be more OS X users if Apple would only
support X86...;)

But as others have said, REBOL most definately should be on OS X.  It
feels so empty without you...  (To misquote:)

-- 
Carl Read

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Make Image of a Layout

2002-09-26 Thread Philippe Oehler

Is it easy to make a make image of a face, a pane or a layout ?

How can I make it ?

Philippe Oehler

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Library smart docs = was:{Re: Re: Parsing comment}

2002-09-26 Thread Gabriele Santilli

Hi Jason,

On Thursday, September 26, 2002, 1:04:11 AM, you wrote:

JC ..if the project gets off the ground here's some of my recent thoughts about
JC it..

But above all, who is the librarian? Has this been decided?

After that, a step at a time, we can do all these things... and as
long  as  the steps are small enough, it will come out quickly and
easily.

Regards,
   Gabriele.
-- 
Gabriele Santilli [EMAIL PROTECTED]  --  REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Cross Platform? Then what about Mac OS X?

2002-09-26 Thread olivier auverlot

Rebol/View (and Express !) must be adapted to Mac OS X. A lot of programmers
(as me; -)) use Mac OS X now because the system is effective. It is a good
compromise between Windows and Linux. In Europe, it meets an increasing
success.

The Mac OS X versions of Rebol should attract a number important of
programmers.

Regards
Olivier ;-)
- Original Message -
From: Carl Read [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 10:27 AM
Subject: [REBOL] Re: Cross Platform? Then what about Mac OS X?


 On 26-Sep-02, Laurence Giddings wrote:

  After reading the long discussions recently on the
  importance/significance of Rebols
  multi platform/OS capabilities I am prompted to ask once again when
  support for the Macintosh OS X  system might be forth coming?

 They do specifically say they plan to support OS X in their FAQ...

 http://www.rebol.com/faq.html

 We like OSX and we are now planning to support REBOL/View and our
 other products as well.

 That's a different statement to the... We have REBOL/Core running on
 a variety of CE devices. However, porting REBOL/View and related
 products to specific platforms is accelerated when a customer or
 sponser funds the porting effort. you'll find futher down the page.
 So, reading between the lines, I'd say it's now a case of when, not
 if.  My guess is that it wouldn't make sense to release a version
 before the next release of View, so maybe you'll see it then or soon
 afterwards.  [Disclaimer - just a guess.  I have no inside knowledge
 on this.  I don't even know when then is...]

  I know there are a few Mac users around on this ML, but I am sure
  there would be many many more if RT would only support us.

 I'm sure that's true and I'm sure they know it.

 (Then again, I'm sure there'd be more OS X users if Apple would only
 support X86...;)

 But as others have said, REBOL most definately should be on OS X.  It
 feels so empty without you...  (To misquote:)

 --
 Carl Read

 --
 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: Teaching Rebol = was:{Re: Re: Parsing comment}

2002-09-26 Thread Gabriele Santilli

Hi Jason,

On Thursday, September 26, 2002, 1:27:59 AM, you wrote:

JC My main concern about Dialects is that the new extra vocabulary/syntax to learn
JC and lack of indication. Great for the original deevloper, but alreadyknwo it
JC inside out. But gets harder the further you go from that even though the code
JC looks cleaner and is focused on the applcaition domain closely.

Mmm...  I  think,  I  should  add  an 'EXPLAIN keyword to the new,
slowly  upcoming,  layout-pdf  that  explains  what a piece of the
layout means. What do you think?

Regards,
   Gabriele.
-- 
Gabriele Santilli [EMAIL PROTECTED]  --  REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Dialects - Bane or Blessing? (was: Teaching Rebol)

2002-09-26 Thread Andrew Martin

Gregg wrote:
 What other dialects are out there?

There's my ML dialect. Here's a little sample from my Wiki script:

print ML compose/deep [
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE html PUBLIC
-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN
http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd;
html [
head [
title (Title)
link/rel/type/href stylesheet text/css (%Wiki.css)
script/type/language/src text/javascript JavaScript
(%Wiki.js) 
]
(Body)
]
]

Here's a sample of my Fixed dialect (it's used for chopping up fixed width
data files generated by a DOS BASIC program)

 Fields: [
  Family Name 20
  First Name 25
  Preferred 12
  Mail to Whom 35
  Invoices? logic!
  Reports? logic!
  Address [25 20 20]
  Telephone 19 /with  -()
  Cellphone 7 /with  -()
  Nationality 3 issue!
  Language 2 issue!
  skip 4
  Year 2 integer!
  Form 4 issue!
  skip 4
  Gender 1 issue!
  Birth 8 date!
  Enrollment 5 issue!
  skip
  First Started 8 date!
  First Attended 8 date!
  skip 2
  Type 1 issue!
  Status 1 issue!

  Caregiver 1 Family Name 20
  Caregiver 1 Title 4
  Caregiver 1 First Name 12
  Caregiver 1 Address [25 20 20]
  skip 20
  Caregiver 1 Cellphone 6 /with  -()
  Caregiver 1 Home Telephone 14 /with  -()
  Caregiver 1 Work Telephone 14 /with  -()
  Caregiver 1 Occupation 3 issue!
  Caregiver 1 Relationship 1 issue!
  skip 4
  Caregiver 1 Invoices? logic!
  Caregiver 1 Reports? logic!
  Caregiver 1 Voting Rights? logic!
  Caregiver 1 Emergency? logic!
  Caregiver 1 Living With? logic!
  Caregiver 1 Legal Guardian? logic!
  Caregiver 1 Access Rights? logic!
  Caregiver 1 User Flag 1? logic!
  Caregiver 1 User Flag 2? logic!
  Caregiver 1 User Flag 3? logic!

Here's a very small sample of my eText dialect:

eText Sampler
*
Author: Andrew Martin [EMAIL PROTECTED]
Date: 7/October/2001

Intent
==
eText is designed as a quick, easy, portable, powerful documentation
language. It's primarily suited for generating high content HTML and WML
pages.

There's loads more examples on my site; just substitute .txt for .html
on nearly any URL.


And the script for interpreting my CSS dialect (for creating style sheets)

CSS: function [
CSS generates CSS markup from Rebol words, paths, tags, blocks and
other values.
Dialect [block!]CSS dialect block.
] [CSS Number Declaration Property Value Value2 Selector Selector2
Selector3] [
CSS: make string! 2000
Number: [integer! | decimal!]
Declaration: [
some [
set Property set-word! (
repend CSS [
tab mold get 'Property
; In the above line get 'Property can be replaced
; with Property with new Rebol versions.
]
)
some [
[set Value Number %.] (
repend CSS [
#  Value #%
]
)
| set Value file! (
repend CSS [
 url( replace/all copy Value #  %20 )
]
)
| set Value url! (
repend CSS [
 url( Value )
]
)
| [set Value Number set Value2 word!] (
repend CSS [
#  Value Value2
]
)
| set Value [word! | issue!] (
repend CSS [
#  mold Value
]
)
] (
append CSS ;^/
)
]
]
parse Dialect [
any [
[
set Selector word! set Selector2 word! set Selector3 word! (
repend CSS [
mold Selector #  mold Selector2 #  mold
Selector3  {^/
]
)
| set Selector word! (
repend CSS [
mold Selector  {^/
]
)
| set Selector block! (
foreach Item Selector [
repend CSS [Item , ]
]
remove/part back back tail CSS 2
append CSS  {^/
)
| set Selector path! (
foreach Item :Selector [
repend CSS [Item # ]
]
remove back tail CSS
append CSS  {^/
)
]
into Declaration (
append CSS rejoin [
tab } newline
 

[REBOL] Re: Make Image of a Layout

2002-09-26 Thread Brett Handley

Me first me first!

img: to-image layout [Title Ta Da!]
save/png %img.png img

Regards,
Brett.

- Original Message - 
From: Philippe Oehler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 7:11 PM
Subject: [REBOL] Make Image of a Layout


 Is it easy to make a make image of a face, a pane or a layout ?
 
 How can I make it ?
 
 Philippe Oehler
 
 -- 
 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: Newbie: Help with image buttons (View)

2002-09-26 Thread Anton

This might help you:

view layout [
style my-button button 40x40 edge none
colors reduce [blue red] font-size 20 
my-button 1
my-button 2
]

You could also use some images:

...
my-button %image-up.png %image-down.png
...
 
 I'm trying to make a cell phone demo for the computer which involves
 having the button on the phones to become active.
 
 For example... I want the demo to be able to have clickable 'numbers' to
 dial a phone number, and a clickable 'send' button to emulate placing a
 call.
 
 I run into a problem because, the phone's buttons are not rectangular in
 shape.  I made the phone's buttons into separate images and overlayed
 them onto the main image of the phone, but the REBOL buttons are
 rectangular in shape, and have a shadow/border.
 
 
 Is there a way either to:
 
 1) Make the buttons in REBOL/VIEW, have no border and no effect when the
 mouse clicks on it? (Buttons usually sink when clicked on).
 
 2) Make a coordinate system over the image of the phone and detecting
 mouse clicks over that coordinate, particularily over buttons?
 
 Thanks!
 Matt

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Converting Word .DOC and .PDF to text files

2002-09-26 Thread Anton

Gabriele wrote a pdf generator, but he said parsing
pdf files is really hard, but perhaps just the text
might be easier.

Anton.

 Has anybody written any code to parse .DOC or .PDF
 native formats and extract just the text ?
 
 In Linux there are the wv tools that do this well but
 I am looking for a REBOL cross-platform solution
 
 Thanks

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Dialects - Bane or Blessing? (was: Teaching Rebol)

2002-09-26 Thread Brett Handley

Hi all,

 I think dialects are something we're going to learn a lot more about as we
 start to really learn how to create and apply them. Since I think dialects
 are so important, I'd love to hear some other viewpoints about their pros
 and cons. This isn't a rant, or an attack on your view, but your note
 inspired me to think a bit and, now, ask more folks here to think a bit
and
 share their thoughts.

Gregg great post. I agree with it all, although I didn't quite understand
what you meant by In a good dialect, there shouldn't be any *extra*
vocabulary or syntax. Just the dialect.

Last night I spent quite a while making a simple dialect more sophisticated.
It sort of evolved as I thought up interesting extra functionality to add.
But even while the functionality grows, the dialect grammar does not
necessarily grow as fast. A nice property. Leverage.

I'm evolving my dialect because I'm not an experienced grammar designer and
I find that choosing how to the structure of the grammar to be really hard.
But it is good experience. Thinking through these decisions makes me
appreciate just how much VID can be seen as a work of art. It also makes me
realise that having a cookbook for writing dialects in REBOL would be really
great. I've tried searching the internet for information on how to design a
good grammar and to me it seems as scarce as hen's teeth. Yes there's plenty
on how to parse one or compile one but not on how to make one conform to
your goals. It might also be nice to a sort of dialect framework - e.g the
structure of VID could be used in multiple domains so is it possible to make
it resuable as a quick start for someone building a new dialect? I guess
this situation of lack of grammar design information comes about because
designing a language is not ordinarily considered an developer activity -
more a software tools manufacturing activity - or maybe I was just looking
in the wrong place. Maybe REBOL will alter this situation.

In terms of example, at least some of the XML languages can be used to
reflect on. I mean XML is all about adding meta information to your base
information. REBOL dialects are too. So there can be a creative mixing of
ideas there. For me though I think the REBOL dialect approach is easier to
explore because the building blocks so naturally follow and are indistinct
from the supporting language.

In terms of internal REBOL dialects my favourite is VID naturally enough.
PARSE. CONTEXT, SECURE, COMPOSE, BUILD-TAG and rebsite index.r files provide
food for thought too.

Here are some external REBOL dialects I can name straight off:
Ingo Hohmann: TUI Dialect (Produce ASCII sequences)
Andrew Martin: -he just posted his list-
Joel Neely: generate-data (Generate test data from production rules)
David Oliva: Flash (SWF) Project
Gabriele Santilli: PDF-maker
Frank Sievertsen: lego (Lego-Cybermaster Robot control protocol),
irc-protocol, reb-log (Prolog dialect)

  My main concern about Dialects is that the new extra vocabulary/syntax
to
 learn
 and lack of indication. 

 How much indication a dialect provides will depend on the dialect. The
 PARSE dialect provides quite a bit of indication I think, which is
valuable
 in that context. Defining a grammar isn't the place to have lots of
 ambiguity. :)

I guess it depends on requirements. Its a hunch, but I think that if a
dialect is going to be stable and the outcomes change not much then perhaps
vocabularies / grammar can be minimal. But if the dialect has to grow over
time without breaking older messages then you might need to build in some
expansion flexibility or apparent redundancy. VID is amazingly extendable -
even to the point that a VID style can be designed to interpret the input
given to it as a special dialect in itself (within some limits of course). A
dialect within a dialect.

Regards,
Brett.

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Make Image of a Layout

2002-09-26 Thread Anton

Yes. Use 'to-image.
layout returns a face (which is an object, with type = 'face).

img: to-image layout [origin 0 title Big Train]

save/png %image.png img

view layout [image img]

It would be nice if to-image could accept a pane block
but it appears that it cannot at this time.

Anton.

 Is it easy to make a make image of a face, a pane or a layout ?
 
 How can I make it ?
 
 Philippe Oehler

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Teaching Rebol = was:{Re: Re: Parsing comment}

2002-09-26 Thread Jason Cunliffe

Andrew wrote:
 I don't think it's possible to get syntax hints for Rebol, unless one tries
 to execute the code. A Rebol IDE could show that a word refers to a function
 that takes X arguments of Y type/s. That's a useful hint, but that fails if
 the script (or a related script) replaces the value for that word when
 executed! :) It will also fail when looking at a word used in a dialect.

ok.. RIDE ideas

I donlt quite undetand why not - what does 'help do?

REBOL interpreter is running so it knows as soon as it sees a white space that a
word has been entered. It can do several things right then:

- lookup the word
indicate to the use, perhaps highlight the word in special color.
[RIDE user prefs can redefine all this]
test if it's a
- core word
- word defined in this session show so
- word defined by import show so

When a word is redefined that is useful to know too, even if the RIDE can't tell
you at that moment what it is exactly. Just as it knwos about white spaces it
knows about words ending in :

I find at the shell when testing, I face confusion often if a word has a value,
for example is holdigg on to 'old' values. For exactly the same reasons one
needs to invoke the

someword: copy []

idiom inside functions.

When one loads an external script in the shell with 'do there are a load of
fucntions defined there. The first helpful a new RIDE could do is tell you what
functions are named.

source help reveals a word 'dump-obj
source 'dump-obj reveals 3 functions 'clip-str and 'form-val, 'form-pad

Perphaps for system words it is not so relevant. But for externasl user scripts
I think it woudl be very helpful. Once can al;ways lok ath source, but the issue
is what kinds of dynamic helps are good.

importinga script adn immediately getting a remionded of teh fucntion name
swuodl be very useful. Proabbly in a parallel window so one does not break the
flow of the actual session.

I don't knwo if what i sugest is very eays or terribly hard.

 For example, in my Wiki script, I use 'form, with two different meanings.
 One is Rebol's usual 'form, the other is my ML dialect 'form that means
 create a HTML form with the following block! value. Similarly with 'head as
 well, one is Rebol's usual 'head, the other 'head means create a head
 section in HTML from the following block.

so would'nt that be good to know ?

 Looking at a small section of my Wiki script, one could be easily confused!
 It's not until one sees the entire context that it makes sense. This seems
 to me to be a force that encourages me to keep scripts short and to have
 powerful words.

Yes the art of REBOL must be to keep it short with well crafted words.
Dialects presumably can help do that. But there must be a better way to indicate
when one is stepping in or out of a dialect?

./Jason

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Teaching Rebol = was:{Re: Re: Parsing comment}

2002-09-26 Thread Jason Cunliffe

Hi Tim

  Despite the comments about documentation I think that
  rebol's help function is very accomodating for a new
  programming student.
  (and BTW I am also teaching python in a similar fashion)
  just try typing help split at the python prompt and see what
  you get.

Yes that was precisely the initial point I made to Python Edu-Sig.
They tried to show me sophisticated Python help is. And of course it is.
My point was how direct and freindly rebol's help is, largely becuae it bundles
a search function.

I'd like to hear more about your Rebol teaching experiences...
What age?
What kind of stuff you do?
..students reactions.
Do they use their programs together?
What probelms do they have?
Is this their first prgarmmnig experience?
What is easy?
What is hard?

What sort of materials you'd like to see to help your efforts?

  But seriously, rebol is a very good first programming language.
  The absense of systems calls in rebol/core is a good thing.
  I don't have to have the student's parents sign one of those
  If you broke it with your program it ain't our fault kind
  of contract/disclaimers, as we are doing with python, perl and
  C.

Thanks. A good point.

^
 SyntaxError: invalid syntax
 !!!
yep I know the feeling.

thanks
./Jason

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Newbie: Help with image buttons (View)

2002-09-26 Thread Carl Read

On 26-Sep-02, Matthew Kim wrote:

 Hi,

Hi Matt,

 I'm trying to make a cell phone demo for the computer which involves
 having the button on the phones to become active.

 For example... I want the demo to be able to have clickable
 'numbers' to dial a phone number, and a clickable 'send' button to
 emulate placing a call.

 I run into a problem because, the phone's buttons are not
 rectangular in shape. I made the phone's buttons into separate
 images and overlayed them onto the main image of the phone, but the
 REBOL buttons are rectangular in shape, and have a shadow/border.


 Is there a way either to:

 1) Make the buttons in REBOL/VIEW, have no border and no effect when
 the mouse clicks on it? (Buttons usually sink when clicked on).

If that's the behaviour you want, just uses images instead of buttons.
 ie...

rebol []
; Create two images...
img-1: to-image layout [backdrop pink text Image 1]
img-2: to-image layout [backdrop yellow text Image 2]
view layout [
output: field Click on images
image img-1 [output/text: Image 1 show output]
image img-2 [output/text: Image 2 show output]
]

Other styles such as images can have a block which will be evaluated
when the style is clicked on - it's not just the obvious ones like
buttons that you can do this with.

Hope that answers your question.

 2) Make a coordinate system over the image of the phone and
 detecting mouse clicks over that coordinate, particularily over
 buttons?

 Thanks!
 Matt

-- 
Carl Read

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Cross Platform? Then what about Mac OS X?

2002-09-26 Thread Rod Gaither

 Rebol/View (and Express !) must be adapted to Mac OS X. A lot of 
 programmers
 (as me; -)) use Mac OS X now because the system is effective. It is a 
 good
 compromise between Windows and Linux. In Europe, it meets an increasing
 success.

Count me as well.

I wasn't ever a Mac person but the combination of Unix and a consumer
quality GUI is superb.  I am very glad I made the move, or should I say
switch. :-)

REBOL is one of two products in my developer toolset that I can no 
longer
use.  I really need a network capable scripting language too.  :-(

Hope RT gets the work done on OS X updates sooner rather than later as
I really need Core and I miss View and IOS/Express.

Rod.

Rod Gaither
[EMAIL PROTECTED]
Oak Ridge, NC USA

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Cross Platform? Then what about Mac OS X?

2002-09-26 Thread Porter Woodward


- Original Message -
From: Rod Gaither [EMAIL PROTECTED]
 Hope RT gets the work done on OS X updates sooner rather than later as
 I really need Core and I miss View and IOS/Express.

I wonder if Core for BSD could be ported quickly to OS X?  My understanding
is that a lot of BSD stuff recompiles relatively easily under OS X.  Lack of
REBOL on OS X is one of the reasons holding me back from switching.

Mostly I do a lot of Java coding, and I understand that OS X has good
support for that (but my favorite IDE, Eclipse isn't there yet).  And I
write REBOL scripts to auto generate Java code pretty frequently; copy and
paste a database table definition from MS-SQL (or any db) to a text file.
Process it with a REBOL script to create class member attributes,
getters/setters, and insert/update methods...  Crude, but handy.  Someday
I'll just write a Java based meta-data inspector that can autogenerate the
Java code for me.  But, given the mixed JDBC support out there, I'm not sure
I'm willing to trust that.  It's only now with the JDBC 3.0 spec (where the
drivers are, who knows?) that you can get the autogenerated ID of a just
inserted record w/o using a transaction - something ADO and ODBC have been
doing for years...

Plus I use REBOL scripts to keep tabs on bunches of web sites, and to do web
crawls and misc stuff.  It's my prototyping language of choice.  Proof of
concepts are pretty easy to do in it, as you're not wrestling with intimate
details in some cases.  Still working on a REBOL implementation of the
Gnutella protocol - I can advertise that I'm on the network, get back the
Gnutella OK response, etc.  so that's progress.  With View/Pro I'm planning
to use the Gnutella protocol to allow for secure sharing of virtual
information...  It's an odd project.

Anyhow, that's quite a ramble off of the original OS X inquiry.

- Porter

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Fonts links

2002-09-26 Thread jose

In Linux, it looks like Rebol just relies on a set of
safe fonts but not all fonts available to xfs (X Font
Server)

I tried to view different fonts with 
view layout [ text Fonts test font-size 40 [ name:
Speedo ] ]

but it defaults to basic fonts 

 --- Gregg Irwin [EMAIL PROTECTED] escribió:
 Thanks Jose!
 
 I'm not sure how REBOL does things internally, but
 this is good stuff to
 know.
 
 --Gregg
 
 -- 
 To unsubscribe from this list, please send an email
 to
 [EMAIL PROTECTED] with unsubscribe in the 
 subject, without the quotes.
  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Converting Word .DOC and .PDF to text files

2002-09-26 Thread jose

I've used pdf-maker and it's a great tool. 

I just want to do the opposite, strip the tags and get
the plain text. wvware.com has open source for these
utilities but I'd rather do it in Rebol directly, if
it is not too complicated. I´ll check with Gabrielle

Thanks

--- Anton [EMAIL PROTECTED] escribió:  Gabriele
wrote a pdf generator, but he said parsing
 pdf files is really hard, but perhaps just the text
 might be easier.
 
 Anton.
 
  Has anybody written any code to parse .DOC or .PDF
  native formats and extract just the text ?
  
  In Linux there are the wv tools that do this well
 but
  I am looking for a REBOL cross-platform solution
  
  Thanks
 
 -- 
 To unsubscribe from this list, please send an email
 to
 [EMAIL PROTECTED] with unsubscribe in the 
 subject, without the quotes.
  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Newbie: Help with image buttons (View)

2002-09-26 Thread Matthew Kim

Thanks Carl! That's exactly what I needed!

A follow up question...

Is there a way to change the mouse arrow into a hand, when the user
floats over a clickable image/button?

-Matt

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of Carl Read
Sent: Thursday, September 26, 2002 8:35 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: Newbie: Help with image buttons (View)


On 26-Sep-02, Matthew Kim wrote:

 Hi,

Hi Matt,

 I'm trying to make a cell phone demo for the computer which involves 
 having the button on the phones to become active.

 For example... I want the demo to be able to have clickable 'numbers' 
 to dial a phone number, and a clickable 'send' button to emulate 
 placing a call.

 I run into a problem because, the phone's buttons are not rectangular 
 in shape. I made the phone's buttons into separate images and 
 overlayed them onto the main image of the phone, but the REBOL buttons

 are rectangular in shape, and have a shadow/border.


 Is there a way either to:

 1) Make the buttons in REBOL/VIEW, have no border and no effect when 
 the mouse clicks on it? (Buttons usually sink when clicked on).

If that's the behaviour you want, just uses images instead of buttons.
ie...

rebol []
; Create two images...
img-1: to-image layout [backdrop pink text Image 1]
img-2: to-image layout [backdrop yellow text Image 2]
view layout [
output: field Click on images
image img-1 [output/text: Image 1 show output]
image img-2 [output/text: Image 2 show output]
]

Other styles such as images can have a block which will be evaluated
when the style is clicked on - it's not just the obvious ones like
buttons that you can do this with.

Hope that answers your question.

 2) Make a coordinate system over the image of the phone and detecting 
 mouse clicks over that coordinate, particularily over buttons?

 Thanks!
 Matt

-- 
Carl Read

-- 
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: Cross Platform? Then what about Mac OS X?

2002-09-26 Thread Rod Gaither

 Hope RT gets the work done on OS X updates sooner rather than later as
 I really need Core and I miss View and IOS/Express.

 I wonder if Core for BSD could be ported quickly to OS X?  My 
 understanding
 is that a lot of BSD stuff recompiles relatively easily under OS X.  
 Lack of
 REBOL on OS X is one of the reasons holding me back from switching.

Core for Mac OS X was/is working with versions prior to Jaguar.

Something small (I hope) broke with the 10.2 release of OS X.  RT is 
aware of
this and is looking at the issue but no word on when a fix will be 
available yet.

Some work was also done on View on OS X (betas I think) - enough for RT 
to
say they had some issues, including performance, that needed to be 
addressed
before it was an acceptable port.

 Mostly I do a lot of Java coding, and I understand that OS X has good
 support for that (but my favorite IDE, Eclipse isn't there yet).  And I

I'm not a Java programmer but the little bit of poking around with it 
on OS X
I've done supports that assumption.  I'm using ArgoUML and jEdit with no
issues and the Java integration with the Apple tools (Project/Interface 
Builder)
is quite impressive.

FWIW, Rod.

Rod Gaither
[EMAIL PROTECTED]
Oak Ridge, NC USA

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] bitset help

2002-09-26 Thread Romano Paolo Tenca

I do not understand how can be used all this new stuff from the new betas. Can
someone make an useful example to me? I knows only how to use bitset in parse
rule for char, but this seems something different.

These are the RT docs:


2.3. New Bitset Functions: CLEAR, LENGTH?, EMPTY?
Three new functions (actions) have been added to bitsets:
The CLEAR function quickly clears all bits to zero.

The LENGTH? function returns the number of bits in the bitset (always multiple
of 8).

The EMPTY? function returns TRUE if any bit is set, otherwise it returns
FALSE. (Note that EMPTY? is the same function as TAIL?; therefore, TAIL? also
returns the same results, but the word has no meaning for bitsets.)

Bitsets are used as high performance logic arrays for character sets and
hashes.

Examples:

 items: make bitset! 40
== make bitset! #{00}
 length? items
== 40


---
Ciao
Romano

- Original Message -
From: Porter Woodward [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 3:52 PM
Subject: [REBOL] Re: Cross Platform? Then what about Mac OS X?



 - Original Message -
 From: Rod Gaither [EMAIL PROTECTED]
  Hope RT gets the work done on OS X updates sooner rather than later as
  I really need Core and I miss View and IOS/Express.

 I wonder if Core for BSD could be ported quickly to OS X?  My understanding
 is that a lot of BSD stuff recompiles relatively easily under OS X.  Lack of
 REBOL on OS X is one of the reasons holding me back from switching.

 Mostly I do a lot of Java coding, and I understand that OS X has good
 support for that (but my favorite IDE, Eclipse isn't there yet).  And I
 write REBOL scripts to auto generate Java code pretty frequently; copy and
 paste a database table definition from MS-SQL (or any db) to a text file.
 Process it with a REBOL script to create class member attributes,
 getters/setters, and insert/update methods...  Crude, but handy.  Someday
 I'll just write a Java based meta-data inspector that can autogenerate the
 Java code for me.  But, given the mixed JDBC support out there, I'm not sure
 I'm willing to trust that.  It's only now with the JDBC 3.0 spec (where the
 drivers are, who knows?) that you can get the autogenerated ID of a just
 inserted record w/o using a transaction - something ADO and ODBC have been
 doing for years...

 Plus I use REBOL scripts to keep tabs on bunches of web sites, and to do web
 crawls and misc stuff.  It's my prototyping language of choice.  Proof of
 concepts are pretty easy to do in it, as you're not wrestling with intimate
 details in some cases.  Still working on a REBOL implementation of the
 Gnutella protocol - I can advertise that I'm on the network, get back the
 Gnutella OK response, etc.  so that's progress.  With View/Pro I'm planning
 to use the Gnutella protocol to allow for secure sharing of virtual
 information...  It's an odd project.

 Anyhow, that's quite a ramble off of the original OS X inquiry.

 - Porter

 --
 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: Fonts links

2002-09-26 Thread Anton

That doesn't work on windows, either.
You missed the 'font-name dialect keyword:

view layout [text fonts test font-size 40 font-name courier]

and you can also do it this way:

view layout [text fonts test font [name: courier size: 40]]

or mix it up:

view layout [
text fonts test font-size 40 font [name: courier]
]

The three examples above should all give the same result,
and they assume you have a font courier installed.

Anton.

 I tried to view different fonts with 
 view layout [ text Fonts test font-size 40 [ name:
 Speedo ] ]
 
 but it defaults to basic fonts 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Fonts links

2002-09-26 Thread jose

sure, I missed 'font before the block, but any of the
examples don't seem to recognize system fonts not part
of REBOL's default set (at least in Linux Red Hat 7.2)

It recognizes Courier, Times, Helvetica, Arial,
Verdana, Georgia

but not Comic, Book, Speedo, Outlook, Impact and other
TrueType fonts available in the system

--- Anton [EMAIL PROTECTED] escribió:  That doesn't
work on windows, either.
 You missed the 'font-name dialect keyword:
 
   view layout [text fonts test font-size 40
 font-name courier]
 
 and you can also do it this way:
 
   view layout [text fonts test font [name:
 courier size: 40]]
 
 or mix it up:
 
   view layout [
   text fonts test font-size 40 font [name:
 courier]
   ]
 
 The three examples above should all give the same
 result,
 and they assume you have a font courier installed.
 
 Anton.
 
  I tried to view different fonts with 
  view layout [ text Fonts test font-size 40 [
 name:
  Speedo ] ]
  
  but it defaults to basic fonts 
 
 -- 
 To unsubscribe from this list, please send an email
 to
 [EMAIL PROTECTED] with unsubscribe in the 
 subject, without the quotes.
  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Converting Word .DOC and .PDF to text files

2002-09-26 Thread Anton

Maybe you could run off and grab the relevant
parts of the source (just the relevant parts).
One of us here might be able to convert it
without too much trouble. I can understand C.

Anton.

 I've used pdf-maker and it's a great tool.

 I just want to do the opposite, strip the tags and get
 the plain text. wvware.com has open source for these
 utilities but I'd rather do it in Rebol directly, if
 it is not too complicated. I´ll check with Gabrielle

 Thanks

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Newbie: Help with image buttons (View)

2002-09-26 Thread Gregg Irwin

Hi Matt,

 Is there a way to change the mouse arrow into a hand, when the user
floats over a clickable image/button? 

REBOL doesn't allow any cursor control at this time. You could work around
it for specific OSs, but a common alternative is to have the button itself
display an effect of some kind when the mouse is over it, like TEXT styles
do when they have an action associated with them.

--Gregg

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Forum en francais

2002-09-26 Thread Pascal Vandersteegen

Bonjour

Je viens d'installer un Forum en francais sur Rebol car je compte apprendre ce Lng

Je suis à la recherche d'un animateur de forum si celà vous dit:

rendez-vous sur www.eurocomservices.net 

Salutations et au plaisir.
Salutation, Pascal Vandersteegen
www.eurocomservices.net


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Teaching Rebol = was:{Re: Re: Parsing comment}

2002-09-26 Thread Tim Johnson

Hello Jason:
* Jason Cunliffe [EMAIL PROTECTED] [020926 03:59]:
 Hi Tim
 
   Despite the comments about documentation I think that
   rebol's help function is very accomodating for a new
   programming student.
   (and BTW I am also teaching python in a similar fashion)
   just try typing help split at the python prompt and see what
   you get.
 
 Yes that was precisely the initial point I made to Python Edu-Sig.
 They tried to show me sophisticated Python help is. And of course it is.
 My point was how direct and freindly rebol's help is, largely becuae it bundles
 a search function.
 
 I'd like to hear more about your Rebol teaching experiences...
 What age?

  Eighth grade through senior.

 What kind of stuff you do?

  Intro basics, but finishes with ftp email and cgi

 ..students reactions.

  Completion is a problem...
  
 Do they use their programs together?

  No. Not so far
 What probelms do they have?

  Did I say that this is an online class? Anyway, that's
  really the main obstacle, how to proctor a motivate
  without physical presense.

 Is this their first prgarmmnig experience?

  It is designed as a first programming class, but
  some students have had html, a little C++

 What is easy?

  Teaching the class  no commuting :-)

 What is hard?
 
  Motivating them.

 What sort of materials you'd like to see to help your efforts?

  I've considered a couple of things: 
  1)A tutor program like TCL uses.
  2)Some simple chat bot routines
   
   But they are simple add-ons. The main issues really aren't 
   specific to rebol. They are a factor of what is (to us here)
   a new medium.
 
   But seriously, rebol is a very good first programming language.
   The absense of systems calls in rebol/core is a good thing.
   I don't have to have the student's parents sign one of those
   If you broke it with your program it ain't our fault kind
   of contract/disclaimers, as we are doing with python, perl and
   C.
 
 Thanks. A good point.
 
  And to tell the truth, certain sysops and ISPs 
  like that feature too

 ^
  SyntaxError: invalid syntax
  !!!
 yep I know the feeling.
 
 thanks
 ./Jason
 
 -- 
 To unsubscribe from this list, please send an email to
 [EMAIL PROTECTED] with unsubscribe in the 
 subject, without the quotes.

-- 
Tim Johnson [EMAIL PROTECTED]
  http://www.alaska-internet-solutions.com
  http://www.johnsons-web.com
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Converting Word .DOC and .PDF to text files

2002-09-26 Thread Gabriele Santilli

Hi Anton,

On Thursday, September 26, 2002, 11:54:15 AM, you wrote:

A Gabriele wrote a pdf generator, but he said parsing
A pdf files is really hard, but perhaps just the text
A might be easier.

It depends. If you are lucky, getting the text out of it is really
easy.  You  can  easily get the text out of a PDF generated by PDF
Maker.

However,  if  the file is compressed and/or encrypted, you need to
do  a  fair  amount  of job to get to the text... And usually, PDF
files are at least compressed.

Regards,
   Gabriele.
-- 
Gabriele Santilli [EMAIL PROTECTED]  --  REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Cross Platform? Then what about Mac OS X?

2002-09-26 Thread Kemp Watson

My vote for OS X as well.

I've got a brand-spanking new G4 tower on loan from Apple on my desk right
now, and it ain't goin' back if I can help it!

What I don't understand is all the money and effort Apple's putting into the
'Switch' campaign - all they need to do is ship with a 2-button mouse...

Kemp

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
 Rod Gaither
 Sent: September 26, 2002 8:24 AM
 To: [EMAIL PROTECTED]
 Subject: [REBOL] Re: Cross Platform? Then what about Mac OS X?


  Rebol/View (and Express !) must be adapted to Mac OS X. A lot of
  programmers
  (as me; -)) use Mac OS X now because the system is effective. It is a
  good
  compromise between Windows and Linux. In Europe, it meets an increasing
  success.

 Count me as well.

 I wasn't ever a Mac person but the combination of Unix and a consumer
 quality GUI is superb.  I am very glad I made the move, or should I say
 switch. :-)

 REBOL is one of two products in my developer toolset that I can no
 longer
 use.  I really need a network capable scripting language too.  :-(

 Hope RT gets the work done on OS X updates sooner rather than later as
 I really need Core and I miss View and IOS/Express.

 Rod.

 Rod Gaither
 [EMAIL PROTECTED]
 Oak Ridge, NC USA

 --
 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: Converting Word .DOC and .PDF to text files

2002-09-26 Thread jose

Gabrielle,

I want to get the text of any arbitrary PDF file. Is
there a spec I can look at ?

There is an open source toolset, wvware.com that does
it but I'd rather not look at their code

Thanks

 --- Gabriele Santilli [EMAIL PROTECTED]
escribió:  Hi Anton,
 
 On Thursday, September 26, 2002, 11:54:15 AM, you
 wrote:
 
 A Gabriele wrote a pdf generator, but he said
 parsing
 A pdf files is really hard, but perhaps just the
 text
 A might be easier.
 
 It depends. If you are lucky, getting the text out
 of it is really
 easy.  You  can  easily get the text out of a PDF
 generated by PDF
 Maker.
 
 However,  if  the file is compressed and/or
 encrypted, you need to
 do  a  fair  amount  of job to get to the text...
 And usually, PDF
 files are at least compressed.
 
 Regards,
Gabriele.
 -- 
 Gabriele Santilli [EMAIL PROTECTED]  -- 
 REBOL Programmer
 Amigan -- AGI L'Aquila -- REB:
 http://web.tiscali.it/rebol/index.r
 
 -- 
 To unsubscribe from this list, please send an email
 to
 [EMAIL PROTECTED] with unsubscribe in the 
 subject, without the quotes.
  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Fonts links

2002-09-26 Thread Anton

Ok, that's a different issue then.

Anton.

 sure, I missed 'font before the block, but any of the
 examples don't seem to recognize system fonts not part
 of REBOL's default set (at least in Linux Red Hat 7.2)
 
 It recognizes Courier, Times, Helvetica, Arial,
 Verdana, Georgia
 
 but not Comic, Book, Speedo, Outlook, Impact and other
 TrueType fonts available in the system

  view layout [text fonts test font [name:
  courier size: 40]]

   I tried to view different fonts with 
   view layout [ text Fonts test font-size 40 [
  name:
   Speedo ] ]
   
   but it defaults to basic fonts 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Converting Word .DOC and .PDF to text files

2002-09-26 Thread Gabriele Santilli

Hi jose,

On Thursday, September 26, 2002, 6:21:10 PM, you wrote:

j I want to get the text of any arbitrary PDF file. Is
j there a spec I can look at ?

On  the Adobe web site you'll find the full specifications for the
PDF  format. I can send it to you, if you don't want to search for
it. However, as I said, parsing a PDF file is harder than creating
one,   because   you'll   have  to  deal  with  all  possibilities
(compression,  encryption,  linearized format...); of course, this
does not mean it is impossible.

Regards,
   Gabriele.
-- 
Gabriele Santilli [EMAIL PROTECTED]  --  REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Converting Word .DOC and .PDF to text files

2002-09-26 Thread jose

Thanks. This is the advice I need.

I'll probably be better off using wvware library

I hope word is easier than PDF !

 --- Gabriele Santilli [EMAIL PROTECTED]
escribió:  Hi jose,
 
 On Thursday, September 26, 2002, 6:21:10 PM, you
 wrote:
 
 j I want to get the text of any arbitrary PDF file.
 Is
 j there a spec I can look at ?
 
 On  the Adobe web site you'll find the full
 specifications for the
 PDF  format. I can send it to you, if you don't want
 to search for
 it. However, as I said, parsing a PDF file is harder
 than creating
 one,   because   you'll   have  to  deal  with  all 
 possibilities
 (compression,  encryption,  linearized format...);
 of course, this
 does not mean it is impossible.
 
 Regards,
Gabriele.
 -- 
 Gabriele Santilli [EMAIL PROTECTED]  -- 
 REBOL Programmer
 Amigan -- AGI L'Aquila -- REB:
 http://web.tiscali.it/rebol/index.r
 
 -- 
 To unsubscribe from this list, please send an email
 to
 [EMAIL PROTECTED] with unsubscribe in the 
 subject, without the quotes.
  

___
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Cross 'X' Platform?

2002-09-26 Thread Joel Neely

Hi, Laurence,

Adding some support to your concerns...

Although I routinely work on w2k, w9x, Solaris, Linux, and
(still a little) HP-UX, my personal box of choice is running
Mac OS X.

Laurence Giddings wrote:
 
 After reading the long discussions recently on the
 importance/significance of Rebols multi platform/OS
 capabilities I am prompted to ask once again when
 support for the Macintosh OS X  system might be forth
 coming?
 
...
 
 ... Especially as many of the new Mac OS X users are
 switching not from windows but from Unix and Linux systems
 which Rebol currently supports.
 

It appears from what I'm seeing on the web that a growing number
of people are leaning that way.  See below.

http://www.byte.com/documents/s=7620/byt1032475416823/0923_bar.html
http://slashdot.org/article.pl?sid=02/09/26/0058238mode=threadtid=107
http://www.apple.com/uk/hotnews/articles/simoncozens/
http://slashdot.org/article.pl?sid=02/09/22/1922205mode=threadtid=106

-jn-
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Parsing comment

2002-09-26 Thread Joel Neely

Hi, Gregg, et al,

Yet another variation, just for fun, and a profound philosophical
comment...  ;-)

Gregg Irwin wrote:
 
 Hi Dick,
 
 Hopefully I won't just add more confusion here...
 
  10 + 10
 means something to the Rebol interpretation process, but
 10+10  does not have the same meaning...
 
 If we take the numbers out of the equation :) to avoid
 syntactical issues, you can do this (because + is a valid
 character in words):
 
  a: 1
 == 1
  b: 2
 == 2
  a + b
 == 3
  a+b: 4
 == 4
  a+b
 == 4
 
 So, a+b is not the same as a + b. Now, you could also
 change the operation of +, like this:
 
  set '+ :*
  1 + 3
 == 3
 
 But, AFAIK, you can't alter the operands that an operator
 operates upon. :)
 

Depends on your definition of alter...

 a: func [:op 'val] [set val do [op get val get val]]
 b: 3
== 3
 a + b
== 6
 b
== 6


A long time ago I heard someone say FORTH is not a programming
language; it is a programming language construction kit!
Despite differences in notation and internal representation, the
REBOL facility for dailecting, and the absence of distinction
between data and code make me think that the same statement
could be made of REBOL.

Of course, I remember the saying,

I've only met one self-made man, and he should have sued
the manufacturer for malpractice!

;-)

-jn-
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Newbie: Help with image buttons (View)

2002-09-26 Thread Matthew Kim

I seem to be having a problem with 'fields'.

I have a 'field' covering the window of the cell phone, where users will
be able to type 'text messages', and also where menus will be displayed.
However, the text doesn't seem to wrap around, instead it continues on
in a straight line.

If I use a 'text' box, then it DOES wrap around... However, users's
can't input messages.

Secondly...

How do you do a line break within a string?

Thanks!
Matt

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Platform? Windows

2002-09-26 Thread Pascal Vandersteegen

Bonsoir,

Je viens d'acheter le magazine Hors-série avec la version de Rebol car a
première vu il y avait une version pour Windows hors en regardant le cd, je
ne trouve aucune version pour Windows avez vous une idée à ce propos ?

Salutations

Salutations,
Pascal pour http://www.eurocomservices.net

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Library smart docs = was:{Re: Re: Parsing comment}

2002-09-26 Thread Graham Chiu


-- Unable to decode HTML file!! --

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Converting Word .DOC and .PDF to text files

2002-09-26 Thread Gabriele Santilli

Hi jose,

On Thursday, September 26, 2002, 7:59:53 PM, you wrote:

j I hope word is easier than PDF !

I don't think so. Actually, MS does its best to avoid other people
reading  their  formats... however, maybe just reading the text is
not difficult.

Regards,
   Gabriele.
-- 
Gabriele Santilli [EMAIL PROTECTED]  --  REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Library smart docs = was:{Re: Re: Parsingcomment}

2002-09-26 Thread Graham Chiu

D. EASY-VID LIBRARY
Build a version for the Library in 100% Rebol, adapting 
some of Leo's good
ideas.
Easy-VID sort of does this now. It has the wonderful 
and rather unique ability
to execute code with a single mouse click, right in the 
middle of text.
It's an incredibly persuasive demo of Rebol itself.
Two problems  I see in Easy-Vid based solution is that it 
is not web friendly
and enabling.disabling  so that needs to be managed.

Hi Jason,

VidWiki uses some of the easy vid code. The vidwiki client 
views dynamically (CGI) generated layouts, and the layouts 
can contain instructions to view layouts within the 
layouts.  I did manage to convert several of the RT Howtos 
to this format with some modifications.  But there is a 
limitation as to what you can do, and it doesn't scale 
well for larger pages.  However, I guess some people have 
found it useful.  At last count there have been over 8300 
accesses to the script :)

--
Graham Chiu
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Library smart docs = was:{Re: Re: Parsing comment}

2002-09-26 Thread Graham Chiu

Hmm.  Must be a bug with this new PHP webmail client I am testing.

Anyway, what I meant to say was that since Carl doesn't read this list much
these days, perhaps those interested in being the librarian should contact
him directly and lets us know the outcome.

--
Graham Chiu

- Original message 
From: Graham Chiu [EMAIL PROTECTED]
To: Rebol Mailing List [EMAIL PROTECTED]
Subject: [REBOL] Re: Library  smart docs = was:{Re: Re: Parsing comment}
Date: 09-26-02 19:05

-- Unable to decode HTML file!! --

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Platform? Windows

2002-09-26 Thread Philippe Oehler

You can find a version of Rebol for Windows at www.rebol.com

Mais en même temps ca m'étonnerait que tu ne trouves pas les versions sur le
cd..

Philippe Oechler
- Original Message -
From: Pascal Vandersteegen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 26, 2002 9:13 PM
Subject: [REBOL] Re: Platform? Windows


 Bonsoir,

 Je viens d'acheter le magazine Hors-série avec la version de Rebol car a
 première vu il y avait une version pour Windows hors en regardant le cd,
je
 ne trouve aucune version pour Windows avez vous une idée à ce propos ?

 Salutations

 Salutations,
 Pascal pour http://www.eurocomservices.net

 --
 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: Teaching Rebol = was:{Re: Re: Parsing comment}

2002-09-26 Thread Andrew Martin

Gabriele wrote:
 Mmm...  I  think,  I  should  add  an 'EXPLAIN keyword to the new, slowly
upcoming,  layout-pdf  that  explains  what a piece of the layout means.
What do you think?

I wouldn't. Instead why not a function called 'help-layout-pdf ? That way
it's like Rebol's 'help function. Also, it might be better to call the
dialect 'PDF instead, so making the help function's name: 'help-PDF. Then it
could be used something like:
help-PDF square; or some other PDF dialect keyword.

Unfortunately, this approach doesn't help much with those dialects that
don't have keywords. For example, my ML, CSS, Fixed, eText  Build-Tag
dialects. :( Instead, there'll just have to be loads of examples to learn
from.

Andrew Martin
ICQ: 26227169 http://valley.150m.com/
--

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Library smart docs = was:{Re: Re: Parsingcomment}

2002-09-26 Thread Graham Chiu

btw, google does not find it, but finds your post which 
includes a rebsite url
http://www.rebol.org/userlist/archive/504/648.html

Hmm.  I thought that there was not supposed to be a direct 
link anywhere to that archive to prevent spiders getting 
to it ... as email addresses are visible on those pages.


Whatever/whomever/however, the new improved Rebol Library 
Project [RLP] needs an
effective strategy to make rebsites visible to google.
Just a script which automatically parses a rebsite and 
generates a
google-friendly html with meta tags would do it. 
Perhaps that's an easy add-on
to %WidWiki.r

I think that all dynamically created sites tend to be 
invisible to search engines.  Zope is an example.  

I'll have to think about the latter to see how easy that 
might be.  But as the vidwiki.r came from wiki.r which 
originally generated html, I guess it shouldn't be that 
hard :)


Is /IOS also always invisible to google, or is there an 
option to enable
google-vision?

IOS is invisible as clients have to be authenticated. 
 Communications is also encrypted.


Have you tried Vanilla?

No.  I've seen it though.

Could be nice to connect VidWiki to Vanilla,
adding 'browse', 'view', 'publish', 'set' and 'get' 
functions to both.

./Jason


--
Graham Chiu
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Library smart docs = was:{Re: Re: Parsing comment}

2002-09-26 Thread Christian Langreiter


btw, google does not find it, but finds your post which 
includes a rebsite url
http://www.rebol.org/userlist/archive/504/648.html

 Hmm.  I thought that there was not supposed to be a direct 
 link anywhere to that archive to prevent spiders getting 
 to it ... as email addresses are visible on those pages.

Well, spiders don't get to sites if they observe robots.txt, which
spam address harvesters most certainly don't.

 I think that all dynamically created sites tend to be
 invisible to search engines.  Zope is an example.

Not exactly. Search engines have avoided URLs with query strings for a
long time, but how would they distinguish static from dynamic content?
They cannot, it's all bits to them (and us, for that matter ;-).

-- c

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Newbie: Help with image buttons (View)

2002-09-26 Thread Carl Read

On 27-Sep-02, Matthew Kim wrote:

 I seem to be having a problem with 'fields'.

 I have a 'field' covering the window of the cell phone, where users
 will be able to type 'text messages', and also where menus will be
 displayed. However, the text doesn't seem to wrap around, instead it
 continues on in a straight line.

 If I use a 'text' box, then it DOES wrap around... However, users's
 can't input messages.

Use 'wrap...

view layout [field 50x100 The rain in Spain is wet... wrap]

Though 'area instead of 'field is normally used when you want a
multi-line box.  You still need wrap to get word-wrapping though.

 Secondly...

 How do you do a line break within a string?

abc^/def or abc^(line)def.

The ^ is the escape character, so, when used at the Console...

 print abc^/def 
abc
def
 print abc^(line)def
abc
def
 print abc^-def 
abc def
 print abc^(tab)def
abc def
 print abc^^def
abc^def
 print abc^(41)def
abcAdef

and so on.  The number in the last one there is in hex, not decimal. 
Look in the Core Guide (it's on the REBOL site) in the Other Values
section for Character to see the other escape characters.

-- 
Carl Read

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Cross Platform? Then what about Mac OS X?

2002-09-26 Thread Carl Read

On 27-Sep-02, Porter Woodward wrote:

 - Original Message -
 From: Rod Gaither [EMAIL PROTECTED]
 Hope RT gets the work done on OS X updates sooner rather than later
 as I really need Core and I miss View and IOS/Express.

 I wonder if Core for BSD could be ported quickly to OS X? My
 understanding is that a lot of BSD stuff recompiles relatively
 easily under OS X. Lack of REBOL on OS X is one of the reasons
 holding me back from switching.

Core is already on OSX...

http://www.rebol.com/platforms.html

or am I missing something?  (I know there's another non-Apple OSX (OS
X?) from way back, so it's possible...)

Note though there's this in the REBOL FAQ regarding Core for Apple
OSX...

---8---

From: http://www.rebol.com/faq.html

Note that the current release of Core does not run on the 10.2 version
of OSX. This is due to a change in the OSX dynamic libraries. The
work-around is to set an environment variable, DYLD_INSERT_LIBRARIES,
which declares libraries that are to be searched by the loader
(dyld). Add the following line to your login script:

setenv DYLD_INSERT_LIBRARIES /usr/lib/libtermcap.dylib

 and, REBOL will run again. [Thanks Ron.]

---8---

-- 
Carl Read

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: defining words == was:{Re: Teaching Rebol = was:{Re: Re: Parsing comment}}

2002-09-26 Thread Laurent Giroud

Thursday, September 26, 2002, 10:23:24 PM, Andrew Martin wrote :
 test if it's a
 - core word

 Uhm, what are those? I redefine and add quite a few of them on startup in
 my %user.r file.

 - word defined in this session show so

 set to-word input 123

Do you really have such line in your %user.r file ?

This has nothing to do with the previous subject but I am very interested in
knowing how this is useful to you, could you explain it a bit ?

Thanks,
Laurent

--
Laurent Giroud
[EMAIL PROTECTED]

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Teaching Rebol = was:{Re: Re: Parsing comment}

2002-09-26 Thread Carl Read

On 27-Sep-02, Tim Johnson wrote:

 * Jason Cunliffe [EMAIL PROTECTED] [020926 03:59]:

 I'd like to hear more about your Rebol teaching experiences...
 What age?

  Eighth grade through senior.

Those are ages? (;  (We used to have primers, standards and forms here
in NZ, but now the kids talk of being in Room 6 and so on when you
ask the class they're in.  Totally meaningless:)

 What probelms do they have?

  Did I say that this is an online class? Anyway, that's
  really the main obstacle, how to proctor a motivate
  without physical presense.

Is it just Core they use, or View too?  Eye-candy could help, as does
having a personal reason to use the language.  In an interview I
found by following one of Jason's links a student mentioned having
used Python to put up a website.  Building a plain, vanilla website
is nothing to kids these days, but building a dynamic one might be
another matter, and Core's all you need for it.  Maybe that's where a
REBOL class should start?  It'd give quick and visual feedback and an
obvious use for what they're doing, compared to just outputting text
to the console or a file or whatever.  Though you have the problem of
having to teach HTML as well...

-- 
Carl Read

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: defining words == was:{Re: Teaching Rebol = was:{Re: Re: Parsing comment}}

2002-09-26 Thread Andrew Martin

Laurent wrote:
 This has nothing to do with the previous subject but I am very interested
in knowing how this is useful to you, could you explain it a bit ?

Perhaps a more useful example:

 do ask Please enter an example script: 
Please enter an example script: set 'Foo Hello! print Foo
Hello!
 foo
== Hello!

Which is a primitive Rebol console written in Rebol.

Here's another more useful example, for a database using Rebol block! values
to hold name values pairs.
 X: [; Only one record.
[Name Andrew
[Email [EMAIL PROTECTED]
[]
== [
Name Andrew
Email [EMAIL PROTECTED]
]
 foreach [Name Value] X [set Name Value]
== [EMAIL PROTECTED]
 Name
== Andrew
 Email
== [EMAIL PROTECTED]

Usually the 'foreach would be 'do-ne inside a object! which is the context
for all words stored in the database. That object is the prototype for the
stored records.

Andrew Martin
ICQ: 26227169 http://valley.150m.com/
--

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Cross Platform? Then what about Mac OS X?

2002-09-26 Thread Rod Gaither

Hi Carl,

Thanks very much for pointing this out!

I now have Core on OS X again.

It will help me wait patiently for View and IOS/Express... :-)

Rod.

 Note though there's this in the REBOL FAQ regarding Core for Apple
 OSX...
 ---8---

 From: http://www.rebol.com/faq.html

 Note that the current release of Core does not run on the 10.2 version
 of OSX. This is due to a change in the OSX dynamic libraries. The
 work-around is to set an environment variable, DYLD_INSERT_LIBRARIES,
 which declares libraries that are to be searched by the loader
 (dyld). Add the following line to your login script:

 setenv DYLD_INSERT_LIBRARIES /usr/lib/libtermcap.dylib

  and, REBOL will run again. [Thanks Ron.]

 ---8---

 -- 
 Carl Read

 -- 
 To unsubscribe from this list, please send an email to
 [EMAIL PROTECTED] with unsubscribe in the
 subject, without the quotes.


Rod Gaither
[EMAIL PROTECTED]
Oak Ridge, NC USA

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Cross Platform? Then what about Mac OS X?

2002-09-26 Thread atruter


 Lack of REBOL on OS X is one of the reasons holding me back from
switching.

Ditto. I've also had a few sales prospects (mainly from Academia) say to
me, If your product runs on OS/X we'll buy it as there is no alternative
at present.

It may be a small market (relative to Windoze), but good products (both
REBOL and s/w made from it) can really shine in a market where there are
not that many choices (at the moment). First mover opportunities abound .
. .


Regards,

 Ashley

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Library smart docs = was:{Re: Re: Parsingcomment}

2002-09-26 Thread Graham Chiu

On Thu, 26 Sep 2002 23:21:54 +0200
  Christian Langreiter [EMAIL PROTECTED] wrote:

 Hmm.  I thought that there was not supposed to be a 
direct 
 link anywhere to that archive to prevent spiders getting 
 to it ... as email addresses are visible on those pages.

Well, spiders don't get to sites if they observe 
robots.txt, which
spam address harvesters most certainly don't.

We had a discussion before about the rebol.org archive, 
and Jeff removed all links to the archive.  To get the 
address, you have to use the link on the RT rebsite. So 
even a spam address harvesting robot should not get there. 
 But I guess google had it in it's database prior to that 
happening.


 I think that all dynamically created sites tend to be
 invisible to search engines.  Zope is an example.

Not exactly. Search engines have avoided URLs with query 
strings for a
long time, but how would they distinguish static from 
dynamic content?
They cannot, it's all bits to them (and us, for that 
matter ;-).

In practise they tend to be invisible.

Here's an article from Paul Graham making that point

http://www.paulgraham.com/mistakes.html

and in my Zope site, I have this in my robots.txt to make 
me invisible!

User-agent: *
Disallow: /Shopping/ # This is an infinite virtual URL 
space

--
Graham Chiu
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Cross Platform? Then what about Mac OS X?

2002-09-26 Thread Laurence Giddings


Thankyou all for your thoughts so far re Rebol on Mac OS X
it was gratifying to read such a broad and enthusiastic response.

Although it appears to me that Rebol for OS X is definitely coming from 
RT [some time],
I believe that our voices in unison can only help maintain the urgency
and our spot in what has to be a very long development list.
[If I only had the money.]

Rods comment...
   Some work was also done on View on OS X (betas I think) - enough for 
RT to
   say they had some issues, including performance, that needed to be 
addressed
   before it was an acceptable port.
was interesting, I personally would be more than happy to run a 
slow flaky /View beta
rather than the nothing available at the moment.
[Anecdotal evidence from this list suggests that Rebol Beta's are often 
better
  than some other peoples released code!]

Just a thought, but
Maybe RT could make /View beta for Mac OS X available on a personal 
request basis?
[As in registering to be come a beta tester?]

Finally:
Joel thanks for some interesting links :)
   http://www.byte.com/documents/s=7620/byt1032475416823/0923_bar.html
   
http://slashdot.org/article.pl?sid=02/09/26/0058238mode=threadtid=107
   http://www.apple.com/uk/hotnews/articles/simoncozens/
   
http://slashdot.org/article.pl?sid=02/09/22/1922205mode=threadtid=106

and *Special* thanks to Carl :)
for the one liner, that gets my rebol /Core back happening, on OS X 10.2
Add the following line to your login script:
setenv DYLD_INSERT_LIBRARIES /usr/lib/libtermcap.dylib
and, REBOL will run again. [Thanks Ron.]





-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Teaching Rebol = was:{Re: Re: Parsing comment}

2002-09-26 Thread Tim Johnson

* Carl Read [EMAIL PROTECTED] [020926 15:08]:
 On 27-Sep-02, Tim Johnson wrote:
 
 Is it just Core they use, or View too?  Eye-candy could help, as does
 having a personal reason to use the language.  In an interview I
 found by following one of Jason's links a student mentioned having
 used Python to put up a website.  Building a plain, vanilla website
 is nothing to kids these days, but building a dynamic one might be
 another matter, and Core's all you need for it.  Maybe that's where a
 REBOL class should start?  It'd give quick and visual feedback and an
 obvious use for what they're doing, compared to just outputting text
 to the console or a file or whatever.  Though you have the problem of
 having to teach HTML as well...

Carl, I did a lot of thinking about the eye candy. I decided to to
train them in 'view' but to keep the rebol command-line mode only.
Part of it is that I'm not all that interested in 'view  my partner
and I respectively designed python and perl course as a second semester
using the respective langauge tk interfaces (tkinter and tkperl).
I felt (and was supported by the teachers of record) and there was
enough eye candy around and that it was better to start them out
in a way that would get them started in focusing on the small details
that really are what makes programming work.

What I would like to do is develop a scheme where even the starting
students could render in CGI as well as the command line

I think understanding how to use the command line is more important
than visual programming. Once one knows how to best utilize the
command line, the visual stuff become easier to hack and troubleshoot.

I think a personal reason is a more honest hook. I just tell them
about my son-in-law who makes over a hundred grand a year for working
20 hours average a week. Who's treated like a god by his contractees,
who wouldn't give Eminem, Steven Seagal or Michael Jordan a second 
look. That gets their attention... ;-)

And I will reiterate - teaching online needs to overcome the lack of
direct personal contact that can reinforce initiative. That
is the largest issue in my mind.
-tim-
  
 -- 
 Carl Read
 
 -- 
 To unsubscribe from this list, please send an email to
 [EMAIL PROTECTED] with unsubscribe in the 
 subject, without the quotes.

-- 
Tim Johnson [EMAIL PROTECTED]
  http://www.alaska-internet-solutions.com
  http://www.johnsons-web.com
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Parsing comment

2002-09-26 Thread reffy

You guys are titillatingly fun ...

 Hi, Gregg, et al,
 
 Yet another variation, just for fun, and a profound philosophical
 comment...  ;-)
 
 Gregg Irwin wrote:
  
  Hi Dick,
  
  Hopefully I won't just add more confusion here...
  
   10 + 10
  means something to the Rebol interpretation process, but
  10+10  does not have the same meaning...
  
  If we take the numbers out of the equation :) to avoid
  syntactical issues, you can do this (because + is a valid
  character in words):
  
   a: 1
  == 1
   b: 2
  == 2
   a + b
  == 3
   a+b: 4
  == 4
   a+b
  == 4
  
  So, a+b is not the same as a + b. Now, you could also
  change the operation of +, like this:
  
   set '+ :*
   1 + 3
  == 3
  
  But, AFAIK, you can't alter the operands that an operator
  operates upon. :)
  
 
 Depends on your definition of alter...
 
  a: func [:op 'val] [set val do [op get val get val]]
  b: 3
 == 3
  a + b
 == 6
  b
 == 6
 
 
 A long time ago I heard someone say FORTH is not a programming
 language; it is a programming language construction kit!
 Despite differences in notation and internal representation, the
 REBOL facility for dailecting, and the absence of distinction
 between data and code make me think that the same statement
 could be made of REBOL.
 
 Of course, I remember the saying,
 
 I've only met one self-made man, and he should have sued
 the manufacturer for malpractice!
 
 ;-)
 
 -jn-
 -- 
 To unsubscribe from this list, please send an email to
 [EMAIL PROTECTED] with unsubscribe in the 
 subject, without the quotes.

** - End Original Message --- **

 


Download NeoPlanet at http://www.neoplanet.com

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] XSLT and folding code viewer

2002-09-26 Thread Jason Cunliffe

A nice developing example of using XSLT to generate 'folding' code docuemntation
on-line is at:
http://www.jserv.com/jk_orr/xml/driveinfoleo.htm

The styling is raw still. But I think this is still an impressive example of how
a functional language processor can take a complex trees structure and render it
to XML/HTML

In this case its XSLT converting a Leo file.
Could be REBOL converting a REBOL tree also..

Jo Orr, who developed the above, made some interesting comments today about XSLT
as a functional language. Naturally it also reinforces the role Rebol can play
in this type of work.

quote http://sourceforge.net/forum/message.php?msg_id=1694277
You can see from some of these samples included with Screenbook Maker BTW, that
using XSLT to transform XML is far simpler and more elegant than any
non-functional language solution. Another useful functional language is SQL. Not
many would argue that SQL should be replaced with e.g. Python. So I wouldn't
write XSLT off as a fad even if you are a Python wizard.

The XSLT file I uploaded is unfortunately not an example of elegance, in fact I
hardly understand it myself. But it *is* a lot shorter than it would be in a
non-functional language.

If we can get a nice package of XSLT stylesheets written, Leo could become a
tool for creating outline format websites.
/quote

He has a page of developing Leo/XSLT experiments:
http://www.jserv.com/jk_orr/xml/leo.htm

./Jason

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Search Issues

2002-09-26 Thread Jason Cunliffe

 Not exactly. Search engines have avoided URLs with query strings for a
 long time, but how would they distinguish static from dynamic content?
 They cannot, it's all bits to them (and us, for that matter ;-).

Do you have any suggestions how to make Vanilla google-searchable?

./Jason

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Platform? Windows

2002-09-26 Thread Jason Cunliffe

Pascal

Je n'ai pas LOGIN:HS, mais REBOL est toujours disponible librement:

http://rebol.com/download.html

REBOL/View REBOL/Core plus Graphical User Interface.
Version 1.2 Feature summary.
Downloads and installs in seconds.
Free for noncommercial use.

REBOL/Core
The foundation of REBOL.
Console only, no graphics.
Version 2.5

vas y!

./Jason

 Je viens d'acheter le magazine Hors-série avec la version de Rebol car a
 première vu il y avait une version pour Windows hors en regardant le cd, je
 ne trouve aucune version pour Windows avez vous une idée à ce propos ?

 Salutations

 Salutations,
 Pascal pour http://www.eurocomservices.net


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: bitset help

2002-09-26 Thread Gregg Irwin

Hi Romano,

 I do not understand how can be used all this new stuff from the new
betas. Can
someone make an useful example to me? I knows only how to use bitset in
parse
rule for char, but this seems something different. 

Bitsets can be very handy if you have a really large number of boolean flags
to keep track of and want to use minimal space and processing power (in
general). The idea, of course, is that each flag only takes one bit, which
means you can store boatloads of them in little memory when compared to,
say, a normal boolean/logic! value that probably uses 32 bits (or more in
the future :).

Here is something I just hacked together very quickly (really, truly, very
little testing, probably lots of problems, you have been warned, watch for
wrap, requires latest betas...I think, blah blah blah).

--Gregg

REBOL [
Title:  Bit Tools
Author: Gregg Irwin
EMail:  [EMAIL PROTECTED]
File:   %bit-tools.r
]

bit: make object! [
; Quick hack! No real thought about naming issues. May be jumping
;  through a lot of unnecessary hoops, but some things that I
;  thought should work didn't. :\
; Could/should CLEAR change bitset in place?
; Should bit indexes be treated as 0 based or 1 based?
; Note XOR naming issue in comment.
; Add TOGGLE function to flip bits?
; Some functions could easily take blocks to check the status of
;  multiple bits (e.g. SET?).

; This is a special version just for this purpose, and always rounds up.
; So, why pass in the interval parameter? Good question. :)
round-to-interval: func [value interval /local whole-val diff] [
whole-val: to integer! value / interval
diff: either 0 = remainder value interval [0][1]
whole-val + diff * interval
]

bitset-from-bits: func [
bits [integer! block!]   Bit indices.
/local result
][
bits: compose [(bits)]
result: make bitset! round-to-interval max 1 first maximum-of bits 8
foreach bit bits [insert result bit]
]

and: func [set1 [bitset!] set2 [bitset!]] [
intersect set1 set2
]

or: func [set1 [bitset!] set2 [bitset!]] [
union set1 set2
]

; Just using to binary! on bitsets doesn't work. You get junk
; at the end if the bitset is short than 256 bits.
; This is called BXOR because calling it XOR and then referencing
; the standard XOR function as SYSTEM/WORDS/XOR fails. Must be
; missing something obvious, but I'm not seeing it. Need more coffee.
; There has *got* to be a better way than this!
bxor: func [set1 [bitset!] set2 [bitset!] /local b1 b2] [
(head system/words/clear at to binary! set1 add 1 divide length?
set1 8)
xor
(head system/words/clear at to binary! set2 add 1 divide length?
set2 8)
]

not: func [bitset [bitset!]] [
complement bitset
]

get: func [
bitset [bitset!]
index  [integer!] Which bit (0 to (length? value) - 1)
][
either empty? and bitset bitset-from-bits index [0][1]
]

set: func [
bitset [bitset!]
index  [integer!] Which bit (0 to (length? value) - 1)
][
insert bitset index
]

set?: func [
bitset [bitset!]
index  [integer!] Which bit (0 to (length? value) - 1)
][
either empty? and bitset bitset-from-bits index [false][true]
]

clear: func [
bitset [bitset!]
index  [integer!] Which bit (0 to (length? value) - 1)
][
and bitset complement bitset-from-bits index
]

]

; Paste this into the console to see the results in the conext of calls.
print items: make bitset! 40
print bit/set  items 0
print bit/set  items 39
print bit/set? items 0
print bit/set? items 1
print bit/set? items 38
print bit/set? items 39
print bit/get  items 0
print bit/get  items 1
print bit/get  items 38
print bit/get  items 39
print items2:  complement items
print bit/and  items items2
print bit/or   items items2
print bit/bxor items items2
print items: bit/clear items 0
print items: bit/clear items 39

halt

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Make Image of a Layout

2002-09-26 Thread Jason Cunliffe

Anton wrote:
 img: to-image layout [origin 0 title Big Train]

 save/png %image.png img

 view layout [image img]

 It would be nice if to-image could accept a pane block
 but it appears that it cannot at this time.

How do you get the coordinates, width, height of a pane?

If so, should be simple to write a nice save-pane function which captures then
crops the layout's image correctly to the pane's.

./Jason


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Library smart docs = was:{Re: Re: Parsing comment}

2002-09-26 Thread Jason Cunliffe

Hi Graham

 VidWiki uses some of the easy vid code. The vidwiki client
 views dynamically (CGI) generated layouts, and the layouts
 can contain instructions to view layouts within the
 layouts.  I did manage to convert several of the RT Howtos
 to this format with some modifications.  But there is a
 limitation as to what you can do, and it doesn't scale
 well for larger pages.  However, I guess some people have
 found it useful.  At last count there have been over 8300
 accesses to the script :)

Thanks! I had looked some time ago, but forgot about it.

What does not scale?

btw, google does not find it, but finds your post which includes a rebsite url
http://www.rebol.org/userlist/archive/504/648.html

Whatever/whomever/however, the new improved Rebol Library Project [RLP] needs an
effective strategy to make rebsites visible to google.
Just a script which automatically parses a rebsite and generates a
google-friendly html with meta tags would do it. Perhaps that's an easy add-on
to %WidWiki.r

Is /IOS also always invisible to google, or is there an option to enable
google-vision?

Have you tried Vanilla?
Could be nice to connect VidWiki to Vanilla,
adding 'browse', 'view', 'publish', 'set' and 'get' functions to both.

./Jason

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Command SSL

2002-09-26 Thread Anton

On the rebol site it says Command has:

Secure Socket Layer (SSL) 
Client-side Secure Socket Layer (SSL) and
Transport Layer Security (TLS) with HTTPS protocol.
Includes: SSLv2, SSLv3 and TLSv1with DES, 3DES and
ARCFOUR in all strengths.
RSA keys and DSA/DH keys are supported. 

Can someone knowledgeable about SSL and secure sites
tell me if this covers most of the methods for securing
sites in common use today?

I'm not asking for a guarantee, just is it likely to
cover most situations?
Are there any big algorithms or ciphers that are missing
from the above list?
I am fairly new to SSL and I could miss some things like
this.

Anton.
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Simple sorting

2002-09-26 Thread Gregg Irwin

This is a resend. The original didn't seem to make it to the list.

Hi Sean,

 How do I get the code, listing: sort read %., to sort alphabetically by
directories first then by filenames? So, the result looks like this:
[%dir1/ %dir2/ %dir3/ %file1 %file2 %file3] 

I don't know that there's a single switch to do something like that. Maybe
someone else knows a nifty trick I don't. In any case, I whipped this up
real quick to show how you *could* do it. It uses a function I have to split
blocks into sub-blocks based on predicates.

dir-file-sort: func [
{Returns the block of files with directories first, followed by
files, with each group sorted.}
block [any-block!]
/local result
][
result: copy []
foreach blk split block [:dir?] none [
append result sort blk
]
]

split: func [
{Applies each predicate to each element in blk and returns
a block of blocks with items partitioned by which predicate
they match. If an item doesn't match any predicate, it will
be in the last block. Only handles simple args right now.}
series [series!]
predicates [block!]
args
/local match result p
][
result: copy []
loop add length? predicates 1 [append/only result copy []]
repeat el series [
match: false
repeat i length? predicates [
; Have to use a temp var for the predicate here, in addition
to
; the result of the predicate call.
p: get predicates/:i
match: p :el either block? args [args/:i][args]
if match [
append result/:i :el
break
]
]
if not match [
append last result :el
]
]
result
]
;split [1 2 3.4 5.6 7 8.9] [integer? decimal?] none
;split [1 2 3.4 5.6 7 8.9 0 100] [lesser? greater?] [3 7]
;split [1 2 3.4 5.6 7 8.9 0 100] [lesser? greater?] 3

I only tested this briefly but it should give you a starting point if
nothing else.

BIG CAVEAT: DIR? needs full path info if you're working on a list of files
that aren't in the current directory.

HTH!

--Gregg


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Newbie: Help with image buttons (View)

2002-09-26 Thread Matthew Kim

Thanks for the great advice Carl!

Now... On to my next problem...  This is my first attemp using View and
I'm pretty sure I'm not getting this done the best way possible.
However...

I seem to have pinpointed the problem to a 'foreach' loop.

I have a function called:

cellphone: layout [
...
output: check 1 test
...
]

Within this function, it calls another function:

check: layout [number word][
...
foreach ...
...
]

I seem to get the following error.  It seems to be internal with the
system, because I have no code resembling this in my program:

** Script Error: Invalid path value: view
** Where: evt-func
** Near: if all [
system/view/focal-face
event/type = 'down
not within? event/offset win-offset? system/view/focal-face
system/view/focal-face/size
system/view/focal-face/dirty?
] [
fac: system/view/focal-face
unfocus
do-face fac none
fac/dirty?: none
]
event


Matt

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Newbie: Help with image buttons (View)

2002-09-26 Thread Anton

Show us all your code, we will disect and examine.

Anton.

 Now... On to my next problem...  This is my first attemp using View and
 I'm pretty sure I'm not getting this done the best way possible.
 However...
 
 I seem to have pinpointed the problem to a 'foreach' loop.

 Matt

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.




[REBOL] Re: Simple sorting

2002-09-26 Thread Anton

You could also do it like this,
which does not use dir? and does not
use any extra functions:

dir: %./ ; current directory
result: copy []
dirs: copy []
files: copy []
foreach file read dir [
append either #/ = last file [dirs][files] file
]
result: compose [(sort dirs) (sort files)]

I have found it handy to have the files and dirs
in separate blocks for other processing, so that
may make this way preferable.

Anton.

  How do I get the code, listing: sort read %., to sort alphabetically by
 directories first then by filenames? So, the result looks like this:
 [%dir1/ %dir2/ %dir3/ %file1 %file2 %file3] 

 I don't know that there's a single switch to do something like that. Maybe
 someone else knows a nifty trick I don't. In any case, I whipped this up
 real quick to show how you *could* do it. It uses a function I
 have to split
 blocks into sub-blocks based on predicates.

 dir-file-sort: func [
 {Returns the block of files with directories first, followed by
 files, with each group sorted.}
 block [any-block!]
 /local result
 ][
 result: copy []
 foreach blk split block [:dir?] none [
 append result sort blk
 ]
 ]

 split: func [
 {Applies each predicate to each element in blk and returns
 a block of blocks with items partitioned by which predicate
 they match. If an item doesn't match any predicate, it will
 be in the last block. Only handles simple args right now.}
 series [series!]
 predicates [block!]
 args
 /local match result p
 ][
 result: copy []
 loop add length? predicates 1 [append/only result copy []]
 repeat el series [
 match: false
 repeat i length? predicates [
 ; Have to use a temp var for the predicate here,
 in addition
 to
 ; the result of the predicate call.
 p: get predicates/:i
 match: p :el either block? args [args/:i][args]
 if match [
 append result/:i :el
 break
 ]
 ]
 if not match [
 append last result :el
 ]
 ]
 result
 ]
 ;split [1 2 3.4 5.6 7 8.9] [integer? decimal?] none
 ;split [1 2 3.4 5.6 7 8.9 0 100] [lesser? greater?] [3 7]
 ;split [1 2 3.4 5.6 7 8.9 0 100] [lesser? greater?] 3

 I only tested this briefly but it should give you a starting point if
 nothing else.

 BIG CAVEAT: DIR? needs full path info if you're working on a list of files
 that aren't in the current directory.

 HTH!

 --Gregg

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with unsubscribe in the 
subject, without the quotes.