<?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>code-diesel &#187; visualization</title>
	<atom:link href="http://www.codediesel.com/category/visualization/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codediesel.com</link>
	<description>/* PHP &#38; MySQL Journal */</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:19:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Infinite Wall of images using Mootools</title>
		<link>http://www.codediesel.com/javascript/infinite-wall-of-images-using-mootools/</link>
		<comments>http://www.codediesel.com/javascript/infinite-wall-of-images-using-mootools/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 12:33:12 +0000</pubDate>
		<dc:creator>sameer</dc:creator>
				<category><![CDATA[graphics]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[libraries]]></category>
		<category><![CDATA[visualization]]></category>
		<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://www.codediesel.com/?p=2852</guid>
		<description><![CDATA[JavaScript Photo galleries are dime-a-dozen, with a large number of variations in size and features. But this particular one developed using Mootools is a breath of fresh air. Most galleries are spatially bounded, i.e. they have a limit how how much you can scroll in any direction. The Wall &#8211; is a Photo Gallery which [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codediesel.com/wp-content/uploads/2011/07/thumbnailExamples1.jpg"><img src="http://www.codediesel.com/wp-content/uploads/2011/07/thumbnailExamples1.jpg" alt="" title="the wall" width="155" height="131" class="alignleft size-full wp-image-2855" /></a>JavaScript Photo galleries are dime-a-dozen, with a large number of variations in size and features.  But this particular one developed using Mootools is a breath of fresh air. Most galleries are spatially bounded, i.e. they have a limit how how much you can scroll in any direction.<br />
<span id="more-2852"></span><br />
The  Wall &#8211; is a Photo Gallery which can cover your entire screen with images.  It provides a spatially infinite plane to display images, video or other media. Imagine a infinite grid, in the cells of which you can put images. You can scroll the photos in any direction &#8211; vertical, horizontal, diagonal and reverse too. You can insert any number of images in the grid, which are repeated over the entire plane to give a illusion of an infinite wall.</p>
<p>Also, it’s not just for images, it also can hold videos and text and it can be used as an endless grid or also as the popular Coda Slider.</p>
<p><a href="http://www.codediesel.com/wp-content/uploads/2011/07/the_wall1.jpg"><img src="http://www.codediesel.com/wp-content/uploads/2011/07/the_wall1.jpg" alt="" title="the_wall" width="554" height="331" class="aligncenter size-full wp-image-2857" /></a></p>
<p>The plugin also provides many interesting variations on the basic theme as shown below.</p>
<p><a href="http://www.codediesel.com/wp-content/uploads/2011/07/the_wall_options1.jpg"><img src="http://www.codediesel.com/wp-content/uploads/2011/07/the_wall_options1.jpg" alt="the wall options" title="the_wall_options" width="550" height="318" class="aligncenter size-full wp-image-2859" /></a></p>
<p>Demos : <a href="http://wall.plasm.it/examples/" rel="nofollow" target="_blank" >http://wall.plasm.it/examples/</a><br />
URL : <a href="http://wall.plasm.it/" rel="nofollow" target="_blank" >http://wall.plasm.it/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codediesel.com/javascript/infinite-wall-of-images-using-mootools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generating a color palette from a image in php</title>
		<link>http://www.codediesel.com/php/generating-color-palette-from-aimage/</link>
		<comments>http://www.codediesel.com/php/generating-color-palette-from-aimage/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 06:57:50 +0000</pubDate>
		<dc:creator>sameer</dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[visualization]]></category>
		<category><![CDATA[graphics]]></category>

		<guid isPermaLink="false">http://www.codediesel.com/?p=2840</guid>
		<description><![CDATA[In the previous post we saw how we can generate a screenshot from a url. In this post we will see how we can create a color palette of the screenshot (or any other image for that matter) using PHP and GD. This can be useful if you need to quickly get the color scheme [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.codediesel.com/wp-content/uploads/2011/06/palette.gif"><img src="http://www.codediesel.com/wp-content/uploads/2011/06/palette.gif" alt="" title="palette" width="174" height="87" class="alignleft size-full wp-image-2843" /></a>In the <a href="http://www.codediesel.com/php/taking-screenshots-of-websites-in-php/"target="_blank" >previous post</a> we saw how we can generate a screenshot from a url. In this post we will see how we can create a color palette of the screenshot (or any other image for that matter) using PHP and GD. This can be useful if you need to quickly get the color scheme of a website or a image. Below are a few example images and their palettes generated using the program.<br />
<span id="more-2840"></span><br />
<a href="http://www.codediesel.com/wp-content/uploads/2011/06/Image1.gif"><img src="http://www.codediesel.com/wp-content/uploads/2011/06/Image1.gif" alt="" title="color palette" width="277" height="560" class="aligncenter size-full wp-image-2842" /></a><br />
<em>Images: Flickr</em></p>
<h4>Creating a palette</h4>
<p>The palette script requires the GD library to be installed on your system. These days the GD library is installed on most PHP systems; but if it is disabled you need to enable it in your php.ini. Make sure that the following line is set in your php.ini.</p>

<div class="wp_codebox"><table><tr id="p28405"><td class="code" id="p2840code5"><pre class="php" style="font-family:monospace;">extension<span style="color: #339933;">=</span>php_gd2<span style="color: #339933;">.</span>dll</pre></td></tr></table></div>

<p>Next download the palette class from below, which includes a test picture and a test php script. The original palette class from which the examples are created can be found at <a href="https://github.com/cfidecaro/Palit" rel="nofollow" target="_blank" >github</a>, but the below download includes all the necessary files to create a palette.</p>
<div  class="download2">
<a href="http://www.codediesel.com/downloads/palette" rel="nofollow" >Download Source</a><br />
<span>Downloads : 992  / File size : 18.9 kB</span>
</div>
<p>The php script creates a palette of the most common colors found in the image. Try using various grid sizes to see how the palette looks. Hovering on each color cell will display the corresponding color value.</p>
<h4>The code</h4>
<p>The skeleton of the example code  is shown below:</p>

<div class="wp_codebox"><table><tr id="p28406"><td class="code" id="p2840code6"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;colors.inc.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$image_to_read</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;tomato.jpg&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$pal</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GetMostCommonColors<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$pal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">image</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$image_to_read</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$colors</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Get_Color</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>The $colors variable now holds an array of colors, the most common colors being at the top. We can now iterate through the array and display the colors using various methods. In the example code included in the download, I&#8217;ve used a html table to display the palette.</p>

<div class="wp_codebox"><table><tr id="p28407"><td class="code" id="p2840code7"><pre class="text" style="font-family:monospace;">    Array
    (
        [f0f0f0] =&gt; 3598
        [e0e0e0] =&gt; 1803
        [f0f0e0] =&gt; 326
        [e0e0c0] =&gt; 141
        [c0c0c0] =&gt; 110
        [404040] =&gt; 67
        .
        .</pre></td></tr></table></div>

<p>The complete example code is shown below.</p>

<div class="wp_codebox"><table><tr id="p28408"><td class="code" id="p2840code8"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;colors.inc.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/* The image from which the palette will be generated */</span>
<span style="color: #000088;">$image_to_read</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;tomato.jpg&quot;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #009933; font-style: italic;">/* Make sure that this number is a perfect square - 9,16,25,36 etc;
   this will enable you to create a square palette grid.
&nbsp;
   The following for example will create a 5x5 grid.
 */</span>
&nbsp;
<span style="color: #000088;">$colors_to_show</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">25</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$pal</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> GetMostCommonColors<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$pal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">image</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$image_to_read</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$colors</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pal</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Get_Color</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$colors_key</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_keys</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$colors</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;</span>html<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>head<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>style type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/css&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #009933; font-style: italic;">/* Change the width and height of the palette squares */</span>
td <span style="color: #009900;">&#123;</span> width<span style="color: #339933;">:</span> 25px<span style="color: #339933;">;</span> height<span style="color: #339933;">:</span> 25px<span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;/</span>style<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>table border<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000088;">$inc</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sqrt</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$colors_to_show</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$colors_to_show</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">+=</span> <span style="color: #000088;">$inc</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$out</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;tr&gt;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$j</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$j</span><span style="color: #339933;">&lt;</span><span style="color: #000088;">$inc</span><span style="color: #339933;">;</span><span style="color: #000088;">$j</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;td title=<span style="color: #000099; font-weight: bold;">\&quot;</span>#&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$colors_key</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$j</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> 
                 bgcolor=<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$colors_key</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$j</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&lt;/td&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000088;">$out</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;/tr&gt;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">echo</span> <span style="color: #000088;">$out</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #339933;">&lt;/</span>table<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>The above example is included in the download.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codediesel.com/php/generating-color-palette-from-aimage/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Auto website wireframes</title>
		<link>http://www.codediesel.com/javascript/auto-website-wireframes/</link>
		<comments>http://www.codediesel.com/javascript/auto-website-wireframes/#comments</comments>
		<pubDate>Sun, 09 Jan 2011 09:50:43 +0000</pubDate>
		<dc:creator>sameer</dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[visualization]]></category>
		<category><![CDATA[wireframe]]></category>

		<guid isPermaLink="false">http://www.codediesel.com/?p=2777</guid>
		<description><![CDATA[Creating wireframes is one of the essential tasks of any web designer or information architect, and with a plethora of tools available it has become an easy task. Wireframes give you a birds eye view of the site before you actually commit to a design. It is also instructional to see the designs of other [...]]]></description>
			<content:encoded><![CDATA[<p>Creating wireframes is one of the essential tasks of any web designer or information architect, and with a plethora of tools available it has become an easy task. Wireframes give you a birds eye view of the site before you actually commit to a design. It is also instructional to see the designs of other site, but then you have go to the drawing board and create one yourself. Wirify makes the job easier for you.</p>
<p><a href="http://www.volkside.com/2010/12/introducing-wirify-the-web-as-wireframes/" rel="nofollow" target="_blank" >Wirify</a> is a small bookmarklet that lets you quickly see the wire-frame of any website with a single click. For example below is a wireframe of the current site.<br />
<span id="more-2777"></span><br />
<a href="http://www.codediesel.com/wp-content/uploads/2011/01/wireframe.gif"><img src="http://www.codediesel.com/wp-content/uploads/2011/01/wireframe.gif" alt="" title="wireframe" width="494" height="591" class="aligncenter size-full wp-image-2779" /></a></p>
<p>Wirify constructs the wireframe using CSS techniques and images. Only if it could export the design to formats understandable by page creation softwares.</p>
<h4>But why would anyone want to do that?</h4>
<p>According to the author:</p>
<p>   1. The wireframe allows you to step back and see the big picture. By tuning out the detail it lets you study the building blocks of the page and their relationships.</p>
<p>   2. The wireframe is a great learning and teaching tool. Many of the design concepts that underpin page layouts become easier to identify and analyse in a wireframe. Think visual hierarchy, whitespace, symmetry, chunking, grid systems, golden ratio, rule of thirds, etc. etc.</p>
<p>   3. The wireframe is a useful redesign tool that stops you getting bogged down in detail in the very early stage of a website redesign project.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codediesel.com/javascript/auto-website-wireframes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visualizing application structure with nWire</title>
		<link>http://www.codediesel.com/php/visualizing-application-structure-with-nwire/</link>
		<comments>http://www.codediesel.com/php/visualizing-application-structure-with-nwire/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 11:17:10 +0000</pubDate>
		<dc:creator>sameer</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[visualization]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.codediesel.com/?p=1748</guid>
		<description><![CDATA[visualize application structure with nwire]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.nwiresoftware.com/products/nwire-php" rel="nofollow" target="_blank" >nWire</a> is a plugin for Eclipse that helps you understand the various components and their relationships in your application. Due to various complex PHP applications being developed &#8211; like Magento, Joomla and a wide variety of frameworks, developers finds it hard to understand the underlying architecture and relationships between various components within the application.<br />
<span id="more-1748"></span><br />
nWire lets you bring order to that complexity. Just as a map lets you visualize the relationships between various geographical elements  : cities, rivers, roads etc. nWire lets you understand the structure and relationships between various components of the given application. nWire is currently available for Zend Studio 7.0 and Eclipse 3.5 with PDT 2.1.</p>
<p>Currently the software includes three tools:<br />
a. Visualizer : Helps to browse components and associations using one simple unified view.<br />
b. Navigator : Interactive visual representation of all code associations.<br />
c. Search : Incremental search for any type of component, including classes and methods.</p>
<h4>Visualizer</h4>
<p>The visualizer presents the application components and associations in a graphical representation. Each component of the application appears as a node and associations appear as edges, with the association name given on the edges. When there are many associations of a given type, the associations are grouped into a sub-node. The graph can be traversed: expanding nodes to reveal associated components while the layout automatically adjusts.</p>
<p>The following is a visualization of the <a href="http://www.codediesel.com/php/accessing-amazon-product-advertising-api-in-php/">Amazon API class</a> I had posted about earlier.<br />
<a href="http://www.codediesel.com/wp-content/uploads/2009/10/amazon_api_class_php.png"><img src="http://www.codediesel.com/wp-content/uploads/2009/10/amazon_api_class_php.png" alt="amazon_api_class_php" title="amazon_api_class_php" width="459" height="651" class="aligncenter size-full wp-image-1752" /></a></p>
<p>Another visualization of WordPress 2.8, centered on index.php.<br />
(<em>Click image to view a larger version</em>)<br />
<a href="http://www.codediesel.com/wp-content/uploads/2009/10/index_php.png"><img src="http://www.codediesel.com/wp-content/uploads/2009/10/index_php-300x263.png" alt="index_php" title="index_php" width="300" height="263" class="aligncenter size-medium wp-image-1757" /></a></p>
<h4>Navigator</h4>
<p>The navigator presents the components and associations of the application which were discovered by the analyzer. It starts from a given selected component and shows all associated components. This includes inbound and outbound associations. The following figure shows the navigator with the WordPress &#8216;wp_meta()&#8217; function selected.</p>
<p><a href="http://www.codediesel.com/wp-content/uploads/2009/10/nwire_navi1.gif"><img src="http://www.codediesel.com/wp-content/uploads/2009/10/nwire_navi1.gif" alt="nwire_navi1" title="nwire_navi1" width="512" height="184" class="aligncenter size-full wp-image-1763" /></a></p>
<h4>Search</h4>
<p>The search feature lets you search for components by name or a partial name using wild cards.</p>
<p><a href="http://www.codediesel.com/wp-content/uploads/2009/10/nwire_search.gif"><img src="http://www.codediesel.com/wp-content/uploads/2009/10/nwire_search.gif" alt="nwire_search" title="nwire_search" width="347" height="450" class="aligncenter size-full wp-image-1767" /></a></p>
<h4>Price</h4>
<p>nWire is not OpenSource, but a 30-day trial is available. Single user license will cost you $59. If you are dealing with plethora of heavy applications, than the price is worth it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codediesel.com/php/visualizing-application-structure-with-nwire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP built in functions map</title>
		<link>http://www.codediesel.com/php/php-built-in-functions-map/</link>
		<comments>http://www.codediesel.com/php/php-built-in-functions-map/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 07:52:44 +0000</pubDate>
		<dc:creator>sameer</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://www.codediesel.com/?p=213</guid>
		<description><![CDATA[Wordle is a online Java Applet for generating word clouds. The application is simple. You enter a bunch of text and Wordle does the rest. The applet provides options to change color, font and layout. Just for fun I created a Wordle cloud to display php&#8217;s built in functions. Two samples are shown below. The [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wordle.net/" rel="nofollow" target="_blank" >Wordle</a> is a online Java Applet for generating word clouds. The application is simple. You enter a bunch of text and Wordle does the rest. The applet provides options to change color, font and layout. Just for fun I created a Wordle cloud to display php&#8217;s built in functions. Two samples are shown below. The size of the font in the cloud is proportional to the number of functions starting with the particular name.<br />
<span id="more-213"></span><br />
<img style="border: 2px solid #c0c0c0;" src="http://www.codediesel.com/wp-content/uploads/2009/01/wordle1.gif" alt="php built in functions map" title="php built in functions map" width="466" height="303" class="aligncenter size-full wp-image-214" /></p>
<p><img style="border: 2px solid #c0c0c0;" src="http://www.codediesel.com/wp-content/uploads/2009/01/wordle2.gif" alt="php built in functions map" title="php built in functions map" width="466" height="303" class="aligncenter size-half wp-image-215" /></p>
<div class="download">
<a href="http://www.codediesel.com/data/pdf/wordle.pdf">Download PDF versions.</a></div>
<p>The word list to generate the cloud was obtained by the following code:</p>

<div class="wp_codebox"><table><tr id="p21311"><td class="code" id="p213code11"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$functions_list</span> <span style="color: #339933;">=</span> <span style="color: #990000;">get_defined_functions</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$functions_list</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'internal'</span><span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">as</span> <span style="color: #000088;">$function_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$function_name</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>To see how many functions start with a particular name the following code was used:</p>

<div class="wp_codebox"><table><tr id="p21312"><td class="code" id="p213code12"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$functions_list</span> <span style="color: #339933;">=</span> <span style="color: #990000;">get_defined_functions</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$keys</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$functions_list</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'internal'</span><span style="color: #009900;">&#93;</span> <span style="color: #000000; font-weight: bold;">as</span> <span style="color: #000088;">$function_name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$pieces</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;_&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$function_name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">array_key_exists</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$pieces</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$keys</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$keys</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$pieces</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">++</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$keys</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$pieces</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #990000;">arsort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$keys</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$keys</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.codediesel.com/php/php-built-in-functions-map/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>&#8220;why software projects fail&#8221; Poster</title>
		<link>http://www.codediesel.com/visualization/why-software-projects-fail-poster/</link>
		<comments>http://www.codediesel.com/visualization/why-software-projects-fail-poster/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 08:37:21 +0000</pubDate>
		<dc:creator>sameer</dc:creator>
				<category><![CDATA[visualization]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.codediesel.com/?p=116</guid>
		<description><![CDATA[Software projects fail &#8211; that is a fact no developer is immune from; and the reasons for the same are quite simple and well understood. Still we encounter projects that have gone astray because developers or companies do not learn from their mistakes or are unwilling to follow best practices. For many of us, its [...]]]></description>
			<content:encoded><![CDATA[<p>Software projects fail &#8211; that is a fact no developer is immune from; and the reasons for the same are quite simple and well understood. Still we encounter projects that have gone astray because developers or companies do not learn from their mistakes or are unwilling to follow best practices. For many of us, its always the &#8220;next project&#8221; that is going to be well designed.<br />
<span id="more-116"></span><br />
On my book shelf I&#8217;ve a health chart. I had created it after I kept losing track of my daily exercise schedules. There is a quirk in the chart though. Rather than listing what exercise routines I should be doing or what food I should be eating, it lists all the negative aspects of living an unhealthy lifestyle. This spurs me towards action more than if I has just listed the positive aspects of health. Now once on the shelf it acts as a daily reminder and helps me keep my health in check.</p>
<p>The chart below lists some of the reasons that most software projects fail. I&#8217;ve created it so that anyone can print and post it near their workplace, as a constant reminder to the perils of poor development practices. Designing is not my forte, so extend me some latitude if you don&#8217;t like the design.</p>
<p><img src="http://www.codediesel.com/wp-content/themes/Maroon01/images/downloads.png" /><br />
<strong>Download chart as :</strong><br />
1. <a href="http://www.codediesel.com/wp-content/uploads/2008/10/why-software-fails.gif"title="why software fails"  target="_blank">Medium resolution Gif</a><br />
2. <a href="http://www.codediesel.com/data/pdf/why-software-projects-fails.pdf"title="why software fails"  target="_self">PDF</a></p>
<p style="text-align: center;"><a href="http://www.codediesel.com/wp-content/uploads/2008/10/why-software-fails.gif"><img class="aligncenter size-medium wp-image-117" title="why-software-fails" src="http://www.codediesel.com/wp-content/uploads/2008/10/why-software-fails-300x212.gif" alt="why-software-fails" width="300" height="212" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codediesel.com/visualization/why-software-projects-fail-poster/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Adding HeatMaps to your website</title>
		<link>http://www.codediesel.com/php/heatmaps-for-your-website/</link>
		<comments>http://www.codediesel.com/php/heatmaps-for-your-website/#comments</comments>
		<pubDate>Tue, 13 May 2008 15:57:39 +0000</pubDate>
		<dc:creator>sameer</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://www.codediesel.com/?p=46</guid>
		<description><![CDATA[ClickHeat is a wonderful PHP software that lets you add Heatmaps for your webpages. Heatmaps are visual representation of clicks on a HTML page, showing hot and cold click zones. It can be useful to see at a glance which webpage areas are getting the most clicks as this areas get redder in color while [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.labsmedia.com/clickheat/index.html" rel="nofollow" title="clickheat"  target="_blank">ClickHeat </a>is a wonderful PHP software that lets you add Heatmaps for your webpages.  Heatmaps are visual representation of clicks on a HTML page, showing hot and cold click zones. It can be useful to see at a glance which webpage areas are getting the most clicks as this areas get redder in color while the areas receiving less clicks are white. The software has many options to tweak, and the heatmaps can be added on a per page basis.</p>
<p>A sample heatmap image is shown below. You can also use the clickheat class in your own PHP applications. The software doesn&#8217;t require any database, only GD graphics library must be enabled on the server, which in most cases already is.</p>
<p>You can view a heatmap for the index page for this site <a href="http://www.codediesel.com/clickheat/index.php"title="heatmap"  target="_self">here</a>. I&#8217;ve presently only added click log for the index page, so try clicking on the index page links to update the heatmap.</p>
<p>username : <strong>visitor</strong><br />
password: <strong>visitor<br />
</strong></p>
<p>If you don&#8217;t see any changes in the heatmap, click on the &#8220;log my clicks&#8221; link in the right corner or try logging out and then logging in again.</p>
<p><a href="http://www.codediesel.com/wp-content/uploads/2008/05/heatmap.gif"><img class="alignnone size-full wp-image-47" title="heatmap" src="http://www.codediesel.com/wp-content/uploads/2008/05/heatmap.gif" alt="heatmap" width="465" height="269" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codediesel.com/php/heatmaps-for-your-website/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

