<?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>Snipe.Net &#187; ui</title>
	<atom:link href="http://www.snipe.net/tags/ui/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.snipe.net</link>
	<description>Bitterness never tasted so sweet</description>
	<lastBuildDate>Tue, 24 Jan 2012 04:30:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>GUI Planning Made Easy with the Pencil Project</title>
		<link>http://www.snipe.net/2008/07/gui-planning-made-easy-with-the-pencil-project/</link>
		<comments>http://www.snipe.net/2008/07/gui-planning-made-easy-with-the-pencil-project/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 19:51:31 +0000</pubDate>
		<dc:creator>snipe</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[software design]]></category>
		<category><![CDATA[ui]]></category>
		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://www.snipe.net/?p=165</guid>
		<description><![CDATA[Designing a good GUI is arguably one of the most difficult &#8211; and critical &#8211; phases of application development. It&#8217;s absolutely one of the most overlooked, and part of the reason for that may be the fact that we haven&#8217;t had many tools that allow us to quickly and easily throw together a GUI design [...]]]></description>
			<content:encoded><![CDATA[<p>Designing a good GUI is arguably one of the most difficult &#8211; and critical &#8211; phases of application development. It&#8217;s absolutely one of the most overlooked, and part of the reason for that may be the fact that we haven&#8217;t had many tools that allow us to quickly and easily throw together a GUI design that can then be put through its paces. Photoshop mock-ups, although easy enough to do, can be time-consuming &#8211; and if you&#8217;re purely a developer, you may not even have access to Photoshop in the first place. Fortunately, your days of scratching out GUI designs in crayon on the TGIFriday&#8217;s placements (don&#8217;t laugh &#8211; I&#8217;ve done it) are over.</p>
<p>Five years ago, people used a specific piece of software because it did what they needed. Even if the interface was miserable, it was the only thing out there that did the job, so they learned to suck it up. These days, there are so many pieces of software that do the same &#8211; or virtually the same &#8211; things, that the user actually has a *choice* &#8211; and the winner will almost always be the one that&#8217;s easiest to use.</p>
<p>The Pencil Project is a Firefox addon that takes much of the hassle out of GUI development, with an easy-to-use drop-and-drop interface with text editing and a library of shapes and form widgets.</p>
<p>From the <a href="http://www.evolus.vn/Pencil/Home.html" target="_blank">Pencil Project website</a>:</p>
<blockquote>
<p class="Brief"><strong> The Pencil Project&#8217;s unique mission is to build a free and opensource tool for making diagrams and GUI prototyping that everyone can use. </strong></p>
<p><strong>Top features:</strong></p>
<ul>
<li>Built-in stencils for diagraming and prototyping</li>
<li>Multi-page document with background page</li>
<li>On-screen text editing with rich-text supports</li>
<li>PNG rasterizing</li>
<li>Undo/redo supports</li>
<li>Installing user-defined stencils</li>
<li>Standard drawing operations: aligning, z-ordering, scaling, rotating&#8230;</li>
<li>Cross-platforms</li>
<li>Adding external objects</li>
<li>And much more&#8230;</li>
</ul>
<p>Pencil will always be free as it is released under the <abbr title="The GNU Public License">GPL</abbr> version 2 and is available for virtually all platforms that Firefox 3 can run. The first version of Pencil is tested against GNU/Linux 2.6 with GTK+, Windows XP and Windows Vista.</p></blockquote>
<p>Obviously, if you&#8217;re a crappy GUI designer, or if you don&#8217;t take the time to test your designs, The Pencil Project isn&#8217;t going to save your hide, but for developers who care about GUI design, it can shave quite a bit of time off that design process. Assuming you&#8217;re the latter instead of the former, <a href="http://www.evolus.vn/Pencil/Home.html" target="_blank">visit the Pencil Project website to learn more and download it now</a>.</p>
<p><a href="http://www.snipe.net/wp-content/uploads/2008/07/selected-home.jpg"><img class="aligncenter size-full wp-image-166" title="selected-home" src="http://www.snipe.net/wp-content/uploads/2008/07/selected-home.jpg" alt="" width="474" height="360" /></a></p>

 <script type="text/javascript">
	<!--
		function onover(what){
	document.getElementById('blurbtext').innerHTML=''+what+'';
	}
	function onout(){
	document.getElementById('blurbtext').innerHTML='&nbsp;';
	}
	-->
	</script>



<h3 style="padding-bottom: 0px; margin-bottom: 0px;">Also check out: <br /><span id="blurbtext"><br /></span></h3>

<div id="relatedposts">




		
               

        
        
        
		<div class="yarppimg"><a href="http://www.snipe.net/2008/06/floorplans-made-easy-with-planningwiz/" rel="bookmark">
		<img src="http://www.snipe.net/wp-content/themes/snipe/thumb.php?src=http://www.snipe.net/wp-content/uploads/2008/06/picture-41.png&amp;h=90&amp;w=90&amp;zc=1&amp;q=95" alt="Floorplans Made Easy with PlanningWiz" height="90" width="90" onmouseover="onover('Floorplans Made Easy with PlanningWiz')" onmouseout="onout()" /></a></div>

			
               

        
        
        
		<div class="yarppimg"><a href="http://www.snipe.net/2009/02/questions-to-ask-before-starting-a-project/" rel="bookmark">
		<img src="http://www.snipe.net/wp-content/themes/snipe/thumb.php?src=http://www.snipe.net/wp-content/uploads/2009/02/belize-blue-hole.jpg&amp;h=90&amp;w=90&amp;zc=1&amp;q=95" alt="Questions to Ask Before Starting a Project" height="90" width="90" onmouseover="onover('Questions to Ask Before Starting a Project')" onmouseout="onout()" /></a></div>

			
               

        
        
        
		<div class="yarppimg"><a href="http://www.snipe.net/2010/02/wireframes/" rel="bookmark">
		<img src="http://www.snipe.net/wp-content/themes/snipe/thumb.php?src=http://www.snipe.net/wp-content/uploads/2010/02/iplotz.png&amp;h=90&amp;w=90&amp;zc=1&amp;q=95" alt="Sexy, Cheap and Easy: Not Your Mom, Your Wireframes" height="90" width="90" onmouseover="onover('Sexy, Cheap and Easy: Not Your Mom, Your Wireframes')" onmouseout="onout()" /></a></div>

	</div>

]]></content:encoded>
			<wfw:commentRss>http://www.snipe.net/2008/07/gui-planning-made-easy-with-the-pencil-project/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Alternating Row Colors in PHP/mySQL</title>
		<link>http://www.snipe.net/2002/06/alternating-row-colors-in-phpmysql/</link>
		<comments>http://www.snipe.net/2002/06/alternating-row-colors-in-phpmysql/#comments</comments>
		<pubDate>Wed, 19 Jun 2002 16:05:57 +0000</pubDate>
		<dc:creator>snipe</dc:creator>
				<category><![CDATA[PHP/mySQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://www.snipe.net/?p=29</guid>
		<description><![CDATA[Using alternating row colors in a PHP database application is a nice way to give the user some visual differentiation between multiple rows of results &#8211; and the best part is that it&#8217;s so damn easy.  I&#8217;m going to assume that you&#8217;re using CSS for formatting, but if you are still using HTML to set [...]]]></description>
			<content:encoded><![CDATA[<p>Using alternating row colors in a PHP database application is a nice way to give the user some visual differentiation between multiple rows of results &#8211; and the best part is that it&#8217;s so damn easy.  I&#8217;m going to assume that you&#8217;re using CSS for formatting, but if you are still using HTML to set attributed like background colors in your database results out table (gasp!), you can still make this code work just as easily.  In this example, we are using the CSS elements <strong>resultline</strong> and <strong>resultlinealt</strong>, but you can name them whatever you like.<span id="more-29"></span></p>
<p>[source lang='php']<br />
/* OUTSIDE of the SQL loop, set a zero value for the rowcolor<br />
* variable, which is basically just our row counter.<br />
*/<br />
$rowcolor = 0;</p>
<p>/* Set values for your two different CSS styles here */<br />
$report_class = ($rowcolor % 2) ? &#8216;resultline&#8217; : &#8216;resultlinealt&#8217;;</p>
<p>/* Loop through the database results and print out<br />
* the table rows &#8211; this example query assums we have<br />
* executed a query asking for the name and address within a<br />
* given table */<br />
while (list($name, $address) = mysql_fetch_row($resultt)){<br />
echo &#8216;<br />
<tr>
<td class="'.$report_class.'">&#8216;.$name.&#8217;</td>
</tr>
<p>&#8216;;<br />
$rowcolor++;<br />
}<br />
[/source]</p>

 <script type="text/javascript">
	<!--
		function onover(what){
	document.getElementById('blurbtext').innerHTML=''+what+'';
	}
	function onout(){
	document.getElementById('blurbtext').innerHTML='&nbsp;';
	}
	-->
	</script>



<h3 style="padding-bottom: 0px; margin-bottom: 0px;">Also check out: <br /><span id="blurbtext"><br /></span></h3>

<div id="relatedposts">




		
               

        
        
        
		<div class="yarppimg"><a href="http://www.snipe.net/2002/06/phpmysql-breadcrumb-trail/" rel="bookmark">
		<img src="http://www.snipe.net/wp-content/themes/snipe/thumb.php?src=http://www.snipe.net/wp-content/uploads/2008/06/breadcrumbs_editorial.jpg&amp;h=90&amp;w=90&amp;zc=1&amp;q=95" alt="PHP/mySQL Breadcrumb Trail" height="90" width="90" onmouseover="onover('PHP/mySQL Breadcrumb Trail')" onmouseout="onout()" /></a></div>

			
               

        
        
        
		<div class="yarppimg"><a href="http://www.snipe.net/2008/12/ip-geolocation-radius-search-in-php/" rel="bookmark">
		<img src="http://www.snipe.net/wp-content/themes/snipe/thumb.php?src=http://www.snipe.net/wp-content/uploads/2008/12/center_map.jpg&amp;h=90&amp;w=90&amp;zc=1&amp;q=95" alt="Using IP Geolocation and Radius Searching with PHP/MySQL" height="90" width="90" onmouseover="onover('Using IP Geolocation and Radius Searching with PHP/MySQL')" onmouseout="onout()" /></a></div>

			
               

        
        
        
		<div class="yarppimg"><a href="http://www.snipe.net/2006/06/creating-a-multi-level-listbox-in-phpmysql/" rel="bookmark">
		<img src="http://www.snipe.net/wp-content/themes/snipe/thumb.php?src=http://www.snipe.net/wp-content/uploads/2008/06/listbox.gif&amp;h=90&amp;w=90&amp;zc=1&amp;q=95" alt="Creating a Multi-Level Listbox in PHP/mySQL" height="90" width="90" onmouseover="onover('Creating a Multi-Level Listbox in PHP/mySQL')" onmouseout="onout()" /></a></div>

	</div>

]]></content:encoded>
			<wfw:commentRss>http://www.snipe.net/2002/06/alternating-row-colors-in-phpmysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP/mySQL Breadcrumb Trail</title>
		<link>http://www.snipe.net/2002/06/phpmysql-breadcrumb-trail/</link>
		<comments>http://www.snipe.net/2002/06/phpmysql-breadcrumb-trail/#comments</comments>
		<pubDate>Wed, 19 Jun 2002 15:48:50 +0000</pubDate>
		<dc:creator>snipe</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[PHP/mySQL]]></category>
		<category><![CDATA[breadcrumbs]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ui]]></category>

		<guid isPermaLink="false">http://www.snipe.net/?p=22</guid>
		<description><![CDATA[This lets you automatically create a breadcrumb trail navigation through PHP and mySQL, that would look something like: Home &#62;&#62; Parrots &#62;&#62; Red Parrots This type of dynamic breadcrumb trail is only possible when you are storing the menu items (or categories) in a table, that contains at least a name, a category id number [...]]]></description>
			<content:encoded><![CDATA[<div></div>
<div>This lets you automatically create a breadcrumb trail navigation through PHP and mySQL, that would look something like: <strong></strong></div>
<div>
</div>
<div>
</div>
<div><strong>Home &gt;&gt; Parrots &gt;&gt; Red Parrots</strong></div>
<div>
</div>
<div><strong></strong>This type of dynamic breadcrumb trail is only possible when you are storing the menu items (or categories) in a table, that contains at least a name, a category id number and a parent category id number.<span id="more-22"></span></div>
<p><code><span style="color: #000000;"> <span style="color: #0000bb;">&lt;?php<br />
</span><span style="color: #ff8000;">/* ---------------------------------------------- */<br />
/* ------------ BEGIN PHP SNIPPET ----------------*/<br />
/* ---------------------------------------------- */<br />
// $this_cat_id: the current category id number<br />
// $flarn: just a counter, call it as 0 in your<br />
// function call and forget about it<br />
// $keep_cat_id: the cat id number again - so that<br />
// it can decide whether to make a<br />
// category a link at the top while you're in the<br />
// "product" page</span></span></code></p>
<p><span style="color: #007700;">function </span><span style="color: #0000bb;">get_crumbs</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$this_cat_id</span><span style="color: #007700;">, </span><span style="color: #0000bb;">$flarn</span><span style="color: #007700;">, </span><span style="color: #0000bb;">$keep_cat_id</span><span style="color: #007700;">) {</span></p>
<p><span style="color: #0000bb;">$link_to_page</span><span style="color: #007700;">=</span><span style="color: #0000bb;">$_SERVER</span><span style="color: #007700;">[</span><span style="color: #dd0000;">'PHP_SELF'</span><span style="color: #007700;">];<br />
if (!isset(</span><span style="color: #0000bb;">$this_cat_id</span><span style="color: #007700;">)) {<br />
</span><span style="color: #ff8000;">// if we are already &#8220;home&#8221;, dont make home a link<br />
</span><span style="color: #0000bb;">$this_cat_id </span><span style="color: #007700;">=</span><span style="color: #dd0000;">&#8220;0&#8243;</span><span style="color: #007700;">;<br />
echo </span><span style="color: #dd0000;">&#8220;Home &lt;&lt; &#8220;</span><span style="color: #007700;">;<br />
}<br />
</span><span style="color: #ff8000;">// get the info and parent id for whatever category<br />
// we&#8217;re currently in</span></p>
<p><span style="color: #0000bb;">$sql </span><span style="color: #007700;">= </span><span style="color: #dd0000;">&#8220;SELECT id, parent_id, name from categories &#8220;</span><span style="color: #007700;">;<br />
</span><span style="color: #0000bb;">$sql </span><span style="color: #007700;">.=</span><span style="color: #dd0000;">&#8220;where id = $this_cat_id&#8221;</span><span style="color: #007700;">;</span></p>
<p><span style="color: #0000bb;">$show_crumb_trail </span><span style="color: #007700;">= </span><span style="color: #0000bb;">mysql_query</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$sql</span><span style="color: #007700;">);<br />
</span><span style="color: #0000bb;">$num_crumbs </span><span style="color: #007700;">= </span><span style="color: #0000bb;">mysql_num_rows</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$show_crumb_trail</span><span style="color: #007700;">);</span></p>
<p><span style="color: #ff8000;">// if we actually have some results&#8230;.<br />
</span><span style="color: #007700;">if (</span><span style="color: #0000bb;">$num_crumbs </span><span style="color: #007700;">&gt; </span><span style="color: #0000bb;">0</span><span style="color: #007700;">) {<br />
list(</span><span style="color: #0000bb;">$cat_id</span><span style="color: #007700;">, </span><span style="color: #0000bb;">$cat_parent</span><span style="color: #007700;">, </span><span style="color: #0000bb;">$cat_name</span><span style="color: #007700;">) = </span><span style="color: #0000bb;">mysql_fetch_row</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$show_crumb_trail</span><span style="color: #007700;">);<br />
</span><span style="color: #0000bb;">$cat_id_array</span><span style="color: #007700;">[</span><span style="color: #0000bb;">$flarn</span><span style="color: #007700;">] = </span><span style="color: #0000bb;">$cat_id</span><span style="color: #007700;">;<br />
</span><span style="color: #0000bb;">$cat_parent_id_array</span><span style="color: #007700;">[</span><span style="color: #0000bb;">$flarn</span><span style="color: #007700;">] = </span><span style="color: #0000bb;">$cat_parent</span><span style="color: #007700;">;<br />
</span><span style="color: #0000bb;">$cat_name_array</span><span style="color: #007700;">[</span><span style="color: #0000bb;">$flarn</span><span style="color: #007700;">] = </span><span style="color: #0000bb;">$cat_name</span><span style="color: #007700;">;<br />
if (</span><span style="color: #0000bb;">$cat_id_array</span><span style="color: #007700;">[</span><span style="color: #0000bb;">$flarn</span><span style="color: #007700;">] &gt; </span><span style="color: #0000bb;">0</span><span style="color: #007700;">) {<br />
</span><span style="color: #0000bb;">mysql_free_result</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$show_crumb_trail</span><span style="color: #007700;">);<br />
</span><span style="color: #ff8000;">// increment $next by one<br />
</span><span style="color: #0000bb;">$next </span><span style="color: #007700;">= </span><span style="color: #0000bb;">$flarn</span><span style="color: #007700;">+</span><span style="color: #0000bb;">1</span><span style="color: #007700;">;<br />
if (</span><span style="color: #0000bb;">$flarn </span><span style="color: #007700;">== </span><span style="color: #0000bb;">0 </span><span style="color: #007700;">) {<br />
echo </span><span style="color: #dd0000;">&#8220;Home &lt;&lt; &#8220;</span><span style="color: #007700;">;<br />
}<br />
</span><span style="color: #ff8000;">// now lets call the function again to loop through<br />
// the other categories<br />
// until we&#8217;re left with none<br />
</span><span style="color: #0000bb;">get_crumbs</span><span style="color: #007700;">(</span><span style="color: #0000bb;">$cat_parent_id_array</span><span style="color: #007700;">[</span><span style="color: #0000bb;">$flarn</span><span style="color: #007700;">], </span><span style="color: #0000bb;">$next</span><span style="color: #007700;">, </span><span style="color: #0000bb;">$keep_cat_id</span><span style="color: #007700;">);</span></p>
<p><span style="color: #ff8000;">// Since $keep_cat_id is the id number of original<br />
// category we&#8217;re in,<br />
// now we check to see whether or not we have to<br />
// make the real category<br />
// name a link or not<br />
// (If we&#8217;re looking at the main category display,<br />
// we wouldn&#8217;t have to,<br />
// since we&#8217;re already *in* the category.Â Â This is<br />
// more useful for when you have a product<br />
// display page, that way the link back to the<br />
// category that item orÂ Â product lives in<br />
// will be created<br />
</span><span style="color: #007700;">if (</span><span style="color: #0000bb;">$keep_cat_id</span><span style="color: #007700;">==</span><span style="color: #0000bb;">$cat_id_array</span><span style="color: #007700;">[</span><span style="color: #0000bb;">$flarn</span><span style="color: #007700;">]) {<br />
echo </span><span style="color: #0000bb;">$cat_name_array</span><span style="color: #007700;">[</span><span style="color: #0000bb;">$flarn</span><span style="color: #007700;">];<br />
} else {<br />
echo </span><span style="color: #dd0000;">&#8220;$cat_name_array[$flarn] &lt;&lt; &#8220;</span><span style="color: #007700;">;<br />
}<br />
}<br />
}<br />
}<br />
</span><span style="color: #0000bb;">?&gt;</span></p>
<p>You would call the function using something like this:</p>
<p><code><span style="color: #000000;"> &lt;php get_crumbs($_REQUEST['cat_id'], "0", $_REQUEST['cat_id']; ?&gt;</span> </code></p>

 <script type="text/javascript">
	<!--
		function onover(what){
	document.getElementById('blurbtext').innerHTML=''+what+'';
	}
	function onout(){
	document.getElementById('blurbtext').innerHTML='&nbsp;';
	}
	-->
	</script>



<h3 style="padding-bottom: 0px; margin-bottom: 0px;">Also check out: <br /><span id="blurbtext"><br /></span></h3>

<div id="relatedposts">




		
               

        
        
        
		<div class="yarppimg"><a href="http://www.snipe.net/2006/06/creating-a-multi-level-listbox-in-phpmysql/" rel="bookmark">
		<img src="http://www.snipe.net/wp-content/themes/snipe/thumb.php?src=http://www.snipe.net/wp-content/uploads/2008/06/listbox.gif&amp;h=90&amp;w=90&amp;zc=1&amp;q=95" alt="Creating a Multi-Level Listbox in PHP/mySQL" height="90" width="90" onmouseover="onover('Creating a Multi-Level Listbox in PHP/mySQL')" onmouseout="onout()" /></a></div>

			
               

        
        
        
		<div class="yarppimg"><a href="http://www.snipe.net/2008/12/ip-geolocation-radius-search-in-php/" rel="bookmark">
		<img src="http://www.snipe.net/wp-content/themes/snipe/thumb.php?src=http://www.snipe.net/wp-content/uploads/2008/12/center_map.jpg&amp;h=90&amp;w=90&amp;zc=1&amp;q=95" alt="Using IP Geolocation and Radius Searching with PHP/MySQL" height="90" width="90" onmouseover="onover('Using IP Geolocation and Radius Searching with PHP/MySQL')" onmouseout="onout()" /></a></div>

			
               

        
        
        
		<div class="yarppimg"><a href="http://www.snipe.net/2002/06/alternating-row-colors-in-phpmysql/" rel="bookmark">
		<img src="http://www.snipe.net/wp-content/themes/snipe/thumb.php?src=http://www.snipe.net/wp-content/uploads/2008/06/alternatingrowcolors1.jpg&amp;h=90&amp;w=90&amp;zc=1&amp;q=95" alt="Alternating Row Colors in PHP/mySQL" height="90" width="90" onmouseover="onover('Alternating Row Colors in PHP/mySQL')" onmouseout="onout()" /></a></div>

	</div>

]]></content:encoded>
			<wfw:commentRss>http://www.snipe.net/2002/06/phpmysql-breadcrumb-trail/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

