[REBOL] rebol/view for beos Re:

2000-09-04 Thread bga

Em Monday, September 04 2000, 13:34:09, [EMAIL PROTECTED] 
([EMAIL PROTECTED]) disse:

is anybody else using this?

i would report some bugs, but the version on the web site has expired, i
thought i would wait to see if a new one was put up before sending any
reports.

so far i'm living with changing the date to beat the expirey :)

i've decided i'm going to write a full blown email program for beos using
rebol/view. none of the current email offerings are really any good.

i've been waiting for rebol/view for beos for a long time to do this...

I am trying to, but I'm unable due to some bugs in the current version of /
View for BeOS. I'm waiting for the next version.

-Bruno

-- 
Bruno G. Albuquerque [EMAIL PROTECTED] BeDevId #15362
  Grupo Brasileiro de Usuários de BeOS - Presidente
   http://beos.din.uem.br

"When the going gets tough, the tough get empirical"
-- Jon Carroll




[REBOL] rebol/view for beos Re:(5)

2000-09-04 Thread bga

Em Monday, September 04 2000, 15:39:05, [EMAIL PROTECTED] 
([EMAIL PROTECTED]) disse:

 BeOS (can't handle a persistent connection) and others are /View only 
 (can't use network connections at all).

is that why the network setup fails? i noticed that last night...

I think so. Hope people at RT are already aware and working on a fix.

-Bruno

-- 
Bruno G. Albuquerque [EMAIL PROTECTED] BeDevId #15362
  Grupo Brasileiro de Usuários de BeOS - Presidente
   http://beos.din.uem.br

Mencken and Nathan's Fifteenth Law of The Average American:
The worst actress in the company is always the manager's wife.




[REBOL] Don't by lazy dogzz! ;-) Marketing Re:(4)

2000-09-04 Thread bga

Em Monday, September 04 2000, 19:38:52, [EMAIL PROTECTED] 
([EMAIL PROTECTED]) disse:

 Petr Good Idea ... we should spread the word ... I first found out
 about REBOL on the Perl Mailing List.
 So get to work everyone and plant the seeds. Larry

One response to my efforts to spread the word was "No thanks" due to
them being asked for their email address and other stuff when they
went to download REBOL.  As REBOL can be found on CDs and elsewhere
without having to give out such info, perhaps it should be optional
on the REBOL site?

It *IS* optional. Just press the Ok (or whatever) button without filling the 
form in.

-Bruno

-- 
Bruno G. Albuquerque [EMAIL PROTECTED] BeDevId #15362
  Grupo Brasileiro de Usuários de BeOS - Presidente
   http://beos.din.uem.br

On a paper submitted by a physicist colleague:

"This isn't right.  This isn't even wrong."
-- Wolfgang Pauli




[REBOL] New REBOL/View for BeOS... When?

2000-08-31 Thread bga

The subject says it all. :) I'm using BeOS at home and at work and it would 
be great to be able to start coding REBOL/View scripts.

Did you guys managed to fix the network-related problems under BeOS?

Thanks.

-Bruno

-- 
Bruno G. Albuquerque [EMAIL PROTECTED] BeDevId #15362
  Grupo Brasileiro de Usuários de BeOS - Presidente
   http://beos.din.uem.br

It may be that your whole purpose in life is simply to serve as a
warning to others.




[REBOL] Running REBOL as a cron job.

2000-08-07 Thread bga

Hello.

I'm trying to run a REBOL script as a cron job. I have set the REBOL_HOME 
variable (in /etc/profile) to point to my REBOL directory, but I'm having 
problems as the script is supposed to send emails and it always complains 
that there is no smtp server set (or something like this). What a I missing?

-Bruno

-- 
Bruno G. Albuquerque [EMAIL PROTECTED] BeDevId #15362
  Grupo Brasileiro de Usuários de BeOS - Presidente
   http://beos.din.uem.br

Steinbach's Guideline for Systems Programming:
Never test for an error condition you don't know how to
handle.




[REBOL] Running REBOL as a cron job. Re:(2)

2000-08-07 Thread bga

Em Monday, August 07 2000, 15:17:06, [EMAIL PROTECTED] ([EMAIL PROTECTED]) disse:

 I'm trying to run a REBOL script as a cron job. I have set the 
 REBOL_HOME
variable (in /etc/profile) to point to my REBOL directory, but I'm having
problems as the script is supposed to send emails and it always complains
that there is no smtp server set (or something like this). What a I 
missing?


You need a line something like:

set-net [ [EMAIL PROTECTED] ###.###.#.## ###.###.##.### ]

Thanks. It worked.

Anyway, wasn't REBOl supposed to read the rebol.r and user.r files from the 
REBOL_HOME dir? 

-Bruno
 
-- 
Bruno G. Albuquerque [EMAIL PROTECTED] BeDevId #15362
  Grupo Brasileiro de Usuários de BeOS - Presidente
   http://beos.din.uem.br

Bathquake, n.:
The violent quake that rattles the entire house when the water
faucet is turned on to a certain point.
-- Rich Hall, "Sniglets"




[REBOL] Running REBOL as a cron job. Re:(4)

2000-08-07 Thread bga

Em Monday, August 07 2000, 16:21:51, [EMAIL PROTECTED] ([EMAIL PROTECTED]) disse:

Anyway, wasn't REBOl supposed to read the rebol.r and user.r files from 
the REBOL_HOME dir?

Except that, when a Rebol script runs as a cron job, the "user" is probably 
root, not you. So it doesn't know to read your user.r file.

Nah... I am root. :) I think the problem is that when the job is being 
executed, it doesn't get the REBOL_HOME variable that is set in /etc/profile. 
It would be cool if REBOL would look for these files in a deafult dir (like 
$HOME/.rebol)

-Bruno
 
-- 
Bruno G. Albuquerque [EMAIL PROTECTED] BeDevId #15362
  Grupo Brasileiro de Usuários de BeOS - Presidente
   http://beos.din.uem.br

Finagle's Creed:
Science is true.  Don't be misled by facts.




[REBOL] Relative to Absolute Paths (again).

2000-07-16 Thread bga

Hello.

I once asked about this problem and it's partially solved (thanks to 
everyone that helped me), but there is one minor problem that I'm usable to 
solve.

What I want to do is read and HTML page and change all relative paths to 
absolute ones. For example:

Change
img src="/path/file" 
To
img src="http://site/path/file"

or 

Change
a href="/path/file"
To
a href="http://site/path/file"

Here is the partial solution to the problem:

parse page: read http://site [
some [
thru "=^"/" here: (insert here "http://site")
]
to end

The problem here is that, with this code, I end up with something like

img src="/http://sitepath/file"

As you can see, the "http://site" string is being inserted in the wrong 
position. How do I fix it in the above sample code?

Thanks.

-Bruno
   
-- 
Bruno G. Albuquerque ([EMAIL PROTECTED]) BeDevId 15362
 Grupo Brasileiro de Usuarios de BeOS - Presidente
   http://beos.din.uem.br

"I am returning this otherwise good typing paper to you because someone
has printed gibberish all over it and put your name at the top."
-- English Professor, Ohio University




[REBOL] Changing relative paths to absolute ones.

2000-07-06 Thread bga

Hello.

I have been monitoring the progress of REBOL since its first release but 
only now I will start to use it to do something usefull. I created a simple 
script to read a web page and to send it to an email address (send user@host 
read http://www.server). The problem is that there are lots of relative 
references in this page (IMG SRC="/somedir/file.gif") and I need to change 
all of these references to an absolute path (IMG SRC="http://www.server/
somedir/file.gif").

I think the problem would be solved if I search for all =" and change it 
to ="http://www.server .

How can I do that? Note that I didn't even understood the REBOL syntax 
yet. :)

Thanks.

-Bruno





[REBOL] Changing relative paths to absolute ones. Re:(2)

2000-07-06 Thread bga

Em Thursday, July 06 2000, 17:39:01,  ([EMAIL PROTECTED]) disse:


parse page: read http://www.server [ some [thru "SRC=^"" here:
(insert here "http://www.server")] to end ]

Thanks for your answer. I tried that and it didn't seem to work, but I'm not 
even sure if i did the right thing. Here is how my script looks like:

REBOL [
Title: "Page Sender"
]

header: make system/standard/email [
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Subject: "Teste do NO. via REBOL!"
Organization: "Just a Test"
X-mailer: [REBOL]
MIME-Version: 1.0
Content-Type: "text/html"
]

parsepage: read http://www.no.com.br/servlets/
newstorm.notitia.apresentacao.ServletDeSecao [
some [
thru "src=^"" here: (insert here "http://www.no.com.br")
]
to end
]

send/header [EMAIL PROTECTED] parsepage header

Is it correct?

-Bruno




[REBOL] Changing relative paths to absolute ones. Re:(2)

2000-07-06 Thread bga

Em Thursday, July 06 2000, 17:40:16,  ([EMAIL PROTECTED]) 
disse:

The absolute path to your Web directory does not involve the http url.

For example, the path to an item in your Web directory may SEEM to be...

http://www.domain.dom/item.jpg

Note that I'm fetching the page with read http://www.server so all I got is 
the HTML file. In this file, paths to images are relative, and as I'm sending 
this page to another people, I have to make than absolute (prefixing http://
www.server to the path).

...when in fact the real path may be something like...

/boot/home/web/domain/item.jpg

Using BeOS too? ;)

If you are using a Web hosting service, ask them what the absolute path is 
to your Web directory.

I am the web hosting server. :) I'm using a ServLet that only generates 
relative references, so it would be easier to do the conversion in the REBOl 
script than in the Servlet itself.

Thanks anyway.

-Bruno