World: r3wp
[Core] Discuss core issues
older newer | first last |
Sunanda 21-Mar-2005 [801] | Try set-modes: http://www.rebol.com/docs/words/wset-modes.html http://www.rebol.com/docs/words/wget-modes.html |
Graham 21-Mar-2005 [802] | >> port: open/binary %xml-object.r >> set-modes port [creation-date: 1-Dec-2004 ] ** Access Error: Cannot open /D/rebol/rebXR/xml-object.r ** Near: set-modes port [creation-date: 1-Dec-2004] |
Sunanda 21-Mar-2005 [803] | What about set-modes %xml-object.r [creation-date: 1-Dec-2004 ] But may not work on windows -- not all modes are supported. |
Graham 21-Mar-2005 [804x4] | no, doesn't work either. |
hey, that works ! | |
I still had the port open so the first attempt failed | |
kewl. | |
Allen 21-Mar-2005 [808] | Larry's list of RegEx shortcomings http://www.perl.com/pub/a/2002/06/04/apo5.html?page=2 |
Graham 21-Mar-2005 [809] | 24 pages of problems ?? |
Tomc 21-Mar-2005 [810] | it's a start ... |
Graham 21-Mar-2005 [811] | I'll sleep better tonight now :) |
DideC 21-Mar-2005 [812] | Does one say what is the syntax to specify parity on a serial port ? I saw "parity: none" on docs, but what does it mean, even or odd ? And so what is the other syntax (odd or even) "parity: ????" |
Dockimbel 21-Mar-2005 [813] | 'none means "no parity". parity: 'odd or ' even should work fine. |
Pekr 21-Mar-2005 [814] | port/update should be applied after the change IIRC ... |
DideC 21-Mar-2005 [815] | So I can use 'odd or 'even in the URL ? Ie : open serial://port1/9600/8/even/1 |
Pekr 21-Mar-2005 [816] | not sure ... |
DideC 21-Mar-2005 [817] | will try ;-) |
Pekr 21-Mar-2005 [818] | but maybe so, as you can use /none/1 |
DideC 21-Mar-2005 [819] | Seems to work ! Thanks |
Pekr 21-Mar-2005 [820x2] | I also set rts-cts: off |
I am not sure if rebol serial ports do work without that. I wanted simply my rebol tool to find our device on whatever port (autoscan) and it imo hangeg the app, even if I used open/direct/no-wait | |
Gregg 21-Mar-2005 [822] | WRT RegEx's -- I did a simple wildcard matcher (emulates VB's Like operator), and looked at hooking up PCRE, but it had a funky interface to it and I didn't get it working in the limited time I spent on it. |
Graham 22-Mar-2005 [823] | Is it possible to set the modification date on a directory? I keep getting errors whereas it works with files in win32. >> set-modes %xml-parse.r [ modification-date: 1-Jan-2005 ] >> set-modes %www/ [ modification-date: 1-Jan-2005 ] ** Access Error: Cannot open /D/rebol/rebXR/www/ ** Near: set-modes %www/ [modification-date: 1-Jan-2005] >> set-modes %www [ modification-date: 1-Jan-2005 ] ** Access Error: Cannot open /D/rebol/rebXR/www ** Near: set-modes %www [modification-date: 1-Jan-2005] >> |
Anton 22-Mar-2005 [824] | I think I remember getting the same error with directories. |
Graham 22-Mar-2005 [825x2] | Shame ... |
I am writing this file/directory replication tool, and I want to preserve the dates on the newly created directories | |
Anton 22-Mar-2005 [827] | Well, I am stuffing around with files in C at the moment. I will see if it can be done with Windows api. |
Graham 22-Mar-2005 [828] | that would be cool. |
Anton 23-Mar-2005 [829] | (go to Windows group) |
[unknown: 5] 23-Mar-2005 [830] | Graham I did something similiar which allows me to write the date to another target just as it appears in the original - kinda like a backup. However, I need to modify it so that the target dates are stamped as they are originally. Currently it changes the stamp. |
Ammon 23-Mar-2005 [831] | Have you looked at Bo's LTC-Backup application that is on Developer? |
Volker 23-Mar-2005 [832x2] | http://vbnet.mvps.org/index.html?code/fileapi/folderdatetime.htm for visual basic, googled "windows change directory date api" |
can zip do it? | |
Graham 25-Mar-2005 [834] | >> to-block %test == [test] >> to-block %test/ ** Syntax Error: Invalid path -- test/ ** Near: (line 1) test/ |
Tomc 25-Mar-2005 [835] | >> b: copy [] insert b %test/ == [] >> b == [%test/] |
Volker 26-Mar-2005 [836x2] | file! is an any-string and thus sourced. probe to-block %"1 + 2" |
only usable for loading from strings, or with some caution IMHO. probe to-block mold/only %test/ | |
Raimund 30-Mar-2005 [838] | Hi, is it possible to restore the date of a file which was read via ftp? |
Colin 30-Mar-2005 [839] | How about not using ftp and try Coyote :) |
Chris 30-Mar-2005 [840] | >> foo: [a [does this]] == [a [does this]] >> bar: [b [does that]] == [b [does that]] >> rejoin [foo bar] == [a [does this] [b [does that]]] Is there an equivelant function that would give me: == [a [does this] b [does that]] |
Izkata 30-Mar-2005 [841] | >> A: [] == [] >> insert A bar == [] >> insert A foo == [b [does that]] >> ? A A is a block of value: [a [does this] b [does that]] |
Chris 30-Mar-2005 [842] | Yep, I can fudge it that way, but I was looking for a single function, like 'rejoin or 'reduce |
Izkata 30-Mar-2005 [843x4] | Or, if you don't mind changing 'bar: >> insert bar foo == [b [does that]] >> ? bar BAR is a block of value: [a [does this] b [does that]] |
There probably is, but I prefer simpler commands so I know what's going on (^.-) | |
ah | |
compose [(foo) (bar)] | |
Ammon 30-Mar-2005 [847] | How about... >> foo: [a [does this]] == [a [does this]] >> bar: [b [does that]] == [b [does that]] >> append copy foo bar == [a [does this] b [does that]] >> compose [(foo) (bar)] == [a [does this] b [does that]] |
Izkata 30-Mar-2005 [848] | ugghhh I still needa get used to 'copy |
Chris 30-Mar-2005 [849x2] | No, specifically looking for -- word [foo bar] |
I have a feeling that if 'reduce doesn't do it, then nothing will... | |
older newer | first last |