[REBOL] my most frequent complaint Re:
= Original Message from [EMAIL PROTECTED] at 4/03/00 9:41 am >[EMAIL PROTECTED] wrote: > >> ...about scripting languages is that they let you do a whole lot *very* >> quickly and then you're stuck. My current case in point, is this program >> I'm writing to sync files from the three different computers I use to a >> central location. (bookmark files, address books, etc.) >> >> All the stuff that I expected to be hard was easy: querying a FTP site, >> uploading and downloading files, comparing file dates and times. >> >> The part that I expected to be easy seems impossible: setting the time on a >> file in the local file system. I never once imagined that I wouldn't be >> able to do this. > >I am sorry, but I don't think you will easily find many scripting languages which >will allow you >to do so, or am I wrong? No. You are correct, hence my complaint. It wasn't targeted at Rebol, but scripting languages in general. I'm C/C++programmer, and I constantly have hopes that a scripting language will arise that I can switch to. The happiest I've been was when I had my own interpreter using the Postscript dialect. For the most part I wrote in Postscript. When I need to do something better done in a language like C, I wrote it in C and added it as a builtin function. It was awesome, but it since it was all custom it wasn't something I could really use at work. If you supported a mechanism to call DLL's, and maybe created a generic one, people could use Rebol for what it's good at and switch to a langauge like C for the things it's not good at--like talking to the system. I know this violates the whole portable code thing, but it's *really* useful and no one *has* to use it. I really doubt that one language will ever be all things to all people. Two languages quite possibly might do the trick. We just need some glue and Rebol looks like pretty good glue. >> It's incredibly frustrating. Is there a way to make calls to custom DLL's? >> > >Wait for the /Command version ... Okay, I'm waiting... (any idea how long???) Brad
[REBOL] my most frequent complaint
...about scripting languages is that they let you do a whole lot *very* quickly and then you're stuck. My current case in point, is this program I'm writing to sync files from the three different computers I use to a central location. (bookmark files, address books, etc.) All the stuff that I expected to be hard was easy: querying a FTP site, uploading and downloading files, comparing file dates and times. The part that I expected to be easy seems impossible: setting the time on a file in the local file system. I never once imagined that I wouldn't be able to do this. It's incredibly frustrating. Is there a way to make calls to custom DLL's? Thanks, Brad = Original Message from [EMAIL PROTECTED] at 4/03/00 8:06 am >Hi > >Does anyone know the SERIES package for CommonLisp >(http://series.sourceforge.net/) and can explain difference and common referring to >Rebol ? > >Thanks > >AR > >-- >Sent through GMX FreeMail - http://www.gmx.net
[REBOL] ftp file time verses local file time
I'm creating a script that syncs files from the different computers I use to a FTP server. Trying to compare files is becoming a problem. My compare looks like this: sync: 31-Mar-2000/17:53 > src: 31-Mar-2000/16:38:40-8:00 Note the -8:00 on the src. That's the time-zone data. Any thoughts on how to either eliminate the time-zone data on one or to include it on the other? Brad = Original Message from [EMAIL PROTECTED] at 3/31/00 2:23 pm >I'm writing and have mostly working a script that syncs files on a local >system to a FTP server. The only remaining problem has to do with the file >time. Ideally, I would like the file write time on the FTP server to be the >same as the file I'm uploading. I have no idea how this would be done. An >acceptable alternative would be to reset the local file time to that of the >one I just uploaded. I already know how to get its time. If someone would >be so kind as to tell me hoe to set the write time of a loca file I would >much appreciate it. > > > > >Brad Emerson > >[EMAIL PROTECTED] Brad Emerson [EMAIL PROTECTED]
[REBOL] Set the file write time
I'm writing and have mostly working a script that syncs files on a local system to a FTP server. The only remaining problem has to do with the file time. Ideally, I would like the file write time on the FTP server to be the same as the file I'm uploading. I have no idea how this would be done. An acceptable alternative would be to reset the local file time to that of the one I just uploaded. I already know how to get its time. If someone would be so kind as to tell me hoe to set the write time of a loca file I would much appreciate it. Brad Emerson [EMAIL PROTECTED]
[REBOL] Parsing examples? Re:(2)
You guys are awesome! >Hi Brad, >you wrote: >[snip] > >I want to write an XML'ish parser. Which is to say that I need to match > >beginning and ends of tags, but I don't know the tag names. i.e. > >bookXML in a nutshell The tags are made up for a > >specific data set, but i don't know what they are in advance. I know they > >begin like this, and end like this > >Check out > >> source xml-language > >You may find it helpful, especially the function xml-language/parse-xml, >which is used by the global word parse-xml. > > >> source parse-xml > > >;- Elan >> [: - )]
[REBOL] Parsing examples? Re:(2)
>'thru' and 'to' are part of the parse sub-language, not of the REBOL >language. That is why they are not in the REBOL dictionary. I see. I would argue that a dictionary that uses words in a definition that are not in the dictionary is wrong in doing so. Brad >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, February 29, 2000 8:48 AM >To: [EMAIL PROTECTED] >Subject: [REBOL] Parsing examples? > > > >It seems that the 'parse' function in Rebol is quite advance, the >documentation--at least in the dictionary, suggests great things. This >example they give is awesome--also pretty much unexplained: > >;page: read http://www.rebol.com >;parse page [thru copy title to ] >;print title > >I searched for 'thru' and 'to' which are not in the dictionary. The >documentation is the biggest handicap to this language's success. The >funny thing is that title is actually a variable after running this. > >I want to write an XML'ish parser. Which is to say that I need to match >beginning and ends of tags, but I don't know the tag names. i.e. >bookXML in a nutshell The tags are made up for a >specific data set, but i don't know what they are in advance. I know they >begin like this, and end like this > >Thanks > >Brad
[REBOL] Parsing examples?
It seems that the 'parse' function in Rebol is quite advance, the documentation--at least in the dictionary, suggests great things. This example they give is awesome--also pretty much unexplained: ;page: read http://www.rebol.com ;parse page [thru copy title to ] ;print title I searched for 'thru' and 'to' which are not in the dictionary. The documentation is the biggest handicap to this language's success. The funny thing is that title is actually a variable after running this. I want to write an XML'ish parser. Which is to say that I need to match beginning and ends of tags, but I don't know the tag names. i.e. bookXML in a nutshell The tags are made up for a specific data set, but i don't know what they are in advance. I know they begin like this, and end like this Thanks Brad
[REBOL] select question
I have a series with multiple identical entries, but different values: [ "book" "The Hobbit" "book" "The Stand" "candy" "Mars Bar" "candy" "M&M" ] I want to search the series for each occurrence of say "book" and then evaluate it for a match. How can I do this? Or, is select perhaps not the right hammer to beat this puzzle with? Brad Emerson
[REBOL] select help
This is probably a repeat, but I don't see my original posting. How do you search a key-value sort of series when the key can appear more then once? i.e. [ a 200 b 22200 a 22323 ] Select returns 200. If 200 isn't what I'm searching for I want to look for the next. Brad Emerson
[REBOL] example of switch...
Can some one please give me an example of how to use /default in a switch construction? TIA Brad P.S. The dictionary *really* falls down in advanced examples...
[REBOL] email question Re:(2)
It's hard to imagine a more complete answer. :) Thanks. Brad >Brad wrote: > > Is there a way to remove pop mail from the server as you read it? > >Try the beta manual on the Post Office Protocol (POP) > %netpop.html > > > >Deleting Email >REBOL provides two words that can be used to delete email. The remove >function deletes single messages, while clear deletes all messages from the >current index to the end of the pop account. > > >remove mailbox > >removes the current message of an online account. To remove the 22nd message >from the host, for instance, use skip n - 1 , where n is the index of the >message to be removed. > >remove skip mailbox 21 > >removes the twenty-second message of the online email account, provided the >index of mailbox has not been modified and mailbox is pointing at the first >message. Actually, the message will not be removed until the connection is >closed. >To empty your online account completely, use the clear function: > > >mailbox: open pop://username:[EMAIL PROTECTED] >clear mailbox >close mailbox > >Which messages are removed depends on the relative position of the word >mailbox > > > >I hope that helps! > >Andrew Martin >ICQ: 26227169 >[EMAIL PROTECTED] >http://members.xoom.com/AndrewMartin/ >-><-
[REBOL] email question
Is there a way to remove pop mail from the server as you read it? I'm working on a command based email service and I have to use another program to remove the email once it has been processed. Brad
[REBOL] messaging between instances?
Can you send messages between local Rebol instances?
[REBOL] Databases? Re:(2)
> >Access. > >My understanding is that REBOL/Command will have built-in support for ODBC >... once it becomes available. Thanks. The future is bright. > > Unless there is support for doing this from Rebol I'll be forced > >to use Perl. > >No comment. I have a comment... PERL sucks. :) Thanks much for the information, Brad
[REBOL] Databases?
I need to do a project and it requires a database--specifically Access. Unless there is support for doing this from Rebol I'll be forced to use Perl. Any one doing this? Pointers? Brad Emerson
[REBOL] Just wierdness Take 2 Re:
The problem is that I'm working with things I don't understand and I can't find good documentation. I found some code to connect to an email server. Something like this: -- x: [ scheme: 'pop user: "srad" pass: "portw" host: "mail.aneurosmith.com" ] open x I don't understand this array which looks like a structure. (I still have hope that I'll find dictionaries in here somewhere...) I actually intend to process an array of these blocks and generate a report if unable to open the connection. One question is what's going on above? Is it just a block of code to define some variables? Instead of trying to search the array should I just execute it (do?) and then use the variables directly? That's probably it... Does this language have key-value pair functionality? Thanks. Brad
[REBOL] Just wierdness
I'm trying to create an application to keep an eye on some email servers I have and alert me if they stop responding. It's working, but I'm going *crazy*! Try this from the Rebol prompt a1: [ a: "aaa" b: "bbb" ] a2: [ fox: "fox" box: "box" ] find a1 a == none find a2 box == [ "box" ] This is crazy. My other craziness is that a key (host:) can't be found (as in FIND) in a block, but a key named host2 can be. [ scheme: 'pop user: "brad" pass: "wort" host: "mail.aneusdamith.com" alert: [EMAIL PROTECTED] host2: "mail.aneusdamith.com" ] I end up with the duplicate host2 so I can know the host's name if there is an error connecting. The random'ish behavior is so frustrating. Brad Emerson
[REBOL] Cookies in Rebol? IDE? Re:(2)
I took a quick peek and did a search but I didn't find the word cookies anywhere. Could you be more specific? Brad Emerson >--- [EMAIL PROTECTED] wrote: >1. How do you set and read cookies from Rebol scripts? I am trying to >use Rebol to write my CGI's and i can't find info on cookies. >--- end of quote --- >There are cookie parsers on www.rebol.org in the web or cgi section that >may be of use. > >I know several list members have written additions for their >editors. There was a discussion of that not too long ago. > >-- >Andrew Grossman >http://web.dartmouth.edu/~grossman/pgp.html