<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Working Beta &#187; Seeds</title>
	<atom:link href="http://seeds.workingbeta.com/category/seeds/feed/" rel="self" type="application/rss+xml" />
	<link>http://seeds.workingbeta.com</link>
	<description>a bounch of nearly working code</description>
	<lastBuildDate>Wed, 10 Feb 2010 21:25:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Resizable HTML elements</title>
		<link>http://seeds.workingbeta.com/2009/06/05/resizable-html-elements/</link>
		<comments>http://seeds.workingbeta.com/2009/06/05/resizable-html-elements/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 13:47:46 +0000</pubDate>
		<dc:creator>gc</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Seeds]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[Element]]></category>
		<category><![CDATA[handlers]]></category>
		<category><![CDATA[resize]]></category>

		<guid isPermaLink="false">http://seeds.workingbeta.com/?p=53</guid>
		<description><![CDATA[So, first elements of a visual interface ar draggable/resizable interface elements.
I decided to extend Prototype Element&#8217;s properties so that it can become really easy to add resize handlers to a given element. The code is fully working, thoug some extra features still need some tweaking. you can have 1 to 8 handlers, a callback fired [...]]]></description>
			<content:encoded><![CDATA[<p>So, first elements of a visual interface ar draggable/resizable interface elements.</p>
<p>I decided to extend Prototype Element&#8217;s properties so that it can become really easy to add resize handlers to a given element. The code is fully working, thoug some extra features still need some tweaking. you can have 1 to 8 handlers, a callback fired up upon the end of the resizing process, and a snap function [here i just copy/pasted scriptaculous code...].</p>
<p>what&#8217;s is still missing is:</p>
<ul>
<li>a better templating system for the handlers</li>
<li>better handling for elements; you can resize a TD element, but the table remains somewhat corrupted [I know were to fix it, but i just have soo many things to do]</li>
<li>complete the &#8216;mode&#8217; selector, just like you jave in Osx, XP, Kde, you can choose wether resize the original element or a copy [or a wireframed div]</li>
</ul>
<p>code is <a href="http://www.workingbeta.com/seeds/HtmlResizer.zip">here</a>, shall anyone like to jelp me finishing it, you&#8217;re welcome</p>
<p>Well, after all I think it&#8217;s really time to start writing some real stuff for my [our?!] visual IDE for webapps, so stay tuned and expect news in short time</p>
<p>Update: a really better method to&#8217; resize element is by using jqueryui classes, so update tour bookmarks. </p>
]]></content:encoded>
			<wfw:commentRss>http://seeds.workingbeta.com/2009/06/05/resizable-html-elements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Javascript 3D Tag Cloud</title>
		<link>http://seeds.workingbeta.com/2009/05/22/a-javascript-3d-tag-cloud/</link>
		<comments>http://seeds.workingbeta.com/2009/05/22/a-javascript-3d-tag-cloud/#comments</comments>
		<pubDate>Fri, 22 May 2009 20:03:10 +0000</pubDate>
		<dc:creator>gc</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Prototype]]></category>
		<category><![CDATA[Seeds]]></category>
		<category><![CDATA[DHTML]]></category>
		<category><![CDATA[javascript 3d]]></category>
		<category><![CDATA[Tag cloud]]></category>

		<guid isPermaLink="false">http://seeds.workingbeta.com/?p=51</guid>
		<description><![CDATA[I know everyone, at least once in his blogging life, installed WP Cumulus, the worldwide known plugin showing a shiny 3D tag cloud. In fact, nearly no one has eve used dimple javascript to create somethin like this, mostly because it seems to be quite useles, but also because, beside this, ther&#8217;s really near no [...]]]></description>
			<content:encoded><![CDATA[<p>I know everyone, at least once in his blogging life, installed <a href="http://wordpress.org/extend/plugins/wp-cumulus/" target="_blank">WP Cumulus</a>, the worldwide known plugin showing a shiny 3D tag cloud. In fact, nearly no one has eve used dimple javascript to create somethin like this, mostly because it seems to be quite useles, but also because, beside this, ther&#8217;s really near no need for this kind of objects.</p>
<p>if yout blog really needs this kind of applet, well, it doesn&#8217;t really matters wether it is a <strong>3d javascript</strong> object or a flash movie.</p>
<p>The only odd in the mentioned plugin is that you loose SEO opportunities, so, if you really, really, really, really want to try such thing, i&#8217;ve just come with a nearly fully functional  HTML only version of tht object. Just create your usual &lt;ul&gt;&lt;li&gt; assign them the specific class (I&#8217;ll give you a hint&#8230; &#8220;tagcloud&#8221;) and call the proper constructor&#8230; on the mouseover all of youtr cloud will start to move around your layer.<br />
There&#8217;s of course place to soo many customisazione, and the <strong>3D </strong>functions that I&#8217;m using are still not perfect, so, if you come with a better version than <a href="http://www.workingbeta.com/seeds/HtmlTagCloud.zip">mine</a>, please let me know.</p>
<p>Update: after 6 onths from the original post, this is still the most visited btween all the other [5] post composing this blog. It makes me wonder if a <strong>javascript 3d</strong> library would be wellcome. something like a Prototype class or evena Jquery UI class&#8230; with a bit of tweaking and a little amount of css programming real fake <strong>3d</strong> GUI elements could be created&#8230;</p>
<p>In the [real little] spare time I can give to this blog, I will try to create such library.</p>
]]></content:encoded>
			<wfw:commentRss>http://seeds.workingbeta.com/2009/05/22/a-javascript-3d-tag-cloud/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>class.tree.php</title>
		<link>http://seeds.workingbeta.com/2008/11/24/classtreephp/</link>
		<comments>http://seeds.workingbeta.com/2008/11/24/classtreephp/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 12:07:41 +0000</pubDate>
		<dc:creator>gc</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Seeds]]></category>
		<category><![CDATA[recursion]]></category>
		<category><![CDATA[tree]]></category>

		<guid isPermaLink="false">http://seeds.workingbeta.com/?p=33</guid>
		<description><![CDATA[Trees are all around us&#8230; inside and outside our computers. As you may have already seen on your daily basis work, when you deal with tree-like structures binded to tables into your DB, you set something like

id  &#124;  id_father  &#124;      name     &#124; other [...]]]></description>
			<content:encoded><![CDATA[<p>Trees are all around us&#8230; inside and outside our computers. As you may have already seen on your daily basis work, when you deal with tree-like structures binded to tables into your DB, you set something like</p>
<blockquote><p><code><br />
id  |  id_father  |      name     | other datas<br />
01  |                00  |      root           | ...<br />
02  |                01  |  sub node | ...<br />
</code></p></blockquote>
<p>this kind of data structure is usually managed via recursion, and in web applications is useful to store site menu, product categories,  file-system alike apps and so on.<br />
The class i&#8217;m seeding here does all the dirty job giving you the possibility to</p>
<ul>
<li>use custom callback to modify the default behaviour [&lt;ul&gt;&lt;li&gt; sequence]</li>
<li>minimize/maximize function [for folder-like interfaces]</li>
<li>navigation path serialization</li>
</ul>
<p>those are the methods usually needed for day-to-day work with trees.<br />
<a href="http://workingbeta.com/seeds/class.tree.zip">here</a> you find all the code, but I&#8217;d like to poin out two things that [IMHO] really teach something to the average PHP programmer</p>
<ul>
<li>in the <strong>constructor</strong> 3 arrays are build as properties starting from the original array: arrayById, arrayByFather, arrayHasChild. I don&#8217;t know if it would be faster using array_find.. but once we&#8217;ve made the proper index association, ther&#8217;s no need for the original array to be parsed again.</li>
<li>use of $$ for the callback function: not so many people knows this sintax, but it&#8217;s worth a try</li>
</ul>
<p>the rest is really simple, and it&#8217;s well commented as well.</p>
<p>of course it fits perfectly with the standard output from dbmanager class presented <a href="http://seeds.workingbeta.com/2008/11/18/classdbmanagerphp/">here</a>. Set up your table in an appropriate way, make your assocQuery call and use your tree in no time.</p>
]]></content:encoded>
			<wfw:commentRss>http://seeds.workingbeta.com/2008/11/24/classtreephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
