<?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>For the Love of Geeks &#187; nicholas kreidberg</title>
	<atom:link href="http://www.fortheloveofgeeks.com/tag/nicholas-kreidberg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fortheloveofgeeks.com</link>
	<description>I am a geek, and I&#039;m OK!</description>
	<lastBuildDate>Sun, 12 Jun 2011 20:39:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Geeks On PHP OOP Update</title>
		<link>http://www.fortheloveofgeeks.com/2010/07/16/geeks-on-php-oop-update/</link>
		<comments>http://www.fortheloveofgeeks.com/2010/07/16/geeks-on-php-oop-update/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 18:26:01 +0000</pubDate>
		<dc:creator>Nicholas Kreidberg</dc:creator>
				<category><![CDATA[Geeks On PHP]]></category>
		<category><![CDATA[darthweef]]></category>
		<category><![CDATA[kreidberg]]></category>
		<category><![CDATA[mitchell hislop]]></category>
		<category><![CDATA[nicholas kreidberg]]></category>
		<category><![CDATA[niczak]]></category>
		<category><![CDATA[oop]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Stephen Johnson]]></category>

		<guid isPermaLink="false">http://www.fortheloveofgeeks.com/?p=1677</guid>
		<description><![CDATA[I want to give everybody a quick update on what is going on with Geeks On PHP and what to expect in the near future. As we talked about on our last episode we are putting together a series of podcasts focused on OOP in PHP. Unfortunately due to time constraints, work overload and other [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.fortheloveofgeeks.com/wp-content/uploads/2009/07/geeksOnPHPsmall.png" alt="" title="Geeks On PHP" width="144" height="144" class="alignleft size-full wp-image-1189" /></p>
<p>I want to give everybody a quick update on what is going on with Geeks On PHP and what to expect in the near future.  As we talked about on our last episode we are putting together a series of podcasts focused on OOP in PHP.  Unfortunately due to time constraints, work overload and other things out of our control we have had to push things back a bit.  The series is still going to happen and we are excited to have <a href="http://twitter.com/mitchellhislop" target="_blank">Mitchell Hislop</a> who is a friend of mine and a very talented developer / social media expert joining us for the series.  </p>
<p>As soon as we are able to settle on dates to record I will provide updates via Twitter and our Facebook page letting people know what to expect.  Thank you for your patience and we look forward to releasing a great series on OOP!</p>
<p>Follow both <a href="http://twitter.com/darthweef" target="_blank">Stephen</a> &#038; <a href="http://twitter.com/niczak" target="_blank">Myself</a> on <a href="http://twitter.com/niczak" target="_blank">Twitter</a> and also <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=325498336" target="_blank">subscribe via Tunes.</a></p>
<p>- <a href="mailto:niczak@gmail.com">Nicholas</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.fortheloveofgeeks.com%2F2010%2F07%2F16%2Fgeeks-on-php-oop-update%2F&amp;title=Geeks%20On%20PHP%20OOP%20Update" id="wpa2a_2"><img src="http://www.fortheloveofgeeks.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.fortheloveofgeeks.com/2010/07/16/geeks-on-php-oop-update/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Geeks On PHP Episode 11</title>
		<link>http://www.fortheloveofgeeks.com/2010/05/20/geeks-on-php-episode-11/</link>
		<comments>http://www.fortheloveofgeeks.com/2010/05/20/geeks-on-php-episode-11/#comments</comments>
		<pubDate>Fri, 21 May 2010 01:10:41 +0000</pubDate>
		<dc:creator>Nicholas Kreidberg</dc:creator>
				<category><![CDATA[Geeks On PHP]]></category>
		<category><![CDATA[charts]]></category>
		<category><![CDATA[darthweef]]></category>
		<category><![CDATA[gd]]></category>
		<category><![CDATA[graphing]]></category>
		<category><![CDATA[image manipulation]]></category>
		<category><![CDATA[kreidberg]]></category>
		<category><![CDATA[nicholas]]></category>
		<category><![CDATA[nicholas kreidberg]]></category>
		<category><![CDATA[niczak]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[stephen]]></category>
		<category><![CDATA[Stephen Johnson]]></category>

		<guid isPermaLink="false">http://www.fortheloveofgeeks.com/?p=1550</guid>
		<description><![CDATA[In this episode we talk about everything from image manipulation, generating charts &#038; graphs, classes and frameworks and even home invasions. The charting libraries I discuss are Fusion Charts and pChart, both are very good libraries and have great documentation on how to get started. The following is a code snippet that I wrote which [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.fortheloveofgeeks.com/wp-content/uploads/2009/07/geeksOnPHPsmall.png" alt="" title="Geeks On PHP" width="144" height="144" class="alignleft size-full wp-image-1189" /></p>
<p>In this episode we talk about everything from <a href="http://php.net/manual/en/book.image.php" target="_blank">image manipulation</a>, generating charts &#038; graphs, classes and frameworks and even home invasions.</p>
<p>The charting libraries I discuss are <a href="http://fusioncharts.com" target="_blank">Fusion Charts</a> and <a href="http://pchart.sourceforge.net" target="_blank">pChart</a>, both are very good libraries and have great documentation on how to get started.</p>
<p>The following is a code snippet that I wrote which takes in an associative array, parses it out for a data label ($a[0]) and a data value ($a[1]) and generates a Fusion compatible XML file.</p>
<pre>
function fnGenerateXML($scaption, $sxaxis, $syaxis, $adata)
{
  if(empty($adata))
    die("Empty data set passed to function.");

  $sdata = "<chart caption=\"$scaption\" xAxisName=\"$sxaxis\" yAxisName=\"$syaxis\"
    showValues=\"0\" decimalPrecision=\"0\" formatNumberScale=\"0\" showBorder=\"1\">\n";

  foreach($adata as $arow)
    $sdata .= " <set label=\"$arow[1]\" value=\"$arow[2]\" />\n";

  $sdata .= "</chart>";

  $sfile_xml = "./chart.xml";
  file_put_contents($sfile_xml, $sdata);
  return $sfile_xml;
}
</pre>
<p>The function is called in the following fashion:</p>
<pre>$sfile_xml = fnGenerateXML("Caption", "X Lbl", "Y Lbl", $a);</pre>
<p>The Fusion Chart is generated using the following method call:</p>
<pre>echo renderChartHTML("./Column3D.swf", "$sfile_xml", "",
      "ID", 650, 650, false);
</pre>
<p>Here is some sample code I wrote to generate a graph using pChart:</p>
<pre>
// Dataset definition
$pData = new pData;
$pData->AddPoint($a1, "s1");
$pData->AddPoint($a2, "s2");
$pData->AddPoint($alabels, "lbl");
$pData->AddSerie("s1");
$pData->AddSerie("s2"); 

$pData->SetSerieName("s1lbl", "s1");
$pData->SetSerieName("s2lbl", "s2");
$pData->SetYAxisName("Ylbl");

$pData->SetAbsciseLabelSerie("lbl");

// Init graph
$pGraph = new pChart(800, 340);
$pGraph->setFontProperties("./tahoma.ttf",8);
$pGraph->setGraphArea(50,30,680,200);
$pGraph->drawFilledRoundedRectangle(7,7,693,240,5,240,240,240);
$pGraph->drawRoundedRectangle(5,5,695,240,5,260,230,230);
$pGraph->drawGraphArea(255,255,255,TRUE);
$pGraph->drawScale($pData->GetData(),
   $pData->GetDataDescription(),SCALE_ADDALL,150,150,150,TRUE,0,2,TRUE);
$pGraph->drawGrid(4,TRUE,230,230,230,50);

// Draw the 0 line
$pGraph->drawTreshold(0,143,55,72,TRUE,TRUE);

// Draw the graph
$pGraph->drawStackedBarGraph($pData->GetData(),
   $pData->GetDataDescription(),TRUE);

// Finish
$pGraph->drawLegend(500,40,$pData->GetDataDescription(),255,255,255);
$pGraph->drawTitle(225,22,"Title",0,0,0);
$pGraph->Stroke();
</pre>
<p>As you can see pChart requires a bit more setup to get going but both are great libraries for getting the job done.  Another free option for charting/graphing that we didn&#8217;t discuss on the podcast is the <a href="http://code.google.com/apis/charttools/">Google Chart API</a>.</p>
<p>Check both <a href="http://twitter.com/darthweef" target="_blank">Stephen</a> and <a href="http://twitter.com/niczak" target="_blank">Myself</a> out on <a href="http://twitter.com/niczak" target="_blank">Twitter</a> and also <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=325498336" target="_blank">subscribe</a> to us on <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=325498336" target="_self">iTunes</a>!</p>
<p>Enjoy the show and as always, stay geeky!</p>
<p>- <a href="mailto:niczak@gmail.com">Nicholas</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.fortheloveofgeeks.com%2F2010%2F05%2F20%2Fgeeks-on-php-episode-11%2F&amp;title=Geeks%20On%20PHP%20Episode%2011" id="wpa2a_4"><img src="http://www.fortheloveofgeeks.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.fortheloveofgeeks.com/2010/05/20/geeks-on-php-episode-11/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://m.podshow.com/download_media/22614/episodes/232340/phpgeeks-232340-05-20-2010.mp3" length="30971537" type="audio/mpeg" />
		</item>
		<item>
		<title>Geeks On PHP Is Alive!</title>
		<link>http://www.fortheloveofgeeks.com/2010/04/21/geeks-on-php-is-alive/</link>
		<comments>http://www.fortheloveofgeeks.com/2010/04/21/geeks-on-php-is-alive/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 23:46:13 +0000</pubDate>
		<dc:creator>Nicholas Kreidberg</dc:creator>
				<category><![CDATA[Geeks On PHP]]></category>
		<category><![CDATA[darthweef]]></category>
		<category><![CDATA[kreidberg]]></category>
		<category><![CDATA[nicholas]]></category>
		<category><![CDATA[nicholas kreidberg]]></category>
		<category><![CDATA[nick]]></category>
		<category><![CDATA[niczak]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[stephen]]></category>
		<category><![CDATA[Stephen Johnson]]></category>

		<guid isPermaLink="false">http://www.fortheloveofgeeks.com/?p=1478</guid>
		<description><![CDATA[Hey all, I just want to give everybody an update on the Geeks On PHP podcast.  Stephen and I have arranged our schedules as such that we will be on a regular weekly recording schedule beginning NEXT WEEK.  This is very exciting news for us and for our listeners.  We apologize for the gaps between [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-1189" style="margin-left: 5px; margin-right: 5px;" title="Geeks On PHP" src="http://www.fortheloveofgeeks.com/wp-content/uploads/2009/07/geeksOnPHPsmall.png" alt="Geeks On PHP" width="177" height="177" />Hey all, I just want to give everybody an update on the Geeks On PHP podcast.  Stephen and I have arranged our schedules as such that we will be on a regular weekly recording schedule beginning NEXT WEEK.  This is very exciting news for us and for our listeners.  We apologize for the gaps between episodes in the past and the long gap between our last recording and the upcoming one.</p>
<p>Episode 9 will be focused on discussing different ways to utilize data from a database (agnostic discussion) with PHP.  We are set to record on Wednesday 4/28 and the show should be available on iTunes by the weekend.</p>
<p>We really want to thank all of our listeners for the feedback and support we received during our down time.  It means a lot to both of us and we look forward to getting back on track and bringing you the best PHP podcast the internet has to offer.</p>
<p>Sincerely,</p>
<p>- <a href="mailto:niczak@gmail.com">Nicholas Kreidberg</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.fortheloveofgeeks.com%2F2010%2F04%2F21%2Fgeeks-on-php-is-alive%2F&amp;title=Geeks%20On%20PHP%20Is%20Alive%21" id="wpa2a_6"><img src="http://www.fortheloveofgeeks.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.fortheloveofgeeks.com/2010/04/21/geeks-on-php-is-alive/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Geeks on PHP &#8212; Update</title>
		<link>http://www.fortheloveofgeeks.com/2010/02/21/geeks-on-php-update/</link>
		<comments>http://www.fortheloveofgeeks.com/2010/02/21/geeks-on-php-update/#comments</comments>
		<pubDate>Sun, 21 Feb 2010 17:31:02 +0000</pubDate>
		<dc:creator>Nicholas Kreidberg</dc:creator>
				<category><![CDATA[Geek Banter]]></category>
		<category><![CDATA[Geeks On PHP]]></category>
		<category><![CDATA[kreidberg]]></category>
		<category><![CDATA[nicholas]]></category>
		<category><![CDATA[nicholas kreidberg]]></category>
		<category><![CDATA[nick]]></category>
		<category><![CDATA[niczak]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[podcast]]></category>

		<guid isPermaLink="false">http://www.fortheloveofgeeks.com/?p=1415</guid>
		<description><![CDATA[Hey all, I know the release schedule for the Geeks on PHP podcast has been erratic and unpredictable lately. We are currently in the process of revamping the format of the show including me taking over as host and the possibility of adding someone else as co-host. Stephen&#8217;s responsibilities with the New Brew Thursday podcast [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.fortheloveofgeeks.com/wp-content/uploads/2009/07/geeksOnPHP.png" alt="geeksOnPHP" title="geeksOnPHP" class="alignleft size-full wp-image-1174" height="35%" width="35%" /></p>
<p>Hey all, I know the release schedule for the Geeks on PHP podcast has been erratic and unpredictable lately.  We are currently in the process of revamping the format of the show including me taking over as host and the possibility of adding someone else as co-host.  Stephen&#8217;s responsibilities with the New Brew Thursday podcast have increased exponentially which is the underlying reason behind the changes going on with Geeks on PHP.</p>
<p>I have a couple people in mind for co-hosts but would love to get feedback from our readers/listeners about what you would like to get out of the show. If any of you are interested in doing a guest spot please get in touch with me either by <a href="mailto:niczak@gmail.com">Email</a> or on <a href="http://twitter.com/niczak" target="_BLANK">Twitter</a>.</p>
<p>I will keep everybody updated as things progress but for now I just wanted to make people aware of what is going on and also that the show is not dead.</p>
<p>Thanks for listening and please don&#8217;t hesitate to comment, email or otherwise &#8212; your involvement is highly encouraged!</p>
<p>Sincerely,</p>
<p>- <a href="mailto:niczak@gmail.com">Nicholas Kreidberg</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.fortheloveofgeeks.com%2F2010%2F02%2F21%2Fgeeks-on-php-update%2F&amp;title=Geeks%20on%20PHP%20%26%238212%3B%20Update" id="wpa2a_8"><img src="http://www.fortheloveofgeeks.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.fortheloveofgeeks.com/2010/02/21/geeks-on-php-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Geeks on PHP : Episode 8 : MySQL vs. PostgreSQL</title>
		<link>http://www.fortheloveofgeeks.com/2009/12/28/geeks-on-php-episode-8-mysql-vs-postgresql/</link>
		<comments>http://www.fortheloveofgeeks.com/2009/12/28/geeks-on-php-episode-8-mysql-vs-postgresql/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 16:29:15 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Geeks On PHP]]></category>
		<category><![CDATA[geeks]]></category>
		<category><![CDATA[kreidberg]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[nicholas kreidberg]]></category>
		<category><![CDATA[niczak]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Stephen Johnson]]></category>

		<guid isPermaLink="false">http://www.fortheloveofgeeks.com/?p=1353</guid>
		<description><![CDATA[This week we dive into the debate that has raged since the first database went online, MySQL or PostgreSQL .. Stephen is a MySQL guy, while Nick is a PostgreSQL guy, and together they share the pros and cons of both, and why the debate that has raged is not likely valid anymore. Also, subscribe [...]]]></description>
			<content:encoded><![CDATA[<p>This week we dive into the debate that has raged since the first database went online, MySQL or PostgreSQL .. </p>
<p><img src="http://www.fortheloveofgeeks.com/wp-content/uploads/2009/07/geeksOnPHPsmall.png" alt="" width="144" height="144" /></p>
<p>Stephen is a MySQL guy, while Nick is a PostgreSQL guy, and together they share the pros and cons of both, and why the debate that has raged is not likely valid anymore.</p>
<p>Also, subscribe to us on iTunes and leave us your comments: [ <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=325498336">Launch iTunes</a> ]</p>
<p><span style="font-family: verdana,geneva;">Follow us on Twitter :<br />
Stephen : <a href="http://www.twitter.com/darthweef" target="_blank">http://www.twitter.com/darthweef</a><br />
Nick : <a href="http://www.twitter.com/niczak" target="_blank">http://www.twitter.com/niczak</a></span</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.fortheloveofgeeks.com%2F2009%2F12%2F28%2Fgeeks-on-php-episode-8-mysql-vs-postgresql%2F&amp;title=Geeks%20on%20PHP%20%3A%20Episode%208%20%3A%20MySQL%20vs.%20PostgreSQL" id="wpa2a_10"><img src="http://www.fortheloveofgeeks.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.fortheloveofgeeks.com/2009/12/28/geeks-on-php-episode-8-mysql-vs-postgresql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://m.podshow.com/media/22614/episodes/205469/phpgeeks-205469-12-28-2009.mp3" length="27813653" type="audio/mpeg" />
		</item>
		<item>
		<title>Geeks On PHP : Episode 7 &#8211; Looping through while, for and foreach</title>
		<link>http://www.fortheloveofgeeks.com/2009/11/09/geeks-on-php-episode-7-looping-through-while-for-and-foreach/</link>
		<comments>http://www.fortheloveofgeeks.com/2009/11/09/geeks-on-php-episode-7-looping-through-while-for-and-foreach/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 06:20:52 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Geeks On PHP]]></category>
		<category><![CDATA[Control Structures]]></category>
		<category><![CDATA[darthweef]]></category>
		<category><![CDATA[For]]></category>
		<category><![CDATA[ForEach]]></category>
		<category><![CDATA[geeks]]></category>
		<category><![CDATA[kreidberg]]></category>
		<category><![CDATA[loops]]></category>
		<category><![CDATA[nicholas kreidberg]]></category>
		<category><![CDATA[niczak]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Stephen Johnson]]></category>
		<category><![CDATA[while]]></category>

		<guid isPermaLink="false">http://www.fortheloveofgeeks.com/?p=1296</guid>
		<description><![CDATA[At the heart of every redundant thing you do, is a loop. Even the greeks knew it.  When Sisyphus pissed off the gods, they stuck him in a while loop while($gods == &#8220;pissed&#8221;) { $sisyphus = &#8220;Roll rock up a hill&#8221;; } Granted the greek gods were a bit tempermental, but like the greeks, your [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: verdana,geneva;">At the heart of every redundant thing you do, is a loop.<br />
</span></p>
<p><span style="font-family: verdana,geneva;">Even the greeks knew it.  When Sisyphus pissed off the gods, they stuck him in a while loop</span></p>
<p><span style="font-family: verdana,geneva;">while($gods == &#8220;pissed&#8221;) { </span></p>
<p><span style="font-family: verdana,geneva;"> $sisyphus = &#8220;Roll rock up a hill&#8221;;</span></p>
<p>}</p>
<p><span style="font-family: verdana,geneva;"><br />
Granted the greek gods were a bit tempermental, but like the greeks, your application will execute these types of statements to output data, count, and do all sorts of things that are even, at times, incredibly futile and redundant.  Also like gods, while loops can be tempermental, and when hastily constructed can leave Sisyphus pushing his rock for all of eternity.<br />
</span></p>
<p><img src="http://www.fortheloveofgeeks.com/wp-content/uploads/2009/07/geeksOnPHPsmall.png" alt="" width="144" height="144" /></p>
<p><span style="font-family: verdana,geneva;">Wondering who Sisyphus is ? <a href="http://en.wikipedia.org/wiki/Sisyphus" target="_blank">http://en.wikipedia.org/wiki/Sisyphus</a></span></p>
<p><span style="font-family: verdana,geneva;">PHP Manual on Control Structures: <a href="http://us2.php.net/manual/en/language.control-structures.php" target="_blank">http://us2.php.net/manual/en/language.control-structures.php</a></span></p>
<p>Also, subscribe to us on iTunes and leave us your comments: [ <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=325498336">Launch iTunes</a> ]</p>
<p><span style="font-family: verdana,geneva;">Follow us on Twitter :<br />
Stephen : <a href="http://www.twitter.com/darthweef" target="_blank">http://www.twitter.com/darthweef</a><br />
Nick : <a href="http://www.twitter.com/niczak" target="_blank">http://www.twitter.com/niczak</a></span</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.fortheloveofgeeks.com%2F2009%2F11%2F09%2Fgeeks-on-php-episode-7-looping-through-while-for-and-foreach%2F&amp;title=Geeks%20On%20PHP%20%3A%20Episode%207%20%26%238211%3B%20Looping%20through%20while%2C%20for%20and%20foreach" id="wpa2a_12"><img src="http://www.fortheloveofgeeks.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.fortheloveofgeeks.com/2009/11/09/geeks-on-php-episode-7-looping-through-while-for-and-foreach/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://m.podshow.com/media/22614/episodes/196485/phpgeeks-196485-11-09-2009.mp3" length="15061301" type="audio/mpeg" />
		</item>
		<item>
		<title>Geeks On PHP : Episode 6 : Conditional Constructors and Operators</title>
		<link>http://www.fortheloveofgeeks.com/2009/09/30/geeks-on-php-episode-6-conditional-constructors-and-operators/</link>
		<comments>http://www.fortheloveofgeeks.com/2009/09/30/geeks-on-php-episode-6-conditional-constructors-and-operators/#comments</comments>
		<pubDate>Wed, 30 Sep 2009 21:08:36 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Geeks On PHP]]></category>
		<category><![CDATA[Conditional Constructors]]></category>
		<category><![CDATA[Conditional Operators]]></category>
		<category><![CDATA[If Then Else]]></category>
		<category><![CDATA[If/Then]]></category>
		<category><![CDATA[kreidberg]]></category>
		<category><![CDATA[nicholas kreidberg]]></category>
		<category><![CDATA[niczak]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Stephen Johnson]]></category>
		<category><![CDATA[Switch]]></category>
		<category><![CDATA[Switch Case]]></category>

		<guid isPermaLink="false">http://www.fortheloveofgeeks.com/?p=1256</guid>
		<description><![CDATA[At the heart of everything you do, all day long every day, is an if/then conditional. When you decide to leave the house, this is what your brain does : If ( $raining == &#8220;Yes&#8221; ) { $take_an_umbrella = &#8220;Yes&#8221;; } else { $take_an_umbrella = &#8220;No&#8221;; } Granted the brain is far more complicated, but [...]]]></description>
			<content:encoded><![CDATA[<p>At the heart of everything you do, all day long every day, is an if/then conditional.</p>
<p>When you decide to leave the house, this is what your brain does :</p>
<p>If ( $raining == &#8220;Yes&#8221; ) {<br />
$take_an_umbrella = &#8220;Yes&#8221;;<br />
} else {<br />
$take_an_umbrella = &#8220;No&#8221;;<br />
}</p>
<p>Granted the brain is far more complicated, but like the brain, your application will execute these types of statements to process inputs, decide on which functions to execute, and overall allow more then one scenario to occur with your application.  Also like your brain, you if/then statements and other conditions will also get more and more complicated, but today we deal with the basics.</p>
<p><img class="aligncenter size-full wp-image-1174" title="geeksOnPHP" src="http://www.fortheloveofgeeks.com/wp-content/uploads/2009/07/geeksOnPHP.png" alt="geeksOnPHP" width="297" height="297" /><br />
If/else VS Switch:</p>
<p>The switch statement is similar to a series of IF statements on the same expression. In many occasions, you may want to compare the same variable (or expression) with many different values, and execute a different piece of code depending on which value it equals to. This is exactly what the switch statement is for.</p>
<p>if($test == &#8220;foo&#8221;)<br />
// do stuff<br />
else if($test == &#8220;bar&#8221;)<br />
// do other stuff<br />
else if($test == &#8220;foo bar&#8221;)<br />
// do other other stuff<br />
else<br />
// do something totally different</p>
<p>switch($test)<br />
{<br />
case &#8220;foo&#8221;:<br />
// do stuff<br />
break;<br />
case &#8220;bar&#8221;:<br />
// do other stuff<br />
break;<br />
case &#8220;foo bar&#8221;:<br />
// do other other stuff<br />
break;<br />
default:<br />
// do something totally different<br />
break;<br />
}</p>
<p><a href="http://us.php.net/manual/en/language.operators.php" target="_blank">Visit the PHP Manual on operators.</a></p>
<p>Be sure to subscribe via iTunes and leave us your feedback there as well, we&#8217;d love to hear from you! <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=325498336">Click here to subscribe!</a></p>
<p>Enjoy :</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.fortheloveofgeeks.com%2F2009%2F09%2F30%2Fgeeks-on-php-episode-6-conditional-constructors-and-operators%2F&amp;title=Geeks%20On%20PHP%20%3A%20Episode%206%20%3A%20Conditional%20Constructors%20and%20Operators" id="wpa2a_14"><img src="http://www.fortheloveofgeeks.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.fortheloveofgeeks.com/2009/09/30/geeks-on-php-episode-6-conditional-constructors-and-operators/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://m.podshow.com/media/22614/episodes/187320/phpgeeks-187320-09-30-2009.mp3" length="38528698" type="audio/mpeg" />
		</item>
		<item>
		<title>Geeks on PHP : Episode 5 : Frameworks / Tools</title>
		<link>http://www.fortheloveofgeeks.com/2009/09/14/geeks-on-php-episode-5/</link>
		<comments>http://www.fortheloveofgeeks.com/2009/09/14/geeks-on-php-episode-5/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 19:19:00 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Geeks On PHP]]></category>
		<category><![CDATA[darthweef]]></category>
		<category><![CDATA[kreidberg]]></category>
		<category><![CDATA[nicholas kreidberg]]></category>
		<category><![CDATA[niczak]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[Stephen Johnson]]></category>

		<guid isPermaLink="false">http://www.fortheloveofgeeks.com/?p=1240</guid>
		<description><![CDATA[This week we dive into Frameworks, and suggest some good coding tools such as TextWrangler, and BBEdit. We also talk a little about SVN repositories and why you should use them. We want to hear from you &#8230; so contact us : Twitter: Nicholas Kreidberg : http://www.twitter.com/niczak Stephen Johnson : http://www.twitter.com/darthweef Rate and Review us [...]]]></description>
			<content:encoded><![CDATA[<p>This week we dive into Frameworks, and suggest some good coding tools such as TextWrangler, and BBEdit.  We also talk a little about SVN repositories and why you should use them.</p>
<p>We want to hear from you  &#8230; so contact us :</p>
<p>Twitter:</p>
<p>Nicholas Kreidberg : <a href="http://www.twitter.com/niczak">http://www.twitter.com/niczak</a><br />
Stephen Johnson  : <a href="http://www.twitter.com/darthweef">http://www.twitter.com/darthweef</a></p>
<p>Rate and Review us on <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=325498336">iTunes</a>!</p>
<p><img class="size-full wp-image-1189 alignleft" title="geeksOnPHPsmall" src="http://www.fortheloveofgeeks.com/wp-content/uploads/2009/07/geeksOnPHPsmall.png" alt="geeksOnPHPsmall" width="193" height="193" /></p>
<p>Here are the notes, which are basically just links to download the stuff we talked about.</p>
<p>Links to popular Mac Editors:<br />
TextMate: <a href="http://macromates.com/">http://macromates.com/</a><br />
TextWrangler: <a href="http://www.barebones.com/products/TextWrangler/">http://www.barebones.com/products/TextWrangler/</a><br />
Coda: <a href="http://www.panic.com/coda/">http://www.panic.com/coda/</a></p>
<p>Links to popular Win Editors:<br />
NotePad+: <a href="http://notepad-plus.sourceforge.net/uk/site.htm">http://notepad-plus.sourceforge.net/uk/site.htm</a><br />
PsPad: <a href="http://www.pspad.com/">http://www.pspad.com/</a><br />
ConText: <a href="http://www.contexteditor.org/">http://www.contexteditor.org/</a></p>
<p>Links to popular *nix Editors:<br />
Eclipse: <a href="http://www.eclipse.org/">http://www.eclipse.org/</a><br />
Vim: <a href="http://www.vim.org/">http://www.vim.org/</a><br />
gEdit: <a href="http://projects.gnome.org/gedit/">http://projects.gnome.org/gedit/</a></p>
<p>Subversion complete reference guide:<br />
<a href="http://svnbook.red-bean.com/">http://svnbook.red-bean.com/</a> (Entire book online)</p>
<p>Frameworks:<br />
CakePHP: <a href="http://cakephp.org/">http://cakephp.org/</a><br />
CodeIgniter: <a href="http://codeigniter.com/">http://codeigniter.com/</a><br />
Zend: <a href="http://codeigniter.com/">http://framework.zend.com/</a></p>
<p>Thanks for listening, and Stay Geeky.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.fortheloveofgeeks.com%2F2009%2F09%2F14%2Fgeeks-on-php-episode-5%2F&amp;title=Geeks%20on%20PHP%20%3A%20Episode%205%20%3A%20Frameworks%20%2F%20Tools" id="wpa2a_16"><img src="http://www.fortheloveofgeeks.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.fortheloveofgeeks.com/2009/09/14/geeks-on-php-episode-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://m.podshow.com/media/22614/episodes/179660/phpgeeks-179660-09-14-2009.mp3" length="12842983" type="audio/mpeg" />
		</item>
		<item>
		<title>Geeks on PHP &#8211; Episode 4 &#8211; Beginners Best Practices</title>
		<link>http://www.fortheloveofgeeks.com/2009/08/25/geeks-on-php-episode-4-beginners-best-practises/</link>
		<comments>http://www.fortheloveofgeeks.com/2009/08/25/geeks-on-php-episode-4-beginners-best-practises/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 04:15:08 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Geeks On PHP]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Education]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[kreidberg]]></category>
		<category><![CDATA[nicholas kreidberg]]></category>
		<category><![CDATA[niczak]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Stephen Johnson]]></category>

		<guid isPermaLink="false">http://www.fortheloveofgeeks.com/?p=1226</guid>
		<description><![CDATA[This week we delve into best practices for beginners , should you psuedo code, how much time to spend on design, etc &#8230; We talk alot from this great list of 30 Best Practices for Beginning PHP Developers: http://net.tutsplus.com/tutorials/php/30-php-best-practices-for-beginners/ Definitely check that out, as well as Paper Prototyping by Carolyn Snyder &#8211; http://www.paperprototyping.com/ Subscribe to [...]]]></description>
			<content:encoded><![CDATA[<p>This week we delve into best practices for beginners , should you psuedo code, how much time to spend on design, etc  &#8230;</p>
<p><img class="size-full wp-image-1189 alignleft" title="geeksOnPHPsmall" src="http://www.fortheloveofgeeks.com/wp-content/uploads/2009/07/geeksOnPHPsmall.png" alt="geeksOnPHPsmall" width="165" height="165" /></p>
<p>We talk alot from this great list of 30 Best Practices for Beginning PHP Developers:<a href="http://net.tutsplus.com/tutorials/php/30-php-best-practices-for-beginners/" target="_blank"></p>
<p>http://net.tutsplus.com/tutorials/php/30-php-best-practices-for-beginners/</a></p>
<p>Definitely check that out, as well as Paper Prototyping by Carolyn Snyder &#8211; <a href="http://www.paperprototyping.com/" target="_blank">http://www.paperprototyping.com/</a></p>
<p>Subscribe to us on iTunes &amp; let us know how we are doing by rating and leaving a comment. :<br />
<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=325498336" target="_blank">http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=325498336</a></p>
<p>You can also follow us both on Twitter :</p>
<p>Stephen : <a href="http://www.twitter.com/darthweef" target="_blank">http://www.twitter.com/darthweef</a><br />
Nicholas : <a href="http://www.twitter.com/niczak" target="_blank">http://www.twitter.com/niczak</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.fortheloveofgeeks.com%2F2009%2F08%2F25%2Fgeeks-on-php-episode-4-beginners-best-practises%2F&amp;title=Geeks%20on%20PHP%20%26%238211%3B%20Episode%204%20%26%238211%3B%20Beginners%20Best%20Practices" id="wpa2a_18"><img src="http://www.fortheloveofgeeks.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.fortheloveofgeeks.com/2009/08/25/geeks-on-php-episode-4-beginners-best-practises/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://m.podshow.com/media/22614/episodes/175336/phpgeeks-175336-08-25-2009.mp3" length="11182640" type="audio/mpeg" />
		</item>
		<item>
		<title>Geeks On PHP &#8211; Episode 2 &#8211; The Versus Episode</title>
		<link>http://www.fortheloveofgeeks.com/2009/07/30/geeks-on-php-episode-2-the-versus-episode/</link>
		<comments>http://www.fortheloveofgeeks.com/2009/07/30/geeks-on-php-episode-2-the-versus-episode/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 20:41:18 +0000</pubDate>
		<dc:creator>Stephen</dc:creator>
				<category><![CDATA[Geeks On PHP]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[darthweef]]></category>
		<category><![CDATA[kreidberg]]></category>
		<category><![CDATA[nicholas kreidberg]]></category>
		<category><![CDATA[niczak]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[Stephen Johnson]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.fortheloveofgeeks.com/?p=1187</guid>
		<description><![CDATA[On this weeks episode Stephen and Nicholas talk a little Comic Con, and do a versus run on PHP topics. Also, Stephen&#8217;s dogs insist on joining the show, but they don&#8217;t add anything of value to the topics. For our comic con discussion, if you want to see Stephen&#8217;s Flickr stream of photos go here [...]]]></description>
			<content:encoded><![CDATA[<p>On this weeks episode Stephen and Nicholas talk a little Comic Con, and do a versus run on PHP topics.</p>
<p>Also, Stephen&#8217;s dogs insist on joining the show, but they don&#8217;t add anything of value to the topics.</p>
<p>For our comic con discussion, if you want to see Stephen&#8217;s Flickr stream of photos go here : [ <a href="http://www.flickr.com/photos/darthweef/sets/72157621843161208/ " target="_blank">ComiCon Flickr</a> ]</p>
<p>We start the PHP portion of our show with Static Vs. Dynamic and then Server Dynamic vs. Client Dynamic, with some caveats on Client Side scripting.</p>
<p>We also toss a little discussion of Form Validation and Form Sanitation, and Nick gives us some code to use for quick and easy Sanitation of form data.  You can get that here : [ <a href="http://www.fortheloveofgeeks.com/downloads/episode_two_code.txt " target="_blank">Code Snippet</a> ]</p>
<p>We also hit on the overall capabilities and advantages of PHP and do a quick and dirty rundown of PHP vs. ASP.</p>
<p>If you want to set up your own LAMP (Linux, Apache, MySQL, PHP) server check out this great walk-through : [ <a href="http://www.howtoforge.com/ubuntu_debian_lamp_server" target="_blank">How-To</a> ]</p>
<p>Enjoy the show, and tell us how we&#8217;re doing  in the comments.</p>
<p>Also, visit us on iTunes and subscribe here : [ <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=325498336" target="_blank">Launch iTunes</a> ]</p>
<p>Enjoy the show!</p>
<p><img class="aligncenter size-full wp-image-1189" title="geeksOnPHPsmall" src="http://www.fortheloveofgeeks.com/wp-content/uploads/2009/07/geeksOnPHPsmall.png" alt="geeksOnPHPsmall" width="144" height="144" /></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.fortheloveofgeeks.com%2F2009%2F07%2F30%2Fgeeks-on-php-episode-2-the-versus-episode%2F&amp;title=Geeks%20On%20PHP%20%26%238211%3B%20Episode%202%20%26%238211%3B%20The%20Versus%20Episode" id="wpa2a_20"><img src="http://www.fortheloveofgeeks.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.fortheloveofgeeks.com/2009/07/30/geeks-on-php-episode-2-the-versus-episode/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
<enclosure url="http://69.16.133.83/f4h2x5q4/cds/media/22614/episodes/167945/phpgeeks-167945-07-30-2009_pshow_312683.mp3" length="10098245" type="audio/mpeg" />
		</item>
	</channel>
</rss>

