Errors in WebLiveImage ?

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

Errors in WebLiveImage ?

Nicolas Petton
Hi,

I took a look at Aida/Web code, and the first thing I should say is :
Wow!

Almost everything I need is already written, this framework is awesome,
well thinked and written! So much power and simplicity, very very good
job Janko, thanks for writting Aida ! I definitively love your work :)

I saw 1 or 2 stange things in WebLiveImage class :

First, in WebLiveImage>>refresh, the class Timestamp does not exist in
Squeak, the class is TimeStamp (and this is in lot of other methods).

Other strange thing : there are accessors for the instance variable
resolver, but this variable is not defined.

Cheers,

Nicolas
--
Nicolas Petton
http://nico.bioskop.fr
             ___
           ooooooo
          OOOOOOOOO
         |Smalltalk|
          OOOOOOOOO
           ooooooo
            \   /
             [|]
--------------------------------
Ma cl? GPG est disponible ici :
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE788C34D

-------------- section suivante --------------
Une pi?ce jointe non texte a ?t? nettoy?e...
Nom: non disponible
Type: application/pgp-signature
Taille: 189 octets
Desc: Ceci est une partie de message
        =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url: http://lists.aidaweb.si/pipermail/aida/attachments/20071017/7594c604/attachment.sig 

Reply | Threaded
Open this post in threaded view
|

Errors in WebLiveImage ?

Janko Mivšek
nicolas petton wrote:

> I took a look at Aida/Web code, and the first thing I should say is :
> Wow!
>
> Almost everything I need is already written, this framework is awesome,
> well thinked and written! So much power and simplicity, very very good
> job Janko, thanks for writting Aida ! I definitively love your work :)

Thank you Nicolas! It is just too nice feeling when someone find your
work useful :)

> I saw 1 or 2 strange things in WebLiveImage class :

Well, WebLiveImage (better word would be WebInstantImage, because it is
rendered instanlty, just before sent to browser) is not yet ported to
Squeak, because I don't have enough knowledge of Squeak graphics yet.
Otherwise you can see it in action here:

        http://demo.aidaweb.si/demos.html?view=liveImage

> First, in WebLiveImage>>refresh, the class Timestamp does not exist in
> Squeak, the class is TimeStamp (and this is in lot of other methods).

Actually it will become a SpTimestamp from Sport portability layer.
Migration of Aida to use Sport is not yet completely done.

> Other strange thing : there are accessors for the instance variable
> resolver, but this variable is not defined.

Same reason - porting not finished yet.

Thanks for those remarks and I'm waiting you for more!

JAnko

--
Janko Miv?ek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si

Reply | Threaded
Open this post in threaded view
|

Errors in WebLiveImage ?

Nicolas Petton

Le mercredi 17 octobre 2007 ? 22:52 +0200, Janko Miv?ek a ?crit :

> nicolas petton wrote:
>
> > I took a look at Aida/Web code, and the first thing I should say is :
> > Wow!
> >
> > Almost everything I need is already written, this framework is awesome,
> > well thinked and written! So much power and simplicity, very very good
> > job Janko, thanks for writting Aida ! I definitively love your work :)
>
> Thank you Nicolas! It is just too nice feeling when someone find your
> work useful :)
>
> > I saw 1 or 2 strange things in WebLiveImage class :
>
> Well, WebLiveImage (better word would be WebInstantImage, because it is
> rendered instanlty, just before sent to browser) is not yet ported to
> Squeak, because I don't have enough knowledge of Squeak graphics yet.
> Otherwise you can see it in action here:
>
> http://demo.aidaweb.si/demos.html?view=liveImage
>
> > First, in WebLiveImage>>refresh, the class Timestamp does not exist in
> > Squeak, the class is TimeStamp (and this is in lot of other methods).
>
> Actually it will become a SpTimestamp from Sport portability layer.
> Migration of Aida to use Sport is not yet completely done.
>
> > Other strange thing : there are accessors for the instance variable
> > resolver, but this variable is not defined.
>
> Same reason - porting not finished yet.
Is there other features not ported to squeak yet? Maybe I could help
here.

BTW, in which Smalltalk dialect is Aida/Web (and Swazoo) written ? Which
one do Aida users mostly use ?

Nicolas
>
> Thanks for those remarks and I'm waiting you for more!
>
> JAnko
>
--
Nicolas Petton
http://nico.bioskop.fr
             ___
           ooooooo
          OOOOOOOOO
         |Smalltalk|
          OOOOOOOOO
           ooooooo
            \   /
             [|]
--------------------------------
Ma cl? GPG est disponible ici :
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE788C34D

-------------- section suivante --------------
Une pi?ce jointe non texte a ?t? nettoy?e...
Nom: non disponible
Type: application/pgp-signature
Taille: 189 octets
Desc: Ceci est une partie de message
        =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url: http://lists.aidaweb.si/pipermail/aida/attachments/20071017/71914ffa/attachment.sig 

Reply | Threaded
Open this post in threaded view
|

Errors in WebLiveImage ?

Janko Mivšek
Hi Nicolas,

nicolas petton wrote:

>>> Other strange thing : there are accessors for the instance variable
>>> resolver, but this variable is not defined.
>> Same reason - porting not finished yet.
> Is there other features not ported to squeak yet? Maybe I could help
> here.

I think not, this part was most demanding to port, so I left it for a
future. Or for someone like you to help :)

> BTW, in which Smalltalk dialect is Aida/Web (and Swazoo) written ? Which
> one do Aida users mostly use ?

Development started and it is still mainly in VisualWorks. I ported to
Squeak just recently, in June. Before was also ported to Dolphin. And I
just ported it to Gemstone and it will be part of forthcoming GLASS.

Most commercial use currently is on VisualWorks. Here in Slovenia exist
a company with 15 Smalltalkers doing Aida for logistic systems ...

Janko

--
Janko Miv?ek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si

Reply | Threaded
Open this post in threaded view
|

Errors in WebLiveImage ?

Nicolas Petton
Hi,

I found another strange thing in AIDASite class>>newNamed:

newNamed: aString
        | site |
        site := self new name: aString.
        Swazoo.SwazooServer singleton addSite: site.
        site initialize.
        ^site

Should "Swazoo." be removed ?

Nicolas
--
Nicolas Petton
http://nico.bioskop.fr
             ___
           ooooooo
          OOOOOOOOO
         |Smalltalk|
          OOOOOOOOO
           ooooooo
            \   /
             [|]
--------------------------------
Ma cl? GPG est disponible ici :
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE788C34D

-------------- section suivante --------------
Une pi?ce jointe non texte a ?t? nettoy?e...
Nom: non disponible
Type: application/pgp-signature
Taille: 189 octets
Desc: Ceci est une partie de message
        =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url: http://lists.aidaweb.si/pipermail/aida/attachments/20071018/aa249089/attachment.sig 

Reply | Threaded
Open this post in threaded view
|

Errors in WebLiveImage ?

Michael Rueger-6
In reply to this post by Janko Mivšek
Janko Miv?ek wrote:
> Squeak, because I don't have enough knowledge of Squeak graphics yet.

You  may want to consider using Cairo (in Squeak called Rome) to do the
graphics. That way you get high end vector graphics portable on both
systems.

Michael

Reply | Threaded
Open this post in threaded view
|

Web graphics (was errors in WebLiveImage )

Janko Mivšek
Hi Michael,

Michael Rueger wrote:

>> Squeak, because I don't have enough knowledge of Squeak graphics yet.
>
> You  may want to consider using Cairo (in Squeak called Rome) to do the
> graphics. That way you get high end vector graphics portable on both
> systems.

I'm looking towards Cairo for a while, because of its multiplatform
support and especially to finally get a professionally looking graphs
onto my web apps.Something like:

        http://www.jfree.org/jfreechart/samples.html

Is a Cairo graphics in Squeak possible simply enough to conver to some
web format like GIF, PNG or JPG?

Best regards
Janko

--
Janko Miv?ek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si

Reply | Threaded
Open this post in threaded view
|

Errors in WebLiveImage ?

Janko Mivšek
In reply to this post by Nicolas Petton
nicolas petton wrote:

> I found another strange thing in AIDASite class>>newNamed:
>
> newNamed: aString
> | site |
> site := self new name: aString.
> Swazoo.SwazooServer singleton addSite: site.
> site initialize.
> ^site
>
> Should "Swazoo." be removed ?
>

Yes, I just did it. Funny thing is that Squeak code works even with VW
namespaces present :)

Janko

--
Janko Miv?ek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si

Reply | Threaded
Open this post in threaded view
|

Web graphics (was errors in WebLiveImage )

Nicolas Petton
In reply to this post by Janko Mivšek

Le jeudi 18 octobre 2007 ? 10:51 +0200, Janko Miv?ek a ?crit :

> Hi Michael,
>
> Michael Rueger wrote:
>
> >> Squeak, because I don't have enough knowledge of Squeak graphics yet.
> >
> > You  may want to consider using Cairo (in Squeak called Rome) to do the
> > graphics. That way you get high end vector graphics portable on both
> > systems.
>
> I'm looking towards Cairo for a while, because of its multiplatform
> support and especially to finally get a professionally looking graphs
> onto my web apps.Something like:
>
> http://www.jfree.org/jfreechart/samples.html

Hi,

Do you know the javascript library plotkit ?
http://www.liquidx.net/plotkit/

There is a seaside package (which includes some other things) :
http://www.squeaksource.com/seachart

Cheers,

Nicolas

>
> Is a Cairo graphics in Squeak possible simply enough to conver to some
> web format like GIF, PNG or JPG?
>
> Best regards
> Janko
>
--
Nicolas Petton
http://nico.bioskop.fr
             ___
           ooooooo
          OOOOOOOOO
         |Smalltalk|
          OOOOOOOOO
           ooooooo
            \   /
             [|]
--------------------------------
Ma cl? GPG est disponible ici :
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE788C34D

-------------- section suivante --------------
Une pi?ce jointe non texte a ?t? nettoy?e...
Nom: non disponible
Type: application/pgp-signature
Taille: 189 octets
Desc: Ceci est une partie de message
        =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url: http://lists.aidaweb.si/pipermail/aida/attachments/20071018/e61f704f/attachment.sig 

Reply | Threaded
Open this post in threaded view
|

Web graphics (was errors in WebLiveImage )

Michael Rueger-6
In reply to this post by Janko Mivšek
Janko Miv?ek wrote:

> Is a Cairo graphics in Squeak possible simply enough to conver to some
> web format like GIF, PNG or JPG?

You simply use the Cairo image backend (the default in Rome) to draw
onto a form and can then use the Squeak image writer classes to convert
it to the encoding of your choice.

Michael

Reply | Threaded
Open this post in threaded view
|

Errors in WebLiveImage ?

Michael Rueger-6
In reply to this post by Janko Mivšek
Janko Miv?ek wrote:

> Yes, I just did it. Funny thing is that Squeak code works even with VW
> namespaces present :)

Yes, but *please* don't mention namespaces on the Squeak-dev list ;-)

Michael

Reply | Threaded
Open this post in threaded view
|

Web graphics

Janko Mivšek
In reply to this post by Nicolas Petton


nicolas petton wrote:
> Le jeudi 18 octobre 2007 ? 10:51 +0200, Janko Miv?ek a ?crit :

>> I'm looking towards Cairo for a while, because of its multiplatform
>> support and especially to finally get a professionally looking graphs
>> onto my web apps.Something like:
>>
>> http://www.jfree.org/jfreechart/samples.html

> Do you know the javascript library plotkit ?
> http://www.liquidx.net/plotkit/
>
> There is a seaside package (which includes some other things) :
> http://www.squeaksource.com/seachart

Yes I know, but for now I'm looking for more general graphics solution
and what Michael proposed is most general one: "to draw onto a form and
to use the Squeak image writer classes to convert it to the encoding of
your choice".

So, any takers to help extending WebLiveImage that way?

Best regards
Janko

--
Janko Miv?ek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si

Reply | Threaded
Open this post in threaded view
|

Web graphics

Nicolas Petton

Le jeudi 18 octobre 2007 ? 17:15 +0200, Janko Miv?ek a ?crit :

>
> nicolas petton wrote:
> > Le jeudi 18 octobre 2007 ? 10:51 +0200, Janko Miv?ek a ?crit :
>
> >> I'm looking towards Cairo for a while, because of its multiplatform
> >> support and especially to finally get a professionally looking graphs
> >> onto my web apps.Something like:
> >>
> >> http://www.jfree.org/jfreechart/samples.html
>
> > Do you know the javascript library plotkit ?
> > http://www.liquidx.net/plotkit/
> >
> > There is a seaside package (which includes some other things) :
> > http://www.squeaksource.com/seachart
>
> Yes I know, but for now I'm looking for more general graphics solution
> and what Michael proposed is most general one: "to draw onto a form and
> to use the Squeak image writer classes to convert it to the encoding of
> your choice".
>
> So, any takers to help extending WebLiveImage that way?
>
I would be happy to help, but I think I should learn Aida first.

Cheers,

Nicolas
> Best regards
> Janko
>
--
Nicolas Petton
http://nico.bioskop.fr
             ___
           ooooooo
          OOOOOOOOO
         |Smalltalk|
          OOOOOOOOO
           ooooooo
            \   /
             [|]
--------------------------------
Ma cl? GPG est disponible ici :
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE788C34D

-------------- section suivante --------------
Une pi?ce jointe non texte a ?t? nettoy?e...
Nom: non disponible
Type: application/pgp-signature
Taille: 189 octets
Desc: Ceci est une partie de message
        =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url: http://lists.aidaweb.si/pipermail/aida/attachments/20071018/34bd3fce/attachment.sig