<?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>Chuck&#039;s Musings &#187; chuck cerrillo</title>
	<atom:link href="http://blog.chuckcerrillo.com/tag/chuck-cerrillo/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.chuckcerrillo.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 21 Feb 2010 18:43:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>New Year, New Stuff</title>
		<link>http://blog.chuckcerrillo.com/2010/01/new-year-new-stuff/</link>
		<comments>http://blog.chuckcerrillo.com/2010/01/new-year-new-stuff/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 14:44:09 +0000</pubDate>
		<dc:creator>Chuck</dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[chuck]]></category>
		<category><![CDATA[chuck cerrillo]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[new year]]></category>

		<guid isPermaLink="false">http://blog.chuckcerrillo.com/?p=128</guid>
		<description><![CDATA[New year, new goals]]></description>
			<content:encoded><![CDATA[<p>Hey, it&#8217;s been a while since I laid my hands on my blog. I&#8217;ve been too busy with work. I guess that&#8217;s a good thing. Yes I&#8217;m still alive, haha!</p>
<p>I was planning on adding new stuff here but I never got around it due to deadlines at work, but I&#8217;ll eventually get to it.</p>
<p>I&#8217;ve been spending much of my time coding server-side, so I figured I&#8217;ll drop my Mootools training for now and focus on cURL. When I do start messing with that, I&#8217;ll make sure to post my progress here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chuckcerrillo.com/2010/01/new-year-new-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The itch</title>
		<link>http://blog.chuckcerrillo.com/2009/10/the-itch/</link>
		<comments>http://blog.chuckcerrillo.com/2009/10/the-itch/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 00:57:51 +0000</pubDate>
		<dc:creator>Chuck</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[chuck cerrillo]]></category>
		<category><![CDATA[scratch]]></category>
		<category><![CDATA[upgrade itch]]></category>

		<guid isPermaLink="false">http://blog.chuckcerrillo.com/?p=122</guid>
		<description><![CDATA[Should I scratch it?]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a while since my last post&#8230; almost a month actually. It&#8217;s just that I&#8217;ve either been too busy with work, or enjoying work too much that I kinda neglected doing my regular stuff here for a while&#8230;</p>
<p>With that said, I&#8217;ve been working too much and haven&#8217;t had the chance to enjoy my salary yet&#8230; well, one of the first things that came to mind was getting a camcorder (which, actually is already happening, haha!), secondly, my computer upgrade itch.</p>
<p>Damnit, I&#8217;m eyeing the Samsung T260HD LCD monitor, and I&#8217;ve also been itching to upgrade my processor, motherboard and RAM.</p>
<p>Christmas is approaching, all in due time I guess.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chuckcerrillo.com/2009/10/the-itch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Canvas</title>
		<link>http://blog.chuckcerrillo.com/2009/09/my-canvas/</link>
		<comments>http://blog.chuckcerrillo.com/2009/09/my-canvas/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 05:38:10 +0000</pubDate>
		<dc:creator>Chuck</dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[chuck cerrillo]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[section]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.chuckcerrillo.com/?p=119</guid>
		<description><![CDATA[Added a new section named "Canvas".]]></description>
			<content:encoded><![CDATA[<p>I have recently opened yet another section for my website, named &#8220;<a href="http://canvas.chuckcerrillo.com">Canvas</a>&#8220;. This is basically my testing area for my Mootools experiments.</p>
<p>If you&#8217;ve seen what I have so far, you might&#8217;ve guessed what I am aiming for. That&#8217;s right, I&#8217;m simulating a window-based workspace. For now the content is static but I&#8217;ll eventually fill it up with dynamic content once I am comfortable with AJAX.</p>
<p>That makes  3 major sub-areas of my website,</p>
<ol>
<li><a href="http://blog.chuckcerrillo.com">My blog</a> &#8211; you&#8217;re currently reading this</li>
<li><a href="http://thedirtlab.chuckcerrillo.com">TheDirtLab</a> &#8211; a repository of my recent scripts and experiments</li>
<li><a href="http://canvas.chuckcerrillo.com">Canvas</a> &#8211; my window-system experiment</li>
</ol>
<p>I might even probably open up a section for multimedia, but I don&#8217;t see it anytime soon, lol.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chuckcerrillo.com/2009/09/my-canvas/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>More minor website updates</title>
		<link>http://blog.chuckcerrillo.com/2009/09/more-minor-website-updates/</link>
		<comments>http://blog.chuckcerrillo.com/2009/09/more-minor-website-updates/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 12:49:54 +0000</pubDate>
		<dc:creator>Chuck</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[chuck cerrillo]]></category>
		<category><![CDATA[contact]]></category>
		<category><![CDATA[mailbox]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[transparent]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.chuckcerrillo.com/?p=113</guid>
		<description><![CDATA[If you've been to the front page recently, you'll know what I'm talking about!]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve visited the front page recently, you&#8217;d have probably noticed the mailbox on the far right side of the lawn. This mailbox will be linked to a contact form (which I haven&#8217;t started coding in yet, haha!).</p>
<p>Also, I&#8217;ve made slight modifications to the top navigation bar. The menus are now semi-transparent. I&#8217;ve yet to decide if I&#8217;ll keep it that way or revert to the old solid white and gray menus.</p>
<p>Aside from that, I am hoping to be able to find the time to work on the other planned features of my website. Please keep coming back for updates.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chuckcerrillo.com/2009/09/more-minor-website-updates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Regular expressions in MySQL</title>
		<link>http://blog.chuckcerrillo.com/2009/09/regular-expressions-in-mysql/</link>
		<comments>http://blog.chuckcerrillo.com/2009/09/regular-expressions-in-mysql/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 05:19:32 +0000</pubDate>
		<dc:creator>Chuck</dc:creator>
				<category><![CDATA[PHP and MySQL]]></category>
		<category><![CDATA[chuck cerrillo]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[regex]]></category>
		<category><![CDATA[regexp]]></category>
		<category><![CDATA[regular expressions]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://blog.chuckcerrillo.com/?p=92</guid>
		<description><![CDATA[Using regular expressions in your SQL statements helps to keep it simple.]]></description>
			<content:encoded><![CDATA[<p><a href="http://mysql.com"><img style="float: left" src="http://dev.mysql.com/common/logos/logo_mysql_sun_a.gif" alt="MySQL" /></a> I&#8217;ve been using MySQL for the better part of the past 6 years so it comes as a pleasant surprise when I found out last month that it can do regular expressions within its SQL!</p>
<p>I&#8217;m not sure about the other databases, the last time I&#8217;ve used Oracle was around 2004-2005 during my college days, so I can&#8217;t really say if this is a MySQL-exclusive feature or something along those lines. I&#8217;m pretty positive that this isn&#8217;t standard SQL though, since we never had such lessons back in college.</p>
<p>Anyway, if you&#8217;re familiar with SQL and string matching within SQL, it makes use of the <code class="codecolorer sql default"><span class="sql"><span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'[string]'</span></span></code> clause. Where [string] is the string to be searched for. Optionally, you could also use wildcards like _ (underscore), % (percent), [charlist] (character list) or [^charlist] (negated character list) or a combination of those to match string fragments. Unfortunately this has also been one of the major points of entry for hacking/hijacking a database-driven website, via <a href="http://en.wikipedia.org/wiki/SQL_injection">SQL injection</a>. Due to this vulnerability, I&#8217;ve either been using heavy data validation, or store encoded data, or at times, avoiding this altogether&#8230; but I digress.</p>
<p>Using regex in my SQL queries is a godsend. It helps reduce my data processing and validation overhead.</p>
<p>MySQL supports the use of almost all POSIX regex  metacharacters via the <code class="codecolorer sql default"><span class="sql"><span style="color: #993333; font-weight: bold;">REGEXP</span></span></code> or <code class="codecolorer sql default"><span class="sql"><span style="color: #993333; font-weight: bold;">RLIKE</span></span></code> clause (or a negation using <code class="codecolorer sql default"><span class="sql"><span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">REGEXP</span></span></code> or <code class="codecolorer sql default"><span class="sql"><span style="color: #993333; font-weight: bold;">NOT</span> <span style="color: #993333; font-weight: bold;">RLIKE</span></span></code>).</p>
<p><strong>The following list describes some characteristics of extended regular expressions:</strong></p>
<ul>
<li>“.” matches any single character.</li>
<li>A character class “[...]” matches any character within the brackets. For example, “[abc]” matches “a”, “b”, or “c”. To name a range of characters, use a dash. “[a-z]” matches any letter, whereas “[0-9]” matches any digit.</li>
<li>“*” matches zero or more instances of the thing preceding it. For example, “x*” matches any number of “x” characters, “[0-9]*” matches any number of digits, and “.*” matches any number of anything.</li>
<li>A REGEXP pattern match succeeds if the pattern matches anywhere in the value being tested. (This differs from a LIKE pattern match, which succeeds only if the pattern matches the entire value.)</li>
<li>To anchor a pattern so that it must match the beginning or end of the value being tested, use “^” at the beginning or “$” at the end of the pattern.</li>
</ul>
<p>Let&#8217;s start with the traditional <code class="codecolorer sql default"><span class="sql"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">...</span>  <span style="color: #993333; font-weight: bold;">LIKE</span></span></code> query. Here&#8217;s a query that selects all animals whose name begins with &#8220;ant&#8221;</p>
<div class="codecolorer-container sql default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">SELECT</span> name<br />
<br />
<span style="color: #993333; font-weight: bold;">FROM</span> animals<br />
<br />
<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'ant%'</span></div></div>
<p>The results could be something like this:</p>
<div class="codecolorer-container sql default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">name<br />
<br />
<span style="color: #808080; font-style: italic;">---------</span><br />
<br />
ant<br />
<br />
anteater<br />
<br />
antelope<br />
<br />
<span style="color: #66cc66;">...</span></div></div>
<p>A regex version of that would be:</p>
<div class="codecolorer-container sql default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">SELECT</span> name<br />
<br />
<span style="color: #993333; font-weight: bold;">FROM</span> animals<br />
<br />
<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #993333; font-weight: bold;">REGEXP</span> <span style="color: #ff0000;">'^ant'</span></div></div>
<p>So far they look similar&#8230; but, say, what if you wanted to use a complex rule like: &#8220;select all animals whose names starts with either &#8216;a&#8217; or &#8216;c&#8217; and ends with either &#8216;t&#8217; or &#8216;p&#8217;.  It would look messy if you do it this way:</p>
<div class="codecolorer-container sql default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">SELECT</span> name<br />
<br />
<span style="color: #993333; font-weight: bold;">FROM</span> animals<br />
<br />
<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'a%t'</span><br />
<br />
<span style="color: #993333; font-weight: bold;">OR</span> name <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'a%p'</span><br />
<br />
<span style="color: #993333; font-weight: bold;">OR</span> name <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'c%t'</span><br />
<br />
<span style="color: #993333; font-weight: bold;">OR</span> name <span style="color: #993333; font-weight: bold;">LIKE</span> <span style="color: #ff0000;">'c%p'</span></div></div>
<p>However with regex, it is as simple as this:</p>
<div class="codecolorer-container sql default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">SELECT</span> name<br />
<br />
<span style="color: #993333; font-weight: bold;">FROM</span> animals<br />
<br />
<span style="color: #993333; font-weight: bold;">WHERE</span> name <span style="color: #993333; font-weight: bold;">REGEXP</span> <span style="color: #ff0000;">'^[ac].*[tp]$'</span></div></div>
<p>Imagine if your filtering conditions were much more complex. It&#8217;s not hard to see how regexp can help with that!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chuckcerrillo.com/2009/09/regular-expressions-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>We are doing Mashups</title>
		<link>http://blog.chuckcerrillo.com/2009/09/we-are-doing-mashups/</link>
		<comments>http://blog.chuckcerrillo.com/2009/09/we-are-doing-mashups/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 22:37:08 +0000</pubDate>
		<dc:creator>Chuck</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[chuck cerrillo]]></category>
		<category><![CDATA[mashup]]></category>
		<category><![CDATA[prototype]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://blog.chuckcerrillo.com/?p=89</guid>
		<description><![CDATA[Now we're putting it all together.]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;m way ahead on my tasks schedule, I&#8217;ve been tasked to work on <a href="http://en.wikipedia.org/wiki/Mashup_(web_application_hybrid)">mashups</a> of our current modules.</p>
<p>This is going to be yet another fun experience for me! <img src='http://blog.chuckcerrillo.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>I&#8217;m currently in the planning stage of it, but I&#8217;d have to come up with a working prototype of the API tomorrow. I should be able to think of something as I sleep over it today so it won&#8217;t be a problem. I&#8217;ve always been able to get work done in my sleep anyway.</p>
<p><img src="http://static.squidoo.com/resize/squidoo_images/-1/draft_lens1995305module9618939photo_1211323766mashup-ecosystem.jpg" alt="The Mashup<br />
Ecosystem" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chuckcerrillo.com/2009/09/we-are-doing-mashups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top navigation bar</title>
		<link>http://blog.chuckcerrillo.com/2009/08/top-navigation-bar/</link>
		<comments>http://blog.chuckcerrillo.com/2009/08/top-navigation-bar/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 23:39:46 +0000</pubDate>
		<dc:creator>Chuck</dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[chuck cerrillo]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[submenu]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://blog.chuckcerrillo.com/?p=85</guid>
		<description><![CDATA[Added the top navigation bar.]]></description>
			<content:encoded><![CDATA[<p>I liked how my <a href="http://thedirtlab.chuckcerrillo.com/html-and-css/css%20navbar/navbar_vertical.html">CSS-based navigation bar</a> turned out, so I thought of integrating it into my website&#8217;s design. As of this writing, I only included a basic &#8220;sitemap&#8221; menu and a filler menu for recent blog posts.</p>
<p>I&#8217;ll probably think of other things to add there as time goes by.</p>
<p>On closer inspection, adding that menu has a nice side effect towards search engine optimization, because a clean, straightforward list of URLs can be found at the very top of the code, before the other presentational bits. Which means search engines can see my site map a lot easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chuckcerrillo.com/2009/08/top-navigation-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A neat and clean CSS menu</title>
		<link>http://blog.chuckcerrillo.com/2009/08/a-neat-and-clean-css-menu/</link>
		<comments>http://blog.chuckcerrillo.com/2009/08/a-neat-and-clean-css-menu/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 07:13:22 +0000</pubDate>
		<dc:creator>Chuck</dc:creator>
				<category><![CDATA[HTML and CSS]]></category>
		<category><![CDATA[chuck cerrillo]]></category>
		<category><![CDATA[clean]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[list menu]]></category>
		<category><![CDATA[markup]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[neat]]></category>

		<guid isPermaLink="false">http://blog.chuckcerrillo.com/?p=74</guid>
		<description><![CDATA[Want a functioning navigation bar without using JavaScript? Read on...]]></description>
			<content:encoded><![CDATA[<p>Earlier this week, our team of developers was temporarily reassigned to help with another team&#8217;s debugging tasks due to a pressing deadline. Our front-end team was busy and only some of us from the back-end team were free to help.</p>
<p>The framework was based on Magento. Since our teams were all CodeIgniter developers, we found it hard to adapt to that framework. We were shocked to find out that majority of the fixes were front-end related, requiring mostly CSS and JS to fix. This was because navigating through Magento&#8217;s files was a pain. In addition, most of my teammates and colleagues from the other teams avoided the CSS bits because they either had limited CSS knowledge or were simply not confident enough to manipulate that website&#8217;s huge CSS file. So I took that task.</p>
<p>The website we were working on had a 3-tier navigation menu on top, controlled by JavaScript. I spent the better part of the day on that navigation bar building the content for the other menu and tackling the JS browser incompatibility problems&#8230; I previously mentioned in another entry that I suck at JS, needless to say what I did was a quick and dirty hack that works but one I&#8217;m not proud of, haha.</p>
<p>Anyway, 2 days later (that&#8217;s today), I was thinking &#8211; I bet it&#8217;s possible to mimic that navigation bar using purely CSS and no JS. So I set out and tried my hand at it. I relied heavily on nested  declarations in order to keep the styles neat and the markup less cluttered. Here&#8217;s the stylesheet I came up with:</p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">html<span style="color: #00AA00;">,</span> body <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#navigation</span> <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#888</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#EEE</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#444</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">22px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;Trebuchet MS&quot;</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#navigation</span><span style="color: #00AA00;">&gt;</span>li <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#navigation</span> li<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#navigation</span><span style="color: #00AA00;">&gt;</span>li<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&gt;</span>a <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFF</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#navigation</span> li a<span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#navigation</span> li ul <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#navigation</span> li a<span style="color: #3333ff;">:first-letter </span><span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">blue</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">100px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<br />
<span style="color: #cc00cc;">#navigation</span> li ul <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">white</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#navigation</span> li ul li <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1em</span><span style="color: #00AA00;">;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">padding-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1em</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#navigation</span> li<span style="color: #3333ff;">:hover </span>ul <span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#navigation</span> li ul li<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">red</span><span style="color: #00AA00;">;</span><br />
<span style="color: #00AA00;">&#125;</span></div></div>
<p>As for the menu&#8217;s markup itself, it consists of a master <code class="codecolorer html4strict default"><span class="html4strict"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span></span></code> with an id of &#8220;navigation&#8221;, with nested <code class="codecolorer html4strict default"><span class="html4strict"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span></span></code>s contained inside of it.</p>
<p>Here&#8217;s what the markup looks like:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;navigation&quot;</span>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Dogs<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>Dog 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>Dog 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>Dog 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>Cats<br />
&nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>Cat 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>Cat 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>Cat 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>Cat 4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>Cat 5<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
&nbsp; &nbsp; &nbsp;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span>Pigs<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span>Place your content here<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></div></div>
<p>The markup looks really neat and simple with none of those pesky <code class="codecolorer html4strict default"><span class="html4strict">class=&quot;&quot;</span></code> attributes to get in the way. Also you can add as much menu items as you please.</p>
<p>So far this CSS declaration only supports 2-tier menus. I could try working on 3-tier, or even maybe a dynamic-depth CSS menu, if I don&#8217;t feel lazy :p.</p>
<p>You could see it in action by <a href="http://thedirtlab.chuckcerrillo.com/html-and-css/css navbar/navbar.html">viewing this page</a>.</p>
<p>Alternately, if you&#8217;re not a fan of horizontal menus, you can easily convert it into a vertical menu by removing the <code class="codecolorer css default"><span class="css"><span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span></span></code> property in the <code class="codecolorer css default"><span class="css"><span style="color: #cc00cc;">#navigation</span> li ul li</span></code> declaration. Getting rid of the white background should be easy.</p>
<p>Update: August 29, 2009</p>
<p>I wrote another CSS declaration for 3-tier menus in vertical format. You could see the sample <a href="http://thedirtlab.chuckcerrillo.com/html-and-css/css navbar/navbar_vertical.html">by going here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chuckcerrillo.com/2009/08/a-neat-and-clean-css-menu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Finally!</title>
		<link>http://blog.chuckcerrillo.com/2009/08/finally/</link>
		<comments>http://blog.chuckcerrillo.com/2009/08/finally/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 23:23:04 +0000</pubDate>
		<dc:creator>Chuck</dc:creator>
				<category><![CDATA[Updates]]></category>
		<category><![CDATA[chuck]]></category>
		<category><![CDATA[chuck cerrillo]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[rchuck]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[search engine]]></category>
		<category><![CDATA[search engine optimization]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://blog.chuckcerrillo.com/?p=42</guid>
		<description><![CDATA[How does one learn to be a SEO anyway?]]></description>
			<content:encoded><![CDATA[<p>After trying many many times since sunday, I was finally able to make my personal website appear at the very top of the Google search when you try to search for &#8220;Chuck Cerrillo&#8221;.</p>
<p>Curse my very basic SEO knowledge, lol.</p>
<p>At least I tried and it eventually worked.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chuckcerrillo.com/2009/08/finally/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TheDirtLab logo</title>
		<link>http://blog.chuckcerrillo.com/2009/08/thedirtlab-logo/</link>
		<comments>http://blog.chuckcerrillo.com/2009/08/thedirtlab-logo/#comments</comments>
		<pubDate>Mon, 24 Aug 2009 05:39:35 +0000</pubDate>
		<dc:creator>Chuck</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[chuck cerrillo]]></category>
		<category><![CDATA[coat]]></category>
		<category><![CDATA[Dirt]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[laboratory]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[sample]]></category>
		<category><![CDATA[thedirtlab]]></category>

		<guid isPermaLink="false">http://blog.chuckcerrillo.com/?p=31</guid>
		<description><![CDATA[The revised logo for the "TheDirtLab" testing area theme.]]></description>
			<content:encoded><![CDATA[<p>I thought I put enough effort and attention to the main website&#8217;s design so far, so I figured I start working on the actual testing area&#8217;s theme. So here&#8217;s my second revision of the &#8220;laboratory&#8221; theme&#8217;s logo:</p>
<p><img src="http://www.chuckcerrillo.com/images/dirt_big_lab.png" alt="" /></p>
<p>That&#8217;s Dirt the Lab in a lab-coat, presumably working in a lab, but I still have to draw in the lab, lol!</p>
<p>It&#8217;s 1:38pm (12:38am CDT) so I really should get to bed now, lest I risk not waking up in time for today&#8217;s work shift.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.chuckcerrillo.com/2009/08/thedirtlab-logo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

