Carlo Moneti | 1 Feb 2002 02:23
Picon

Re: Nested Sets

	Thanks for your response. But I still had difficulty seeing the whole solution. So, I went to trusty B&N and
reviewed Joe Celko's "SQL for Smarties". There's a whole chapter on nested set based trees. The query is
complex; he recommends writing a procedure and includes an example. 
	I'm interested in all of this because I have an idea for a tool to allow rapid website creation (or layout)
from the point of view of an information architect. No more sketching flow diagrams, or creating and
editing visio files, or assembling mock prototypes in html, for either internal brainstorming and
visualization or external review. Just interactively type in a menu item in an input box at the bottom of a
web page and voila! it appears on the the page; click on that item and a blank page displays; enter a menu item
from the new page, it displays and is stored as a child of the previous item(page). The menu, navigation
trail, and default pages are created on the fly. All pages are defined in a hierarchy. Each page is
associated to a form where one can assign meta info, content file, template file, etc (i.e., a set of
directives for assembling that page), as well as reassign, reorder, and delete nodes. Obviously
content, modules, and templates are created separately; bu!

t they are simply flowed in as they are defined and built. 
	The only thing that is missing for use in large and sophisticated sites is a well thought-out application
platform. Enter BinaryCloud. I'm looking forward to seeing how my component might integrate with BC.
I'll be happy to contribute it to BC if people find it useful.

-Carlo
	

On 2002.01.29 01:39 alex black wrote:
> Question: How do you select just the immediate children of a node?

you know that child nodes are parallel because adjacent nodes have a
relationship:

L node1 R
R+1=L node2 R
(Continue reading)

Alex Black | 1 Feb 2002 02:36

Re: Nested Sets

> Thanks for your response. But I still had difficulty seeing the whole
> solution. So, I went to trusty B&N and reviewed Joe Celko's "SQL for
> Smarties". There's a whole chapter on nested set based trees. The query is
> complex; he recommends writing a procedure and includes an example.
> I'm interested in all of this because I have an idea for a tool to allow rapid
> website creation (or layout) from the point of view of an information
> architect. No more sketching flow diagrams, or creating and editing visio
> files, or assembling mock prototypes in html, for either internal
> brainstorming and visualization or external review. Just interactively type in
> a menu item in an input box at the bottom of a web page and voila! it appears
> on the the page; click on that item and a blank page displays; enter a menu
> item from the new page, it displays and is stored as a child of the previous
> item(page). The menu, navigation trail, and default pages are created on the
> fly.

Much of that exists or will exist in binarycloud, however instead of using a
GUI initially we use XML. There will be an IDE which will allow people to
visually "build" XML definition files, including individual entities and
complete site maps.

> The only thing that is missing for use in large and sophisticated sites is a
> well thought-out application platform. Enter BinaryCloud. I'm looking forward
> to seeing how my component might integrate with BC. I'll be happy to
> contribute it to BC if people find it useful.

definitely, we were going to build it if nothing suitable was found :)

_a
Carlo Moneti | 1 Feb 2002 03:15
Picon

Re: Nested Sets

Excellent!

-Carlo

On 2002.01.31 20:35 Alex Black wrote:
> Thanks for your response. But I still had difficulty seeing the whole
> solution. So, I went to trusty B&N and reviewed Joe Celko's "SQL for
> Smarties". There's a whole chapter on nested set based trees. The query is
> complex; he recommends writing a procedure and includes an example.
> I'm interested in all of this because I have an idea for a tool to allow rapid
> website creation (or layout) from the point of view of an information
> architect. No more sketching flow diagrams, or creating and editing visio
> files, or assembling mock prototypes in html, for either internal
> brainstorming and visualization or external review. Just interactively type in
> a menu item in an input box at the bottom of a web page and voila! it appears
> on the the page; click on that item and a blank page displays; enter a menu
> item from the new page, it displays and is stored as a child of the previous
> item(page). The menu, navigation trail, and default pages are created on the
> fly.

Much of that exists or will exist in binarycloud, however instead of using a
GUI initially we use XML. There will be an IDE which will allow people to
visually "build" XML definition files, including individual entities and
complete site maps.

> The only thing that is missing for use in large and sophisticated sites is a
> well thought-out application platform. Enter BinaryCloud. I'm looking forward
> to seeing how my component might integrate with BC. I'll be happy to
> contribute it to BC if people find it useful.

(Continue reading)

Andris Spruds | 1 Feb 2002 09:33
Picon

OT: specifications

Hi everyone,
Can someone send me the latest specs.pdf? They have currenly disabled
everything but email access for my user account here... :) I will get to
a normal connection, but that's going to be late this night or
tomorrow...

Thnx,
Andris
Peter Bowyer | 1 Feb 2002 15:49

Re: OT: specifications

Maybe this is a good time to change the Reply-to header to the original 
sender and let list members use the reply to all button in the mail 
client?  I used to prefer lists configured like binarycloud-dev, but after 
joining many more mailing lists using the reply-to-all button makes more 
sense, and prevents messages like this from choking everyone's connection.

Peter.

At 08:17 AM 2/1/02 -0500, Albert Lash wrote:

--
Maple Design - http://www.mapledesign.co.uk
Fredrik Svensson | 1 Feb 2002 15:58
Picon
Picon

RFC 7 progress ?!

> Yes, you should only change hits from user/*

Ok,
user/testsite/ent/RevisedDef.php.xml:   <create>0</create>
user/testsite/ent/furbee_type.ent.xml:  <create>0</create>
user/testsite/ent/furbees.ent.xml:      <create>0</create>
user/testsite/mod/tests/schemas/QueryExample.xml:  <create>0</create>

Should be done in 2 sec. Simples thing would be to remove the furbee
example since another bigger, better is comming.

> Actually that syntax should be removed entirely, as <create> will no longer
> be a part of the Entity definition format.

Might be out on deep water here..

I have rewritten the xsl stylesheet (ent2schema). It works for furbee ..
I think :)

Using the recursive template style instead of the iterative for-each.
"The only way to learn recursion is to learn recursion"

Where, how do I place it ?

Had also some thoughts about making a schema definition .xsd
(the DTD of XML) but that takes more time.. and that I don't have :)
What are the plans for schemas (see note) ?
Right now the ent has duplicate tag types for <sequence> for example
one that takes subtags like <name>, <start>, <on>, <table> and <field>
and another that holds the value true. (looking at furbee.. )
(Continue reading)

Andris Spruds | 1 Feb 2002 17:03
Picon

Re: Nested Sets

> The reason this is better than the "standard" flat way of doing it (id and
> parent id in the same table) is that you can manipulate infinitely large
> trees and maintain their integrity. If you remove a parent the crappy
model,
> all of the children are immediately orphans. This method allows you to add
> and delete nodes anywhere in the tree.

If you had an infinitely large tree and wanted to insert a item just after
the first item of the tree, you would wait for some 3 hours or more while
MySQL or whatever you use updates almost all records in the table. And if
you used indexes (index on both R&L) it would be even longer...

That's why I dont like the method - it may be fine for static trees, but for
dynamic ones I prefer the old, good id-parent_id way. The biggest problem
here is (with deep trees) when you want to get all the parents of an item.
Usually this means N queries where N is the depth of the item in the tree.
However, I believe, that it's possible to introduce a footprint table where
footprints (footprint=the path to the top of the tree) for each item would
be stored, thus introducing mulpiple queries when adding the item, but
eliminating the need to run multiple queries when receiving the data.

Andris
Andris Spruds | 1 Feb 2002 16:38
Picon

Re: query format & loading

If we will have SO many queries, I think I will have no other choice...

Andris
----- Original Message ----- 
From: "Alex Black" <enigma@...>
To: "binarycloud-dev" <dev@...>
Sent: Monday, January 28, 2002 11:40 PM
Subject: [binarycloud-dev] query format & loading

> hey andris,
> 
> I had a look at the query format, what do you think about splitting each
> query into separate files?
> 
> for example:
> 
> user/qry/ent_name/add/*.qry
>                             get/*.qry
>                             set/*.qry
>                             delete/*.qry
> 
> the reason I'm suggesting that is because I think we're going to have a
> large number of queries available by default.
> 
> _a
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
(Continue reading)

Andris Spruds | 1 Feb 2002 17:22
Picon

Re: Movie Database

We are going to need EDFs for movie database? Will you create them?

Andris
alex black | 1 Feb 2002 18:30

Re: RFC 7 progress ?!

> I have rewritten the xsl stylesheet (ent2schema). It works for furbee ..
> I think :)

I'll have a look.

> I had to patch my xsl to handle this.. by using match="database//secuence"

Yep, that's fine, need context anyway.

> Note : The name XML schema is a W3 standard, while schema as BC
>        uses it is a Database schema expressed in XML.
>        The ent and schema xml should maybe both have a schema file
>        sometimes in the future..

Probably xml schemas, not DTDs, as they are annoying to write :) Certainly
all of the XML in the system will have schema built, I want to wait until
we're release to do that.

_a

Gmane