<?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>Phillip Harrington dot com</title>
	<atom:link href="http://www.phillipharrington.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phillipharrington.com</link>
	<description>The personal home page of Phillip Harrington</description>
	<lastBuildDate>Sat, 03 Jul 2010 20:44:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Praying to the Internet</title>
		<link>http://www.phillipharrington.com/praying-to-the-internet/</link>
		<comments>http://www.phillipharrington.com/praying-to-the-internet/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 20:42:55 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.phillipharrington.com/?p=693</guid>
		<description><![CDATA[The Internet accepts all queries, responds to all requests, but sometimes the answer is 404.]]></description>
			<content:encoded><![CDATA[<p>The Internet accepts all queries,<br />
responds to all requests,<br />
but sometimes the answer is 404.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phillipharrington.com/praying-to-the-internet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It&#8217;s 2010. Screw the Flying Car, Where&#8217;s My Ad Server?</title>
		<link>http://www.phillipharrington.com/its-2010-screw-the-flying-car-wheres-my-ad-server/</link>
		<comments>http://www.phillipharrington.com/its-2010-screw-the-flying-car-wheres-my-ad-server/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 13:36:03 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.phillipharrington.com/?p=689</guid>
		<description><![CDATA[Get it together enough to not show the same ad to the same person more than twice per session. We're web nerds; we can do better. <a href="http://www.phillipharrington.com/its-2010-screw-the-flying-car-wheres-my-ad-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When I watch shows like <a href="http://www.southparkstudio.com/">South Park</a> online, they serve short video ads. Invariably, at least 3 of the 4 ads are the same ad, if not all 4 of them. However, <em>without fail</em>, all 4 ads are completely irrelevant to me.</p>

<p>Privacy is a <em>huge concern</em> for everyone (including people who use unsecured computers over Wifi), but I&#8217;m frustrated enough to trade some privacy to not have my time wasted. Show me something I&#8217;m remotely interested in. What a concept!</p>

<p>We have the technology. Can we get it together enough to not show the same ad to the same person more than twice per session? We&#8217;re web nerds; can&#8217;t we do better?</p>

<p>Oh, and when I&#8217;m watching the &#8220;clips&#8221;, don&#8217;t serve me a 30 second ad in front of a minute and 30 second clip. It&#8217;s ridiculous. Makes you look desperate for cash.</p>

<p><a href="http://www.hulu.com/">Hulu</a> makes an effort with a tiny link asking &#8216;is this ad relevant?&#8217; Plus they have Anime that features nude cartoon babes; that makes it worthwhile to sit through the ads. <img src='http://www.phillipharrington.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.phillipharrington.com/its-2010-screw-the-flying-car-wheres-my-ad-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating an Empty Object in PHP</title>
		<link>http://www.phillipharrington.com/creating-an-empty-object-in-php/</link>
		<comments>http://www.phillipharrington.com/creating-an-empty-object-in-php/#comments</comments>
		<pubDate>Sun, 27 Jun 2010 19:12:19 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[web-nerdism php]]></category>

		<guid isPermaLink="false">http://www.phillipharrington.com/?p=531</guid>
		<description><![CDATA[Sometimes you want an empty Object. Here&#8217;s how I go about it: $Object = &#40;object&#41; null; I cast the value &#8216;null&#8217; as an object. You can do this with other kinds of variables too: $array = array&#40;'dog' =&#62; 1, 'cat' &#8230; <a href="http://www.phillipharrington.com/creating-an-empty-object-in-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sometimes you want an empty Object. Here&#8217;s how I go about it:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$Object</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>object<span style="color: #009900;">&#41;</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span></pre></div></div>


<p>I cast the value &#8216;null&#8217; as an object. You can do this with other kinds of variables too:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$array</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dog'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'cat'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$Object</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>object<span style="color: #009900;">&#41;</span> <span style="color: #000088;">$array</span><span style="color: #339933;">;</span></pre></div></div>


<p>$Object now has two properties:  dog and cat. Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phillipharrington.com/creating-an-empty-object-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Velociraptor vs. Sam Neil</title>
		<link>http://www.phillipharrington.com/velociraptor-vs-sam-neil/</link>
		<comments>http://www.phillipharrington.com/velociraptor-vs-sam-neil/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 19:43:15 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.phillipharrington.com/?p=533</guid>
		<description><![CDATA[I never believed that Sam Neil could outrun a Velociraptor. Not for a minute.]]></description>
			<content:encoded><![CDATA[<p>I never believed that Sam Neil could outrun a Velociraptor. Not for a minute.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phillipharrington.com/velociraptor-vs-sam-neil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing Values by Referrence in a Foreach Loop</title>
		<link>http://www.phillipharrington.com/accessing-values-by-referrence-in-a-foreach-loop/</link>
		<comments>http://www.phillipharrington.com/accessing-values-by-referrence-in-a-foreach-loop/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 07:15:51 +0000</pubDate>
		<dc:creator>phil</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.phillipharrington.com/?p=221</guid>
		<description><![CDATA[Here&#8217;s a fun little trick. When looping over an array, you can access the values by reference. Instead of: foreach &#40;$things as $i =&#62; $thing&#41; &#123; $things&#91;$i&#93; = strtolower&#40;$thing&#41;; &#125; You can reference the values of the array: foreach &#40;$things &#8230; <a href="http://www.phillipharrington.com/accessing-values-by-referrence-in-a-foreach-loop/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a fun little trick. When looping over an array, you can access the values by reference. Instead of:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$things</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$thing</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$things</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$thing</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>


<p>You can reference the values of the array:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$things</span> <span style="color: #b1b100;">as</span> <span style="color: #339933;">&amp;</span><span style="color: #000088;">$thing</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$thing</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$thing</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>


<p>It&#8217;s a small difference, but it comes in handy once in a while, especially when you&#8217;re doing more significant processing with each item.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phillipharrington.com/accessing-values-by-referrence-in-a-foreach-loop/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
