<?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>J. James Beaudoin — Web Developer, Coder, Writer, Galactic Savant, Impassioned Human and Survivor &#187; themes</title>
	<atom:link href="http://www.joebeaudoin.net/tag/themes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joebeaudoin.net</link>
	<description>Questions are a burden to others; answers a prison for oneself. â€” The Prisoner</description>
	<lastBuildDate>Wed, 28 Jul 2010 05:27:00 +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>Getting P2 to Auto Update</title>
		<link>http://www.joebeaudoin.net/2010/07/getting-p2-to-auto-update/</link>
		<comments>http://www.joebeaudoin.net/2010/07/getting-p2-to-auto-update/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 05:25:29 +0000</pubDate>
		<dc:creator>joebeaudoin</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[g33k]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[auto update]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[P2]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.joebeaudoin.net/?p=381</guid>
		<description><![CDATA[On certain servers that do not run PHP 5.2 or higher, the Auto Update feature of the P2 WordPress theme—which was recently implemented by FrakMedia! Productions for internal communications between all its workers—does not work. A quick run-down: the P2 theme is for micro-blogging. It is basically micro-blogging meets Twitter meets web forums, on Red [...]]]></description>
			<content:encoded><![CDATA[<p>On certain servers that do not run PHP 5.2 or higher, the Auto Update feature of the <a href="http://p2theme.com/">P2 WordPress</a> theme—which was recently implemented by FrakMedia! Productions for internal communications between all its workers—does not work. A quick run-down: the P2 theme is for micro-blogging. It is basically micro-blogging meets Twitter meets web forums, on Red Bull.</p>
<p>Now, &#8220;auto update&#8221; means that whenever you post something it will show up automatically (using AJAX and JSON), so you do not have to refresh the browser page.</p>
<p>In internally testing this, FrakMedia!&#8217;s PR coordinator Jon recently pointed this out to me, and I set out to find the problem. And it has a solution, which is highlighted in <a href="http://wordpress.org/support/topic/338887/page/2?replies=37#post-1352861">this thread</a> on WordPress&#8217;s support site. It fixes the auto update problem when it comes to posting new threads, but it doesn&#8217;t deal with updating when <em>replies</em> to threads are posted.</p>
<p>So, you only need to fix one file. That file is <span style="background-color: #ffffff; color: #000; font-family: courier, courier new;">p2/inc/ajax.php</span> and need to be modified thusly:</p>
<p>1. At line 4, add:</p>
<p style="padding-left: 30px; font-family: courier, courier new;">require (ABSPATH . WPINC . &#8216;/class-json.php&#8217;);</p>
<pre class="brush: php; first-line: 2; highlight: [4];">
define('DOING_AJAX', true);
@header('Content-Type: text/html; charset=' . get_option('blog_charset'));
require (ABSPATH . WPINC . '/class-json.php');
</pre>
<p>2. Starting at line 207, we need to change how the JSON encode is called. Here&#8217;s the block that you&#8217;ll need to make the changes to:</p>
<pre class="brush: php; first-line: 207; highlight: [208];">
nocache_headers();
echo json_encode( array(
    'numberofnewposts' =&gt; $number_of_new_posts,
    'html' =&gt; $posts_html,
    'lastposttime' =&gt; gmdate('Y-m-d H:i:s')
) );
</pre>
<p>The following highlighted lines (lines 207 and 209) are the changes that need to be made.</p>
<p><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px; white-space: normal; font-size: 13px;"> </span></p>
<pre class="brush: php; first-line: 207; highlight: [207,209];">
$json = new Services_JSON();
nocache_headers();
echo $json-&gt;encode( array(
    'numberofnewposts' =&gt; $number_of_new_posts,
    'html' =&gt; $posts_html,
    'lastposttime' =&gt; gmdate('Y-m-d H:i:s')
) );
</pre>
<p>This solves the issue with auto updating any newly started threads only, not any replies to said threads. That&#8217;s the next step.</p>
<p>3. At line 318, remove this line: <span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;"> </span></p>
<pre class="brush: php; first-line: 318; highlight: [207,209];">
echo json_encode( $json_data );
</pre>
<p>And add this block of code:</p>
<pre class="brush: php; first-line: 318;">
$json = new Services_JSON();
nocache_headers();
echo $json-&gt;encode( $json_data );
</pre>
<p>Once you&#8217;ve saved the file and uploaded it to your server, or edited through your WordPress dashboard&#8217;s editor (Appearance -&gt; Editor), then this problem will be fixed. Simply refresh your browser, and start making things happen.</p>
<p><strong><em>Important Note:</em></strong><em> As with any other theme, whenever you install an update from the publisher for said theme </em><span style="text-decoration: underline;"><em>you will be overwriting any changes you made to the code</em></span><em>. So make sure that you modify the code <span style="text-decoration: underline;">again after the update</span> to reproduce the modifications noted in this article! Do keep in mind that should the files from said update be totally recoded, the above code may or may not work as intended. (The lines may not be there or may have moved to an entirely new file, for instance, and other fun stuff like that.)</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.joebeaudoin.net/2010/07/getting-p2-to-auto-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apart from one&#8217;s self, the enemy of humanity is progress.</title>
		<link>http://www.joebeaudoin.net/2010/01/apart-from-ones-self-the-enemy-of-humanity-is-progress/</link>
		<comments>http://www.joebeaudoin.net/2010/01/apart-from-ones-self-the-enemy-of-humanity-is-progress/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 04:32:42 +0000</pubDate>
		<dc:creator>joebeaudoin</dc:creator>
				<category><![CDATA[Fuckosity]]></category>
		<category><![CDATA[Society]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Television]]></category>
		<category><![CDATA[The Prisoner]]></category>
		<category><![CDATA[Patrick McGoohan]]></category>
		<category><![CDATA[reality]]></category>
		<category><![CDATA[speculative fiction]]></category>
		<category><![CDATA[storytelling]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Wisdom]]></category>

		<guid isPermaLink="false">http://www.joebeaudoin.net/?p=308</guid>
		<description><![CDATA[As usual, if you are reading this on Facebook, please go to my blog directly as this blog entry has video embeds. Thank you. I was scouring Youtube the other night and stumbled across a rare interview that Patrick McGoohan (the titular tour de force behind The Prisoner) did in 1977. It is in four [...]]]></description>
			<content:encoded><![CDATA[<p style="padding-left: 30px;"><em>As usual, if you are reading this on Facebook, please go to <a href="http://www.joebeaudoin.net/2010/01/apart-from-ones-self-the-enemy-of-humanity-is-progress/" target="_blank">my blog</a> directly as this blog entry has video embeds. Thank you.</em></p>
<p>I was scouring Youtube the other night and stumbled across a rare interview that Patrick McGoohan (the titular tour de force behind <em>The Prisoner</em>) did in 1977. It is in four parts that run about 40 minutes and the quality is what you&#8217;d expect from a VHS recording, but it is an interesting look not only behind-the-series itself but on McGoohan&#8217;s views of society in general.</p>
<p>A warning for those of you who haven&#8217;t seen <em>The Prisoner</em>: there are spoilers here regarding the series&#8217; finale—actually, finale isn&#8217;t the right word to use regarding <em>The Prisoner</em>&#8216;s last episode, so let&#8217;s just get that out of the way right now.</p>
<p>Anyway, for your consideration&#8230;</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/f6gPztzkNMQ&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/f6gPztzkNMQ&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/SJ4psHOzo-0&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/SJ4psHOzo-0&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/Bp4A4Q_4bUo&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/Bp4A4Q_4bUo&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/3ZWI35jDXCA&amp;hl=en_US&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/3ZWI35jDXCA&amp;hl=en_US&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>I do happen to agree with McGoohan&#8217;s assertion that progress, or what passes for progress, is the most dangerous issue that humanity faces. There are many valid points here that are worthy of debate, such as his observation that there has not yet been a weapon created by man that <em>hasn&#8217;t been used</em>. We already know about the ciphering of the citizenry—with everyone assigned with a number (or, in today&#8217;s world, countless numbers)—and we know of the horror of nuclear and, to a lesser extent, biological weapons. Ergo, we should all be very fearful of what is to come, unless we take care and control of our actions as a species.</p>
<p>You may not agree, but at least watch the above videos, and feel free to discuss as I intend on writing more on these topics in the future.</p>
<p>Be seeing you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joebeaudoin.net/2010/01/apart-from-ones-self-the-enemy-of-humanity-is-progress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Battlestar Connectedness</title>
		<link>http://www.joebeaudoin.net/2010/01/battlestar-connectedness/</link>
		<comments>http://www.joebeaudoin.net/2010/01/battlestar-connectedness/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 19:31:19 +0000</pubDate>
		<dc:creator>joebeaudoin</dc:creator>
				<category><![CDATA[Battlestar Galactica]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Television]]></category>
		<category><![CDATA[BSG]]></category>
		<category><![CDATA[connectedness]]></category>
		<category><![CDATA[memorabilia]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[yearbook]]></category>

		<guid isPermaLink="false">http://www.joebeaudoin.net/?p=232</guid>
		<description><![CDATA[Today&#8217;s blog post was to cover my thoughts on the closing of a local bookstore. Those thoughts shall be relegated for a post tomorrow, a post that will already be written sometime shortly after I&#8217;ve posted this one. So let&#8217;s begin. I awoke this morning to find that a core theme of mine manifested itself. [...]]]></description>
			<content:encoded><![CDATA[<p>Today&#8217;s blog post was to cover my  thoughts on the closing of a local bookstore. Those thoughts shall be relegated for a post tomorrow, a post that will already be written sometime shortly after I&#8217;ve posted this one.</p>
<p>So let&#8217;s begin. I awoke this morning to find that a <a href="http://www.joebeaudoin.net/2009/07/of-strengths-and-weaknesses/" target="_blank">core theme</a> of mine manifested itself. I&#8217;ll give you five cubits to figure out which theme it is.</p>
<p>One was in the form of a private message from the Quorum, <a href="http://www.colonialfleet.org" target="_blank">The Colonial Fleet</a>&#8216;s message board; I received a message from one of the kind prop replica makers there, who went out of his way to thank me for creating the Battlestar Wiki. It made my morning when I read it, if only because it is a testament to a resource that I and many, many people worked on over the past five years to create and maintain.</p>
<p>The second was the discovery of a very interesting fact. It is a fact that was revealed when I posted yesterday&#8217;s blog about the <a href="http://www.joebeaudoin.net/2010/01/battlestar-schwag/" target="_blank"><em>Battlestar </em>schwag</a>â€”Dr. Kevin Grazier was never given a copy of the <em>Battlestar Galactica</em> Cast &amp; Crew Yearbook.</p>
<p>It is a discovery that disturbs me a bit, seeing as I had received one with thanks to my friends at NBC Universal, Propworx, and the former <em>Battlestar</em> production office in Vancouver.Â  When I received my copy, I had been informed of the following: it was one of the last copies up in Vancouver not given to anyone, and that everyone who worked on the series received one. Given this information, I&#8217;m a bit distressed to just find out more than a year later that Kevin seems to have been overlooked. Honestly, my involvement on <em>Battlestar </em>is<em> </em> not to the extent of Kevin&#8217;s and, let&#8217;s be honest, he had far more to do with shaping the show than I (or anyone connected to the Wiki, really) ever did.</p>
<p>So before <em>I </em>received a copy, Kevin should have received one. That would have been logical, fair, and&#8230; look, the human factor throws all that out the airlock. <em>Whoosh!</em></p>
<p>I&#8217;m not blaming anyone for this oversight, because these things do happen. However, since we know that the issue is present and I feel that it should be corrected, I&#8217;m going to at least open my mouth about itâ€”if only in the hope of the right person  at the right place, and at right time, becoming aware of this and having the power to fix it.</p>
<p>So, for those of you who read this and have any worthwhile connections at NBC Universal, please make it so that a book ships to Dr. Kevin. There might be an extra one lying around somewhere. Also, if someone is thinking of selling their copy, please strongly consider sending it to Kevin.</p>
<p>Let&#8217;s make this happen. Call it a late Christmas present, if you&#8217;d like. So say we all.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joebeaudoin.net/2010/01/battlestar-connectedness/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
