Hi,
one possible solution:
; using higher order functions
do http://www.sweb.cz/LMecir/highfun.r
repeated-n?: function [
{find out, if a given value is repeated n times in the series}
series [series!]
n [integer!]
value [any-type!]
] [found] [
found: series
repeat i n [
daPenguin wrote:
> but I want to do the opposite, a function that returns
> vallues repeated a predetermined number of times,
> choosing 3x in this case ... vallue "1" would be returned
> is it possible???
>
> function expl
> [1 1 1]
Here's a starter for you:
>> expl: [1 2 1 3 1 2]
== [1 2 1 3
> I know this has probably been asked before, but are there any isps out
> there that allow rebol cgi?
>
If a popup banner window is not a problem for you:
http://free.prohosting.com
Someone on this list has written a guide how to install and use rebol (bsdi)
on their server. But can't remembe
yes... it´s actually a game i´m workin' on...
each button inserts vallues in a variable...
I want to know how to be able to return only
the repeated vallues , repeated 3 times ...not
less!!!
this is what I came up with to return different vallues
expl: [1 2 1 3 1 2]
unique expl
[1 2 3]
but I w
It's a bit confusing what you want.
Could you give an example input block with real values (or real enough),
and the corresponding output that you desire?
Is it actually going to be just numbers that you are dealing with?
Anton.
> I want to evaluate a block and want to know if any vallues are re
VIM is a great editor that has rebol highlighting in the standard package.
http://www.vim.org
Ryan Smith
Storage Operations Center
[EMAIL PROTECTED]
303-924-3766
Please respond to [EMAIL PROTECTED]
Sent by:[EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
cc:
Subject:[REBOL] [REBOL
http://www.geocities.com/plamen_p/credit/config/CREditHgl.zip
http://www.geocities.com/plamen_p/downloads/credit_1012.zip
the highlight .ini, and the programmers editor... pretty good stuff...
take a chance
by the way... why havent you guys started to work on a REditor???
highlighting, and st
Thanks to all that answered my question.
Ryan Smith
Storage Operations Center
[EMAIL PROTECTED]
303-924-3766
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
www.cniweb.net
tell Corey I sent you.
http://www.e-domainsolutions.com/
tell Tom I sent you.
Not free, but you get what you pay for :).
Hope this helps
Tim
[EMAIL PROTECTED] wrote:
> I know this has probably been asked before, but are there any isps out
> there that allow rebol cgi?
>
> It woul
Hi,
>I know this has probably been asked before, but are there any isps out
>there that allow rebol cgi?
Well, if you live in the UK, you could use Mersinet, I
got them to install rebol a while ago.
http://www.mersinet.co.uk
==
All the best,
--
Malcolm Campbell
[EMAIL PROTECTED]
FreesiteUK - h
Try www.happysite.net they are REBOL friendly and were the first to
advertise special hosting packages for REBOLs. www.rebolforces.com is hosted
there.
Cheers,
Allen K
Shakespeare for a room full of monkeys with typewriters.
http://www.rebolforces.com/cgi-bin/shakespeare.cgi
- Original
> >> print rotation-file/rotation-count
> ** Script Error: Invalid path value: rotation-count.
> ** Where: print rotation-file/rotation-count
Try:
rotation-file/:rotation-count
Note the colon ":" which means "get" the value of the following word, instead of
using the word literally.
Hello Marj,
On 30-Nov-00, you wrote:
> Thomas --
>
> Duh! -- the one thing I didn't think to check! (since it was always OK
> before, somehow)
>
> That fixed it - thanks a bunch!
np, I had exactly the same problem about a month ago on my FreeBSD box :-)
/Thomas
>
> Marj
>
--
To unsub
I know this has probably been asked before, but are there any isps out
there that allow rebol cgi?
It would be great if it was a free web host but any would be fine.
Thanks
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without
Thomas --
Duh! -- the one thing I didn't think to check! (since it was always OK
before, somehow)
That fixed it - thanks a bunch!
Marj
At 09:27 PM 11/30/00 +0100, Thomas Jensen wrote:
>Hello Marj,
>
>Are you sure the new rebol executable has correct permissions set, ie.
>executable by the u
Howdy, Marj:
On our SGI box, the following script is working as expected
using the latest experimental on apache 1.3.9.
#!/usr/local/apache/cgi-bin/rebol -cs
REBOL []
print "Content-type: text/plain^/^/"
print "Hello"
The REBOL is world readable and executable, as is the
script.
For many people the meaning of:
"The function took N arguments."
may be unclear. To be as precise as possible, here is my definition:
args-taken?: function [
{How many arguments a function took?}
f [any-function!]
args [block!]
] [test] [
test: make block! 1 + length? args
a
Hello Marj,
Are you sure the new rebol executable has correct permissions set, ie. executable by
the user the web server runs as?
/Thomas
On 30-Nov-00, you wrote:
> Guys --
>
> I just downloaded the latest experimental Rebol core for SGI (yesterday),
> and a Rebol cgi script that used to wo
Guys --
I just downloaded the latest experimental Rebol core for SGI (yesterday),
and a Rebol cgi script that used to work is now giving a 500 Server Error
message about malformed header from script.
The script works fine if I run it from the command line. All my other
scripts (which run as c
Ah- I figured it out. I had downloaded the newest version but I stuck it
in the wrong directory. 'beta-expiration-date' now works.
>From: "Anton" <[EMAIL PROTECTED]>
>
>Excellent! No expiration date for you!
>Which version of rebol are you using?
>Anton.
>
> > -Original Message-
> >
Hi Mat,
>
> Certainly, very nice workaround. How I wish the Amiga
> survived
> , it was a wonderful thing :)
I think you could do something like this in Win32 or
whatever.
Create a batch file in your cgi-bin directory, and then call
your web server to execute it.
Having said that, I also note
I have some questions about the Rebol/Command and Runtime that I'm hoping
you can answer for me:
1. Is it possible to get a copy of the Win32 Command User Guide prior to
purchasing the product. I'd like to know specifically what functions are
available before I make this investment.
2. Can t
Heya Jean,
HJ> I hope you could follow my explanations.
Certainly, very nice workaround. How I wish the Amiga survived
, it was a wonderful thing :)
--
Mat Bettinson - EuroGamer's Gaming Evangelist with a Goatee
http://www.eurogamer.net | http://www.eurogamer-network.com
--
To unsubscribe f
>
> Heya Jean,
>
> HJ> I tried to call some AmigaOS system functions from /core and had
access. But
> HJ> before I invest more time on this, I'd like to know, if there will be
an
> HJ> official solution ?
>
> You get command functions for free with the Amiga version? That's not
> very nice for
On Thu, Nov 30, 2000 at 10:40:22AM +0100, Holzammer, Jean wrote:
> Hi,
>
> a question to RT :
>
> As there is a /precise refinement for now, will we see one for wait, too ?
>
> to all:
>
> Or is there already a way to wait for a time period of less than a second in
> core ?
There is. Just sp
ok... I studied the problem and came with the following...
I want to evaluate a block and want to know if any vallues are repeated
3 times or if they are 3 different items in increasing order:
like:[111]
or: [123]
I take the example, of the numbers block [1 2 3 4 1 1] because
t
> >
> > Or is there already a way to wait for a time period of less than a
second
> in
> > core ?
> >
> Yep! You can use 100ths(?) of a second
>
> wait 0:00:00.01
>
> wait 0:00:00.30 etc
>
I tried with ":" instead of "." as separator.
Thanks !
Jean
--
To unsubscribe from this list, please
Holzammer, Jean wrote:
> I tried to call some AmigaOS system functions from /core and had access.
How?!
Chris
--
New sig in the works
Explorer2260 Designer and Coder
http://www.starforge.co.uk
--
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in
An easy question to answer - even I could do it!
>> print rotation-count
1
>> print rotation-file/1
1,2,3,4,5
>> print rotation-file/:rotation-count
Note the colon in front of rotation-count. This will evaluate the word
before using it as part of the path. Fortunately REBOL has very little
synt
Heya Jean,
HJ> I tried to call some AmigaOS system functions from /core and had access. But
HJ> before I invest more time on this, I'd like to know, if there will be an
HJ> official solution ?
You get command functions for free with the Amiga version? That's not
very nice for us that paid for th
Ryan, you want:
rotation-file/:rotation-count
See this:
>> a: [10 20 30]
== [10 20 30]
>> b: 2
== 2
>> a/b
** Script Error: Invalid path value: b.
** Where: a/b
>> a/:b
== 20
Anton.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Ryan Smith
> Se
- Original Message -
From: "Ryan Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 30, 2000 10:15 PM
Subject: [REBOL] Invalid Path Value
> Can anyone help me with what I am doing wrong at the end of this screen
> dump?
>
> Thank you.
<-SNIPPED CODE->
>
> >> pr
Hi Roy,
yah, which in python just
>>> idx=2
>>> l=[4,2,5567]
>>> l[idx]
5567
:)
"Wetherall, Roy" wrote:
> You could try something like this ...
>
> >> block: [a b c d e f g h i j]
> == [a b c d e f g h i j]
> >> index: 2
> == 2
> >> block/2
> == b
> >> value: to-path compose [block (index)]
>
- Original Message -
From: "Holzammer, Jean" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 30, 2000 7:40 PM
>
> Or is there already a way to wait for a time period of less than a second
in
> core ?
>
Yep! You can use 100ths(?) of a second
wait 0:00:00.01
wait 0
You could try something like this ...
>> block: [a b c d e f g h i j]
== [a b c d e f g h i j]
>> index: 2
== 2
>> block/2
== b
>> value: to-path compose [block (index)]
== block/2
>> print value
b
Roy
-Original Message-
From: Ryan Smith [mailto:[EMAIL PROTECTED]]
Sent: 30 November 2000
Hi Joel,
since you were so kind to provide also
this:
> ; Joel Neely [EMAIL PROTECTED] 901-263-4460 38017/HKA/9677
> REBOL [] foreach [order string] sort/skip reduce [ true "!"
> false head reverse "rekcah" none "REBOL " prin "Just " "another "
> ] 2 [prin string] print ""
> --
i'd ask
Can anyone help me with what I am doing wrong at the end of this screen
dump?
Thank you.
>> rotation-file
== ["1,2,3,4,5" "1,2,3,5,4" "1,2,4,3,5" "1,2,4,5,3" "1,2,5,3,4"
"1,2,5,4,3" "1,3,4
,2,5" "1,3,4,5,2" "1,3,5,2,4" "1,3,5,4,2" "1,3,2,...
>> rotation-count
== 1
>> type? rotation-file
== blo
Hi,
Are there any plans to port /command to more platforms ?
I tried to call some AmigaOS system functions from /core and had access. But
before I invest more time on this, I'd like to know, if there will be an
official solution ?
Jean
--
To unsubscribe from this list, please send an email to
Hi,
a question to RT :
As there is a /precise refinement for now, will we see one for wait, too ?
to all:
Or is there already a way to wait for a time period of less than a second in
core ?
Jean
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" i
Excellent! No expiration date for you!
Which version of rebol are you using?
Anton.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> B Bobbity
> Sent: Thursday, 30 November, 2000 6:38 PM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Re: View Beta
>
>
40 matches
Mail list logo