Setting Up a Server to Handle Squeak Projects

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Setting Up a Server to Handle Squeak Projects

Dan Shafer-3
OK, I downloaded the Squeak plug-in and I seem to be able to  
access .pr files stored on other sites. But how do I deploy a Squeak  
project as a plugin? I think the questions I need answered are:

1.  What does the server (Apache) need to know in order to serve  
Squeak projects as files? Anything?
2.  Will detection of the plugin be semi-automatic? I.e., if a user  
without the plugin tries to download a Squeak project, will he get an  
error, an ugly binary dump or something meaningful?
3.  Anything else I need to know about deployment?

Thanks.
Dan


Reply | Threaded
Open this post in threaded view
|

Re: Setting Up a Server to Handle Squeak Projects

Milan Zimmermann-2
Dan,

A few notes below:

On 2006 May 28 02:32, Dan Shafer wrote:
> OK, I downloaded the Squeak plug-in and I seem to be able to
> access .pr files stored on other sites. But how do I deploy a Squeak
> project as a plugin? I think the questions I need answered are:
>
> 1.  What does the server (Apache) need to know in order to serve
> Squeak projects as files? Anything?

I am using Kom as Http server (not Apache), and this is the piece of HTML that
works - I guess it piggibacks the .pr file through squeakland. The only
important thing is the href:

<a
href="http://www.squeakland.org/project.jsp?http://squeakers.ca:9090/squeak/games/FishTank-link.pr"><img
 alt="&quot;Squeak&quot;saver" title="Make your own &quot;Squeak&quot;saver"
 src="squeak/games/FishTank-link.gif"
 style="border: 5px solid ; width: 250px; height: 175px;"></a>

I suspect it will work on Apache as well, but do not know for sure.

Perhaps you can start with this, just t test your project works etc, and take
it from there, ask questions , plus more info about the HTTP plugin:

http://isgwww.cs.uni-magdeburg.de/~bert/squeak/plugin/test/plugintest.html
http://www.squeakland.org/plugin/launch.html
http://squeakland.org/pipermail/squeakland/2004-October/002230.html

and this message from Diego I saved:
------------------
And also:

failureURL="http://www.whereYouCanFindAnInstallerForTheMissingImage.com"

> > <OBJECT
> >     ID="SqueakOCX Control"
>        imageName="MySqueak.image"
> >     WIDTH=1024 HEIGHT=768
> >     ALIGN=center BORDER=2
> >     CLASSID="CLSID:2BE9C39E-8386-4435-B337-FCDAD8EAB006"
> >    
CODEBASE="http://www.squeakland.org/installers/SqueakPluginInstaller.exe">

> >
> > <embed
> >     type="application/x-squeak-source"
>        imageName="MySqueak.image"
> >     ALIGN="CENTER"
> >     WIDTH="1024"
> >     HEIGHT="768"
> >     pluginspage="http://www.squeakland.org/detect.html"
> >     update_url="http://www.squeakland.org/update/"
> >     ></embed>
> > </OBJECT>
------------------

> 2.  Will detection of the plugin be semi-automatic? I.e., if a user
> without the plugin tries to download a Squeak project, will he get an
> error, an ugly binary dump or something meaningful?

From what I remember, in the life without the plugin in all my browsers, if
done "correctly" it will redirect user to the site where to find the plugin.
If you use the simple version on top, it will do it right.

> 3.  Anything else I need to know about deployment?

I am sure there is more and people more qualified will comment, hopefully the
above is a start,

Milan

>
> Thanks.
> Dan

Reply | Threaded
Open this post in threaded view
|

Re: Setting Up a Server to Handle Squeak Projects

Dan Shafer-3
Thanks, Milan. Very helpful. I see that the server doesn't need to be  
aware of the data type of the content because you use an embedded  
object in the browser's code to circumvent. I know basically how to  
do that, so I'm off to do some trial work now.

Dan

On May 28, 2006, at 1:32 AM, Milan Zimmermann wrote:

> Dan,
>
> A few notes below:
>
> On 2006 May 28 02:32, Dan Shafer wrote:
>> OK, I downloaded the Squeak plug-in and I seem to be able to
>> access .pr files stored on other sites. But how do I deploy a Squeak
>> project as a plugin? I think the questions I need answered are:
>>
>> 1.  What does the server (Apache) need to know in order to serve
>> Squeak projects as files? Anything?
>
> I am using Kom as Http server (not Apache), and this is the piece  
> of HTML that
> works - I guess it piggibacks the .pr file through squeakland. The  
> only
> important thing is the href:
>
> <a
> href="http://www.squeakland.org/project.jsp?http://squeakers.ca: 
> 9090/squeak/games/FishTank-link.pr"><img
>  alt="&quot;Squeak&quot;saver" title="Make your own  
> &quot;Squeak&quot;saver"
>  src="squeak/games/FishTank-link.gif"
>  style="border: 5px solid ; width: 250px; height: 175px;"></a>
>
> I suspect it will work on Apache as well, but do not know for sure.
>
> Perhaps you can start with this, just t test your project works  
> etc, and take
> it from there, ask questions , plus more info about the HTTP plugin:
>
> http://isgwww.cs.uni-magdeburg.de/~bert/squeak/plugin/test/ 
> plugintest.html
> http://www.squeakland.org/plugin/launch.html
> http://squeakland.org/pipermail/squeakland/2004-October/002230.html
>
> and this message from Diego I saved:
> ------------------
> And also:
>
> failureURL="http://
> www.whereYouCanFindAnInstallerForTheMissingImage.com"
>
>>> <OBJECT
>>>     ID="SqueakOCX Control"
>>        imageName="MySqueak.image"
>>>     WIDTH=1024 HEIGHT=768
>>>     ALIGN=center BORDER=2
>>>     CLASSID="CLSID:2BE9C39E-8386-4435-B337-FCDAD8EAB006"
>>>
> CODEBASE="http://www.squeakland.org/installers/ 
> SqueakPluginInstaller.exe">
>>>
>>> <embed
>>>     type="application/x-squeak-source"
>>        imageName="MySqueak.image"
>>>     ALIGN="CENTER"
>>>     WIDTH="1024"
>>>     HEIGHT="768"
>>>     pluginspage="http://www.squeakland.org/detect.html"
>>>     update_url="http://www.squeakland.org/update/"
>>>     ></embed>
>>> </OBJECT>
> ------------------
>
>> 2.  Will detection of the plugin be semi-automatic? I.e., if a user
>> without the plugin tries to download a Squeak project, will he get an
>> error, an ugly binary dump or something meaningful?
>
> From what I remember, in the life without the plugin in all my  
> browsers, if
> done "correctly" it will redirect user to the site where to find  
> the plugin.
> If you use the simple version on top, it will do it right.
>
>> 3.  Anything else I need to know about deployment?
>
> I am sure there is more and people more qualified will comment,  
> hopefully the
> above is a start,
>
> Milan
>
>>
>> Thanks.
>> Dan
>


Reply | Threaded
Open this post in threaded view
|

Re: Setting Up a Server to Handle Squeak Projects

Milan Zimmermann-2
Dan,

yes, that is the point. Regarding the origin of the HTML I am sure it is
coming from the guys who wrote the plugin (Impara or Viewpoints or both) but
I no longer rememeber where I saved it from, probably email of someone else -
from them you may get additional help or suggestions, but this should be one
way... Hopefully one day the Squeak Plugin will have ubiquity of Flash
Player :)

Milan


On 2006 May 29 01:48, Dan Shafer wrote:

> Thanks, Milan. Very helpful. I see that the server doesn't need to be
> aware of the data type of the content because you use an embedded
> object in the browser's code to circumvent. I know basically how to
> do that, so I'm off to do some trial work now.
>
> Dan
>
> On May 28, 2006, at 1:32 AM, Milan Zimmermann wrote:
> > Dan,
> >
> > A few notes below:
> >
> > On 2006 May 28 02:32, Dan Shafer wrote:
> >> OK, I downloaded the Squeak plug-in and I seem to be able to
> >> access .pr files stored on other sites. But how do I deploy a Squeak
> >> project as a plugin? I think the questions I need answered are:
> >>
> >> 1.  What does the server (Apache) need to know in order to serve
> >> Squeak projects as files? Anything?
> >
> > I am using Kom as Http server (not Apache), and this is the piece
> > of HTML that
> > works - I guess it piggibacks the .pr file through squeakland. The
> > only
> > important thing is the href:
> >
> > <a
> > href="http://www.squeakland.org/project.jsp?http://squeakers.ca:
> > 9090/squeak/games/FishTank-link.pr"><img
> >  alt="&quot;Squeak&quot;saver" title="Make your own
> > &quot;Squeak&quot;saver"
> >  src="squeak/games/FishTank-link.gif"
> >  style="border: 5px solid ; width: 250px; height: 175px;"></a>
> >
> > I suspect it will work on Apache as well, but do not know for sure.
> >
> > Perhaps you can start with this, just t test your project works
> > etc, and take
> > it from there, ask questions , plus more info about the HTTP plugin:
> >
> > http://isgwww.cs.uni-magdeburg.de/~bert/squeak/plugin/test/
> > plugintest.html
> > http://www.squeakland.org/plugin/launch.html
> > http://squeakland.org/pipermail/squeakland/2004-October/002230.html
> >
> > and this message from Diego I saved:
> > ------------------
> > And also:
> >
> > failureURL="http://
> > www.whereYouCanFindAnInstallerForTheMissingImage.com"
> >
> >>> <OBJECT
> >>>     ID="SqueakOCX Control"
> >>
> >>        imageName="MySqueak.image"
> >>
> >>>     WIDTH=1024 HEIGHT=768
> >>>     ALIGN=center BORDER=2
> >>>     CLASSID="CLSID:2BE9C39E-8386-4435-B337-FCDAD8EAB006"
> >
> > CODEBASE="http://www.squeakland.org/installers/
> > SqueakPluginInstaller.exe">
> >
> >>> <embed
> >>>     type="application/x-squeak-source"
> >>
> >>        imageName="MySqueak.image"
> >>
> >>>     ALIGN="CENTER"
> >>>     WIDTH="1024"
> >>>     HEIGHT="768"
> >>>     pluginspage="http://www.squeakland.org/detect.html"
> >>>     update_url="http://www.squeakland.org/update/"
> >>>
> >>>     ></embed>
> >>>
> >>> </OBJECT>
> >
> > ------------------
> >
> >> 2.  Will detection of the plugin be semi-automatic? I.e., if a user
> >> without the plugin tries to download a Squeak project, will he get an
> >> error, an ugly binary dump or something meaningful?
> >
> > From what I remember, in the life without the plugin in all my
> > browsers, if
> > done "correctly" it will redirect user to the site where to find
> > the plugin.
> > If you use the simple version on top, it will do it right.
> >
> >> 3.  Anything else I need to know about deployment?
> >
> > I am sure there is more and people more qualified will comment,
> > hopefully the
> > above is a start,
> >
> > Milan
> >
> >> Thanks.
> >> Dan

Reply | Threaded
Open this post in threaded view
|

Re: Setting Up a Server to Handle Squeak Projects

Brad Fuller
In reply to this post by Milan Zimmermann-2
Milan Zimmermann wrote:
2.  Will detection of the plugin be semi-automatic? I.e., if a user
without the plugin tries to download a Squeak project, will he get an
error, an ugly binary dump or something meaningful?
    

>From what I remember, in the life without the plugin in all my browsers, if 
done "correctly" it will redirect user to the site where to find the plugin. 
If you use the simple version on top, it will do it right.
  
when visiting this URI:
http://www.squeakland.org/plugin/detect/detectinstaller.html
and clicking on the page area of the missing plugin, the "Manual Install" points to a non-existent page. This error is received:
--
Not Found
The requested URL /plugin/detect/detectinstaller.html was not found on this server.
--

"download the plugin" link works, though.

brad
(I've copied the squeakland ml so they'll know the error at the web page)



Reply | Threaded
Open this post in threaded view
|

Re[2]: Setting Up a Server to Handle Squeak Projects

Herbert König
In reply to this post by Milan Zimmermann-2
Hello Milan, Bert,


MZ> http://isgwww.cs.uni-magdeburg.de/~bert/squeak/plugin/test/plugintest.html

This one does not work, it starts the plugin with two flaps which are
not working.

MZ> http://www.squeakland.org/plugin/launch.html

This one does work, it shows the bouncing atoms animation. and I can
use the halos to get an Inspector, from there a browser.

So looking further on the first site it simply seems outdated,
referring to Squeak 3.2.

I'm using the English 1.5.03 Firefox on WinXP.

Thanks,


-Herbert                            mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Re[2]: Setting Up a Server to Handle Squeak Projects

Bert Freudenberg-3

Am 30.05.2006 um 09:11 schrieb Herbert König:

> Hello Milan, Bert,
>
>
> MZ> http://isgwww.cs.uni-magdeburg.de/~bert/squeak/plugin/test/ 
> plugintest.html
>
> This one does not work, it starts the plugin with two flaps which are
> not working.

That means it works, mostly, in that it actually loads the plugin,  
starts a VM, which executes the image, showing it in the browser window.

On my system (Mac OS X) it then tries to load 'plugintest.sts', which  
fails (I get a walkback). Probably because the Mac plugin does not  
support retrieving files through the browser API, and the fall-back  
Squeak HTTP code needs a full URL. This could be circumvented by  
giving a full URL in the HTML page, or using the "BASE" parameter  
(see ProjectLauncher>>startUpAfterLogin). However, I cannot change  
that web page anymore because I left the university.

- Bert -


Reply | Threaded
Open this post in threaded view
|

Re: Setting Up a Server to Handle Squeak Projects

Bert Freudenberg-3
Am 30.05.2006 um 13:36 schrieb Bert Freudenberg:

> Am 30.05.2006 um 09:11 schrieb Herbert König:
>
>> Hello Milan, Bert,
>>
>>
>> MZ> http://isgwww.cs.uni-magdeburg.de/~bert/squeak/plugin/test/ 
>> plugintest.html
>>
>> This one does not work, it starts the plugin with two flaps which are
>> not working.
>
> That means it works, mostly, in that it actually loads the plugin,  
> starts a VM, which executes the image, showing it in the browser  
> window.
>
> On my system (Mac OS X) it then tries to load 'plugintest.sts',  
> which fails (I get a walkback). Probably because the Mac plugin  
> does not support retrieving files through the browser API, and the  
> fall-back Squeak HTTP code needs a full URL. This could be  
> circumvented by giving a full URL in the HTML page, or using the  
> "BASE" parameter (see ProjectLauncher>>startUpAfterLogin). However,  
> I cannot change that web page anymore because I left the university.

Indeed, the file works fine here with some other HTML:

        http://squeakland.org/project.jsp?http://isgwww.cs.uni-magdeburg.de/ 
~bert/squeak/plugin/test/plugintest.sts

If that link is broken, try:

        http://tinyurl.com/n7kw4

- Bert -


Reply | Threaded
Open this post in threaded view
|

Re[2]: Setting Up a Server to Handle Squeak Projects

Herbert König
Hello Bert,


BF> http://squeakland.org/project.jsp?http://isgwww.cs.uni-magdeburg.de/
BF> ~bert/squeak/plugin/test/plugintest.sts

BF> If that link is broken, try:

BF> http://tinyurl.com/n7kw4

Both links work like they should.


Herbert                            mailto:[hidden email]


Reply | Threaded
Open this post in threaded view
|

Re: Re[2]: Setting Up a Server to Handle Squeak Projects

johnmci
In reply to this post by Bert Freudenberg-3

On 30-May-06, at 4:36 AM, Bert Freudenberg wrote:

> That means it works, mostly, in that it actually loads the plugin,  
> starts a VM, which executes the image, showing it in the browser  
> window.
>
> On my system (Mac OS X) it then tries to load 'plugintest.sts',  
> which fails (I get a walkback). Probably because the Mac plugin  
> does not support retrieving files through the browser API, and the  
> fall-back Squeak HTTP code needs a full URL. This could be  
> circumvented by giving a full URL in the HTML page, or using the  
> "BASE" parameter (see ProjectLauncher>>startUpAfterLogin). However,  
> I cannot change that web page anymore because I left the university.
>
> - Bert -
>

The browser plugin code for fetching files should work, there is  
support for that in the plugin.
--
========================================================================
===
John M. McIntosh <[hidden email]> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
========================================================================
===


Reply | Threaded
Open this post in threaded view
|

Re: Re[2]: Setting Up a Server to Handle Squeak Projects

Bert Freudenberg-3

Am 30.05.2006 um 17:28 schrieb John M McIntosh:

>
> On 30-May-06, at 4:36 AM, Bert Freudenberg wrote:
>
>> That means it works, mostly, in that it actually loads the plugin,  
>> starts a VM, which executes the image, showing it in the browser  
>> window.
>>
>> On my system (Mac OS X) it then tries to load 'plugintest.sts',  
>> which fails (I get a walkback). Probably because the Mac plugin  
>> does not support retrieving files through the browser API, and the  
>> fall-back Squeak HTTP code needs a full URL. This could be  
>> circumvented by giving a full URL in the HTML page, or using the  
>> "BASE" parameter (see ProjectLauncher>>startUpAfterLogin).  
>> However, I cannot change that web page anymore because I left the  
>> university.
>>
>> - Bert -
>>
>
> The browser plugin code for fetching files should work, there is  
> support for that in the plugin.

Then why does it not load this?

        http://isgwww.cs.uni-magdeburg.de/~bert/squeak/plugin/test/ 
plugintest.html

- Bert -


Reply | Threaded
Open this post in threaded view
|

Re: Re[2]: Setting Up a Server to Handle Squeak Projects

Milan Zimmermann-2
In reply to this post by Herbert König
Herbert,

On 2006 May 30 03:11, Herbert König wrote:
> Hello Milan, Bert,
>
>
> MZ>
> http://isgwww.cs.uni-magdeburg.de/~bert/squeak/plugin/test/plugintest.html
>
> This one does not work, it starts the plugin with two flaps which are
> not working.

Thanks for pointing it out. While it does start the VM and run the image, and
may be valuable to a developer, it is probaly confusing, and I should be only
giving good info due to my belief the Squeak HTTP Plugin is the best delivery
vehicle for Squeak and related technologies by the time they replace the
inferior and confusion web (http etc) technologies (tongue out of cheek) :)
Milan

>
> MZ> http://www.squeakland.org/plugin/launch.html
>
> This one does work, it shows the bouncing atoms animation. and I can
> use the halos to get an Inspector, from there a browser.
>
> So looking further on the first site it simply seems outdated,
> referring to Squeak 3.2.
>
> I'm using the English 1.5.03 Firefox on WinXP.
>
> Thanks,
>
>
> -Herbert                            mailto:[hidden email]