CASTRO (was: Will this mail arrive?)
[1/15] from: chalz::earthlink::net at: 28-May-2002 16:36
Oh, and where can we find this tool? Like, with ftp or http or something, and not just
Reb ;) Thanks.
--Charles
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
[2/15] from: chalz:earthlink at: 28-May-2002 16:34
****
I've send two mails last week and they still didn't made it to the list.
Nevermind, they were just some bug reports (sent to feedback as well so
I hope they've made it at least there).
**
Well, this one appears to have made it. I'm starting to think that people should include
a real-time stamp from REBOL just when they send it, so we can see what delivery patterns
are like. Granted, you could check the headers, but sometimes I'm not so sure which
time zone they use, if it's the time from the sender's computer or from his mail server,
etcetc
****
Yes, CASTRO, the [.r]ed Commander arrived right from Isle of Freedom to
REBOL near you.
**
*doh!* Clever! :)
****
You can:
show pictures
read and edit text files
browse directories (surprise ;)
**
Any known limits on sizes of pictures and text files (what editor does it use?), or depth
of subdirectories, and "funny-names", ie My Documents?
****
you cannot:
rename files
delete files
make directories
(no problem to code it but it was 1:00AM and I'm waking
up at 5:45AM ;)
**
Yeah, those are relatively simple tasks. And I understand the, "It's 1am, so deal with
it." ;) I do it too often myself.
****
copy files
(no problem for small files but copying some meg files
using write/binary read/binary combo doesn't look very wise to me...)
**
If I recall previous discussions on here, some suggested that you create a temp buffer
for copying, with a size cap; create and open the target file, read in the cap amount
of data (if there is at least that much) from the source file, then dump it into the
target file. Once it's been dumped, re-fill the buffer from the source file, dump again,
etcetc, until the remaining data is <= the buffer. I'm sure this isn't the absolutely
most efficient method, though. I have yet to do it myself, but I haven't really needed
to. The only large files I've really manipulated with REBOL were when I wrote a static
download assistant to download MP3s from a friend's machine via http and write them to
disk locally.
****
Why am I releasing such unuseful tool?
**
Because it has the potential to become useful? ;)
****
3. I don't know when I can enhance it as I'm pretty lazy and I like to
start something but I've got problems with finishing
4. So anybody use it, rewrite it, enhance it...
**
Yeah, that's the beauty of open source. At least, if you're willing to share your code.
If not, then you're screwed ;) Hehehe.
****
PS (to Piss Someone ;-) : I still don't understand why US government is
still boycoting Cuba and in the same time supporting China. They're
occupating Tibet, killing people on stadiums etc etc.. and what is Cuba
doing compared to China? OK, Fidel's talking in TV for hours and hours
and hours and hours and hours and hours...
**
*shrugs* The same reason we keep assisting poorer countries with money and arms and
food and medical supplies, even though they usually turn those supplies against us (ie,
Iran). But, we keep doing it. We're dense, I guess ;) Go figure
--Charles
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
[3/15] from: rebolek:seznam:cz at: 29-May-2002 8:20
I'm really sorry, it's on http://www.sweb.cz/rebolek/castro.r
or sites/rebolek/castro
and - if you does not have directories %/c/ and %/c/view/ then the
script crashes so you have to change the sourcecode.
it was written under View 1.2.5 (the new beta) so it may look strange in
1.2.1
***
> Well, this one appears to have made it. I'm starting to think that
people
> should include a real-time stamp from REBOL just when they send it,
> so we can see what delivery patterns are like. Granted, you could
check
> the headers, but sometimes I'm not so sure which time zone they use,
> if it's the time from the sender's computer or from his mail server,
etcetc
****
It took just hour or less for me to get this mail, it's OK now.
> Any known limits on sizes of pictures and text files (what editor
does it use?),
> or depth of subdirectories, and "funny-names", ie My Documents?
>
>****
It uses inbuild VIEW editor (just type editor in console or run it from
desktop to see it) so it has its limits. The image viewer is just simple
view/new layout [image (load %some-image)] - I have to enhance it
somehow.
The depth of subdirectories is AFAIK unlimited - if REBOL can read the
path then it can be shown in castro.
Same with funny names - depends only on REBOL.
> Yeah, those are relatively simple tasks. And I understand the,
> "It's 1am, so deal with it." ;) I do it too often myself.
>
:-))
**
> If I recall previous discussions on here, some suggested that
> you create a temp buffer for copying, with a size cap; create
<<quoted lines omitted: 7>>
> I wrote a static download assistant to download MP3s from a friend's
>machine via http and write them to disk locally.
****
Hmm, buffer...I think that the size of the buffer is very system
dependent...I'll rather use write/read first (so I'll have some room for
improvements and service packs ;-)
I'll add FTP for sure and maybe HTTP dir-browser?
> Yeah, that's the beauty of open source. At least, if you're
> willing to share your code. If not, then you're screwed ;) Hehehe.
I like open source very much. And it's really must with REBOL 'coz the
Very-Well-Known-Lack-Of-Documentation :-)
The next version will support browsing thru ZIP and RAR archives (no
unpack or pack, sorry) thanks to magical Oldes.
bye Bolek
[4/15] from: rebol665:ifrance at: 29-May-2002 13:53
Hi Bolek
Trying to run Castro (BTW I like the name!) I got the following. I have no /c/view/ directory
** Access Error: Cannot open /c/view/
** Where: list
** Near: pt: read path
files: copy
>>
Patrick
[5/15] from: nitsch-lists:netcologne at: 29-May-2002 13:54
Am Mittwoch, 29. Mai 2002 08:20 schrieb Boleslav Brezovsky:
> I'm really sorry, it's on http://www.sweb.cz/rebolek/castro.r
>
> or sites/rebolek/castro
>
> and - if you does not have directories %/c/ and %/c/view/ then the
> script crashes so you have to change the sourcecode.
>
Crashing on a reb-site?
why not
dir1: %./
dir2: dirize view-root/public
also to use editor without security-question,
you can use something like
append ctx-edit [
prefs: clean-path %./edit-prefs.r
]
next wishes:
saving current directories,
entering ftp-urls, with seperate password-question :)
[6/15] from: petr:krenzelok:trz:cz at: 29-May-2002 14:14
rebol665 wrote:
>Hi Bolek
>
>Trying to run Castro (BTW I like the name!) I got the following. I have no /c/view/
directory
>
>** Access Error: Cannot open /c/view/
>** Where: list
>** Near: pt: read path
>files: copy
>
just read and write Castro locally and edit it - you will find above
mentioned path defined there. So just change it to %/C/ e.g. or some of
your existing dirs ...
-pekr-
[7/15] from: rebolek:seznam:cz at: 29-May-2002 17:24
>Crashing on a reb-site?
>why not
<<quoted lines omitted: 8>>
>saving current directories,
>entering ftp-urls, with seperate password-question :)
Thanks for suggestions, I'll implement (some of ;) them immediatelly
wait for next version :)
BB
[8/15] from: rebolek:seznam:cz at: 29-May-2002 17:21
Hello,
I'm working on CASTRO right now so I've uploaded work in progress.
added and fixed:
* does not crash on path (starts in local directory)
* copy, delete, make-dir added (copying 5MB file takes less than
second on P350 - good surprise for me)
* four different languages!!! english, czech, german, spanish
(starts in czech I think, just press [lang] button in upper left corner
to select desired language - WARNING!!! All translation by me - it may
really hurt!)
known problems:
* does not copy directories
* deletes only empty directories
* cannot rename/move files (if I want to rename file, do I have
to copy it to same directory under new name and then delete old file or
is there some easier way?)
I'm now trying to implement ZIP and RAR support as I promised.
Thanks for replies and interest
>Trying to run Castro (BTW I like the name!)
:-) Thanks. I always at first came out with the name and then start
programming. If there wasn't documentary movie about Castro two days
ago, maybe there wasn't no REBOL directory tool ;-)
bb
[9/15] from: jason:cunliffe:verizon at: 29-May-2002 13:49
>> do %castro.r
** Script Error: Word source is protected, cannot modify
** Near: source: get-style/styles 'file-list fidel
destination:
I can disable protect-system in %user.r, but perhaps better for everyone if
name-conflicts in castro.r can be avoided?
./Jason [who agrees castro a great idea + name]
[10/15] from: atruter:hih:au at: 30-May-2002 11:04
> * cannot rename/move files (if I want to rename file, do I have
>to copy it to same directory under new name and then delete old file or
>is there some easier way?)
You can use 'rename to rename files in the same directory (eg. rename
%/c/view/a.txt %b.txt), but must do a copy/delete if the rename (actually a
move) spans directories.
Regards,
Ashley
[11/15] from: g:santilli:tiscalinet:it at: 1-Jun-2002 12:43
Hi Ashley,
On Thursday, May 30, 2002, 3:04:15 AM, you wrote:
ahca> You can use 'rename to rename files in the same directory (eg. rename
ahca> %/c/view/a.txt %b.txt), but must do a copy/delete if the rename (actually a
ahca> move) spans directories.
Actually it depends on the platform I think.
>> system/version
== 1.2.1.3.1
>> make-dir %test/
== %test/
>> write %testfile "Test"
>> rename %testfile %test/testfile
>> read %testfile
** Access Error: Cannot open /C/rebol/Script/testfile
** Where: halt-view
** Near: read %testfile
>> read %test/testfile
== "Test"
IIRC I used it successfully on Linux too. Of course, this does not
work if you are moving the file between different disks.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[12/15] from: atruter:hih:au at: 3-Jun-2002 9:35
<SNIP>
Actually it depends on the platform I think.
>> system/version
== 1.2.1.3.1
>> make-dir %test/
== %test/
>> write %testfile "Test"
>> rename %testfile %test/testfile
>> read %testfile
** Access Error: Cannot open /C/rebol/Script/testfile
** Where: halt-view
** Near: read %testfile
>> read %test/testfile
== "Test"
IIRC I used it successfully on Linux too. Of course, this does not
work if you are moving the file between different disks.
Regards,
Gabriele.
</SNIP>
Hey, you're write. Behaves this way on Win95 as well. I think I have always
misread the help on this:
USAGE:
RENAME old new
DESCRIPTION:
Renames a file to a new name.
RENAME is a function value.
ARGUMENTS:
old -- path to the old file (Type: file url)
new -- new name (not a path) (Type: file url string)
(SPECIAL ATTRIBUTES)
catch
as "new - new name (not containing a path)" . . . instead of, "new - new name (not a
path by itself)" . . .
Thanx for clearing up my confusion.
Regards,
Ashley
[13/15] from: g:santilli:tiscalinet:it at: 3-Jun-2002 11:29
Hi Ashley,
On Monday, June 03, 2002, 1:35:02 AM, you wrote:
ahca> as "new - new name (not containing a path)" . . . instead of, "new - new name (not
a path by itself)" . . .
Maybe the help says this way because it is not guaranteed to work
in all platforms? I think it does not work on the Amiga for
example, where moving has always been implemented as copy/delete.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[14/15] from: anton:lexicon at: 3-Jun-2002 21:31
That's not how I remember it.
I remember doing renames in the shell to move
stuff around on the same volume. (on amiga).
That's the reason it's always implemented,
because it's fast.
Show me an example of renaming across a path
that doesn't work on a particular platform,
then I'll begin to believe it.
Anton.
[15/15] from: g:santilli:tiscalinet:it at: 3-Jun-2002 15:50
Hi Anton,
On Monday, June 03, 2002, 1:31:01 PM, you wrote:
A> I remember doing renames in the shell to move
A> stuff around on the same volume. (on amiga).
Hmm maybe my brain is starting to lose neurons. :)
A> Show me an example of renaming across a path
A> that doesn't work on a particular platform,
A> then I'll begin to believe it.
Dunno, it works both in win and linux.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted