<?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"
	>

<channel>
	<title>Code Fix &#187; Jordan</title>
	<atom:link href="http://www.code-fix.com/author/jordan/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.code-fix.com</link>
	<description>Fix it or fixate.</description>
	<pubDate>Tue, 25 Sep 2007 12:40:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>Catching static from your archives page?</title>
		<link>http://www.code-fix.com/2007/03/02/catching-static-from-your-archives-page/</link>
		<comments>http://www.code-fix.com/2007/03/02/catching-static-from-your-archives-page/#comments</comments>
		<pubDate>Sat, 03 Mar 2007 01:52:24 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
		
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.code-fix.com/2007/03/03/catching-static-from-your-archives-page/</guid>
		<description><![CDATA[I&#8217;m using the Tarski theme, and loving it. It does a lot of things really well, which makes the one or two awkward bits stand out that much more. If you have Tarski create &#8220;Archives&#8221; and &#8220;Tags&#8221; pages, make sure they are viewable by anonymous users. When I logged out and viewed those pages, 404 [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using the <a href="http://tarskitheme.com/">Tarski</a> theme, and loving it. It does a lot of things really well, which makes the one or two awkward bits stand out that much more. If you have Tarski create &#8220;Archives&#8221; and &#8220;Tags&#8221; pages, make sure they are viewable by anonymous users. When I logged out and viewed those pages, 404 errors (Page not found) were shown.</p>
<p>Apparently, WordPress 2.1+ doesn&#8217;t display pages with any post_status other than &#8216;publish&#8217; to anonymous users. The pages Tarski creates are created with the post_status &#8217;static&#8217;. This needs to be changed from &#8217;static&#8217; to &#8216;publish&#8217; before anonymous users can see your Archives and Tags pages. However, those pages won&#8217;t even appear in the Manage section of the administrative interface.</p>
<p><span id="more-15"></span></p>
<p>To change the post_status on those pages, you have to change the database directly, using phpMyAdmin or some other database editing tool. Open the wp_posts table, and find the entries that Tarski created. The easy way to do this is to search for all the entries whose post_status is &#8220;static&#8221;. Those are the ones you want to fix. Simply edit those entries and change post_status to &#8220;publish&#8221;.</p>
<p>Now those pages will appear in the Manage interface, and anonymous users will be able to see them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.code-fix.com/2007/03/02/catching-static-from-your-archives-page/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Access denied</title>
		<link>http://www.code-fix.com/2007/03/01/access-denied/</link>
		<comments>http://www.code-fix.com/2007/03/01/access-denied/#comments</comments>
		<pubDate>Fri, 02 Mar 2007 03:46:37 +0000</pubDate>
		<dc:creator>Jordan</dc:creator>
		
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.code-fix.com/2007/03/01/access-denied/</guid>
		<description><![CDATA[My company is making everyone upgrade to the latest Symantec firewall/antivirus combo. The upgrade to Symantec Client Security worked fine on my desktop (other than the three reboots required to uninstall the existing antivirus and firewall pieces), but weird things started happening on my laptop after I upgraded.
The first thing I noticed happening was that [...]]]></description>
			<content:encoded><![CDATA[<p>My company is making everyone upgrade to the latest Symantec firewall/antivirus combo. The upgrade to Symantec Client Security worked fine on my desktop (other than the three reboots required to uninstall the existing antivirus and firewall pieces), but weird things started happening on my laptop after I upgraded.</p>
<p>The first thing I noticed happening was that Gmail Notifier couldn&#8217;t connect. It kept failing to connect to the server, returning error 12029, &#8220;Can not log in to mailbox&#8221;. Firefox could open Google Mail without a problem, but Internet Explorer could not. I looked in the new firewall log to see if some new rule was messing things up, and sure enough, access was being blocked due to the rule &#8220;Block access to secure sites&#8221;. That turned out to be a spectacularly unhelpful rule.</p>
<p><span id="more-12"></span></p>
<p>What really happened is that the Windows SSL service was somehow disabled by the SCS install. Instead of being set to automatically run, it was set to manually run, and was stopped by default. Changing this service back to &#8220;automatic&#8221; and rebooting restored access to secure (https) sites.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.code-fix.com/2007/03/01/access-denied/feed/</wfw:commentRss>
		</item>
		<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 for the stylesheets, images, etc, [...]]]></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>
		</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>
		</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 can [...]]]></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>
		</item>
	</channel>
</rss>
