Home

AardWorks Gossip update

I just had the idea to see whether some old, AardWorks Gossip-based code would still work and to my surprise it did. So that prompted me to refresh the public repository we have used for the project’s code, it hadn’t seen updates for quite some time (note to self: make a script to do all the copying).

First, some build instructions. The safest thing to do is mimic our environment as much as possible. You’re on your own anyway, but any deviations and you’re more on your own :-) . Open a fresh image, and start building up our development environment (I have to use two repositories here - SqueakSource doesn’t seem to grok .mcm files):

| repTric repSqs verName cfg |
MCRepositoryGroup default addRepository:
  (repSqs := MCHttpRepository
    location: 'http://kilana.unibe.ch:8888/DGV'
    user: 'squeak' password: 'squeak').
MCRepositoryGroup default addRepository:
  (repTric := MCHttpRepository
    location: 'http://de-1.tric.nl/~cg/mc'
    user: 'squeak' password: 'squeak').
#('Monticello-' 'MonticelloConfigurations-') do:
  [:each |
    verName := (repSqs allVersionNames select:
      [:each2 | each2 beginsWith: each]) last.
    (repSqs versionFromFileNamed: verName, '.mcz')
      load].
cfg := repTric versionFromFileNamed:
  'Cfg-Kolibri-Dev-CdG.2005112202.mcm'.
cfg updateFromRepositories; load.

This will give you a lot of code that’s otherwise useful as well: a working MonticelloConfigurations setup (including the necessary components), the RefactoringBrowser and my RefractoringBrowser hack, so keep the script around if you want a quick way to setup such an image :-) . Next, Kolibri. If you have started this with a wxSqueak image, you can grab the full GUI version:

cfg := repTric versionFromFileNamed:
  'Cfg-DivaWxUi-JJ.2005112206.mcm'.
cfg updateFromRepositories; load.

If not, you’ll want the “headless” configuration–no wxSqueak UI, but you can still play with the goodies down below:

cfg := repTric versionFromFileNamed:
  'Cfg-Diva-JJ.2005112204.mcm'.
cfg updateFromRepositories; load.

The GUI version should now be able to launch with DGVApplication launch. However, note that the English translation is not complete and that most content currently published on the network is in Dutch.

Now for the goodies with which this all started. Load from the SqueakSource repository “Tric-P2P”. It contains two small applications that should show neatly how to interact with the code:

  • Tric-P2P-MC, which mirrors the contents of your local Monticello cache repository on the network. Everything you publish will be “instantly” available to anyone on the network to download. Activate it by adding a repository of type “Tric P2P” in Monticello;
  • Tric-P2P-Chat, an IM/Chat type application. Just start it by TPCChatApp open and click on the pane that says “Not Available”–you’ll now be logged on with your author initials. I hope to see lots of people appearing on it the coming days :-) .

I hope to update the documentation for the networking code, although–surprisingly given the amount of work done to it since the current documentation on Minnow was written–the API has been quite stable so most of the current docs still make sense. The devil is in the details, as usual.

Happy p2p hacking…


Stumble it!  Post to del.icio.us 

Leave a Reply

(note: comments may be moderated so don't always appear right away)


Copyright (C)2000-2005 Cees de Groot -- All rights reserved.