<?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>MaisonBisson.com &#187; workaround</title>
	<atom:link href="http://maisonbisson.com/blog/post/tag/workaround/feed/" rel="self" type="application/rss+xml" />
	<link>http://maisonbisson.com</link>
	<description>A bunch of stuff I would have emailed you about.</description>
	<lastBuildDate>Sat, 14 Nov 2009 20:14:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fixing Batcache to Send The Correct Content-Type Header</title>
		<link>http://maisonbisson.com/blog/post/13773/fixing-batcache-to-send-the-correct-content-type-header/</link>
		<comments>http://maisonbisson.com/blog/post/13773/fixing-batcache-to-send-the-correct-content-type-header/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 17:19:12 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[batcache]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/?p=13773</guid>
		<description><![CDATA[
I&#8217;m a fan of Batcache, the Memcached-based WordPress full-page cache solution, but I&#8217;ve discovered that it ignores the content-type header set when the page is initially generated and re-sends all content with content-type: text/html. I posted a note about this at the WordPress support forums, but then I realized what the problem was: apache_response_headers() doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-13773"><!-- &nbsp; --></abbr>
<p>I&#8217;m a fan of <a href="http://wordpress.org/extend/plugins/batcache/" title="WordPress › Batcache « WordPress Plugins">Batcache</a>, the Memcached-based WordPress full-page cache solution, but I&#8217;ve discovered that it ignores the <code>content-type</code> header set when the page is initially generated and re-sends all content with <code>content-type: text/html</code>. I <a href="http://wordpress.org/support/topic/263161" title="WordPress › Support » Batcache ignores content type header, sends everything as text/html">posted a note about this</a> at the WordPress support forums, but then I realized what the problem was: <a href="http://php.net/apache_response_headers" title="PHP: apache_response_headers - Manual"><code>apache_response_headers()</code></a> doesn&#8217;t return the content type, but <a href="http://php.net/headers_list" title="PHP: headers_list - Manual"><code>headers_list()</code></a> does.</p>
<p>The solution is to replace <code>apache_response_headers()</code> with <code>headers_list()</code> <a href="http://plugins.trac.wordpress.org/browser/batcache/trunk/advanced-cache.php#L93" title="/batcache/trunk/advanced-cache.php – WordPress Plugin Repository">in the code</a>, though <code>headers_list()</code> is PHP 5+ only, so it might be a while before we see a change like this committed. Still, I&#8217;ll shamelessly tag <a href="http://andy.wordpress.com/" title="Andy Skelton">Andy Skelton</a> (Batcache&#8217;s author) on it.</p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/13773/fixing-batcache-to-send-the-correct-content-type-header/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Calculating Distance Between Points In MySQL</title>
		<link>http://maisonbisson.com/blog/post/12146/calculating-distance-between-points-in-mysql/</link>
		<comments>http://maisonbisson.com/blog/post/12146/calculating-distance-between-points-in-mysql/#comments</comments>
		<pubDate>Wed, 11 Jun 2008 02:15:57 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[distance]]></category>
		<category><![CDATA[geolocation]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[MySQL spatial functions]]></category>
		<category><![CDATA[spatial functions]]></category>
		<category><![CDATA[unimplemented]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/blog/?p=12146</guid>
		<description><![CDATA[
MySQL has some powerful, and perhaps underused spatial extensions, but the most interesting functions are still unimplemented: “Note: Currently, MySQL does not implement these functions&#8230;”
Among those as-yet unimplemented functions is DISTANCE(). Alternatives can be found here and here, though neither is clean or simple. I wonder if a simple MBRContains() is good enough, though&#8230;
]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-12146"><!-- &nbsp; --></abbr>
<p>MySQL has some powerful, and perhaps underused <a href="http://dev.mysql.com/doc/refman/5.0/en/spatial-extensions.html" title="MySQL :: MySQL 5.0 Reference Manual :: 18 Spatial Extensions">spatial extensions</a>, but the <a href="http://dev.mysql.com/doc/refman/5.0/en/functions-that-test-spatial-relationships-between-geometries.html" title="MySQL :: MySQL 5.0 Reference Manual :: 18.5.6 Functions That Test Spatial Relationships Between Geometries">most interesting functions</a> are still <a href="http://maisonbisson.com/blog/post/12145/mysql-documentation">unimplemented</a>: “Note: Currently, MySQL does not implement these functions&#8230;”</p>
<p>Among those as-yet unimplemented functions is <code>DISTANCE()</code>. Alternatives can be found <a href="http://www.zcentric.com/blog/2007/03/calculate_distance_in_mysql_wi.html" title="Calculate Distance In Mysql with Latitude and Longitude (My Random Blog)">here</a> and <a href="http://www.scribd.com/doc/2569355/Geo-Distance-Search-with-MySQL" title="Geo Distance Search with MySQL">here</a>, though neither is clean or simple. I wonder if a simple <a href="http://dev.mysql.com/doc/refman/5.0/en/relations-on-geometry-mbr.html"><code>MBRContains()</code></a> is good enough, though&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/12146/calculating-distance-between-points-in-mysql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why Can&#8217;t I Re-Check Spam With Akismet &amp; WordPress 2.5? (Workaround)</title>
		<link>http://maisonbisson.com/blog/post/12119/why-cant-i-re-check-spam-with-akismet-wordpress-25-workaround/</link>
		<comments>http://maisonbisson.com/blog/post/12119/why-cant-i-re-check-spam-with-akismet-wordpress-25-workaround/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 11:18:30 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[recheck]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/blog/?p=12119</guid>
		<description><![CDATA[
I recently installed WordPress 2.5 and among the changes I noticed was a loss of Akismet&#8217;s “Recheck Spam” button (or something like that. It didn&#8217;t seem like such a problem at the time, but then I got swamped with so much trackback and comment spam that the flood DOS&#8216;d my server. I had to disable [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-12119"><!-- &nbsp; --></abbr>
<p>I <a href="http://maisonbisson.com/blog/post/12113/wordpress-25-out-maisonbisson-upgraded" title="WordPress 2.5 Out, MaisonBisson Upgraded">recently installed</a> <a href="http://wordpress.org/development/2008/03/wordpress-25-brecker/" title="WordPress › Blog » WordPress 2.5">WordPress 2.5</a> and among the changes I noticed was a loss of <a href="http://akismet.com/" title="Stop Comment Spam and Trackback Spam « Akismet">Akismet</a>&#8217;s “Recheck Spam” button (or something like that. It didn&#8217;t seem like such a problem at the time, but then I got swamped with so much trackback and comment spam that the flood <a href="http://en.wikipedia.org/wiki/Denial-of-service_attack" title="Denial-of-service attack - Wikipedia, the free encyclopedia">DOS</a>&#8216;d my server. I had to disable comments and trackbacks for a time, which brought my server back, but my <a href="http://codex.wordpress.org/Comment_Moderation">moderation queue</a> still had over 500 comments waiting for me. Most of those are spam, but I like to think there are a couple real comments among them.</p>
<p>And that&#8217;s when I really wondered where Akismet&#8217;s “Recheck Queue for Spam” button went.</p>
<p>I looked inside <a href="http://svn.wp-plugins.org/akismet/trunk/akismet.php">the code</a> and found the appropriate functions there. In fact, it even includes a WP2.5 specific function, <code>akismet_check_for_spam_button()</code>. I&#8217;m not exactly sure why the button doesn&#8217;t appear, but at least all the code is still there to do the work, and all I have to do is manually check the URL:</p>
<p><code>edit-comments.php?page=akismet-admin&amp;recheckqueue=true&amp;noheader=true</code></p>
<p>And after running that a few times (it timed out a few times), my moderation queue went from over 500 to under 100. That&#8217;s something I can manage.</p>
<p>It&#8217;s worth noting, however, that all a person really has to do is update the darn Aksimet plugin. <strong>Reminder to self:</strong> It installs with the rest of WP with SVN, but I it doesn&#8217;t update with the rest of WP. A quick <code>svn up</code> inside the directory, however, is all it takes.</p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/12119/why-cant-i-re-check-spam-with-akismet-wordpress-25-workaround/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Users vs. Network Printers in WinXP</title>
		<link>http://maisonbisson.com/blog/post/11106/users-vs-network-printers-in-winxp/</link>
		<comments>http://maisonbisson.com/blog/post/11106/users-vs-network-printers-in-winxp/#comments</comments>
		<pubDate>Thu, 26 Jan 2006 12:00:52 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[add a printer]]></category>
		<category><![CDATA[broken]]></category>
		<category><![CDATA[network printers]]></category>
		<category><![CDATA[printers]]></category>
		<category><![CDATA[user permissions]]></category>
		<category><![CDATA[users]]></category>
		<category><![CDATA[win xp]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[windows xp]]></category>
		<category><![CDATA[workaround]]></category>
		<category><![CDATA[xp]]></category>
		<category><![CDATA[xp user permissions]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/blog/?p=11106</guid>
		<description><![CDATA[
It&#8217;s been a problem we&#8217;ve struggled with here for much longer than we should have, and it took a hotshot new guy in desktop support to show us the answer. But if you know the right magic, you can add a printer to Windows XP and make it available to all users.
See, if you add [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-11106"><!-- &nbsp; --></abbr>
<p>It&#8217;s been a problem we&#8217;ve struggled with here for much longer than we should have, and it took a <a href="http://www.vaskenhauri.com/blog/">hotshot new guy</a> in desktop support to show us the answer. But if you know the right magic, you can add a printer to Windows XP and make it available to all users.</p>
<p>See, if you add the printer using the “add printer” wizard, it&#8217;s available only to that user. But if you use the command line, then you can throw a switch to make it available to any user who logs in to that machine. Here&#8217;s the instructions he offered us:</p>
<ol>
<li>Log in to the domain with an administrative account.<br />&nbsp;</li>
<li>Type the following into the command prompt:
<p><em>rundll32 printui.dll,PrintUIEntry /ga /n\\printers\%printername%</em></p>
<p>In other words, to add mylj03, the command line is:</p>
<p><em>rundll32 printui.dll,PrintUIEntry /ga /n\\printers\mylj03</em><br />&nbsp;</li>
<li>The printer is now available to all users who log in with a domain account.</li>
</ol>
<p><strong>update:</strong> <a href="http://bloggingonbehalfof.us/alan%20baker">Alan Baker</a> wants me to make it clear that we&#8217;ve been able to do this all along. He explains that a user with administrative privileges could add a network printer on a local port, and make it available to all users. Point taken. Counterpoint: why is Windows so freakin&#8217; useless? Neither solution works as well as a little &#8220;make available to all users&#8221; checkbox would.</p>
<p><tags>windows, windows xp, xp, win xp, printers, network printers, add a printer, users, user permissions, broken, workaround, xp user permissions</tags></p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/11106/users-vs-network-printers-in-winxp/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Fixing position: fixed In IE</title>
		<link>http://maisonbisson.com/blog/post/10769/fixing-position-fixed-in-ie/</link>
		<comments>http://maisonbisson.com/blog/post/10769/fixing-position-fixed-in-ie/#comments</comments>
		<pubDate>Thu, 15 Sep 2005 16:26:14 +0000</pubDate>
		<dc:creator>Casey Bisson</dc:creator>
				<category><![CDATA[Blink]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css support]]></category>
		<category><![CDATA[doxdesk]]></category>
		<category><![CDATA[ie]]></category>
		<category><![CDATA[ie bug]]></category>
		<category><![CDATA[ie bugs]]></category>
		<category><![CDATA[ie css bug]]></category>
		<category><![CDATA[internet exploder]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[position fixed]]></category>
		<category><![CDATA[workaround]]></category>

		<guid isPermaLink="false">http://maisonbisson.com/blog/?p=10769</guid>
		<description><![CDATA[
It turns out the Internet Explorer doesn&#8217;t properly support CSS&#8217;s position: fixed. Google led me to the following:

How To Create &#8211; Making Internet Explorer use position: fixed;
doxdesk.com: software: fixed.js
Fixed Positioning for Windows Internet Explorer

The DoxDesk solution looks promising and simple, but I think bugs elsewhere in my layout are preventing it from working. It&#8217;s time [...]]]></description>
			<content:encoded><![CDATA[<abbr class="unapi-id" title="maisonbisson-10769"><!-- &nbsp; --></abbr>
<p>It turns out the Internet Explorer doesn&#8217;t properly support CSS&#8217;s <code>position: fixed</code>. Google led me to the following:</p>
<ul>
<li><a href="http://www.howtocreate.co.uk/fixedPosition.html" title="How To Create - Making Internet Explorer use position: fixed;">How To Create &#8211; Making Internet Explorer use position: fixed;</a></li>
<li><a href="http://www.doxdesk.com/software/js/fixed.html" title="doxdesk.com: software: fixed.js">doxdesk.com: software: fixed.js</a></li>
<li><a href="http://tagsoup.com/-dev/null-/css/fixed/" title="Fixed Positioning for Windows Internet Explorer">Fixed Positioning for Windows Internet Explorer</a></li>
</ul>
<p>The DoxDesk solution looks promising and simple, but I think bugs elsewhere in my layout are preventing it from working. It&#8217;s time to start again from scratch.</p>
<p><!-- technorati tags start -->
<p style="text-align:right;font-size:10px;">tags: <a href="http://www.technorati.com/tag/bugs" rel="tag">bugs</a>, <a href="http://www.technorati.com/tag/css" rel="tag">css</a>, <a href="http://www.technorati.com/tag/css support" rel="tag">css support</a>, <a href="http://www.technorati.com/tag/doxdesk" rel="tag">doxdesk</a>, <a href="http://www.technorati.com/tag/ie" rel="tag">ie</a>, <a href="http://www.technorati.com/tag/ie bug" rel="tag">ie bug</a>, <a href="http://www.technorati.com/tag/ie bugs" rel="tag">ie bugs</a>, <a href="http://www.technorati.com/tag/ie css bug" rel="tag">ie css bug</a>, <a href="http://www.technorati.com/tag/internet exploder" rel="tag">internet exploder</a>, <a href="http://www.technorati.com/tag/internet explorer" rel="tag">internet explorer</a>, <a href="http://www.technorati.com/tag/position fixed" rel="tag">position fixed</a>, <a href="http://www.technorati.com/tag/workaround" rel="tag">workaround</a></p>
<p><!-- technorati tags end --></p>
]]></content:encoded>
			<wfw:commentRss>http://maisonbisson.com/blog/post/10769/fixing-position-fixed-in-ie/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>