Re: seaside Digest, Vol 105, Issue 13

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

Re: seaside Digest, Vol 105, Issue 13

Ted Wrinch
Message: 2
Date: Fri, 9 Sep 2011 13:17:36 +0100
From: Nick Ager <[hidden email]>
Subject: Re: [Seaside] Re: seaside Digest, Vol 105, Issue 11
To: Seaside - general discussion <[hidden email]>
Message-ID:
<[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"


What is Soup?

Nick

--------------

Hah, it's funny that I'm such a newbie and being asked to explain this! It's an XML parser; you can load it up, point it to a page on the web and it'll load up a bunch of XML nodes for you. That's as far as I got with it but I believe there maybe hooks for code generation too (at least, that's what I was hoping for). It's in the repository: http://www.squeaksource.com/Soup (there's so much in there).

BTW: if anyone's interested: I've been working on a few bits of code that may become useful components when they're a bit more finished. I have a 'form generator' that generates edit, read-only and list views of a model object, decorated using pragmas (thanks to Ramon Leon for that idea). It validates using JQuery validation (now the standard in MS's ASP.Net MVC 3.0) or on the server (if JQuery fails - no Javascript or whatever). And I've ported and extended Sean Mallory's v. good MongoDB implementation in Dolphin Smalltalk. I've added a custom deserialiser to it and the end to end performance on my system now seems very fast: ~180 reasonably complex and sized pages per second on one of my MacBook's 1.86GHz CoreDuo cores. This is around *twice* the performance I was able to get from a parallel coded version of my app running in MS's MVC3 and SQL Server environment. I've also added a Smalltalk -> Mongo query translator by hooking into Squeak's parser. This allows you to write queries in a simple SQL like dialect, rather than the tortuous Mongo dictionary and array syntax (well, JSON really).    

T.

Ted Wrinch.

On 9 Sep 2011, at 13:30, [hidden email] wrote:

Send seaside mailing list submissions to
[hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
or, via email, send a message with subject or body 'help' to
[hidden email]

You can reach the person managing the list at
[hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of seaside digest..."


Today's Topics:

  1. Re: seaside Digest, Vol 105, Issue 11 (Ted Wrinch)
  2. Re: Re: seaside Digest, Vol 105, Issue 11 (Nick Ager)
  3. Re: Re: seaside Digest, Vol 105, Issue 11
     (Boris Popov, DeepCove Labs)
  4. Fwd: seaside Digest, Vol 105, Issue 11 (Ted Wrinch)


----------------------------------------------------------------------

Message: 1
Date: Fri, 9 Sep 2011 13:12:46 +0100
From: Ted Wrinch <[hidden email]>
Subject: [Seaside] Re: seaside Digest, Vol 105, Issue 11
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="windows-1252"

Message: 5
Date: Fri, 9 Sep 2011 07:02:16 +0100
From: Nick Ager <[hidden email]>
Subject: [Seaside] canvas translator & new version of Seafox
To: Seaside - general discussion <[hidden email]>
Message-ID:
<CABsFVz8X-E08xUru3Sn9MaFTu--z6X3v2=[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I've been working on an html -> canvas translator∑.


This is great Nick! I was thinking that I needed the very same app and was considering using Soup at some point to knock one up. Thanks very much for providing a useful piece of the web dev kit needed for Seaside.

T.

Ted Wrinch

On 9 Sep 2011, at 10:28, [hidden email] wrote:

Message: 5
Date: Fri, 9 Sep 2011 07:02:16 +0100
From: Nick Ager <[hidden email]>
Subject: [Seaside] canvas translator & new version of Seafox
To: Seaside - general discussion <[hidden email]>
Message-ID:
<CABsFVz8X-E08xUru3Sn9MaFTu--z6X3v2=[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I've been working on an html -> canvas translator. Have a look at:
http://seafox.seasidehosting.st and click on "Canvas translator". Then in
another browser tab bring up your favourite web page (e.g.
http://www.seaside.st/) highlight a section and copy. Then return to the
"Canvas Translator" and paste into the text box below the default "Rendered
html" tab. Be amazed as the html is automatically translated into Seaside
canvas rendering methods. All the tabbed views are editable and you can
switch between them, allowing you to edit in one and see the translation in
another. For example try editing some raw html and flip to the canvas view
to see the translation to canvas methods.

The translator is based on the parser I created for the Seafox Firefox
plug-in. You can download a new version of the plug-in. Improvements
include:

* Code formatting better conforms to Seaside's coding conventions.
* The plug-in now creates an editable syntax highlighted translation (if the
translation isn't highlighted by again - there's an occasional weird
first-time only bug)
* There's a small test-suite for the parser

You can load the code into your Seaside image with:

Gofer it
squeaksource: 'Seafox';
package: 'ConfigurationOfSeafox';
load.
(ConfigurationOfSeafox project version: '0.2-baseline') load.

Note: I've tested mainly on the Mac in Safari. I'd be interested to hear
different platform browser combinations work.

Nick

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110909/8cc6b087/attachment-0001.htm

------------------------------

Message: 2
Date: Fri, 9 Sep 2011 13:17:36 +0100
From: Nick Ager <[hidden email]>
Subject: Re: [Seaside] Re: seaside Digest, Vol 105, Issue 11
To: Seaside - general discussion <[hidden email]>
Message-ID:
<CABsFVz98mrj=[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hi Ted,

This is great Nick!


Thanks


I was thinking that I needed the very same app and was considering using
Soup at some point to knock one up.


What is Soup?

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110909/95fcf95b/attachment-0001.htm

------------------------------

Message: 3
Date: Fri, 9 Sep 2011 08:21:54 -0400
From: "Boris Popov, DeepCove Labs" <[hidden email]>
Subject: Re: [Seaside] Re: seaside Digest, Vol 105, Issue 11
To: "Seaside - general discussion"
<[hidden email]>
Cc: "Seaside - general discussion"
<[hidden email]>
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="us-ascii"

1. A liquid dish, typically made by boiling meat, fish, or vegetables, etc., in stock or water.
2. A substance or mixture perceived to resemble soup in appearance or consistency.

/sorry

Sent from my iPhone

On 2011-09-09, at 8:16, "Nick Ager" <[hidden email]> wrote:

Hi Ted,

This is great Nick!

Thanks

I was thinking that I needed the very same app and was considering using Soup at some point to knock one up.

What is Soup?

Nick

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110909/4e3728d5/attachment-0001.htm

------------------------------

Message: 4
Date: Fri, 9 Sep 2011 13:30:09 +0100
From: Ted Wrinch <[hidden email]>
Subject: [Seaside] Fwd: seaside Digest, Vol 105, Issue 11
To: Seaside general discussion - <[hidden email]>
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="windows-1252"

Further thoughts occur. This could help ease the acceptance of Seaside in some commercial environments as it should make it easier to add html from designers' files into Seaside html code. In the absence of a tool like this it might appear that template file technologies, like ASP.Net and RoR, provide a much more natural way to do this.

T.

Ted Wrinch




Begin forwarded message:

From: Ted Wrinch <[hidden email]>
Subject: Re: seaside Digest, Vol 105, Issue 11
Date: 9 September 2011 13:12:46 GMT+01:00
To: [hidden email]

Message: 5
Date: Fri, 9 Sep 2011 07:02:16 +0100
From: Nick Ager <[hidden email]>
Subject: [Seaside] canvas translator & new version of Seafox
To: Seaside - general discussion <[hidden email]>
Message-ID:
<CABsFVz8X-E08xUru3Sn9MaFTu--z6X3v2=[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I've been working on an html -> canvas translator∑.


This is great Nick! I was thinking that I needed the very same app and was considering using Soup at some point to knock one up. Thanks very much for providing a useful piece of the web dev kit needed for Seaside.

T.

Ted Wrinch

On 9 Sep 2011, at 10:28, [hidden email] wrote:

Message: 5
Date: Fri, 9 Sep 2011 07:02:16 +0100
From: Nick Ager <[hidden email]>
Subject: [Seaside] canvas translator & new version of Seafox
To: Seaside - general discussion <[hidden email]>
Message-ID:
<CABsFVz8X-E08xUru3Sn9MaFTu--z6X3v2=[hidden email]>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I've been working on an html -> canvas translator. Have a look at:
http://seafox.seasidehosting.st and click on "Canvas translator". Then in
another browser tab bring up your favourite web page (e.g.
http://www.seaside.st/) highlight a section and copy. Then return to the
"Canvas Translator" and paste into the text box below the default "Rendered
html" tab. Be amazed as the html is automatically translated into Seaside
canvas rendering methods. All the tabbed views are editable and you can
switch between them, allowing you to edit in one and see the translation in
another. For example try editing some raw html and flip to the canvas view
to see the translation to canvas methods.

The translator is based on the parser I created for the Seafox Firefox
plug-in. You can download a new version of the plug-in. Improvements
include:

* Code formatting better conforms to Seaside's coding conventions.
* The plug-in now creates an editable syntax highlighted translation (if the
translation isn't highlighted by again - there's an occasional weird
first-time only bug)
* There's a small test-suite for the parser

You can load the code into your Seaside image with:

Gofer it
squeaksource: 'Seafox';
package: 'ConfigurationOfSeafox';
load.
(ConfigurationOfSeafox project version: '0.2-baseline') load.

Note: I've tested mainly on the Mac in Safari. I'd be interested to hear
different platform browser combinations work.

Nick


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110909/1b6a75b6/attachment.htm

------------------------------

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


End of seaside Digest, Vol 105, Issue 13
****************************************


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside