<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>Digital Epiphany Blog</title>
	<link>http://www.digital-epiphany-designs.com/blog</link>
	<description>Blog for coding examples and projects.</description>
	<lastBuildDate>Sat, 15 May 2010 15:44:06 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Prevent Spam without Captcha</title>
		<description><![CDATA[The following will show you how to prevent spam without the use of those annoying captcha images. I use javascript, which according to W3C, approximately 95% of the people browsing the web have it enabled. The odds of one of your visitors having it disabled is slim. If it does concern you however, you could [...]]]></description>
		<link>http://www.digital-epiphany-designs.com/blog/prevent-spam-without-captcha</link>
			</item>
	<item>
		<title>Google Apps Free Standard Account</title>
		<description><![CDATA[A number of times now I have had to relocate the link to set up google apps standard or google apps basic (the free version of google apps) on a few domains. So I figured I would post the link here to save me in my searching. I&#8217;m sure it may be helpful to others [...]]]></description>
		<link>http://www.digital-epiphany-designs.com/blog/google-apps-free-standard-account</link>
			</item>
	<item>
		<title>Use PHP to proportionally scale an image</title>
		<description><![CDATA[I wrote the following function to proportionally scale images that I was pulling from a directory.

View Code PHP&#160;
function img_size&#40;$img,$alt&#41; &#123;
&#160;
  list&#40;$width,$height&#41; = getimagesize&#40;$img&#41;;
&#160;
  $maxwidth = 140; //set max width here
&#160;
  if &#40;$width &#62; $maxwidth&#41; &#123;
	$i = $width - $maxwidth;
	$x = $width - $i;
	$percent = $maxwidth/$width;
  &#125;
  else
  &#123;
  [...]]]></description>
		<link>http://www.digital-epiphany-designs.com/blog/use-php-to-proportionally-scale-an-image</link>
			</item>
	<item>
		<title>MySQL, UPDATE data into a database using CONCAT()</title>
		<description><![CDATA[To insert data into a MySQL database while preserving the already existing data, you will just concatenate your new data to the end of your existing data.
Below is an example of how to do it using the column &#8220;changelog&#8221; which is used to keep track of changes made to the row/record.

View Code MYSQLUPDATE table1 SET [...]]]></description>
		<link>http://www.digital-epiphany-designs.com/blog/mysql-update-data-into-a-database-using-concat</link>
			</item>
	<item>
		<title>MySQL DELETE with a Max() Subquery</title>
		<description><![CDATA[Here is another nifty way to use a Subquery when deleting a record from your MySQL table.

View Code MYSQLDELETE FROM table1 WHERE id = '1' &#38;&#38; saleid='345' 
	                  &#38;&#38; slot = &#40;SELECT MAX&#40;slot&#41; FROM table1&#41;

]]></description>
		<link>http://www.digital-epiphany-designs.com/blog/mysql-delete-with-a-max-subquery</link>
			</item>
	<item>
		<title>MySQL INSERT with a Max()+1 Subquery</title>
		<description><![CDATA[This was a pain in my ass to figure out so I figured I would post it here in case anyone else needs to insert a record using a Max()+1 Subquery.
I only use the Max()+1 Subquery when the value you want to increase is not the primary key.

View Code MYSQLINSERT INTO table &#40;row1, row2, row3&#41;
 [...]]]></description>
		<link>http://www.digital-epiphany-designs.com/blog/mysql-insert-with-a-max1-subquery</link>
			</item>
	<item>
		<title>Latitude and Longitude of a location using Javascript and Google</title>
		<description><![CDATA[The following Javascript will help you acquire the latitude and longitude of a location (using an address, zip code, or city).
Note: You will need to have a Google API key which is domain specific.
Place the following code in the &#60;head&#62; section:

View Code JAVASCRIPTvar geocoder;
geocoder = new GClientGeocoder&#40;&#41;;
&#160;
function submitForm&#40;&#41; &#123;
  var address = document.getElementById&#40;&#34;address&#34;&#41;.value + [...]]]></description>
		<link>http://www.digital-epiphany-designs.com/blog/latitude-and-longitude-of-a-location-using-javascript-and-google</link>
			</item>
	<item>
		<title>Latitude and Longitude of a location using PHP and Google</title>
		<description><![CDATA[The following PHP code will help you acquire the latitude and longitude of a location (using an address, zip code, or city).
Note: Your will be required to have your own domain specific Google API key.

View Code PHPif &#40;$_POST&#91;'address'&#93;&#41; &#123;
&#160;
$key = ' '; //you will need yo use your own domain specific API key
&#160;
$address = stripslashes&#40;$_POST&#91;'address'&#93;&#41;;
&#160;
$addressurl = [...]]]></description>
		<link>http://www.digital-epiphany-designs.com/blog/latitude-and-longitude-of-a-location-using-php-and-google</link>
			</item>
	<item>
		<title>Ai for Connect Four &#8211; Half way there</title>
		<description><![CDATA[Well, first monumental task of world domination is half-way over. I have created my first Ai!!
Nothing to be to proud of compared to the masters, but it is getting there.
Right now Ai is about in grade 8. About to take the first big step to High School but still loving being a kid.
Ai can recognize [...]]]></description>
		<link>http://www.digital-epiphany-designs.com/blog/ai-for-connect-four-half-way-there</link>
			</item>
	<item>
		<title>Created Connect Four with XNA game engine</title>
		<description><![CDATA[I have successfully tought myself C# in conjunction with the XNA game engine! Woot!The first version of the &#8220;Connect Four&#8221; game is out and ready for download. See the game design section of the site for the file.This version only allows 1 vs 1 game play. The options menu does not work as of right [...]]]></description>
		<link>http://www.digital-epiphany-designs.com/blog/created-connect-four-with-xna-game-engine</link>
			</item>
</channel>
</rss>
