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

<channel>
	<title>Kenny Carlile</title>
	<atom:link href="http://www.kennycarlile.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kennycarlile.net</link>
	<description>Use Only Genuine Interocitor Parts</description>
	<pubDate>Wed, 02 Jul 2008 05:40:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Kobayashi Maru For Developers</title>
		<link>http://www.kennycarlile.net/2008/06/20/kobayashi-maru-for-developers/</link>
		<comments>http://www.kennycarlile.net/2008/06/20/kobayashi-maru-for-developers/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 20:45:04 +0000</pubDate>
		<dc:creator>Kenny</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.kennycarlile.net/?p=84</guid>
		<description><![CDATA[Being the geek that I am, I remembered the reference to the Kobayashi Maru from Star Trek many years ago, but I was surprised when one of my professors in college brought it up in reference to a sorting algorithm. His linking these two references changed the way I thought about solving problems.
But first, a [...]]]></description>
			<content:encoded><![CDATA[<p>Being the geek that I am, I remembered the reference to the <a href="http://en.wikipedia.org/wiki/Kobayashi_Maru">Kobayashi Maru</a> from Star Trek many years ago, but I was surprised when one of my professors in college brought it up in reference to a sorting algorithm. His linking these two references changed the way I thought about solving problems.</p>
<p><em>But first, a brief history&#8230;</em></p>
<p>In Star Trek lore, there is a test that captains must go through. Notice I said &#034;go through&#034; rather than &#034;pass&#034;. The purpose was to test the character of the captain-to-be. The test setup a no-win situation in which the captain had to choose between letting one of two groups of people die. It was impossible to save both groups of people. However, as the story goes, Kirk was the only captain to find a way to &#034;pass&#034; the test. He did so by reprogramming the simulator such that there was a way to pass.</p>
<p><em>And now back to our story&#8230;</em></p>
<p>In my Data Structures II class in college, we were given the task to write the most efficient program to sort a list of 1000 random integers from the set 1 to 1000. (I think it was 1-1000, it might have been 1-10000 or more. It doesn&#039;t really matter for the purpose of this explanation.) That is, the list could contain the same number twice or more or there may not be any instances of a particular number. Every student would be given the same list of numbers, so the test was to see how fast you could sort the list.</p>
<p>Most students hit a wall when they Googled and found the fastest way to implement standard sorting algorithms that end up with O(<em>n</em> log <em>n</em>) time for best case performance. <a href="http://www.wou.edu/~andersc/">Dr. Charles Anderson</a>, one of my professors for another class (who is now my business partner at <a href="http://www.westernskiesweb.com/">Western Skies</a>), suggested that he had a way to perform the sort in O(<em>n</em>) time but that it was cheating and he wouldn&#039;t tell me how until after the contest was over. The only hint he gave me was &#034;Kobayashi Maru&#034;. I know what the Kobayashi Maru was, but I had no idea how it applied here, so he left me quite confused.</p>
<p>The next week, when the contest was over, he explained to me how he could sort the list of integers in O(<em>n</em>) time instead of O(<em>n</em> log <em>n</em>):</p>
<ol>
<li>Declare an array (we&#039;ll call it <code class="prettyprint">arr[]</code>) that is the size of the largest integer possible in the list, in this case 1000, and initialize all the values of the array places to 0. </li>
<li>Pass over the list with a loop. A every position in the list, increment the value at that <em>location</em> in <code class="prettyprint">arr[]</code> by 1. That is, if the first item in the list is 47, perform <code class="prettyprint">arr[47] += 1</code>. </li>
<li>Once that first loop has been created, pass over each place the array and print that <em>location</em> the number of times of the value stored in that location.</li>
</ol>
<p>In other words, in pseudocode:</p>
<pre class="prettyprint">arr[] = array(1000)

// load array
for x in unsortedIntegers while 0 &lt; i &lt;= 1000
  arr[x] += 1
  i++

// print sorted list
for x in a arr[] while 0 &lt; i &lt;= 1000
  while 0 &lt; j &lt;= arr[x]
    print i + &#039;,&#039;
  i++
</pre>
<p>The trick is that you aren&#039;t actually sorting the list. You are identifying how many times each number occurs and then using the array data structure to identify those occurrences in order. Rather than O(<em>n</em> log <em>n</em>), you&#039;ve only passed over <em>n</em> twice, which is then O(2<em>n</em>), or just O(<em>n</em>).</p>
<p>At the time, this blew my mind and, in a way, it still does. This isn&#039;t thinking outside the box. It&#039;s thinking of a different box to fix the problem in the first box! It opened up my mind to a new way of thinking and new possibilities.</p>
<p>I recently used this when I needed to search for the occurrence of a 2-letter country code in an array of country codes in JavaScript. Rather than loop through the array and search for the country codes, I converted the array to a string and then searched for the occurrence in that string, which was a O(<em>n</em>) operation. I will admit, however, that I&#039;m not familiar with the internal workings of JavaScript. This version may be as inefficient as looping over the array, which is probably what <code class="prettyprint">toString().search()</code> does anyway. Here&#039;s how I did it in JavaScript:</p>
<pre class="prettyprint">var countries = document.getElementById("CountryCode");
countries.onchange = function(){isEurope();};	

function isEurope()
{
  var codes = ["AL","DZ","AD","AO","AI","AQ","AM","AT","AZ","BH","BY","BE","BJ",
              "BA","BW","BV","BG","BF","BI","CM","CV","CF","TD","KM","CG","CD",
              "CI","HR","CY","CZ","DK","DJ","EG","GQ","ER","EE","ET","FO","FI",
              "FR","FX","GA","GM","GE","DE","GH","GI","GR","GL","GN","GW","IS",
              "IR","IQ","IE","IL","IT","JO","KZ","KE","KW","KG","LV","LB","LS",
              "LR","LY","LI","LT","LU","MK","MG","MW","ML","MT","MR","MU","YT",
              "MD","MC","ME","MA","MZ","NA","NL","NE","NG","NO","OM","PS","PL",
              "PT","QA","RE","RO","RU","RW","SH","SM","ST","SA","SN","RS","SC",
              "SL","SK","SI","SO","ZA","ES","SD","SJ","SZ","SE","CH","SY","TJ",
              "TZ","TG","TN","TR","TM","UG","UA","AE","GB","UZ","VA","EH","YE",
              "YU","ZM","ZW"];

  var isEurope = false;

  for(i = 0; i &lt; countries.length; i++)
  {
    if(countries.options[i].selected)
    {
      if(codes.toString().search(countries.options[i].value) &gt; 0)
      {
        isEurope = true;
      } // end if test
    } // end if test
  } // end for loop

  if(isEurope)
  {
    // do some stuff
  } // end if test
} // end function isEurope
</pre>
<p>And there you have it. My own little Kobayashi Maru. While this isn&#039;t the most spectacular example, the point of this demonstration is to show you that there are more interesting ways thinking about problems. Try putting the data in a different box to solve a problem.</p>
<p><strong>Edit:</strong></p>
<p>Dr. Anderson pointed out to me that another way to do this would be to put all the country codes into an associative array and then search by looking for a value at index country code. Also, the complexity is more like O(<em>mn</em>) than O(<em>n</em>) as the <code class="prettyprint">search()</code> function, even implemented in C within JavaScript, has to be a linear search. Although that&#039;s still faster than doing your own nested search in JavaScript. The hot ticket is to put all the country codes into an associative array so that search is based on key, which drops the complexity to O(1).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennycarlile.net/2008/06/20/kobayashi-maru-for-developers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Attention Dogs</title>
		<link>http://www.kennycarlile.net/2008/06/19/attention-dogs/</link>
		<comments>http://www.kennycarlile.net/2008/06/19/attention-dogs/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 18:46:52 +0000</pubDate>
		<dc:creator>Kenny</dc:creator>
		
		<category><![CDATA[Comedy]]></category>

		<guid isPermaLink="false">http://www.kennycarlile.net/?p=85</guid>
		<description><![CDATA[I found this sign next to a sidewalk in the coastal town of Manzanita, Oregon. As a dog owner, this made me laugh, but then again, simple things amuse me.
]]></description>
			<content:encoded><![CDATA[<div class="floatRight floatedRight"><a href="http://www.kennycarlile.net/wp-content/uploads/2008/06/attndogs.jpg"><img class="alignnone size-medium wp-image-86" title="Attention Dogs" src="http://www.kennycarlile.net/wp-content/uploads/2008/06/attndogs-247x300.jpg" alt="Attention Dogs: Grrrrrr, bark, woof. Good dog." width="247" height="300" /></a></div>
<p>I found this sign next to a sidewalk in the coastal town of <a href="http://www.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;q=Manzanita,+OR+97130&amp;ie=UTF8&amp;ll=45.720053,-123.93518&amp;spn=0.019385,0.033388&amp;t=h&amp;z=15">Manzanita, Oregon</a>. As a dog owner, this made me laugh, but then again, simple things amuse me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennycarlile.net/2008/06/19/attention-dogs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Yahoo vs. Eric Meyer CSS Reset</title>
		<link>http://www.kennycarlile.net/2008/06/19/yahoo-vs-eric-meyer-css-reset/</link>
		<comments>http://www.kennycarlile.net/2008/06/19/yahoo-vs-eric-meyer-css-reset/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 08:09:58 +0000</pubDate>
		<dc:creator>Kenny</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.kennycarlile.net/?p=83</guid>
		<description><![CDATA[In my post titled WebVisions 2008 Conference Debriefing, I mentioned the concept of a CSS reset and provided links to two versions: the Eric Meyer CSS Reset and the Yahoo UI Library CSS Reset. Both address the issue of browser having their own internal stylesheets that don&#039;t necessarily match.
For example: an h2 tag in one [...]]]></description>
			<content:encoded><![CDATA[<p>In my post titled <a href="http://www.kennycarlile.net/2008/06/15/webvisions-2008-conference-debriefing/">WebVisions 2008 Conference Debriefing</a>, I mentioned the concept of a CSS reset and provided links to two versions: the <a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">Eric Meyer CSS Reset</a> and the <a href="http://developer.yahoo.com/yui/reset/">Yahoo UI Library CSS Reset</a>. Both address the issue of browser having their own internal stylesheets that don&#039;t necessarily match.</p>
<p>For example: an <code class="prettyprint">h2</code> tag in one browser might have <code class="prettyprint">font-size: 16px;</code> and <code class="prettyprint">margin-bottom: 12px;</code> while another might have <code class="prettyprint">font-size: 18px;</code> and <code class="prettyprint">margin-bottom: 14px;</code>. That means that without any of your own CSS work, the same plain-Jane <code class="prettyprint">&lt;h2&gt;Some Subtitle&lt;/h2&gt;</code> code will look differently. These are the battles web developers have to face and why we hate IE for its non-standard renderings.</p>
<p>The purpose of the concept of a CSS reset is to put all browsers on an even playing field before you begin to style the content. That is, make sure that all elements render the same on all browsers (or rather, all major browsers) so that adding your own styling will have the same effect across the spectrum of renderings. That&#039;s not to say that you won&#039;t need to make special hacks to fix inconsistent renderings <em>*cough-IE-cough*</em>, but a CSS reset puts you a lot closer to the end goal than where you started.</p>
<p>I&#039;ve only tried implementing and developing CSS with the Eric Meyer CSS reset and the Yahoo reset once each, so my experience here is somewhat limited, but these are my initial impressions. While both are essentially the same technique and could be adapted to behave more like the other, I&#039;m going to address the out-of-the-box functionality.</p>
<p><strong>Eric Meyer&#039;s CSS Reset</strong> - <a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">Eric Meyer CSS Reset</a></p>
<p>This was my first attempt at using a CSS reset and you&#039;re looking at the results in this current blog theme (as of the date of this post). Meyer&#039;s method is to set all elements to be, essentially, unstyled. That is, all elements render as plain text. No bolding for <code class="prettyprint">&lt;strong&gt;</code>, no italics for <code class="prettyprint">&lt;em&gt;</code>, no margins for <code class="prettyprint">&lt;p&gt;</code>, etc. The nice thing about this is that you get to style everything from the ground up. The bad thing about this is that you <strong><em>have to</em></strong> style everything from the ground up. I was excited at first, but I became increasingly frustrated with having to write quite a bit of CSS just to get elements to behave even remotely like they normally do. I understand the purpose in doing this, but it is a ton of work just to get the most basic HTML to display with standard behaviors. I eventually realized that a work-around for this would be to develop a &#034;CSS starting point&#034; where there are definitions for elements that just define the basic behavior.</p>
<p>Another downside to Meyer&#039;s method is that he simply provides the code. This didn&#039;t seem like a downside at all to me until I used Yahoo&#039;s implementation, which I will explain shortly. In fact, it never even occurred to me that there could be a better way.</p>
<p>Don&#039;t get me wrong. I have a tremendous amount of respect for Eric Meyer and he has done a great job putting together the code for the CSS reset. I only see the ways to improve on it after having used Yahoo&#039;s CSS reset. *Segue*</p>
<p><strong>Yahoo&#039;s CSS Reset</strong> - <a href="http://developer.yahoo.com/yui/reset/">Yahoo UI Library CSS Reset</a></p>
<p>First, let me admit my bypasses. I didn&#039;t use, or even look at, the Yahoo CSS Reset before trying Eric Meyer&#039;s because&#8230;well&#8230;I&#039;m a Google-guy. If the link had been to the exact same content at Google, I would have not even looked at (okay, that&#039;s an exaggeration) Meyer&#039;s version. I drink the Google-flavored Kool-Aid with the left hand and the Apple-flavored Kool-Aid with the right. (There, Microsoft zealots. Are you happy? I&#039;m an admitted zealot too, just on the other side.)</p>
<p>I was very impressed initially with the organization and presentation of the Yahoo page. The code was very readable and the instructions were clear and concise. They also provide a cheat sheet (PDF download), an SDK download, and several other tools and examples that I found very helpful and interesting.</p>
<p>Yahoo also provides a hosted file for the CSS reset so you can simply call the include from their server in the head of your HTML. This was a nice feature. One less file to maintain and serve.</p>
<p>Additionally, and this was the biggest selling-point for me, Yahoo provided the &#034;CSS starting point&#034; code that I was looking for to get the elements to their minimal display characteristics and, like the CSS reset, they also provided a hosted file for me to include. After adding two lines of meta code in the head of my HTML file, I had reset the CSS to zero and then styled it to a standard display. Perfect! Just what I was looking for and here it was in an easy to consume, highly supported codebase.</p>
<p><em>Coming Soon&#8230;</em></p>
<p><strong>Google CSS Library</strong> - <a href="http://code.google.com/p/blueprintcss/">Google Blueprint CSS Framework</a></p>
<p>As I was writing about being a Google zealot and wishing that Google had a CSS reset, I decided to search for &#034;google css reset&#034; and, lo and behold, the very first link that Google returned (imagine that!) was for the Google Blueprint CSS Framework, which includes a CSS reset and starting point styling. I should have known that Google would swoop in and save the day. I&#039;ll try the Google CSS reset for my next site and report my findings.</p>
<p><strong>EDIT:</strong></p>
<p>I recently tried validating some CSS that I added to a site after using the Yahoo CSS reset. I was sad to find out that it doesn&#039;t validate. I think I read somewhere that the Eric Meyer CSS reset doesn&#039;t validate either. I decided to punt on this one and just make sure that my personal CSS code that I built on top of the reset code will validate, but then, technically, my whole page doesn&#039;t validate since I&#039;m using the CSS reset. I guess that&#039;s something I&#039;ll have to wrestle with until a better solution comes along.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennycarlile.net/2008/06/19/yahoo-vs-eric-meyer-css-reset/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Remove Fancy Quotes From WordPress</title>
		<link>http://www.kennycarlile.net/2008/06/18/remove-fancy-quotes-from-wordpress/</link>
		<comments>http://www.kennycarlile.net/2008/06/18/remove-fancy-quotes-from-wordpress/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 22:09:10 +0000</pubDate>
		<dc:creator>Kenny</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.kennycarlile.net/?p=82</guid>
		<description><![CDATA[If you&#039;re annoyed by the fancy quotes that WordPress replaces your normal quotes with (i.e. “these quotes” rather than &#034;these regular quotes&#034;), there&#039;s an easy way to get rid of them. Just use Semiologic&#039;s Unfancy Quote Plugin For WordPress and presto chango, your fancy quotes are gone!
I had found some lower-level hacks to WordPress and [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#039;re annoyed by the fancy quotes that WordPress replaces your normal quotes with (i.e. “these quotes” rather than &#034;these regular quotes&#034;), there&#039;s an easy way to get rid of them. Just use <a href="http://www.semiologic.com/software/wp-tweaks/unfancy-quote/">Semiologic&#039;s Unfancy Quote Plugin For WordPress</a> and presto chango, your fancy quotes are gone!</p>
<p>I had found some lower-level hacks to WordPress and some crazy-complex Javascript that fixed this, but none of them were as simple and easy to use as Semiologic&#039;s solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennycarlile.net/2008/06/18/remove-fancy-quotes-from-wordpress/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Remove Generator Field From WordPress Meta</title>
		<link>http://www.kennycarlile.net/2008/06/18/remove-generator-field-from-wordpress-meta/</link>
		<comments>http://www.kennycarlile.net/2008/06/18/remove-generator-field-from-wordpress-meta/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 22:03:45 +0000</pubDate>
		<dc:creator>Kenny</dc:creator>
		
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.kennycarlile.net/?p=81</guid>
		<description><![CDATA[WordPress automagically interjects meta content specifying that the generator of the webpage is WordPress and, specifically, what version it is. Like this:
&#60;meta name="generator" content="WordPress 2.5.1" /&#62;
If you want to remove that, there&#039;s an easy way to do it. If you don&#039;t already have a functions.php file in your theme, create one. Make sure that it [...]]]></description>
			<content:encoded><![CDATA[<p>WordPress automagically interjects meta content specifying that the generator of the webpage is WordPress and, specifically, what version it is. Like this:</p>
<pre class="prettyprint">&lt;meta name="generator" content="WordPress 2.5.1" /&gt;</pre>
<p>If you want to remove that, there&#039;s an easy way to do it. If you don&#039;t already have a <code class="prettyprint">functions.php</code> file in your theme, create one. Make sure that it starts with <code class="prettyprint">&lt;?php</code> and ends with <code class="prettyprint">?&gt;</code> and has NOTHING outside those tags or it will cause your theme to yak.</p>
<p>Now add the following line to your <code class="prettyprint">functions.php</code> file:</p>
<pre class="prettyprint">remove_action('wp_head', 'wp_generator');</pre>
<p>And that should do it! Now you can go through all your plugins and remove the comments and other garbage they interject in order to try to hide the fact that you&#039;re running WordPress.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennycarlile.net/2008/06/18/remove-generator-field-from-wordpress-meta/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Disable Firefox 3 AwesomeBar</title>
		<link>http://www.kennycarlile.net/2008/06/17/disable-firefox-3-awesomebar/</link>
		<comments>http://www.kennycarlile.net/2008/06/17/disable-firefox-3-awesomebar/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 20:34:49 +0000</pubDate>
		<dc:creator>Kenny</dc:creator>
		
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.kennycarlile.net/?p=80</guid>
		<description><![CDATA[I just downloaded FireFox 3 and I&#039;m pretty happy with it. It&#039;s fast and works well. The AwesomeBar is a cool feature, but I generally don&#039;t like auto-complete (EDIT: for bookmarks or previously typed-in URLs) in a browser, so having it search my entire bookmarks and list all the possible matches is something I wanted [...]]]></description>
			<content:encoded><![CDATA[<p>I just downloaded FireFox 3 and I&#039;m pretty happy with it. It&#039;s fast and works well. The AwesomeBar is a cool feature, but I generally don&#039;t like auto-complete (<strong>EDIT:</strong> for bookmarks or previously typed-in URLs) in a browser, so having it search my entire bookmarks and list all the possible matches is something I wanted to disable. If you&#039;re annoyed by the Firefox 3 AwesomeBar (or SmartBar or whatever it&#039;s called) like I am, there&#039;s an easy way to display it.</p>
<p><span style="color: #ff0000;"><strong>Warning:</strong></span> if you are unfamiliar with FireFox&#039;s <strong>about:config</strong> settings, be <em><strong>VERY</strong></em> careful following these steps as you could hose your browser.</p>
<ul>
<li>In the address field, type &#034;<strong>about:config</strong>&#034;, without the quotes, and hit enter</li>
<li>In the filter field, type &#034;<strong>browser.urlbar</strong>&#034;, also without the quotes, and hit enter</li>
<li>Double-click on the line with <strong>browser.urlbar.matchBehavior</strong>, change the value in the popup to <strong>0</strong>, and click <strong>OK</strong></li>
<li>Double-click on the line with <strong>browser.urlbar.maxRichResults</strong>, change the value in the popup to <strong>0</strong>, and click <strong>OK</strong></li>
<li>Now restart FireFox and enjoy!</li>
</ul>
<p><strong>EDIT:</strong> I should clarify that my intent is to <em>COMPLETELY </em>disable the AwesomeBar, not turn it into the old type-in-address-only-matching address bar from FireFox 2.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennycarlile.net/2008/06/17/disable-firefox-3-awesomebar/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sending Email From PHP On GoDaddy (And Possibly Other Hosts)</title>
		<link>http://www.kennycarlile.net/2008/06/16/sending-email-from-php-on-godaddy-and-possibly-other-hosts/</link>
		<comments>http://www.kennycarlile.net/2008/06/16/sending-email-from-php-on-godaddy-and-possibly-other-hosts/#comments</comments>
		<pubDate>Tue, 17 Jun 2008 07:37:26 +0000</pubDate>
		<dc:creator>Kenny</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.kennycarlile.net/?p=79</guid>
		<description><![CDATA[Recently, while working on the temporary site for Moonfar, I wanted to send the user an email as confirmation that they had signed up for email notifications. Essentially, you define the recipient, the subject line, the body, a few headers, and then call the mail() function while passing those parameters to it. PHP&#039;s mail() function [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, while working on the temporary site for <a href="http://www.moonfar.com/">Moonfar</a>, I wanted to send the user an email as confirmation that they had signed up for email notifications. Essentially, you define the recipient, the subject line, the body, a few headers, and then call the <code class="prettyprint">mail()</code> function while passing those parameters to it. PHP&#039;s <code class="prettyprint">mail()</code> function does the rest, provided that your host has PHP configured properly.</p>
<p>Let me preface this by saying that I&#039;ve only tested this on GoDaddy&#039;s Linux Deluxe Hosting plan. If you are trying to do this with another web host, you need to make sure that the install of PHP you are using supports the <code class="prettyprint">mail()</code> function.</p>
<pre class="prettyprint">&lt;?php
  $to = 'user@theirdomain.com';
  $subject = 'Your subject line';

  // the message here is HTML, but you could
  // use plain text in the same manner
  // this could also be pulled from a template file
  $message = '
    &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Your Title Here&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;p&gt;Your content here...&lt;/p&gt;
    &lt;/body&gt;
    &lt;/html&gt;';

  // To send HTML mail, the Content-type header must be set
  $headers  = 'MIME-Version: 1.0' . "\r\n";
  $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  // Additional headers
  // I'm not sure how the To: field in the header functions since it's part
  // of the function call, so I've commented it out here
  //$headers .= 'To: ' . $emailAddr . "\r\n";
  $headers .= 'From: YourName &lt;you@yourdomain.com&gt;' . "\r\n";
  $headers .= 'Cc: ' . "\r\n";
  // if you want to receive a copy
  $headers .= 'Bcc: you@yourdomain.com' . "\r\n";

  // Mail it
  mail($to, $subject, $message, $headers);
?&gt;</pre>
<p>It&#039;s as easy as that. That said, I read somewhere that there is a 1000 emails per day limit using this method on GoDaddy without paying for outbound emailing services, but I could be mistaken.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennycarlile.net/2008/06/16/sending-email-from-php-on-godaddy-and-possibly-other-hosts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>WebVisions 2008 Conference Debriefing</title>
		<link>http://www.kennycarlile.net/2008/06/15/webvisions-2008-conference-debriefing/</link>
		<comments>http://www.kennycarlile.net/2008/06/15/webvisions-2008-conference-debriefing/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 07:05:00 +0000</pubDate>
		<dc:creator>Kenny</dc:creator>
		
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.kennycarlile.net/?p=75</guid>
		<description><![CDATA[I recently attended the WebVisions 2008 conference in Portland, OR. It was my first conference, so I can&#039;t speak to the quality with much experience. However, my general opinion was that there was some good, some bad, and some ugly, as one might expect. That said, the good was well worth the experience. Plus, I [...]]]></description>
			<content:encoded><![CDATA[<p>I recently attended the WebVisions 2008 conference in Portland, OR. It was my first conference, so I can&#039;t speak to the quality with much experience. However, my general opinion was that there was some good, some bad, and some ugly, as one might expect. That said, the good was well worth the experience. Plus, I won the grand prize raffle: Adobe CS3 Premier. Although, as of the date of this post, I have not yet received it.</p>
<p>You can find the podcasts of the presentations and the associated presentation slides with these links:</p>
<ul>
<li><a href="http://www.webvisionsevent.com/wp/?p=65">WebVisions 2008 Presentation Podcasts</a></li>
<li><a href="http://www.slideshare.net/event/webvisions-2008">WebVisions 2008 Presentation Slides</a></li>
</ul>
<p>Here is a quick debriefing of my impressions of the presentations and the most important things I learned</p>
<p><strong>Blogging For A Living</strong><br />
Jim Turner<br />
<a href="http://www.genuineblog.com/">http://www.genuineblog.com/</a></p>
<ul>
<li>Bloggers are social media managers</li>
<li>Be an evangelist through your blog</li>
<li>Monitor the net for negative or inaccurate information about your organization and use your blog to rapidly respond and provide an official statement to correct misinformation</li>
<li>&#034;Control is an illusion. You can&#039;t control what is being said. It&#039;s already happening. You can&#039;t stop employees from spreading information, so push forward with positive blogging.&#034; (Paraphrased)</li>
</ul>
<p><strong>Hacking Social Media</strong><br />
DL Byron<br />
<a href="http://texturadesign.com/">http://texturadesign.com/</a><br />
<a href="http://bikehugger.com/">http://bikehugger.com/</a></p>
<ul>
<li>DL was a very inspiring individual, but there wasn&#039;t much that I was able to draw from the presentation except for providing examples of how small organizations can combine (through mashups, etc.) services for cheap, rich aggregate tools.</li>
</ul>
<p><strong>Design Is In The Details</strong><br />
Dan Rubin, Bryan Veloso<br />
<a href="http://design.isinthedetails.com/">http://design.isinthedetails.com/</a><br />
<a href="http://bryanveloso.com/">http://bryanveloso.com/</a><br />
<a href="http://superfluousbanter.org/">http://superfluousbanter.org/</a></p>
<ul>
<li>Great presentation. The best of the conference.</li>
<li>Let your layout breathe
<ul>
<li>Allow space between elements</li>
<li>You don&#039;t need borders on elements if you have 2 elements with a different colored space in between, such as two white boxes with a gap between them on a black background</li>
</ul>
</li>
<li>Multiples and factors of a common measurement
<ul>
<li>If your main text font is 12px, then 6, 12, 18, 24, etc. for margins and other sizes are a good way to keep common feel through your site</li>
</ul>
</li>
<li>Subtle effects
<ul>
<li>Use effects subtly, such as in drop shadows</li>
<li>Add noise for a subtle texture on a background to add a real-world feel</li>
</ul>
</li>
<li>To get varying shades of the same color, pick your base hue, then add layers of black or white using soft light blending mode and transparencies to achieve shades and tints</li>
</ul>
<p><strong>Drupal</strong><br />
Sean Larkin<br />
<a href="http://www.opensourcery.com/">http://www.opensourcery.com/</a></p>
<ul>
<li>This presentation sucked was less of a &#034;howto&#034; and more of a &#034;this is how we make money&#034; presentation. I wanted to hear more about how to use Drupal.</li>
</ul>
<p><strong>Faster, Cheaper, Better</strong><br />
David Verba<br />
<a href="http://www.adaptivepath.com/aboutus/david.php">http://www.adaptivepath.com/aboutus/david.php</a></p>
<ul>
<li>This was essentially a review of how it&#039;s cheaper and faster to make web apps now, which is obvious and doesn&#039;t require a conference session to make that point.</li>
<li>Saying &#034;&#8230;and finally&#8230;&#034; 6 times is 5 times too many.</li>
</ul>
<p><strong>CSS Transformation</strong><br />
Christopher Schmidtt<br />
<a href="http://christopherschmitt.com/">http://christopherschmitt.com/</a></p>
<ul>
<li>Your experience limits your designs</li>
<li>Your browser limits your designs</li>
<li>Start with semantic markup</li>
<li>CSS RESET: the concept of offsetting the internal stylesheet that browsers have that auto-style your elements for you
<ul>
<li><a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/</a></li>
<li><a href="http://developer.yahoo.com/yui/reset/">http://developer.yahoo.com/yui/reset/</a></li>
</ul>
</li>
</ul>
<p><strong>Ruby On Rails</strong><br />
Jim Meyer<br />
<a href="http://www.cucinamedia.com/">http://www.cucinamedia.com/</a><br />
<a href="http://blog.geekdaily.org/">http://blog.geekdaily.org/</a></p>
<ul>
<li>Very pro-Agile Dev and pro-TDD (Test Driven Development)</li>
<li>For any development, to improve scalability and performance:
<ul>
<li>Stay out of the DB as much as possible</li>
<li>Stay out of the dynamic code as much as possible</li>
<li>Push info (code?) as close to the user as possible</li>
</ul>
</li>
</ul>
<p><strong>Web Site Optimization</strong><br />
Kimberly Blessing<br />
<a href="http://www.kimberlyblessing.com/">http://www.kimberlyblessing.com/</a></p>
<ul>
<li>Analyze, test, and tune</li>
<li>Validate
<ul>
<li>declare a valid DOCTYPE to ensure that the browser will stay in STANDARDS MODE, otherwise it will go into QUIRKS MODE which will cause slower rendering</li>
<li>Validate (X)HTML/CSS</li>
</ul>
</li>
<li>Simplify
<ul>
<li>Imagemaps are good ideas (I personally disagree with this)</li>
<li>Use CSS sprites: very cool idea - <a href="http://www.alistapart.com/articles/sprites">http://www.alistapart.com/articles/sprites</a></li>
</ul>
</li>
<li>Concatenate
<ul>
<li>Use only 1 CSS file and 1 JS file; you can always merge at the build cycle if you prefer to keep them separate for development organization</li>
</ul>
</li>
<li>IE-Proof CSS
<ul>
<li>Code against the FOUC (Flash Of Unstyled Content)</li>
<li>Don&#039;t use @import, use link</li>
</ul>
</li>
<li>Call Javascript As Needed
<ul>
<li>Define JS near where it is needed</li>
</ul>
</li>
<li>Save Scripts For Last
<ul>
<li>If it isn&#039;t needed on load, define it at the end of the page to prevent parsing until the page has displayed</li>
</ul>
</li>
<li>If you can&#039;t GZip, then strip
<ul>
<li>Get rid of whitespace and comments, convert spaces to tabs (if you want to save spacing) in build phase</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.kennycarlile.net/2008/06/15/webvisions-2008-conference-debriefing/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Prettify Stacks Icons In Leopard</title>
		<link>http://www.kennycarlile.net/2007/11/10/prettify-stacks-icons-in-leopard/</link>
		<comments>http://www.kennycarlile.net/2007/11/10/prettify-stacks-icons-in-leopard/#comments</comments>
		<pubDate>Sun, 11 Nov 2007 02:39:35 +0000</pubDate>
		<dc:creator>Kenny</dc:creator>
		
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.kennycarlile.net/2007/11/10/prettify-stacks-icons-in-leopard/</guid>
		<description><![CDATA[While this isn&#039;t the most elegant solution, it&#039;s not bad if you&#039;re looking for a way to make Stacks in Leopard look much nicer.
http://t.ecksdee.org/post/19001860
]]></description>
			<content:encoded><![CDATA[<p>While this isn&#039;t the most elegant solution, it&#039;s not bad if you&#039;re looking for a way to make Stacks in Leopard look much nicer.</p>
<p><a href="http://t.ecksdee.org/post/19001860">http://t.ecksdee.org/post/19001860</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennycarlile.net/2007/11/10/prettify-stacks-icons-in-leopard/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tips And Tricks</title>
		<link>http://www.kennycarlile.net/2007/09/19/tipsandtricks/</link>
		<comments>http://www.kennycarlile.net/2007/09/19/tipsandtricks/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 16:48:19 +0000</pubDate>
		<dc:creator>Kenny</dc:creator>
		
		<category><![CDATA[Guitars]]></category>

		<guid isPermaLink="false">http://www.kennycarlile.net/2007/09/19/tipsandtricks/</guid>
		<description><![CDATA[This is intended to be a living document, so check back often for new tips and tricks to help your guitar playing. These appear in no particular order.

Use a metronome when you practice. This helps establish consistent timing, accuracy, and synchronization between your left and right hands. Your playing will improve much faster by using [...]]]></description>
			<content:encoded><![CDATA[<p><em>This is intended to be a living document, so check back often for new tips and tricks to help your guitar playing. These appear in no particular order.<br />
</em></p>
<p><strong>Use a metronome when you practice.</strong> This helps establish consistent timing, accuracy, and synchronization between your left and right hands. Your playing will improve much faster by using a metronome. You can also build up speed by slowly increasing the tempo in small increments such as 8bpm at a time.</p>
<p><strong>Shorten the length of your strap.</strong> Sure, it looks cool to play with your guitar hung really low, but it hurts your playing.  If you&#039;re more concerned with looking cool, then you probably aren&#039;t reading this anyway. Your left hand can&#039;t reach or stretch as far as it can with the guitar high up. The higher the guitar, the more your thumb can be behind the neck and the more your wrist can be pushed forward and your hand can wrap around the neck. Think of holding the neck like you&#039;d pick up a pencil, not how you&#039;d pick up a shovel.</p>
<p><strong>Pay attention to where you fret.</strong> Fretting in the middle between strings has a different sound and feeling than fretting right behind the fret. For accuracy, precision, and tone, you should fret as close to the back side of the fret as possible without muting the tone of the string. There are, however, some exceptions to this rule, as Eric Johnson is quick to point out.</p>
<p><strong>Less is more&#8230;in terms of gain.</strong> Many beginning guitarists want their sound to be completely distorted because it sounds cool. Surprisingly, a lot of the music you might want to emulate isn&#039;t as distorted as you might think. Also, it&#039;s important to understand that tone is a big part of playing guitar. If you have too much distortion, there is no tone. No tone, means less distinction between notes, which equals poor dynamic and melodic contrast.</p>
<p><strong>Intentionally order your pedals.</strong> While there are many schools of thought on pedal order, and your ears should be the ultimate decision makers, there is a general order to pedals that makes them most effective in the typical setup.</p>
<ol>
<li>Guitar - this one should be obvious</li>
<li>Pre-volume - some people like to run volume pedals or clean boosts before everything else</li>
<li>Wah - the wah is a tone control, so generally, you want it close to the clean sound of the guitar</li>
<li>Compression - this is like the pre-volume so you want it near to the clean sound of the guitar</li>
<li>Harmonizers - pitch shifters, octavers, harmonizers, etc. should be next before the sound is colored</li>
<li>Overdrive - put the lightest drive first so you can cascade them into heavier sounds</li>
<li>Distortion - this is heavier than overdrive, so it should go after it</li>
<li>Fuzz - this is the most extreme form of drive and should be last in the chain of drive pedals</li>
<li>Noise suppression - if your noise suppressor has a loop, put your drive pedals in that loop to cut hiss</li>
<li>EQ - equalization pedals should typically go after drive pedals</li>
<li>Modulation - this is where your chorus, phaser, flanger, or rotary pedals go</li>
<li>Delay - just like with drives, it&#039;s a good idea to cascade your delays in ascending order with slapback first and long delay last</li>
<li>Reverb - this ambient effect should go last after all other types of delay</li>
<li>Post-volume - if you don&#039;t run a pre-volume, this is another good place to put a volume pedal</li>
<li>Amp - again, obvious</li>
</ol>
<p>Alternately, if your amp has an effects loop, EQ, modulation, delay, and reverb often go well in that loop. Ultimately, try out different combinations and see what works best. Stevie Ray Vaughan often ran his wah <em>after</em> his TS9 Tube Screamers, which goes against the general rules to follow for pedal placement.</p>
<p><strong>Play acoustic <em>and</em> electric guitar.</strong> These instruments are very different beasts; playing acoustic <em>will</em> make you a better electric player and playing electric <em>will</em> make you a better acoustic player.</p>
<p><strong>String gauge is directly proportional to tone.</strong> If you want a big, fat, thick tone, you better not be playing on 9s. A big part of Stevie Ray Vaughan&#039;s sound (a surprising amount, actually) was based on the strings he used. He typically played on 13s and he would tune to Eb for easier bending. There is almost no excuse why you should ever play on 9s or, God forbid (no, not the band), 8s. If you need to do a lot of bending, especially compound and oblique bends, try some 10s for country or similar styles. Otherwise, you should be on 11s or better, especially for blues. Once you hit 12s, make sure you look for a wound 3rd (G) string rather than a plain string.</p>
<p><strong>They say that cat Shaft is a bad motha&#8211;shut yo mouth!</strong> Never underestimate the power of left-hand muted pick scrapes and wah-wah.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennycarlile.net/2007/09/19/tipsandtricks/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
