<?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>Hey Jones!</title>
	<atom:link href="http://blog.heyjones.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.heyjones.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Sun, 06 Nov 2011 22:43:55 +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>DigitalSound Production Services</title>
		<link>http://blog.heyjones.com/programming/digitalsound-production-services/</link>
		<comments>http://blog.heyjones.com/programming/digitalsound-production-services/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 20:17:54 +0000</pubDate>
		<dc:creator>Chris Jones</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.heyjones.com/?p=19</guid>
		<description><![CDATA[The site redesign for DPS has gone live. We switched them over to a full CMS solution and also provided them with Search Engine Optimization (SEO).]]></description>
			<content:encoded><![CDATA[<p>The site redesign for DPS has gone live. We switched them over to a full CMS solution and also provided them with Search Engine Optimization (SEO).</p>
<p><a href="http://blog.heyjones.com/wp-content/uploads/2011/08/Screen-shot-2011-08-05-at-12.24.33-PM.png" target="_blank"><img class="alignnone size-full wp-image-20" title="DigitalSoundPS.com" src="http://blog.heyjones.com/wp-content/uploads/2011/08/Screen-shot-2011-08-05-at-12.24.33-PM.png" alt="DigitalSoundPS.com" width="466" height="338" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.heyjones.com/programming/digitalsound-production-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DocShelf</title>
		<link>http://blog.heyjones.com/web-design/docshelf/</link>
		<comments>http://blog.heyjones.com/web-design/docshelf/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 18:32:35 +0000</pubDate>
		<dc:creator>Chris Jones</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://blog.heyjones.com/?p=11</guid>
		<description><![CDATA[The site redesign for DocShelf has just gone live!]]></description>
			<content:encoded><![CDATA[<p>The site redesign for DocShelf has just gone live!</p>
<p><a title="DocShelf.com" href="http://www.docshelf.com" target="_blank"><img class="alignnone size-full wp-image-13" title="DocShelf.com" src="http://blog.heyjones.com/wp-content/uploads/2011/08/Screen-shot-2011-08-05-at-11.28.05-AM1.png" alt="DocShelf.com" width="466" height="338" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.heyjones.com/web-design/docshelf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Block Spam With PHP</title>
		<link>http://blog.heyjones.com/programming/how-to-block-spam-with-php/</link>
		<comments>http://blog.heyjones.com/programming/how-to-block-spam-with-php/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 00:06:32 +0000</pubDate>
		<dc:creator>Chris Jones</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://blog.heyjones.com/?p=5</guid>
		<description><![CDATA[As I&#8217;ve been working more with open source CMS (Content Management System) solutions I&#8217;ve had to work with PHP more than usual. Recently a client of mine was having an issue with spam being sent through the contact form on his website. The previous developer had used client-side JavaScript to validate the form submission, but [...]]]></description>
			<content:encoded><![CDATA[<p>As I&#8217;ve been working more with open source CMS (Content Management System) solutions I&#8217;ve had to work with PHP more than usual. Recently a client of mine was having an issue with spam being sent through the contact form on his website. The previous developer had used client-side JavaScript to validate the form submission, but what most people don&#8217;t realize is that spam can be sent through your site without hitting the form. Any valid post request to your .php file will work. So I developed a means of blocking these messages from sending server-side.</p>
<p>The code simply checks to see what domain posted the request, and if it doesn&#8217;t match your site, the request is denied. Just place this at the top of your ?php code and replace &#8216;heyjones.com&#8217; with your domain:</p>
<pre>$url = $_SERVER['HTTP_REFERER'];
$uri = parse_url($url);
if($uri['host'] != 'heyjones.com'){
	header('location:' . $url);
	exit();
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.heyjones.com/programming/how-to-block-spam-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL DATEPART(dd, getdate()) vs VB.NET Today.DayOfWeek</title>
		<link>http://blog.heyjones.com/programming/sql-datepart-dd-getdate-vs-vb-net-today-dayofweek/</link>
		<comments>http://blog.heyjones.com/programming/sql-datepart-dd-getdate-vs-vb-net-today-dayofweek/#comments</comments>
		<pubDate>Wed, 04 May 2011 20:28:20 +0000</pubDate>
		<dc:creator>Chris Jones</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.heyjones.com/2011/05/sql-datepart-dd-getdate-vs-vb-net-today-dayofweek/</guid>
		<description><![CDATA[WARNING: THIS POST IS REALLY NERDY. While developing a calendar application, I ran into an issue that took hours to diagnose and nearly prompted me to wrap my car around a tree. The issue is this&#8230; I was taking a date from SQL, using the DATEPART function to return an integer value for the day [...]]]></description>
			<content:encoded><![CDATA[<p><strong>WARNING: THIS POST IS REALLY NERDY.</strong></p>
<p>While developing a calendar application, I ran into an issue that took hours to diagnose and nearly prompted me to wrap my car around a tree. The issue is this&#8230;</p>
<p>I was taking a date from SQL, using the DATEPART function to return an integer value for the day of the week, then comparing that to the result of the DayOfWeek function in VB.NET. Here&#8217;s how it should work:</p>
<p><strong>SQL</strong></p>
<p><span> </span>DECLARE @KillMe AS datetime;</p>
<p><span> </span>SET @KillMe = &#8216;5/4/2011&#8217;;</p>
<p><span> </span>SELECT DATEPART(d, @KillMe);</p>
<p><strong>VB.NET</strong></p>
<p><span> </span>Dim KillMe As Date = CDate(&#8216;5/4/2011&#8217;);</p>
<p><span> </span>Return KillMe.DayOfWeek</p>
<p>So assuming that SQL considers Sunday = 1, it will return an integer value of 4, and since I&#8217;m using the same date, VB.NET should return a 4 as well&#8230; right?</p>
<p>Wrong.</p>
<p>Apparently, GETDATE() in SQL returns 1 for Sunday and goes from there, while VB.NET starts at 0 for Sunday and ends at 6 for Saturday. Don&#8217;t ask my why this took so long to figure out, but I suspect that four failed attempts at a passing grade in Intermediate Algebra might be only partially at fault, while Microsoft holds the lions share of the blame. All that having been said, here&#8217;s the fix:</p>
<p><strong>VB.NET</strong></p>
<p><span> </span>Dim KillMe As Date = CDate(&#8216;5/4/2011&#8217;);</p>
<p><span> </span>Return CInt(KillMe.DayOfWeek) + 1</p>
<p>It&#8217;s hinky and lame, I know, but I decided that correcting SQL by subtracting 1 was more complicated.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.heyjones.com/programming/sql-datepart-dd-getdate-vs-vb-net-today-dayofweek/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Peter Wayner</title>
		<link>http://blog.heyjones.com/programming/programming-may-in-fact-be-transforming-into-an/</link>
		<comments>http://blog.heyjones.com/programming/programming-may-in-fact-be-transforming-into-an/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 19:18:29 +0000</pubDate>
		<dc:creator>Chris Jones</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.heyjones.com/2010/12/programming-may-in-fact-be-transforming-into-an/</guid>
		<description><![CDATA[Programming may in fact be transforming into an art, one that requires a skilled hand and a creative mind to achieve a happy medium between problematic extremes.]]></description>
			<content:encoded><![CDATA[<p>Programming may in fact be transforming into an art, one that requires a skilled hand and a creative mind to achieve a happy medium between problematic extremes.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.heyjones.com/programming/programming-may-in-fact-be-transforming-into-an/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>James Murphy</title>
		<link>http://blog.heyjones.com/programming/the-best-way-to-complain-is-to-make-things/</link>
		<comments>http://blog.heyjones.com/programming/the-best-way-to-complain-is-to-make-things/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 22:07:49 +0000</pubDate>
		<dc:creator>Chris Jones</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.heyjones.com/2010/11/the-best-way-to-complain-is-to-make-things/</guid>
		<description><![CDATA[The best way to complain is to make things.]]></description>
			<content:encoded><![CDATA[<p>The best way to complain is to make things.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.heyjones.com/programming/the-best-way-to-complain-is-to-make-things/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://blog.heyjones.com/programming/the-event-company-is-a-one-stop-shop-for/</link>
		<comments>http://blog.heyjones.com/programming/the-event-company-is-a-one-stop-shop-for/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 20:48:13 +0000</pubDate>
		<dc:creator>Chris Jones</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.heyjones.com/2010/10/the-event-company-is-a-one-stop-shop-for/</guid>
		<description><![CDATA[The Event Company is a one-stop shop for everything you need to host an unforgettable event. They wanted a clean and simple site so that their clients could focus on the visual aspects of their services and we delivered. The photo transitions use jQuery so that the effect is compatible with most browsers and mobile [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://eventcompanyoc.com'><img src='http://www.tumblr.com/photo/1280/1433855807/1/tumblr_lb2kgdin751qzph0y' width='1104' height='848' /></p>
<p>The Event Company is a one-stop shop for everything you need to host an unforgettable event. They wanted a clean and simple site so that their clients could focus on the visual aspects of their services and we delivered. The photo transitions use jQuery so that the effect is compatible with most browsers and mobile devices.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.heyjones.com/programming/the-event-company-is-a-one-stop-shop-for/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://blog.heyjones.com/programming/ellis-design-group-in-orange-county-was-looking-to/</link>
		<comments>http://blog.heyjones.com/programming/ellis-design-group-in-orange-county-was-looking-to/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 20:17:20 +0000</pubDate>
		<dc:creator>Chris Jones</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.heyjones.com/2010/10/ellis-design-group-in-orange-county-was-looking-to/</guid>
		<description><![CDATA[Ellis Design Group in Orange County was looking to update their static site to something that reflected their company&#8217;s branding and also allowed them to update the content themselves. The site features a photo gallery and a blog, and an e-commerce section will be implemented soon.]]></description>
			<content:encoded><![CDATA[<p><a href='http://ellisdg.com'><img src='http://www.tumblr.com/photo/1280/1433674530/1/tumblr_lb2j0wltG91qzph0y' width='1104' height='848' /></p>
<p>Ellis Design Group in Orange County was looking to update their static site to something that reflected their company&#8217;s branding and also allowed them to update the content themselves. The site features a photo gallery and a blog, and an e-commerce section will be implemented soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.heyjones.com/programming/ellis-design-group-in-orange-county-was-looking-to/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chris,

Tony Spore suggested I contact you about email and firewalls.  I know things are changing quickly, and I&#039;m ready to pitch the email server and have all staff use their Droids and iPhones for email.  What do you suggest? 

Paul Darafeev</title>
		<link>http://blog.heyjones.com/programming/chris-tony-spore-suggested-i-contact-you-about-email/</link>
		<comments>http://blog.heyjones.com/programming/chris-tony-spore-suggested-i-contact-you-about-email/#comments</comments>
		<pubDate>Mon, 04 Oct 2010 03:24:53 +0000</pubDate>
		<dc:creator>Chris Jones</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.heyjones.com/2010/10/chris-tony-spore-suggested-i-contact-you-about-email/</guid>
		<description><![CDATA[I always recommend Google Apps to my clients. It&#8217;s free for up to 50 users, and expanded functionality is available for $50 per account annually. Feel free to give us a call if you have any questions about how to go about setting that up.]]></description>
			<content:encoded><![CDATA[<p>I always recommend <a target="_blank" href="http://www.google.com/apps/intl/en/group/index.html">Google Apps</a> to my clients. It&#8217;s free for up to 50 users, and expanded functionality is available for $50 per account annually. Feel free to give us a call if you have any questions about how to go about setting that up.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.heyjones.com/programming/chris-tony-spore-suggested-i-contact-you-about-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Resolve Most Google Apps Issues</title>
		<link>http://blog.heyjones.com/programming/how-to-resolve-most-google-apps-issues/</link>
		<comments>http://blog.heyjones.com/programming/how-to-resolve-most-google-apps-issues/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 19:12:37 +0000</pubDate>
		<dc:creator>Chris Jones</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.heyjones.com/2010/09/how-to-resolve-most-google-apps-issues/</guid>
		<description><![CDATA[Since switching the majority of my clients over to Google Apps I have enjoyed the speed, reliability and accessibility of their free service. Unfortunately when things don&#8217;t go as expected, dealing with Google&#8217;s &#8220;customer service&#8221; is a less than comforting experience. I have found one thing you can do on your own to clear up most issues [...]]]></description>
			<content:encoded><![CDATA[<p>Since switching the majority of my clients over to <a target="_blank" href="http://www.google.com/apps/intl/en/business/index.html">Google Apps</a> I have enjoyed the speed, reliability and accessibility of their free service. Unfortunately when things don&#8217;t go as expected, dealing with Google&#8217;s &#8220;customer service&#8221; is a less than comforting experience. I have found one thing you can do on your own to clear up most issues before attempting to get the boys up in Mountain View to help you out.</p>
<p>Google is very strict when it comes to taking measures to prevent spam in their system, so they rely heavily on captcha to verify human interaction with their service. Follow these steps to unlock your Google Apps account:</p>
<p>1) Go to https://www.google.com/a/yourdomain.com/UnlockCaptcha, replacing &#8220;yourdomain.com&#8221; with your domain name</p>
<p>2) Enter your username, password and the captcha text</p>
<p>3) Click the Unlock button</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.heyjones.com/programming/how-to-resolve-most-google-apps-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

