<?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>ericfaerber.com &#187; Programming</title>
	<atom:link href="http://www.ericfaerber.com/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ericfaerber.com</link>
	<description></description>
	<lastBuildDate>Wed, 21 Jan 2009 08:02:25 +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>WordCamp Utah</title>
		<link>http://www.ericfaerber.com/2008/09/07/wordcamp-utah/</link>
		<comments>http://www.ericfaerber.com/2008/09/07/wordcamp-utah/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 03:55:58 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Computer]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.ericfaerber.com/?p=186</guid>
		<description><![CDATA[A Utah WordCamp is coming up on September 27, 2008. I&#8217;m thinking of going. Only problem is that is the same day as the X96 Maverick Big Ass Show which I purchased tickets for. Who I was originally going to go with won&#8217;t be happening any more so now I need to decide whether to [...]]]></description>
			<content:encoded><![CDATA[<p>A <a href="http://utah.wordcamp.org/">Utah WordCamp</a> is coming up on September 27, 2008. I&#8217;m thinking of going. Only problem is that is the same day as the <a href="http://x96.com/music/concert_detail/the_x96_maverik_big_ass_show/">X96 Maverick Big Ass Show</a> which I purchased tickets for. Who I was originally going to go with won&#8217;t be happening any more so now I need to decide whether to go rock out or be a nerd for a day.</p>
<p>If you are in the Utah area and would like to meet me then let me know. At this point I&#8217;m leaning towards going to Wordcamp since I want to get more involved in things like that and meet the creator of Wordpress. If atleast one person wants to meet me then I&#8217;ll forget about the Big Ass Show completely.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericfaerber.com/2008/09/07/wordcamp-utah/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS Position Property</title>
		<link>http://www.ericfaerber.com/2007/11/14/css-position-property/</link>
		<comments>http://www.ericfaerber.com/2007/11/14/css-position-property/#comments</comments>
		<pubDate>Thu, 15 Nov 2007 05:56:29 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.ericfaerber.com/2007/11/14/css-position-property/</guid>
		<description><![CDATA[Some people have a hard time figuring out the position property in CSS. It took me a while to fully understand it and use it to it&#8217;s full potential. Here is some information on it and hopefully you can understand it.
position: relative; positions the element relative to it&#8217;s nromal position. An elements normal position is [...]]]></description>
			<content:encoded><![CDATA[<p>Some people have a hard time figuring out the <a href="http://www.w3schools.com/css/pr_class_position.asp">position property</a> in CSS. It took me a while to fully understand it and use it to it&#8217;s full potential. Here is some information on it and hopefully you can understand it.</p>
<p>position: relative; positions the element relative to it&#8217;s nromal position. An elements normal position is its position in the flow of the page. So top: 5px and left: 30px; will move it down 5 pixels and left 30 pixels from it&#8217;s normal position on the page.</p>
<p>position: absolute; moves it to a certain spot within the first parent element that has been positioned before it. This is where it gets tricky. This defaults to the browser window if you haven&#8217;t positioned any parent elements. Examples will make this easier for me to explain.</p>
<p><code>&lt;h1&gt;Positioning Example&lt;/h1&gt;<br />
&lt;div style="width: 500px; height: 500px; border: 1px #000000 solid;"&gt;parent element<br />
    &lt;div style="position: absolute; bottom: 0px; left: 0px"&gt;child element&lt;/div&gt;<br />
&lt;/div&gt;</code><br />
<a href="/position1.html">View Example</a></p>
<p>In this example, <em>child element </em>will be in the bottom left corner of the browser window although the <em>parent element</em> doesn&#8217;t go below 500 pixels or the window is shorter than 500 pixels. The <em>child element</em> will be in the bottom left corner of the browser window even if you can scroll below the page.</p>
<p><code>&lt;h1&gt;Positioning Example&lt;/h1&gt;<br />
&lt;div style="width: 500px; height: 500px;  border: 1px #000000 solid; position: relative;"&gt;parent element<br />
    &lt;div style="position: absolute; bottom: 0px; left: 0px"&gt;child element&lt;/div&gt;<br />
&lt;/div&gt;</code><br />
<a href="/position2.html">View Example</a></p>
<p>In this example, <em>child element</em> will be in the bottom left corner of the <em>parent element</em>. This is because parent element has now been positioned so it becomes the containing block and position: absolute will move elements around within that block.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericfaerber.com/2007/11/14/css-position-property/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Godaddy and mod_rewrite</title>
		<link>http://www.ericfaerber.com/2007/08/21/godaddy-and-mod_rewrite/</link>
		<comments>http://www.ericfaerber.com/2007/08/21/godaddy-and-mod_rewrite/#comments</comments>
		<pubDate>Tue, 21 Aug 2007 23:31:31 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.ericfaerber.com/2007/08/21/godaddy-and-mod_rewrite/</guid>
		<description><![CDATA[If you are considering using Godaddy to host your website, don&#8217;t. Run away as fast as you can and get a proper web host. The more I have used Godaddy for more only domains, the more I hate them. Godaddy is a domain company and nothing more. Yes, they are cheap and that is service [...]]]></description>
			<content:encoded><![CDATA[<p>If you are considering using Godaddy to host your website, don&#8217;t. Run away as fast as you can and get a proper web host. The more I have used Godaddy for more only domains, the more I hate them. Godaddy is a domain company and nothing more. Yes, they are cheap and that is service you get. Cheap.</p>
<p>Today I found out that Godaddy doesn&#8217;t mod_rewrite files ending in .php. You can redirect other file types to php files but you can&#8217;t rewrite php files to other files.</p>
<p>I&#8217;m guessing this is because Godaddy parses php files before it even gets to your .htaccess file.</p>
<p>Godaddy, can you server setup be any more messed up? Why can&#8217;t you do it properly?</p>
<p><strong>Update August 4, 2008</strong></p>
<p><a href="http://www.bit-revolution.com/">0w3w</a> commented and said </p>
<blockquote><p>I&#8217;m not native speaker, sorry for the grammar..</p>
<p>Well, I had the same problem u have, and after some googling I found the answer  it is as simple as one instruction on the .htaccess:</p>
<p><code>Options -MultiViews</code></p>
<p>This is the .htaccess that worked for me:</p>
<p><code>  Options +FollowSymLinks<br />
  Options -MultiViews<br />
  rewriteEngine On<br />
  rewriteRule ^test/(.*)\.php$ /test.php?variable=$1</code></p>
<p>If this do not work or your hosting is in the root directory try taking out the / on the second part of the rewrite rule, like this</p>
<p><code>  rewriteRule ^test/(.*)\.php$ test.php?variable=$1</code></p>
<p>Hope I&#8217;d helped ^^</p></blockquote>
<p>I have not tested this but others have said this works.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericfaerber.com/2007/08/21/godaddy-and-mod_rewrite/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Updated Changing Avatar Script</title>
		<link>http://www.ericfaerber.com/2007/08/13/updated-changing-avatar-script/</link>
		<comments>http://www.ericfaerber.com/2007/08/13/updated-changing-avatar-script/#comments</comments>
		<pubDate>Mon, 13 Aug 2007 18:22:48 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.ericfaerber.com/2007/08/13/updated-changing-avatar-script/</guid>
		<description><![CDATA[I&#8217;ve updated my script that I previously blogged about that changes your avatar on different sites depending on what month it is.
Put the following to your website. In my example I&#8217;m naming it avatar.php
Add cases for the months you want to add or change. Change $avatar to the correct image. Change $type so that it [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve updated my script that I previously blogged about that changes your avatar on different sites depending on what month it is.</p>
<p>Put the following to your website. In my example I&#8217;m naming it avatar.php</p>
<p>Add cases for the months you want to add or change. Change <code>$avatar</code> to the correct image. Change <code>$type</code> so that it is appropriate for the correct image. Gifs are <code>image/gif</code>. Jpgs are <code>image/jpeg</code>.</p>
<pre><code>&lt;?php

$month = strtolower(date('M'));

$avatar = '';
$type = '';
switch($month)
{
	case 'oct':
		$avatar = 'pumpkin.gif';
		$type = 'image/gif';
		break;

	case 'dec':
		$avatar = 'christmas-tree.gif';
		$type = 'image/gif';
		break;

	default:
		$avatar = 'elephant.gif';
		$type = 'image/gif';
		break;
}

header('Content-type: ' . $type);
readfile($avatar);

exit;

?&gt;</code></pre>
<p>In a .htaccess file add the following</p>
<p><code>RewriteRule avatar.jpg avatar.php<br />
RewriteRule avatar.gif avatar.php</code></p>
<p>To use your dynamic avatar, you can link to either avatar.jpg or avatar.gif on your website. Preferably keep all of the image types the same.</p>
<p>If you have any questions, bugs or anything, let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericfaerber.com/2007/08/13/updated-changing-avatar-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are you a web programmer looking for a full time job?</title>
		<link>http://www.ericfaerber.com/2007/02/21/are-you-a-web-programmer-looking-for-a-full-time-job/</link>
		<comments>http://www.ericfaerber.com/2007/02/21/are-you-a-web-programmer-looking-for-a-full-time-job/#comments</comments>
		<pubDate>Wed, 21 Feb 2007 20:22:42 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://blog.best-dev.com/2007/02/21/are-you-a-web-programmer-looking-for-a-full-time-job/</guid>
		<description><![CDATA[The studio I work for could use another programmer so ff you are a web programmer in the Salt Lake area looking for a full time job, contact me and I&#8217;ll get you some more information. Need to know XHTML, CSS, Javascript, PHP, and SQL. Pretty much the basics to web programming. Preferably you should [...]]]></description>
			<content:encoded><![CDATA[<p>The studio I work for could use another programmer so ff you are a web programmer in the Salt Lake area looking for a full time job, contact me and I&#8217;ll get you some more information. Need to know XHTML, CSS, Javascript, PHP, and SQL. Pretty much the basics to web programming. Preferably you should be out of school.</p>
<p>Could possibly be part time. Can still be in school if part time.</p>
<p>My email is eric (< [at]>) ericfaerber (< [dot]>) com. Remove (< [ and ]>). Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericfaerber.com/2007/02/21/are-you-a-web-programmer-looking-for-a-full-time-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Job Hunting</title>
		<link>http://www.ericfaerber.com/2006/03/30/job-hunting/</link>
		<comments>http://www.ericfaerber.com/2006/03/30/job-hunting/#comments</comments>
		<pubDate>Fri, 31 Mar 2006 03:28:38 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://blog.best-dev.com/2006/03/30/job-hunting/</guid>
		<description><![CDATA[I&#8217;m looking for a job.  I&#8217;d like to work for company that does web development but that might not happen.  I&#8217;ve applied to a few of places so hopefully one of those will work out.  If you have any leads on a job, let me know   
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m looking for a job.  I&#8217;d like to work for company that does web development but that might not happen.  I&#8217;ve applied to a few of places so hopefully one of those will work out.  If you have any leads on a job, let me know <img src='http://www.ericfaerber.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericfaerber.com/2006/03/30/job-hunting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dynamic Avatar depending on the Month</title>
		<link>http://www.ericfaerber.com/2005/10/03/dynamic-avatar-depending-on-the-month/</link>
		<comments>http://www.ericfaerber.com/2005/10/03/dynamic-avatar-depending-on-the-month/#comments</comments>
		<pubDate>Tue, 04 Oct 2005 03:17:58 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.best-dev.com/2005/10/03/dynamic-avatar-depending-on-the-month/</guid>
		<description><![CDATA[If your like me and want to have a different avatar that deals with the holidays then you&#8217;ll like this script which can be used to change your avatar to a different one each month.  You can see this script working on my account on phpBB.com.  Of course if you want to see [...]]]></description>
			<content:encoded><![CDATA[<p>If your like me and want to have a different avatar that deals with the holidays then you&#8217;ll like this script which can be used to change your avatar to a different one each month.  You can see this script working on my <a href="http://www.phpbb.com/phpBB/profile.php?mode=viewprofile&#038;u=29440">account on phpBB.com</a>.  Of course if you want to see it change, you&#8217;ll have to wait until the new month <img src='http://www.ericfaerber.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><a href="http://www.ericfaerber.com/2007/08/13/updated-changing-avatar-script/">Updated version of this script 13 Aug. 2007</a>.</p>
<p><strong>Part 1 &#8211; the PHP Code</strong></p>
<p>Copy and paste the code below into a file on your website.  I&#8217;d recommend naming the file <em>avatar.php</em> because of part two. To add or change months, add or alter the case and use the three letter abbreviation for the month (January is jan, March = mar, etc) in lowercase.  What is under the <em>default</em> case is what will be shown when you haven&#8217;t specified an image for that month.  For the images, change the part after <em>location</em> within the location function of each case.<br />
[php]< ?php</p>
<p>$month = strtolower(date('M'));</p>
<p>switch($month)<br />
{<br />
	case 'oct':<br />
		header('location: image1.gif');<br />
		break;</p>
<p>	case 'nov':<br />
		header('location: image2.jpg');<br />
		break;</p>
<p>	case 'dec':<br />
		header('location: image3.gif');<br />
		break;</p>
<p>	default:<br />
		header('location: default_image.gif');<br />
		break;<br />
}</p>
<p>exit;<br />
?>[/php]<br />
<strong>Part 2 &#8211; .htaccess</strong></p>
<p>A lot of sites only allow you to put files that are image extensions as your avatar and not .php files.  This is because of security so we&#8217;ll have to use .htaccess to get around this.  Either place the following in your existing .htaccess file or create a new one.  This .htaccess assumes that you named the PHP file from part 1 as <em>avatar.php</em> and that you put <em>avatar.jpg</em> in the spot where put your avatar.</p>
<p><code># you only need RewriteEngine on once within each<br />
# .htaccess file so if you already have it, you don't need to<br />
# put it again<br />
RewriteEngine on<br />
# change avatar.jpg to what you use on the site where<br />
# you are putting your avatar.  change avatar.php to<br />
# whatever you named the php file<br />
RewriteRule avatar.jpg avatar.php</code></p>
<p>If you have any questions or problems, post a comment and I&#8217;ll try to help you out.  Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericfaerber.com/2005/10/03/dynamic-avatar-depending-on-the-month/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My Blogroll script</title>
		<link>http://www.ericfaerber.com/2005/08/20/my-blogroll-script/</link>
		<comments>http://www.ericfaerber.com/2005/08/20/my-blogroll-script/#comments</comments>
		<pubDate>Sat, 20 Aug 2005 18:13:23 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.best-dev.com/2005/08/20/my-blogroll-script/</guid>
		<description><![CDATA[I was recently asked about my blogroll script which updates automatically.  So this post is about that.
First off, I signed up at Blo.gs and started adding people to my favorites list.  When you are done doing that, go into your settings and make it so that your favorites can be shared.  Once [...]]]></description>
			<content:encoded><![CDATA[<p>I was <a href="http://blog.best-dev.com/2005/08/15/new-layout/#comments">recently asked</a> about my blogroll script which updates automatically.  So this post is about that.</p>
<p>First off, I signed up at <a href="http://blo.gs/">Blo.gs</a> and started adding people to my favorites list.  When you are done doing that, go into your settings and make it so that your favorites can be shared.  Once that has been done, in the sidebar you&#8217;ll see a link named <em>Shared</em>, go there.  Click on the <em>favorites.xml</em> file and take note of the number that is in the url.  Should be something like <em><!-- m --><a href="http://blo.gs/">http://blo.gs/</a><!-- m --><strong>12345</strong>/favorites.xml</em>.</p>
<p>If you want, you can save this file to your computer and then upload it to your blog.  It isn&#8217;t required but you may need to so you can chmod the favorites.xml file to atleast 666.</p>
<p>Next, change this <a href="http://blog.best-dev.com/blogroll.phps">script</a> (you can also find it below, under <em>Read More</em>) so that it uses the number that I mentioned before.  Upload it to the root directory of your blog.  I&#8217;d name it blogroll.php.</p>
<p>Once it has been uploaded, put the following code on your site where ever you want your blogroll to be displayed.</p>
<p>[php]< ?php<br />
include('blogroll.php');<br />
?>[/php]</p>
<p>Now you will have a blogroll on your site that will update every hour.  Be sure to edit it so that it is styled to match your site.</p>
<p><span id="more-51"></span></p>
<p>[php]< ?php</p>
<p>//<br />
// Script was originally written by SHS` (<!-- m --><a href="http://lambcutlet.org/">http://lambcutlet.org/</a><!-- m -->)<br />
// Modified by wGEric (<!-- m --><a href="http://www.best-dev.com/">http://www.best-dev.com/</a><!-- m -->)<br />
//<br />
//<br />
// To use the script, can the url on line 49 to your XML file on<br />
// <!-- m --><a href="http://blo.gs/">http://blo.gs/</a><!-- m --> and where ever you want the list to show up<br />
// add include(&#8217;blogroll.php&#8217;); with the proper PHP opening<br />
// and closing tags of course<br />
//</p>
<p>$currentTime = time();</p>
<p>function calcElapsedTime($elapsedTime)<br />
{<br />
    $yearDiff = 0; $mnthDiff = 0; $weekDiff = 0; $daysDiff = 0; $hrsDiff = 0; $minsDiff = 0; $secsDiff = 0;</p>
<p>    $sec_in_a_year = 31536000;<br />
    while($elapsedTime >= $sec_in_a_year){$yearDiff++; $elapsedTime -= $sec_in_a_year;}<br />
    $sec_in_a_month = 2592000;<br />
    while($elapsedTime >= $sec_in_a_month){$mnthDiff++; $elapsedTime -= $sec_in_a_month;}<br />
    $sec_in_a_week = 604800;<br />
    while($elapsedTime >= $sec_in_a_week){$weekDiff++; $elapsedTime -= $sec_in_a_week;}<br />
    $sec_in_a_day = 86400;<br />
    while($elapsedTime >= $sec_in_a_day){$daysDiff++; $elapsedTime -= $sec_in_a_day;}<br />
    $sec_in_an_hour = 3600;<br />
    while($elapsedTime >= $sec_in_an_hour){$hrsDiff++; $elapsedTime -= $sec_in_an_hour;}<br />
    $sec_in_a_min = 60;<br />
    while($elapsedTime >= $sec_in_a_min){$minsDiff++; $elapsedTime -= $sec_in_a_min;}<br />
    $secsDiff = $elapsedTime;</p>
<p>    $yearText = ($yearDiff == 0)?&#8221;:(($yearDiff == 1)?&#8217;1 year&#8217;:$yearDiff . &#8216; years&#8217;);<br />
    $mnthText = ($mnthDiff == 0)?&#8221;:(($mnthDiff == 1)?&#8217;1 month&#8217;:$mnthDiff . &#8216; months&#8217;);<br />
    $weekText = ($weekDiff == 0)?&#8221;:(($weekDiff == 1)?&#8217;1 week&#8217;:$weekDiff . &#8216; weeks&#8217;);<br />
    $daysText = ($daysDiff == 0)?&#8221;:(($daysDiff == 1)?&#8217;1 day&#8217;:$daysDiff . &#8216; days&#8217;);<br />
    $hrsText = ($hrsDiff == 0)?&#8221;:(($hrsDiff == 1)?&#8217;1 hour&#8217;:$hrsDiff . &#8216; hours&#8217;);<br />
    $minsText = ($minsDiff == 0)?&#8221;:(($minsDiff == 1)?&#8217;1 minute&#8217;:$minsDiff . &#8216; minutes&#8217;);<br />
    $secsText = ($secsDiff == 0)?&#8221;:(($secsDiff == 1)?&#8217;1 second&#8217;:$secsDiff . &#8216; seconds&#8217;);</p>
<p>    $timeText = preg_replace(array(&#8217;/(, ){2,}/&#8217;, &#8216;/^, /&#8217;), array(&#8217;, &#8216;, &#8221;), ($yearText.&#8217;, &#8216;.$mnthText.&#8217;, &#8216;.$weekText.&#8217;, &#8216;.$daysText.&#8217;, &#8216;.$hrsText.&#8217;, &#8216;.$minsText.&#8217;, &#8216;.$secsText));<br />
    $timeTextA = explode(&#8221;, &#8220;, $timeText);</p>
<p>    return $timeTextA[0] . (($timeTextA[1] != &#8221;)?&#8221;, &#8221; . $timeTextA[1]:&#8221;);<br />
}</p>
<p>if ( filemtime(&#8217;favorites.xml&#8217;) < (time()-3600) )<br />
{<br />
	$favorites = file_get_contents('http://blo.gs/1234/favorites.xml');<br />
	$fop = fopen('favorites.xml', 'w');<br />
	fwrite($fop, $favorites);<br />
	fclose($fop);<br />
}<br />
else<br />
{<br />
	$favorites = file_get_contents('favorites.xml');<br />
}</p>
<p>if (!empty($favorites)) {<br />
    $xml = xml_parser_create();<br />
    xml_parser_set_option($xml, XML_OPTION_CASE_FOLDING, false);<br />
    xml_parse_into_struct($xml, $favorites, $weblogData);<br />
    xml_parser_free($xml);</p>
<p>	$favTimeStamp = $weblogData[0]['attributes']['count'];<br />
	array_shift($weblogData);</p>
<p>    for ($i = 0, $total = count($weblogData); $i < $total; $i++)<br />
    {<br />
        if ( $weblogData[$i]['type'] != 'complete' )<br />
        {<br />
        	continue;<br />
        }</p>
<p>        if ( !empty($weblogData[$i]['attributes']['when']) &#038;&#038; $weblogData[$i]['attributes']['when'] != 0)<br />
        {<br />
	        $weblogData[$i]['attributes']['fromnow'] = ($currentTime - $favTimeStamp) + $weblogData[$i]['attributes']['when'];<br />
	        $weblogData[$i]['attributes']['fromnow'] = calcElapsedTime($weblogData[$i]['attributes']['fromnow']);<br />
	    }<br />
	    else<br />
	    {<br />
	    	$weblogData[$i]['attributes']['fromnow'] = '';<br />
	    }</p>
<p>        echo "\t
<li><a href=\"" . htmlspecialchars($weblogData[$i]['attributes']['url']) . "\" title=\"" . htmlspecialchars($weblogData[$i]['attributes']['name']) . "\xE2\x80\xA6 Updated " . $weblogData[$i]['attributes']['fromnow'] . "\" rel=\"" . $weblogData[$i]['attributes']['xfn'] . "\">&#8221; . htmlspecialchars($weblogData[$i]['attributes']['name']) . &#8220;</a>\n\t\t&#8221;;<br />
        if ( !empty($weblogData[$i]['attributes']['fromnow']) )<br />
        {<br />
        	echo $weblogData[$i]['attributes']['fromnow'] . &#8220;\n\t\n&#8221;;<br />
        }<br />
    }<br />
}<br />
else<br />
{<br />
    echo &#8220;\t
<li>Failed to open favorites.xml</li>
<p>\n&#8221;;<br />
}</p>
<p>?>[/php]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericfaerber.com/2005/08/20/my-blogroll-script/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Happy 4th of July &#8230;</title>
		<link>http://www.ericfaerber.com/2005/07/07/happy-4th-of-july/</link>
		<comments>http://www.ericfaerber.com/2005/07/07/happy-4th-of-july/#comments</comments>
		<pubDate>Thu, 07 Jul 2005 04:17:22 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[ Games]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[phpBB]]></category>

		<guid isPermaLink="false">http://blog.best-dev.com/2005/07/07/happy-4th-of-july/</guid>
		<description><![CDATA[&#8230; two days late, oh well.  This year we did the same thing we do every year, go eat breakfast, watch the parade, hang out all afternoon, and then go to the fireworks at night with the relatives.  The parade sucked, as usual, but the fireworks were good.
The next day I wake up [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230; two days late, oh well.  This year we did the same thing we do every year, go eat breakfast, watch the parade, hang out all afternoon, and then go to the fireworks at night with the relatives.  The parade sucked, as usual, but the fireworks were good.</p>
<p>The next day I wake up and visit my site, <a href="http://mods.best-dev.com">mods.best-dev.com</a>, and see this message:</p>
<blockquote><p>LifeChamber Was Here! Your MySQL Database Username Is **** And The Password Is ****</p></blockquote>
<p>My site was hacked.  From the looks of it, all he/she did was get my MySQL username and password and then edit index.php.  Everything else is fine.  I still haven&#8217;t contacted the ISP of the person that did this nor have I fixed my site.  I really need to do that soon.  Probably tomorrow.</p>
<p>Getting hacked was my fault.  I didn&#8217;t update to 2.0.16 of phpBB.  I knew there was a critical security problem in it but I didn&#8217;t update.  Well, I learned my lesson.  I&#8217;m just glad it wasn&#8217;t as bad as it could have been.</p>
<p>I got the Halo 2 Map Pack today.  I already had four of the new maps and spent today looking at the other five.  I haven&#8217;t played any of them, just looked.  Most of them seem really fun.  Tomorrow evening I&#8217;ll for sure  play them.  I&#8217;ll post my impressions on them.</p>
<p>Recently I have been pretty busy working with clients.  I really need to stop with this so I can validate some MODs.  Tomorrow I&#8217;ll make time to validate MODs.</p>
<p>Time for bed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericfaerber.com/2005/07/07/happy-4th-of-july/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Layout Sneak Peak</title>
		<link>http://www.ericfaerber.com/2005/05/08/new-layout-sneak-peak/</link>
		<comments>http://www.ericfaerber.com/2005/05/08/new-layout-sneak-peak/#comments</comments>
		<pubDate>Mon, 09 May 2005 03:50:20 +0000</pubDate>
		<dc:creator>Eric</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[phpBB]]></category>

		<guid isPermaLink="false">http://blog.best-dev.com/2005/05/08/new-layout-sneak-peak/</guid>
		<description><![CDATA[I have decided to go with this layout for the layout.  The sidebar will be about the same as the middle content and what it is like now.  When I get a chance, I&#8217;ll start coding it.  Comments are welcome.
If you haven&#8217;t heard already, phpBB 2.0.15 was released, update your message boards [...]]]></description>
			<content:encoded><![CDATA[<p>I have decided to go with this <a href="http://blog.best-dev.com/images/best-dev_layout.png">layout</a> for the layout.  The sidebar will be about the same as the middle content and what it is like now.  When I get a chance, I&#8217;ll start coding it.  Comments are welcome.</p>
<p>If you haven&#8217;t heard already, <a href="http://www.phpbb.com/phpBB/viewtopic.php?f=14&#038;t=288194">phpBB 2.0.15 was released</a>, update your message boards ASAP!  While you are at it, <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=287697">give your input on the XML MOD Template</a> if you are a MOD Author.  In order to make it perfect, we really would like the communities input.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ericfaerber.com/2005/05/08/new-layout-sneak-peak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
