<?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>That Matt &#187; Computing</title>
	<atom:link href="http://that-matt.com/category/computing/feed/" rel="self" type="application/rss+xml" />
	<link>http://that-matt.com</link>
	<description>That one, not this one!</description>
	<lastBuildDate>Tue, 25 Oct 2011 00:57:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Can&#8217;t connect to remote mysql server with php/apache but can through php/cli</title>
		<link>http://that-matt.com/2010/07/cant-connect-to-remote-mysql-server-with-phpapache-but-can-through-phpcli/</link>
		<comments>http://that-matt.com/2010/07/cant-connect-to-remote-mysql-server-with-phpapache-but-can-through-phpcli/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 21:00:50 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Web Servers]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://that-matt.com/?p=144</guid>
		<description><![CDATA[Today at work we were migrating some sites to a new server infrastructure with the different services (i.e. php, mysql, mail) spread over different servers. One problem we ran into whilst setting this up was that php scripts running through &#8230; <a href="http://that-matt.com/2010/07/cant-connect-to-remote-mysql-server-with-phpapache-but-can-through-phpcli/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today at work we were migrating some sites to a new server infrastructure with the different services (i.e. php, mysql, mail) spread over different servers.</p>
<p>One problem we ran into whilst setting this up was that php scripts running through apache were having trouble connecting to the mysql server.</p>
<p>What was even stranger though, was the fact that this problem only appeared when the php script(s) were run through apache &#8211; running them through the command line / shell worked absolutely fine.</p>
<p><span id="more-144"></span></p>
<p>After a couple of hours of debugging, head bashing and confusion we found the solution at the bottom of one of those very very long <a href="http://www.experts-exchange.com/Database/MySQL/Q_22606034.html">experts exchange</a> threads.</p>
<p>It turns out that some linux distros has a neat little access control system called SELinux which was blocking communication by apache to remote database servers.</p>
<p>The aforementioned exchange thread suggests disabling SELinux entirely by executing</p>
<pre class="brush:bash">sudo setenforce 0</pre>
<p>but this isn&#8217;t a permanent solution and won&#8217;t persist through a reboot <a href="http://googolflex.com/?p=482">without changing a config file</a>.</p>
<blockquote><p>This can be accomplished by changing a line in /etc/selinux/config. Change the line that says:<br />
<code>SELINUX=enforcing</code><br />
to<br />
<code>SELINUX=disabled</code></p></blockquote>
<p>However, if you&#8217;re willing to do a bit of digging there are <a href="http://www.beginlinux.com/server_training/web-server/976-apache-and-selinux">SEL options</a> you can change to <a href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6-Beta/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Booleans-Configuring_Booleans.html">grant apache access to remote database servers</a>, and if you have a few hours to kill, there&#8217;s also <a href="http://docs.fedoraproject.org/en-US/Fedora/13/html/SELinux_FAQ/index.html">the fedora documentation</a>.</p>
<p>Hopefully this&#8217;ll save someone else the headache we had!</p>
]]></content:encoded>
			<wfw:commentRss>http://that-matt.com/2010/07/cant-connect-to-remote-mysql-server-with-phpapache-but-can-through-phpcli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get Ubuntu to ping a Windows hostname (and vice-versa)</title>
		<link>http://that-matt.com/2009/12/how-to-get-ubuntu-to-ping-a-windows-hostname/</link>
		<comments>http://that-matt.com/2009/12/how-to-get-ubuntu-to-ping-a-windows-hostname/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 20:00:28 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[features]]></category>

		<guid isPermaLink="false">http://www.sigswitch.com/?p=47</guid>
		<description><![CDATA[I&#8217;m currently running ubuntu server in a virtual machine on my pc, and one of the annoying problems I&#8217;ve always had with ubuntu is that it never seems to be able to resolve the hostnames of machines running windows. After a little &#8230; <a href="http://that-matt.com/2009/12/how-to-get-ubuntu-to-ping-a-windows-hostname/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently running ubuntu  server in a virtual machine on my pc, and one of the annoying problems I&#8217;ve always had with ubuntu is that it never seems to be able to resolve the hostnames of machines running windows.</p>
<p>After a little bit of digging I found a really simple solution <a href="http://ubuntuforums.org/showthread.php?t=88206">in this forum topic</a></p>
<blockquote><p>All you have to do is:</p>
<pre class="brush:shell">sudo nano /etc/nsswitch.conf</pre>
<p>change the line that says</p>
<pre class="brush:plain">hosts: files dns</pre>
<p>to this:</p>
<pre class="brush:shell">hosts: files wins dns</pre>
<p>(order does matter)</p>
<p>finally, you need to install winbind</p>
<pre class="brush:shell">sudo apt-get install winbind</pre>
</blockquote>
<p>To enable windows to ping ubuntu you then need to install samba:</p>
<pre class="brush:shell">sudo apt-get install samba</pre>
]]></content:encoded>
			<wfw:commentRss>http://that-matt.com/2009/12/how-to-get-ubuntu-to-ping-a-windows-hostname/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtualbox &#8211; 1 differencing child hard disks</title>
		<link>http://that-matt.com/2009/11/virtualbox-1-differencing-child-hard-disks/</link>
		<comments>http://that-matt.com/2009/11/virtualbox-1-differencing-child-hard-disks/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 00:00:06 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[virtual box]]></category>

		<guid isPermaLink="false">http://sigswitch.com/2009/11/virtualbox-1-differencing-child-hard-disks/</guid>
		<description><![CDATA[If you&#8217;re getting an error along the lines of &#8220;{hard disk} cannot be directly attached to the virtual machine because it has 1 differencing child hard disks&#8221; Then the solution is to delete the virtual machine (but not the hard &#8230; <a href="http://that-matt.com/2009/11/virtualbox-1-differencing-child-hard-disks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re getting an error along the lines of &#8220;{hard disk} cannot be directly attached to the virtual machine because it has 1 differencing child hard disks&#8221;</p>
<p>Then the solution is to delete the virtual machine (but not the hard disk!) and then recreate the machine using the hard disk.</p>
]]></content:encoded>
			<wfw:commentRss>http://that-matt.com/2009/11/virtualbox-1-differencing-child-hard-disks/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Stretch wallpaper across multiple monitors on Windows</title>
		<link>http://that-matt.com/2009/09/stretch-wallpaper-across-multiple-monitors-on-windows/</link>
		<comments>http://that-matt.com/2009/09/stretch-wallpaper-across-multiple-monitors-on-windows/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 17:35:12 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[backgrounds]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://sigswitch.com/?p=96</guid>
		<description><![CDATA[When I first got a second monitor I looked around for quite a while to try and find a solution for stretching a wallpaper across dual monitors &#8211; Windows was repeating the first half of the wallpaper on both the &#8230; <a href="http://that-matt.com/2009/09/stretch-wallpaper-across-multiple-monitors-on-windows/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When I first got a second monitor I looked around for quite a while to try and find a solution for stretching a wallpaper across dual monitors &#8211; Windows was repeating the first half of the wallpaper on both the monitors.</p>
<p><span id="more-96"></span></p>
<p>I eventually came across <a title="DisplayFusion" href="www.binaryfortress.com/displayfusion/">DisplayFusion</a> which seemed to satisfy the bill &#8211; The free version allows you to stretch wallpapers across your monitors as well as drag maximised windows between screens (an incredibly useful feature).</p>
<p>If you buy the full version it can automatically cycle between pictures from a folder, <a href="http://flickr.com">flickr</a> or <a href="http://vladstudio.com">VladStudio.com</a> and it&#8217;ll also extend the start menu bar onto your other monitor(s).</p>
<p style="text-align: center;"><a href="http://www.sigswitch.com/extras/2009-09-06_1817.png"><img class="aligncenter" title="Display Fusion" src="http://www.sigswitch.com/extras/2009-09-06_1817.png" alt="" width="571" height="421" /></a></p>
<p style="text-align: left;">
<p style="text-align: left;">I was fairly happy with using DisplayFusion to solve the problem, however it seemed odd to me that Microsoft didn&#8217;t include some kind of option in Windows to do this by default.  It actually turns out they did &#8211; When you choose your wallpaper you have to set the &#8220;Position&#8221; option to &#8220;Tile&#8221;.</p>
<p style="text-align: left;"><img class="aligncenter" title="Windows Background Options" src="http://www.sigswitch.com/extras/2009-09-06_1827.png" alt="" width="404" height="455" /></p>
<p style="text-align: left;">
<p style="text-align: left;">It&#8217;s kind of annoying seeing how simple a solution it is having spent quite a while looking for it!</p>
]]></content:encoded>
			<wfw:commentRss>http://that-matt.com/2009/09/stretch-wallpaper-across-multiple-monitors-on-windows/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Safely destroy your computer</title>
		<link>http://that-matt.com/2008/04/safely-destroy-your-computer/</link>
		<comments>http://that-matt.com/2008/04/safely-destroy-your-computer/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 16:42:23 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Problems]]></category>

		<guid isPermaLink="false">http://sigswitch.com/?p=5</guid>
		<description><![CDATA[Now I&#8217;m no computer wizz, but I don&#8217;t think this should be happening&#8230; I mean, isn&#8217;t it a little eany weany bit dangerous? O_O Part of me wants to click it just for the hell of it&#8230;]]></description>
			<content:encoded><![CDATA[<p>Now I&#8217;m no computer wizz, but I don&#8217;t think this should be happening&#8230;</p>
<p><span id="more-5"></span></p>
<p><a href="http://sigswitch.com/wp-content/uploads/2008/04/porblem.png"><img class="alignnone size-full wp-image-4" title="Problem" src="http://sigswitch.com/wp-content/uploads/2008/04/porblem.png" alt="" width="349" height="44" /></a></p>
<p>I mean, isn&#8217;t it a little eany weany bit dangerous? O_O</p>
<p>Part of me wants to click it just for the hell of it&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://that-matt.com/2008/04/safely-destroy-your-computer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

