<?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>Josh Highland &#187; linux</title>
	<atom:link href="http://joshhighland.com/blog/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://joshhighland.com/blog</link>
	<description>the living internet</description>
	<lastBuildDate>Sat, 14 Apr 2012 03:00:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Yes, you can &#8220;touch&#8221; this</title>
		<link>http://joshhighland.com/blog/2010/10/20/yes-you-can-touch-this/</link>
		<comments>http://joshhighland.com/blog/2010/10/20/yes-you-can-touch-this/#comments</comments>
		<pubDate>Thu, 21 Oct 2010 00:09:02 +0000</pubDate>
		<dc:creator>Josh Highland</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[touch]]></category>

		<guid isPermaLink="false">http://joshhighland.com/blog/?p=13490</guid>
		<description><![CDATA[&#8220;touch&#8221; is a handy unix utility to udate the time stamp on a file. Recenly I ran into a case on my mac book pro that required me to update all of the files and sub-directories of a project with the current date. In terminal, I could have gone one by one an used this [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img class="size-medium wp-image-13491 alignnone" title="Yes, you can touch this" src="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2010/10/cant_touch_this-300x300.jpg" alt="cant touch this 300x300 Yes, you can touch this" width="300" height="300" /></p>
<p>&#8220;touch&#8221; is a handy unix utility to udate the time stamp on a file. Recenly I ran into a case on my mac book pro that required me to update all of the files and sub-directories of a project with the current date.</p>
<p>In terminal, I could have gone one by one an used this command on each file</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">touch</span> thisIsAFileName</pre></div></div>

<p>But after a few moments of onterweb searching, I came across a perfect solution</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-print0</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">xargs</span> <span style="color: #660033;">-0</span> <span style="color: #c20cb9; font-weight: bold;">touch</span></pre></div></div>

<p>This command will find all of the file in all sub-directories, even if they have spaces in their name, and set their last updated time to the current time.</p>
<p>Just a handy tip I thought I would share</p>
]]></content:encoded>
			<wfw:commentRss>http://joshhighland.com/blog/2010/10/20/yes-you-can-touch-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>timthumb.php returns a 404 Error in WordPress</title>
		<link>http://joshhighland.com/blog/2010/05/20/timthumb-php-returns-a-404-error-in-wordpress/</link>
		<comments>http://joshhighland.com/blog/2010/05/20/timthumb-php-returns-a-404-error-in-wordpress/#comments</comments>
		<pubDate>Fri, 21 May 2010 06:00:56 +0000</pubDate>
		<dc:creator>Josh Highland</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[linux. php]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[timthumb]]></category>

		<guid isPermaLink="false">http://joshhighland.com/blog/?p=1199</guid>
		<description><![CDATA[timthumb is a great little php script that helps create thumbnail images (http://code.google.com/p/timthumb). I&#8217;ve used it before, but recently I purchased a wordpress theme that used it, and it wasn&#8217;t working. I would get a 404 error when I tired to access the directly via a url like this: theDomain.com/wp-content/themes/theTheme/scripts/timthumb.php?src=/wp-content/uploads/2010/05/moose1.jpg&#38;h=207&#38;w=237&#38;zc=1&#38;q=80 After some digging around in [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2010/05/create-wordpress-thumbnails-300x300.jpg"><img class="alignleft size-thumbnail wp-image-1200" title="timthumb.php returns a 404 Error in Wordpress" src="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2010/05/create-wordpress-thumbnails-300x300-150x150.jpg" alt="create wordpress thumbnails 300x300 150x150 timthumb.php returns a 404 Error in Wordpress" width="150" height="150" /></a>timthumb is a great little php script that helps create thumbnail images (<a href="http://code.google.com/p/timthumb">http://code.google.com/p/timthumb</a>). I&#8217;ve used it before, but recently I purchased a wordpress theme that used it, and it wasn&#8217;t working.</p>
<p>I would get a 404 error when I tired to access the directly via a url like this:<br />
theDomain.com/wp-content/themes/theTheme/scripts/timthumb.php?src=/wp-content/uploads/2010/05/moose1.jpg&amp;h=207&amp;w=237&amp;zc=1&amp;q=80</p>
<p>After some digging around in log files on my server I realized the error</p>
<blockquote><p>SoftException in Application.cpp:610: Directory  “/home/usernamehere/public_html/wp-content” is writable by others</p></blockquote>
<p>My problem had to so with the directory permissions! &#8220;writable by others&#8221; means that the permission on the directory were set to &#8220;777&#8243;. I changed the permissions of the directory using chmod to 755, and everything started to work.</p>
<p>Lesson learned, if timthumb.php is not working at giving you 404 errors, check the permission of the directory that contains the php file.</p>
]]></content:encoded>
			<wfw:commentRss>http://joshhighland.com/blog/2010/05/20/timthumb-php-returns-a-404-error-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Remove Unwanted Firefox Auto-Suggest Entries</title>
		<link>http://joshhighland.com/blog/2010/02/06/remove-unwanted-firefox-auto-suggest-entries/</link>
		<comments>http://joshhighland.com/blog/2010/02/06/remove-unwanted-firefox-auto-suggest-entries/#comments</comments>
		<pubDate>Sat, 06 Feb 2010 21:00:40 +0000</pubDate>
		<dc:creator>Josh Highland</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[autosuggest]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://joshhighland.com/blog/?p=1057</guid>
		<description><![CDATA[Firefox 3 is awesome we all know that, but there are some things that that would just be nice to have. One of those things would be the ability to control what appears for the auto suggest when you type in the URL bar. Most of the time FireFox does a very good job of [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img class="size-full wp-image-1058 alignleft" title="Remove Unwanted Firefox Auto Suggest Entries" src="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2010/02/firefox.jpg" alt="firefox Remove Unwanted Firefox Auto Suggest Entries" width="250" height="250" /></p>
<p>Firefox 3 is awesome we all know that, but there are some things that that would just be nice to have. One of those things would be the ability to control what appears for the auto suggest when you type in the URL bar.</p>
<p>Most of the time FireFox does a very good job of figuring out what you want to do, but when it goes bad, it goes really bad and gets annoying fast.</p>
<p>The other day I accidentally typed in &#8220;google.com/a&#8221;, and from that moment time on, everytime I wanted to go to &#8220;google.com&#8221;, it would auto complete to &#8220;google.com/a&#8221;, and i would end up going there. Very annoying.</p>
<p>I searched the Firefox menus but couldn&#8217;t find anything to help. I didn&#8217;t want to wipe out all of the auto complete entries, I find most of them helpful. I did some research and realized that you can remove these entries manually, but you have to do it in an unconventional way.</p>
<p><span style="text-decoration: underline;"><strong>How remove those unwanted auto suggest entries</strong></span></p>
<p><strong>1. The list appears as you type something.<br />
2. Select an entry by pointing you mouse at the item in the list, it will highlight.<br />
3. Press Shift + Delete from your keyboard to delete the entry.</strong></p>
<p><img title="Remove Unwanted Firefox Auto Suggest Entries" src="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2010/02/Screen-shot-2010-02-05-at-6.53.45-PM.png" alt="Screen shot 2010 02 05 at 6.53.45 PM Remove Unwanted Firefox Auto Suggest Entries" width="547" height="228" /></p>
<p>That&#8217;s all! You can remove entries from the address bar.  This trick works on any Firefox auto complete list, including text fields and other dropdown suggestions.</p>
<p>This also works on windows, mac and linux machines</p>
]]></content:encoded>
			<wfw:commentRss>http://joshhighland.com/blog/2010/02/06/remove-unwanted-firefox-auto-suggest-entries/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Controlling Twitter SMS notifications through code</title>
		<link>http://joshhighland.com/blog/2009/06/01/controlling-twitter-sms-notifications-through-code/</link>
		<comments>http://joshhighland.com/blog/2009/06/01/controlling-twitter-sms-notifications-through-code/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 06:37:27 +0000</pubDate>
		<dc:creator>Josh Highland</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[web 2.0]]></category>
		<category><![CDATA[curl]]></category>

		<guid isPermaLink="false">http://joshhighland.com/blog/?p=647</guid>
		<description><![CDATA[It&#8217;s not secret my current favorite tech toys are my iPhone and Twitter. I follow several hundred people of interest, and regularly use TwitterFon Pro, TweetDeck and Twitter.com to keep up with them all. For an elite group of people I follow on twitter I choose to have their updates pushed to me via SMS [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img class="alignnone size-full wp-image-646" title="Controlling Twitter SMS notifications through code" src="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2009/06/img_0048.png" alt="img 0048 Controlling Twitter SMS notifications through code" width="320" height="480" /></p>
<p>It&#8217;s not secret my current favorite tech toys are my iPhone and Twitter.</p>
<p>I follow several hundred people of interest, and regularly use <a href="http://twitterfon.com/">TwitterFon Pro</a>, <a href="http://TweetDeck.com">TweetDeck</a> and <a href="http://Twitter.com">Twitter.com</a> to keep up with them all. For an elite group of people I follow on twitter I choose to have their updates pushed to me via SMS (text message) to my phone.</p>
<p>Sometimes I&#8217;m in area where I dont have reliable service to my phone (most of the meeting rooms at my work for some reason), and Twitter will try to send me an SMS message telling me that one of my good friends just made a tweet. If Twitter cant deliver that tweet for some reason, like the phone doesnt have service, Twitter simply stops sending message to your phone. There has been many times where i have thought to myself &#8220;damn Twitter is quiet today&#8221;, then I log onto Twitter.com and see a &#8220;is you device have trouble?&#8221; error. If i don&#8217;t go check the website, I have no idea that Twitter turned off SMS updates to my phone. Twitter is cool but they aren&#8217;t cool enough to send you an email saying &#8220;Hey your phone is screwed up, we are going to stop sending you SMS message until you fix it&#8221;. Atleast then the poor bastards like me who are addicted to twitter would know what we have to do.</p>
<p>Because I am such a Twitter addict, I have come up with a plan to end my frustrations with this problem. The solution? Use some evil &#8220;robots&#8221; to do my bidding. I have blogged about them before, I am talking about <a href="http://joshhighland.com/blog/2009/01/20/cron-will-do-your-bidding/">Cron </a>and <a href="http://joshhighland.com/blog/2009/01/27/let-curl-do-your-heavy-lifting/">Curl</a>. okokok, so they aren&#8217;t evil robots they are software running on my computer.</p>
<p>Twitter has an awesome <a href="http://apiwiki.twitter.com/">API </a>(Application Programming Interface) that allows you to do all sorts of sweet things using <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer">REST</a> based http requests, including <a href="http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-account%C2%A0update_delivery_device" rel="nofollow">turning on and off SMS notifications to your phone</a>.</p>
<p>cURL is an application that allows you to connect to web addresses from a command line.</p>
<p>cron is an application that allows you run application at scheduled intervals.</p>
<p>Can you guess where this is all going? Here is mathematical representation for you<br />
<em>((Twitter API + cURL) * cron(30 minutes)) = Happy Josh Highland<br />
</em></p>
<p>I have cron run the following command every 30 minutes (replace username and password with your own of course)</p>
<blockquote><p>/usr/bin/curl -u user:password -d device=sms http://twitter.com/account/update_delivery_device.xml</p></blockquote>
<p>I will never need to log onto twitter to turn on my SMS notifications ever again. In the event that Twitter disables notifications to my phone, every 30 minutes my evil robots enable MS messages to my phone. At most I will have 30 minutes of down time. I can live with that.</p>
<p>This is a perfect example of what one of my Computer Science professors told me&#8230; &#8220;If you have to do it more then 2 times write a script to do it for you&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://joshhighland.com/blog/2009/06/01/controlling-twitter-sms-notifications-through-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Let cURL do your heavy lifting</title>
		<link>http://joshhighland.com/blog/2009/01/27/let-curl-do-your-heavy-lifting/</link>
		<comments>http://joshhighland.com/blog/2009/01/27/let-curl-do-your-heavy-lifting/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 02:53:54 +0000</pubDate>
		<dc:creator>Josh Highland</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[curl]]></category>

		<guid isPermaLink="false">http://joshhighland.com/blog/?p=511</guid>
		<description><![CDATA[In a previous post, I talked about using cron to do your bidding. If you do a lot of web development like I do, you may have some web based tasks that you need to automate. A good example of this could be clearing a file cache or tipping of a script to rebuild your [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img class="alignnone size-full wp-image-512" title="Let cURL do your heavy lifting" src="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2009/01/curlrobot.jpg" alt="curlrobot Let cURL do your heavy lifting" width="300" height="446" /></p>
<p>In a previous post, I talked about <a href="http://joshhighland.com/blog/2009/01/20/cron-will-do-your-bidding/">using cron to do your bidding</a>. If you do a lot of web development like I do, you may have some web based tasks that you need to automate. A good example of this could be clearing a file cache or tipping of a script to rebuild your xml site map.</p>
<p>One of the best ways to do that would to be <a href="http://curl.haxx.se/docs/manpage.html">cURL</a> and <a href="http://www.linuxhelp.net/guides/cron/">cron</a> together. cURL is an application used to transfer the contents of a url. Insistently, to transfer the contents of a url, curl has to connect to that url, and the server has to process that url/script&#8230; do you see what I am going with this? cURL can be used to do anything you would normally do from the url of your browser.</p>
<p>This is the usage of cURL:</p>
<blockquote><p>curl [options] [URL...]</p></blockquote>
<p>lets say you have the following URL that you want to connect to on a regular schedule</p>
<p>http://SomeDomain.com/SomeFile.php?var1=abc&#038;var2=zyz</p>
<p>you would use the following cURL command:<br />
/usr/bin/curl -G -d var1=abc -d var2=zyz http://SomeDomain.com/SomeFile.php</p>
<p>We are using the &#8220;-G&#8221; argument to simulate a &#8220;GET&#8221; command, and each &#8220;-d&#8221; is a variable/value pair</p>
<p><em>note: &#8220;/usr/bin/curl&#8221; is the location on my computer that cURL is installed<br />
</em><br />
running cURL from the command line will show you results that get returned from the processing of the script.</p>
<p>To fully automate this processs, add the curl command into cron. now you are one step closer to world domination!</p>
]]></content:encoded>
			<wfw:commentRss>http://joshhighland.com/blog/2009/01/27/let-curl-do-your-heavy-lifting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CRON will do your bidding</title>
		<link>http://joshhighland.com/blog/2009/01/20/cron-will-do-your-bidding/</link>
		<comments>http://joshhighland.com/blog/2009/01/20/cron-will-do-your-bidding/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 19:16:53 +0000</pubDate>
		<dc:creator>Josh Highland</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://joshhighland.com/blog/?p=507</guid>
		<description><![CDATA[It&#8217;s common knowledge that everyone dreams about one day having their own evil robots to do their bidding&#8230; ok so maybe that just me I&#8217;m not an electrical engineer, so my dreams of having a physical robots under my control most likely won&#8217;t come true, but I am a decent programmer and computer nerd, so [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img class="alignnone size-full wp-image-506" title="CRON will do your bidding" src="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2009/01/cron_robot.jpg" alt="cron robot CRON will do your bidding" width="350" height="320" /></p>
<p>It&#8217;s common knowledge that everyone dreams about one day having their own evil robots to do their bidding&#8230; ok so maybe that <a href="http://joshhighland.com/blog/2008/01/19/a-man-and-his-devices/">just me</a></p>
<p>I&#8217;m not an electrical engineer, so my dreams of having a physical robots under my control most likely won&#8217;t come true, but I am a decent programmer and computer nerd, so the option of having invisible virtual robots is very realistic.</p>
<p>I would like to introduce you to <a href="http://en.wikipedia.org/wiki/Cron">CRON</a>. Cron is a <a href="http://en.wikipedia.org/wiki/Daemon_(computer_software)">deamon </a>program (I told you I liked evil robots!) that lives in most unix and linux powered machines (that includes you mac users!). To sum it up, cron runs tasks on a schedule for you. For example, backups of data are important, but time consuming, and are easy for a system admin or user to forget to do. Cron doesnt forget&#8230;.being the evil robot that cron is, he will do whatever you tell him to do, including grunt work like creating back ups. If you want to get fancy you can mix in some php and a little mysql, and do all sorts of wild things like have him manage your <a href="http://twitter.com/joshhighland">twitter account</a>, but I would never do that!</p>
<p>Here is a very helpful image that will give you an idea of how to schedule tasks for cron to handle.</p>
<div id="attachment_508" class="wp-caption alignnone" style="width: 300px">
	<a href="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2009/01/cron.png"><img class="size-medium wp-image-508" title="CRON will do your bidding" src="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2009/01/cron-300x148.png" alt="cron 300x148 CRON will do your bidding" width="300" height="148" /></a>
	<p class="wp-caption-text">Click to make larger</p>
</div>
<p>As you can see, cron is very flexible and can be commanded to do anything, at any time. Cron will handle anything you throw at him, he can email you the results if you want.</p>
<p>Some of the things that I use cron for include:</p>
<ul>
<li>backing up files</li>
<li>backing up databases</li>
<li>consuming rss feeds into wordpress</li>
<li>optimizing MySql database tables</li>
<li>emailing me error reports on my server</li>
<li>generate site maps and submit them to google</li>
<li>a few things here and there with twitter (shhhhh, its my secret!)</li>
</ul>
<p>All in all, having automated tasks can really free you from a lot of admin duties, and make your life a lot easier, and can empower you to do a lot of interesting things with your server / personal computer.</p>
<p>Do a <a href="http://www.google.com/search?hl=en&amp;q=cron">google search</a> on cron and you will find all sorts of good resources that will teach you better then I can on how to use cron succesfully.</p>
<p>I will be making some posts in the future showing some of the scripts that I have cron run for me. Until then, read up on cron and start build you own evil robot army!</p>
]]></content:encoded>
			<wfw:commentRss>http://joshhighland.com/blog/2009/01/20/cron-will-do-your-bidding/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Solution for: MySQL server has gone away at mysqlhotcopy line 528</title>
		<link>http://joshhighland.com/blog/2009/01/19/solution-for-mysql-server-has-gone-away-at-mysqlhotcopy-line-528/</link>
		<comments>http://joshhighland.com/blog/2009/01/19/solution-for-mysql-server-has-gone-away-at-mysqlhotcopy-line-528/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 18:43:18 +0000</pubDate>
		<dc:creator>Josh Highland</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://joshhighland.com/blog/?p=501</guid>
		<description><![CDATA[Recently I was backing up a large MySql database (several hundred megabytes), using the awesome MySqlHotCopy script, when I started getting the following error: DBD::mysql::db do failed: MySQL server has gone away at mysqlhotcopy line 528. I have no clue what that error means. mysqlhotcopyworked great on all of my other smaller databases. I did [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img class="alignnone size-full wp-image-500" title="Solution for: MySQL server has gone away at mysqlhotcopy line 528" src="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2009/01/mysql-logo.gif" alt="mysql logo Solution for: MySQL server has gone away at mysqlhotcopy line 528" width="218" height="151" /></p>
<p>Recently I was backing up a large MySql database (several hundred megabytes), using the awesome <a href="http://dev.mysql.com/doc/refman/5.0/en/mysqlhotcopy.html">MySqlHotCopy</a> script, when I started getting the following error:</p>
<blockquote><p>DBD::mysql::db do failed: MySQL server has gone away at mysqlhotcopy line 528.</p></blockquote>
<p>I have no clue what that error means. mysqlhotcopyworked great on all of my other smaller databases. I did a little searching on my old friend google, and after sniffing around a bit, I came up with a resolution to the problem&#8230; the script was timing out, so I just had to increase the allowed time in the /etc/my.cnf file.</p>
<p>Here are the steps I took</p>
<blockquote><p>pico /etc/my.cnf</p></blockquote>
<blockquote><p>add these lines to the file:<br />
interactive_timeout = 3600<br />
wait_timeout = 3600</p></blockquote>
<blockquote><p>save file</p></blockquote>
<blockquote><p>/etc/init.d/mysqld restart</p></blockquote>
<p>I ran mysqlhotcopy again, and everything worked and the backup was made.</p>
]]></content:encoded>
			<wfw:commentRss>http://joshhighland.com/blog/2009/01/19/solution-for-mysql-server-has-gone-away-at-mysqlhotcopy-line-528/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Troubleshooting: SoftException in Application.cpp:544</title>
		<link>http://joshhighland.com/blog/2009/01/18/troubleshooting-softexception-in-applicationcpp544/</link>
		<comments>http://joshhighland.com/blog/2009/01/18/troubleshooting-softexception-in-applicationcpp544/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 01:03:56 +0000</pubDate>
		<dc:creator>Josh Highland</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://joshhighland.com/blog/?p=493</guid>
		<description><![CDATA[I recently moved all of my sites to a new dedicated web server. In the move my webhost helped me mirror my old applications and tilt them up on the new server. This is where my problems started, several of my applications just wouldnt run, they would throw out &#8220;500 errors&#8221;. Checking my logs, the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img class="alignnone size-full wp-image-492" title="Troubleshooting: SoftException in Application.cpp:544" src="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2009/01/images-fixingnetwork.jpg" alt="images fixingnetwork Troubleshooting: SoftException in Application.cpp:544" width="400" height="324" /></p>
<p>I recently moved all of my sites to a new dedicated web server. In the move my webhost helped me mirror my old applications and tilt them up on the new server. This is where my problems started, several of my applications just wouldnt run, they would throw out &#8220;500 errors&#8221;.</p>
<p>Checking my logs, the errors looked like this:</p>
<blockquote><p>[Tue Dec 30 09:20:18 2008] [error] [client ip.address.here] SoftException in Application.cpp:544: Directory &#8220;/home/username/public_html/someDirectory&#8221; is writeable by group</p></blockquote>
<p>I <a href="http://www.google.com/search?q=SoftException+in+Application.cpp:544">searched the error</a> on google like any good geek would</p>
<p>I found several posts about the problem, but it all pointed down to the way that apache was configured on my new server.</p>
<p>I came across this post, and it really shed light on the subject for me:</p>
<blockquote><p>&#8220;The specified directory name has been made writable by group. That suggests that your server’s apache configuration doesn’t allow you to make directories writable by group.&#8221;</p></blockquote>
<p>In english, you’ve got the wrong permissions set on one or more folders.</p>
<p>I checked the directory location from the 500 error, and I saw that it&#8217;s permissions were <a href="http://en.wikipedia.org/wiki/Chmod">777</a>, world writable. I changed the directories permissions to 755, and Apache was happy again and let the code run.</p>
<p>Simple as that. My new Apache install won&#8217;t run code that is in a public folder. This is a good thing for sure. If you are having issues like I was, check your permissions, and be careful what is 777!</p>
]]></content:encoded>
			<wfw:commentRss>http://joshhighland.com/blog/2009/01/18/troubleshooting-softexception-in-applicationcpp544/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>My Media Center Died, Time For A New One</title>
		<link>http://joshhighland.com/blog/2008/06/29/my-media-center-died-time-for-a-new-one/</link>
		<comments>http://joshhighland.com/blog/2008/06/29/my-media-center-died-time-for-a-new-one/#comments</comments>
		<pubDate>Mon, 30 Jun 2008 01:29:23 +0000</pubDate>
		<dc:creator>Josh Highland</dc:creator>
				<category><![CDATA[hardware]]></category>
		<category><![CDATA[Josh's Rambling]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://joshhighland.com/blog/?p=294</guid>
		<description><![CDATA[I have blogged about it before, I have a HTPC (home theatre pc) running in my living room, hooked to my TV. I started off with MythTV, but settled on Window Media Center 2005. When I first built the Media Center machine, I had basic cable, with no DVR, so I let the media center [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img class="alignnone size-medium wp-image-295" title="My Media Center Died, Time For A New One" src="http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2008/06/mce_fail-300x228.jpg" alt="mce fail 300x228 My Media Center Died, Time For A New One" width="300" height="228" /></p>
<p>I have <a href="http://joshhighland.com/blog/2006/02/25/mythtv-vs-mce-2005-a-fight-to-the-death/">blogged about it before</a>, I have a HTPC (home theatre pc) running in my living room, hooked to my TV. I started off with MythTV, but settled on Window Media Center 2005.</p>
<p>When I first built the Media Center machine, I had basic cable, with no DVR, so I let the media center handle all of that. Now I have Verizon FIOS with HD, and one of their HD DVR Boxes, and I rarely use my media center pc, but its always nice to be able to flip the input over to it and watch youtube and browse the web. I also like the fact that I can download all sorts of movies and tv from the <a href="http://thepiratebay.org/">darkside of the web</a> and watch them on the tv. That was a huge plus.</p>
<p>For a while now, the Media Center has been acting funny. I built it on a shoe string budget with some questionable parts I had laying around, so I didn&#8217;t expect it to live forever. The other day it stopped working all together.</p>
<p>Today I took it apart to see what the problem was. After some investigation, I found the cheap power supply was dead, and it took the mother board/processor with it. FAIL!</p>
<p>Well, here I am at a cross roads. Before it was a matter of software, now I need new hardware. What do you think I should build or buy?</p>
<p><strong>The main things I&#8217;m looking for in a HTPC</strong></p>
<ul>
<li>Ability to browse the web</li>
<li>Watch Videos I download form the internet, mostly divX files</li>
<li>Small form factor</li>
<li>Doesn&#8217;t really look like a computer</li>
<li>Blu-ray is a bonus</li>
</ul>
<p>Should I build another Window xp MCE machine, Windows Vista Ultimate, mac Mini, apple TV, myth TV? I don&#8217;t even know where to start.</p>
<p>I&#8217;ll blog my research as I go. Lets see what you think I should do.</p>
]]></content:encoded>
			<wfw:commentRss>http://joshhighland.com/blog/2008/06/29/my-media-center-died-time-for-a-new-one/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>StarCraft in Ubuntu? YES, Drink the WINE!</title>
		<link>http://joshhighland.com/blog/2008/02/26/starcraft-in-ubuntu-yes-drink-the-wine/</link>
		<comments>http://joshhighland.com/blog/2008/02/26/starcraft-in-ubuntu-yes-drink-the-wine/#comments</comments>
		<pubDate>Tue, 26 Feb 2008 17:12:06 +0000</pubDate>
		<dc:creator>Josh Highland</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://joshhighland.com/blog/2008/02/26/starcraft-in-ubuntu-yes-drink-the-wine/</guid>
		<description><![CDATA[In keeping in step with my new found love of StarCraft, I wanted to play it on my laptop. One problem&#8230; my laptop doesn&#8217;t run on windows or mac, its powered by UBUNTU! I love running Ubuntu, and I have never found a reason why I would need windows on my laptop. Ubuntu does everything [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img src='http://joshhighland.com.s3.amazonaws.com/blog/wp-content/uploads/2008/02/ubuntu_starcraft.jpg' alt="ubuntu starcraft StarCraft in Ubuntu? YES, Drink the WINE!"  title="StarCraft in Ubuntu? YES, Drink the WINE!" /></p>
<p>In keeping in step with my new found love of StarCraft, I wanted to play it on my <a href="http://joshhighland.com/blog?s=laptop">laptop</a>. One problem&#8230; my laptop doesn&#8217;t run on windows or mac, its powered by UBUNTU!</p>
<p>I love running Ubuntu, and I have never found a reason why I would need windows on my laptop. Ubuntu does everything I need it to, that is until I wanted to play a PC based game on it.</p>
<p>I did a little google searching and I found out that <a href="http://www.winehq.org">WINE</a> on Ubuntu will play StarCraft perfectly! I gave it a go, and was surprised at how easy it was, and how well it all worked together.</p>
<p><em><strong>Here are the steps I took:</strong></em></p>
<ul>
<li>Open a terminal and run <strong>sudo apt-get install wine</strong> to get wine. </li>
<li>After that finishes, insert the StarCraft CD into the computer</li>
<li>In the terminal cd to whatever cdrom drive you put the cd in (under the /media/ directory). Mine was /media/cdrom0</li>
<li>Use Wine to setup StarCraft with <strong>wine setup.exe</strong>. You&#8217;ll get the install screen for SC &#8211; enter your CD key and install the software. StarCraft will be installed under the path of<br />
<strong>~/.wine/drive_c/Program\ Files/Starcraft/starcraft.exe</strong>.
</li>
<li>In the terminal, run <strong>winecfg</strong> and go to the Audio tab. Set Hardware Acceleration to Emulation. </li>
<li>What is StarcCaft without the Broodwar expantion? I eject the Starcraft CD and insert the Broodwar expantion CD.<br />
cd to the appropriate /media/ directory and run <strong>wine setup.exe</strong>.
</li>
<li>To play StarCraft, run <strong>wine ~/.wine/drive_c/Program\ Files/Starcraft/starcraft.exe</strong>.<br />
I was also able to find a link to it from the Applications menu in Ubuntu.
</li>
<li>
Lastly, I downloaded the latest patch to BroodWar from blizzard.com, and ran that with no problem.
</li>
</ul>
<p>There it was, a fully patched and running copy of StarCraft on my Ubuntu laptop. Can life get sweeter? I submit that it can not!</p>
]]></content:encoded>
			<wfw:commentRss>http://joshhighland.com/blog/2008/02/26/starcraft-in-ubuntu-yes-drink-the-wine/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic (Feed is rejected)
Page Caching using disk: enhanced
Database Caching 15/63 queries in 0.264 seconds using disk: basic
Object Caching 1172/1259 objects using disk: basic
Content Delivery Network via Amazon Web Services: S3: joshhighland.com.s3.amazonaws.com

Served from: joshhighland.com @ 2012-05-22 02:06:06 -->
