<?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/"
	>

<channel>
	<title>dawnerd</title>
	<atom:link href="http://dawnerd.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dawnerd.com</link>
	<description>CSS / PHP / XHTML</description>
	<pubDate>Sun, 17 May 2009 22:42:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Open Source jQuery Plugin - Custom Radio and Checkboxes</title>
		<link>http://dawnerd.com/javascript/2009/03/24/open-source-jquery-plugin-custom-radio-and-checkboxes/</link>
		<comments>http://dawnerd.com/javascript/2009/03/24/open-source-jquery-plugin-custom-radio-and-checkboxes/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 07:15:40 +0000</pubDate>
		<dc:creator>dawnerd</dc:creator>
		
		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[jquery]]></category>

		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=62</guid>
		<description><![CDATA[I got fed up with the numerous amounts of plugins that handle custom checkboxes and radio inputs that I decided to create my own. Typically, the plugin will create html for you in which you an style. But you also have to pass in url&#8217;s for images that will be used for the various states.
The [...]]]></description>
			<content:encoded><![CDATA[<p>I got fed up with the numerous amounts of plugins that handle custom checkboxes and radio inputs that I decided to create my own. Typically, the plugin will create html for you in which you an style. But you also have to pass in url&#8217;s for images that will be used for the various states.</p>
<p>The plugin I created, <a href="http://code.google.com/p/jquery-bltcheckbox/">bltcheckbox</a>, allows you to use any html and css. The only options you pass to the plugin are whether it&#8217;s a checkbox, or a radio input.</p>
<p>For code samples and documentation, please check out the code code page <a href="http://code.google.com/p/jquery-bltcheckbox/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/javascript/2009/03/24/open-source-jquery-plugin-custom-radio-and-checkboxes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fixing Common CSS Issues In IE6 and IE7</title>
		<link>http://dawnerd.com/css/2008/10/20/fixing-common-css-issues-in-ie6-and-ie7/</link>
		<comments>http://dawnerd.com/css/2008/10/20/fixing-common-css-issues-in-ie6-and-ie7/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 06:05:01 +0000</pubDate>
		<dc:creator>dawnerd</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[HTML]]></category>

		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=60</guid>
		<description><![CDATA[As it turns out, Microsoft really doesn&#8217;t care about web standards at all. It has taken them way too many years to adopt the basics of CSS2 correctly. Now they are trying to expand that with IE8. However, developers still have to deal with the outdated IE6 and IE7. Using min-width is completely pointless unless [...]]]></description>
			<content:encoded><![CDATA[<p>As it turns out, Microsoft really doesn&#8217;t care about web standards at all. It has taken them way too many years to adopt the basics of CSS2 correctly. Now they are trying to expand that with IE8. However, developers still have to deal with the outdated IE6 and IE7. Using min-width is completely pointless unless your user base only uses good browsers. <span id="more-60"></span></p>
<p>The other day, I literally stumbled upon a JS file that fixes most of the IE6 and IE7 bugs. It emulates a lot of missing CSS functionality, and also applies a generic PNG fix. <a href="http://code.google.com/p/ie7-js/">You can find the file here</a>. I have been using it on all of my projects recently. In combination with a <a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">css reset stylesheet</a> and the IE7 JS file, I have had a lot less headaches. I say you give it a shot. it&#8217;s not like it will take a lot of work for you to at least try out.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/css/2008/10/20/fixing-common-css-issues-in-ie6-and-ie7/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Quickly Creating Javascript Tooltips</title>
		<link>http://dawnerd.com/css/2008/08/24/quickly-creating-javascript-tooltips/</link>
		<comments>http://dawnerd.com/css/2008/08/24/quickly-creating-javascript-tooltips/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 11:05:11 +0000</pubDate>
		<dc:creator>dawnerd</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[HTML]]></category>

		<category><![CDATA[Javascript]]></category>

		<category><![CDATA[interface design]]></category>

		<category><![CDATA[javascript html css tooltip]]></category>

		<category><![CDATA[usability]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=53</guid>
		<description><![CDATA[I&#8217;ve noticed that a lot of sites do not use tooltips as much as they should. There are many places on a site where tooltips would really be nice. One example of using them correctly is TheSixtyOne. They use a nice tooltip when you are about to bump a song up. It quickly lets you [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve noticed that a lot of sites do not use tooltips as much as they should. There are many places on a site where tooltips would really be nice. One example of using them correctly is <a href="http://thesixtyone.com">TheSixtyOne</a>. They use a nice tooltip when you are about to bump a song up. It quickly lets you know how many points it will cost and how many times you have bumped it. This post will hopefully inspire at least one of you to use tooltips more often.</p>
<p>The solution I have decided to use is <a href="http://unitinteractive.com/labs/unitip.php">UniTip</a> from <a href="http://unitinteractive.com/">Unit Interactive</a>. I believe they have the best solution to quickly setting up tooltips. Download the zip they provide and we should be ready to go.<br />
<span id="more-53"></span><br />
First, the base html:</p>
<pre>
<code>&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Example tooltip&lt;/title&gt;
    &lt;script type="text/javascript" src="js/unitip.js"&gt;&lt;/script&gt;
    &lt;link href="css/unitip.css" rel="stylesheet" type="text/css"/&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;img src="awesomepic.jpg" alt="awesome" title="This pic is awesome" class="tooltip"/&gt;
  &lt;/body&gt;
&lt;/html&gt;</code>
</pre>
<p>Open up unitip.js and find the lines containing:</p>
<pre>
<code>var uniTipTag = "a,img";
var uniTipClass = "TipEx";</code>
</pre>
<p>Change this to:</p>
<pre>
<code>var uniTipTag = "img";
var uniTipClass = "tooltip";</code>
</pre>
<p>Now just run the html file and you should instantly have tooltips. If something doesn&#8217;t work, make sure your path to the css file and images are correct. In addition, it is suggested to use a PNG fix file for IE6. I recommend <a href="http://unitinteractive.com/labs/unitpngfix.php">Unit PNG Fix</a>. It&#8217;s super easy to use and works like a charm.</p>
<p>Please keep in mind that tooltips are really designed for items that really need them, extensive use is annoying. A common use is creating help tips for users completing a complex form. If there is some form of information a user could not understand, it is advisable to use a tooltip on the input box or the label.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/css/2008/08/24/quickly-creating-javascript-tooltips/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New Look, Same Greatness</title>
		<link>http://dawnerd.com/css/2008/08/24/new-look-same-greatness/</link>
		<comments>http://dawnerd.com/css/2008/08/24/new-look-same-greatness/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 07:34:30 +0000</pubDate>
		<dc:creator>dawnerd</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[HTML]]></category>

		<category><![CDATA[wordpress layout blog design]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=51</guid>
		<description><![CDATA[I decided that the old theme was too dark after getting a few messages about it. Hopefully this one will suit everyone. As you can tell, it is very simplistic. If you have any comments about this one, let me know right away. Oh and this was created completely by me, no pre-made themes this [...]]]></description>
			<content:encoded><![CDATA[<p>I decided that the old theme was too dark after getting a few messages about it. Hopefully this one will suit everyone. As you can tell, it is very simplistic. If you have any comments about this one, let me know right away. Oh and this was created completely by me, no pre-made themes this time.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/css/2008/08/24/new-look-same-greatness/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Starting PHP: Looping Basics</title>
		<link>http://dawnerd.com/php/2008/08/14/starting-php-looping-basics/</link>
		<comments>http://dawnerd.com/php/2008/08/14/starting-php-looping-basics/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 03:06:41 +0000</pubDate>
		<dc:creator>dawnerd</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[basics]]></category>

		<category><![CDATA[loops]]></category>

		<guid isPermaLink="false">http://dawnerd.com/?p=33</guid>
		<description><![CDATA[I was searching the internet for PHP tutorials and quickly found out that the majority of are badly written, have errors in the example code, contain security holes, or are just outright outdated. This makes learning PHP hard for someone just starting out. The question I get a lot is about looping through arrays. 
The [...]]]></description>
			<content:encoded><![CDATA[<p>I was searching the internet for PHP tutorials and quickly found out that the majority of are badly written, have errors in the example code, contain security holes, or are just outright outdated. This makes learning PHP hard for someone just starting out. The question I get a lot is about looping through arrays. <span id="more-33"></span></p>
<p>The following are the three possible ways to loop through data, with an example showing how I use them.</p>
<p><strong>The While Loop</strong><br />
The while loop is useful when running loop on data with an unknown size; a database result for example. here&#8217;s an example:</p>
<pre>
<code>&lt;?php
$sql = "SELECT `userid` FROM `users`";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query))
{
     echo $row['userid'].'&lt;br/&gt;';
}
?&gt;</code>
</pre>
<p>The above example will continue to check $row to see if it returns false. Each call to <code>mysql_fetch_array()</code> will increment the key. If you ran <code>mysql_fetch_array()</code> outside of the loop, you would get a full array of all the results at once. For example:</p>
<pre>
<code>Array(
     0 =&gt; Array( 'userid' =&gt; 1),
     1 =&gt; Array( 'userid' =&gt; 2)
)</code>
</pre>
<p>In this case, you could simply call <code>$row[0]['userid']</code>. But again you don&#8217;t know how many results there are so hand coding all the different keys would be just silly.</p>
<p><strong>The For Loop</strong><br />
Just like a while loop, a for loop runs until the expression returns false. Example:</p>
<pre>
<code>&lt;?php
$array = array('copper','gold','silver');
for($i=0;$i&lt;count($array);$i++)
{
     echo $array[$i].'&lt;br/&gt;';
}
?&gt;</code>
</pre>
<p>For loops are probably the hardest types of loops for php beginners to grasp. The reason behind that is because of the expression used to keep the loop running. So what does <code>$i=0;$i&lt;count($array);$i++</code> mean? When the loop is first started, the variable <code>$i</code> is set to 0, which happens to be the first key in the <code>$array</code> variable. Next, it checks if the <code>$i</code> variable is less than the total number of items in the array. If the count is greater than <code>$i</code>, the loop continues. Lastly, <code>$i</code> is incremented after one each loop. So after the first run, <code>$i</code> becomes 1, rather than 0.</p>
<p>We have 3 items in the array, so in english, that loop would look like:</p>
<pre>
<code>i is zero.
if i less than three continue, otherwise break the loop.
add one to i.</code>
</pre>
<p>The <code>$i</code> variable is accessible anywhere in the loop. It may seem that <code>$i</code> is incremented before any code in the loop is processed, but in reality, it is incremented after the code has been executed.</p>
<p>For loops are also extremely fast for small sets of data. Just keep that in mind if all you have to do are small loops and getting the length of an array or number is no issue.</p>
<p><strong>The Foreach Loop</strong><br />
This last method of looping is my favorite; mostly because it&#8217;s easy to follow. Take for example:</p>
<pre>
<code>&lt;?php
$array = array('bob','joe','billy','rob');
foreach($array as $key =&gt; $value)
{
     echo $key.': '.$value.'&lt;br/&gt;';
}
?&gt;</code>
</pre>
<p>This will output:</p>
<pre>
<code>0: bob
1: joe
2: billy
3: rob</code>
</pre>
<p>The foreach loop takes each item in the array starting from the left and assigns it a key, or unique number; starting from 0. This is always the case. However, you can choose not to get the key of the current array item by not using the $key part of the foreach loop. Instead, the loop would look like:</p>
<pre>
<code>$array = array('bob','joe','billy','rob');
foreach($array as $value)
{
     echo $value.'&lt;br/&gt;';
}</code>
</pre>
<p>Now that you read this, the only way to make it stick is to put it to practice. If you need help trying to make something, here&#8217;s a script you should try to make on your own:</p>
<pre>
<code>Make an array of your favorite movies.
Each movie should contain the top 5 or more actors.
Make the script loop through and output each movie and the first three
actors, omitting any others.</code>
</pre>
<p>If you need a little kickstart here you go:</p>
<pre>
<code>&lt;?php
$movies = array(
                    array('The Matrix',
                         array('Keanu Reeves',
                              'Laurence Fishburne',
                              'Carrie-Anne Moss',
                              'Hugo Weaving
                          )
                     )
);</code>
</pre>
<p>Yes, you will need to nest the loops. I&#8217;m sure you can figure it out. Once you get this, I have a good feeling everything else will be a breeze.</p>
]]></content:encoded>
			<wfw:commentRss>http://dawnerd.com/php/2008/08/14/starting-php-looping-basics/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
