<?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>michaelkrol.com &#187; Fixit</title>
	<atom:link href="http://michaelkrol.com/category/fixit/feed/" rel="self" type="application/rss+xml" />
	<link>http://michaelkrol.com</link>
	<description>A Web Developer's Blog Highlighting Open Source and OS X</description>
	<lastBuildDate>Mon, 22 Mar 2010 18:01:20 +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>Invoke Quicksilver In All Spaces After 10.6 (Snow Leopard) Upgrade</title>
		<link>http://michaelkrol.com/2009/09/07/invoke-quicksilver-in-all-spaces-after-106-snow-leopard-upgrade/</link>
		<comments>http://michaelkrol.com/2009/09/07/invoke-quicksilver-in-all-spaces-after-106-snow-leopard-upgrade/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 05:58:46 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Fixit]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://michaelkrol.com/?p=59</guid>
		<description><![CDATA[After upgrading to 10.6 my beloved Quicksilver had grown some new bad habits. If I wasn&#8217;t in the first space (#1 / top left), Quicksilver would bring me back there every time I invoked it. So if I was trying to open an app or run a command in Space #2, running a Quicksilver command ]]></description>
			<content:encoded><![CDATA[<p>After upgrading to 10.6 my beloved Quicksilver had grown some new bad habits. If I wasn&#8217;t in the first space (#1 / top left), Quicksilver would bring me back there every time I invoked it. So if I was trying to open an app or run a command in Space #2, running a Quicksilver command would bring me back to Space #1. VERY annoying.</p>
<p>Here&#8217;s the fix:</p>
<ol>
<li>Make sure you&#8217;re running the latest version of Quicksilver: <a title="Quicksilver Download" href="http://code.google.com/p/blacktree-alchemy/downloads/list" target="_blank">b56a7</a></li>
<li>In Preferences &gt; Application, check &#8220;Show icon in dock&#8221;</li>
</ol>
<p>Now, I don&#8217;t want the app showing up in my dock or running applications list either, but until they fix this error (which may take some time) it&#8217;s far less obnoxious than the issue I was trying to solve!!</p>
<p>As a side note, it&#8217;s very important to make sure you&#8217;re running the latest version (link above). Before updating to b56a7, I couldn&#8217;t see the Preferences screen after upgrading to 10.6 (just had a blank white panel), so obviously #1 must come before #2!</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelkrol.com/2009/09/07/invoke-quicksilver-in-all-spaces-after-106-snow-leopard-upgrade/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Solve Slow iDisk Syncing After Upgrading to 10.6 (Snow Leopard)</title>
		<link>http://michaelkrol.com/2009/09/07/solve-slow-idisk-syncing-after-upgrading-to-106-snow-leopard/</link>
		<comments>http://michaelkrol.com/2009/09/07/solve-slow-idisk-syncing-after-upgrading-to-106-snow-leopard/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 05:45:29 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Fixit]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://michaelkrol.com/?p=57</guid>
		<description><![CDATA[I use iDisk Sync (via MobileMe) to keep my desktop and my laptop in sync so I don&#8217;t have to remember to copy files back and forth every time I grab one or the other. This worked great until my upgrade to 10.6 &#8211; ever since then the iDisk status bar would say &#8220;Checking items&#8221; ]]></description>
			<content:encoded><![CDATA[<p>I use iDisk Sync (via MobileMe) to keep my desktop and my laptop in sync so I don&#8217;t have to remember to copy files back and forth every time I grab one or the other. This worked great until my upgrade to 10.6 &#8211; ever since then the iDisk status bar would say &#8220;Checking items&#8221; for hours, never really seeming to do anything. I finally found a fix that seems to have done the trick, thanks to Matio Martin and John Brissenden over at this<a title="Apple - Support" href="http://discussions.apple.com/thread.jspa?threadID=2135408&amp;start=0&amp;tstart=0" target="_blank"> very long support post</a>. Here are the steps:</p>
<ol>
<li>Go to System Preferences &gt; MobileMe &gt; iDisk</li>
<li>Switch off iDisk sync and keep it switched off</li>
<li>Log out of MobileMe in the Account tab</li>
<li>Log in again with nonsense login details (make up anything &#8211; you&#8217;ll get a login error. This somehow &#8220;resets&#8221; everything)</li>
<li>Log in properly with your correct user/pass</li>
<li>Turn iDisk syncing back on (you may need to re-enable everything on the Sync tab as well &#8211; just choose &#8220;Merge Data&#8221; &#8211; everything worked flawlessly for me)</li>
</ol>
<p>Granted, this will take some time as each machine re-downloads everything on your iDisk. It took about 30 minutes to download the 2.5GB I have on my iDisk. But once that was completed it&#8217;s working smoothly again &#8211; almost feels even faster than it was on 10.5. I can&#8217;t tell you exactly how or why it works &#8211; but it appears as if it has re-mapped all of the files and it&#8217;s no longer churning endlessly in vain.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelkrol.com/2009/09/07/solve-slow-idisk-syncing-after-upgrading-to-106-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Database Exports From phpMyAdmin Add Garbage Text After Every Link</title>
		<link>http://michaelkrol.com/2009/01/11/database-exports-from-phpmyadmin-add-garbage-text-after-every-link/</link>
		<comments>http://michaelkrol.com/2009/01/11/database-exports-from-phpmyadmin-add-garbage-text-after-every-link/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 07:17:34 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Fixit]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://michaelkrol.com/?p=43</guid>
		<description><![CDATA[This is an issue that has plagued me for months and months, and I finally found a way around this VERY strange bug.
For some reason, exporting a database from phpMyAdmin inserts garbage after EVERY LINK in the database content. So if you have a database row with &#60;a href="mylink"&#62; in the data, it will end ]]></description>
			<content:encoded><![CDATA[<p>This is an issue that has plagued me for months and months, and I finally found a way around this VERY strange bug.</p>
<p>For some reason, exporting a database from phpMyAdmin inserts garbage after EVERY LINK in the database content. So if you have a database row with <code>&lt;a href="mylink"&gt;</code> in the data, it will end up looking something like <code>&lt;a href="mylink?phpMyAdmin=hxLEzQ1rOQcEE5fSSzkpIuPI8E7"&gt; </code>after export. Obviously, this causes all kinds of issues.</p>
<p>The only way I&#8217;ve found to stop this behavior is to NOT check &#8220;<strong>Save as file</strong>&#8221; when exporting your database. Just click &#8220;<strong>Go</strong>&#8221; and let the dump print to screen. Then copy/paste it into a text file (save as .sql) and import that into your database. If the export is too large to print to screen, you&#8217;ll have to manually do a search and replace on the resulting .sql file. The hash that comes after ?phpMyAdmin= is different on every export, but luckily it&#8217;s the same in each dump file &#8211; meaning it&#8217;s relatively easy to find it and replace it.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelkrol.com/2009/01/11/database-exports-from-phpmyadmin-add-garbage-text-after-every-link/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP mail() And Gmail &#8211; A Warning on Headers</title>
		<link>http://michaelkrol.com/2005/12/07/php-mail-and-gmail-a-warning-on-headers/</link>
		<comments>http://michaelkrol.com/2005/12/07/php-mail-and-gmail-a-warning-on-headers/#comments</comments>
		<pubDate>Thu, 08 Dec 2005 07:56:51 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Fixit]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://michaelkrol.com/?p=10</guid>
		<description><![CDATA[Today, out of nowhere, we started receiving reports that HTML email the gdiapers.com site was sending were showing up as just that: HTML code and not much else. Running a few tests confirmed these reports&#8230; but only in my gmail account. We went back and checked the reports and sure enough &#8211; they were all ]]></description>
			<content:encoded><![CDATA[<p>Today, out of nowhere, we started receiving reports that HTML email the <a href="http://www.gdiapers.com">gdiapers.com</a> site was sending were showing up as just that: HTML code and not much else. Running a few tests confirmed these reports&#8230; but only in my gmail account. We went back and checked the reports and sure enough &#8211; they were all coming from gmail users.</p>
<p>After some tinkering and futzing around we realized that the Windows line breaks that we had after the headers (<code>\r\n</code>) were the problem. Here&#8217;s an example:</p>
<p>This will show up as two line breaks in gmail and trash your HTML formatting:<br />
<code>$headers = "MIME-Version: 1.0\r\n";</code></p>
<p>This, however, will fix the problem and show up in gmail just fine:<br />
<code>$headers = "MIME-Version: 1.0\n";</code></p>
<p>I&#8217;m sure if you were sending mail from a Windows server this may not be the case, but for those on a Unix box, just stick with <code>\n</code>. Google will thank you by displaying your HTML email the way it was meant to be displayed &#8211; without raw code!</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelkrol.com/2005/12/07/php-mail-and-gmail-a-warning-on-headers/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Enable mod_rewrite on OS X 10.4 (Tiger)</title>
		<link>http://michaelkrol.com/2005/11/21/enable-mod_rewrite-on-os-x-104-tiger/</link>
		<comments>http://michaelkrol.com/2005/11/21/enable-mod_rewrite-on-os-x-104-tiger/#comments</comments>
		<pubDate>Tue, 22 Nov 2005 06:35:15 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Fixit]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://michaelkrol.com/?p=6</guid>
		<description><![CDATA[Tiger has introduced a new super-confusion level to the stock configuration of Apache. In addition to the httpd.conf file in the /etc/httpd directory, there&#8217;s now a new users directory as well. That directory holds unique config files for each user of the machine. So, if you were to enable mod_rewrite or AllowOverrides in httpd.conf, you ]]></description>
			<content:encoded><![CDATA[<p>Tiger has introduced a new super-confusion level to the stock configuration of Apache. In addition to the httpd.conf file in the <code>/etc/httpd</code> directory, there&#8217;s now a new <code>users</code> directory as well. That directory holds unique config files for each user of the machine. So, if you were to enable mod_rewrite or AllowOverrides in httpd.conf, you may find that it doesn&#8217;t quite cut the mustard in your personal Sites directory. Let&#8217;s take a look:</p>
<p>To enable mod_rewrite:</p>
<ol>
<li>Open <code>/etc/httpd/httpd.conf</code><br />
(I highly recommend <a href="http://macromates.com/" target="_blank">TextMate</a> &#8211; from the command line you can simply type this:<br />
<code>$ mate /etc/httpd/httpd.conf</code><br />
or use the old standards: vi, vim, whathaveyou)</li>
<li>Go to line 223 (if your config file just so happens to jive with mine) and uncomment the following line:<br />
<code>LoadModule rewrite_module     libexec/httpd/mod_rewrite.so</code><br />
(mind the wrap)</li>
<li>Go to line 267 and uncomment the following line:<br />
<code>AddModule mod_rewrite.c</code></li>
<li>Scroll down to line 408 and change the line to read:<br />
<code>AllowOverride All</code><br />
(Some server admins will tell you this may not be the best idea for hosting a live site, but I&#8217;m assuming you&#8217;re using this for local development only, right?)</li>
<li>Uncomment line 454:<br />
<code>AccessFileName .htaccess</code></li>
<li>Restart Apache:<br />
<code>$ sudo apachectl restart</code></li>
</ol>
<p>At this point you should have mod_rewrite happily fixing your ugly URL&#8217;s in the <code>/Library/WebServer/Documents</code> directory, but it&#8217;s not working in your <code>/Users/you/Sites</code> directory. What gives? Here&#8217;s the trick:</p>
<ol>
<li>Open the <code>yourname.conf</code> file in the <code>/etc/httpd/users</code> folder.</li>
<li>Change the first two lines to this:<br />
<code>    Options All<br />
AllowOverride All</code></li>
<li>Give Apache another bounce:<br />
<code>$ sudo apachectl restart</code></li>
</ol>
<p>You should now be seeing friendly url&#8217;s in your very own Sites directory.</p>
]]></content:encoded>
			<wfw:commentRss>http://michaelkrol.com/2005/11/21/enable-mod_rewrite-on-os-x-104-tiger/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>

