[REBOL] SINTEZAR Announcement
Zdravim, I've finally set up my REBOL-capable account on www.prohosting.com , so SINTEZAR moved to http://listen.to/sintezar . It is still the same version as on bizland, but with CGI capabilities and VIEW public available it will grow really soon. And yes, I'm really interested in some kind of REBOL tracker - SINTEZAREBOL (my new word for REBOL's world of music and sound :-) has hidden power to at least simplize this task. I have to think about that and now: if all [ integrated-web-support at-least-simple-gui-for-simple-sounds ][ send [EMAIL PROTECTED] new-sintezar-announcement ] and then will Sintezar uprgade automatically. Louci se -- --you've been/byl jsi contacted/kontaktovan --- [EMAIL PROTECTED] -www.volny.cz/weirddream
[REBOL] Stupid Question
Hi, I am starting programming in Rebol and have the following problem: I have a file with an email adress in the first line How can I grab the email adress and use it ? The following seems not to work - no idea why snip- message: read %/F/Apfel.txt file: read/lines %/F/Apfel.txt to: first file header: make system/standard/email [ To: to From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Subject: "Test Mail" Organization: "No one" X-mailer: "[Test Mailer v0.01]" MIME-Version: 1.0 Content-Type: "text/plain" ] send/header to message header snap- any ideas ???
[REBOL] Stupid Question Re:
I am starting programming in Rebol and have the following problem: I have a file with an email adress in the first line. How can I grab the email adress and use it ? [REBOL [] message: read %/F/Apfel.txt file: read/lines %/F/Apfel.txt to: load first file header: make system/standard/email compose [ To: (to) From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Subject: "Test Mail" Organization: "No one" X-mailer: "[Test Mailer v0.01]" MIME-Version: 1.0 Content-Type: "text/plain" ] ] Give that a shot and see if it works. Andrew Martin Rebol forces... ICQ: 26227169 http://members.xoom.com/AndrewMartin/ --
[REBOL] group projects Re:
Ryan Christiansen wrote: I checked SourceForge and there isn't a single REBOL project listed. I have started a project myself and I have a vision, but I'm not sure whether SourceForge is the place to post it. Does anyone have plans for a REBOL site where persons can work together on REBOL projects? Is anyone interested in working on group projects? We're working on Web Dialects on [EMAIL PROTECTED] and the Home page for Web Dialect: http://www.openip.org/ in a variety of ways. My sense is that the REBOL community is largely made up of developers who may be averse to group projects for fear that someone else may make money off of their ideas. Or maybe the REBOL community is so small that group projects haven't surfaced yet. I'd like to know your thoughts on this. You're welcome to join in the above. It's intended to be free. I'm interested in reading more about your vision. Andrew Martin Hazy/Lazy/Crazy Rebol... ICQ: 26227169 http://members.xoom.com/AndrewMartin/ --
[REBOL] Stupid Question Re:
[EMAIL PROTECTED] wrote: Hi, I am starting programming in Rebol and have the following problem: I have a file with an email adress in the first line How can I grab the email adress and use it ? The following seems not to work - no idea why snip- message: read %/F/Apfel.txt file: read/lines %/F/Apfel.txt to: first file Change the above to: to: make email! first file or see below. header: make system/standard/email [ To: to From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Subject: "Test Mail" Organization: "No one" X-mailer: "[Test Mailer v0.01]" MIME-Version: 1.0 Content-Type: "text/plain" ] send/header to message header send/header make email! to message header I think that should work also (been awhile since I've toyed with email.) Regards, Deryk
[REBOL] HTML.r Re:(2)
Andrew, Thanks for the help. Sorry to bother you again, but I now get the following error message: ** Script Error: Include has no value. ** Where: Include %ML.r HTML_Attributes!: Extend ML_Attributes! Perhaps there is another file missing? Also, how does this program work? Well enough. It's not the greatest of HTML dialects now. I should have asked, "How does one use the program?" This is a real newbie asking, that has to have everything explained step by step. :) Have a look at the Home page for the Web Dialect: http://www.openip.org/ for Robert Muench's alternative and examples. I must get my act together and produce a better HTML dialect, that's actually usable. Please send me a copy when you do. I hope that helps! Andrew Martin Mysterious web dialect author... ICQ: 26227169 http://members.xoom.com/AndrewMartin/ -- Thanks again, Louis
[REBOL] HTML.r Re:(3)
[EMAIL PROTECTED] wrote: Andrew, Thanks for the help. Sorry to bother you again, but I now get the following error message: ** Script Error: Include has no value. ** Where: Include %ML.r HTML_Attributes!: Extend ML_Attributes! Perhaps there is another file missing? Yes, I just wonder whenever it stops? ;-) It's constant problem with html.r. It should be packed together or just use header Needs: item pointing to some url location (will work with /View only imho). -pekr- Thanks again, Louis
[REBOL] HTML.r Re:(4)
Perhaps there is another file missing? Yes, I just wonder whenever it stops? ;-) It's constant problem with html.r. It should be packed together or just use header Needs: item pointing to some url location (will work with /View only imho). Ah, yes. The problems of out of date software and myself not having time to update it. I'll get on to it within 36 hours. Andrew Martin Boiling too many pots of Rebol soup... ICQ: 26227169 http://members.xoom.com/AndrewMartin/ --
[REBOL] Accessing REBOL from an application
Hello: Does anyone know if it is possible to access REBOL scripting capabilities from an application(via an API), and not from the console? -Original Message- From: [EMAIL PROTECTED] [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Sunday, June 04, 2000 2:58 PM Subject: Welcome to the REBOL email list. Welcome to the REBOL email list. Thanks for joining in the discussion. This email list is run by a REBOL script named SELMA: Simple Email List-Managing Applet. Here is some helpful information: Commands to REBOL SELMA are given on the subject line of your message. These commands are currently supported: help - get this information suggest - make a suggestion about the list selma-source - get the current source code to SELMA get msg N - send yourself message #N subscribe - add yourself to the list unsubscribe - remove yourself from the list No other commands are provided at this time. -SELMA
[REBOL] Accessing REBOL from an application Re:
[EMAIL PROTECTED] wrote: Hello: Does anyone know if it is possible to access REBOL scripting capabilities from an application(via an API), and not from the console? The only ways possible seem to be: socket ports file info interchange pipe (?) - haven't tried yet though .. -pekr-
[REBOL] FTP Problem
Hello, folks. I'm having a major FTP problem. write ftp://user:[EMAIL PROTECTED]/test.txt "test" works fine, but write ftp://user:[EMAIL PROTECTED]/test.txt "test" bails with this message: ** Script Error: pick expected series argument of type: series pair event money date time object port tuple any-function. ** Where: pick server-said 4 Anyone know what the problem could be? It's something with the azorius.com server, but is there anything in particular that I could talk to the server manager about? Thanks, Justin Smith
[REBOL] View and nesting layouts Re:
[rebol [] unview/all view layout [ across button "00" [] button "10" [] below across button "01" [] button "11" [] below across button "quit" [quit] button "halt" [unview/all halt] ]] From what I've seen of /View thus far, I like it, but have ran into a brick wall when it comes to nesting layouts. It seems that across and below won't nest. If you specify one or the other after one or the other, it cancels the previous one. i.e. REBOL[] view layout [ across below a1: area "text area" across t1: text "foo" f1: field "text field" return a2: area "text area" b1: button "foo2" ] I've indented to allow for better flow following. I have also noticed that across and below do not support [] brackets. Is anything planned to address these issues? They seem to impede on advanced layouts. -- Regards, Deryk Robosson // [EMAIL PROTECTED] // http://linux.tc3net.com/newlook
[REBOL] Re: Stupid Question Re:
Hello [EMAIL PROTECTED]! On 04-Giu-00, you wrote: A to: load first file I think it's not a good idea to use the word 'to here. help to Constructs and returns a new value after conversion. Arguments: type -- The datatype or example value. (any-type) spec -- The attributes of the new value. (any-type) A header: make system/standard/email compose [ ATo: (to) Once you're using a different word, you don't need COMPOSE anymore. Regards, Gabriele. -- Gabriele Santilli [EMAIL PROTECTED] - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/
[REBOL] Accessing REBOL from an application Re:(2)
Like cgi? start a rebol-shell for each query, catch output? not the fastest, but.. [EMAIL PROTECTED] wrote: Hello: Does anyone know if it is possible to access REBOL scripting capabilities from an application(via an API), and not from the console? The only ways possible seem to be: socket ports file info interchange pipe (?) - haven't tried yet though .. -pekr-
[REBOL] Accessing REBOL from an application Re:(2)
Like cgi? start a rebol-shell for each query, catch output? not the fastest, but.. [EMAIL PROTECTED] wrote: Hello: Does anyone know if it is possible to access REBOL scripting capabilities from an application(via an API), and not from the console? The only ways possible seem to be: socket ports file info interchange pipe (?) - haven't tried yet though .. -pekr-
[REBOL] (no subject)
unsubscribe
[REBOL] My first script
This is the first script I've ever written in REBOL. I'm pleased with it because it shows that I'm able to do something productive and that it's an actual solution to a specific task that needed doing. One improvement that I would like to make is to read a file of domain names and process them. Are there any other ways in which it could be improved? TAO REBOL [ Title: "WHOIS Maker" File: %WhoIsMaker.r Date: 30-May-2000 Purpose:"WhoIs Query, Parse, Save" ] whois-server: http://www.networksolutions.com/cgi-bin/whois/whois/whois/ the-query: "" while [not the-query = "."] [ the-query: ask " WHOIS- " whois-the-query: make url! rejoin [whois-server "?" the-query] query-result-html: read whois-the-query parse query-result-html [thru pre copy query-result-preform to /pre] either find query-result-preform "Your selection is available" ;true - no match [ print newline "NO MATCH FOUND - enter next query" print query-result-preform ] ;false - match found [ print newline "MATCH FOUND - processed - enter next query" print query-result-preform write/append %whois/masterfile.txt rejoin [ query-result-preform newline newline "X X X" newline newline ] html-wrapper: rejoin [ "htmlheadtitle" the-query "/title/headbodypre" query-result-preform "/pre/body/html" ] html-file: make file! rejoin ["whois/" the-query ".html"] write html-file html-wrapper ] ] David Handy - [EMAIL PROTECTED] http://www.hlink.net/handy/
[REBOL] Strange error when I send e-mail
Hi! I have a problem when I want to send an email. I use this code: prm: to-file load system/script/args if exists? prm [ dat: load prm ] ... subj: pick dat 6 ; the 6 line in the file is: [a 1st message] ... header: make system/standard/email compose [ ... subject: (reduce [subj]) ... ] It works sometime, except when the subj contain some words, like "1st". I mean if subject is [a test] works but when is [a 1st test] fail Any idea? How I convert [a 1st test] to anything usefull in header? Thanks in advance, A.D.ing http://www.zonator.com
[REBOL] Contexts
Hi all, can anyone help me with this simple question about contexts Consider the following rebol program REBOL [ Title: "Test function definition" Date: 04-Jun-2000 File: %fx.r Purpose: "Test function definition" ] ; define fx fx: function [x] [] [ print x print do text-fx ] ; Main line text-fx: "x * x" x: 100 fx 2 fx 3 even though I have passed the variable x into the function fx, when I "do" the string text-fx it used the value of x from the main line. How do I get the do function to take the value of x passed into the function. (I'm sure someone has told me how to this previously but I cant remember the answer :-(( ) Cheers PHil
[REBOL] Contexts Re:
Hi PHil, I replaced text-fx by block-fx and bind block-fx to fx's local context before I do it: fx: function [x] [] [ print x bind block-fx 'x print do block-fx ] block-fx: [x * x] x: 100 == 100 fx 2 2 4 fx 3 3 9 To the same thing with text-fx use: fx: function [x] [] [ print x block-fx: make block! text-fx bind block-fx 'REBOL bind block-fx 'x print do block-fx ] text-fx: "x * x" == "x * x" fx 3 3 9 fx 1 1 1 fx 2 2 4 ;- Elan At 06:33 PM 6/4/00 +0100, you wrote: Hi all, can anyone help me with this simple question about contexts Consider the following rebol program REBOL [ Title: "Test function definition" Date: 04-Jun-2000 File: %fx.r Purpose: "Test function definition" ] ; define fx fx: function [x] [] [ print x print do text-fx ] ; Main line text-fx: "x * x" x: 100 fx 2 fx 3 even though I have passed the variable x into the function fx, when I "do" the string text-fx it used the value of x from the main line. How do I get the do function to take the value of x passed into the function. (I'm sure someone has told me how to this previously but I cant remember the answer :-(( ) Cheers PHil ;- Elan [: - )]
[REBOL] (no subject) Re:
Hi! To unsubscribe from the list, send an email with _only_ this: unsubscribe in the subject line. Or click on this link (in an advanced email client): [EMAIL PROTECTED]?subject=unsubscribe Or run this rebol script: [REBOL [] send [EMAIL PROTECTED] "unsubscribe" ] I hope that helps! Andrew Martin Who's getting really good at doing these! :-) ICQ: 26227169 http://members.xoom.com/AndrewMartin/ --
[REBOL] Stupid Question Re:(3)
On 04-Giu-00, you wrote: A to: load first file I think it's not a good idea to use the word 'to here. Agreed. My defence is the original script used 'to. :-) Andrew Martin Rapidly papering over the cracks... ICQ: 26227169 http://members.xoom.com/AndrewMartin/ --
[REBOL] Strange error when I send e-mail Re:
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 05, 2000 5:05 AM Subject: [REBOL] Strange error when I send e-mail Hi! I have a problem when I want to send an email. I use this code: prm: to-file load system/script/args if exists? prm [ dat: load prm ] ... subj: pick dat 6 ; the 6 line in the file is: [a 1st message] ... header: make system/standard/email compose [ ... subject: (reduce [subj]) ... ] It works sometime, except when the subj contain some words, like "1st". I mean if subject is [a test] works but when is [a 1st test] fail You have to ensure that it is a string. Which it should be if you have read it from a text file. "[a 1st test]" or "a 1st test". If it is not a string and you just set subject to a block [a 1st test] it will fail with something like this (because subject is turned into a string using 'form before sending) form [a 1st test] ** Syntax Error: Invalid integer -- 1st. ** Where: (line 1) [a 1st test] You must be doing something to the string that you didn't show in your example. Also, is there really a need to use reduce?, nothing in your example indicates you need it there. I would still like Rebol to be able to handle these, 1st 2nd 3rd 3m etc (without having to have them as strings, or at least make 'form handle their conversion) Cheers, Allen K
[REBOL] Windows path question
Hi! to access a file from the current drive I use //autoexec.bat ;for c:\autoexec.bat How I can access the d:\autoexec.bat file? (on a Windows platform) Thanks in advance, A.D.ing http://www.zonator.com
[REBOL] Windows path question Re:
A.D.ing wrote: How I can access the d:\autoexec.bat file? print read %/d/autoexec.bat The drive letter is like a higher level directory. I hope that helps! Andrew Martin ICQ: 26227169 http://members.xoom.com/AndrewMartin/ --
[REBOL] Looking for an Australian REBOL programmer
Hi from Australia, I am looking for a REBOL programmer based in Australia interested in taking on a paying project. The project involves sending web pages as HTML (including all images) via email from a Lotus Notes "website". The script also needs to look at an embedded comment field, extract the information as the subject of the email and send the page to a specified list depending on the keyword in the comment field. Any takers out there? Regards David Jacobs
[REBOL] XML parser includes line breaks Re:(5)
Seems to work pretty well. Thankyou. Brett. I wrote the following helper function to strip all redundant whitespace from the nested block structure returned by parse-xml. (By "redundant", I mean whitespace that precedes or follows non-whitespace character data.) The function also deletes content strings that become empty upon whitespace cleanup. All suggestions, optimizations, etc. are welcome. -jn-
[REBOL] Looking for an Australian REBOL programmer Re:
David Jacobs wrote: Any takers out there? Try approaching Allen K: [EMAIL PROTECTED] He's offline at the moment, but I'm fairly sure he's looking for work like this. I've CC him directly Andrew Martin ICQ: 26227169 http://members.xoom.com/AndrewMartin/ -- - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, 5 June 2000 2:53 PM Subject: [REBOL] Looking for an Australian REBOL programmer Hi from Australia, I am looking for a REBOL programmer based in Australia interested in taking on a paying project. The project involves sending web pages as HTML (including all images) via email from a Lotus Notes "website". The script also needs to look at an embedded comment field, extract the information as the subject of the email and send the page to a specified list depending on the keyword in the comment field. Any takers out there? Regards David Jacobs
[REBOL] Looking for an Australian REBOL programmer Re:
My name is Greg and based in Ballarat Vic and would like to know more. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 05, 2000 12:53 Subject: [REBOL] Looking for an Australian REBOL programmer Hi from Australia, I am looking for a REBOL programmer based in Australia interested in taking on a paying project. The project involves sending web pages as HTML (including all images) via email from a Lotus Notes "website". The script also needs to look at an embedded comment field, extract the information as the subject of the email and send the page to a specified list depending on the keyword in the comment field. Any takers out there? Regards David Jacobs
[REBOL] parsing by period and newline
;This parsing routine... breakdown-content: func [ "breakdown an e-mail content field into its parts" msg [object!] "e-mail message" ][ article-info: msg/content end-of-paragraph: rejoin [{.} newline] content-parts: copy [] foreach part parse/all article-info end-of-paragraph [ append content-parts part ] ] ;when parsing the following... First paragraph here. Then a second paragraph. Another sentence. A final paragraph. ;creates an undesirable result, as follows... make object! [ headline: "first headline" subheadline: "second headline" body: ["First paragraph here" "" "" "Then a second paragraph" " Another sentence" "" "" "A final paragraph" ""] ] ;For the "body" value, I would like the block to contain only individual paragraphs. Parsing by the following value (also above)... end-of-paragraph: rejoin [{.} newline] ;does not work as I desire (i.e. parsing ONLY by instances of a period followed by a newline character.) Using a charset value would not work, because then it would parse for EVERY instance of a period and a newline, correct? How can I accomplish what I am setting out to do? (parsing by each instance of a period followed by a newline character.) Thanks. -Ryan
[REBOL] parsing by period and newline Re:
As a follow-up... would it make sense to do the following? article-info: msg/content end-of-paragraph: rejoin [{.} newline] replace/all article-info end-of-paragraph {~} and then parse the resultant string by the tilde character? (or am I adding an extra, unecessary step to the process?) -Ryan ;This parsing routine... breakdown-content: func [ "breakdown an e-mail content field into its parts" msg [object!] "e-mail message" ][ article-info: msg/content end-of-paragraph: rejoin [{.} newline] content-parts: copy [] foreach part parse/all article-info end-of-paragraph [ append content-parts part ] ] ;when parsing the following... First paragraph here. Then a second paragraph. Another sentence. A final paragraph. ;creates an undesirable result, as follows... make object! [ headline: "first headline" subheadline: "second headline" body: ["First paragraph here" "" "" "Then a second paragraph" " Another sentence" "" "" "A final paragraph" ""] ] ;For the "body" value, I would like the block to contain only individual paragraphs. Parsing by the following value (also above)... end-of-paragraph: rejoin [{.} newline] ;does not work as I desire (i.e. parsing ONLY by instances of a period followed by a newline character.) Using a charset value would not work, because then it would parse for EVERY instance of a period and a newline, correct? How can I accomplish what I am setting out to do? (parsing by each instance of a period followed by a newline character.) Thanks. -Ryan
[REBOL] Looking for an Australian REBOL programmer Re:
[EMAIL PROTECTED] wrote: Hi from Australia, I am looking for a REBOL programmer based in Australia interested in taking on a paying project. The project involves sending web pages as HTML (including all images) via email from a Lotus Notes "website". The script also needs to look at an embedded comment field, extract the information as the subject of the email and send the page to a specified list depending on the keyword in the comment field. Any takers out there? Hi, I am not interested in taking job in Australia, but am interested in REBOL Lotus Notes combination, as LN are our main messaging platform here. (I am not in LN dev group though ...) Thanks, -pekr- Regards David Jacobs