<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - StevenW721</title>
<link>http://snipplr.com/users/StevenW721</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 19 Jun 2013 14:02:46 GMT</pubDate>
<item>
<title>(JavaScript) Return Age from Date of Birth</title>
<link>http://snipplr.com/view/66067/return-age-from-date-of-birth/</link>
<description><![CDATA[ <p>Calculates the amount of time since the date specified with yr, mon, and day. The parameter "countunit" can be "years", "months", or "days" and is the duration between the specified day and today in the selected denomination. The "decimals" parameter allows you to set a decimal place to round to for days and months return values. Rounding is also meant for days and months and can be "roundup" or "rounddown" based solely on the properties of Math.ceil and math.floor respectively.
Sample - displayage(1997, 11, 24, "years", 0, "rounddown")</p> ]]></description>
<pubDate>Wed, 11 Jul 2012 07:47:51 GMT</pubDate>
<guid>http://snipplr.com/view/66067/return-age-from-date-of-birth/</guid>
</item>
<item>
<title>(PHP) jQuery Validate Not Equal</title>
<link>http://snipplr.com/view/66057/jquery-validate-not-equal/</link>
<description><![CDATA[ <p>Adds a method to the jQuery Validation plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/) to return false if the field equals a specified string</p> ]]></description>
<pubDate>Wed, 11 Jul 2012 01:54:22 GMT</pubDate>
<guid>http://snipplr.com/view/66057/jquery-validate-not-equal/</guid>
</item>
<item>
<title>(PHP) Helper Functions</title>
<link>http://snipplr.com/view/65555/helper-functions/</link>
<description><![CDATA[ <p>General helper functions I commonly need for new website production</p> ]]></description>
<pubDate>Tue, 12 Jun 2012 15:00:45 GMT</pubDate>
<guid>http://snipplr.com/view/65555/helper-functions/</guid>
</item>
<item>
<title>(PHP) Password Hash and Validation</title>
<link>http://snipplr.com/view/62288/password-hash-and-validation/</link>
<description><![CDATA[ <p>Calling generateHash() with a single argument (the plain text password) will cause a random string to be generated and used for the salt. The resulting string consists of the salt followed by the SHA-1 hash - this is to be stored away in your database. When you're checking a user's login, the situation is slightly different in that you already know the salt you'd like to use. The string stored in your database can be passed to generateHash() as the second argument when generating the hash of a user-supplied password for comparison.</p> ]]></description>
<pubDate>Wed, 04 Jan 2012 06:18:53 GMT</pubDate>
<guid>http://snipplr.com/view/62288/password-hash-and-validation/</guid>
</item>
<item>
<title>(PHP) PHP Email with attachment of uploaded file</title>
<link>http://snipplr.com/view/47971/php-email-with-attachment-of-uploaded-file/</link>
<description><![CDATA[ <p>A simple one page form with attachment that is meant to go straight to the email and not uploaded to the server. Emails an HTML version, a PlainText version and the attachment if there is one.</p> ]]></description>
<pubDate>Thu, 27 Jan 2011 10:44:59 GMT</pubDate>
<guid>http://snipplr.com/view/47971/php-email-with-attachment-of-uploaded-file/</guid>
</item>
<item>
<title>(ActionScript 3) Empty a container movieclip of all its children using AS3</title>
<link>http://snipplr.com/view/43870/empty-a-container-movieclip-of-all-its-children-using-as3/</link>
<description><![CDATA[ <p>Where "_description" is the movieclip instance, the following will remove all children from it. This for loop can also be used to do other things to all the children like adding listeners.</p> ]]></description>
<pubDate>Wed, 10 Nov 2010 09:36:02 GMT</pubDate>
<guid>http://snipplr.com/view/43870/empty-a-container-movieclip-of-all-its-children-using-as3/</guid>
</item>
<item>
<title>(ActionScript 3) Trigger Javascript from Flash with AS3</title>
<link>http://snipplr.com/view/43869/trigger-javascript-from-flash-with-as3/</link>
<description><![CDATA[ <p>Short and sweet, add the following two lines where you want to trigger a javascript function. Just change the javascript denoted in the code by "javascriptFunction()" with whatever you want to call. Also jsut in case make sure you have the allowScriptAccess parameter set to "always".</p> ]]></description>
<pubDate>Wed, 10 Nov 2010 09:32:50 GMT</pubDate>
<guid>http://snipplr.com/view/43869/trigger-javascript-from-flash-with-as3/</guid>
</item>
<item>
<title>(JavaScript) Resize iframe height based on it's content</title>
<link>http://snipplr.com/view/38901/resize-iframe-height-based-on-its-content/</link>
<description><![CDATA[ <p>Sometimes iframes are unavoidable, and in those cases you usually don't want it to be apparent there is one. This will find the height of the iframed contents and resize the iframe accordingly, making it appear to be part of the page. Almost positive there's a better way to do this but this worked the most consistently across browsers so I'm saving it here. Suggestions welcome, especially on methods to do the same in jQuery.</p> ]]></description>
<pubDate>Wed, 11 Aug 2010 06:35:40 GMT</pubDate>
<guid>http://snipplr.com/view/38901/resize-iframe-height-based-on-its-content/</guid>
</item>
<item>
<title>(PHP) Codeigniter - One Controller to Rule Them All</title>
<link>http://snipplr.com/view/36970/codeigniter--one-controller-to-rule-them-all/</link>
<description><![CDATA[ <p>This one controller will load views based on the URI segments returned, good for static sites that don\\\\\\\'t require a controller for every page. Requires a view \\\\\\\"404\\\\\\\" as a default when nothing is found.</p> ]]></description>
<pubDate>Fri, 09 Jul 2010 01:27:54 GMT</pubDate>
<guid>http://snipplr.com/view/36970/codeigniter--one-controller-to-rule-them-all/</guid>
</item>
<item>
<title>(Apache) CodeIgniter Starter .htaccess</title>
<link>http://snipplr.com/view/36966/codeigniter-starter-htaccess/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 09 Jul 2010 01:23:46 GMT</pubDate>
<guid>http://snipplr.com/view/36966/codeigniter-starter-htaccess/</guid>
</item>
<item>
<title>(PHP) Force SSL usage</title>
<link>http://snipplr.com/view/36965/force-ssl-usage/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 09 Jul 2010 01:22:02 GMT</pubDate>
<guid>http://snipplr.com/view/36965/force-ssl-usage/</guid>
</item>
<item>
<title>(PHP) Mobile Device Detection</title>
<link>http://snipplr.com/view/36964/mobile-device-detection/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 09 Jul 2010 01:17:17 GMT</pubDate>
<guid>http://snipplr.com/view/36964/mobile-device-detection/</guid>
</item>
</channel>
</rss>