<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
 <channel>
  <title>Code</title>
  
  <link>http://www.inkplant.com/code/</link>
  <description>PHP, MySQL, Ajax, and HTML tutorials, code snippets, and examples to help solve a wide variety of programming questions.</description>
  <lastBuildDate>Thu, 18 Aug 2011 12:55:27 -0400</lastBuildDate>
  <language>en</language>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/inkplant" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="inkplant" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
   <title>Title Sort MySQL Results</title>
   <link>http://www.inkplant.com/code/mysql-sort-without-the-and-a.php</link>
   <comments>http://www.inkplant.com/code/mysql-sort-without-the-and-a.php#comments</comments>
   <pubDate>Thu, 18 Aug 2011 08:30:00 -0400</pubDate>
   <description>Shows you how to sort MySQL results by title, ignoring indefinite and definite articles (a, an, the).</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/mysql-sort-without-the-and-a.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>MySQL</category>
    <category>PHP</category>
  </item>
  <item>
   <title>Resize an Image on the Fly with PHP</title>
   <link>http://www.inkplant.com/code/php-resize-image-function.php</link>
   <comments>http://www.inkplant.com/code/php-resize-image-function.php#comments</comments>
   <pubDate>Thu, 04 Aug 2011 19:00:00 -0400</pubDate>
   <description>Easy PHP functions that let you resize images automatically using PHP. One keeps the same aspect ratio by cropping. Another function allows you to set a max width or height and shrink to fit. Or you can force to specific dimensions.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/php-resize-image-function.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>PHP</category>
    <category>Images</category>
  </item>
  <item>
   <title>Form Helper Class</title>
   <link>http://www.inkplant.com/code/form-helper.php</link>
   <comments>http://www.inkplant.com/code/form-helper.php#comments</comments>
   <pubDate>Fri, 08 Jul 2011 08:14:00 -0400</pubDate>
   <description>Helper for generating and processing HTML forms with PHP. Includes functions for easy creation of text input, dropdowns, radio buttons, checkboxes, hidden fields, date dropdowns, and more.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/form-helper.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>PHP</category>
    <category>HTML</category>
  </item>
  <item>
   <title>Get All Twitter Posts of a Specific Hashtag in PHP</title>
   <link>http://www.inkplant.com/code/get-twitter-posts-by-hashtag.php</link>
   <comments>http://www.inkplant.com/code/get-twitter-posts-by-hashtag.php#comments</comments>
   <pubDate>Tue, 31 May 2011 08:54:00 -0400</pubDate>
   <description>A quick and easy PHP function that uses Twitter's Search API to return recent Tweets with a specific hashtag.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/get-twitter-posts-by-hashtag.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>PHP</category>
    <category>Twitter</category>
  </item>
  <item>
   <title>Different Types of Intelligence</title>
   <link>http://www.inkplant.com/code/different-types-of-intelligence.php</link>
   <comments>http://www.inkplant.com/code/different-types-of-intelligence.php#comments</comments>
   <pubDate>Mon, 30 May 2011 11:54:00 -0400</pubDate>
   <description>A random question (what are the odds of getting a four of a kind dealt in a 6 card hand) led to a mini-exploration into the different kinds of logic that people use to solve problems.  Includes code on how I figured out the answer.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/different-types-of-intelligence.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>PHP</category>
  </item>
  <item>
   <title>Delete an Entire Google Apps Account Domain</title>
   <link>http://www.inkplant.com/code/delete-google-apps-account.php</link>
   <comments>http://www.inkplant.com/code/delete-google-apps-account.php#comments</comments>
   <pubDate>Tue, 24 May 2011 09:22:00 -0400</pubDate>
   <description>This is a quick guide explaining how to cancel an entire free or premium Google Apps domain.  It took me a while to figure out how to shut my testing one down, so I figured I'd share the knowledge.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/delete-google-apps-account.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>Email</category>
    <category>Google Apps</category>
  </item>
  <item>
   <title>Get Website Screenshots Using PHP</title>
   <link>http://www.inkplant.com/code/website-screenshots-with-php.php</link>
   <comments>http://www.inkplant.com/code/website-screenshots-with-php.php#comments</comments>
   <pubDate>Fri, 13 May 2011 08:45:00 -0400</pubDate>
   <description>Tutorial and code showing how to use PHP's built-in imagegrabwindow function to take a screenshot of a website and then crop, resize, and save it as a JPEG image.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/website-screenshots-with-php.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>PHP</category>
    <category>Windows</category>
  </item>
  <item>
   <title>How to Forward Email on a Linux Server</title>
   <link>http://www.inkplant.com/code/linux-email-forwarding.php</link>
   <comments>http://www.inkplant.com/code/linux-email-forwarding.php#comments</comments>
   <pubDate>Thu, 12 May 2011 07:32:00 -0400</pubDate>
   <description>A few tips on setting up email forwarding on your Linux (or UNIX) box.  Includes instructions on how to forward to multiple email addresses from one account.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/linux-email-forwarding.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>Linux</category>
    <category>VI Editor</category>
    <category>Email</category>
  </item>
  <item>
   <title>Calculate the Distance Between Two Points in PHP</title>
   <link>http://www.inkplant.com/code/calculate-the-distance-between-two-points.php</link>
   <comments>http://www.inkplant.com/code/calculate-the-distance-between-two-points.php#comments</comments>
   <pubDate>Tue, 26 Apr 2011 08:47:00 -0400</pubDate>
   <description>A simple, easy-to-understand PHP function that calculates the distance between two sets of latitude and longitude coordinates in miles, km, feet, and meters.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/calculate-the-distance-between-two-points.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>PHP</category>
    <category>Maps</category>
  </item>
  <item>
   <title>How to Create a Symbolic Link in Windows Vista</title>
   <link>http://www.inkplant.com/code/how-to-create-a-symbolic-link-in-windows-vista.php</link>
   <comments>http://www.inkplant.com/code/how-to-create-a-symbolic-link-in-windows-vista.php#comments</comments>
   <pubDate>Fri, 22 Apr 2011 08:37:00 -0400</pubDate>
   <description>Quick step-by-step instructions explaining how to create shortcuts to another directory in your file system using mklink when using Windows Vista.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/how-to-create-a-symbolic-link-in-windows-vista.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>PHP</category>
    <category>Windows</category>
    <category>XAMPP</category>
    <category>Command Prompt</category>
  </item>
  <item>
   <title>Shortening URLs in PHP with the bit.ly API</title>
   <link>http://www.inkplant.com/code/shorten-urls-with-bitly-api.php</link>
   <comments>http://www.inkplant.com/code/shorten-urls-with-bitly-api.php#comments</comments>
   <pubDate>Sat, 19 Mar 2011 15:28:00 -0400</pubDate>
   <description>A quick, easy-to-use PHP function that takes your long URL's and converts them into something short and ready to post on Twitter, etc.  Just plug in your bit.ly username and API Key and you're ready to go.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/shorten-urls-with-bitly-api.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>PHP</category>
  </item>
  <item>
   <title>Convert an Entire MySQL Table to UTF-8</title>
   <link>http://www.inkplant.com/code/convert-mysql-table-to-utf8.php</link>
   <comments>http://www.inkplant.com/code/convert-mysql-table-to-utf8.php#comments</comments>
   <pubDate>Sun, 13 Mar 2011 13:56:00 -0400</pubDate>
   <description>A PHP function (with lots of comments) that converts a MySQL table and its data to UTF-8.  It updates the collation of the table itself and of each text-based column.  Additionally, it goes through each row and updates existing data automatically.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/convert-mysql-table-to-utf8.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>MySQL</category>
    <category>PHP</category>
    <category>HTML</category>
  </item>
  <item>
   <title>List of Latitudes and Longitudes for Every State</title>
   <link>http://www.inkplant.com/code/state-latitudes-longitudes.php</link>
   <comments>http://www.inkplant.com/code/state-latitudes-longitudes.php#comments</comments>
   <pubDate>Wed, 09 Mar 2011 16:39:00 -0500</pubDate>
   <description>A list of the center latitude and longitude for all fifty of the United States (generated by taking the average latitude and longitude from each zip code within the state).  In both HTML table and MySQL format.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/state-latitudes-longitudes.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>MySQL</category>
    <category>Data Dumps</category>
    <category>Maps</category>
  </item>
  <item>
   <title>Count Textarea Characters with JavaScript</title>
   <link>http://www.inkplant.com/code/count-textarea-characters-with-javascript.php</link>
   <comments>http://www.inkplant.com/code/count-textarea-characters-with-javascript.php#comments</comments>
   <pubDate>Sat, 26 Feb 2011 09:32:00 -0500</pubDate>
   <description>Simple code that allows you to count how many characters have been typed into a textbox (or any other text element) and then displays the remaining amount of characters in a specified element.  Works great for Twitter forms and the 140 character max.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/count-textarea-characters-with-javascript.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>HTML</category>
    <category>JavaScript</category>
  </item>
  <item>
   <title>Blog Ping List and XML-RPC Generator</title>
   <link>http://www.inkplant.com/code/blog-ping.php</link>
   <comments>http://www.inkplant.com/code/blog-ping.php#comments</comments>
   <pubDate>Sat, 29 Jan 2011 17:42:00 -0500</pubDate>
   <description>An up-to-date list of blog ping endpoints.  Also, a tool to construct your XML-RPC request to send to them.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/blog-ping.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>PHP</category>
    <category>Blogging</category>
    <category>XML</category>
  </item>
  <item>
   <title>Combining MySQL SUM and GROUP BY Clauses</title>
   <link>http://www.inkplant.com/code/mysql-sum-and-group-by.php</link>
   <comments>http://www.inkplant.com/code/mysql-sum-and-group-by.php#comments</comments>
   <pubDate>Sat, 08 Jan 2011 12:47:00 -0500</pubDate>
   <description>An experiment that shows how MySQL calculates a combination of SUM and GROUP BY clauses in the same query.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/mysql-sum-and-group-by.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>MySQL</category>
  </item>
  <item>
   <title>Block Crawlers from HTTPS with Robots.txt</title>
   <link>http://www.inkplant.com/code/https-robots.php</link>
   <comments>http://www.inkplant.com/code/https-robots.php#comments</comments>
   <pubDate>Fri, 03 Dec 2010 08:46:00 -0500</pubDate>
   <description>If you allow search engine crawlers to index both HTTP and HTTPS versions of your site, you can run into some serious SEO issues.  This quick guide explains how to stop that from happening with .htaccess, PHP, and robots.txt.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/https-robots.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>PHP</category>
    <category>.htaccess</category>
    <category>SEO</category>
    <category>robots.txt</category>
  </item>
  <item>
   <title>Convert Hex to Decimal Functions</title>
   <link>http://www.inkplant.com/code/hexdec-converter.php</link>
   <comments>http://www.inkplant.com/code/hexdec-converter.php#comments</comments>
   <pubDate>Tue, 23 Nov 2010 07:44:00 -0500</pubDate>
   <description>The PHP functions you need to go from RGB values to a hexadecimal string and visa versa.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/hexdec-converter.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>PHP</category>
    <category>CSS</category>
    <category>HTML</category>
  </item>
  <item>
   <title>MySQL Vertical Display in HTML Table</title>
   <link>http://www.inkplant.com/code/mysql-vertical-sort.php</link>
   <comments>http://www.inkplant.com/code/mysql-vertical-sort.php#comments</comments>
   <pubDate>Thu, 07 Oct 2010 14:45:00 -0400</pubDate>
   <description>PHP code to display results from a MySQL query sorted vertically (rather than horizontally) in a table. Very simple and allows for custom number of columns.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/mysql-vertical-sort.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>MySQL</category>
    <category>PHP</category>
    <category>HTML</category>
  </item>
  <item>
   <title>Ajax Tutorial</title>
   <link>http://www.inkplant.com/code/ajax-tutorial.php</link>
   <comments>http://www.inkplant.com/code/ajax-tutorial.php#comments</comments>
   <pubDate>Sat, 18 Sep 2010 12:00:00 -0400</pubDate>
   <description>A simple crash course on Ajax that will get you started in a matter of minutes.  Includes an easy to follow example with multiple Ajax calls from one page.</description>
   <guid isPermaLink="true">http://www.inkplant.com/code/ajax-tutorial.php</guid>
   <dc:creator>Robert James Reese</dc:creator>
    <category>PHP</category>
    <category>Ajax</category>
    <category>JavaScript</category>
  </item>
  </channel>
</rss>
