<?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>est.3.22</title>
	<atom:link href="http://www.est322.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.est322.com</link>
	<description></description>
	<lastBuildDate>Tue, 09 Mar 2010 14:01:52 +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>Up 95 from NY</title>
		<link>http://www.est322.com/2010/03/up-95-from-ny/</link>
		<comments>http://www.est322.com/2010/03/up-95-from-ny/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 01:51:30 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.est322.com/?p=586</guid>
		<description><![CDATA[Not a good idea to drive over an hour after flying for 12 hours. Especially not up 95 from Laguardia.
]]></description>
			<content:encoded><![CDATA[<p>Not a good idea to drive over an hour after flying for 12 hours. Especially not up 95 from Laguardia.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.est322.com/2010/03/up-95-from-ny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ne-Yo</title>
		<link>http://www.est322.com/2010/03/ne-yo/</link>
		<comments>http://www.est322.com/2010/03/ne-yo/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 01:48:15 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.est322.com/?p=583</guid>
		<description><![CDATA[While in Oslo, I was able to go to a concert. This was my first major concert and it happened to be Ne-Yo&#8217;s last stop of his Year of the Gentleman tour.
Great entertainer! I also learned that Stargate, that produced a lot of his songs were originally from Norway.
Thanks Ne-Yo!
]]></description>
			<content:encoded><![CDATA[<p>While in Oslo, I was able to go to a concert. This was my first major concert and it happened to be Ne-Yo&#8217;s last stop of his Year of the Gentleman tour.</p>
<p>Great entertainer! I also learned that <a title="Wikipedia:L Stargate" href="http://en.wikipedia.org/wiki/Stargate_(production_team)">Stargate</a>, that produced a lot of his songs were originally from Norway.</p>
<p>Thanks Ne-Yo!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.est322.com/2010/03/ne-yo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Oslo Fashion Awards</title>
		<link>http://www.est322.com/2010/02/oslo-fashion-awards/</link>
		<comments>http://www.est322.com/2010/02/oslo-fashion-awards/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 21:41:39 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.est322.com/?p=581</guid>
		<description><![CDATA[One of the last places I expected to be was at a fashion show&#8230; but ended up at the Oslo Fashion Awards.
Theme was Love &#038; Marriage because it fell on Valentine&#8217;s Day.
Interesting people there&#8230;
]]></description>
			<content:encoded><![CDATA[<p>One of the last places I expected to be was at a fashion show&#8230; but ended up at the Oslo Fashion Awards.</p>
<p>Theme was Love &#038; Marriage because it fell on Valentine&#8217;s Day.</p>
<p>Interesting people there&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.est322.com/2010/02/oslo-fashion-awards/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Wordpress (Multi-Day) Events List</title>
		<link>http://www.est322.com/2010/02/wordpress-multiday-events-list/</link>
		<comments>http://www.est322.com/2010/02/wordpress-multiday-events-list/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 05:13:02 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.est322.com/?p=558</guid>
		<description><![CDATA[I have been doing a lot of searching on how to get an events list. Simple concept right and there should be a plugin right? Well, there are plenty of plug-ins. But due to the age of the tech on the host server, I was having a lot of trouble because the client&#8217;s host is [...]]]></description>
			<content:encoded><![CDATA[<p>I have been doing a lot of searching on how to get an events list. Simple concept right and there should be a plugin right? Well, there are plenty of plug-ins. But due to the age of the tech on the host server, I was having a lot of trouble because the client&#8217;s host is still on PHP 4.# and mySQL 4.#&#8230; hey, it&#8217;s old!</p>
<p><strong>Requirements:</strong></p>
<ul>
<li>Event can span more than one day.</li>
<li>Sort (3) events by those soonest to today&#8217;s date.</li>
<li>If there are more than 3 events, show a link to View All Events</li>
<li>Show mulit-day events &#8211; sort the list if the end date is before today&#8217;s date.</li>
<li>Sort multi-day events by those soonest to today&#8217;s date, but if the start date has already past, still sort by that date or begin date.</li>
<li>If the start and end year is the same, only display the year in the end date.</li>
<li>If the start and end month is the same, only display month in the end date.</li>
<li>List goes in sidebar.php</li>
</ul>
<p><span id="more-558"></span><br />
<strong>Simple Solution (still took a lot of hours to resolve):</strong></p>
<ul>
<li>Create a category with slug &#8220;events&#8221; (used for archive) and (maybe or) change the &#8220;WHERE $wpdb-&gt;term_taxonomy.term_id = 9&#8243; numeric value to your category(cateogries &#8211; yes even multiple).</li>
<li>Create a post and add it to the events category.</li>
<li>Create a custom field labeled &#8220;start_date&#8221; with a format of YYYY/MM/DD.</li>
<li>Create a custom field labeled &#8220;end_date&#8221; with a format of YYYY/MM/DD.</li>
<li>Both fields required even if only a single day event.</li>
<li>Use a double meta_key post query.</li>
<li>LIMIT 4 in the mySQL query limits the results to 4 (change to your number or remove) &#8211; view the Wordpress query values in the codex.</li>
</ul>
<p><strong>Code:</strong></p>
<pre>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;"><span class="sy0">&lt;!--</span>p
&nbsp; <span class="re0">$today</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;Y/m/d&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; <span class="re0">$querystr</span> <span class="sy0">=</span> <span class="st0">&quot;
&nbsp; SELECT * FROM <span class="es4">$wpdb-&gt;posts</span>
&nbsp; LEFT JOIN <span class="es4">$wpdb-&gt;postmeta</span> AS endDate ON(
&nbsp; <span class="es4">$wpdb-&gt;posts</span>.ID = endDate.post_id
&nbsp; AND endDate.meta_key = 'end_date'
&nbsp; )
&nbsp; LEFT JOIN <span class="es4">$wpdb-&gt;postmeta</span> AS startDate ON(
&nbsp; <span class="es4">$wpdb-&gt;posts</span>.ID = startDate.post_id
&nbsp; AND startDate.meta_key = 'start_date'
&nbsp; )
&nbsp; LEFT JOIN <span class="es4">$wpdb-&gt;term_relationships</span> ON(<span class="es4">$wpdb-&gt;posts</span>.ID = <span class="es4">$wpdb-&gt;term_relationships</span>.object_id)
&nbsp; LEFT JOIN <span class="es4">$wpdb-&gt;term_taxonomy</span> ON(<span class="es4">$wpdb-&gt;term_relationships</span>.term_taxonomy_id = <span class="es4">$wpdb-&gt;term_taxonomy</span>.term_taxonomy_id)
&nbsp; WHERE <span class="es4">$wpdb-&gt;term_taxonomy</span>.term_id = 9
&nbsp; AND <span class="es4">$wpdb-&gt;term_taxonomy</span>.taxonomy = 'category'
&nbsp; AND <span class="es4">$wpdb-&gt;posts</span>.post_status = 'publish'
&nbsp; AND endDate.meta_value &gt;= <span class="es4">$today</span>
&nbsp; ORDER BY startDate.meta_value, startDate.meta_value ASC
&nbsp; LIMIT 4
&nbsp; &quot;</span><span class="sy0">;</span>

&nbsp; <span class="re0">$eventPosts</span> <span class="sy0">=</span> <span class="re0">$wpd</span><span class="sy0">--&gt;</span><span class="me1">get_results</span><span class="br0">&#40;</span><span class="re0">$querystr</span><span class="sy0">,</span> OBJECT<span class="br0">&#41;</span><span class="sy0">;</span>

?<span class="sy0">&amp;</span>gt<span class="sy0">;</span>

<span class="sy0">&lt;!--</span>p <span class="re0">$eventCount</span><span class="sy0">=</span><span class="nu0">0</span><span class="sy0">;</span> <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$eventPosts</span><span class="br0">&#41;</span> <span class="sy0">:--&gt;</span>
<span class="sy0">&lt;!--</span>p <span class="kw1">foreach</span> <span class="br0">&#40;</span><span class="re0">$eventPosts</span> <span class="kw1">as</span> <span class="re0">$post</span><span class="br0">&#41;</span><span class="sy0">:--&gt;</span>
<span class="sy0">&lt;!--</span>p setup_postdata<span class="br0">&#40;</span><span class="re0">$post</span><span class="br0">&#41;</span><span class="sy0">;--&gt;</span>

<span class="sy0">&lt;!--</span>p <span class="kw1">if</span> <span class="br0">&#40;</span><span class="re0">$eventCount</span><span class="sy0">&lt;</span>3<span class="br0">&#41;</span> <span class="sy0">:--&gt;</span>
&nbsp; <span class="sy0">&lt;!--</span>p
&nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>get_post_meta<span class="br0">&#40;</span><span class="re0">$pos</span><span class="sy0">--&gt;</span><span class="me1">ID</span><span class="sy0">,</span> <span class="st_h">'end_date'</span><span class="sy0">,</span> <span class="kw4">true</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
&nbsp; &nbsp; <span class="re0">$event_end_date</span> <span class="sy0">=</span> get_post_meta<span class="br0">&#40;</span><span class="re0">$post</span><span class="sy0">-&amp;</span>gt<span class="sy0">;</span>ID<span class="sy0">,</span> <span class="st_h">'end_date'</span><span class="sy0">,</span> <span class="kw4">true</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; &nbsp; <span class="re0">$endDate</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;j F Y&quot;</span><span class="sy0">,</span> <a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="re0">$event_end_date</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; &nbsp; <span class="re0">$displayEndDate</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;j F&quot;</span><span class="sy0">,</span> <a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="re0">$event_end_date</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; &nbsp; <span class="re0">$endYear</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;Y&quot;</span><span class="sy0">,</span> <a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="re0">$event_end_date</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; &nbsp; <span class="re0">$endMonth</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;F&quot;</span><span class="sy0">,</span> <a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="re0">$event_end_date</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span>
&nbsp; &nbsp; <span class="re0">$endDate</span> <span class="sy0">=</span> <span class="re0">$startDate</span><span class="sy0">;</span>
&nbsp; <span class="br0">&#125;</span>

&nbsp; <span class="kw1">if</span><span class="br0">&#40;</span>get_post_meta<span class="br0">&#40;</span><span class="re0">$post</span><span class="sy0">-&amp;</span>gt<span class="sy0">;</span>ID<span class="sy0">,</span> <span class="st_h">'start_date'</span><span class="sy0">,</span> <span class="kw4">true</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
&nbsp; &nbsp; <span class="re0">$event_start_date</span> <span class="sy0">=</span> get_post_meta<span class="br0">&#40;</span><span class="re0">$post</span><span class="sy0">-&amp;</span>gt<span class="sy0">;</span>ID<span class="sy0">,</span> <span class="st_h">'start_date'</span><span class="sy0">,</span> <span class="kw4">true</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; &nbsp; <span class="re0">$startDate</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;j F Y&quot;</span><span class="sy0">,</span> <a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="re0">$event_start_date</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; &nbsp; <span class="re0">$displayStartDate</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;j F&quot;</span><span class="sy0">,</span> <a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="re0">$event_start_date</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; &nbsp; <span class="re0">$startYear</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;Y&quot;</span><span class="sy0">,</span> <a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="re0">$event_start_date</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; &nbsp; <span class="re0">$startMonth</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;F&quot;</span><span class="sy0">,</span> <a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="re0">$event_start_date</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span>
&nbsp; &nbsp; <span class="re0">$startDate</span> <span class="sy0">=</span> <span class="re0">$endDate</span><span class="sy0">;</span>
&nbsp; <span class="br0">&#125;</span>
?<span class="sy0">&amp;</span>gt<span class="sy0">;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;</span>li<span class="sy0">&gt;&lt;</span>a title<span class="sy0">=</span><span class="st0">&quot;&amp;lt;?php the_title_attribute(); ?&amp;gt;&quot;</span> rel<span class="sy0">=</span><span class="st0">&quot;bookmark&quot;</span> href<span class="sy0">=</span><span class="st0">&quot;http://www.est322.com/wp-admin/%3C?php the_permalink(); ?&amp;gt;&quot;</span><span class="sy0">&gt;&lt;</span>span <span class="kw2">class</span><span class="sy0">=</span><span class="st0">&quot;date&quot;</span><span class="sy0">&gt;</span>
<span class="sy0">&lt;!--</span>p
&nbsp; <span class="kw1">if</span><span class="br0">&#40;</span> <span class="re0">$endDate</span><span class="sy0">!=</span><span class="re0">$startDate</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
&nbsp; &nbsp; <span class="kw1">if</span><span class="br0">&#40;</span> <span class="re0">$endYear</span><span class="sy0">==</span><span class="re0">$startYear</span> <span class="br0">&#41;</span><span class="br0">&#123;</span>
&nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span> <span class="re0">$endMonth</span><span class="sy0">==</span><span class="re0">$startMonth</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$displayStartDateAlt</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;j&quot;</span><span class="sy0">,</span> <a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="re0">$event_start_date</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">.</span><span class="st0">&quot; - &quot;</span><span class="sy0">;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">echo</span> <span class="re0">$displayStartDateAlt</span><span class="sy0">;</span>
&nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$displayStartDateAlt</span> <span class="sy0">=</span> <a href="http://www.php.net/date"><span class="kw3">date</span></a><span class="br0">&#40;</span><span class="st0">&quot;j F&quot;</span><span class="sy0">,</span> <a href="http://www.php.net/strtotime"><span class="kw3">strtotime</span></a><span class="br0">&#40;</span><span class="re0">$event_start_date</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">.</span><span class="st0">&quot; - &quot;</span><span class="sy0">;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">echo</span> <span class="re0">$displayStartDateAlt</span><span class="sy0">;</span>
&nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span>
&nbsp; &nbsp; <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span>
&nbsp; &nbsp; &nbsp; <span class="kw1">echo</span> <span class="re0">$displayStartDate</span><span class="sy0">.</span><span class="st0">&quot; - &quot;</span><span class="sy0">;</span>
&nbsp; &nbsp; <span class="br0">&#125;</span>
&nbsp; <span class="br0">&#125;</span>
&nbsp; &nbsp;<span class="kw1">echo</span> <span class="re0">$displayEndDate</span><span class="sy0">;</span>
<span class="sy1">?&gt;</span>
<span class="sy0">&lt;/</span>span<span class="sy0">&gt;</span>
<span class="sy0">&lt;/</span>a<span class="sy0">&gt;&lt;/</span>li<span class="sy0">&gt;</span>
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sy0">&lt;</span>li<span class="sy0">&gt;</span>No Upcoming Events<span class="sy0">&lt;/</span>li<span class="sy0">&gt;</span>
» <span class="sy0">&lt;/</span>span<span class="sy0">&gt;&lt;/</span>a<span class="sy0">&gt;&lt;</span>a href<span class="sy0">=</span><span class="st0">&quot;http://www.est322.com/wp-admin/%3C?php echo get_option('siteurl'); ?&amp;gt;/category/events/&quot;</span><span class="sy0">&gt;</span>View All Upcoming Events<span class="sy0">&lt;/</span>a<span class="sy0">&gt;</span>

<span class="sy0">&lt;!--</span>p <span class="kw1">endif</span><span class="sy0">;--&gt;</span></div>
</div>
</li>
</pre>
<p>I will follow up with another post which I leverage the same query for my archive.php and just include a simple is_category() to run the code above for those posts in the Events category only.</p>
<p>I am sure this could be simplified, especially all the break-down of the date values into year month evaluations.</p>
<p>Also if you read above, you know it works for php4.+! Hoorah! (Stupid old host server technology.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.est322.com/2010/02/wordpress-multiday-events-list/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Say Hello</title>
		<link>http://www.est322.com/2010/02/say-hello/</link>
		<comments>http://www.est322.com/2010/02/say-hello/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 19:27:19 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.est322.com/?p=546</guid>
		<description><![CDATA[to my little friends.
]]></description>
			<content:encoded><![CDATA[<p>to my little friends.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.est322.com/2010/02/say-hello/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Storm Trooper x Lego</title>
		<link>http://www.est322.com/2010/02/storm-trooper-x-lego/</link>
		<comments>http://www.est322.com/2010/02/storm-trooper-x-lego/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 07:00:44 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.est322.com/?p=536</guid>
		<description><![CDATA[You know Lego does a lot of collabos, they even just released a Toy Story series (more on that later).
Being that it is winter and all, thought it appropriate to post some of their Lego &#8211; Empire Strikes Back items.
This was from set &#8220;7749 Echo Base&#8220;
]]></description>
			<content:encoded><![CDATA[<p>You know Lego does a lot of collabos, they even just released a Toy Story series (more on that later).</p>
<p>Being that it is winter and all, thought it appropriate to post some of their <a title="Lego Star Wars" href="http://starwars.lego.com/en-us/Products/classic/Default.aspx">Lego &#8211; Empire Strikes Back</a> items.</p>
<p>This was from set &#8220;<a title="Lego Star Wars - 7749 Echo Base™" href="http://starwars.lego.com/en-us/Products/classic/7749.aspx">7749 Echo Base</a>&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.est322.com/2010/02/storm-trooper-x-lego/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Schadenfreude</title>
		<link>http://www.est322.com/2010/02/schadenfreude/</link>
		<comments>http://www.est322.com/2010/02/schadenfreude/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 14:58:09 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.est322.com/?p=538</guid>
		<description><![CDATA[Saw this article titled &#8220;As Toyota stumbles, schadenfreude lurks&#8221; and thought, &#8220;what the hell does schadenfreude mean?&#8221;
So, went and did a quick look up and found it on dictionary and, well, realized I don&#8217;t use that word enough, I forgot it way back when, or I am just dumb.
Either way, now you know so you can [...]]]></description>
			<content:encoded><![CDATA[<p>Saw this article titled &#8220;<a title="MSNBC: As Toyota stumbles, schadenfreude lurks" href="http://www.msnbc.msn.com/id/35224907/ns/business-autos/">As Toyota stumbles, schadenfreude lurks</a>&#8221; and thought, &#8220;what the hell does schadenfreude mean?&#8221;</p>
<p>So, went and did a quick look up and found it on <a title="Dictionary.com: Schadenfreude" href="http://dictionary.reference.com/browse/schadenfreude">dictionary</a> and, well, realized I don&#8217;t use that word enough, I forgot it way back when, or I am just dumb.</p>
<p>Either way, now you know so you can use it on a going-forward basis.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.est322.com/2010/02/schadenfreude/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Farewell Kuroi</title>
		<link>http://www.est322.com/2010/02/farewell-kuroi/</link>
		<comments>http://www.est322.com/2010/02/farewell-kuroi/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 02:24:53 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.est322.com/?p=529</guid>
		<description><![CDATA[For those that are familiar with drifting you probably heard that Atsushi Kuroi passed away recently.
Besides watching him in Drift Club, Doriten and Option videos, I was able to actually meet and enjoy some meals together.
I remember Takatori telling me that he was &#8220;bully&#8221; and others explaining his sticker to me, &#8220;His name means black, [...]]]></description>
			<content:encoded><![CDATA[<p>For those that are familiar with drifting you probably heard that Atsushi Kuroi passed away recently.</p>
<p>Besides watching him in Drift Club, Doriten and Option videos, I was able to actually meet and enjoy some meals together.</p>
<p>I remember Takatori telling me that he was &#8220;bully&#8221; and others explaining his sticker to me, &#8220;His name means black, but his car is yellow.&#8221;</p>
<p>Watching him try to take out Kazuya Bai at Meihan was such a good time, even for Bai.</p>
<p>So, for those that had the priviledge of spending more time with him and the honor of getting a ride along, consider yourselves lucky.</p>
<p>You will be missed, Cool Roy!</p>
<p>Online tribute at <a title="THE LEGEND OF THE OSAKA ONEVIA: Atsushi Kuroi memorial gallery" href="http://noriyaro.com/?p=4552">Nori Yaro</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.est322.com/2010/02/farewell-kuroi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kau-Boy&#8217;s Backend Localization Plugin &#8211; Wordpress</title>
		<link>http://www.est322.com/2010/02/kau-boys-backend-localization-plugin-wordpress/</link>
		<comments>http://www.est322.com/2010/02/kau-boys-backend-localization-plugin-wordpress/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 23:56:12 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.est322.com/?p=520</guid>
		<description><![CDATA[I have a client that is international but they did not want/need to offer multuple lanugage content for the user, they would just write it accordingly.
But, they have various content writers from several countries so to ease use of Wordpress, they should have it in their preferred language. I found Kau-Boy&#8217;s Backend Localization Plugin.
I installed [...]]]></description>
			<content:encoded><![CDATA[<p>I have a client that is international but they did not want/need to offer multuple lanugage content for the user, they would just write it accordingly.</p>
<p>But, they have various content writers from several countries so to ease use of Wordpress, they should have it in their preferred language. I found <a title="Kau-Boy's Backend Localization Plugin" href="http://kau-boys.de/wordpress/kau-boys-backend-localization-plugin">Kau-Boy&#8217;s Backend Localization Plugin</a>.</p>
<p>I installed it and got an undefined error on line 175. Did some research and found out that one, the host the client is on is old! Two, the plugin used PHP 5 functions which due to the host, obviously doesn&#8217;t work. Same thing with the latest WP designed for MySQL 5+&#8230; Did I mention the host is old!!!</p>
<p>Anyways, on to the code.<br />
<span id="more-520"></span><br />
<strong>Original:</strong></p>
<pre>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;"><span class="re0">$files</span> <span class="sy0">=</span> <a href="http://www.php.net/scandir"><span class="kw3">scandir</span></a><span class="br0">&#40;</span>WP_LANG_DIR<span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw1">foreach</span><span class="br0">&#40;</span><span class="re0">$files</span> <span class="kw1">as</span> <span class="re0">$file</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
&nbsp; <span class="re0">$fileParts</span> <span class="sy0">=</span> <a href="http://www.php.net/pathinfo"><span class="kw3">pathinfo</span></a><span class="br0">&#40;</span><span class="re0">$file</span><span class="br0">&#41;</span><span class="sy0">;</span>

&nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="re0">$fileParts</span><span class="br0">&#91;</span><span class="st_h">'extension'</span><span class="br0">&#93;</span> <span class="sy0">==</span> <span class="st_h">'mo'</span> <span class="sy0">&amp;</span>amp<span class="sy0">;&amp;</span>amp<span class="sy0">;</span> <span class="br0">&#40;</span><a href="http://www.php.net/strlen"><span class="kw3">strlen</span></a><span class="br0">&#40;</span><span class="re0">$fileParts</span><span class="br0">&#91;</span><span class="st_h">'filename'</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="sy0">&lt;=</span> 5<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
&nbsp; &nbsp; <span class="re0">$backend_locale_array</span><span class="br0">&#91;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="re0">$fileParts</span><span class="br0">&#91;</span><span class="st_h">'filename'</span><span class="br0">&#93;</span><span class="sy0">;</span>
&nbsp; <span class="br0">&#125;</span>
<span class="br0">&#125;</span></div>
</div>
</pre>
<p>This is the trouble area using PHP 5 functions such as scandir and get file property &#8216;extension&#8217;.</p>
<p>Replace above with the PHP 4 fix. You may be able to remove $fileParts['extension'] as it may actually not be doing anything in this usage.</p>
<p><strong>Updated:</strong></p>
<pre>
<div class="codesnip-container" >
<div class="php codesnip" style="font-family:monospace;"><span class="sy0">*</span> php 4 fix <span class="sy0">*/</span>
<span class="re0">$dir</span> <span class="sy0">=</span> WP_LANG_DIR<span class="sy0">;</span>
<span class="re0">$dh</span> <span class="sy0">=</span> <a href="http://www.php.net/opendir"><span class="kw3">opendir</span></a><span class="br0">&#40;</span><span class="re0">$dir</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="kw1">while</span> <span class="br0">&#40;</span><span class="kw4">false</span> <span class="sy0">!==</span> <span class="br0">&#40;</span><span class="re0">$filename</span> <span class="sy0">=</span> <a href="http://www.php.net/readdir"><span class="kw3">readdir</span></a><span class="br0">&#40;</span><span class="re0">$dh</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
&nbsp; <span class="re0">$files</span><span class="br0">&#91;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="re0">$filename</span><span class="sy0">;</span>
<span class="br0">&#125;</span>

<span class="coMULTI">/* read the array */</span>
<span class="kw1">foreach</span><span class="br0">&#40;</span><span class="re0">$files</span> <span class="kw1">as</span> <span class="re0">$file</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
&nbsp; <span class="re0">$fileParts</span> <span class="sy0">=</span> <a href="http://www.php.net/pathinfo"><span class="kw3">pathinfo</span></a><span class="br0">&#40;</span><span class="re0">$file</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; <span class="kw1">if</span><span class="br0">&#40;</span><span class="sy0">!</span><a href="http://www.php.net/isset"><span class="kw3">isset</span></a><span class="br0">&#40;</span><span class="re0">$fileParts</span><span class="br0">&#91;</span><span class="st_h">'filename'</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="sy0">&amp;</span>amp<span class="sy0">;&amp;</span>amp<span class="sy0">;</span> <span class="re0">$fileParts</span><span class="br0">&#91;</span><span class="st_h">'extension'</span><span class="br0">&#93;</span> <span class="sy0">==</span> <span class="st_h">'mo'</span> <span class="sy0">&amp;</span>amp<span class="sy0">;&amp;</span>amp<span class="sy0">;</span> <span class="br0">&#40;</span><a href="http://www.php.net/strlen"><span class="kw3">strlen</span></a><span class="br0">&#40;</span><span class="re0">$fileParts</span><span class="br0">&#91;</span><span class="st_h">'filename'</span><span class="br0">&#93;</span><span class="br0">&#41;</span> <span class="sy0">&lt;=</span> 5<span class="br0">&#41;</span><span class="br0">&#41;</span><span class="br0">&#123;</span>
&nbsp; &nbsp; <span class="re0">$fileParts</span><span class="br0">&#91;</span><span class="st_h">'filename'</span><span class="br0">&#93;</span> <span class="sy0">=</span> <a href="http://www.php.net/substr"><span class="kw3">substr</span></a><span class="br0">&#40;</span><span class="re0">$fileParts</span><span class="br0">&#91;</span><span class="st_h">'basename'</span><span class="br0">&#93;</span><span class="sy0">,</span> 0<span class="sy0">,</span><a href="http://www.php.net/strpos"><span class="kw3">strpos</span></a><span class="br0">&#40;</span><span class="re0">$fileParts</span><span class="br0">&#91;</span><span class="st_h">'basename'</span><span class="br0">&#93;</span><span class="sy0">,</span><span class="st_h">'.'</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span>
&nbsp; &nbsp; <span class="re0">$backend_locale_array</span><span class="br0">&#91;</span><span class="br0">&#93;</span> <span class="sy0">=</span> <span class="re0">$fileParts</span><span class="br0">&#91;</span><span class="st_h">'filename'</span><span class="br0">&#93;</span><span class="sy0">;</span>
&nbsp; <span class="br0">&#125;</span>
<span class="br0">&#125;</span></div>
</div>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.est322.com/2010/02/kau-boys-backend-localization-plugin-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fine Silver</title>
		<link>http://www.est322.com/2010/02/fine-silver/</link>
		<comments>http://www.est322.com/2010/02/fine-silver/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 13:52:20 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.est322.com/?p=517</guid>
		<description><![CDATA[I thought all actual utensils on planes were now plastic. Forks, sporks, spoons and knives&#8230; especially on flights bound to the U.S.
Well, I guess a few airlines aren&#8217;t as concerned, like Luftansa. When you think about it, anything can almost be improvised into something &#8211; thanks MacGyver!
This actually makes sense. It&#8217;s more cost effective. Less [...]]]></description>
			<content:encoded><![CDATA[<p>I thought all actual utensils on planes were now plastic. Forks, sporks, spoons and knives&#8230; especially on flights bound to the U.S.</p>
<p>Well, I guess a few airlines aren&#8217;t as concerned, like Luftansa. When you think about it, anything can almost be improvised into something &#8211; thanks MacGyver!</p>
<p>This actually makes sense. It&#8217;s more cost effective. Less environmental impact. And the utensils actually work without bending or breaking.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.est322.com/2010/02/fine-silver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
