Re: Checking in
Carl G <[email protected]> Sun, 23 Feb 2025 16:56:35 -0500
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <CAPYvR9eQJawoLKvz-noyfVVnvgyqq_AJkfDV+3Z84Jk8zNN=oA@mail.gmail.com> |
--===============8339145457918644448==
Content-Type: multipart/alternative; boundary="000000000000d0f6fe062ed64c83"
--000000000000d0f6fe062ed64c83
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
I'm trying a few things trying to make my application serve static files.
Run BASIC dynamically generates PNG files that are rendered into the web
page, but I cannot figure out how to make it work after hours of head
banging. The old version of Seaside allows me to add WAExternalFileLibrary
in the configuration page. But I cannot do this with Seaside 3.5.1 on VW
for some reason. If I try to do the following, I get a debugger when I
launch the app.
(WADispatcher default handlers at: 'runbasicpersonal')
addLibrary: WAExternalFileLibrary
If I substitute WAFileLibrary it doesn't blow up, but it doesn't seem to
do anything either. Putting a breakpoint in the handle: method for the
instance of WAFileLibrary does not stop. It seems that the WAFileLibrary
is not being used. My guess is that it's only for serving 'files' that are
in-memory anyways but I tried it just to see if I could anything work.
Any ideas? What the simplest possible way to add external file serving to
my Seaside app? I absolutely do not want my users to need Apache or
something else. The current version doesn't require it.
Thanks in advance.
-Carl Gundel, author of Run BASIC
http://www.runbasic.com
On Mon, Feb 17, 2025 at 4:34=E2=80=AFPM Jupiter Jones <[email protected]=
om>
wrote:
> Hi Carl,
>
> The userAgent is found in the request which you should be able to get wit=
h:
>
> self requestContext request userAgent.
>
> Let me know if you have any other issues.
>
> Cheers,
>
> J
>
> On 18 Feb 2025, at 8:30=E2=80=AFam, Carl G <[email protected]> wrote:
>
> Yes, thanks I'll try to figure it out. Indeed there was an easy way to d=
o
> this in Seaside 2.8 and there is also a GUI for setting it, but this
> doesn't seem to exist in the latest Seaside on VW. Baffling.
>
> Another question I have is how to programmatically grab the user-agent
> information. Again, this is easy in the old version of Seaside. So many
> changes. Some of them I don't understand. I'm sure it will be great once=
I
> get used to it.
>
> -Carl
>
> On Mon, Feb 17, 2025 at 4:23=E2=80=AFPM Jupiter Jones <jupiter.jones@mail=
.com>
> wrote:
>
>> Hi Carl,
>>
>> Yes, Zinc is used in GemStone/Pharo/Squeak.
>>
>> I apologise I haven=E2=80=99t used Seaside in VW for many years. There w=
ill be an
>> =E2=80=9CAdaptor=E2=80=9D that is used to launch seaside. It could well =
be a subclass of
>> WAServerAdaptor so that might be the place to start.
>>
>> From memory there was some UI in VW (like the one in Pharo) for starting
>> seaside that allowed you to set the port. If that still exists, it shoul=
d
>> hold all the answers :)
>>
>> Let me know how you go.
>>
>> Cheers,
>>
>> J
>>
>> On 18 Feb 2025, at 8:15=E2=80=AFam, Carl G <[email protected]> wrote:
>>
>> Thanks.
>>
>> Is ZnZincStaticServerAdaptor a Squeak or Pharo specific class? It
>> doesn't exist in VisualWorks which uses the Sioux web server.
>>
>> Also, I need to be able to change the port on the fly. Not a
>> showstopper, but that's what my users are used to doing. ;)
>>
>> -Carl Gundel, author of Run BASIC
>> http://www.runbasic.com
>>
>> On Mon, Feb 17, 2025 at 3:38=E2=80=AFPM Jupiter Jones <jupiter.jones@mai=
l.com>
>> wrote:
>>
>>> Hi Carl,
>>>
>>> The port is set in the adapter before launching.
>>>
>>> WAServerAdaptor-#port:
>>>
>>> From the class comment on ZnZincStaticServerAdaptor=E2=80=A6
>>>
>>> ZnZincStaticServerAdaptor startOn: 8080 andServeFilesFrom: '/var/www/=
=E2=80=98.
>>>
>>> Hope this helps.
>>>
>>> Cheers,
>>>
>>> J
>>>
>>> On 18 Feb 2025, at 7:09=E2=80=AFam, Carl Gundel <[email protected]=
> wrote:
>>>
>>> Hey all,
>>>
>>> It's been a while to say the least. Greetings.
>>>
>>> I'm trying to port my Run BASIC system from Seaside 2.8 (how to be sure
>>> which version is installed?) to 3.5 on VisualWorks.
>>>
>>> I have run into a bunch of issues which for the moment I manage to
>>> sidestep and I have the system limping along.
>>>
>>> First question though is, how many people here are still using Seaside?
>>> Is this the best place to connect? I heard there is supposed to be a
>>> Discord group? I looked there and didn't find anything.
>>>
>>> On very specific technical question I have right now is how to
>>> programmatically change the port number on the seaside server (on
>>> VisualWorks) from inside my app? This is easy enough in the older vers=
ion
>>> of Seaside, but so far it has eluded me in the latest version? Actuall=
y
>>> I'm not even sure how to change the port number from the system GUI. I
>>> will keep digging but any help appreciated.
>>>
>>> I hope that there are still a good core of Seaside users here.
>>>
>>> Thanks.
>>>
>>> -Carl Gundel, author of Run BASIC
>>> http://www.runbasic.com
>>>
>>> _______________________________________________
>> seaside mailing list -- [email protected]
>> To unsubscribe send an email to [email protected]
>>
>>
>>
>
--000000000000d0f6fe062ed64c83
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">I'm trying a few things trying to make my application =
serve static files.=C2=A0 Run BASIC dynamically generates PNG files that ar=
e rendered into the web page, but I cannot figure out how to make=C2=A0it w=
ork after hours of head banging.=C2=A0 The old version of Seaside allows me=
to add WAExternalFileLibrary in the configuration page.=C2=A0 But I cannot=
do this with Seaside 3.5.1 on VW for some reason.=C2=A0 If I try to do the=
following, I get a debugger when I launch the app.<div><br></div><div>=C2=
=A0 (WADispatcher default handlers at: 'runbasicpersonal') <br>=C2=
=A0 =C2=A0 addLibrary: WAExternalFileLibrary<br><br></div><div>If I substit=
ute WAFileLibrary it doesn't blow up, but it doesn't seem to do=C2=
=A0anything either.=C2=A0 Putting a breakpoint in the handle: method for th=
e instance of WAFileLibrary does not stop.=C2=A0 It seems that the WAFileLi=
brary is not being used.=C2=A0 My guess is that it's only for serving &=
#39;files' that are in-memory anyways but I tried it just to see if I c=
ould anything work.</div><div><br></div><div>Any ideas?=C2=A0 What the simp=
lest possible way to add external file serving to my Seaside app?=C2=A0 I a=
bsolutely do not want my users to need Apache or something else.=C2=A0 The =
current version doesn't require it.</div><div><br></div><div>Thanks in =
advance.</div><div><br></div><div>-Carl Gundel, author of Run BASIC</div><d=
iv><a href=3D"http://www.runbasic.com">http://www.runbasic.com</a></div><di=
v><br></div></div><br><div class=3D"gmail_quote gmail_quote_container"><div=
dir=3D"ltr" class=3D"gmail_attr">On Mon, Feb 17, 2025 at 4:34=E2=80=AFPM J=
upiter Jones <<a href=3D"mailto:[email protected]">jupiter.jones@ma=
il.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"m=
argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left=
:1ex"><div>Hi Carl,<div><br></div><div>The userAgent is found in the reques=
t which you should be able to get with:</div><div><br></div><div>self reque=
stContext request userAgent.</div><div><br></div><div>Let me know if you ha=
ve any other issues.</div><div><br></div><div>Cheers,</div><div><br></div><=
div>J<br id=3D"m_-5704293398281627995lineBreakAtBeginningOfMessage"><div><b=
r><blockquote type=3D"cite"><div>On 18 Feb 2025, at 8:30=E2=80=AFam, Carl G=
<<a href=3D"mailto:[email protected]" target=3D"_blank">basicforge@g=
mail.com</a>> wrote:</div><br><div><div dir=3D"ltr">Yes, thanks I'll=
try to figure it out.=C2=A0 Indeed there was an easy way to do this in Sea=
side 2.8 and there is also a GUI for setting it, but this doesn't seem =
to exist in the latest Seaside on VW.=C2=A0 Baffling.<div><br></div><div>An=
other question I have is how to programmatically grab the user-agent inform=
ation.=C2=A0 Again, this is easy in the old version of Seaside.=C2=A0 So ma=
ny changes.=C2=A0 Some of them I don't understand. I'm sure it will=
be great once I get used to it.</div><div><br></div><div>-Carl</div></div>=
<br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon=
, Feb 17, 2025 at 4:23=E2=80=AFPM Jupiter Jones <<a href=3D"mailto:jupit=
[email protected]" target=3D"_blank">[email protected]</a>> wrote:<=
br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Carl,<di=
v><br></div><div>Yes, Zinc is used in GemStone/Pharo/Squeak.</div><div><br>=
</div><div>I apologise I haven=E2=80=99t used Seaside in VW for many years.=
There will be an =E2=80=9CAdaptor=E2=80=9D that is used to launch seaside.=
It could well be a subclass of WAServerAdaptor so that might be the place =
to start.</div><div><br></div><div>From memory there was some UI in VW (lik=
e the one in Pharo) for starting seaside that allowed you to set the port. =
If that still exists, it should hold all the answers :)</div><div><br></div=
><div>Let me know how you go.</div><div><br></div><div>Cheers,</div><div><b=
r></div><div>J</div><div><div><br><blockquote type=3D"cite"><div>On 18 Feb =
2025, at 8:15=E2=80=AFam, Carl G <<a href=3D"mailto:[email protected]=
" target=3D"_blank">[email protected]</a>> wrote:</div><br><div><div =
dir=3D"ltr"><div dir=3D"ltr">Thanks.<div><br></div><div>Is=C2=A0
ZnZincStaticServerAdaptor a Squeak or Pharo specific class?=C2=A0 It doesn&=
#39;t exist in VisualWorks which uses the Sioux web server.</div><div><br><=
/div><div>Also, I need to be able to change the port on the fly.=C2=A0 Not =
a showstopper, but that's what my users are used to doing.=C2=A0 ;)</di=
v><div><br></div><div>-Carl Gundel, author of Run BASIC<br><div><div><a hre=
f=3D"http://www.runbasic.com/" target=3D"_blank">http://www.runbasic.com</a=
></div></div></div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" cl=
ass=3D"gmail_attr">On Mon, Feb 17, 2025 at 3:38=E2=80=AFPM Jupiter Jones &l=
t;<a href=3D"mailto:[email protected]" target=3D"_blank">jupiter.jones=
@mail.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex"><div>Hi Carl,<div><br></div><div>The port is set in the adapter =
before launching.=C2=A0</div><div><br></div><div>WAServerAdaptor-#port:</di=
v><div><br></div><div>From the class comment on=C2=A0ZnZincStaticServerAdap=
tor=E2=80=A6</div><div><br></div><div>ZnZincStaticServerAdaptor startOn: 80=
80 andServeFilesFrom: '/var/www/=E2=80=98.</div><div><br></div><div>Hop=
e this helps.</div><div><br></div><div>Cheers,</div><div><br></div><div>J</=
div><div><div><br><blockquote type=3D"cite"><div>On 18 Feb 2025, at 7:09=E2=
=80=AFam, Carl Gundel <<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>> wrote:</div><br><div><div dir=3D=
"ltr">Hey all,<div><br></div><div>It's been a while to say the least.=
=C2=A0 Greetings.</div><div><br></div><div>I'm trying to port my Run BA=
SIC system from Seaside 2.8 (how to be sure which version is installed?) to=
3.5 on VisualWorks.</div><div><br></div><div>I have run into a bunch of is=
sues which for the moment I manage to sidestep and I have the system limpin=
g=C2=A0along.</div><div><br></div><div>First question though is, how many p=
eople here are still using Seaside?=C2=A0 Is this the best place to connect=
?=C2=A0 I heard there is supposed to be a Discord group?=C2=A0 I looked the=
re and didn't find anything.</div><div><br></div><div>On very specific =
technical question I have right now is how to programmatically change the p=
ort number on the seaside server (on VisualWorks) from inside my app?=C2=A0=
This is easy enough in the older version of Seaside, but so far it has elu=
ded me in the latest version?=C2=A0 Actually I'm not even sure how to c=
hange the port number from the=C2=A0system GUI.=C2=A0 I will keep digging b=
ut any help appreciated.</div><div><br></div><div>I hope that there are sti=
ll a good core of Seaside users here.</div><div><br></div><div>Thanks.</div=
><div><br></div><div>-Carl Gundel, author of Run BASIC</div><div><a href=3D=
"http://www.runbasic.com/" target=3D"_blank">http://www.runbasic.com</a></d=
iv></div></div></blockquote></div></div></div>
</blockquote></div></div>
_______________________________________________<br>seaside mailing list -- =
<a href=3D"mailto:[email protected]" target=3D"_blank">sea=
[email protected]</a><br>To unsubscribe send an email to <a h=
ref=3D"mailto:[email protected]" target=3D"_blank">s=
[email protected]</a><br></div></blockquote></div><br=
></div></div></blockquote></div>
</div></blockquote></div><br></div></div></blockquote></div>
--000000000000d0f6fe062ed64c83--
--===============8339145457918644448==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
seaside mailing list -- [email protected]
To unsubscribe send an email to [email protected]
--===============8339145457918644448==--