>- Open Your Mind -<
Quoting from Mark Dickson's message (19-Jul-00 15:41:44).
e> ROUNDING FUNCTION
e>
e> regarding Ralph's comments I agree
e> it would be nice to see a rounding
e> function native to rebol and also
e> a /refinement to specify to number
e> of decimal places you would like
e>
howdy list,
I'm having a bit too much of a hard time with this.
Ye olde standard example,
friends: [
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
...
]
I want to add to so that it's
friends: [
"1" "[EMAIL PROTECT
>i have an example of a rebol processing script at a temp server i use:
>http://131.211.29.218/cgi-bin/outlines.cgi
That's pretty cool!
Would it be possible for me to get a copy of your REBOL script?
Curt
Hi Elan,
You wrote:
"During recursive calls, REBOL is using a dynamic binding for 'x,
which means that each instance of recfunc, called from within
recfunc recursively, has its own context in which 'x is bound to
the value that was passed to the recfunc instance."
I would like to divide the para
Hi, just wondering what happened to associative arrays. I understand that
REBOL's blocks and hashes are powerful, but there's still no easy way as far
as I know to just say (like you can in Perl, for instance) $blah{'value'} =
"supercalifragilisticexpialidocious", and get the value by just saying
Hi,
The classic MacOS has a 33 character length restriction on filenames, IIRC.
Anton.
At 23:55 3/07/00 +1000, you wrote:
>And finally
> >> print replace %anz-visa-statement--.r "--" { [30-May-2000 27-Jun-2000]}
>anz-visa-statement [30-May-2000 27-Jun-2000].r
>Success.
>
>Last question: Are su
Hi all!
[EMAIL PROTECTED] wrote:
>Hello [EMAIL PROTECTED],
>
>On 19-Jul-00, [EMAIL PROTECTED] wrote:
>
> > [EMAIL PROTECTED] wrote:
> >
> >> In REBOL you don't only have two scopes (contexts) - you have a tree
> of contexts, each one with a parent context, the top level context being
> what you
Hi Keith!
[EMAIL PROTECTED] wrote:
>I've been wondering what the reasoning behind REBOL's scoping
>rules was for awhile. In C, for instance, any variable that
>you declare in a function is "automatic" (that's what C calls
>them anyway :). They're automatically local to the function
>they're defi
Brett,
Thanks for the insight; I think it is especially helpful
to note:
> One has you thinking like "I have this little box with a value in it.
Now I must
> remember the various allowable ways to get my value in and out of the
box".
> The other way leads to thinking like "I will refer to this t
just to remind you:
security issues... don't ask me,
I (like most people) want as little time as possible to spend with
configuring Apache,
leaving more time for the serious and fun stuff
HJ
Hi HJ,
Thanks for the help. It works great!! And I thought that would be hard :)
MIchael
>michael:
>
>it took me 3 minutes (have not checked any security holes, wouldn't know
>hot to do so..<-- saves time)
>
>Have no idea if it is normal, but:
>place files with .cgi extension and
>
>#!d:/r
Hi Ladislav, Brett,
Ladislav wrote:
>> blk: copy []
>> probeblk: func [] [
>> prin mold blk
>> prin ": "
>> print mold reduce blk
>> ]
>> recfun: func [x] [
>> append blk 'x
>> either x <= 1 [
>> probeblk
>> ] [
>> recfun x - 1
>> ]
>> ]
>> recfun 3
>>
Judging by previous message on the list, this question will bring a variety
of responses!
Re "global variables".
Coming from a compiled-language background, it was hard for me to learn
about the immediate nature of the message I send to Rebol. More important, I
had to get out of my old ideas of t
michael:
it took me 3 minutes (have not checked any security holes, wouldn't know
hot to do so..<-- saves time)
Have no idea if it is normal, but:
place files with .cgi extension and
#!d:/rebol/rebol.exe -cs -c
rebol []
print "Content-Type: text/html^/"
print . html stuff
do rebol st
I know that there is a list of reb-friendly domain
hosters at the reb site, but I need to know some more
criteria.
1)Will they also allow executable cgi programs compiled
for Linux?
2)Will they host a secure domain.
3)Do they have references?
Thanks
-Tim
Can anyone tell me how to configure Apache to use Rebol as my CGI
executable?
Michael
Hello, Carl:
On 19-Jul-00, [EMAIL PROTECTED] wrote:
> In addition, I'd like to find a webcam with pan, tilt, zoom controls and
> build a REBOL/View control panel for remote access. That would let you, the
> viewer, move it around and watch what's happening... all with a little 2K
> REBOL script
Yes, that's what I meant. Sorry for the absconse example.
> More likely you meant this...
> I've seen
> farm: [
>"bob""cecil"
>"bill" "chris"
>"barry" "curtis"
> ]
> foreach [pig chicken] farm [print reduce [pig chicken]]
> - Original Message -
> From: <[EMAIL PRO
Anyone happen to notice that little Selma REBOL (the script that runs this mailing
list) has passed the 25 incoming messages mark? I think she deserves a party...
Good job, Selma! You're The Babe.
-Carl
"And usenet won't give us comp.lang.rebol because there's not enough traffic... bull.
I like the idea of the dynamic camera. Steve Wozniak has just such a
camera in his home office.
http://wozcam.woz.org/
> In addition, I'd like to find a webcam with pan, tilt, zoom controls and
> build a REBOL/View control panel for remote access. That would let you,
> the viewer, move it aro
>
> We blew the power supply on the computer and a new one is on
> order. Now we know the kind of current USB webcams can tap into,
> eh? We obviously forgot about the KW laser feature of this webcam. :)
Ah! NOW I understand why the recent Star Wars antiballistic missle test
failed... Well, at
Jake, you got it. You said it.
Here's the way I summarize it:
It all comes down to communications. The object-oriented approaches (CORBA, etc.) are
trying to do it with their arms tied behind their backs.
Good communications requires language, not just static language, but living, mutating
We blew the power supply on the computer and a new one is on order. Now we know the
kind of current USB webcams can tap into, eh? We obviously forgot about the KW laser
feature of this webcam. :)
I like your idea... I'll add a description of what you are viewing to the HTML page
for the cam.
Ah, yes I was a bit quick there..
I should know to avoid that trap by now.
Thanks for correcting me!
Cheers,
Gisle
On Tue, 18 Jul 2000 [EMAIL PROTECTED] wrote:
> Hi Gisle
>
> Nice solution. I would like to add a small clarification. When you use
> insert/dup it places 5 references to the
Keith,
That's a great question! We should put it in our FAQ (ping: Bo). There are two answers:
1) Because it's easier for beginners:
During design I considered scoping both ways, top down (non-local default) and bottom
up (local default). Problem is, defaulting non-local is much easier for be
On Tue, 18 Jul 2000, you wrote:
>
> This looks pretty ugly to me. While it's nice to know that there's a
> workaround, IMHO REBOL should be taking care of this automatically when
> requesting URL's with special characters. Would someone like to file
> this as a bug report?
REBOL should not esc
Hello [EMAIL PROTECTED],
On 19-Jul-00, [EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED] wrote:
>
>> In REBOL you don't only have two scopes (contexts) - you have a tree of contexts,
>each one with a parent context, the top level context being what you could call
>global variables.
>
> This is pr
ROUNDING FUNCTION
regarding Ralph's comments I agree
it would be nice to see a rounding
function native to rebol and also
a /refinement to specify to number
of decimal places you would like
a number rounded to.
sounds like an appropriate suggestion
for FEEDBACK Ralph ?
cheers,
Mark Dickson
I would have expected [3 2 1]
not [1 1 1] nor [3 3 3].
But I find it difficult to answer what I want, because the function argument
x seems like it's in a bit of a no-mans land (I'm thinking of :x )
My brain hurts now. :)
Brett.
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL
yes... rounding.r is nice... anyway, my routine works well enough for the
purpose I required... but it would be nice to see a rounding function
included in REBOL.
--Ralph
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 19, 2000 2:44 AM
>
More likely you meant this...
I've seen
farm: [
"bob""cecil"
"bill" "chris"
"barry" "curtis"
]
foreach [pig chicken] farm [print reduce [pig chicken]]
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 19, 2000 10:45 PM
Subject
yes i did mention it to him,
he even mentioned it in his daily writings at www.scripting.com
his outliner XML idea is rather powerfull :-)
although i have found it not easy (at first) to parse and manipulate
it with rebol
HJ
[EMAIL PROTECTED] wrote:
> In REBOL you don't only have two scopes (contexts) - you have a tree of contexts,
>each one with a parent context, the top level context being what you could call
>global variables.
This is probably not true; each context is independent from the
others.
> As you can
The nice thing about foreach is that you can also parse your block
into more than than one word (variable):
farm: [[pigs] [chickens]]
foreach [pig chicken] farm [print [pig chicken]]
> Boss is going to please with you aint 'e?
> "page" is being defined by the foreach.
> So for each element i
Hi,
> > I've been wondering what the reasoning behind REBOL's scoping
rules was for
> > awhile. In C, for instance, any variable that you declare in a
function is
> > "automatic" (that's what C calls them anyway :). They're
automatically local
> > to the function they're defined in, etc.
(...)
>
Rebol WebCam View
I was wondering if it would be possible
for the Webcam be moved to show a view
of Rebol Technologies premises, I'm sure
lots of people on the lists would like
to see where the Rebol "MAGIC" is performed.
Also the webcam doesn't seem to update
very regularly, is there a problem
[EMAIL PROTECTED] wrote:
> Why does REBOL have variables be globally scoped by default? I ran into this
Because REBOL does not have something like a "scope". Notice that
there are no variables at all, only values.
Some of these values, called "words", have the ability to refer to
other values.
Hello [EMAIL PROTECTED],
Well, scope in REBOL is a quite different beast than in most other languages.
In REBOL you don't only have two scopes (contexts) - you have a tree of contexts, each
one with a parent context, the top level context being what you could call global
variables.
REBOL does
Hi,
> Hi Ladislav, 15-Jul-2000 you wrote:
>
> >you are right, the problem is caused by a context
manipulation -
> >Use unsets your Middle every time it gets executed. My
suggestion
> >is to not use Use in recursive functions, while this problem
> >doesn't get corrected.
>
> Judging from the natur
Hi,
see also www.rebol.org/math/rounding.r
> I needed a simple two decimal place round off function for a
script this
> evening.
>
> This is what I came up with:
>
> roundoff: func ["Rounds off to 2 decimal places" a][
> a: a * 100
> b: a - to-integer a
> a: to-integer a
>
40 matches
Mail list logo