<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Infallible Logic</title>
	
	<link>http://infalliblelogic.com</link>
	<description />
	<lastBuildDate>Tue, 31 Aug 2010 07:16:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/InfallibleLogic" /><feedburner:info uri="infalliblelogic" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>[PHP] Still using MDB2? Getting a “no such table” error?</title>
		<link>http://feedproxy.google.com/~r/InfallibleLogic/~3/pmiJn-WLugw/</link>
		<comments>http://infalliblelogic.com/2010/08/31/php-still-using-mdb2-getting-a-no-such-table-error/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 07:16:43 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://infalliblelogic.com/?p=61</guid>
		<description><![CDATA[So we're currently stuck using MDB2 at work. Like a vast majority of PEAR's repositories, it's just awful, awful code. I'm sure it served some kind of purpose before PDO came along (like what 5 or more years ago??), but now it's just a thorn in the side of any decent developer stuck dealing with [...]]]></description>
			<content:encoded><![CDATA[<p>So we're currently stuck using MDB2 at work. Like a vast majority of PEAR's repositories, it's just awful, awful code. I'm sure it served some kind of purpose before PDO came along (like what 5 or more years ago??), but now it's just a thorn in the side of any decent developer stuck dealing with it.</p>

<p>I recently came across a problem where I was accessing data across multiple database instances, and it was all well and good. Until you tried to use one of the first database connections again. Running anything against it would just result in a "no such table" error.</p>

<p>Buh? How can there not be a table there when I just queried from it not even a second before? Doing a dump of the MDB2 object itself even showed it was using the correct database information and it claimed to be using the correct database name.</p>

<p>Ultimately the problem turned out to be the fact that it still relies on the old mysql_* methods. This error occurred on our dev server, which is set up to model production, but isn't <em>quite</em> the same. On production, all our instances are actually on separate hosts. On dev, they're in separate databases, but the host and connecting information is all the same. If you look in the PHP docs for the <a href="http://php.net/mysql_connect">mysql_connect()</a> method's <tt>new_link</tt> parameter:</p>

<blockquote><big>If a second call is made to mysql_connect() with the same arguments, no new link will be established, but instead, the link identifier of the already opened link will be returned.</big></blockquote>

<p>Yay. So successive calls to <tt>mysql_connect()</tt> with the <em>same host, username, and password</em> will return the same connection. It's a good thing to have to prevent opening too many connections, but it also largely depends on your database framework being able to correctly give you separate connections if you really want them. (In fact, I might go so far as to say it SHOULD be the code that caches connections, not the underlying driver, but whatever. <tt>mysql_connect()</tt>'s <tt>new_link</tt> param <strong>does</strong> give back a new connection if set to true.) Unfortunately, MDB2 caches the database name and checks its own cached name to ensure the database hasn't been switched, so it never detects that the same connection was pulled and switched elsewhere.</p>

<p>The easy fix is just to call <tt>mysql_select_db()</tt> every time you're pulling a cached DB connection to ensure your DB is correct. I'm honestly not sure of the overhead of doing that, but assuming you're not making tens of thousands of those calls, I'm sure it's reasonably minuscule. I'd honestly just suggest switching to PDO and caching your own connections, anyway.</p><a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F08%2F31%2Fphp-still-using-mdb2-getting-a-no-such-table-error%2F&amp;linkname=%5BPHP%5D%20Still%20using%20MDB2%3F%20Getting%20a%20%26%238220%3Bno%20such%20table%26%238221%3B%20error%3F" title="Digg" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F08%2F31%2Fphp-still-using-mdb2-getting-a-no-such-table-error%2F&amp;linkname=%5BPHP%5D%20Still%20using%20MDB2%3F%20Getting%20a%20%26%238220%3Bno%20such%20table%26%238221%3B%20error%3F" title="Twitter" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F08%2F31%2Fphp-still-using-mdb2-getting-a-no-such-table-error%2F&amp;linkname=%5BPHP%5D%20Still%20using%20MDB2%3F%20Getting%20a%20%26%238220%3Bno%20such%20table%26%238221%3B%20error%3F" title="Facebook" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F08%2F31%2Fphp-still-using-mdb2-getting-a-no-such-table-error%2F&amp;linkname=%5BPHP%5D%20Still%20using%20MDB2%3F%20Getting%20a%20%26%238220%3Bno%20such%20table%26%238221%3B%20error%3F" title="Google Reader" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F08%2F31%2Fphp-still-using-mdb2-getting-a-no-such-table-error%2F&amp;linkname=%5BPHP%5D%20Still%20using%20MDB2%3F%20Getting%20a%20%26%238220%3Bno%20such%20table%26%238221%3B%20error%3F" title="Delicious" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F08%2F31%2Fphp-still-using-mdb2-getting-a-no-such-table-error%2F&amp;linkname=%5BPHP%5D%20Still%20using%20MDB2%3F%20Getting%20a%20%26%238220%3Bno%20such%20table%26%238221%3B%20error%3F"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/InfallibleLogic/~4/pmiJn-WLugw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://infalliblelogic.com/2010/08/31/php-still-using-mdb2-getting-a-no-such-table-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://infalliblelogic.com/2010/08/31/php-still-using-mdb2-getting-a-no-such-table-error/</feedburner:origLink></item>
		<item>
		<title>More Zune Gotchas [Autoplaylists]</title>
		<link>http://feedproxy.google.com/~r/InfallibleLogic/~3/B-ERM6eCNIc/</link>
		<comments>http://infalliblelogic.com/2010/02/14/more-zune-gotchas-autoplaylists/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 02:12:50 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[zune]]></category>

		<guid isPermaLink="false">http://infalliblelogic.com/?p=43</guid>
		<description><![CDATA[When setting up your Zune Software, one of the settings under Collection is for 'Zune Folders', where it will presumably store data when you rip CDs or download albums from the Marketplace.  This is also where it will save any playlists you've created inside of the software.

Now obviously when you uninstall the software, it [...]]]></description>
			<content:encoded><![CDATA[<p>When setting up your Zune Software, one of the settings under Collection is for 'Zune Folders', where it will presumably store data when you rip CDs or download albums from the Marketplace.  This is also where it will save any <strong>playlists</strong> you've created inside of the software.</p>

<p>Now obviously when you uninstall the software, it will keep this directory intact since it could potentially contain some of your music files. What it doesn't tell you is that <strong>it will automatically import any data it finds in your playlists</strong>! After running through the steps of my previous posts, it was still finding some of the albums from directories I was no longer including in monitoring and it was driving me crazy. I had kept my playlists because I had a decent number and didn't want to recreate them. Joke's on me because it just took all the tracks from those playlists and reimported every single one, including ones from when I was still using the 4.2 software!</p>

<p>So if you had any autoplaylists created, ensure you delete those (and really probably anything else inside that directory, to be safe) or else it will still import anything it finds in there.</p><a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F02%2F14%2Fmore-zune-gotchas-autoplaylists%2F&amp;linkname=More%20Zune%20Gotchas%20%5BAutoplaylists%5D" title="Digg" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F02%2F14%2Fmore-zune-gotchas-autoplaylists%2F&amp;linkname=More%20Zune%20Gotchas%20%5BAutoplaylists%5D" title="Twitter" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F02%2F14%2Fmore-zune-gotchas-autoplaylists%2F&amp;linkname=More%20Zune%20Gotchas%20%5BAutoplaylists%5D" title="Facebook" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F02%2F14%2Fmore-zune-gotchas-autoplaylists%2F&amp;linkname=More%20Zune%20Gotchas%20%5BAutoplaylists%5D" title="Google Reader" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F02%2F14%2Fmore-zune-gotchas-autoplaylists%2F&amp;linkname=More%20Zune%20Gotchas%20%5BAutoplaylists%5D" title="Delicious" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F02%2F14%2Fmore-zune-gotchas-autoplaylists%2F&amp;linkname=More%20Zune%20Gotchas%20%5BAutoplaylists%5D"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/InfallibleLogic/~4/B-ERM6eCNIc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://infalliblelogic.com/2010/02/14/more-zune-gotchas-autoplaylists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://infalliblelogic.com/2010/02/14/more-zune-gotchas-autoplaylists/</feedburner:origLink></item>
		<item>
		<title>Zune 4.2 and Windows 7 Libraries [Rant]</title>
		<link>http://feedproxy.google.com/~r/InfallibleLogic/~3/Cjto4fPmCE8/</link>
		<comments>http://infalliblelogic.com/2010/02/04/zune-4-2-and-windows-7-libraries-rant/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 16:44:00 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[windows 7]]></category>
		<category><![CDATA[zune]]></category>

		<guid isPermaLink="false">http://infalliblelogic.com/?p=39</guid>
		<description><![CDATA[As many people have discovered, the Zune 4.2 software brings a new 'feature' to Windows 7 users: It automatically uses your Libraries to discover new media. For many people, this will never be a problem, but it brings a number of issues along with it.

First and foremost is that you can no longer keep your [...]]]></description>
			<content:encoded><![CDATA[<p>As many people have discovered, the Zune 4.2 software brings a new 'feature' to Windows 7 users: It automatically uses your Libraries to discover new media. For many people, this will never be a problem, but it brings a number of issues along with it.</p>

<p>First and foremost is that you can no longer keep your Libraries and your Zune monitored folders separate. If you try to remove monitored folders in the Zune software, <em>it will remove them from your Libraries entirely</em>, which isn't even necessarily something you want to happen! So you are <strong>forced</strong> into putting all you media into Libraries, and even more than that, you're forced into keeping media <em>out</em> of your Libraries if you don't want them scanned!</p>

<p>In my scenario, I keep a separate folder for freshly-ripped or downloaded albums so that I can tag them and set them up in such a way that they can be integrated into the rest of my collection. I like to keep these separate because there's no way to guarantee how the source of the album has tagged it, or how they've set up their album art (I am fervently against putting art in tags since it's an unnecessary waste of space) or things of that nature.</p>

<p>At the same time, this folder <em>does</em> contain music, so I do like to keep it in my Music Library so I can easily access it with the rest of my music. But now I can no longer do that with the Zune 4.2 software update because it will scan it into my collection and try to sync it with the hardware, which I absolutely do not want it to do (the Zune software already has far too many troubles with tracking moved or renamed files).</p>

<p>I was fortunate enough to still have my installer for 4.0, and I would urge anyone who does not like this change to uninstall 4.2 and revert back. One thing to keep in mind, however, is that the software will attempt to auto-update when you run it, so you'll need to disable your internet connection during the install. After that, it will just prompt you when you open it and you can ignore it, if you'd like.</p>

<p>I just don't understand how it's so difficult for these guys (Microsoft and Apple) to get their software right. Why do we need it to be tied to some ridiculous piece of software? Why can't we allow syncing from anywhere? I understand that it gives them far more control over how you use your media, but it's ridiculous for the end-users to have to conform to that.</p>

<p>Back when zAlternator was actually functioning, I used MediaMonkey to sync and I found one thing out: The hardware has <em>far, far less</em> limitations than the software. The software requires you to rename all your album art to ZuneAlbumArt.jpg, where the hardware could read folder.jpg or cover.jpg just fine. The software will create a ridiculous database and throw all your files randomly onto the player where with MediaMonkey, I just synced my files over in the exact directory structure I have at home, and the player found and played it all fine.</p>

<p>The Zune is really a great piece of hardware, it's just such a shame to see such a terrible excuse for software holding it back.</p><a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F02%2F04%2Fzune-4-2-and-windows-7-libraries-rant%2F&amp;linkname=Zune%204.2%20and%20Windows%207%20Libraries%20%5BRant%5D" title="Digg" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F02%2F04%2Fzune-4-2-and-windows-7-libraries-rant%2F&amp;linkname=Zune%204.2%20and%20Windows%207%20Libraries%20%5BRant%5D" title="Twitter" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F02%2F04%2Fzune-4-2-and-windows-7-libraries-rant%2F&amp;linkname=Zune%204.2%20and%20Windows%207%20Libraries%20%5BRant%5D" title="Facebook" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F02%2F04%2Fzune-4-2-and-windows-7-libraries-rant%2F&amp;linkname=Zune%204.2%20and%20Windows%207%20Libraries%20%5BRant%5D" title="Google Reader" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F02%2F04%2Fzune-4-2-and-windows-7-libraries-rant%2F&amp;linkname=Zune%204.2%20and%20Windows%207%20Libraries%20%5BRant%5D" title="Delicious" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2010%2F02%2F04%2Fzune-4-2-and-windows-7-libraries-rant%2F&amp;linkname=Zune%204.2%20and%20Windows%207%20Libraries%20%5BRant%5D"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/InfallibleLogic/~4/Cjto4fPmCE8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://infalliblelogic.com/2010/02/04/zune-4-2-and-windows-7-libraries-rant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://infalliblelogic.com/2010/02/04/zune-4-2-and-windows-7-libraries-rant/</feedburner:origLink></item>
		<item>
		<title>O’Reilly Has Released A Ton Of Books To The Android Market [Updated 12/30]</title>
		<link>http://feedproxy.google.com/~r/InfallibleLogic/~3/8GmG4NCWJs4/</link>
		<comments>http://infalliblelogic.com/2009/12/29/oreilly-has-released-a-ton-of-books-to-the-android-market/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 23:50:36 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[aldiko]]></category>
		<category><![CDATA[O'Reilly]]></category>

		<guid isPermaLink="false">http://infalliblelogic.com/?p=16</guid>
		<description><![CDATA[I'm not quite sure when this happened, but O'Reilly (in partnership with Aldiko) has released quite a number of books to the Android market. Not only is there a pretty vast selection, but these books are priced extremely well, ranging from $2.99 to $5.99 for complete books.

I picked up the Java Pocket Guide for three [...]]]></description>
			<content:encoded><![CDATA[<p>I'm not quite sure when this happened, but O'Reilly (in partnership with <a href="http://www.aldiko.com/">Aldiko</a>) has released <a href="http://www.androlib.com/android.developer.reilly-media-EFA.aspx">quite a number of books to the Android market</a>. Not only is there a pretty vast selection, but these books are priced <em>extremely</em> well, ranging from $2.99 to $5.99 for complete books.</p>

<p>I picked up the <a href="http://www.androlib.com/android.application.com-aldiko-android-oreilly-javapocketguide-xBit.aspx">Java Pocket Guide</a> for three bucks and it was well worth the money. Near as I can tell, these are complete versions of the books at hand, and they're all running with the very slick Aldiko UI, which has many configuration options for font sizes and other reading preferences, as well as the ability to bookmark and view a table-of-contents and other things.</p>

<p>For those of you that have a debug or rooted phone (or the ability to pull APKs off your phone via ADB), you'll find that the files are also just split up via HTML, with an XML-based table-of-contents. I've created a quick XSLT file you can use to transform the TOC into a basic HTML file so you can browse the book on your computer if you want. You'll need to make one change to the toc.ncx file, right below the &lt;?xml?&gt; tag:</p>
<textarea name="code" class="xslt:nogutter"><?xml-stylesheet type="text/xsl" href="toc.xslt"?></textarea>

<p>Then put this file in the same directory and name it 'toc.xslt' (note that I haven't used XSLT or much Javascript in like 8 years, so this may suck). I've updated it to include some basic javascript for easier navigation between the pages!</p>
<textarea name="code" class="xslt:nogutter:collapse">
<?xml version="1.0"?>
<xsl:stylesheet
	version="2.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:ncx="http://www.daisy.org/z3986/2005/ncx/">
	<xsl:output method="html"/>

	<xsl:template match="/ncx:ncx">
		<html>
		<head>
			<style type="text/css">
				body { font:80% Verdana; }
				
				#_frame {
					width:60%;
					height:40em;
					border:0;
				}
				
				h1, #navigation {
					text-align:center;
					width:80%;
				}
				
				#navigation {
					list-style:none;
					padding:0;
					margin:1em 0;
				}
				
				#navigation li {
					display:inline;
					padding:0 2em;
				}
				
				ul#list {
					overflow:scroll;
					height:40em;
					width:20%;
					height:40em;
					margin:0 auto;
					float:left;
				}
				
				ul#list > li {
					font-size:.8em;
				}
				
				ul#list li {
					padding:.25em 0;
				}
				
				ul#list ul {
					padding:0;
					margin:0 0 0 1em;
					list-style-type:square;
				}
				
				ul#list ul ul {
					list-style-type:circle;
				}
				
				ul#list ul ul ul {
					list-style-type:disc;
				}
				
				ul#list ul ul ul ul {
					list-style-type:square;
				}
				
				.break {
					clear:both;
				}
			</style>
			
			<script type="text/javascript">
				var topIndex = 1;
				var currentIndex = null;
				
				var ToggleType = {
					"Prev": -1,
					"Top": 0,
					"Next": 1,
				}
				
				function toggleSection(id, type)
				{
					if (id &lt; topIndex || currentIndex == id) return;

					var currentEl = document.getElementById(currentIndex);

					if (type == null)
					{
						var el = document.getElementById(id);
						currentIndex = parseInt(id);
					}
					else
					{
						do 
						{
							var el = document.getElementById(id);
							if (!el) return;
							
							currentIndex = parseInt(id);
							id += type;
						}
						while (el.href.lastIndexOf('#') > -1);
					}
					
					document.getElementById('_frame').src = el.href;
					el.scrollIntoView(true);
					return false;
				}
				
				function toggleDirection(type)
				{
					var id = (type == ToggleType["Top"]) ? topIndex : currentIndex + type;
					toggleSection(id, type);
				}
			</script>
		</head>
		<body onload="toggleSection(topIndex);">
			<h1><xsl:value-of select="./ncx:docTitle/ncx:text"/></h1>
			<ul id="navigation">
				<li><a href="javascript:toggleDirection(ToggleType['Prev']);">&lt;--Prev</a></li>
				<li><a href="javascript:toggleDirection(ToggleType['Top']);">Top</a></li>
				<li><a href="javascript:toggleDirection(ToggleType['Next']);">Next--&gt;</a></li>
			</ul>
			<div class="break"> </div>
			<ul id="list">
				<xsl:call-template name="navPoint">
					<xsl:with-param name="nav" select="./ncx:navMap/ncx:navPoint"/>
				</xsl:call-template>
			</ul>
			<iframe name="_frame" id="_frame" />
		</body>
		</html>
	</xsl:template>
	
	<xsl:template name="navPoint">
		<xsl:param name="nav"/>
		<li>
			<a>
				<xsl:attribute name="href">
					<xsl:value-of select="$nav/ncx:content/@src"/>
				</xsl:attribute>
				<xsl:attribute name="id">
					<xsl:value-of select="$nav/@playOrder"/>
				</xsl:attribute>
				<xsl:attribute name="onclick">
					return toggleSection(this.id);
				</xsl:attribute>
				<xsl:value-of select="$nav/ncx:navLabel/ncx:text"/>
			</a>
			<xsl:if test="$nav/ncx:navPoint">
				<ul>
					<xsl:for-each select="$nav/ncx:navPoint">
						<xsl:call-template name="navPoint">
							<xsl:with-param name="nav" select="."/>
						</xsl:call-template>
					</xsl:for-each>
				</ul>
			</xsl:if>
		</li>
	</xsl:template>

</xsl:stylesheet>
</textarea>

<p>I've admittedly only tried this with one book, but I can't imagine the rest use a different format.</p>

<p>
<b>Aldiko Book Reader:</b><br />
<img src="http://chart.apis.google.com/chart?cht=qr&#038;chs=150x150&#038;chl=market://search?q=pname:com.aldiko.android" />
</p>

<p>
<b>Java Pocket Guide:</b><br />
<img src="http://chart.apis.google.com/chart?cht=qr&#038;chs=150x150&#038;chl=market://search?q=pname:com.aldiko.android.oreilly.javapocketguide" />
</p><a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2009%2F12%2F29%2Foreilly-has-released-a-ton-of-books-to-the-android-market%2F&amp;linkname=O%26%238217%3BReilly%20Has%20Released%20A%20Ton%20Of%20Books%20To%20The%20Android%20Market%20%5BUpdated%2012%2F30%5D" title="Digg" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2009%2F12%2F29%2Foreilly-has-released-a-ton-of-books-to-the-android-market%2F&amp;linkname=O%26%238217%3BReilly%20Has%20Released%20A%20Ton%20Of%20Books%20To%20The%20Android%20Market%20%5BUpdated%2012%2F30%5D" title="Twitter" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2009%2F12%2F29%2Foreilly-has-released-a-ton-of-books-to-the-android-market%2F&amp;linkname=O%26%238217%3BReilly%20Has%20Released%20A%20Ton%20Of%20Books%20To%20The%20Android%20Market%20%5BUpdated%2012%2F30%5D" title="Facebook" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2009%2F12%2F29%2Foreilly-has-released-a-ton-of-books-to-the-android-market%2F&amp;linkname=O%26%238217%3BReilly%20Has%20Released%20A%20Ton%20Of%20Books%20To%20The%20Android%20Market%20%5BUpdated%2012%2F30%5D" title="Google Reader" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2009%2F12%2F29%2Foreilly-has-released-a-ton-of-books-to-the-android-market%2F&amp;linkname=O%26%238217%3BReilly%20Has%20Released%20A%20Ton%20Of%20Books%20To%20The%20Android%20Market%20%5BUpdated%2012%2F30%5D" title="Delicious" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2009%2F12%2F29%2Foreilly-has-released-a-ton-of-books-to-the-android-market%2F&amp;linkname=O%26%238217%3BReilly%20Has%20Released%20A%20Ton%20Of%20Books%20To%20The%20Android%20Market%20%5BUpdated%2012%2F30%5D"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/InfallibleLogic/~4/8GmG4NCWJs4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://infalliblelogic.com/2009/12/29/oreilly-has-released-a-ton-of-books-to-the-android-market/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://infalliblelogic.com/2009/12/29/oreilly-has-released-a-ton-of-books-to-the-android-market/</feedburner:origLink></item>
		<item>
		<title>WHS: Backing Up To A Partitioned External Drive</title>
		<link>http://feedproxy.google.com/~r/InfallibleLogic/~3/LZLlMI0do44/</link>
		<comments>http://infalliblelogic.com/2009/12/28/whs-backing-up-to-a-partitioned-external-drive/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 00:23:57 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[WHS]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[windows home server]]></category>

		<guid isPermaLink="false">http://infalliblelogic.com/?p=9</guid>
		<description><![CDATA[This past Christmas, I received a nice big external USB hard drive that I planned on using to store off-site backups of my Windows Home Server and PS3. The PS3's backups require a FAT32 partition, whereas the WHS will obviously work best with an NTFS file system, so I decided to partition the hard drive [...]]]></description>
			<content:encoded><![CDATA[<p>This past Christmas, I received a <a href="http://bit.ly/4zO4xL">nice big external USB hard drive</a> that I planned on using to store off-site backups of my Windows Home Server and PS3. The PS3's backups require a FAT32 partition, whereas the WHS will obviously work best with an NTFS file system, so I decided to partition the hard drive with two partitions for each of the systems. (For anyone who cares, I used <a href="http://gparted.sourceforge.net/">GParted</a> via a <a href="http://www.virtualbox.org/">VirtualBoxed</a> version of Ubuntu I use since the default Win7 partition manager won't create FAT32 partitions.)</p>

<p>The PS3 backup detected the correct partition and backed up like a charm. The WHS, however, didn't. Instead, it detected the PS3 partition I had created. It would correctly display the full size of the hard drive in the Server Storage tab, but when adding a new drive, it would only detect the PS3 partition (which was much, much smaller).</p>

<p>After some fiddling around (and accidentally reformatting the PS3 partition to NTFS, whoops!), it seems like the WHS will basically just take whichever drive has the <em>lowest drive letter</em> alphabetically. My PS3 partition had been set up with F:\ and the Backup partition was set up with G:\, so it was detecting the PS3 partition first. I swapped the drive letters and it detected the correct partition and everything worked swimmingly.</p>

<p>Kind of annoying, but I'm happy there's at least a workaround. I'm a little curious as to why WHS doesn't let you treat the individual partitions on an external drive separately, though.</p><a href="http://www.addtoany.com/add_to/digg?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2009%2F12%2F28%2Fwhs-backing-up-to-a-partitioned-external-drive%2F&amp;linkname=WHS%3A%20Backing%20Up%20To%20A%20Partitioned%20External%20Drive" title="Digg" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/digg.png" width="16" height="16" alt="Digg"/></a> <a href="http://www.addtoany.com/add_to/twitter?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2009%2F12%2F28%2Fwhs-backing-up-to-a-partitioned-external-drive%2F&amp;linkname=WHS%3A%20Backing%20Up%20To%20A%20Partitioned%20External%20Drive" title="Twitter" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/twitter.png" width="16" height="16" alt="Twitter"/></a> <a href="http://www.addtoany.com/add_to/facebook?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2009%2F12%2F28%2Fwhs-backing-up-to-a-partitioned-external-drive%2F&amp;linkname=WHS%3A%20Backing%20Up%20To%20A%20Partitioned%20External%20Drive" title="Facebook" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/facebook.png" width="16" height="16" alt="Facebook"/></a> <a href="http://www.addtoany.com/add_to/google_reader?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2009%2F12%2F28%2Fwhs-backing-up-to-a-partitioned-external-drive%2F&amp;linkname=WHS%3A%20Backing%20Up%20To%20A%20Partitioned%20External%20Drive" title="Google Reader" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/reader.png" width="16" height="16" alt="Google Reader"/></a> <a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2009%2F12%2F28%2Fwhs-backing-up-to-a-partitioned-external-drive%2F&amp;linkname=WHS%3A%20Backing%20Up%20To%20A%20Partitioned%20External%20Drive" title="Delicious" rel="nofollow" target="_blank"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Finfalliblelogic.com%2F2009%2F12%2F28%2Fwhs-backing-up-to-a-partitioned-external-drive%2F&amp;linkname=WHS%3A%20Backing%20Up%20To%20A%20Partitioned%20External%20Drive"><img src="http://infalliblelogic.com/wp-content/plugins/add-to-any/favicon.png" width="16" height="16" alt="Share/Bookmark"/></a><img src="http://feeds.feedburner.com/~r/InfallibleLogic/~4/LZLlMI0do44" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://infalliblelogic.com/2009/12/28/whs-backing-up-to-a-partitioned-external-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://infalliblelogic.com/2009/12/28/whs-backing-up-to-a-partitioned-external-drive/</feedburner:origLink></item>
	</channel>
</rss>
