I thought I'd pass on this Google programming contest for you REBOL parse
fanatics out there.
http://www.google.com/programming-contest/
_
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
To
I've installed Vanilla 0.5.1 on a Windows XP Pro machine running IIS. Here
is what I know is correct:
1. The shebang is correct.
2. IIS is set up to execute REBOL scripts and test scripts work fine. REBOL
is set up to use all CGI verbs.
3. I have set my Web Sharing permissions for all /cgi-bin
I've installed Vanilla 0.5.1 on a Windows XP Pro machine running IIS. Here
is what I know is correct:
1. The shebang is correct.
2. IIS is set up to execute REBOL scripts and test scripts work fine. REBOL
is set up to use all CGI verbs.
3. I have set my Web Sharing permissions for all /cgi-bin
Christian-
Thanks for the link to the VanillaSBX. The reason I tried IIS in the first
place is because I could not find an active VanillaSBX link on
langreiter.com.
Also, please check into the CGI non-parsing headers problem which was
pointed out in a different response. IIS is easy to
The link to VanillaSBX was broken on langreiter.com. But hey, it's a Wiki!
So I fixed it myself. :)
From: Christian Langreiter [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: Vanilla HELP! :)
Date: Fri, 1 Feb 2002 00:06:57 +0100
I've installed
Sorry, I'm not versed in the different WAV formats. Will REBOL play a wave
file from an audio CD?
-Ryan
Holger Kruse
This is the one thing that is keeping me from doing REBster. I'm just
surprised no one lambasted me for wanting to use POP as the protocol.
:)
-Ryan
Ed
Just a quick thought on a do-able REBOL-based replacement for Napster
(a.k.a. REBster):
1. User A uses a REBOL client to send a list of shared files to a POP
address, including an authentication code.
2. A server running a REBOL server checks the POP address periodically for
new mail and
Any wild chance someone has written a REBOL scheme for querying Lotus Notes
.nsf databases?
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber Valley Parkway
Fargo, ND 58104
701-235-3390 ext. 6671
FAX: 701-235-9940
http://www.intellisol.com
Global Leader in People
Just a thought: the /Command order form needs a make-over.
https://orchid.site-secure.net/1-b/cgi-bin/command.r
The color scheme doesn't really work.
Also, have you ever thought of creating images of mock retail boxes for
each product you're selling? I'm sure you don't ship them as such, but
Thanks for the link, Porter. Using REBOL/Command to communicate to NotesSQL
via an ODBC connection looks very promising (if REBOL/Command runs on
Cobalt Linux?)
Now they HAVE to buy me REBOL/Command, right?
:)
-Ryan
Will this code sharing area be on the Reb AND the Web? I hope so.
Here is what I would find useful in a code sharing area...
1. Script library, including...
A. Header information required for all scripts.
B. All script functions must have usage and variable explanations.
C. All
I thought I'd share this quick function for any web developers who may be
interested in grabbing National Weather Service (U.S.) forecasts from
Accuweather.com.
forecast: func [
ZIP [integer!] {The ZIP code for where you want the forecast}
/local weather-URL weather-info future-weather
The following operation fails about 50% of the time:
content-length: 20 + load system/options/cgi/content-length
post-data: make string! content-length
read-io system/ports/input post-data content-length
post-data: make binary! post-data
Instead of making
Actually, I've already debugged this by printing post-data before and after
I use the make binary! statement on post-data. Before I make it binary,
post-data always returns expected contents. After I make it binary, it
sometimes returns none.
Ryan C. Christiansen
Web Developer
Intellisol
If you go to this URL and choose a small image to upload and click on the
submit button, you will see my debugging info
http://www.fargonews.com/test-post2.html
First you will see post-data printed before it is binary. Then you will see
post-data (binary): and following it will be the
Is there a maximum size for a value in a block? When I used my
multipart/form-data routine to upload images to my web server for display,
my routine seems to choke on images over 8KB. Here is my routine again for
reference.
-Ryan
#!rebol -cs
REBOL []
print Content-Type: text/html^/ ;--
The following function will decode multipart/form-data as retrieved using
POST from a web form. It will return an object as you would expect from
decode-cgi, but the object will also include values 'filename and
'file-mime-type. The object will include the contents of the file you
uploaded using
I'll look for that discussion. Thanks a bunch!
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber Valley Parkway
Fargo, ND 58104
701-235-3390 ext. 6671
FAX: 701-235-9940
http://www.intellisol.com
Global Leader in People Performance Software
Is this what you are referring to?
http://www.escribe.com/internet/rebol/m4260.html
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber Valley Parkway
Fargo, ND 58104
701-235-3390 ext. 6671
FAX: 701-235-9940
http://www.intellisol.com
Global Leader in People Performance
I'm trying to incorporate my 'decode-multipart/form-data function into the
commonly used 'retrieve-user-data function, but I am getting something
wrong. The function works now for GET operations but not for POST.
If I use 'read-io on system/ports/input, that clears the port, correct?
Then...
The following syntax is incorrect. Is there any way to accomplish my
intentions?
parse/all sample [copy text to [- | end] (print text)]
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber Valley Parkway
Fargo, ND 58104
701-235-3390 ext. 6671
FAX: 701-235-9940
Can anyone point me to usage documentation for 'parse-header? Using 'help,
I get the following, but I'm still not sure what 'parse-header is used for?
(I'm trying to digest mime-model.r and it uses 'parse-header)
help parse-header
USAGE:
PARSE-HEADER parent data
DESCRIPTION:
Returns
The data returned from the post should initially be treated
as binary - because you have image data that is binary
and has not been encoded. So what I did was use read/binary
to get your post-data file.
I'm using 'read-io to retrieve the POSTed data. There is no /binary
refinement for
I finally created a routine which will parse multipart/form-data. I ran
into trouble trying to figure out how to keep the image portion of the POST
data binary, but I got it to work in the end.
Go to this web page to see it in action...
http://www.fargonews.com/post-data.html
Here is the
I discovered that my routine doesn't always parse the filename correctly
all of the time. I will need to fix that bit of parsing. Other than that,
it seems to work fine.
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber Valley Parkway
Fargo, ND 58104
701-235-3390 ext. 6671
When I post a form entry and a file using multipart/form-data encoding, I
get the following
-7d1a92c9014c
Content-Disposition: form-data; name=content
content
-7d1a92c9014c
Content-Disposition: form-data; name=file; filename=D:
I want to be able to submit image files using POST and to save those image
files from the POSTed input. I am taking steps in this direction, and so I
gave my form tags a new enctype attribute.
I'm using the following function to make an object! out of POSTed data:
retrieve-user-data: func [] [
Is there an RFC or some other documentation for multipart/form-data?
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber Valley Parkway
Fargo, ND 58104
701-235-3390 ext. 6671
FAX: 701-235-9940
http://www.intellisol.com
Global Leader in People Performance Software
Messages is finally above the 1.0 release number and deservedly so. Using
the single %messages.cgi script, you can now do the following:
1. Display news headlines with a built-in commenting system.
2. Run an open discussion forum.
3. Run an open classifieds section.
4. Create, edit, or delete
Following is Messages 0.9.4 which includes many improvements, etc., as
follows:
-Code reduction: replaced redundant code in several places with functions.
-Added support for forums. Messages can now be used to display/administer
news headlines or it can be used as an engine for a discussion
I learn something every day! :)
I, too, was trying to solve this problem and did not realize you could call
a function from within the function itself. Nice. My solution was similar,
but only recursive to three levels. Here is my clunky solution, including
debug output to the console.
Shell:
BeOS and AmigaOS work like Unix, except that i/o redirection to/from REBOL
is not supported (/input, /output, /error, /console refinements).
Temporary
files have to be used instead, together with shell redirection.
I, too, find this strange, because you can compile simple command-line C
REBOL gets a little more ink from the BeOS community. Thanks, guys!
http://www.benews.com/
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber Valley Parkway
Fargo, ND 58104
701-235-3390 ext. 6671
FAX: 701-235-9940
http://www.intellisol.com
Global Leader in People
Well, best of luck! At least make C|Net aware of your compression utility
and give REBOL lots of credit.
:)
Paul wrote...
However, I for example put an
entire CD image on a website (compress to less than 400 bytes) then
download
it over a dialup line and uncompress it very easily with very
I don't have anything against /View and I can't wait to find time to play
with it more, but...
Why is it important that RT promote /View as an interface solution?
Instead, couldn't RT promote REBOL as a back-end scripting solution, using
web browsers as the interface solution? For example,
Curious.
When I run %rebdoc.r in /View 1.0, it returns a dictionary of 282 words.
When I run %rebdoc.r in /Core 2.5, it returns a dictionary of 278 words.
Are there REALLY only 4 more words in /View? The dictionary doesn't even
contain 'layout, a common /View function.
Just curious how this
No, you're not misunderstanding. But why does it work for you and not for
me? Seriously. The script is returning 'none for me now. I guess I'll tweak
it some more. Still confused.
In reference to "search function", I assume that you are referring to the
"Search News!" button and accompanying
Messages 0.7.5 is complete. Improvements include:
-Integrated search function.
-New check-sessionID function to replace redundant code.
-Admin interface improvements.
You can see Messages in a working state at
http://www.fargonews.com/rebolrepublic
Following is the updated script.
#!rebol -cs
Currently, load/markup behaves as such:
example-string: {tag1somethingtag2more/tag2/tag1}
== "tag1somethingtag2more/tag2/tag1"
resulting-string: load/markup example-string
== [tag1 "something" tag2 "more" /tag2 /tag1]
resulting-string/tag1
== "something"
resulting-string/tag2
== "more"
It choked here...
REBOL/Link 0.9.1.3.1 23-Mar-2001
Copyright 2000-2001 REBOL Technologies. All rights reserved.
do http://www.rebol.cz/~cyphre/swis
** Script Error: load-thru has no refinement called binary
** Where: do-facets
** Near: load-thru/binary screen-bkg 'with [effect: [tile]]
Ryan
The REBOL FAQ at Rebol Republic has begun. What I will do is work backwards
from today on the rebol-list threads at eScribe to put together the FAQ. If
anyone wants to volunteer to help with this HUGE effort, it would be
greatly appreciated. See the FAQ at
http://www.fargonews.com/rebolrepublic/
I'm having fits over using sort/reverse to sort file names from a
directory. I know we've gone over this before, but what I thought was
working is no longer working. For example, using the following function on
a Linux server seems to work fine:
read-directory-messages: func [
"Read a
So you are basically merging the contents of a set
of files, then sorting them in reverse order?
I'm reading a directory of file names, appending the file names to a block
of file names, then sorting them in reverse order.
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber
I changed the function as suggested (see the function following), using
'sort/reverse on the 'message-directory, but now all of the file names are
sorted smallest to largest. Isn't this the opposite of what sort/reverse is
supposed to accomplish? This is on an IIS server. On a Linux server,
I am using the following to search for keywords in a string.
The word 'xml-message represents a string which includes XML tags and
content between the tags.
The word 'messages is a block of 'xml-message strings.
The word 'cgi-data is an object including values 'keyword and 'messageID
The foreach statement doesn't seem to be checking "each" 'xml-message in
'messages. It only seems to be searching on the second message. It will
find any word in the second message, but ignores the first message
altogether.
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber
If you hit my script directly using the if error? try statement, the
browser displays the "Content-Type: text/html" statement at the top of the
page. When I view source, I see that it is displaying the stylesheet info
twice, once before the Content-Type statement and once afterward. Here is
the
Messages 0.6.6 is a news headlines system which now features a commenting
system. Messages may also be converted into a bulletin board quite easily.
The entire system uses a single script: %messages.cgi which calls upon two
different .css files including %news.css and %comments.css. The admin
The following statement works in my script...
cgi-input: retrieve-user-data
message-action-cgi cgi-input
The function 'retrieve-user-data successfully transfers the CGI input into
the variable 'cgi-input and subsequently, the 'message-action-cgi function
successfully processes the cgi-input
I'm working on creating another resource page for REBOL programmers and I'd
like some input. What would you like to see in a web site that focuses on
REBOL?
I know there are other sites already out there, but I'd like your input,
anyway, before I put my site together. Here are my thoughts so
I was looking at Chris Langreiter's site and the Vanilla info, but I can't
find the link to actually download Vanilla. Can anyone point me in the
right direction?
http://www.langreiter.com/space/vanilla-download
If it's actually on this page, I can't find it.
Ryan C. Christiansen
Web Developer
Anyone have a clue as to what this new Parrot language might look like as
far as syntax goes? It's going to be the next generation of Perl and Python
together as one language, from what I understand. Python has much cleaner
syntax than Perl from what I've seen. I also read something about people
Although I havent tried it out yet: "This rocks! way to go Ryan!"
now I might consider this or something like this over RSS
or strange Java Portal-Servlet solutions.
Thanks!
Plans for the future:
Online documentation.
Support for the mysql:// protocol (save messages in a database instead of
Thanks, Anton. This is exactly what I needed to do.
-Ryan
--
Ryan, you actually want:
message-block: copy []
foreach file-name sort/reverse message-directory [
file-contents: read file-name
insert message-block file-contents
]
message-block: copy []
foreach file-name sort/reverse message-directory [
file-contents: read file-name
insert message-block file-contents
]
sorting the message-directory before use, not the message-block
with the contents of each file.
Is this any
use 'try, as follows...
foreach url-to-read url-database [
if error? try [dump: read http://www.foobarfoo.com/][next url-database]
]
If I attempt to read from a web page that does not exist, ie:
dump: read http://www.foobarfoo.com/
Rebol stops execution of the code and reports:
I have a directory of XML-formatted messages, each saved with a numeric
filename based on the time of creation, for example
/news/20010329105032.txt
/news/20010329105033.txt
/news/20010329105034.txt
I use the following function to read the directory and to create a block of
file names, with the
sort/reverse message-block
Did not work. Look at this page to see what I'm talking about. The messages
should be appearing based on time of creation, with the last created
message at the top of the list. Something is wrong.
Following is an all-inclusive script for running a site with news
headlines. It is best suited for use within a FRAME or IFRAME. It includes
administration functions for creating, editing, and deleting news
headlines. It also includes options for displaying news headlines in index
form or normal
Last night, I accidentally stumbled upon Hosted Rapid Application
Development at Westside.com
http://www.westside.com/corp/solutioncenter/story.view?filename=prebuiltapps
HRAD is exactly what I have been envisioning for REBOL for quite some time.
Westside uses a combination of HTML and
I've been getting a lot of application errors using /Core on Windows 2000.
The errors tend to happen when I retrieve a file via ftp into memory and
then process that file while in memory. Is anyone else experiencing these
types of errors? I know /Core is not officially supported on Windows 2000.
that's right... and nothing availlable to replace the expired /View !!!
I was happy to learn about /Core/Pro and /Link/Pro, wich i plan to
purchase
as soon as they'll be availlable, for now i just have to stop anything
i've
starded with /View... Grr ! if only a beta or a /view with longer
You should find a web hosting service that has MySQL and PHPMyAdmin
installed. PHPMyAdmin lets you administer your databases through a web
interface. Then you can use the REBOL mysql:// protocol to write CGI
scripts for interacting with your MySQL database.
I use Site5 for my personal web
Would REBOL/View and REBOL/View/Pro include more documentation?
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber Valley Parkway
Fargo, ND 58104
701-235-3390 ext. 6671
FAX: 701-235-9940
http://www.intellisol.com
Global Leader in People Performance Software
I suggested to About.com that they include a section on REBOL and I offered
to be the guide, but here is the response...
"Thank you for your topic suggestion REBOL. We appreciate your input, but
our editorial staff feels that your topic would not work as an individual
site at this time."
Maybe
Well, I think REBOL has answered a lot of questions as to what it's
official product line is going to be in the near future, anyway...
http://www.rebol.com/products.html
But the product descriptions do not give me enough information, especially
about /Express. Sometimes you need more than
If they compile /Link for use on the BeOS like they have with /View, I will
be VERY happy. Finally, with shell access, I will be able to become a BeOS
developer using the language I love and write applications for the
operating system I love. Bring it on!
Ryan C. Christiansen
--
To
REBOL 2.5 gets a little "ink"
http://www.benews.com/story/3894
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber Valley Parkway
Fargo, ND 58104
701-235-3390 ext. 6671
FAX: 701-235-9940
http://www.intellisol.com
Global Leader in People Performance Software
: [EMAIL PROTECTED]
Owner: "Ryan Christiansen"
Rights: "Copyright (C) Ryan Christiansen 2001"
Language: 'English
Charset: 'ANSI
Purpose: {
Parse Apache CLF web.log files and dump data into .csv files.
}
Comment: {
Script relies on the existence
The MySQL scheme for /Core is pretty nice so far. But I frequently
encounter network timeouts, often when it has been less than 90 seconds
since the last activity. Do I need to 'open and 'close the database for
each entry? Is it common for a database connection to timeout so quickly?
(I'm new at
Below is an updated version of the CLF format web.log file data mining
script, which parses CLF format web.log files and places the data in .csv
files for use in Excel and other applications. The script now calls
functions instead of being simply linear.
Usage:
You must begin with a 0-byte
I'm trying to make a decision as to whether or not I need to learn PHP or
if I can continue to use REBOL as a business solution. I also need to
figure out which SQL database I need to learn. Can someone help me answer
the following questions?
Which SQL databases can /Command communicate with?
MS
I'm trying to access a database using the mysql scheme, but the server is
telling me access is denied for "[EMAIL PROTECTED]" when I am only
logging in using "username," not "[EMAIL PROTECTED]" What am I doing
wrong?
For example.
db: open mysql://username:[EMAIL PROTECTED]/database
connecting
Finally. I don't know why it took me so long, but I finally began reading
the database management system functions listed in The Official Guide. It
seems I have been reinventing the wheel and the book's database management
system will help me out.
Why did it take me so long? Unfortunately, the
Below I am sharing a script that will parse CLF Apache web.log files and
place the data into Excel-friendly .csv files.
I do have a question, however: the script takes a LONG time to run because
of all of the DNS lookups. Is there any way to speed this up?
Thanks.
Ryan C. Christiansen
Web
When you use REBOL's built-in FTP protocol, does it send a "bye" command
when it is finished downloading? Or does it just let the FTP connection
time out?
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber Valley Parkway
Fargo, ND 58104
701-235-3390 ext. 6671
FAX:
I did try this, but ran into some problems. Here is the code I was using...
DNS-library: load %dns-library.r
foreach entry DNS-library [
either find/any entry/2/1 IP-address [
domain-address: entry/2/2
][
domain-address: read join dns:// IP-address
new-entry: make block!
Reading the REBOL/Core manual, I am still uncertain as to what 'set
accomplishes. I noticed these two functions in a recent post, one using
'set and the other not using 'set. What does 'set accomplish?
exec: func [series [series!]] [
if error? try [return do series] [
79 matches
Mail list logo