<?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>chromasynthetic &#187; bug</title>
	<atom:link href="http://www.chromasynthetic.com/blog/?feed=rss2&#038;tag=bug" rel="self" type="application/rss+xml" />
	<link>http://www.chromasynthetic.com/blog</link>
	<description>a blog about web design and development</description>
	<lastBuildDate>Tue, 05 May 2009 19:35:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JibberBook XML Update</title>
		<link>http://www.chromasynthetic.com/blog/?p=112</link>
		<comments>http://www.chromasynthetic.com/blog/?p=112#comments</comments>
		<pubDate>Wed, 07 Nov 2007 01:42:18 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[scripts]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[guestbook]]></category>

		<guid isPermaLink="false">http://www.chromasynthetic.com/blog/archive/112</guid>
		<description><![CDATA[I recently discovered a bug that occurred when simultaneous reading from and writing to the XML file was attempted that sometimes resulted in the deletion of all of the comments. Pretty serious I&#8217;d say, which is why I&#8217;ve been working hard to patch it. You can download the Comments class directly and place it in [...]]]></description>
			<content:encoded><![CDATA[<p>I recently discovered a bug that occurred when simultaneous reading from and writing to the XML file was attempted that sometimes resulted in the deletion of all of the comments. Pretty serious I&#8217;d say, which is why I&#8217;ve been working hard to patch it. You can download the <a href="http://www.chromasynthetic.com/scripts/jibberbook/comments.zip">Comments class</a> directly and place it in the &#8216;inc&#8217; directory, or you can find it in the main package.</p>
<p>I used PHP&#8217;s <code>flock()</code>, or file locking, method to fix the problem. It&#8217;s a few milliseconds slower, but it&#8217;s worth not losing all your comments! If you don&#8217;t plan on extending the Comments class at all, it can be optimized to read quicker by saving the results in the constructor function.</p>
<p>As this has nothing to do with JibberBook&#8217;s core, its version number will remain at 2.0.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chromasynthetic.com/blog/?feed=rss2&amp;p=112</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Random Blank Pages Defeated!</title>
		<link>http://www.chromasynthetic.com/blog/?p=4</link>
		<comments>http://www.chromasynthetic.com/blog/?p=4#comments</comments>
		<pubDate>Fri, 01 Sep 2006 20:27:47 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[web development]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[meta]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[random_blank_pages]]></category>

		<guid isPermaLink="false">http://www.chromasynthetic.com/blog/archives/4</guid>
		<description><![CDATA[I&#8217;ve been battling this fiendish problem for weeks now. Seemingly randomly, blank pages would result from clicking navigation links in a site I was working on, and only in Internet Explorer. The page didn&#8217;t load at all. The URL stayed the same, the source couldn&#8217;t be viewed, and clicking refresh fixed it. The problem didn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been battling this fiendish problem for weeks now. Seemingly randomly, blank pages would result from clicking navigation links in a site I was working on, and only in Internet Explorer. The page didn&#8217;t load at all. The URL stayed the same, the source couldn&#8217;t be viewed, and clicking refresh fixed it. The problem didn&#8217;t occur on my server at home (I don&#8217;t have the internet), so I didn&#8217;t have a lot of time to test it live, only a half hour during my lunch break at work.</p>
<p><span id="more-4"></span>It&#8217;s frustrating not knowing what&#8217;s causing a problem, and for a while, I just ignored it. But then it popped up again in another site! This time it only happened to one page. <em>That should narrow it down</em>, I thought. <em>I&#8217;ll just compare this page with one that works and isolate the problem</em>. That didn&#8217;t quite work out because I focused on the wrong area. I thought the problem all along was using some simplexml functions in php, and when I found a difference in the way I looped through some data, I thought that was it. It wasn&#8217;t. Then I started getting mad and taking out random things. Suddenly, when I commented out an include that checks the session to see whether someone is logged in or not, it worked! But I kind of needed that bit. So I started taking out other stuff, this time in the html.</p>
<p><strong>And then I found it.</strong> The evil little monster, the source of my nightmares, the thorn in my side! Gaze upon it if you can muster the courage!</p>
<p><code>&lt;meta http-equiv="content-type" content="text/html; charset=windows-1250"&gt;</code></p>
<p>This line of code was generated from the template file I used in PSPad. I don&#8217;t have much knowledge of meta tags or why it would break only IE. Maybe it has something to do with caching, I don&#8217;t know. All I know is that my pages work now. If any of you know, please leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chromasynthetic.com/blog/?feed=rss2&amp;p=4</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
