[REBOL] Re: Using call with view/pro

2002-03-13 Thread philb
Hi Gregg, Excellent, I will give it a go Cheers Phil === Original Message === Hi Phil, On Win98 when I run a native command using 'call is it possible to stop the MS DOS box being flashed up. Someone had this issue a while back, and calling the API directly solved it, if you're not

[REBOL] Re: Macro - function problems

2002-03-13 Thread Robbo1Mark
Hi Romano, Your solution is a close approxmiation of what Iam looking for - which is basically a higher order 'MACRO function which return a function bound to the 'name argument which when evaluated binds a paren! or 'DOES function to the first 'SPEC or 'ARGS argument and in turn substitutes any

[REBOL] Stopping errors from stopping the program.

2002-03-13 Thread Dr. Louis A. Turk
Hi rebols, How do I stop an error from stopping my program? I am sending a file to a remote server every 10 minutes to update data. When there is too much traffic on the net or the remote server is too slow receiving the file, an error occurs which results in my program dying. I want it to

[REBOL] IOS, another REBOLution

2002-03-13 Thread Carl Read
A link to this article IOS, another REBOLution... http://www.linuxfocus.org/English/March2002/article230.shtml has just (I think) appeared on RT's site. It's new, yes? -- Carl Read -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with unsubscribe in the subject,

[REBOL] Re: Using call with view/pro

2002-03-13 Thread philb
Hi Gregg, Running executables/batch files works OK. However I particularly wanted to copy a file from 1 location to another on Win98 without having to read the file in in Rebol and writting it back out again. This would preserve the date/time stamp. I am unsure as to what I should pass into

[REBOL] Re: index.r specifications

2002-03-13 Thread Graham Chiu
This might help. http://www.rebol.com/docs/desktop.html Thanks Allen. It looks as though the desktop dialect is incomplete in it's handling of paths above the index.r. I've changed my CGI script to turn files into urls instead, and that seems to work. And the counter works :)

[REBOL] Re: Stopping errors from stopping the program.

2002-03-13 Thread Carl Read
On 13-Mar-02, Dr. Louis A. Turk wrote: Hi rebols, How do I stop an error from stopping my program? I am sending a file to a remote server every 10 minutes to update data. When there is too much traffic on the net or the remote server is too slow receiving the file, an error occurs which

[REBOL] Re: Using call with view/pro

2002-03-13 Thread Gabriele Santilli
Hi Gregg, On Wednesday, March 13, 2002, 6:50:02 AM, you wrote: GI ; Operation values GI ; open GI ; print GI ; explore Gregg, could this be used to open/print PDF files too? (I'll try it anyway ASAP...) Regards, Gabriele. -- Gabriele Santilli [EMAIL PROTECTED] --

[REBOL] Re: GVIM Editor

2002-03-13 Thread Joel Neely
Hi, Louis, Dr. Louis A. Turk wrote: Except for the paste problem, there is only one thing about vim I have found so far that I don't like: when long lines are wrapped vim skips the wrapped part of the line completely when pressing j or k, and goes to the next line. I completely

[REBOL] Re: Question: [ searching for answer on GUI speed ]

2002-03-13 Thread SunandaDH
Hi Gabrielle, Thanks very much for the suggestions: What about: Style tgl Toggle 15x15 - + false Style nde Text blue bold font-size 14 I tried a variant on the Toggle, as I need both 'false and 'true settings depending on whether a tree branch is open or closed. Style

[REBOL] Re: Modal behaviour for a face (or modal face)

2002-03-13 Thread Gabriele Santilli
Hi Etienne, On Tuesday, March 12, 2002, 7:12:15 PM, you wrote: EA What I want is : a modal behaviour for a face; all events in this face EA are grabbed by itself and dispatched toward its sub-faces. All events EA outside this face are ignored. It should be sufficient to modify: print mold

[REBOL] Windows Uptime API

2002-03-13 Thread Terry Brownell
While were on the api thing, here's one that gives the system uptime in hours... rebol [] kern32: load/library %kernel32.dll cliks: make routine! [ return: [integer!] ] kern32 GetTickCount Uptime: cliks / 1000 / 60 / 60 print uptime halt TBrownell -- To

[REBOL] REBOL/Zine

2002-03-13 Thread Coussement Christophe
Any chance to ever see it back ? Jeff ??? ==chrsitophe -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with unsubscribe in the subject, without the quotes.

[REBOL] Adding Rebol Icon to the System Tray API

2002-03-13 Thread Terry Brownell
It looks possible, but beyond my API understanding... here it is in VB... http://www.vbsquare.com/api/tip178.html -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with unsubscribe in the subject, without the quotes.

[REBOL] Re: GVIM Editor

2002-03-13 Thread Joel Neely
Hi, again, Louis, Dr. Louis A. Turk wrote: I made the files you suggested, and did what you said, and it worked. However, when I place the cursor in the middle of a line where I actually want the text to be inserted, it still does not work. Instead the text is inserted _above_ the line

[REBOL] Re: GVIM Editor

2002-03-13 Thread Chris
Dr. Louis A. Turk wrote: So, please explain: why do you think emacs is better than vim? and for what uses would vim be better than emacs? Also, what version of emacs do you recommend for use with Windows 2000? To answer your questions in reverse order, Emacs-21.1 is the latest (and

[REBOL] Re: REBOL/Zine

2002-03-13 Thread Allen Kamp
Funny you should mention it, we were just discussing this yesterday. Look for a new issue by the end of this month! Any new contributions out there? Send to [EMAIL PROTECTED] Cheers, Allen K http://www.rebolforces.com/zine - Original Message - From: Coussement Christophe [EMAIL

[REBOL] Re: Stopping errors from stopping the program.

2002-03-13 Thread Micael . Gullmes
Hi! the until command will : Evaluates a block until it is TRUE. the prin {ftp failed: trying again ... } returns true, so the until will stop evaluating your code. I believe the following (non tested) code will work. until [ if error? try [write web-address read page-url] [ prin

[REBOL] Re: GVIM Editor

2002-03-13 Thread Joel Neely
Hi, Louis, (yet again ;-) Dr. Louis A. Turk wrote: :set nowrap But sometimes I want the lines wrapped, but I don't want the wrapped part of the lines skipped when moving the cursor up or down. Why can't I find that perfect editor? I have yet to find an editor that has a fully

[REBOL] Re: GVIM Editor

2002-03-13 Thread Joel Neely
Hi, Tim, Tim Johnson wrote: To advocate for Chris here, I believe that emacs is an easier start than vim... To be fair, I must admit that I've purchased the O'Reilly book on GNU Emacs and plan to start (again) trying it out for some things. However, I've never understood why some folks

[REBOL] Re: Modal behaviour for a face (or modal face)

2002-03-13 Thread Romano Paolo Tenca
Hi Etienne, I forgot in the previous answer this refinement of show-popup: show-popup/window an-existing-window you could look at the source of system/words/choose to see how it is used by RT. --- Ciao Romano -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED]

[REBOL] Re: Question: [ searching for answer on GUI speed ]

2002-03-13 Thread Romano Paolo Tenca
Hi, Gabriele Actually, you should say doesn't interpret the VID code fast enough :) If you look into the source of LAYOUT, you'll find it's doing quite a lot of things. It isn't using PARSE either, so all parsing is done in REBOL, not natively. (This is to make some of VID features

[REBOL] Re: Modal behaviour for a face (or modal face)

2002-03-13 Thread etienne . alaurent
En réponse à Gabriele Santilli [EMAIL PROTECTED]: Hi, Gabriele, Thank you. I will study this. Regards --- Etienne Hi Etienne, On Tuesday, March 12, 2002, 7:12:15 PM, you wrote: EA What I want is : a modal behaviour for a face; all events in this face EA are grabbed by itself and

[REBOL] Re: REBOL/Zine

2002-03-13 Thread [EMAIL PROTECTED]
Hi all, I have a problem: I wish to interrupt a program when it is running, using something like: print DEBUG: ask At this point, I want to analyze the variables used by my software, example: DEBUG: print myVar where myVar is a variable previously defined in the software. But...

[REBOL] getting rid of empty string in a block.

2002-03-13 Thread Bansard Stephane
Hi all, I want to sort a file by line alphabetic order. It appears it works at once as I write an idea ! Rebol is great ! str: copy [] foreach l (sort read/lines %my-file) [append str join l ^/] But I haven't thought of blank line which are empty string in the sort read/lines resulting block.

[REBOL] Re: GVIM Editor/download!

2002-03-13 Thread Tim Johnson
Hi Louis: * Dr. Louis A. Turk [EMAIL PROTECTED] [020313 00:34]: snip... The list server would not send them as attachments. Would you please send them as attachments again directly to my email address? Weird. My copy of my post to the list has them right there in the message. Hmmm!

[REBOL] Re: GVIM Editor/emacs/elisp-rebol

2002-03-13 Thread Tim Johnson
Hi Joe: * Joel Neely [EMAIL PROTECTED] [020313 05:25]: Hi, Tim, Tim Johnson wrote: To advocate for Chris here, I believe that emacs is an easier start than vim... To be fair, I must admit that I've purchased the O'Reilly book on GNU Emacs and plan to start (again) trying it out

[REBOL] Re: getting rid of empty string in a block.

2002-03-13 Thread pat665
Hi Stéphane Try this foreach i t [if (length? i) 0 [print i]] one two Rebol is smart, but not smart enough to figure out where to stop in that case : if length? i 0 Salut Patrick - Original Message - From: Bansard Stephane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday,

[REBOL] Re: Using call with view/pro

2002-03-13 Thread Gregg Irwin
Hi Gabriele, could this be used to open/print PDF files too? (I'll try it anyway ASAP...) You know, when I posted that last night, the same thought hit me! If the association is set up correctly, it should. Let me know if it works on your end, and I'll try it here as well. --Gregg -- To

[REBOL] Re: Adding Rebol Icon to the System Tray API

2002-03-13 Thread Gregg Irwin
Hi Terry, It looks possible, but beyond my API understanding... Unless someone knows how to intercept Windows messages from REBOL, you won't be able to receive notifications from it. The rest shouldn't be too hard, though you'd have to load the icon resources and pass the handle to them as

[REBOL] Re: GVIM Editor

2002-03-13 Thread Chris
#Wednesday 13 March 2002 13:10# Message from Joel Neely: To be fair, I must admit that I've purchased the O'Reilly book on GNU Emacs and plan to start (again) trying it out for some things. However, I've never understood why some folks think control-x control-f filename is easier

[REBOL] Re: GVIM Editor/emacs/elisp-rebol

2002-03-13 Thread Lok Yek Soon
At 07:49 AM 3/13/2002 -0900, you wrote: Tim Johnson wrote: I flipped a coin (sort of) heads: emacs, tails: vim. Came up tails :) I started off with emacs on a Unix environment but soon find out that emacs is not as widespread deployed as vi (some years back), and hence switch to vi.

[REBOL] Re: getting rid of empty string in a block.

2002-03-13 Thread Andrew Martin
Stephane wrote: str: copy [] foreach l (sort read/lines %my-file) [append str join l ^/] But I haven't thought of blank line which are empty string in the sort read/lines resulting block. str: copy [] foreach Line sort read/lines %my-file [ if not empty? Line [ append str join

[REBOL] Re: getting rid of empty string in a block.

2002-03-13 Thread Mike Myers
one way to remove empty strings from a collection is difference [A C E ] [] but because it is difference, there must be an empty string in the first collection. To get around that you can add one then remove all with append or union: difference union [] [A C E F ] [] or

[REBOL] Re: getting rid of empty string in a block.

2002-03-13 Thread Gregg Irwin
Hi Stephane, What would be the best solution to get rid of the empty strings ? (or of any empty values of a block, be they string or of any type? Could you give me a pointer to the explanation of this in the official doc ? I don't know if this is the best solution, but it's nice and general:

[REBOL] Re: GVIM Editor

2002-03-13 Thread Joel Neely
Hi, Chris, Chris wrote: The main difference here is that, unless you're using the Version Of Emacs For The Psychotically Masocistic (ie: running it in a plain tty), you have the option of using a mouse and menu in emacs. When I started learning emacs I didn't use the keyboard shortcuts -

[REBOL] Re: getting rid of empty string in a block.

2002-03-13 Thread Micael . Gullmes
Hi, here is a different approach: foreach i t [if not equal? trim i [print i]] one two This will also get rid of lines containing spaces. hope it helps. Brgds /Micael -Ursprungligt meddelande- Fran: Bansard Stephane [mailto:[EMAIL PROTECTED]] Skickat: den 13 mars 2002 17:39

[REBOL] Re: GVIM Editor

2002-03-13 Thread Joel Neely
Hi, all, Just for the sake of clarification, comparison, and contrast (not for advocacy -- I suspect that the more one thinks about it the smaller the differences appear), let me offer corresponding information for vim. the current official version of vim (6.0 -- 6.1 is still considered beta).

[REBOL] Re: getting rid of empty string in a block.

2002-03-13 Thread Bansard Stephane
Hi Patrick, Thank you for your answer. I had forgotten the precedence rule! Sorry. It's why foreach i t [if (length? i 0) [print i]] ** Script Error: length? expected series argument of type: series port tuple struct ** Near: length? i 0 wasn't working. Best regards, Stephane -- To

[REBOL] [refactoring s-c?]

2002-03-13 Thread pat665
Hi rebollers Again exploring Ladislav's contexts.html, I have difficulty understanding the s-c? function. The goal of the s-c? function is to test if two words are in the same context. Two Words WORD1 and WORD2 are bound to the same context, if the expression (s-c? word1 word2) yields TRUE.

[REBOL] Re: Serial Communications - GPS Sings!

2002-03-13 Thread Steve Shireman
I am curious who you are, I meant to try to contact you earlier when I saw this thread, but wasn't sure, is your name Jim? Is this a Garmin GPS-35 or ? I happen to reside in Kansas City, MO, across the state line from Garmin. We have integrated the Garmin GPS into our product line, as well as

[REBOL] Re: Windows Uptime API

2002-03-13 Thread Charles
You don't mention what version of REBOL is requird for this script. cliks: make routine! [ [ [ return: [integer!] [] kern32 GetTickCount ** Script Error: Feature not available in this REBOL Just as a general note, could people include something that states what

[REBOL] Re: REBOL/Zine

2002-03-13 Thread Charles
Off the top of my head, it sounds like a scope issue. Just because a variable exists in the script doesn't mean it exists outside of the script. Lots of discussion on this. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 13, 2002 10:41 AM

[REBOL] Class object inheritance library interest ?

2002-03-13 Thread Christian Morency
Hi Rebolers, Short version : Anybody interested in helping for this kind of library ? email me privately at: to-email rejoin [chrismorency @ videotron.ca] Long version : For the past few months, I've been working on a class object inheritance library for Rebol. I've been through several

[REBOL] Re: Serial Communications - GPS Sings!

2002-03-13 Thread Jim
Dear Steve, Yes it's Jim. I am in Canada, just west of Toronto. Somewhere near N43 39.015 W79 53.247 according to My Garmin Not exactly your neighbourhood, but close enough in global terms. I have a Garmin II+ by the way. Super reliable machine even after it drops off your car roof at 60mph. I