<?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></title>
	<atom:link href="http://shon.org/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://shon.org/blog</link>
	<description></description>
	<lastBuildDate>Tue, 08 Jun 2010 17:06:02 +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>iPhone 4 vs. Android</title>
		<link>http://shon.org/blog/2010/06/08/iphone-4-vs-android/</link>
		<comments>http://shon.org/blog/2010/06/08/iphone-4-vs-android/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 17:06:02 +0000</pubDate>
		<dc:creator>Shon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shon.org/blog/?p=276</guid>
		<description><![CDATA[The forums are wild with this topic. I read a few of the posts. Interesting arguments. It&#8217;s great to see the frenzy that a rivalry brings. It&#8217;s great to see the passion of the Android community. We are porting my game, Dark Nova to Android. As a development platform, Android seems to be a great bet and [...]]]></description>
			<content:encoded><![CDATA[<p>The forums are wild with this topic. I read a few of the posts. Interesting arguments. It&#8217;s great to see the frenzy that a rivalry brings. It&#8217;s great to see the passion of the Android community. We are <a href="http://code.google.com/p/dark-nova-android/updates/list" target="_blank">porting</a> my game, <a href="http://darknova.net" target="_blank">Dark Nova</a> to Android. As a development platform, Android seems to be a great bet and it may ultimately be the larger market but I have no desire to use one as my personal device.</p>
<p>iPhone is all about the experience. The style. That&#8217;s Apple in a nutshell. It&#8217;s not always about features. It is nice to have choices. I&#8217;m glad there is a choice. For me, it&#8217;s iPhone 4 because I&#8217;m a sucker for that experience and style. It&#8217;s beautiful and it works well. I don&#8217;t care to run MySQL (in the background) on my mobile device. I just want the best possible phone/information device experience. For my money that&#8217;s iPhone. It&#8217;s like comparing a Corvette ZR1 with a Ferarri. The Vette is cheaper AND faster around the track, but the Ferrari is a Ferrari&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://shon.org/blog/2010/06/08/iphone-4-vs-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thoughts on piracy&#8230;</title>
		<link>http://shon.org/blog/2010/05/31/thoughts-on-piracy/</link>
		<comments>http://shon.org/blog/2010/05/31/thoughts-on-piracy/#comments</comments>
		<pubDate>Mon, 31 May 2010 20:04:27 +0000</pubDate>
		<dc:creator>Shon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shon.org/blog/?p=273</guid>
		<description><![CDATA[Things come full circle. Here&#8217;s the game I developed, Dark Nova on a Warez board. I just found this while searching for our android code repo&#8230; a simple link on how you can download and install my game for free.
My game is only 3 bucks. Yet, people are out making an effort to pirate it. [...]]]></description>
			<content:encoded><![CDATA[<p>Things come full circle. Here&#8217;s the game I developed, <a href="http://darknova.net">Dark Nova</a> on a Warez <a href="http://forum.mobilism.org/viewtopic.php?f=369&amp;t=81352">board</a>. I just found this while searching for our android code repo&#8230; a simple link on how you can download and install my game for free.</p>
<p>My game is only 3 bucks. Yet, people are out making an effort to pirate it. What&#8217;s funny is that this doesn&#8217;t bother me in the least. It kind of makes me happy. <img src='http://shon.org/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>As a kid, &#8220;Juarez&#8221; was a very close friend of mine. I started out in about 1986 with an Atari ST and a 1200bps modem and I quickly set out to find free software. At 12 I had no income and  a huge desire to collect and try as much software as possible. I spent countless hours finding warez BBSs that carried Atari ST stuff. And countless more getting access, trading software, and playing with my pirated software booty! I later ran several semi-popular warez BBSs including Burning Chrome ][ (801), The Turing Registry (714), and The Black Sun (714).</p>
<p>As I pirated I always said I wouldn&#8217;t care if I was on the other end. If I was the software developer and kids (or slovenly adults) were stealing from me, I&#8217;d be fine with it. I&#8217;m glad to say now that I&#8217;m on the other side, I don&#8217;t care. People are stealing from me. Getting my game for free and I don&#8217;t care.</p>
<p>Why? Because there will always be pirates and they actually help more than they hurt. A pirate spends an inordinate amount of time pirating. It&#8217;s sport. It&#8217;s clearly not about the $3 my game costs. But these pirates are enthusiasts as well. They want to play EVERY game, even if only once. They recommend games to people who don&#8217;t pirate, increasing your paying customers. It&#8217;s the long tail. Kids on the bleeding edge don&#8217;t pay. They even offer to help long tailers not pay. But in the end, people with more money than time (your actual customer) will pay.</p>
<p>Today, while I still maintain the skills to easily pirate iPhone games, I never do. It&#8217;s not worth it to me. I&#8217;m busy and have more money than time. It&#8217;s not that I can&#8217;t pirate, or that I am scared to pirate, I just don&#8217;t want the hassle. Pirating software is ALWAYS a hassle even for the most accomplished pirate. Most pirates eventually grow out of it and start paying for things they like either to earnestly support the artist/creator or simply to avoid the hassle.</p>
<p>This is why I hate invasive copy protection. It does nothing to stop the real pirates and it usually inconveniences the actual paying customer. The pirates are not your customer. They are your &#8220;social marketing&#8221; team.</p>
]]></content:encoded>
			<wfw:commentRss>http://shon.org/blog/2010/05/31/thoughts-on-piracy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iTunes broke my iPad -or- More Reasons Why I Hate iTunes</title>
		<link>http://shon.org/blog/2010/05/18/itunes-broke-my-ipad-or-more-reasons-why-i-hate-itunes/</link>
		<comments>http://shon.org/blog/2010/05/18/itunes-broke-my-ipad-or-more-reasons-why-i-hate-itunes/#comments</comments>
		<pubDate>Tue, 18 May 2010 18:45:22 +0000</pubDate>
		<dc:creator>Shon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shon.org/blog/?p=270</guid>
		<description><![CDATA[I&#8217;ve had an iPad for over a week. I&#8217;m enjoying it. I always avoid iTunes on all of my devices. But&#8230; I had a need to sync the iPad to load some photos. iTunes was, in theory, the &#8220;easiest&#8221; way to do this. iTunes did sync the photos. But it broke my iPad in the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had an iPad for over a week. I&#8217;m enjoying it. I always avoid iTunes on all of my devices. But&#8230; I had a need to sync the iPad to load some photos. iTunes was, <em>in theory</em>, the &#8220;easiest&#8221; way to do this. iTunes did sync the photos. But it broke my iPad in the process.</p>
<p>In almost 2 weeks of heavy use I&#8217;d never seen a wifi problem with my iPad and didn&#8217;t even know one existed until I synced it with iTunes. BEWARE. Here&#8217;s the deets:</p>
<p><rant></p>
<p>When I synced the iPad, iTunes starts to install every single app I&#8217;ve ever purchased/installed on my <em>iPhone. </em>This includes all of the apps I&#8217;ve <strong>deleted</strong> from my iphone. So I interrupt it and tell iTunes not to sync apps. iTunes then says it must <strong>remove</strong> ALL of the apps from my iPad. ALL. This is done as a retarded DRM measure and is one of the top reasons why I hate iTunes. This does nothing to prevent piracy but instead punishes the loyal paying customer, me.</p>
<p>Anyone who wants to pirate any app in the App Store and install it for FREE can simply jailbreak their device, go to http://thepiratebay.com and download and install every damned paid app in the app store. This is easy and is perpetrated constantly by those so inclined. Apple is behaving like every other FAILED organization who doesn&#8217;t understand security. In an attempt to mitigate (loss) risk they punish the innocent while doing nothing to stop the actual threat. For other similar examples see PC Game DRM or anything the TSA has ever done.</p>
<ol>
<li>I don&#8217;t want most iphone apps on my iPad</li>
<li>I definerly don&#8217;t want apps I&#8217;ve deleted from my iPhone on my iPad or my iPhone.</li>
<li>I DO want access to apps I have purchased for my iPhone on my iPad but I will install them through the app store without iTunes, thank you.</li>
<li>I DO NOT want to hav to select from the 500+ apps, which ones to sync.</li>
<li>All I wanted really was for iTunes not the fuck with my apps at all. Just install the goddamned pictures!!!</li>
</ol>
<p></rant></p>
<p>Once I synced and let iTunes remove all of my apps, the iPad had the wifi bug. It still has it.</p>
<p>Apple has a<a href="http://support.apple.com/kb/TS3304">cknowledged</a> a wifi problem with iPads. The symtoms vary but the iPad either drops the wifi connection, drops and forgets the password, or drops during lock/hibernate. Mine is doing the last and I suppose least irritating of these. Upon lock (and sitting for multiple minutes) it drops the wifi connection and must be manually reconnected in settings.</p>
<p>Nothing changed on my infrastructure. The iPad immedialty started losing wifi on sleep/lock after syncing. All other devices, including macs and iphones maintain a consistent wifi connection. This is not an issue with my router (WRT54G) this is an issue with the iPad firmware. This issue DID NOT appear until after iTunes molested my iPad.</p>
<p>I&#8217;ve been trying several things to get it back to normal. So far nothing has worked. I&#8217;ll post something if I fix it.</p>
<p>&#8212;&#8212;&#8212;&#8211;<br />
FIXED!!!<br />
&#8212;&#8212;&#8212;&#8211;</p>
<p>Changing iPad brightness fixed the problem. As indicated In the apple support doc referenced above. I still hate iTunes.</p>
]]></content:encoded>
			<wfw:commentRss>http://shon.org/blog/2010/05/18/itunes-broke-my-ipad-or-more-reasons-why-i-hate-itunes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ipad Review &#8211;hmmm&#8230;</title>
		<link>http://shon.org/blog/2010/05/07/ipad-review-hmmm/</link>
		<comments>http://shon.org/blog/2010/05/07/ipad-review-hmmm/#comments</comments>
		<pubDate>Fri, 07 May 2010 19:57:51 +0000</pubDate>
		<dc:creator>Shon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shon.org/blog/?p=268</guid>
		<description><![CDATA[With a lot of prodding from my buddy Scott, I broke down and bought a 16gb iPad. Part of the motivation is that we want to port Dark Nova to iPad. Also, I&#8217;m going on a trip and the idea of having something really light instead of my MBP 15 was attractive. But mainly I [...]]]></description>
			<content:encoded><![CDATA[<p>With a lot of prodding from my buddy Scott, I broke down and bought a 16gb iPad. Part of the motivation is that we want to port <a href="http://darknova.net">Dark Nova</a> to iPad. Also, I&#8217;m going on a trip and the idea of having something really light instead of my MBP 15 was attractive. But mainly I bought it because I wanted to check it out. See the new trend for myself.</p>
<p>The tablet has finally arrived after all these years. How many years? In 1992 I worked for a company that was building tablets for the military. 18 years ago I had one of these systems in my bedroom. The company was GRiD Systems and they had working production tablet computers based on the i486/33 I believe. They ran a tablet version of Windows 3.1. They were neat for the time but still sucked. This time it&#8217;s different.</p>
<p>Yes yes&#8230; the iPad is just a big iPhone. Now that I have one, I use the iPhone a lot less in the house. But&#8230;. I didn&#8217;t want to read books on my iPhone. It&#8217;s awesome as a pocket sized device but there are things which, simply due to size  it&#8217;s not well suited for.</p>
<p>Long story short, I believe this will take over for 80% of what we currently use desktops and laptops for. Plus it adds new applications and new opportunities for interaction and creativity that open up entirely new use cases.</p>
<p><strong>PROS:</strong></p>
<ul>
<li>A new class of device that makes existing applications more enjoyable and opens up entirely new use cases.</li>
<li>Beautiful and sexy as we expect from Apple.</li>
<li>Battery Life is unbelievable. I&#8217;ve had it for 3 days using it a lot and it&#8217;s still running on the charge that it came with OUT OF THE BOX!</li>
<li>Books are great. Lot&#8217;s of free books in the iBook store from the Gutenberg Project. Currently reading Sherlock Holmes.</li>
</ul>
<p><strong>CONS</strong></p>
<ul>
<li>HEAVY. I&#8217;d gladly trade half the battery life for half the weight.</li>
<li>Awkward to hold, mainly because it&#8217;s heavy.</li>
<li>You&#8217;ll want iPad specific apps cause they are way cooler. So you will be buying more, possibly duplicate apps that are also more expensive.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://shon.org/blog/2010/05/07/ipad-review-hmmm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Message to Apple:</title>
		<link>http://shon.org/blog/2010/05/05/message-to-apple/</link>
		<comments>http://shon.org/blog/2010/05/05/message-to-apple/#comments</comments>
		<pubDate>Wed, 05 May 2010 22:15:12 +0000</pubDate>
		<dc:creator>Shon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shon.org/blog/?p=266</guid>
		<description><![CDATA[Dear Apple,
iTunes sucks. It has always sucked. It sucks even more now that I have to use it regularly in order to use my iPhone and iPad. It has to be updated at least twice a month. It&#8217;s cumbersome and slow even on a fast machine. It&#8217;s antiquated. I hate it very much and always [...]]]></description>
			<content:encoded><![CDATA[<p>Dear Apple,</p>
<p>iTunes sucks. It has always sucked. It sucks even more now that I have to use it regularly in order to use my iPhone and iPad. It has to be updated at least twice a month. It&#8217;s cumbersome and slow even on a fast machine. It&#8217;s antiquated. I hate it very much and always have. I used to bypass it and refuse to use it on my early ipods but you&#8217;ve been pushing it more and more. Connecting everything to it. Please stop.</p>
<p>Also, resource forks on network drives SUCKS as well.</p>
<p>Thanks,</p>
<p>-Shon</p>
]]></content:encoded>
			<wfw:commentRss>http://shon.org/blog/2010/05/05/message-to-apple/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto generate speech files</title>
		<link>http://shon.org/blog/2010/04/21/auto-generate-speech-files/</link>
		<comments>http://shon.org/blog/2010/04/21/auto-generate-speech-files/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 23:33:38 +0000</pubDate>
		<dc:creator>Shon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shon.org/blog/?p=264</guid>
		<description><![CDATA[Building the new version of Dark Nova required me to generate a lot of audio (aiff) files containing speech for varios commands and events. You can use the Mac&#8217;s built-in &#8220;say&#8221; command to do this automatically. I wrote a script to create an .aiff file for every phrase in a list of phrases. It works [...]]]></description>
			<content:encoded><![CDATA[<p>Building the new version of <a href="http://darknova.net">Dark Nova</a> required me to generate a lot of audio (aiff) files containing speech for varios commands and events. You can use the Mac&#8217;s built-in &#8220;say&#8221; command to do this automatically. I wrote a script to create an .aiff file for every phrase in a list of phrases. It works great and uses the default system voice as set in the System Preferences under Speech.</p>
<p>Here&#8217;s the simple script:</p>
<p><code>cat commands | while read LINE<br />
         do say "$LINE" -o "$LINE.aiff"<br />
         done</code></p>
]]></content:encoded>
			<wfw:commentRss>http://shon.org/blog/2010/04/21/auto-generate-speech-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dead Blog</title>
		<link>http://shon.org/blog/2010/04/16/dead-blog/</link>
		<comments>http://shon.org/blog/2010/04/16/dead-blog/#comments</comments>
		<pubDate>Fri, 16 Apr 2010 21:41:32 +0000</pubDate>
		<dc:creator>Shon</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://shon.org/blog/?p=258</guid>
		<description><![CDATA[Get this, I was editing my theme in the theme editor, going back and forth and BOOM!!!! Database connection error. This was NOT and DB connection error. The MySQL server was fine and nothing had changed. Looking at the DB via PHPmyAdmin and no overheard or anything. Repaired tables, nothing. still dead but the data [...]]]></description>
			<content:encoded><![CDATA[<p>Get this, I was editing my theme in the theme editor, going back and forth and BOOM!!!! Database connection error. This was NOT and DB connection error. The MySQL server was fine and nothing had changed. Looking at the DB via PHPmyAdmin and no overheard or anything. Repaired tables, nothing. still dead but the data looked good.</p>
<p>Of course if you google &#8220;wordpress database connection error&#8221; or any iteration of that you get a bunch of fools who don&#8217;t know how to config their blog and answers related to that. This wasn&#8217;t my problem. I knew it could connect because replacing the data with an old copy of the db via &#8220;mysql -p db &lt;dbbackup brought it all back fine. Problem was I didn&#8217;t have a recent backup&#8230; despite my r<a href="http://shon.org/blog/2010/02/16/free-cloud-based-database-backup-solution/" target="_blank">ecent post</a> on backing up databases <img src='http://shon.org/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> . This blog fell into the lower priority que and therefore didn&#8217;t get scripted for backup on the new box.</p>
<p>ANYWAY the point is for those folks who may be getting a DB connection error from wordpress and know it&#8217;s not a DB connection problem, I recommend using PHPmyAdmin to export your posts and/or comments table from the current (corrupt) DB and importing them to a known good copy of the DB. You can do this on a table by table basis to get your good and current data into the structure of an old (but non-corrupt) copy of the DB. I just did this and now the blog is back. Of course you&#8217;d want to check the data first and make sure it&#8217;s there/good.</p>
]]></content:encoded>
			<wfw:commentRss>http://shon.org/blog/2010/04/16/dead-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cleaning up after your Mac or how to kill ._AppleDouble and .DS_store</title>
		<link>http://shon.org/blog/2010/03/09/cleaning-up-after-your-mac-or-how-to-kill-_appledouble-and-ds_store/</link>
		<comments>http://shon.org/blog/2010/03/09/cleaning-up-after-your-mac-or-how-to-kill-_appledouble-and-ds_store/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 00:01:59 +0000</pubDate>
		<dc:creator>Shon</dc:creator>
		
		<guid isPermaLink="false">http://shon.org/blog/?p=249</guid>
		<description><![CDATA[I love my Mac but it&#8217;s not very &#8220;clean&#8221; when working on network shares. If you work in a heterogeneous environment and you connect your mac to network shares, people may complain about the Mac leaving what some folks call &#8220;mac dust&#8221;. Files like .ds_store and files that have ._ prepended to them with otherwise [...]]]></description>
			<content:encoded><![CDATA[<p>I love my Mac but it&#8217;s not very &#8220;clean&#8221; when working on network shares. If you work in a heterogeneous environment and you connect your mac to network shares, people may complain about the Mac leaving what some folks call &#8220;mac dust&#8221;. Files like .ds_store and files that have ._ prepended to them with otherwise identical file names to actual usable files.</p>
<p>OS X does this and it sucks. During the creation of a file on a non-HFS+ filesystem the mac leaves this garbage. When other macs look at the drive they don&#8217;t display these files. When other computers (Windows) look at the drive they see all of this &#8220;dust&#8221; and it&#8217;s confusing because the garbage has the same filename as the real file prepended with &#8220;._&#8221;.</p>
<p>The .ds_store files are easy to get rid of. Fire up terminal on the mac and enter <code>defaults write com.apple.desktopservices DSDontWriteNetworkStores true</code></p>
<p>The &#8220;resource forks&#8221; or _. or _.AppleDouble files are harder to get rid of and were the larger problem for me. I couldn&#8217;t find a way to tell the mac to stop this bad behavior. Nothing on the web for a defaults/plist solution like the .ds_store fix. Instead I&#8217;m running a cron job on the server to remove these. This is an inelegant solution but it works for me: <code> find /your/directory/path -name ._* -exec rm '{}' ';'</code></p>
<p>Apple should really fix this if it wants to be accepted by the enterprise.</p>
]]></content:encoded>
			<wfw:commentRss>http://shon.org/blog/2010/03/09/cleaning-up-after-your-mac-or-how-to-kill-_appledouble-and-ds_store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto Fix Webdav On Windows 7 64bit</title>
		<link>http://shon.org/blog/2010/03/04/howto-fix-windows-7-64bit-webdav/</link>
		<comments>http://shon.org/blog/2010/03/04/howto-fix-windows-7-64bit-webdav/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 20:20:40 +0000</pubDate>
		<dc:creator>Shon</dc:creator>
		
		<guid isPermaLink="false">http://shon.org/blog/?p=245</guid>
		<description><![CDATA[For the impatient, I&#8217;ll skip right to the solution. Use AuthDigest for authentication in your webdav server config. That&#8217;s the big issue with connecting. Windows won&#8217;t connect with Basic Auth. For more detail read on.
First let me say that I will be so happy when Microsoft finally flutters in to irrelevance. I use a Mac and [...]]]></description>
			<content:encoded><![CDATA[<p>For the impatient, I&#8217;ll skip right to the solution. Use AuthDigest for authentication in your webdav server config. That&#8217;s the big issue with connecting. Windows won&#8217;t connect with Basic Auth. For more detail read on.</p>
<p>First let me say that I will be so happy when Microsoft finally flutters in to irrelevance. I use a Mac and have since OS X got decent. Webdav works great on the mac. &#8220;It just works&#8230;&#8221; just like the Mac commercials say.</p>
<p>However, some of the people that work at Wildcog use Windows. So like many, I beat my head against a wall trying to get Vista X64 and Windows 7 X64 to work with Webdav. If you&#8217;re running 32bit Windows 7 or Vista just get <a href="http://www.netdrive.net/">NetDrive</a> and be done with it. It works like a champ.</p>
<p>For 64 Bit folks NetDrive doesn&#8217;t work. But I have good news, believe it or not Windows 7 actually can connect to Webdav. I have it working and will show you how in a sec. It&#8217;s not perfect but it does work through the Windows Explorer (and office apps) using nothing more than the built-in support (if you can call it that) in Windows.</p>
<p><strong>My setup:</strong></p>
<p>Webdav Server = Apache2 with Mod Dav on Debian (lenny).</p>
<p>Clients = Random Windows 7 machines (much to my chagrin).</p>
<p><strong>The problem:</strong></p>
<p>My main issue was that the windows box would throw the error &#8220;<em>The folder you entered does not appear to be valid</em>&#8221; when I tried any of the various methods of connecting or mapping the drive to the webdav resource.</p>
<p><strong>The Fix:</strong></p>
<ul>
<li>Make sure  the WebClient Service is running and set to run automatically.</li>
<li>Configure your webdav server to use <em><a href="http://httpd.apache.org/docs/2.0/mod/mod_auth_digest.html">Digest Authentication</a></em>. Windows 7 WILL NOT connect to webdav servers using <em>Basic Authentication</em>.</li>
<li>Verify that your webdav server with AuthDigest is good by using a known-good OS/Client such as Linux or a Mac.</li>
<li>On the windows machine go to Explorer\Computer and right click in empty space. Then select &#8220;Add a network location&#8221;. Now enter your normal webdav URL such as http://your.drive.com/yourfiles</li>
</ul>
<p>That should be it. It&#8217;s worked for me on several machines now. Once you add the &#8220;network location&#8221; you can map drives to the network location or to the url (it suddenly works) and do other operations normally. You can also use the &#8220;net use&#8221; command in the shell which may have more interesting options for you.</p>
<p>Some folks have asked for my Apache config. Here&#8217;s the relevant bit:<br />
<code><br />
ServerAdmin webmaster@yourdomain.com<br />
ServerName webdav.yourdomain.com</code></p>
<p><code> </code></p>
<p><code>DocumentRoot /www/somethingSecure</code></p>
<p><code> </code></p>
<p><code>Options Indexes MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
allow from all</p>
<p># Note Alias goes to our DocumentRoot.<br />
Alias /webdav /webdav.yourdomain.com</p>
<p># But we apply different settings</p>
<p>DAV On<br />
AuthType digest<br />
AuthName "webdav"<br />
AuthDigestDomain /webdav http://webdav.yourdomain.com/webdav<br />
AuthUserFile /www/auth/.yourdigest_password<br />
#AuthDigestFile  /www/webdav.yourdomain.com/digest-password --doesn't work<br />
Require valid-user</p>
<p></code></p>
<p><code><br />
</code></p>
<p><strong>Problems and issues:</strong></p>
<p>So far this works &#8216;ok&#8217; for me. A reboot seems to hose this setup. Although the &#8220;network location&#8221; still exists it doesn&#8217;t work. I haven&#8217;t had sufficient time to play with it and work out the kinds. There&#8217;s the /savecred and /persistent switches on the &#8220;net use&#8221; command that may be useful here.</p>
<ul>
<li>A trailing slash &#8220;/&#8221; makes a difference on connecting via webdav. So &#8220;http://webdav.yourserver.com&#8221; is not the same as &#8220;http://webdav.yourserver.com/&#8221;. Try it both ways if you&#8217;re having trouble.</li>
<li>The Apache Authentication Digest documentation example says to use the &#8220;AuthDigestFile&#8221; directive to point to your password file. This does not work on Debain Lenny / Apache 2. You must use &#8220;AuthUserFile&#8221; as noted in the above example.</li>
</ul>
<p><strong>Other Possibilities:</strong></p>
<p>In the event that you can&#8217;t change your authentication type you can try going the other way with a registry hack to allow basic authentication. This is for Vista. It may not work for 7. I have not tried it. Got it from <a href="http://support.microsoft.com/kb/841215">here</a>:</p>
<p><code> To work around this behavior, enable Basic authentication on the client computer. To do this, add the BasicAuthLevel registry entry to the following registry subkey, and then set the entry to a value of 2 or more:<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters<br />
To enable Basic authentication on the client computer, follow these steps:<br />
Click Start , type regedit in the Start Search box, and then click regedit.exe in the Programs list.<br />
Locate and then click the following registry key:<br />
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters<br />
On the Edit menu, point to New, and then click DWORD Value.<br />
Type BasicAuthLevel, and then press ENTER.<br />
On the Edit menu, click Modify.<br />
In the Value data box, type 2, and then click OK.</code></p>
<p><code> </code></p>
<p><code>Note The mapping is as follows:<br />
0 - Basic authentication disabled<br />
1 - Basic authentication enabled for SSL shares only<br />
2 or greater - Basic authentication enabled for SSL shares and for non-SSL shares<br />
Exit Registry Editor, and then restart the computer.</code></p>
<p>MS obviously hates webdav. It&#8217;s a big threat to them. And for a long time they&#8217;ve been abusing users in order to lock them in rather than focusing on making great products that people want to use. Other examples are:</p>
<ul>
<li>Hotmail not allowing you to forward mail to a non-MS-owned mail service</li>
<li>Bing being the only search available in IE</li>
<li>Breaking compatibility with millions of smb devices in the name of security</li>
</ul>
<p>For the record, digest based auth is better. And it&#8217;s good that they&#8217;re pushing a more secure solution. But it&#8217;s also clear that they just want to make it hard to use webdav. They post no information about the problem. If M$ made money on webdav you can bet your ass it would work or there would at least be a message saying &#8220;windows prevented you from connecting to this insecure server &#8221; but no.</p>
<p>Webdav is great. It doesn&#8217;t rely on creaky layer two protocols like the antique M$ smb / lanman crap.</p>
<p>Hope this helps. It worked for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://shon.org/blog/2010/03/04/howto-fix-windows-7-64bit-webdav/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Cloud Based Database Backup Solution</title>
		<link>http://shon.org/blog/2010/02/16/free-cloud-based-database-backup-solution/</link>
		<comments>http://shon.org/blog/2010/02/16/free-cloud-based-database-backup-solution/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 19:15:22 +0000</pubDate>
		<dc:creator>Shon</dc:creator>
		
		<guid isPermaLink="false">http://shon.org/blog/?p=244</guid>
		<description><![CDATA[This morning I altered my gmail based database backup script to allow for larger than 25 Megabyte databases. My previous solution worked great until my DB went over the gmail attachment limit of 25M.
This works great for me. I have a small 80m (uncompressed) database that I need to make nightly backups of. It may [...]]]></description>
			<content:encoded><![CDATA[<p>This morning I altered my <a href="http://shon.org/blog/?p=238" target="_blank">gmail based database backup script</a> to allow for larger than 25 Megabyte databases. My previous solution worked great until my DB went over the gmail attachment limit of 25M.</p>
<p>This works great for me. I have a small 80m (uncompressed) database that I need to make nightly backups of. It may not for you. The idea here is to use gmail as a free cloud based backup solution. If you have  a multi-terrabyte database I hope you have enough money to pay for a fancy solution.</p>
<p>As I said, my DB is about 80M uncompressed or just over 25M compressed. Just over the gmail attachment limit for a single message. So to get the job done I need to dump the DB, compress it, and split the files in to &lt; 25m chucks, then encode and mail to my gmail backup account.</p>
<p>I toyed around with &#8220;mpack&#8221; as a one command solution for splitting, encoding, and emailing the files but ran into problems when I tried to reassemble the file. mpack works great but when it splits and emails the files, the first file has MIME header info to make it appear as an attachment. The second or subsequent files are emailed as plain inline (encoded) text. I know mpack is used to send huge amounts of data to binary newsgroups but in my 15 minutes of screwing with it, I could not get it to add a MIME header to each part (email) of the file. &#8220;munpack&#8221; is supposed to read the mpacked files and do this for you but it could not work with the files that I produced. The mpack output was unacceptable as it required way to much by-hand processing to re-assemble the gzip. I still used mpack to email the files but i use &#8220;split&#8221; to break them up before mailing.</p>
<p>What sucks about my script? Everything except the fact that it currently works for me and will work until the database size doubles which should be a while. Specifically it&#8217;s not dynamic at all. The script assumes we&#8217;re breaking the database into just two files (50M limit). Also it has no logging or error handling. But hey, I&#8217;m not an SA nor a scripter. Just a guy who needs to back up his database. Here&#8217;s the script:</p>
<p><code>export d=`date +%F`<br />
mkdir YourDBName.db.""$d""_backup<br />
cd YourDBName.db."$d"_backup<br />
mysqldump --opt -u YourDBusername --password=YourDBpassword YourDBName |gzip -f &gt;YourDBName.db."$d".gz<br />
split -b 20m YourDBName.db."$d".gz YourDBName.db."$d".gz_part_<br />
mpack -s YourDBName.db."$d".gz YourDBName.db."$d".gz_part_aa YourBackupAccount@gmail.com<br />
mpack -s YourDBName.db."$d".gz YourDBName.db."$d".gz_part_ab YourBackupAccount@gmail.com<br />
cd /root<br />
rm -Rf YourDBName.db."$d"_backup<br />
</code><br />
That&#8217;s it. To restore the database just do this: Check your email. Download the attachments and combine them. I just use &#8220;cat attachment_ab&gt;&gt;attachment_aa&#8221; which appends the contents from the 2nd file (ab) to the first (aa). Then you end up with a gziped version of your database under the filename of the first emailed file (*aa). To make it easy, rename the _aa file to YourDBName.gz. Then gunzip and do a &#8220;mysql -p YourPassword YourDBName &lt; YourDBName&#8221;</p>
<p>Viola. Enjoy your Free Cloud Based Database Backup. It&#8217;s saved my ass more than once!</p>
]]></content:encoded>
			<wfw:commentRss>http://shon.org/blog/2010/02/16/free-cloud-based-database-backup-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
