<?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>klenwell press &#187; Failsafety</title>
	<atom:link href="http://klenwell.com/press/category/failsafety/feed/" rel="self" type="application/rss+xml" />
	<link>http://klenwell.com/press</link>
	<description>A Developer's Broadsheet</description>
	<lastBuildDate>Fri, 13 Jan 2012 14:51:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.2</generator>
		<item>
		<title>CakePHP Query Method Does Support Bind Parameters</title>
		<link>http://klenwell.com/press/2009/10/cakephp-query-bind-parameters/</link>
		<comments>http://klenwell.com/press/2009/10/cakephp-query-bind-parameters/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 22:13:02 +0000</pubDate>
		<dc:creator>klenwell</dc:creator>
				<category><![CDATA[Failsafety]]></category>
		<category><![CDATA[cakephp]]></category>

		<guid isPermaLink="false">http://klenwell.com/press/?p=153</guid>
		<description><![CDATA[Just came across a post from a few months ago where I stated that CakePhp doesn&#8217;t support bind parameters. I have learned since then that this is not true. Happily, it does support bind parameters. An example I have used successfully: function query_bottom_count($bottom_value, $start_uts, $end_uts) { $sql = &#60;&#60;&#60;XSQL SELECT REPLACE( SUBSTRING_INDEX( SUBSTRING_INDEX( last_result_url, &#039;://&#039;, [...]]]></description>
			<content:encoded><![CDATA[<p>Just came across <a href="http://www.klenwell.com/press/2009/01/cakephp-custom-pagination/">a post from a few months ago</a> where I stated that CakePhp doesn&#8217;t support bind parameters.  I have learned since then that this is not true.  Happily, it does support bind parameters.  An example I have used successfully:</p>
<pre class="brush: php">
    function query_bottom_count($bottom_value, $start_uts, $end_uts)
    {
        $sql = &lt;&lt;&lt;XSQL
SELECT
    REPLACE( SUBSTRING_INDEX( SUBSTRING_INDEX( last_result_url,
        &#039;://&#039;, -1 ) , &#039;/&#039;, 1 ) , &#039;www.&#039;, &#039;&#039; ) AS domain,
    COUNT( REPLACE( SUBSTRING_INDEX( SUBSTRING_INDEX( last_result_url, &#039;://&#039;, -1 ) ,
        &#039;/&#039;, 1 ) , &#039;www.&#039;, &#039;&#039; ) ) AS hits
FROM queries as Query
WHERE insert_uts &gt;= ?
AND insert_uts &lt; ?
GROUP BY domain HAVING hits = ?;
XSQL;

        $ParamList = array($start_uts, $end_uts, $bottom_value);
        $Data = $this-&gt;query($sql, $ParamList);
        if ( !$Data ) return 0;
        return count($Data);
    }
</pre>
<p>Just setting the record straight.</p>
]]></content:encoded>
			<wfw:commentRss>http://klenwell.com/press/2009/10/cakephp-query-bind-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Upgrade</title>
		<link>http://klenwell.com/press/2009/09/wordpress-upgrade/</link>
		<comments>http://klenwell.com/press/2009/09/wordpress-upgrade/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 17:44:19 +0000</pubDate>
		<dc:creator>klenwell</dc:creator>
				<category><![CDATA[Failsafety]]></category>
		<category><![CDATA[wp]]></category>

		<guid isPermaLink="false">http://klenwell.com/press/?p=142</guid>
		<description><![CDATA[After reading this alarming post on slashdot, and coming across similar reports on reddit and elsewhere, I decided it was time to bite the bullet and upgrade. I did it the long, manual way. Not as tough as helping your sister move. But it still took about an hour to complete. This post is mainly [...]]]></description>
			<content:encoded><![CDATA[<p>After reading <a href="http://developers.slashdot.org/story/09/09/05/2210237/Wordpressorg-Warns-of-Active-Worm-Hacking-Blogs" onclick="window.open(this.href,'_blank');return false;">this alarming post on slashdot</a>, and coming across similar reports on reddit and elsewhere, I decided it was time to bite the bullet and upgrade.  I did it <a href="http://codex.wordpress.org/Upgrading_WordPress_Extended" onclick="window.open(this.href,'_blank');return false;">the long, manual way</a>.  Not as tough as helping your sister move.  But it still took about an hour to complete.</p>
<p>This post is mainly just to insure that everything is working correctly.  More sporadic posting to follow.</p>
]]></content:encoded>
			<wfw:commentRss>http://klenwell.com/press/2009/09/wordpress-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firebug Lite with IE6: not the solution I hoped it was</title>
		<link>http://klenwell.com/press/2009/01/firebug-lite-with-ie6/</link>
		<comments>http://klenwell.com/press/2009/01/firebug-lite-with-ie6/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 19:17:24 +0000</pubDate>
		<dc:creator>klenwell</dc:creator>
				<category><![CDATA[Failsafety]]></category>

		<guid isPermaLink="false">http://klenwell.com/press/?p=41</guid>
		<description><![CDATA[IE6 is one of the banes of my existence. We still have a user-base for it at the office. A small one, but I, my team, my boss, and some his bosses are still part of it. And since I have to code for IE6 at work, I keep IE6 installed at home. (The fact [...]]]></description>
			<content:encoded><![CDATA[<p>IE6 is one of the banes of my existence.  We still have a user-base for it at the office.  A small one, but I, my team, my boss, and some his bosses are still part of it.  And since I have to code for IE6 at work, I keep IE6 installed at home.  (The fact that Windows only allows one version of IE at a time doesn&#8217;t help any, though I am familiar with <a href="http://tredosoft.com/Multiple_IE">MultipleIEs</a>.) And this makes fast web development for multiple platforms a nightmare.</p>
<p>There are two problems I have with javascript in IE6.  One, it is strict.  More strict than Firefox for certain things that don&#8217;t seem like they should make a lot of difference to me.  That&#8217;s fine.  I don&#8217;t fault it for following the rules.  This is where the other problem comes up.  It doesn&#8217;t do a great job telling you when you&#8217;ve broken the rules.</p>
<p><a href="http://phosphorusandlime.blogspot.com/2008_07_01_archive.html">I stumbled across Firebug Lite</a> a few months ago when I was trying to come up with a workaround for IE6&#8242;s lack of a console object.  Recently, my manager (who&#8217;s a good programmer and no PHB) discovered it and mentioned it, so I started kicking it around a bit more.  I realized there was one thing for which it could really be helpful: debugging.</p>
<p>Now I know there are javascript debuggers for IE6.  <a href="http://www.jonathanboutelle.com/mt/archives/2006/01/howto_debug_jav.html">This post</a> how explains how to get it working with Microsoft Office.  If you don&#8217;t have Office, Microsoft used to offer a free download: scd10en.exe.  I don&#8217;t think you can find it on Microsoft&#8217;s site anymore, but <a href="http://www.google.com/search?hl=en&amp;q=scd10en.exe&amp;btnG=Search">google it</a> and you&#8217;ll probably be able to find an old copy laying around somewhere.</p>
<p>But even this debugger is clunky (it pops open new windows), flaky (for some errors, it will consistently freeze up on me), and just painful when compared to something like Firebug in Firefox.</p>
<p>So I created a simple test script to test whether Firebug Lite could solve this problem.  (Find the script <a href="http://klenwell.googlecode.com/svn/trunk/projects/javascript/sandbox/firebug_lite.htm">here</a>.) Alas, it looks like the debugger is one of the heavier parts of Firebug that the Lite version left out:</p>
<div id="attachment_43" class="wp-caption alignnone" style="width: 310px"><a href="http://www.klenwell.com/press/wp-content/uploads/2009/01/firebuglite.png"><img class="size-medium wp-image-43" title="firebuglite" src="http://www.klenwell.com/press/wp-content/uploads/2009/01/firebuglite-300x158.png" alt="screenshot" width="300" height="158" /></a><p class="wp-caption-text">screenshot</p></div>
<p>So I soldier on with IE6 and it&#8217;s crappy scd10en debugging tool.</p>
]]></content:encoded>
			<wfw:commentRss>http://klenwell.com/press/2009/01/firebug-lite-with-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Category: Failsafety</title>
		<link>http://klenwell.com/press/2009/01/category-failsafety/</link>
		<comments>http://klenwell.com/press/2009/01/category-failsafety/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 18:50:16 +0000</pubDate>
		<dc:creator>klenwell</dc:creator>
				<category><![CDATA[Failsafety]]></category>

		<guid isPermaLink="false">http://klenwell.com/press/?p=39</guid>
		<description><![CDATA[In this category, I plan to look at topics related to security, reliability, and to a lesser extent efficiency as it relates to software development and, occasionally, life in general.]]></description>
			<content:encoded><![CDATA[<p>In this category, I plan to look at topics related to security, reliability, and to a lesser extent efficiency as it relates to software development and, occasionally, life in general.</p>
]]></content:encoded>
			<wfw:commentRss>http://klenwell.com/press/2009/01/category-failsafety/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

