<?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>Mat Collins</title>
	<atom:link href="http://matcollins.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://matcollins.com</link>
	<description>Posts about randoms</description>
	<lastBuildDate>Thu, 02 Feb 2012 14:48:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>VBulletin New Style Doesn&#8217;t Update Default User Profile</title>
		<link>http://matcollins.com/2012/02/02/vbulletin-new-style-doesnt-update-default-user-profile/</link>
		<comments>http://matcollins.com/2012/02/02/vbulletin-new-style-doesnt-update-default-user-profile/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 14:48:26 +0000</pubDate>
		<dc:creator>Mat</dc:creator>
				<category><![CDATA[Server Administration]]></category>

		<guid isPermaLink="false">http://matcollins.com/?p=37</guid>
		<description><![CDATA[Tweet I recently updated my communities look from a custom style to the default style. After doing so, I noticed that the user profiles were still using the custom style. You can fix this by editing your own profile. Simply click the &#8220;Customize My Profile&#8221; button on the right, choose &#8220;Default&#8221; and then &#8220;Save as [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://matcollins.com/2012/02/02/vbulletin-new-style-doesnt-update-default-user-profile/&via=nhdriver4&text=VBulletin New Style Doesn't Update Default User Profile&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p><a href="http://matcollins.com/wp-content/uploads/2012/02/vb-new-theme.png"><img class="aligncenter size-medium wp-image-38" title="vb-new-theme" src="http://matcollins.com/wp-content/uploads/2012/02/vb-new-theme-300x213.png" alt="" width="300" height="213" /></a></p>
<p>I recently updated my communities look from a custom style to the default style. After doing so, I noticed that the user profiles were still using the custom style.</p>
<p><a href="http://matcollins.com/wp-content/uploads/2012/02/vb-profile-edit.png"><img class="aligncenter size-medium wp-image-40" title="vb-profile-edit" src="http://matcollins.com/wp-content/uploads/2012/02/vb-profile-edit-300x30.png" alt="" width="300" height="30" /></a></p>
<p>You can fix this by editing your own profile. Simply click the &#8220;Customize My Profile&#8221; button on the right, choose &#8220;Default&#8221; and then &#8220;Save as Site Default&#8221;. Your profile, along with those who have not customized theirs will now display in line with the default style.</p>
<p><a href="http://matcollins.com/wp-content/uploads/2012/02/vb-fixed.png"><img class="aligncenter size-medium wp-image-39" title="vb-fixed" src="http://matcollins.com/wp-content/uploads/2012/02/vb-fixed-300x141.png" alt="" width="300" height="141" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://matcollins.com/2012/02/02/vbulletin-new-style-doesnt-update-default-user-profile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comcast Data Usage</title>
		<link>http://matcollins.com/2011/12/27/comcast-data-usage/</link>
		<comments>http://matcollins.com/2011/12/27/comcast-data-usage/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 14:56:28 +0000</pubDate>
		<dc:creator>Mat</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[comcast]]></category>
		<category><![CDATA[data usage]]></category>
		<category><![CDATA[downloads]]></category>

		<guid isPermaLink="false">http://matcollins.com/?p=26</guid>
		<description><![CDATA[Tweet Holy crap, I need to slow down on the downloads or Comcast is going to shut me down! In my defense, I did change from Sugarsync to Dropbox this month. This usage is from uploading my documents, photos and music to the cloud.]]></description>
			<content:encoded><![CDATA[<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://matcollins.com/2011/12/27/comcast-data-usage/&via=nhdriver4&text=Comcast Data Usage&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p><a href="http://matcollins.com/wp-content/uploads/2011/12/comcast-data.png"><img class="aligncenter size-medium wp-image-27" title="comcast-data" src="http://matcollins.com/wp-content/uploads/2011/12/comcast-data-300x222.png" alt="" width="300" height="222" /></a></p>
<p>Holy crap, I need to slow down on the downloads or Comcast is going to shut me down! In my defense, I did change from Sugarsync to Dropbox this month. This usage is from uploading my documents, photos and music to the cloud.</p>
]]></content:encoded>
			<wfw:commentRss>http://matcollins.com/2011/12/27/comcast-data-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache2 Enable Site, Module, Restart</title>
		<link>http://matcollins.com/2011/11/25/apache2-enable-site-module-restart/</link>
		<comments>http://matcollins.com/2011/11/25/apache2-enable-site-module-restart/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 15:14:11 +0000</pubDate>
		<dc:creator>Mat</dc:creator>
				<category><![CDATA[Server Administration]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[enable]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sites]]></category>

		<guid isPermaLink="false">http://matcollins.com/?p=3</guid>
		<description><![CDATA[TweetUse the following commands to enable and disable sites in Apache 2. # enable site sudo a2ensite # disable site sudo a2dissite # enable an apache2 module sudo a2enmod # e.g. a2enmod php4 will create the correct symlinks in mods-enabled to allow the module to be used. In this example it will link both php4.conf [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://matcollins.com/2011/11/25/apache2-enable-site-module-restart/&via=nhdriver4&text=Apache2 Enable Site, Module, Restart&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p>Use the following commands to enable and disable sites in Apache 2.</p>
<pre># enable site
sudo a2ensite

# disable site
sudo a2dissite

# enable an apache2 module
sudo a2enmod

# e.g. a2enmod php4 will create the correct symlinks in mods-enabled to allow the module to be used. In this example it will link both php4.conf and php4.load for the user

# disable an apache2 module
sudo a2dismod

# force reload the server:
sudo  /etc/init.d/apache2 force-reload</pre>
]]></content:encoded>
			<wfw:commentRss>http://matcollins.com/2011/11/25/apache2-enable-site-module-restart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Google Geocode Funtion</title>
		<link>http://matcollins.com/2011/05/09/php-google-geocode-funtion/</link>
		<comments>http://matcollins.com/2011/05/09/php-google-geocode-funtion/#comments</comments>
		<pubDate>Mon, 09 May 2011 20:12:18 +0000</pubDate>
		<dc:creator>Mat</dc:creator>
		
		<guid isPermaLink="false">http://matcollins.com/?p=11</guid>
		<description><![CDATA[TweetI recently developed a script that will geocode an address for work. Bellow is the simple PHP function that I&#8217;m using to geocode an address and get the lat and lng results. Simply pass the address to the function. define&#40;&#34;GOOGLE_MAPS_HOST&#34;, &#34;maps.googleapis.com&#34;&#41;; function google_geocode_address&#40;$address&#41; &#123; &#160; // Create the URL to retrieve the XML file $request_url [...]]]></description>
			<content:encoded><![CDATA[<div style="float: right; margin-left: 10px;"><a href="http://twitter.com/share?url=http://matcollins.com/2011/05/09/php-google-geocode-funtion/&via=nhdriver4&text=PHP Google Geocode Funtion&related=:&lang=en&count=horizontal" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><p>I recently developed a script that will geocode an address for work. Bellow is the simple PHP function that I&#8217;m using to geocode an address and get the lat and lng results. Simply pass the address to the function.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;GOOGLE_MAPS_HOST&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;maps.googleapis.com&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">function</span> google_geocode_address<span style="color: #009900;">&#40;</span><span style="color: #000088;">$address</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Create the URL to retrieve the XML file</span>
	<span style="color: #000088;">$request_url</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$base_url</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&amp;address=&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$address</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&amp;sensor=false'</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$base_url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;http://&quot;</span> <span style="color: #339933;">.</span> GOOGLE_MAPS_HOST <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;/maps/api/geocode/xml?&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Load the XML file</span>
	<span style="color: #000088;">$xml</span> <span style="color: #339933;">=</span> <span style="color: #990000;">simplexml_load_file</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$request_url</span><span style="color: #009900;">&#41;</span> or <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;url not loading&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$status</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$xml</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">status</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// If the returned status was OK, then continue</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$status</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;OK&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$coords</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lat'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$xml</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">geometry</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">location</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">lat</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$coords</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lng'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$xml</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">geometry</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">location</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">lng</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$coords</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #666666; font-style: italic;">// Anything other than OK, return false.</span>
	<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://matcollins.com/2011/05/09/php-google-geocode-funtion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

