Thanks for replying Dan!
Great question(s) Sharriff. We will have some answers in the very near
future. We have an upcoming Runtime (i.e., encapsulated) version of
REBOL/Command that will be available and allow you to distribute your
applications. Keep your eye on the site or this list
Hi Gurus!
I´m not much of a programmmer, but I´m sure some guru or maybe RT itself
would find this useful:
http://odbc.linuxave.net
It´s stated somewhere that HASH! and LIST! types are better for data
retieval, by what factor and why exactly? are there any special sort or
retieve commands or functions that are not documented? I habe´nt found any
I´m using Blocks to try to implement a user list of 40-50 users.
Sharriff Aina
Hi guys!
Sorry to bother you with this newbie question:
Why does one have to "make object!" after a "decode-cgi" ? just curious...
Sharriff Aina
med.iq information quality in healthcare AG
Gutenbergstr. 42
41564 Kaarst
tel.: 02131-3669-0
fax: 02131-3669-599
www.med-iq.de
Though, as noted on an earlier message on this list, doing so means that you
will only get one value from a multi-select input.
Brett.
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 04, 2000 8:08 PM
Subject: [REBOL] CGI Re:
Sharriff Aina
[EMAIL PROTECTED] wrote:
Core to support at least 1 free DB, or create one yourselves! I
Elan's book www.reboltech.com includes a DBMS written entirely in
REBOL.
People have also mentioned connnecting to MySQL via /COMMAND and ODBC,
but that just seems like such a kludge.
Another
help copy
USAGE:
COPY value /part range /deep
considering:
"parse page [thru title copy text to /title ] "
copy is evaluted towars the RIGHT side, copies values into WORD! text
am I to take this as it is? can someone explain exactly why this
particular example works this way.
regards
I would like to start a Rebol script as a daemon under Linux at boot up.
Any ideas how to do this?
I have screwed around with it but can't make it work correctly.
When I do run it from command line works fine.
But then I try to run it in the background, it runs but you can't access it
via the
[EMAIL PROTECTED] wrote:
It appears that using a block as the second argument, when the first
argument is of any-string! type, causes the contents of the block
be treated as strings.
Yup, INSERT uses FORM to convert values that are not of the
ANY-STRING! (pseudo)type to strings. The point
The following appears to be buggy.
to-string "hi"
== "hi"
to-binary to-string "hi"
== #{6869}
to-binary "hi"
== #{6869}
...no surprise...
to-string first ["hi"]
== "hi"
to-binary to-string first ["hi"]
== #{6869}
to-binary first ["hi"]
==
[EMAIL PROTECTED] wrote:
[do-in diffs either even? num [[up/by num]] [[down/by num]]]
(using COMPOSE here you may get closer to your hypothetical
syntax...)
Being a Bear of Small Brain (and I was up late last night and
haven't had sufficient coffee yet this morning), I must ask for
an
Workaround for starting a process as a daemon on LINUX.
1. create a txt file called whatever you want it called
2. put in the file your command line commands to launch your script as
follows:
rebol -c /path/to/script/script.r
3. telnet into your server, you must be root to do this so
Short answer - It depends (doesn't it always :) )
Long answer,
If I assume there is no relationship between the 5th occurence of
"something" (A) and the 9th occurrence of "whatever" (B)
then the answer is no - you probably cannot do it in one rule. The reason
being is that you want parse to
[EMAIL PROTECTED] wrote:
To sum up thus far, it appears that handling these three cases
1) same object, same method, computed argument(s)
2) same object, computed method, same argument(s)
3) computed object, same method, same argument(s)
involves the use of three (radically!)
Parse rules are made up from a dialect specific to parse. That is, the
"code" you find in a parse rule is not executed like ordinary script, it
is
instead interpreted by the parse function. When the parse function
encounters the word "copy" in a parse rule it applies its own specific
meaning -
[EMAIL PROTECTED] wrote:
yeah, REBOLs build-in binary capabilities are a bit strange sometimes :-/
## to binary! 100
== #{313030}
Doesn't that seem like a bug?
If you're saying that, then sure it does! :)
It would be really useful to be able to convert an integer (or
even a decimal,
Hi, Sharriff...
[EMAIL PROTECTED] wrote:
help copy
USAGE:
COPY value /part range /deep
considering:
"parse page [thru title copy text to /title ] "
copy is evaluted towars the RIGHT side, copies values into WORD! text
am I to take this as it is? can someone explain exactly
(*WARNING* *HYPOTHETICAL SYNTAX FOLLOWS*)
use [diffs] [
diffs: make tally []
foreach num bunchanums [
diffs/(either even? num [up] [down])/by num
]
print ["net sum:" diffs/now?]
]
i like this hypothetical stuff, so you got it
almost as you wish
Hi Elan,
Thanks for setting me straight on where my observations were lacking.
So, apparently INSERT and friends always use TO STRING! , but
TO STRING! 's behavior itself is a little harder to understand than I'd
thought.
I take it that of the three types of conversion, MOLD preserves the
Hello [EMAIL PROTECTED],
Here's a parse rule that does the trick:
my-table-rule: [
4 [thru "table" thru "/table"]
1 [thru "table" copy my-text [thru "/table" to "/table"]]
to end
]
"to end" isn't strictly nessesary, but will make parse return true if the text was
succesfully
aha! All so simple when you realise you can put numbers in there!!! I
missed that is the new manual.
Cheers,
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 04, 2000 10:09 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: Parsing
It simply makes an easy-access object out of the data:
decode-cgi "foo=10bar=20"
== [foo: 10 bar: 20]
when you make an object out of it with:
cgi: make object! decode-cgi "foo=10bar=20"
you can access the form values like this:
cgi/foo
== 10
cgi/bar
== 20
The reason you might not make an
Hi Sharriff,
1. Thanks for the link to the SocketServer site. Interesting stuff.
2.Theoretically (I haven't actually timed it)
LIST! is faster when it comes to adding and removing elements. If you have a
lot of add/remove operations on a series than a value of type list! should be
faster.
HASH!
The new version of view 0.10.38.3.1 wont install properly on my win-98
machine, anybody else having this problem?
--Ryan
Ryan:
I had problems loading before and found out that if you already have a
'View directory, it will not load. To correct, you must delete or move your
previous view directory and then try again.
Hope this helps,
Joe
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL
Hello [EMAIL PROTECTED]
On 04-Oct-00, [EMAIL PROTECTED] wrote:
Ryan:
I had problems loading before and found out that if you already have a
'View directory, it will not load. To correct, you must delete or move
your previous view directory and then try again.
Hope this helps,
Joe
I have created a function which returns something strange when I use
rejoin.
The function is called build-html.r which builds a markup statement.
Here is the console result. Notice the closing bracket for the opening
tag is strangely moved to the end of the rejoined string:
do %build-html.r
Hi gmassar
Some of the series functions work differently for lists then other series.
From the new Core PDF doc:
"Removing the element currently referenced in a list causes the reference to
reset to
the tail of the list"
So using your example:
list: make list! [1 2 3 4]
== make list! [1 2 3
I have created a function which returns something strange when I use
rejoin.
The function is called build-html.r which builds a markup statement. Here
is the console result. Notice the closing bracket for the opening tag is
strangely moved to the end of the rejoined string:
do %build-html.r
list: make list! [1 2 3 4]
== make list! [1 2 3 4]
first list
== 1
remove list
== make list! [2 3 4]
first list
** Script Error: Out of range or past end.
** Where: first list
first head list
== 2
As Larry points out, some functions work differently for list!. I believe
it's for performance
Hi gmassar,
it's not quite as drastic as that.
After removing from the list, do
list: head list
== make list! [2 3 4]
Also try:
list: make list! [1 2 3 4]
at list 2
compare to
block: make block! [1 2 3 4]
at block 2
Another surprise:
list: make list! [1 2 3 4]
foreach element list
You've run into the interesting way that 'join works on tag!.
rejoin [font "class=" "Ryan C. Christiansen" /font]
== fontclass=Ryan C. Christiansen/font
Basically you have to convert the tags to strings to work as you'd expect,
as 'join on a tag! will put the stuff in the block inside the
Hi Ryan,
Andrew Martin already answered you, but maybe this provides a little
different perspective ...
The results look strange because the and aren't part of the tag!
data, they just delimit it.
length? TAG
== 3
When you do
markup-string: rejoin [open-tag data/name close-tag]
the
Did you know? - 'Bind is stackable!
I didn't - until I tried it. Have a look at the line:
if all bind bind Filter 'File 'Header
Unit: function ['Name [word!] Base-Directory [file!] Sub-Directory [file!]
Filter [block!]] [Script Header] [
error? try [
if
Hi REBOLs,
A new article by Ole Friis, the first in a series on compression REBOL
http://www.rebolforces.com/compression1.html.
This first one looks at Huffman encoding.
Cheers,
Allen K
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 04, 2000 10:13 PM
Subject: [REBOL] Antwort: Command question Re:(3)
Maybe we could also agree upon some standard plug-ins system, as proposed
by Andrew Martin on rebmail list, and then Elan's
Thanks, guys, for the answer. I didn't think about there being a datatyping
problem, but that makes perfect sense now.
A tag! is meant to represent only one tag. If you want to have more than one
tag in an HTML element, you need to make a string. So it's very easy to
correct your function.
I fear that anyone reading my last few posts may conclude that I'm
a real grouch. (Of course, it's not necessary to read my emails to
draw that conclusion! ;-)
In the interest of Suitable Doses of Levity, let's have fun with
functions in REBOL!
First, let's define an oldie from APL:
38 matches
Mail list logo