[REBOL] passing argument to a script Re:

2000-06-20 Thread support
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 21, 2000 12:32 PM Subject: [REBOL] passing argument to a script > how do i retrieve an argument from a script which is called from a command > line. for example, pick one of the one-line exampl

[REBOL] passing argument to a script

2000-06-20 Thread mikelot
how do i retrieve an argument from a script which is called from a command line. for example, pick one of the one-line examples for ftp'ing a file. I'd like to call it from a shell like "rebol ftp.r afile"

[REBOL] A view FAQ

2000-06-20 Thread allenk
Hi Rebols, I have gathered together some of the wisdom from the ally list into a FAQ for Rebol/view beta 4.1 Hope you find something useful in it. REBOL [] browse http://www.janita.com.au/rebolforces/reb/view-faq.html Cheers, Allen K

[REBOL] how to do the string comparison Re:

2000-06-20 Thread larry
Hi tZ >> a: "helloworld" == "helloworld" >> found? find a "hello" == true >>help find ; for more info -Larry - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 20, 2000 3:24 PM Subject: [REBOL] how to do the string comparison > Hello, > > C

[REBOL] teeny-bits-of-time/2 Re:(6)

2000-06-20 Thread larry
Hi Petr > > In December 99, I ran a lot of timings for linear algebra operations in > > REBOL, for instance matrix multiplication, matrix inversion, LU > > decomposition, etc. on 100x100 randomly generated matrices. The bottom line > > was that REBOL was about 80-300 times slower than MATLAB whi

[REBOL] how to do the string comparison

2000-06-20 Thread Tiana . Zhang
Hello, Can anyone help me on the following problem? How can I detect a string which is a part of another string? e.g, a: "helloworld" b: "hello" How can i tell b is part of a? Thanks a lot. tZ

[REBOL] How can I process a whole directory Re:

2000-06-20 Thread Petr . Krenzelok
[EMAIL PROTECTED] wrote: > Hello, I have a rebol script process a specific file. How can I add code to make > it process all the files in the directory? > > I tried to change the following line > FileStream: read/lines %files1.txt > to > FileStream: read/lines %mydir/*.txt dir: read %m

[REBOL] How To /Command From /View Re:

2000-06-20 Thread Petr . Krenzelok
[EMAIL PROTECTED] wrote: > Although I currently don't have the need to do this, I > am wondering how best to perform a /Command function > from /View. Hmm, as /Command functionality is something we will be probably pay some money for, the question is just reverse - how to get /View functionali

[REBOL] How can I process a whole directory

2000-06-20 Thread Tiana . Zhang
Hello, I have a rebol script process a specific file. How can I add code to make it process all the files in the directory? I tried to change the following line FileStream: read/lines %files1.txt to FileStream: read/lines %mydir/*.txt But it didn't work. Any quick fix for this script?

[REBOL] teeny-bits-of-time/2 Re:(5)

2000-06-20 Thread Petr . Krenzelok
> My guess is that REBOL is a (nearly) pure interpreter, so no "compiling" to > byte-code or equivalent is involved. Would it be even possible to even partially compile rebol? I know there was Joe's Marshall Sherman, but it was for REBOL 1.x family ... > LOOP is the fastest method, closely follo

[REBOL] How To /Command From /View

2000-06-20 Thread rsnell
Although I currently don't have the need to do this, I am wondering how best to perform a /Command function from /View. For instance, let's say I have a /View app that is working great but I really need the Win32 version to access the Registry when an edit box is filled. No problem - just use /

[REBOL] teeny-bits-of-time/2 Re:(5)

2000-06-20 Thread rsnell
Excellent Larry - thanks for the explanations (although the GetSystemTime() vs. time() one still baffles me - I'll dig into the assembly code when I get some time). It's good to know that Rebol is probably a (nearly) pure interpreter especially when dealing with loop calculations. The fact that

[REBOL] teeny-bits-of-time/2 Re:(4)

2000-06-20 Thread larry
Hi Rodney I found your test results interesting. > I don't quite understand a couple of things. The first is how > GetSystemTime() can be faster than time() (since it is splitting > out all the fields year, day, etc.). The second is why it takes > Rebol so long. I of course would expect Rebol

[REBOL] teeny-bits-of-time/2 Re:(3)

2000-06-20 Thread rsnell
Regarding timestamp - of course it would be possible to create your own timestamp string from the pieces you want but maybe a new refinement on either the time or date value or 'now function could be created. Call it /nonano to retrieve the classic time/date stamp. Just a thought. Regarding the

[REBOL] benchmarking (teeny-bits-of-time/2 ) Re:(3)

2000-06-20 Thread RChristiansen
I thought using a counting expression would be a simple way to benchmark a system. My results are disturbing, however. Consider my original expression: forever [ t: now c: 1 while [ now = t ][ c: c + 1 ] print c c: copy [] ] Here are the r

[REBOL] Andrew, you beast! - GC too tidy? Re:(7)

2000-06-20 Thread chaz
This is the best comparison of Rebol to another language! Will it get turned into a webpage, so it can be put on the www.rebol.org links page? > >JB, you may not be familiar with REBOL history, but the 1.x >versions of REBOL were based on Scheme semantics. REBOL was >much slower back then, and ha

[REBOL] open/direct not working right? Re:

2000-06-20 Thread yaozhang
once read the doc regarding port access to file remember the /direct refine works somewhat like tape without rewind. it point to the bigining when open, then move forward when 'write (in your case) i think it behave this way cause there's no buffer avail yet you could use 'skip to locate the poin

[REBOL] layout/style ? Re:(2)

2000-06-20 Thread yaozhang
thanks. understand by 'stylize your able to stylize the sub-face (face in pane?). not sure if it's capable of affect main face, which created by 'layout? events will be passed from main face to sub-face, yet it could be neat (sometimes) to trap/process the event in the main. i am trying to add hot

[REBOL] How's this for frustration... or...NT/CGI/mail prob solved...

2000-06-20 Thread tbrownell
FINALLY!!! No matter what I tried I could not get the "send" command to work on my NT4/IIS3.0 via a certain cgi script. If I called a basic "send" script on its own via cgi it worked fine, the console worked fine...EVERYTHING WAS WORKING FINE... except the script I NEEDED to work. Here's what h

[REBOL] layout/style ? Re:(2)

2000-06-20 Thread yaozhang
hoho it doesn't complain now ...yet my 'feel is bugged...got something to do thanks, Larry -z --- [EMAIL PROTECTED] wrote: > Hi z > > Try > > >> view layout/parent .. > > The name was changed from style to parent in Viewbeta 4.1. > > -Larry > > - Original Message - > From: <[

[REBOL] teeny-bits-of-time/2 Re:(2)

2000-06-20 Thread carl
You are correct... that what all those bits for subseconds are hanging around for. It's supposed to be part of REBOL/Core. But, it would also create the problem of NOW returning that many digits. Do you want your email to be timestamped: 20-June-2000/7:35:42.532654-7:00. Maybe. Also, WRT ca

[REBOL] making a big file Re:

2000-06-20 Thread carl
Yes, there are some recycling issues that we are addressing at this very moment. Will keep you posted. -Carl At 6/19/00 08:56 PM -0400, you wrote: > > > >Goal, Mt. GigaJunk, a gigabyte of junk. > >just as before, having given up on open/binary/direct followed by insert tail, >I am using writ

[REBOL] HTTP Header Content Re:

2000-06-20 Thread Petr . Krenzelok
[EMAIL PROTECTED] wrote: > Is there a way to read the HTTP header content when using "read >http://somewhere.com"? I'm testing an embedded web server and need to know all >content that is being retrieved. http://www.rebol.com/howto.html#tcp.html Cheers, -pekr- > > > Thanks. > > --== Sent v

[REBOL] HTTP Header Content

2000-06-20 Thread mrrinker
Is there a way to read the HTTP header content when using "read http://somewhere.com"? I'm testing an embedded web server and need to know all content that is being retrieved. Thanks. --== Sent via Deja.com http://www.deja.com/ ==-- Before you buy.

[REBOL] using tcp:// with an unknown port Re:(5)

2000-06-20 Thread kgozlin
I think you can't, but you don't have to care about OS assigned ports, you can put and get data from your 'z port, see how-to karol [EMAIL PROTECTED] wrote: > As an addition to this message, how would one do the following? > > When one connects to a remote IP address, we get a local port numb