For Programmers: Free Programming Magazines  


Home > Archive > Smalltalk > May 2005 > [VW7.2] Synchronizing files on web site and computer









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author [VW7.2] Synchronizing files on web site and computer
askoh

2005-05-18, 4:02 pm

I would like to automate the synchronization of files on my web site
and my computer. Is there any Smalltalk code to do that? I would
appreciate any help very much.

Thanks,
Aik-Siong Koh

Ian Upright

2005-05-18, 4:02 pm

"askoh" <askoh@askoh.com> wrote:

>I would like to automate the synchronization of files on my web site
>and my computer. Is there any Smalltalk code to do that? I would
>appreciate any help very much.
>
>Thanks,
>Aik-Siong Koh


You could roll your own.. but it might be easier to use a tool like
http://www.superflexible.com/

Ian

---
http://www.upright.net/ian/
Niall Ross

2005-05-20, 8:58 pm

Dear Askoh

> I would like to automate the synchronization of files on my web site
> and my computer. Is there any Smalltalk code to do that? I would
> appreciate any help very much.


1) Apologies if this is obvious and/or not relevant to what you need to do,
but FWIW:

You could use Cees de Groot's VersionedDirectory extensions to David
Pennell's 'File Repository' to integrate patch update with file
synchronisation. If your remote web site is powered by Smalltalk, and is
unstripped, then you can supply the VersionedDirectories in a patch parcel
with the appropriate postLoad action. The remote site's files will be
synched with local when it loads the patch. Your local VersionedDirectory
will see when your local files have changed, so can trigger patch upload,
which can be done by whatever mechanism suits - by hand, reuse the one in
BottomFeeder, roll your own, ...

(If the remote site does not have unstripped Smalltalk running it will not
be able to parse the file methods in the parcels, If you can drive the
export of files from Smalltalk, you could still subclass VersionedDirectory
to act as an updater. An image on your local machine could recognise when
files in a local directory had changed, thence export changed ones.)

I suspect Cees knows far more than I about this. Maybe he already uses it
this way.

Be aware that at the moment you must load RBSUitExtensions before loading
File Repository, since the latter changes the name of the code tool that the
former ss to wrap.

2) FYI, Punch, formerly Kangaroo, was a commercial Smalltalk product called
Kangaroo. It may be far too
high-powered for your needs and I know nothing of its current state
http://www.punchnetworks.com/compan...sp?pnid=730030.

Yours faithfully
Niall Ross






Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com