<?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>Code Fix &#187; 2007 &#187; February</title>
	<atom:link href="http://www.code-fix.com/2007/02/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.code-fix.com</link>
	<description>Fix it or fixate.</description>
	<lastBuildDate>Tue, 25 Sep 2007 12:40:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>I&#8217;m starting to see a theme here</title>
		<link>http://www.code-fix.com/2007/02/27/im-starting-to-see-a-theme-here/</link>
		<comments>http://www.code-fix.com/2007/02/27/im-starting-to-see-a-theme-here/#comments</comments>
		<pubDate>Wed, 28 Feb 2007 00:20:44 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.code-fix.com/2007/02/27/im-starting-to-see-a-theme-here/</guid>
		<description><![CDATA[I hit this one after installing the Simpla theme, but you could hit this with any theme. Symptoms (after switching to a new WordPress theme): The screenshot for the theme doesnt show up in the theme selector The pages on the blog are unstyled Theme images don&#8217;t load correctly Trying to manually open the URL&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>I hit this one after installing the <a href="http://ifelse.co.uk/simpla">Simpla</a> theme, but you could hit this with any theme.</p>
<p>Symptoms (after switching to a new <a href="http://www.wordpress.org">WordPress</a> theme):</p>
<ul>
<li>The screenshot for the theme doesnt show up in the theme selector</li>
<li>The pages on the blog are unstyled</li>
<li>Theme images don&#8217;t load correctly</li>
<li>Trying to manually open the URL&#8217;s for the stylesheets, images, etc, gives you a 404 page</li>
</ul>
<p><span id="more-10"></span><br />
The problem was that permissions were not set correctly on the unzipped theme folder. I had to make sure there was read and execute access granted on the folder and all the theme files (chmod 755 for you command-line junkies). You could probably do this through your FTP client, if it&#8217;s a decent one (I recommend <a href="http://www.smartftp.com">Smart FTP</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.code-fix.com/2007/02/27/im-starting-to-see-a-theme-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cache me if you can</title>
		<link>http://www.code-fix.com/2007/02/27/cache-me-if-you-can/</link>
		<comments>http://www.code-fix.com/2007/02/27/cache-me-if-you-can/#comments</comments>
		<pubDate>Tue, 27 Feb 2007 22:44:39 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.code-fix.com/2007/02/27/cache-me-if-you-can/</guid>
		<description><![CDATA[It&#8217;s ironic that the second post on this blog is about fixing the software the blog is running on. Oh well, such is software. When I first set up this site, I wanted to make it as performance-friendly as possible, so I set up the WordPress WP-Cache plugin. Everything seemed to work fine. However, I [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s ironic that the second post on this blog is about fixing the software the blog is running on. Oh well, such is software. When I first set up this site, I wanted to make it as performance-friendly as possible, so I set up the WordPress <a href="http://mnm.uib.es/gallir/wp-cache-2/">WP-Cache plugin</a>. Everything seemed to work fine. However, I wasn&#8217;t quite finished messing with some other plugins, and I ran into issues with cached versions of pages not reflecting tweaks I was making in some of the core files.</p>
<p>Not a problem, says I&#8230;</p>
<p><span id="more-9"></span></p>
<p>I&#8217;ll just deactivate the WP-Cache plugin until I&#8217;m finished developing. As it turns out, that doesn&#8217;t work. Once you activate (on the plugins page) and enable (on the WP-Cache settings page) the WP-Cache plugin, to turn it off, you have to disable it (on the WP-Cache settings page). Deactivating the plugin does not disable caching.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.code-fix.com/2007/02/27/cache-me-if-you-can/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Here we go</title>
		<link>http://www.code-fix.com/2007/02/26/here-we-go/</link>
		<comments>http://www.code-fix.com/2007/02/26/here-we-go/#comments</comments>
		<pubDate>Tue, 27 Feb 2007 03:33:40 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
				<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.code-fix.com/?p=4</guid>
		<description><![CDATA[Enough time has been spent fixing bugs and getting basic things working. Hopefully, this site will help fix that. I mostly work with Java and Eclipse, but do enough web stuff to beat my head against a wall every once in a while. This site will have tips, tutorials, bug workarounds, and anything else I [...]]]></description>
			<content:encoded><![CDATA[<p>Enough time has been spent fixing bugs and getting basic things working. Hopefully, this site will help fix that.</p>
<p>I mostly work with Java and Eclipse, but do enough web stuff to beat my head against a wall every once in a while. This site will have tips, tutorials, bug workarounds, and anything else I can think of that people might find worthwhile.</p>
<p>I suppose I could start with the simplest and most embarrassing debugging problem I ever hit&#8230;</p>
<p><span id="more-4"></span>In Eclipse (and most interactive debuggers), you can set up expressions that are evaluated whenever the debugged process halts. Because these expressions are evaluated in the current thread context, they have full access to read (or write to) local variables. I happened to put a typo in one of these expressions, and did the ol&#8217; &#8220;assign instead of compare&#8221; trick, evaluating &#8220;str = null&#8221; instead of &#8220;str == null&#8221;.</p>
<p>I didn&#8217;t really notice the bug, and didn&#8217;t end up needing to see whether str was null or not, so I went back to another view, hiding the debug expressions I had set (out of sight, out of mind, right?). It was about that time I started noticing a bizarre new bug&#8230; whenever I would hit a breakpoint, str would be null, even if the code I was stepping through didn&#8217;t do a <em>thing</em> with str! Fancy that!</p>
<p>Lesson 1: If there is weird behavior when debugging, check to see if expressions are being evaluated without you knowing.</p>
<p>Lesson 2: Use &#8220;null == str&#8221; instead of &#8220;str == null&#8221; to avoid assignment vs. compare bugs. (this actually doesn&#8217;t work in all languages&#8230; wait for a future post)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.code-fix.com/2007/02/26/here-we-go/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

