--- You wrote:
The
manual suggests that a block be used for a simple database. i.e. url
addr book. However, how would I access an SQL database? i.e. Access.
--- end of quote ---
Right now there is no way to do this, although ODBC is promised for the forthcoming
rebol/command.
I've used rebol,
foo: [a b c d e]
== [a b c d e]
index? find foo 'b
== 2
--
Andrew Grossman
http://web.dartmouth.edu/~grossman/pgp.html
--- You wrote:
If I have a block of items with an unknown order, what's the easiest way to
find the position of an item in the block? Something like this pseudo
code:
Hadn't noticed that before. Ran your test on a mac (v 2.2.0.2.1) and came up with the
same result (1534). This seems to not be memory-related. I allocated rebol just over
200 MB (why not?). It appears to be using less than a tenth of that. I wonder if
this qualifies as a bug...anyone have
You probably want to use rejoin as in:
rejoin [image seq exten]
As far as substrings are concerned, copy/part might have some of the functionality you
seek.
--
Andrew Grossman
http://web.dartmouth.edu/~grossman/pgp.html
--- You wrote:
image: Pic
seq: 45 (actually a counter variable, not
--- You wrote:
Hi all,
Anyone know of any UK based REBOL CGI hosts?
--- end of quote ---
It should be possible to run rebol on any UNIX-based server on which you have CGI
permisssions and for which a rebol port exists. Simply upload the rebol package
(rebol, rebol.r) and set the rebol binary's
--- [EMAIL PROTECTED] wrote:
where i can get more info about error ?
is in the user guide?
--- end of quote ---
It may be. There are a couple examples in the REBOL dictionary under 'try and 'error?.
--
Andrew Grossman
http://web.dartmouth.edu/~grossman/
Depending on what you're trying to do, you may want to do something like this:
foreach url parse read %urllist.txt "" [
site: to-url url
; do something with 'site here
]
or you might have it go right into a parse or some other operation:
foreach url parse read %urllist.txt "" [
parse read
I wrote a little script to save states for CGIs and other apps. It's very simple works well for how I've used it. If anyone wants it, I put it at
http://www.dartmouth.edu/~grossman/REBOL/
where there is also a new version of sid.r, which it requires, that works with rebol 2.2.
--
Andrew
Assuming that word is a string, try:
write %file word
if word a file:
write %file read %word
if word is a string holding a file name:
write %file read to-file word
Also, check the docs for 'read.
Hope this helps.
--
Andrew Grossman
http://web.dartmouth.edu/~grossman/
--- [EMAIL PROTECTED]
If you want to do default values, you might do something like this:
defaults: make object [
orden: 99
dia: 1
year: 2000
mes: 1
]
cgi: make defaults decode-cgi system/options/cgi/query-string
To just trap a single error, you might do this:
if error? try [print
try something like
foreach line read/lines %yourfile.txt [
ypage: read join http://chart.yahoo.com/table.csv?s= line
; here do something with the page you just read.
; simple:
; write to-file join line ".html" ypage
; more complex:
; parse ypage [parse rules for ripping relevent data out of
You might want to try the 'write word to save a string, such as concatenated files, to
a file as-is.
--
Andrew Grossman
http://web.dartmouth.edu/~grossman/
--- [EMAIL PROTECTED] wrote:
the save command has stuck string brackets around the entire file.
other than that "a9" saves to that file
You could just include a few fatal hard-to-find bugs; guarantee yourself some support
revenue.
For kow, since REBOL is an interpereted language, your best bet would be to
copyright/patent your creation (whatever works in nz). You might try encrypting it
somehow and adding a wrapper
--- You wrote:
What, Mac can't run multiple instances of a single executable? Are you
talking about multiple copies on the HD like Rebol, Rebol1, Rebol2, etc.?
Sounds limiting.
--- end of quote ---
Keep in mind, the mac is a bit (!) more document-centric than other platforms. In
that
You might want to try Sterling's proxy (avail. on rebol.org) with a small modification
to save to a file all data passed through. I'd imagine that this shouldn't be
difficult, although I haven't looked at the code recently. Good luck!
--
Andrew Grossman
(unable to quote...on a public computer at the NYPL...)
Probably not until there's support for UDP. Sorry.
--
Andrew Grossman
You could use my cookie-client script that is somewhere on rebol.org. It allows you
to read access webpages while sending them cookies.
I'm planning when I have a few minutes free on revising it to work a bit more nicely
and automatically remember cookies and the like. Sort of a smart read
--- [EMAIL PROTECTED] wrote:
tion, but I am not seeing that request when I read their port
--- end of quote ---
There is no request. The server automatically gets sent all cookies that your browser
has relating to that domain and path.
If you look at the headers the server returns to you,
There is no current version of rebol that will work on a.out BSDs. This was discussed
on the list a while back. The status of such a port is uncertain. doh!
--
Andrew Grossman
http://web.dartmouth.edu/~grossman/pgp.html
--- [EMAIL PROTECTED] wrote:
FreeBSD shell18.ba.best.com 2.2.8-STABLE
--- [EMAIL PROTECTED] wrote:
1. Can it read from and write to the NT registry?
--- end of quote ---
You could certainly use it to parse/read/write to the registry (assuming it's a text file like in 95/8). Whether that would be advisable...
I've heard looking at the registry sorta mean can break
--- [EMAIL PROTECTED] wrote:
I looked at the file scripts at both rebol.org and rebol.com without
finding any similar routine. I assume I "load" the log file; but I have no
idea how to get rid of the lines I don't want.
- fleet -
--- end of
You might try replacing 'reform with 'rejoin in your code.
--
Andrew Grossman
http://web.dartmouth.edu/~grossman/pgp.html
--- [EMAIL PROTECTED] wrote:
foreach [name type] Fields [
FormField: reform [{"Name":Bcgi/}name{/BP}newline]
write/append %cgiworf.r FormField
]
--- [EMAIL PROTECTED] wrote:
Direct your request to [EMAIL PROTECTED]
--- end of quote ---
I'm sure Bo would love this...
I think emailing the list with only the word subscribe in the subject would be quite
enough...unless you realy want to let Bo know that you're unsubscribing.
--
--- I wrote:
I think emailing the list with only the word subscribe in the subject would be quite enough...unless you realy want to let Bo know that you're unsubscribing.
--- end of quote ---
hmmm. emailing [EMAIL PROTECTED] with the word unsubscribe as the subject may be a better choice. I
Hi Elan,
I'm sure that this is my fault...poor documentation. I'm not at a REBOL'd computer
right now, but have you tried just
equal? mail/comment "read"
or
find mail/comment "read"
I'd hope that one or both would work!
--
Andrew Grossman
http://web.dartmouth.edu/~grossman/pgp.html
---
Hi Russell,
I'm not sure where you got this from. It supports all recent versions of IE and
Netscape that implement file uploading to spec. I think it's netscape 2+ and IE 3+,
along with a few other browsers that I don't remember (take a look at findagent.r).
Files uploaded with the web
--- [EMAIL PROTECTED] wrote:
It doesn't like me or my scripts either! :-/ I think it requires all
lines to be shorter than 80 characters?
--- end of quote ---
The Web Bot doesn't have this problem, but you must be using a browser that it thinks
can upload files properly. Netscape and
Is this on a UNIX box? That would be quite easy. If not, any OS with a cron-like
util would work.
--
Andrew Grossman
http://web.dartmouth.edu/~grossman/pgp.html
--- You wrote:
Hi REBOLs
Has anyone got a trick/hack or otherwise to enable/automate launching the
(modem) Dialup networking, from
H, strange. I've used it in a similar way and gotten better results. Does it
save the file(s)? Are you behind a proxy on either end? Finally, what browser/server
are you using?
Also, are you using the latest version from rebol.org? I fixed a problem that would
cause some files to
--- You wrote:
Odds are, it's safe to assume you'll get the length.
--- end of quote ---
AFAIK, it would be very safe to say that any browser that supports multipart encoding
would provide this header.
Netscape 2+
MSIE 3+ (though it only works consistantly on 4+)
Opera
icab
And probably a
--- [EMAIL PROTECTED] wrote:
As long as they don't actually make you write in FORTRAN...
--- end of quote ---
I've actually heard that REBOL is developed in fortran and cobol tied together with
embedded perl.
j/k.
--
Andrew Grossman
http://web.dartmouth.edu/~grossman/pgp.html
I don't have time to try it out, but might parse/all be useful in this situation? I'd
hope that it would.
--
Andrew Grossman
http://web.dartmouth.edu/~grossman/pgp.html
--- You wrote:
I ended up going through some contortions of replacing the quote marks with
"special symbols" (unprintable
32 matches
Mail list logo