Shared Smalltalk Workspace 1WS4U

http://ws.stfx.eu/1WS4U

Doit | Raw | Getting Started Workspace | Home | New
"Hello and welcome to http://ws.stfx.eu, a web service to share Smalltalk workspaces"

"INSTALLATION: to install the client side code you have several options"

"In Pharo 2.0, open the Configuration Browser and load SharedWorkspace"

"If you prefer code, you can do the following"

Gofer it
  squeaksource: 'MetacelloRepository';
  package: 'ConfigurationOfSharedWorkspace';
  load.

"Or just load the actual package"

Gofer it
  squeaksource: 'ZincHTTPComponents';
  package: 'Zinc-WWS-Client';
  load.

"In Pharo 1.4 or even 1.3, the code should work as well"

"USAGE: now you can use ZnWorkspace, just like a regular Workspace"

ZnWorkspace open.

"In the Window menu of this workspace you will find the item 'Open web workspace...'
 Enter the Shared Workspace URL or key in the dialog box to download its contents."

"You can also do this programmatically, as follows"

ZnWorkspace openUrl: 'http://ws.stfx.eu/1WS4U'. 

"To publish/share a workspace's contents, use the Window menu item 'Save as web workspace...'"

"To easily access the URL, there is the Window menu item 'Copy web workspace URL'"

"There is a helper object called ZnWebWorkspaceAccessor that can be used like this"

ZnWebWorkspaceAccessor new 
  get: 'http://ws.stfx.eu/1WS4U'.

ZnWebWorkspaceAccessor new 
  get: '1WS4U'.

ZnWebWorkspaceAccessor new 
  post: 'Smalltalk garbageCollect.'.   " => a newly created ZnUrl " 

"Of course, even without installing the tool, you can download and upload workspaces"

ZnClient new
  get: 'http://ws.stfx.eu/1WS4U'.

Workspace openContents: (ZnClient new get: 'http://ws.stfx.eu/1WS4U').

Workspace openContents: 'http://ws.stfx.eu/1WS4U' asZnUrl retrieveContents.

ZnClient new
  systemPolicy;
  beOneShot;
  url: 'http://ws.stfx.eu';
  contents: Clipboard clipboardText asString;
  post.

"Don't forget to inspect this last expression to see the new key"

"It is also possible to create new workspace via a web interface, try http://ws.stfx.eu/new "
THIS SOFTWARE SERVICE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR OR SERVICE PROVIDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE SERVICE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE SERVICE.