<?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>Matt Thiessen &#187; Coding</title>
	<atom:link href="http://matt.thiessen.us/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://matt.thiessen.us</link>
	<description>Learning to make the hard things easy</description>
	<lastBuildDate>Sun, 05 Feb 2012 04:06:14 +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>WP-o-Matic breaks WordPress Related Links</title>
		<link>http://matt.thiessen.us/2011/11/wp-o-matic-breaks-wordpress-related-links/</link>
		<comments>http://matt.thiessen.us/2011/11/wp-o-matic-breaks-wordpress-related-links/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 15:27:09 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp-o-matic]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=491</guid>
		<description><![CDATA[function adminInit() { auth_redirect(); // force display of a certain section $this-&#62;section = ($this-&#62;setup) ? ((isset($_REQUEST['s']) &#38;&#38; $_REQUEST['s']) ? $_REQUEST['s'] : $this-&#62;sections[0]) : 'setup'; // if (isset($_SERVER['HTTP_USER_AGENT']) &#38;&#38; (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false)) // die('Please switch to Firefox / Safari'); wp_enqueue_script('prototype'); wp_enqueue_script('wpoadmin', $this-&#62;tplpath . '/admin.js', array('prototype'), $this-&#62;version); if ($this-&#62;section == 'list') wp_enqueue_script('listman'); //if ( WPOTools::isAjax() ) [...]]]></description>
			<content:encoded><![CDATA[<p><code>function adminInit() {<br />
		auth_redirect();</p>
<p>		// force display of a certain section<br />
		$this-&gt;section = ($this-&gt;setup) ? ((isset($_REQUEST['s']) &amp;&amp; $_REQUEST['s']) ? $_REQUEST['s'] : $this-&gt;sections[0]) : 'setup';</p>
<p>//    if (isset($_SERVER['HTTP_USER_AGENT']) &amp;&amp; (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))<br />
//      die('Please switch to Firefox / Safari');</p>
<p>		wp_enqueue_script('prototype');<br />
		wp_enqueue_script('wpoadmin', $this-&gt;tplpath . '/admin.js', array('prototype'), $this-&gt;version);</p>
<p>		if ($this-&gt;section == 'list')<br />
			wp_enqueue_script('listman');</p>
<p>		//if ( WPOTools::isAjax() ) {<br />
		if ( WPOTools::isAjax() &amp;&amp;  $this-&gt;section != 'home' ) { // Matt Thiessen 11/8/11<br />
			$this-&gt;admin();<br />
			exit;<br />
		}<br />
	}</code></p>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2011/11/wp-o-matic-breaks-wordpress-related-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SlidePress Plugin Redirect Bug</title>
		<link>http://matt.thiessen.us/2010/11/slidepress-plugin-redirect-bug/</link>
		<comments>http://matt.thiessen.us/2010/11/slidepress-plugin-redirect-bug/#comments</comments>
		<pubDate>Mon, 22 Nov 2010 14:24:46 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[capabilities]]></category>
		<category><![CDATA[meta_key]]></category>
		<category><![CDATA[meta_value]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[SlidePress]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=411</guid>
		<description><![CDATA[When clicking on settings links for the SlidePress plugin in a multi-user WordPress site the plugin would redirect to /wp-admin/?c=1 for each domain except the parent site. [code lang="php"]function get_current_user_role() { global $current_user, $wp_roles; $role_names = $wp_roles -&#62; get_names(); /* UPDATED 11/2/2010 9:21 AM * by matt.thiessen@sourcemedia.net */ // modified [start] reset($current_user-&#62;roles); $first_key = key($current_user-&#62;roles); [...]]]></description>
			<content:encoded><![CDATA[<p>When clicking on settings links for the SlidePress plugin in a multi-user WordPress site the plugin would redirect to /wp-admin/?c=1 for each domain except the parent site.</p>
<p>[code lang="php"]function get_current_user_role() {<br />
global $current_user, $wp_roles;<br />
$role_names = $wp_roles -&gt; get_names();<br />
/* UPDATED 11/2/2010 9:21 AM<br />
* by matt.thiessen@sourcemedia.net<br />
*/<br />
// modified [start]<br />
reset($current_user-&gt;roles);<br />
$first_key = key($current_user-&gt;roles);<br />
return preg_replace( "/\|.*/", '', $role_names[$current_user-&gt;roles[$first_key]]);<br />
/*old*///return preg_replace( "/\|.*/", '', $role_names[$current_user-&gt;roles[0]]);<br />
// modified [end]<br />
}[\code]</p>
<p>Also, make sure if you are an admin user with super user privileges you are added at a admin user to the site you are using the SlidePress plugin.</p>
<p><a href="http://matt.thiessen.us/wp-content/uploads/2010/11/add-a-new-user.png"><img class="alignleft size-full wp-image-416" title="add-a-new-user" src="http://matt.thiessen.us/wp-content/uploads/2010/11/add-a-new-user.png" alt="" width="394" height="240" /></a></p>
<p>This will add proper capabilities to the database in the wp_usermeta table.<br />
meta_key: wp_25_capabilities<br />
meta_value: a:1:{s:13:"administrator";s:1:"1";}</p>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2010/11/slidepress-plugin-redirect-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>is_home() not working in my WordPress plugin</title>
		<link>http://matt.thiessen.us/2009/08/is_home-not-working-in-my-wordpress-plugin/</link>
		<comments>http://matt.thiessen.us/2009/08/is_home-not-working-in-my-wordpress-plugin/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 18:05:46 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=282</guid>
		<description><![CDATA[When using is_home(), is_category(), is_page() etc. in my WordPress plugin that displays category-based ads, they kept returning NULL. My problem was that I was calling this these function directly in my plugin. I resolved this by adding these call to my adHeaderSetup() function and setting the hook add_action(&#8216;wp_head&#8217;, &#8216;adHeaderSetup&#8217;);]]></description>
			<content:encoded><![CDATA[<p>When using is_home(), is_category(), is_page() etc. in my WordPress plugin that displays category-based ads, they kept returning NULL.</p>
<p>My problem was that I was calling this these function directly in my plugin.  I resolved this by adding these call to my adHeaderSetup() function and setting the hook add_action(&#8216;wp_head&#8217;, &#8216;adHeaderSetup&#8217;);</p>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2009/08/is_home-not-working-in-my-wordpress-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>USPS Web Tools</title>
		<link>http://matt.thiessen.us/2009/03/usps-web-tools/</link>
		<comments>http://matt.thiessen.us/2009/03/usps-web-tools/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 22:06:11 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Family]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Z350]]></category>
		<category><![CDATA[shipping]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=211</guid>
		<description><![CDATA[I was trying to add the USPS API into osCommerce. I received the following error when adding this shipping module: RateV3 is not a valid API name for this protocol This is because when you create an account for the Web Tools at USPS you only have access to their test server. The USPS test [...]]]></description>
			<content:encoded><![CDATA[<p>I was trying to add the <a href="http://www.usps.com/webtools/" target="_blank">USPS API</a> into <a href="http://www.oscommerce.com/" target="_blank">osCommerce</a>.  I received the following error when adding this <a href="http://www.oscommerce.com/community/contributions,487">shipping module</a>:</p>
<p><strong style="color:red">RateV3 is not a valid API name for this protocol</strong></p>
<p>This is because when you create an account for the Web Tools at USPS you only have access to their test server.  The USPS test server can only use RateV2, so test using this code below, then request to be switched to use the production server.  Then you can use RateV3 on the production server and the USPS module for osCommerce will work.</p>
<pre class="wp-code-highlight prettyprint">&lt;?php

$request1 = &lt;&lt;&lt; XMLREQUEST
&lt;RateV2Request USERID=&quot;xxxxxxxxxxxxx&quot;&gt;
&lt;Package ID=&quot;0&quot;&gt;
&lt;Service&gt;PRIORITY&lt;/Service&gt;
&lt;ZipOrigination&gt;10022&lt;/ZipOrigination&gt;
&lt;ZipDestination&gt;20008&lt;/ZipDestination&gt;
&lt;Pounds&gt;10&lt;/Pounds&gt;
&lt;Ounces&gt;5&lt;/Ounces&gt;
&lt;Container&gt;Flat Rate Box&lt;/Container&gt;
&lt;Size&gt;REGULAR&lt;/Size&gt;
&lt;/Package&gt;
&lt;/RateV2Request&gt;
XMLREQUEST;

$request = &quot;http://testing.shippingapis.com/ShippingAPITest.dll?API=RateV2&amp;XML=&quot; . rawurlencode($request1);

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $request);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_HTTPGET, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SLL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

$response = curl_exec($ch);
curl_close($ch);

echo($response);

?&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2009/03/usps-web-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use Python to Save an FTP Directory List to File</title>
		<link>http://matt.thiessen.us/2009/03/use-python-to-save-an-ftp-directory-list-to-file/</link>
		<comments>http://matt.thiessen.us/2009/03/use-python-to-save-an-ftp-directory-list-to-file/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 22:05:26 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=201</guid>
		<description><![CDATA[Written for Python 2.6 #!/usr/bin/python import ftplib ftp = ftplib.FTP(&#34;ftp.server.com&#34;) ftp.login(&#34;username&#34;, &#34;password&#34;) ftp.cwd(&#34;path/path&#34;) data = [] ftp.dir(data.append) ftp.quit() outputFile = open('dirList.txt','wb') for line in data: outputFile.write(line + &#34;\n&#34;) outputFile.close()]]></description>
			<content:encoded><![CDATA[<p>Written for <a class="zem_slink" title="Python (programming language)" rel="homepage" href="http://www.python.org/">Python</a> 2.6</p>
<pre class="wp-code-highlight prettyprint">#!/usr/bin/python

import ftplib

ftp = ftplib.FTP(&quot;ftp.server.com&quot;)
ftp.login(&quot;username&quot;, &quot;password&quot;)
ftp.cwd(&quot;path/path&quot;)

data = []

ftp.dir(data.append)

ftp.quit()

outputFile = open('dirList.txt','wb')

for line in data:
    outputFile.write(line + &quot;\n&quot;)

outputFile.close()</pre>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Reblog this post [with Zemanta]" href="http://reblog.zemanta.com/zemified/c80a8ae4-6a5c-43bc-94a0-c5c01e31ed34/"><img class="zemanta-pixie-img" style="border: medium none ; float: right;" src="http://img.zemanta.com/reblog_e.png?x-id=c80a8ae4-6a5c-43bc-94a0-c5c01e31ed34" alt="Reblog this post [with Zemanta]" /></a><span class="zem-script more-related pretty-attribution"><script src="http://static.zemanta.com/readside/loader.js" type="text/javascript"></script></span></div>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2009/03/use-python-to-save-an-ftp-directory-list-to-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Python to replace spaces with underscores in filenames.</title>
		<link>http://matt.thiessen.us/2009/02/using-python-to-replace-spaces-with-underscore-in-filenames/</link>
		<comments>http://matt.thiessen.us/2009/02/using-python-to-replace-spaces-with-underscore-in-filenames/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 05:25:31 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=179</guid>
		<description><![CDATA[Python can be used on Window, Linux and Mac. It just a simple install. download code #!/usr/bin/python import string import os import re # task: # loop thur input directory # look for .pdf # replace space with underscore # rename/move to output directory inputDir = &#34;./&#34; # Current directory outputDir = &#34;./new_location&#34; for filename [...]]]></description>
			<content:encoded><![CDATA[<p>Python can be used on Window, Linux and Mac.  It just a simple <a href="http://www.python.org/download/">install</a>.</p>
<p><a href="http://matt.thiessen.us/wp-content/uploads/2009/02/rename_move_pdfstar.gz">download code</a></p>
<pre class="wp-code-highlight prettyprint">#!/usr/bin/python

import string
import os
import re

# task:
# loop thur input directory
# look for .pdf
# replace space with underscore
# rename/move to output directory

inputDir = &quot;./&quot; # Current directory
outputDir = &quot;./new_location&quot;

for filename in os.listdir(inputDir):
    if filename[-4:] == &quot;.pdf&quot;:
        tempName = filename
        tempName = tempName.replace(' ', '_')
        os.rename(inputDir + &quot;/&quot; + filename, outputDir + &quot;/&quot; + tempName)</pre>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2009/02/using-python-to-replace-spaces-with-underscore-in-filenames/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Certified Professional Developer (MCPD)</title>
		<link>http://matt.thiessen.us/2009/02/microsoft-certified-professional-developer-mcpd/</link>
		<comments>http://matt.thiessen.us/2009/02/microsoft-certified-professional-developer-mcpd/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 16:38:15 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[books]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=172</guid>
		<description><![CDATA[How to earn your MCPD certification on Visual Studio 2008 Each MCPD certification on Visual Studio 2008 requires that you pass two to four Microsoft Certified Technology Specialist (MCTS) prerequisite exams and one Professional Series exam, as shown in the following table. When you pass all the exams in a specific MCPD path, you earn [...]]]></description>
			<content:encoded><![CDATA[<p>How to earn your MCPD certification on Visual Studio 2008</p>
<p>Each MCPD certification on Visual Studio 2008 requires that you <span style="color: #ff9900;"><strong>pass two to four</strong></span> Microsoft Certified Technology Specialist (MCTS) prerequisite exams and one Professional Series exam, as shown in the <a href="http://www.microsoft.com/learning/mcp/mcpd/vstudio/2008/default.mspx#EBC">following table</a>. When you pass all the exams in a specific MCPD path, you earn the related MCTS certifications as well as the relevant MCPD certification.</p>
<p>I will be focusing on this particular track: <span style="color: #339966;"><strong>MCPD: ASP.NET Developer 3.5</strong></span> so I&#8217;ll need to pass the following exams: 70-536, 70-562 and 70-564.</p>
<p><strong><span style="color: #ff6600;">Exam 70-536</span></strong>: Microsoft® .NET Framework 2.0 Foundation</p>
<p>Just purchased a book to pass Exam 70-536.</p>
<div class="wp-caption alignnone" style="width: 140px"><a href="http://www.microsoft.com/learning/en/us/books/9469.aspx"><img title="MCTS Self-Paced Training Kit" src="http://www.microsoft.com/learning/Images/Books/Imgt/9780735622777f.gif" alt="MCTS Self-Paced Training Kit" width="130" height="130" /></a><p class="wp-caption-text">MCTS Self-Paced Training Kit</p></div>
<p><a href="http://www.microsoft.com/learning/en/us/exams/70-562.mspx"><span style="color: #ff6600;"><strong>Exam 70-562</strong></span></a>: TS: Microsoft .NET Framework 3.5, ASP.NET Application Development</p>
<p><strong><span style="color: #ff6600;">Exam 70-564</span></strong>: PRO: Designing and Developing ASP.NET Applications Using Microsoft .NET Framework 3.5</p>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2009/02/microsoft-certified-professional-developer-mcpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Displaying Child Page Links in A Template</title>
		<link>http://matt.thiessen.us/2009/02/displaying-child-page-links-in-your-template/</link>
		<comments>http://matt.thiessen.us/2009/02/displaying-child-page-links-in-your-template/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 00:30:06 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=165</guid>
		<description><![CDATA[&#60;?php /* Template Name: Child Page List */ ?&#62;&#60;?php get_header(); ?&#62; &#60;div class=&#34;narrow_column&#34;&#62; &#60;?php if(have_posts()) : ?&#62;&#60;?php while(have_posts()) : the_post(); ?&#62; &#60;div class=&#34;post&#34; id=&#34;post-&#60;?php the_ID(); ?&#62;&#34;&#62; &#60;h2&#62;&#60;a href=&#34;&#60;?php the_permalink(); ?&#62;&#34; rel=&#34;bookmark&#34;&#62;&#60;?php the_title(); ?&#62;&#60;/a&#62;&#60;/h2&#62; &#60;div class=&#34;entry&#34;&#62; &#60;?php the_content(); ?&#62; &#60;?php $children = wp_list_pages('title_li=&#38;child_of=' . $post-&#62;ID . '&#38;echo=0'); if ($children) { ?&#62; &#60;ul&#62; &#60;?php echo( $children ); [...]]]></description>
			<content:encoded><![CDATA[<pre class="wp-code-highlight prettyprint">
&lt;?php /*
	Template Name: Child Page List
*/ ?&gt;&lt;?php get_header(); ?&gt;

			&lt;div class=&quot;narrow_column&quot;&gt;

&lt;?php if(have_posts()) : ?&gt;&lt;?php while(have_posts()) : the_post(); ?&gt;
&lt;div class=&quot;post&quot; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;

	&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
	&lt;div class=&quot;entry&quot;&gt;

		&lt;?php the_content(); ?&gt;

		&lt;?php $children = wp_list_pages('title_li=&amp;child_of=' . $post-&gt;ID . '&amp;echo=0');
			if ($children) { ?&gt;

&lt;ul&gt;
  &lt;?php  echo( $children ); ?&gt;
&lt;/ul&gt;
&lt;?php } ?&gt;
		&lt;?php edit_post_link('Edit', '&lt;p&gt;', '&lt;/p&gt;'); ?&gt;

		&lt;!--
		&lt;?php trackback_rdf(); ?&gt;
		--&gt;

		&lt;div class=&quot;comments-template&quot;&gt;&lt;?php comments_template(); ?&gt;&lt;/div&gt;

	&lt;/div&gt;&lt;!-- end entry --&gt;

&lt;/div&gt;&lt;!-- end post --&gt;
&lt;?php endwhile; ?&gt;

&lt;?php include (TEMPLATEPATH . '/browse.php'); ?&gt;

&lt;?php else : ?&gt;

&lt;div class=&quot;post&quot;&gt;

	&lt;h2&gt;&lt;?php _e('Not Found'); ?&gt;&lt;/h2&gt;
	&lt;div class=&quot;entry&quot;&gt;
&lt;p class=&quot;notfound&quot;&gt;&lt;?php _e('Sorry, but you are looking for something that isn&amp;#39;t here.'); ?&gt;&lt;/p&gt;
	&lt;/div&gt;

&lt;/div&gt;

&lt;?php endif; ?&gt;

			&lt;/div&gt;&lt;!-- end narrow column --&gt;

&lt;?php get_footer(); ?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2009/02/displaying-child-page-links-in-your-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deprecated innerHTML</title>
		<link>http://matt.thiessen.us/2009/02/deprecated-innerhtml/</link>
		<comments>http://matt.thiessen.us/2009/02/deprecated-innerhtml/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 19:14:08 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=136</guid>
		<description><![CDATA[This is a JavaScript example of how to use the createTextNode instead of the deprecated innerHTML. There is also an example of how to use the removeChild function if the node you want to add to has child nodes. &#60;script type=&#34;text/javascript&#34;&#62; function redmatchJobCount() { var redmatchJobCount = &#34;&#60;?php echo(getRedmatchJobCount()); ?&#62;&#34;; // create this: &#60;span class=&#34;count&#34;&#62;309&#60;/span&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>This is a JavaScript example of how to use the createTextNode instead of the deprecated innerHTML.  There is also an example of how to use the removeChild function if the node you want to add to has child nodes.</p>
<pre class="wp-code-highlight prettyprint">&lt;script type=&quot;text/javascript&quot;&gt;

	function redmatchJobCount() {

		var redmatchJobCount = &quot;&lt;?php echo(getRedmatchJobCount()); ?&gt;&quot;;

		// create this: &lt;span class=&quot;count&quot;&gt;309&lt;/span&gt;
		var textObj1 = document.createTextNode(redmatchJobCount);
		var span1 = document.createElement(&quot;span&quot;);
		span1.className = &quot;count&quot;;
		span1.appendChild(textObj1);

		// create this: &lt;span class=&quot;jobs_online&quot;&gt;Jobs Online&lt;/span&gt;
		var textObj2 = document.createTextNode(&quot; Jobs Online&quot;);
		var span2 = document.createElement(&quot;span&quot;);
		span2.className = &quot;jobs_online&quot;;
		span2.appendChild(textObj2);

		// remove existing child nodes from the parent node
		while(document.getElementById('jobcount').hasChildNodes()) {
			document.getElementById('jobcount').removeChild(document.getElementById('jobcount').firstChild);
		}

		// add newly create span tags to the parent node
		document.getElementById('jobcount').appendChild(span1);
		document.getElementById('jobcount').appendChild(span2);

	}

	if(typeof addLoadEvent != 'function') {
		function addLoadEvent(func) {
			var oldonload = window.onload;
			if (typeof window.onload != 'function') {
				window.onload = func;
			}
			else {
				window.onload = function() {
					if (oldonload) {
						oldonload();
					}
					func();
				}
			}
		}
	}

	addLoadEvent(redmatchJobCount);

&lt;/script&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2009/02/deprecated-innerhtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firebug Lite</title>
		<link>http://matt.thiessen.us/2009/01/firebug-lite/</link>
		<comments>http://matt.thiessen.us/2009/01/firebug-lite/#comments</comments>
		<pubDate>Thu, 08 Jan 2009 22:19:52 +0000</pubDate>
		<dc:creator>matt</dc:creator>
				<category><![CDATA[Coding]]></category>

		<guid isPermaLink="false">http://matt.thiessen.us/?p=113</guid>
		<description><![CDATA[Finally!!! Now you can use Firebug in IE. But before you wet yourself . . . it is the &#8220;Lite&#8221; version. Then on the other hand it is far better than nothing. Check it out . . .]]></description>
			<content:encoded><![CDATA[<p>Finally!!! Now you can use Firebug in IE. But before you wet yourself . . . it is the &#8220;Lite&#8221; version. Then on the other hand it is far better than nothing. <a href="http://getfirebug.com/lite.html">Check it out</a> . . .</p>
]]></content:encoded>
			<wfw:commentRss>http://matt.thiessen.us/2009/01/firebug-lite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

