[REBOL] Re: fun with for loops

2002-08-01 Thread Carl Read
On 02-Aug-02, Charles wrote: > Howdy folks. Got a bit of a difficulty here. Say I'm evaluating a > for loop, like reading lines of text from a file. At the beginning > of my for loop, I have it check to see if the line is commented, > blank, or neither. If it's commented or blank, I want it to

[REBOL] Re: fun with for loops

2002-08-01 Thread Anton
Whoops, I missed an argument to 'loop: for ... [ loop 1 [ ; only once if condition [break] ; other code ] ] Anton. -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with

[REBOL] Re: fun with for loops

2002-08-01 Thread Anton
A trick I've used for "continue" is to break out of a loop, like this: for ... [ loop [ if condition [break] ; simulate "continue" ; other code ] ] Anton. >Howdy folks. Got a bit of a difficul

[REBOL] Re: Email woes on IBM/AIX Risc 6000

2002-08-01 Thread Anton
Hi, > >telnet smtprelay.avnet.com:25 > >type: > >EHLO your-client-url > >and return and wait to see if amongst the return messages you see: > >S: 250-AUTH=LOGIN > > > I'll try it, but I'm not sure what you mean by "your-client-url"? Do you > mean the url of the box I'm trying to email from?

[REBOL] Circular forwarding, once again

2002-08-01 Thread Charles
Argh. Not to be a complete dumbass, but I took a look at e-scribe for info on the circular forwarding problem, and .. well, found a couple things, but also a some successive posts that said it didn't work right. For instance, I found these two: http://www.escribe.com/internet/rebol/m10481.htm

[REBOL] Regarding tags

2002-08-01 Thread Charles
Hey! Yet another question from me :) How about this one. I have a tag, for instance: >> imgtag: To break it into its constituent parts, I do: >> imgtag: parse imgtag {"} == ["IMG" "SRC=" "../something/someimage.jpg"] So I change imgtag/3 to something else, and I wish to rebuild th

[REBOL] fun with for loops

2002-08-01 Thread Charles
Howdy folks. Got a bit of a difficulty here. Say I'm evaluating a for loop, like reading lines of text from a file. At the beginning of my for loop, I have it check to see if the line is commented, blank, or neither. If it's commented or blank, I want it to just skip to the next iteration o

[REBOL] Re: Email woes on IBM/AIX Risc 6000

2002-08-01 Thread Ed Dana
G. Scott Jones wrote: >Hi, Ed, > >It is not obvious from what you wrote about. Additionally, the smtp server >is not accessible from the Internet (or is not currently up) so I can't log >on with telnet to confirm what I think may be happening. My guess (judging >from info in your email header)

[REBOL] Re: PC Uptime

2002-08-01 Thread Anton
How do we get a pointer to the rebol window frame buffer from rebol? I don't think there is a way in rebol. However, that sparks an idea. You can probably open your own "windows" window, then you can find the pointer to its frame buffer. Anton. > While we are on the subject of using Windows call

[REBOL] Re: Executing Scripts in Windows

2002-08-01 Thread Charles
Hmm.. Kind of the crow-bar method, but is the only one I can think of as well. Fah, silly Windows. ;) Thanks Anton, Paul. :) > Sound like the script may be processing but might not have need to output to > console. You could put a 'halt statement as the last line of the script > your proce

[REBOL] Read dns:// question

2002-08-01 Thread Tim Johnson
Greetings Rebols: I find that a quick way to test for the existance of a domain is to do a read dns. Example: read dns://johnsons-web.com == 12.24.138.43 Are there any caveats to using this method? FYI, I would be using this method to do a test on an email

[REBOL] Re: PC Uptime

2002-08-01 Thread atruter
While we are on the subject of using Windows calls to do fancy stuff . . . anyone tried "wrapping" the DC (Device Context?), SetPixel and FreeDC routines to enable direct pixel manipulation. I don't know enough about the Windows API set myself but was told by a C programmer type that these three

[REBOL] Re: Email woes on IBM/AIX Risc 6000

2002-08-01 Thread G. Scott Jones
From: "Dana, Ed" > Last week, I had set REBOL up on an IBM/AIX Risc 6000. Everything seems to > work fine, but email. I can read http addresses no problem, but when I send > an email, it times out. > > My user.r file appears to be set correctly, and we can send email from the > box using other mea

[REBOL] Re: Multi-lingual strings

2002-08-01 Thread Louis A. Turk
Hi Greg, At 01:07 PM 8/1/2002 -0600, you wrote: >Hi Louis > ><< How can I force rebol to treat strings from my multi-lingual word >processor >as strings? Rebol seems to be treating one of the multi-lingual characters >as a quotation mark. >> > >Does your word processor save Unicode format? No,

[REBOL] Re: Multi-lingual strings

2002-08-01 Thread Louis A. Turk
Gregg, At 01:07 PM 8/1/2002 -0600, you wrote: >Does your word processor save Unicode format? Not unless I use Save as... (and I'm not). >If so, that's probably the >issue. REBOL doesn't do Unicode yet. I know. I sure wish unicode was supported---it would really simplify my life. >If that's n

[REBOL] Re: PC Uptime

2002-08-01 Thread Paul Tretter
Ahhh cool! Paul Tretter - Original Message - From: "Gregg Irwin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 01, 2002 2:54 PM Subject: [REBOL] Re: PC Uptime > Hi Paul, > > This works on W2K. I think the behavior is different on different versions > of Windows. >

[REBOL] Re: PC Uptime

2002-08-01 Thread Gregg Irwin
Hi Paul, This works on W2K. I think the behavior is different on different versions of Windows. lib: load/library %kernel32.dll beep: make routine! [ frequency [integer!] duration [integer!] return: [integer!] ] lib "Beep" beep 500 1000 --Gregg -- To unsubscribe from this list,

[REBOL] Re: PC Uptime

2002-08-01 Thread Paul Tretter
Heres a link to a url for creating a BEEP! However, I'm new to library functions and havent yet got this one to work on win2k. Anyone else want to try. http://216.26.168.92/vbapi/ref/b/beep.html Paul Tretter - Original Message - From: "Paul Tretter" <[EMAIL PROTECTED]> To: <[EMAIL PRO

[REBOL] Re: Executing Scripts in Windows

2002-08-01 Thread Paul Tretter
Sound like the script may be processing but might not have need to output to console. You could put a 'halt statement as the last line of the script your processing so that it ends with the console open. That way you can scroll to see if any messages were printed in the console window. Paul Tre

[REBOL] Re: PC Uptime

2002-08-01 Thread Gregg Irwin
Good one Paul! Often times, I'll use a routine name that emulates the API call and then wrap functions around them that translate values to more rebol friendly datatypes and values. E.g. lib: load/library %kernel32.dll get-tick-count: make routine! [return: [integer!]] lib "GetTickCount" up-time

[REBOL] Re: Multi-lingual strings

2002-08-01 Thread Gregg Irwin
Hi Louis << How can I force rebol to treat strings from my multi-lingual word processor as strings? Rebol seems to be treating one of the multi-lingual characters as a quotation mark. >> Does your word processor save Unicode format? If so, that's probably the issue. REBOL doesn't do Unicode yet

[REBOL] PC Uptime

2002-08-01 Thread Paul Tretter
I have been playing more with /PRO. Gotta admit, it gives you quite a bit more power than /core and /view. Here is a little PC Uptime monitor for you /PRO users. Use at your own risk! REBOL [ Title: "PC Uptime Monitor" Author: "Paul Tretter" ] libfile: %kernel32.dll getcount: "GetTick

[REBOL] Re: Executing Scripts in Windows

2002-08-01 Thread Anton
Just put halt at the end of your script if you want it always to give you a prompt afterwards. Anton. >Greetings folks. Here's my dillema. >I have it set so when I double-click on a .r file, it > automatically executes > REBOL with that script - eg, e:\code\rebol\core\rebol.exe file.r

[REBOL] Email woes on IBM/AIX Risc 6000

2002-08-01 Thread Dana, Ed
Last week, I had set REBOL up on an IBM/AIX Risc 6000. Everything seems to work fine, but email. I can read http addresses no problem, but when I send an email, it times out. My user.r file appears to be set correctly, and we can send email from the box using other means, so I'm not sure what's g

[REBOL] Re: How to access files ' properties under Windows

2002-08-01 Thread Anton
I think you are asking this question because you really want to control the "read only" file attribute flag. In rebol, this is the 'owner-write file-mode. Anton. > >> get-modes %index.html 'file-modes > == [creation-date access-date modification-date owner-write > archived hidden > system full-

[REBOL] Re: How to access files ' properties under Windows

2002-08-01 Thread Charles
I know that this is *insanely* late, but I just finally got around to this message. (I've been deleting messages/threads I'm not interested in, and saving interesting ones for later. Now happens to be later :P ) > >You don't need routines for that. REBOL can do that by itself, > >and in a p

[REBOL] Executing Scripts in Windows

2002-08-01 Thread Charles
Greetings folks. Here's my dillema. I have it set so when I double-click on a .r file, it automatically executes REBOL with that script - eg, e:\code\rebol\core\rebol.exe file.r .. However, something in my settings, I presume, dictates that, instead of the REBOL console just staying open, i

[REBOL] The Circle - one ring no rulers

2002-08-01 Thread Jason Cunliffe
Greetings: Thought y'all might be interested in this http://www.csse.monash.edu.au/~pfh/circle/ Excellent slides presentation: http://www.csse.monash.edu.au/~pfh/circle/talk.pdf The Circle is a scalable decentralized peer to peer application. Which is quite a mouthful. In English, what this me

[REBOL] Re: ANN: make-doc-pro-104 released

2002-08-01 Thread Daan Oosterveld
> Robert, you could maybe include a link to a xhtml validator > at the bottom of the generated page, if that's possible. > Maybe you can POST it? I might have a look tomorrow. The one and only html validator: Welcome to the W3C HTML Validation Service; a free service that checks documents like

[REBOL] Re: ANN: make-doc-pro-104 released

2002-08-01 Thread Robert M. Muench
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > On Behalf Of Anton > Sent: Wednesday, July 31, 2002 9:22 PM > To: [EMAIL PROTECTED] > Subject: [REBOL] Re: ANN: make-doc-pro-104 released > Hooray! Halt is now conditional on debug_mode ! :) Hi, yep time will s