Joel Neely wrote:
> Good questions, to which I'll add another:
>
> If you were born on 29 Feb 2000, when did your next
> birthday occur?
>
> Given the irregularities in the current calendar scheme, I guess I'd have
to wonder about the purpose of the calculation before forming opinions re
d
Here's a variant.
Suppose I only want characters 2 through 5? Or 3 until the end? Or I want
to remove those selections? Personally, I have a hard time working with
series! with next and skip and tail and so forth. A pointer to a list element
which I cannot see irritates me.
- Origin
Hello Andrew,
Wednesday, July 3, 2002, 6:12:31 AM, you wrote:
AM> Hi, everybody!
AM> I've been working on a forms dialect for Rebol, that automatically generates
AM> HTML code from a basic description of the form. At the moment, I've got the
hmm... I was thinkeng about form dialect two days ago
At 15:49 3.7.2002 -0400, you wrote:
>What line of code in REBOL will crop text? (Without loops)
>
>For example, I want the first 3 characters in the string "asdfghjkl".
>
>Result should be: "asd".
>> A: "this is a string"
>> B: copy/part a 3
>> print B
thi
Ok?
>Thanks!
>Matt
>
>--
>To unsu
Hi Matt,
do you mean something like:
copy/part "asdfghjkl" 3 ; == "asd"
-L
- Original Message -
From: "Matthew Kim" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 03, 2002 9:49 PM
Subject: [REBOL] Newbie Q: Cropping text
What line of code in REBOL will crop te
At 13:20 3.7.2002 -0400, you wrote:
>Hi Everyone,
>
>I'm just getting started with Rebol.
>
>But it seems exciting so far.
I'm new too.. It's amazing allthough on many parts IMHO a bit mindboggling.
Especially those examples found on Rebol site.. I really don't get how many
of them work.
>I
Hi Matt,
> For example, I want the first 3 characters in the string "asdfghjkl".
>
> Result should be: "asd".
If you want to 'crop' a string! or any kind of series!, use copy --
>> copy/part "asdfghjkl" 3
== "asd"
- Chris
--
To unsubscribe from this list, please send an email to
[EMAIL PROT
Hi, Ladislav,
Ladislav Mecir wrote:
>
> >> age 29/2/2004 28/2/2005
> == [0 11 28]
> >> datedelta 29/2/2004 28/2/2005
> == [0 11 30]
>
> >> age 29/2/2004 1/3/2005
> == [1 0 1]
> >> datedelta 29/2/2004 1/3/2005
> == [1 0 0]
>
Good questions, to which I'll add another:
If you were born on 2
Hi Gary,
<>
...
I have the following code fragment.
All I get at the end is false.
After reading the manual examples it seems as if I should
at get 1, 2 and 3 printed. I'm not even getting 1!
I'm obviously missing something.
==
UserInput: "hello there!"
punctuation: chars
Hi,
How odd... I thought that I tried that. Anyhow, it should be working like
a charm now... ;-) Thanks for being patient with me!
Enjoy!!
Ammon
A short time ago, Maarten Koopmans, sent an email stating:
> Now try this on the server:
>
> configure-rugby [ set ip address for stubs
Hi,
Using Rugby you can create function that return parameterized or composed
code.
It is simple:
coder: func [][ return [ func [in][probe in]]]
on the client side you just do:
get-rugby-service
my-func: do coder
my-func 10
>>10
You just return a block of code on the server that you 'do on
Hi Ken,
<>
Simple question (hopefully). I'm reading from a very large quoted-comma
delimited text file and writing to a quoted-comma delimited text file.
I want to skip over the forty-first element and continue sending the
rest of the record to the outbound file. This would be repeated for
eve
Hi Ken,
<< Simple question (hopefully). I'm reading from a very large quoted-comma
delimited text file and writing to a quoted-comma delimited text file.
I want to skip over the forty-first element and continue sending the
rest of the record to the outbound file. This would be repeated for
ever
Hi Gary,
Try this:
UserInput: "hello there!"
punctuation: charset ",./\!"
parse UserInput [
["hello" | "hi" | "howdy"] (print 1)
["there" | punctuation] (print 2)
[punctuation (print 3) | to end]
]
There are many subtleties to PARSE, many of which you only learn about by
trying things.
Hi Gary, (or is it Miller?)
<< 1. Is the an archive that can be downloaded of this mailing list. >>
http://www.escribe.com/internet/rebol/index.html
<< 2. Are there any Rebol chatbots examples out there
available for download. A chat bot is a program designed
to responded to English inputs w
What line of code in REBOL will crop text? (Without loops)
For example, I want the first 3 characters in the string "asdfghjkl".
Result should be: "asd".
Thanks!
Matt
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the qu
I have the following code fragment.
All I get at the end is false.
After reading the manual examples it seems as if I should
at get 1, 2 and 3 printed. I'm not even getting 1!
I'm obviously missing something.
==
UserInput: "hello there!"
punctuation: charset [#"," #"." #"/"
Hi Olivier,
On Wednesday, July 03, 2002, 5:35:55 PM, you wrote:
OF> fall down, the client can no more "execute the foo function. Does it
OF> exist a trick to really import the function to the client side ? In
OF> that case I would have just to get the function from the server and,
OF> when the
Hi Everyone,
I'm just getting started with Rebol.
But it seems exciting so far.
I have a chatbot written in VB.Net that I am considering
porting to Rebol.
Just a few questions:
1. Is the an archive that can be downloaded of this mailing
list.
2. Are there any Rebol chatbots examples out t
Greetings,
Simple question (hopefully). I'm reading from a very large quoted-comma
delimited text file and writing to a quoted-comma delimited text file.
I want to skip over the forty-first element and continue sending the
rest of the record to the outbound file. This would be repeated for
ev
Hi Richard,
> I would like to dynamically access info about graphics on a web page. So I
> surf to a web page and parse on { surf to ...
> [1] http://www.xyz.com/
> which is redirected to ...
> [2] http://www.xyz.com/abc/index.php
>
...
> Is there a way to get the "address" of a webpage even thou
I would like to dynamically access info about graphics on a web page. So I
surf to a web page and parse on {http://www.xyz.com/
which is redirected to ...
[2] http://www.xyz.com/abc/index.php
I can use "split-path" to extract the path from this URL ... IF I knew what
this redirected (second
Hello
I ask myself a question about importing a rebol function with rugby : I
have a server providing a function foo if on the client I do a
get-rugby-service I can use the function foo as it was on the client
but, as I've seen, it always executes on the server. So if the server
fall down, th
Hi,
>> age 29/2/2004 28/2/2005
== [0 11 28]
>> datedelta 29/2/2004 28/2/2005
== [0 11 30]
>> age 29/2/2004 1/3/2005
== [1 0 1]
>> datedelta 29/2/2004 1/3/2005
== [1 0 0]
Which results are correct?
-L
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscrib
This is easily done with Rugby:
Make a function that returns any object.
Serve it.
Import the function on the client side.
Call it on the client side.
You got your object.
--Maarten
Olivier Flauzac wrote:
> Hi,
>
> I'm trying to send entire objects, and not only function of objects over
> a
Hey -
why not use the follow approximation:
birthdate: day-month-year
today: now/date
daysold: today - birthdate
yearsold: to-integer daysold / 365.2425
Since to-integer always rounds down, you end up with an a relatively
accurate age. REBOL seems to be pretty good about date arithmetic
(acc
Hi, Andrew,
Andrew Martin wrote:
>
> Using Rebol (of course!), how would I convert a date of birth to
> an age in years, months and days?
>
First a couple of observations:
- Date arithmetic is non-trivial; tricks with 365.25 (or 365.2425,
to be more precise ;-) days are fragile in the pre
Hi,
I'm trying to send entire objects, and not only function of objects
over a network. My goal is to design an object server, waiting for tcp
connections, able to send an object containing datas and function to
work on that object on other nodes of a network. Actually, when I try
to do this,
Hi Ammon,
On Tuesday, July 02, 2002, 2:25:17 PM, you wrote:
AJ> What? Come again? How does [now/date - 1-Jan-1980] come up with 8218?
That's the number of days.
You could divide that by 365 to get your answer; well, you could
also do something like:
>> to-date reduce [1900 1 now/date - 1-
<>
Is there a mail protocol that allows for synchronus operation?
One thought I had for an asynchronus approach to my problem would be,
for the REBOL script to first pull 5 emails from the inbox. From there,
concurrently process the 5 emails.
Is there a guide for Rugby, I think it's a little
On 03-Jul-02, Brett Handley wrote:
> Hi Carl,
> As Anton has shown, it finds a face that has the specified shortcut
> key defined on it. It is called by another part of VID to implement
> shortcut keys for VID layouts. Based on the logic of this function I
> wrote a few face search functions tha
Hi, Oldes,
RebOldes wrote:
>
> Hello rebol-list,
>
> does anybody has/know some script for detecting type of operating
> system rebol is running in?
>
I think the following information will help you. It was snarfed
from the REBOL script embedded in
http://www.rebol.com/releases.html
I've sent up a pile of Rebol/Values to:
http://www.reboltech.com/library/library.html
It includes the latest version of my Wiki.
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
-><-
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subje
Hi Andrew,
There is a possibility to write the function as follows:
age: function [birth [date!] date [date!]] [years months days new] [
if date < birth [
return head insert age date birth '-
]
days: date/day - birth/day
if negative? days [
months: birth/month +
Now try this on the server:
configure-rugby [ set ip address for stubs to 172.30.8.2002 ]
serve [ functions here]
If you can:
do get-rugby-service ...
the stubs will have the correct ip-address internally.
This is needed when a machine has multiple netwrok interfaces (for
example in a demili
Hi Oldes,
system/version can tell you.
It looks like the platform is encoded into the
version tuple at positions four and (usually) five.
MS Windows is 3.1
If you go to
http://www.rebol.com/view-platforms.html
you can see:
Microsoft Windows (All) iX86 1.2.1.3.1 view-pro031.zip
So a te
Reichart wrote:
> Please send you feedback about the product to [EMAIL PROTECTED]
Sent some!
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.
Hi Ammon,
in my opinion we should distinguish two different situations. The first one
is, whether a given word exists in a given context. Example:
in system/words first to block! "xxx" ; == none
This tells us, that the word 'xxx doesn't exist in the Global context.
Another example:
o:
Hi,
switch system/version/4 [
1 [print "I'm on AmigaOS"]
2 [print "I'm on MacOS"]
3 [print "I'm on Windows"]
4 [print "I'm on Linux Libc6"]
...
]
See http://www.rebol.com/platforms.html for a complete list.
HTH,
-DocKimbel.
Gregg Irwin wrote:
>
> Hi Oldes,
>
> << does a
Oldes wrote:
> does anybody has/know some script for detecting type of operating system
rebol is running in?
>> rebol/version
== 2.5.0.3.1
http://www.rebol.com/platforms.html
So, I must be running Windows 95/98/NT (or perhaps XP).
The last two numbers as Operation System Major and Minor Vers
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Ammon Johnson
> Sent: Tuesday, July 02, 2002 12:37 PM
> To: [EMAIL PROTECTED]
> Subject: [REBOL] Re: make-doc-pro viewer
> Volker has something that is a good start, it is available on
> the de
Hi, everybody!
I've been working on a forms dialect for Rebol, that automatically generates
HTML code from a basic description of the form. At the moment, I've got the
forms generation part working, and I've still got the checking and
post/get -ing to work. Here's what I've got so far. (Watch out
Hi Oldes,
<< does anybody has/know some script for detecting type of operating
system rebol is running in? >>
There are win? and unix? system words, but I don't know what context they
live in to make use of them.
--Gregg
--
To unsubscribe from this list, please send an email to
[EMAIL PROT
>12 responses from 7:09am to 9:10am. Wowzers.
Slow list, otherwise there would be less responses. :)
Andrew Martin
Coording the Rebolution with pigeons! :)
ICQ: 26227169 http://valley.150m.com/
-><-
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubsc
oldes wrote:
> hmm... TAR... will have to look at that...
> 3years... the best time to start.
It would be nice to have a Rebol/TAR, that can also handle .gz files as
well.
Andrew Martin
ICQ: 26227169 http://valley.150m.com/
-><-
--
To unsubscribe from this list, please send an email to
[EMA
45 matches
Mail list logo