<?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>White Wizard &#187; Category-less</title>
	<atom:link href="http://nathan.bethandnathan.com/index.php?feed=rss2&#038;cat=1" rel="self" type="application/rss+xml" />
	<link>http://nathan.bethandnathan.com</link>
	<description></description>
	<lastBuildDate>Fri, 27 Aug 2010 22:39:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Dropbox Uploader (Stuff I love!)</title>
		<link>http://nathan.bethandnathan.com/?p=53</link>
		<comments>http://nathan.bethandnathan.com/?p=53#comments</comments>
		<pubDate>Fri, 27 Aug 2010 19:14:47 +0000</pubDate>
		<dc:creator>nathan</dc:creator>
				<category><![CDATA[Category-less]]></category>

		<guid isPermaLink="false">http://nathan.bethandnathan.com/?p=53</guid>
		<description><![CDATA[So, lifehacker had a blog post about a dropbox uploader and I really really wanted to get it working.  It took me awhile, but I finally got it working how I wanted. Check out the final product: http://nathan.bethandnathan.com/dropbox/ However, I had some problems getting it going.  Here is everything I had to do to make [...]]]></description>
			<content:encoded><![CDATA[<p>So, <a href="http://lifehacker.com" target="_blank">lifehacker </a>had a blog post about a <a href="http://lifehacker.com/5622534/dropbox-uploader-allows-anyone-to-upload-files-to-your-dropbox-account" target="_blank">dropbox uploader </a>and I really really wanted to get it working.  It took me awhile, but I finally got it working how I wanted.</p>
<p>Check out the final product: <a href="http://nathan.bethandnathan.com/dropbox/" target="_blank">http://nathan.bethandnathan.com/dropbox/</a></p>
<p>However, I had some problems getting it going.  Here is everything I had to do to make it work&#8230;</p>
<p><strong>Day 1:</strong></p>
<p>I first downloaded the code from <a href="http://www.ampercent.com/dropbox-uploader-allow-users-upload-files-dropbox-account/" target="_blank">ampercent</a> but after manually entering in my email address and password I was getting weird errors because I&#8217;m on windows hosting on not unix hosting.  So the first thing I did was change the $tmpDir variable to be an absolute path to a directory that I wanted to store the files:</p>
<p><code>$tmpDir = 'D:\path\to\my\domain\myUploadFolder7837839';</code></p>
<p>That fixed my $tmpDir problems but I had another problem&#8230;</p>
<p>I was now getting cURL errors because the cURL php extension wasn&#8217;t installed.  Unfortunately, I couldn&#8217;t fix the cURL errors on my own so I had to submit a ticket with my hosting provider to have them install the cURL extension for PHP.</p>
<p><strong>Day 2:</strong></p>
<p>After my hosting provider installed the cURL extension, I tried again.  Unfortunately, I was now getting SSL Cert errors:</p>
<p><code>Error: Cannot execute request: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed</code></p>
<p>This was frustrating&#8230; Luckily it seemed that Google had a solution for me on the <a href="http://jaka.kubje.org/projects/dropbox-uploader/" target="_blank">original coder&#8217;s blog</a>.  I simply needed to download the needed certificate and point the Dropbox uploaded to it before the upload method:<br />
<code>$uploader-&gt;setCaCertificateFile('path/to/the/certificate.cer');  //&lt;--this is the new line you have to add) </code></p>
<p><code>$uploader-&gt;upload($tmpFile, $_POST['dest']);<br />
</code></p>
<p>I was really excited until I got another error:</p>
<p><code>Error: Cannot execute request: error setting certificate verify locations: CAfile: D:\path\to\my\cert.cer CApath: none</code></p>
<p>Wow!  I was really struggling here.  After a lot of struggling and searching, it turned out to be a combination of issues.</p>
<ul>
<li>Issue #1: one of the directories in the path to my cert file started with an &#8216;n&#8217; (&#8216;nathan.bethandnathan.com&#8217;)</li>
<li>Issue #2: the original code to fix the cert issue from coder&#8217;s site has double quotes around the path to the cert file</li>
<li>Issue #3: PHP handles double quotes around strings differently than it does single quotes.</li>
</ul>
<p>Why does this matter?  Well, \n in PHP means &#8220;New Line&#8221;.  So when the path to my directory was being interpreted by the PHP interpreter it never found the cert file because there was a \n right in the middle of my path (&#8216;\nathan.bethandnathan.com&#8217; starts with \n, so the interpreter thought my path had a &#8220;new line&#8221; in it, which doesn&#8217;t make sense and so it blew up).</p>
<p>How did I fix this?  change the double quotes surrounding my path to be single quotes.  (I already fixed this in the code above).</p>
<p>So, I fixed the path, things are looking good, right?  Wrong.  I had the same error again:<br />
<code>Error: Cannot execute request: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed</code></p>
<p>Argh!  What is the issue here?  After more Googling I couldn&#8217;t find anything so I changed my search terms to &#8220;cURL PHP SSL&#8221; and I found <a href="http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/" target="_blank">this page which explains how to use cURL in PHP to access HTTPS sites</a>.  After reading about it I realized I had two options:</p>
<ol>
<li>Ignore SSL</li>
<li>Get it working the right way</li>
</ol>
<p>I opted for option 2 because it was simple:</p>
<ol>
<li>Go to the site where you are trying to connect to via SSL</li>
<li>Download the cert (click the lock icon, view the cert, export it, save as X.509 Certificate (PEM) with a .cer extension</li>
<li>Upload the .cer file to your hosting provider</li>
</ol>
<p>I did all of that, changed my path to my cert file in my uploader code&#8230; and&#8230; IT WORKED!</p>
<p>WAHOO!</p>
<p>I was way excited.   I uploaded a few files and it works great.  However, instead of being done I decided to get the &#8220;pretty&#8221; version of the uploader from <a href="http://www.addictivetips.com/internet-tips/allow-anyone-to-upload-files-to-your-dropbox-folder/" target="_blank">Addictive Tips</a>.  Neat, right?  But wait a minute, what about password protection?</p>
<p>Well have no fear!  <a href="http://www.ampercent.com/dropbox-uploader-allow-users-upload-files-dropbox-account/" target="_blank">Ampercent updated their post to include password protection</a>!  So, I downloaded their password version and integrated it with the pretty version.</p>
<p>Well hold on here, would it be possible to easily share my code with others?  Why of course!  I decided to clean up my integrated version and I put a configuration at the top of the index.php.  I also removed the dropbox destination out of the HTML form so people can&#8217;t see it.</p>
<p><strong>You can download my final version as a<a href="http://dl.dropbox.com/u/8328259/stuff_my_dropbox.zip"> zip file here</a></strong>.  Just update the top configuration section with your own settings and you should be good to go!</p>
<p>Woot!</p>
<p><strong>UPDATE #1:</strong></p>
<p>I just found someone that uses the API instead of page scraping, so I&#8217;m going to update my code accordingly and put a new download&#8230; I&#8217;ll let you know when that happens.</p>
<p>Also, my hosting provider is limiting me to only 2M files&#8230; bummer.</p>
<p><strong>UPDATE #2:</strong></p>
<p>I added my modifications to the other OAuth code and updated my zip file.</p>
<p>Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://nathan.bethandnathan.com/?feed=rss2&amp;p=53</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Over 30 Crowd</title>
		<link>http://nathan.bethandnathan.com/?p=49</link>
		<comments>http://nathan.bethandnathan.com/?p=49#comments</comments>
		<pubDate>Tue, 22 Jun 2010 20:25:25 +0000</pubDate>
		<dc:creator>nathan</dc:creator>
				<category><![CDATA[Category-less]]></category>

		<guid isPermaLink="false">http://nathan.bethandnathan.com/?p=49</guid>
		<description><![CDATA[I saw this today about The Over 30 Crowd and how easy it is for kids these days.  Although I don&#8217;t necessarily agree, it is a funny read (warning, minor swearing).]]></description>
			<content:encoded><![CDATA[<p>I saw this today about <a href="http://blog.mladineo.com/2010/04/the-over-30-crowd/" target="_blank">The Over 30 Crowd</a> and how easy it is for kids these days.  Although I don&#8217;t necessarily agree, it is a funny read (warning, minor swearing).</p>
]]></content:encoded>
			<wfw:commentRss>http://nathan.bethandnathan.com/?feed=rss2&amp;p=49</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Open in Explorer View Running Slow in SharePoint?</title>
		<link>http://nathan.bethandnathan.com/?p=47</link>
		<comments>http://nathan.bethandnathan.com/?p=47#comments</comments>
		<pubDate>Tue, 15 Jun 2010 14:45:13 +0000</pubDate>
		<dc:creator>nathan</dc:creator>
				<category><![CDATA[Category-less]]></category>

		<guid isPermaLink="false">http://nathan.bethandnathan.com/?p=47</guid>
		<description><![CDATA[I used to have a wiki to store knowledge, now I don&#8217;t really have anything (maybe I should put my wiki online again)&#8230; Anyhow, I found this little gem today regarding webdav slowness. Essentially, SharePoint uses WebDav connections when you click &#8220;Open in Windows Explorer&#8221;.  If you happen to be running IE 8, you are [...]]]></description>
			<content:encoded><![CDATA[<p>I used to have a wiki to store knowledge, now I don&#8217;t really have anything (maybe I should put my wiki online again)&#8230;</p>
<p>Anyhow, I found <a href="http://oddballupdate.com/2009/12/18/fix-slow-webdav-performance-in-windows-7/" target="_blank">this little gem today regarding webdav slowness</a>.</p>
<p>Essentially, SharePoint uses WebDav connections when you click &#8220;Open in Windows Explorer&#8221;.  If you happen to be running IE 8, <strong>you are going to want to turn off &#8220;Automatically Detect Settings&#8221; </strong>(Internet Options &gt; Connections Tab &gt; LAN Settings &gt; Uncheck &#8220;Automatically Detect Settings&#8221;).</p>
<p>The speed of your connection should go from a 1994 1,200 baud modem to a 2008 DSL connection.  Wahoo!</p>
]]></content:encoded>
			<wfw:commentRss>http://nathan.bethandnathan.com/?feed=rss2&amp;p=47</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why does Apple do so well when it comes to technology?</title>
		<link>http://nathan.bethandnathan.com/?p=39</link>
		<comments>http://nathan.bethandnathan.com/?p=39#comments</comments>
		<pubDate>Thu, 10 Jun 2010 22:00:11 +0000</pubDate>
		<dc:creator>nathan</dc:creator>
				<category><![CDATA[Category-less]]></category>

		<guid isPermaLink="false">http://nathan.bethandnathan.com/?p=39</guid>
		<description><![CDATA[Here&#8217;s why: Can anyone say &#8220;painful&#8221;?  I can&#8217;t believe that there are 9 steps to just start using office web apps&#8230; I know there isn&#8217;t an Apple alternative, but there are Google Docs.  Let me show you how to log in to Google Docs: Log in to http://docs.google.com Done.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s why:</p>
<p style="text-align: center;"><a href="http://content.screencast.com/users/nathangg/folders/Jing/media/1b05ff41-9e6d-423d-816f-3ea3b5e3234d/2010-06-10_1556.png"><img class="aligncenter" title="Painful Instructions" src="http://content.screencast.com/users/nathangg/folders/Jing/media/1b05ff41-9e6d-423d-816f-3ea3b5e3234d/2010-06-10_1556.png" alt="" width="494" height="306" /></a></p>
<p>Can anyone say &#8220;painful&#8221;?  I can&#8217;t believe that there are 9 steps to just start using office web apps&#8230; I know there isn&#8217;t an Apple alternative, but there are Google Docs.  Let me show you how to log in to Google Docs:</p>
<ol>
<li>Log in to http://docs.google.com</li>
<li>Done.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://nathan.bethandnathan.com/?feed=rss2&amp;p=39</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Glass Coverage on your auto insurance</title>
		<link>http://nathan.bethandnathan.com/?p=37</link>
		<comments>http://nathan.bethandnathan.com/?p=37#comments</comments>
		<pubDate>Mon, 10 May 2010 23:06:03 +0000</pubDate>
		<dc:creator>nathan</dc:creator>
				<category><![CDATA[Category-less]]></category>

		<guid isPermaLink="false">http://nathan.bethandnathan.com/?p=37</guid>
		<description><![CDATA[So, I just got an insurance quote today to see how much it would cost to get glass coverage on my auto insurance. $35/year for glass coverage Well, that seems reasonable, except that my comprehensive deductible is already set at $100 and my insurance will cover a windshield replacement as a comprehensive claim that doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>So, I just got an insurance quote today to see how much it would cost to get glass coverage on my auto insurance.</p>
<p>$35/year for glass coverage</p>
<p>Well, that seems reasonable, except that my comprehensive deductible is already set at $100 and my insurance will cover a windshield replacement as a comprehensive claim that doesn&#8217;t count against me.</p>
<p>$100/claim</p>
<p>So, at $35/year extra OR keeping my coverage @ $100/claim, I would need to replace my windshield more often than every 2.85 years to make the glass coverage worth it.  ($100/$35)</p>
<p>So, am I going to need a windshield replacement more often than every 2.85 years?</p>
<p>If I had only one car, I might say, &#8220;no&#8221;.</p>
<p>If I lived in a different state (one with less rocks <img src='http://nathan.bethandnathan.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ), I might say &#8220;no&#8221;.</p>
<p>But, I have two cars, and we live in a state with lots of rocks and dirt.  Besides, I walked around the block the other day and it seems that nearly half of the cars parked on the street had cracks in their windshield.</p>
<p>I suppose that given the reasons above, I&#8217;m leaning towards the side of getting the glass coverage.  Why?  Because I have 2 cars and potentially having to wait 5.7 years (2.85 years x 2 cars) between windshield replacement for each car .  We&#8217;ll see&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://nathan.bethandnathan.com/?feed=rss2&amp;p=37</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Photocopy machines have hard drives, too</title>
		<link>http://nathan.bethandnathan.com/?p=35</link>
		<comments>http://nathan.bethandnathan.com/?p=35#comments</comments>
		<pubDate>Mon, 03 May 2010 03:15:07 +0000</pubDate>
		<dc:creator>nathan</dc:creator>
				<category><![CDATA[Category-less]]></category>

		<guid isPermaLink="false">http://nathan.bethandnathan.com/?p=35</guid>
		<description><![CDATA[http://www.thestar.com/news/gta/article/781567&#8211;high-tech-copy-machines-a-gold-mine-for-data-thieves Looks like you should be mindful of what you are photocopying and where.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.thestar.com/news/gta/article/781567--high-tech-copy-machines-a-gold-mine-for-data-thieves" target="_blank">http://www.thestar.com/news/gta/article/781567&#8211;high-tech-copy-machines-a-gold-mine-for-data-thieves</a></p>
<p>Looks like you should be mindful of what you are photocopying and where.</p>
]]></content:encoded>
			<wfw:commentRss>http://nathan.bethandnathan.com/?feed=rss2&amp;p=35</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>8 Bits O&#8217; Fun</title>
		<link>http://nathan.bethandnathan.com/?p=31</link>
		<comments>http://nathan.bethandnathan.com/?p=31#comments</comments>
		<pubDate>Fri, 11 Dec 2009 22:48:42 +0000</pubDate>
		<dc:creator>nathan</dc:creator>
				<category><![CDATA[Category-less]]></category>

		<guid isPermaLink="false">http://nathan.bethandnathan.com/?p=31</guid>
		<description><![CDATA[8 Bit Songs &#8211; Christmas Style Listen to &#8220;Gloria&#8221; (flash required).  The others are okay but that one seemed the best to me.]]></description>
			<content:encoded><![CDATA[<p><a href="http://8bitchristmas.com/" target="_blank">8 Bit Songs &#8211; Christmas Style</a></p>
<p>Listen to &#8220;Gloria&#8221; (flash required).  The others are okay but that one seemed the best to me.</p>
]]></content:encoded>
			<wfw:commentRss>http://nathan.bethandnathan.com/?feed=rss2&amp;p=31</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Please stop spending so much</title>
		<link>http://nathan.bethandnathan.com/?p=21</link>
		<comments>http://nathan.bethandnathan.com/?p=21#comments</comments>
		<pubDate>Fri, 07 Aug 2009 18:50:10 +0000</pubDate>
		<dc:creator>nathan</dc:creator>
				<category><![CDATA[Category-less]]></category>

		<guid isPermaLink="false">http://nathan.bethandnathan.com/?p=21</guid>
		<description><![CDATA[I know some people think Glenn Beck is out there, but I do think he brings up some good points: (link) Specifically, our government is spending too much.  We can&#8217;t afford a full re-write of Healthcare or offer a government option that competes with private insurance.  We can afford some reform to make healthcare more [...]]]></description>
			<content:encoded><![CDATA[<p>I know some people think Glenn Beck is <em>out there</em>, but I do think he brings up some good points:</p>
<p><object id="mediumFlashEmbedded" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="305" height="275" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="undefined" /><param name="bgcolor" value="#000000" /><param name="flashvars" value="playerId=videolandingpage&amp;playerTemplateId=fncLargePlayer&amp;categoryTitle=&amp;referralObject=7898811&amp;referralPlaylistId=playlist" /><param name="src" value="http://foxnews1.a.mms.mavenapps.net/mms/rt/1/site/foxnews1-foxnews-pub01-live/current/videolandingpage/fncLargePlayer/client/embedded/embedded.swf" /><param name="wmode" value="false" /><param name="allowfullscreen" value="true" /><param name="quality" value="high" /><embed id="mediumFlashEmbedded" type="application/x-shockwave-flash" width="305" height="275" src="http://foxnews1.a.mms.mavenapps.net/mms/rt/1/site/foxnews1-foxnews-pub01-live/current/videolandingpage/fncLargePlayer/client/embedded/embedded.swf" quality="high" allowfullscreen="true" wmode="false" flashvars="playerId=videolandingpage&amp;playerTemplateId=fncLargePlayer&amp;categoryTitle=&amp;referralObject=7898811&amp;referralPlaylistId=playlist" bgcolor="#000000" name="undefined"></embed></object> (<a href="http://www.foxnews.com/video/index.html?playerId=videolandingpage&amp;streamingFormat=FLASH&amp;referralObject=7898811&amp;referralPlaylistId=playlist" target="_blank">link</a>)</p>
<p>Specifically, our government is spending too much.  We can&#8217;t afford a full re-write of Healthcare or offer a government option that competes with private insurance.  We <em>can</em> afford some reform to make healthcare more accessible but not a full rewrite.</p>
<p>Why?  Well, here&#8217;s what I&#8217;m thinking: if the government creates a government sponsored option, they will be competing with current healthcare providers.  We know the government option is going to cost less.  So, what will your employer do when faced with the choice every year: continue to offer the more expensive plan (private insurance) or switch all their employees to the lower-cost government one?</p>
<p>If your employer sticks with their private plan, great, right?  Well, what about the employer down the street?  What about a large corporation?  What if ExxonMobil switches?  Or GE? Or Wal-Mart?  If other companies switch but yours doesn&#8217;t, private insurance costs are going to go up.</p>
<p>Now fast forward another year or two.  The cost differential between government insruance and private insurance continues to widen.  How long do you think it will be before we have a single payer system (government run healthcare)?  How much is that single payer system going to cost?  Who pays for government programs?  How good do you think the coverage of the single payer system will be in comparison to how it is now? [1]</p>
<p>We already how Obama feels about single payer: (I&#8217;m not sure why this is &#8220;SHOCKING&#8221;, <a href="http://blogs.wsj.com/washwire/2008/08/19/obama-touts-single-payer-system/" target="_blank">here&#8217;s a WSJ Article where he talks about it</a>)</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://www.youtube.com/v/p-bY92mcOdk&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en&amp;feature=player_embedded&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/p-bY92mcOdk&amp;color1=0xb1b1b1&amp;color2=0xcfcfcf&amp;hl=en&amp;feature=player_embedded&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object>(<a href="http://www.youtube.com/watch?v=p-bY92mcOdk&amp;feature=player_embedded" target="_blank">link</a>)</p>
<p>&#8212;</p>
<p>So, I want the government to stop spending so much money.  I DO think that healthcare can be better and we can make simple changes to help things along (make it so there is a reward cap on malpractice cases so malpractice insurance doesn&#8217;t cost so much, do other simple things that people smarter would come up with but still don&#8217;t cost $1 trillion).</p>
<p>I DON&#8217;T think we should spend $1+ trillion to fundamentally change how the whole system will work.  I don&#8217;t even think we should spend $1+ trillion.  Let&#8217;s come up with something better.</p>
<p>&#8212;</p>
<p>[1] I know other countries have government sponsored healthcare.  Do you want that type of healthcare?  What about scarcity: when we have to choose who gets a surgery because there are too many people and not enough doctors?  Who gets to have the surgery?  Are specialists going to want to spend 15+ years of their life becoming the absolute expert in their specialty and do it to get paid less money?</p>
<p>Let&#8217;s make small changes, let&#8217;s make things better through evolution, not revolution.</p>
]]></content:encoded>
			<wfw:commentRss>http://nathan.bethandnathan.com/?feed=rss2&amp;p=21</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>15 Reasons Why I Love My Wife.</title>
		<link>http://nathan.bethandnathan.com/?p=20</link>
		<comments>http://nathan.bethandnathan.com/?p=20#comments</comments>
		<pubDate>Thu, 21 Feb 2008 02:56:24 +0000</pubDate>
		<dc:creator>nathan</dc:creator>
				<category><![CDATA[Category-less]]></category>

		<guid isPermaLink="false">http://nathan.bethandnathan.com/?p=20</guid>
		<description><![CDATA[She is kind She is my best friend She is cute She loves our kids She loves the  gospel She reads the scriptures She prays She makes excellent food She wakes up with our youngest son in the night to feed him She listens to me She means it when she tells me she loves [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li>She is kind</li>
<li>She is my best friend</li>
<li>She is cute</li>
<li>She loves our kids</li>
<li>She loves the  gospel</li>
<li>She reads the scriptures</li>
<li>She prays</li>
<li>She makes excellent food</li>
<li>She wakes up with our youngest son in the night to feed him</li>
<li>She listens to me</li>
<li>She means it when she tells me she loves me</li>
<li>She smiles</li>
<li>She knows what database normalization is</li>
<li>She is computer savvy</li>
<li>She loves me</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://nathan.bethandnathan.com/?feed=rss2&amp;p=20</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why Linux is still a pain</title>
		<link>http://nathan.bethandnathan.com/?p=19</link>
		<comments>http://nathan.bethandnathan.com/?p=19#comments</comments>
		<pubDate>Thu, 13 Dec 2007 01:31:57 +0000</pubDate>
		<dc:creator>nathan</dc:creator>
				<category><![CDATA[Category-less]]></category>

		<guid isPermaLink="false">http://nathan.bethandnathan.com/?p=19</guid>
		<description><![CDATA[So, I&#8217;m trying to install OpenVPN on Debian, right? apt-get install openvpn Well, it looks like it installs, but upon further inspection, it seems that it didn&#8217;t install the TAP/TUN adapter: ifconfig -a Argh! So, I thought I&#8217;d download it and compile it from source: wget http://openvpn.net/release/openvpn-2.0.9.tar.gz tar -xzvf openvpn-2.0.9.tar.gz cd openvpn-2.0.9.tar.gz ./configure But that [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;m trying to install OpenVPN on Debian, right?<br />
<code><br />
apt-get install openvpn<br />
</code></p>
<p>Well, it looks like it installs, but upon further inspection, it seems that it didn&#8217;t install the TAP/TUN adapter:<br />
<code><br />
ifconfig -a<br />
</code><br />
Argh!</p>
<p>So, I thought I&#8217;d download it and compile it from source:<br />
<code><br />
wget http://openvpn.net/release/openvpn-2.0.9.tar.gz<br />
tar -xzvf openvpn-2.0.9.tar.gz<br />
cd openvpn-2.0.9.tar.gz<br />
./configure<br />
</code><br />
But that gives a painful error:<br />
<code><br />
checking for ifconfig... /sbin/ifconfig<br />
checking for ip... /sbin/ip<br />
checking for route... /sbin/route<br />
checking build system type... i686-pc-linuxlibc1<br />
checking host system type... i686-pc-linuxlibc1<br />
checking target system type... i686-pc-linuxlibc1<br />
checking for a BSD-compatible install... /usr/bin/install -c<br />
checking whether build environment is sane... yes<br />
checking for gawk... no<br />
checking for mawk... mawk<br />
checking whether make sets $(MAKE)... yes<br />
checking for gcc... gcc<br />
checking for C compiler default output file name... configure: error: C compiler cannot create executables<br />
See `config.log' for more details.<br />
</code><br />
Hmmm, upon inspection of config.log, I see:<br />
<code><br />
/usr/bin/ld: crt1.o: No such file: No such file or directory<br />
</code><br />
A google search of the above text reveals <a href="http://anaaman.blogspot.com/2006/01/crt1o-no-such-file-no-such-file-or.html">this</a>, with a solution:<br />
<code><br />
apt-get install libc6-dev<br />
</code></p>
<p>Problem solved.  I&#8217;m starting to remember why I stopped using linux <img src='http://nathan.bethandnathan.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Update, problem not solved.  It turns out I needed the LZO compression:<br />
<code><br />
wget http://www.oberhumer.com/opensource/lzo/download/lzo-2.02.tar.gz<br />
</code></p>
<p>But that needs the g++ compiler:<br />
<code><br />
apt-get install g++<br />
</code></p>
<p>When does it stop?!?  <img src='http://nathan.bethandnathan.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Update: it doesn&#8217;t stop:<br />
<code><br />
configure: error: OpenSSL Crypto headers not found.<br />
</code><br />
Google reveals:<br />
<code><br />
apt-get install libssl-dev<br />
</code><br />
Wow, all of that just for ./configure.  Hopefully make exits okay&#8230;</p>
<p>Update: this is like the post that never dies.  LOL.</p>
<p>So, I was able to figure out that the TAP/TUN adapter installed:<br />
<code><br />
limybox:~# lsmod | grep tun<br />
tun                    10336  0<br />
</code><br />
I&#8217;m not sure if it was my doing (I did run a few commands that openVPN <a href="http://openvpn.net/install.html">requested I run</a>):<br />
<code><br />
(1)  make device node:         mknod /dev/net/tun c 10 200<br />
(2a) add to /etc/modules.conf: alias char-major-10-200 tun<br />
(2b) load driver:              modprobe tun<br />
(3)  enable routing:           echo 1 &gt; /proc/sys/net/ipv4/ip_forward</code></p>
<p>Note that either of steps (2a) or (2b) is sufficient.  While (2a)<br />
only needs to be done once per install, (2b) needs to be done once<br />
per reboot.</p>
<p>Anywho, it turns out that with a windows client, the VPN server can push gateway and IP information to the client and windows will change the route table (route print).  But with Linux as a client, it ignores the messages from the VPN server, SO, you have to set the route stuff yourself either on startup of openvpn (&#8211;ifconfig 192.168.1.160 255.255.255.0), or put that in a config file, or try a script (see <a href="http://openvpn.net/howto.html#dhcp">http://openvpn.net/howto.html#dhcp</a>).</p>
<p>For those that care, here is my client side config:<br />
<code><br />
remote my.ipaddress.com</p>
<p>port 21<br />
dev tap<br />
ifconfig 192.168.1.160 255.255.255.0<br />
secret static.key<br />
proto tcp-client<br />
comp-lzo</p>
<p>route-gateway 192.168.1.1<br />
redirect-gateway<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nathan.bethandnathan.com/?feed=rss2&amp;p=19</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
