<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - Scooter</title>
<link>http://snipplr.com/users/Scooter</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 04 Jul 2008 16:54:36 GMT</pubDate>
<item>
<title>(PHP) Factors</title>
<link>http://snipplr.com/view/6988/factors/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 28 Jun 2008 10:46:36 GMT</pubDate>
<guid>http://snipplr.com/view/6988/factors/</guid>
</item>
<item>
<title>(ASP) Factors</title>
<link>http://snipplr.com/view/6987/factors/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 28 Jun 2008 10:45:38 GMT</pubDate>
<guid>http://snipplr.com/view/6987/factors/</guid>
</item>
<item>
<title>(ASP) AM/PM</title>
<link>http://snipplr.com/view/6831/ampm/</link>
<description><![CDATA[ <p>Extract the AM/PM portion from a time value.</p> ]]></description>
<pubDate>Sat, 21 Jun 2008 11:03:35 GMT</pubDate>
<guid>http://snipplr.com/view/6831/ampm/</guid>
</item>
<item>
<title>(PHP) Factorial</title>
<link>http://snipplr.com/view/6712/factorial/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 14 Jun 2008 10:13:59 GMT</pubDate>
<guid>http://snipplr.com/view/6712/factorial/</guid>
</item>
<item>
<title>(ASP) Factorial</title>
<link>http://snipplr.com/view/6711/factorial/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 14 Jun 2008 10:13:36 GMT</pubDate>
<guid>http://snipplr.com/view/6711/factorial/</guid>
</item>
<item>
<title>(ASP) Pythagorean Theorem</title>
<link>http://snipplr.com/view/6619/pythagorean-theorem/</link>
<description><![CDATA[ <p>ASP implementation of the hypot() function from PHP.</p> ]]></description>
<pubDate>Sat, 07 Jun 2008 11:08:04 GMT</pubDate>
<guid>http://snipplr.com/view/6619/pythagorean-theorem/</guid>
</item>
<item>
<title>(ASP) Degrees and Radians</title>
<link>http://snipplr.com/view/6514/degrees-and-radians/</link>
<description><![CDATA[ <p>Functions for converting between degrees and radians.</p> ]]></description>
<pubDate>Sat, 31 May 2008 10:11:18 GMT</pubDate>
<guid>http://snipplr.com/view/6514/degrees-and-radians/</guid>
</item>
<item>
<title>(PHP) Euclid's Algorithm</title>
<link>http://snipplr.com/view/6441/euclids-algorithm/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 24 May 2008 10:29:59 GMT</pubDate>
<guid>http://snipplr.com/view/6441/euclids-algorithm/</guid>
</item>
<item>
<title>(ASP) Euclid's Algorithm</title>
<link>http://snipplr.com/view/6440/euclids-algorithm/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 24 May 2008 10:29:19 GMT</pubDate>
<guid>http://snipplr.com/view/6440/euclids-algorithm/</guid>
</item>
<item>
<title>(ASP) Ceiling and Floor</title>
<link>http://snipplr.com/view/6330/ceiling-and-floor/</link>
<description><![CDATA[ <p>In mathematics, there are two elementary special functions called ceiling() and floor() which allow us to round up or down, respectively, to the nearest whole number. These functions exist natively in PHP, but not in ASP. They are handy in situations where you want to force a number like 15.8 to round down to 15, but the round() function rounds it up to 16 according to the standard rules for rounding.</p> ]]></description>
<pubDate>Mon, 19 May 2008 15:38:42 GMT</pubDate>
<guid>http://snipplr.com/view/6330/ceiling-and-floor/</guid>
</item>
<item>
<title>(PHP) Tractive Effort of a steam locomotive</title>
<link>http://snipplr.com/view/6329/tractive-effort-of-a-steam-locomotive/</link>
<description><![CDATA[ <p>Only works for non-compound locomotives. (ie. single cylinder)</p> ]]></description>
<pubDate>Mon, 19 May 2008 15:37:27 GMT</pubDate>
<guid>http://snipplr.com/view/6329/tractive-effort-of-a-steam-locomotive/</guid>
</item>
<item>
<title>(ASP) Tractive Effort of a steam locomotive</title>
<link>http://snipplr.com/view/6328/tractive-effort-of-a-steam-locomotive/</link>
<description><![CDATA[ <p>Only works for non-compound locomotives. (ie. single cylinder)</p> ]]></description>
<pubDate>Mon, 19 May 2008 15:36:46 GMT</pubDate>
<guid>http://snipplr.com/view/6328/tractive-effort-of-a-steam-locomotive/</guid>
</item>
<item>
<title>(ASP) Base Conversion</title>
<link>http://snipplr.com/view/6327/base-conversion/</link>
<description><![CDATA[ <p>PHP's base conversion functions ported to ASP. Limited to base 36, but could be extended beyond that. See corresponding blog spot and code comments for more information on what would need to be done.</p> ]]></description>
<pubDate>Mon, 19 May 2008 15:34:55 GMT</pubDate>
<guid>http://snipplr.com/view/6327/base-conversion/</guid>
</item>
<item>
<title>(ASP) Immediate If</title>
<link>http://snipplr.com/view/6326/immediate-if/</link>
<description><![CDATA[ <p>The iif() function in Visual Basic is sometimes more convenient than a full-blown if...then...else... control structure. Oddly enough, the function does not exist in VBScript.</p> ]]></description>
<pubDate>Mon, 19 May 2008 15:31:21 GMT</pubDate>
<guid>http://snipplr.com/view/6326/immediate-if/</guid>
</item>
<item>
<title>(PHP) Proper Case</title>
<link>http://snipplr.com/view/6325/proper-case/</link>
<description><![CDATA[ <p>An alias for the ucwords() function to make it consistent with strtolower() and strtoupper().</p> ]]></description>
<pubDate>Mon, 19 May 2008 15:29:27 GMT</pubDate>
<guid>http://snipplr.com/view/6325/proper-case/</guid>
</item>
<item>
<title>(ASP) Proper Case</title>
<link>http://snipplr.com/view/6324/proper-case/</link>
<description><![CDATA[ <p>Replica of the PCase() function from Visual Basic for VBScript. Slightly different in that it supports Scottish and Irish names like MacDonald and O'Brien.</p> ]]></description>
<pubDate>Mon, 19 May 2008 15:28:32 GMT</pubDate>
<guid>http://snipplr.com/view/6324/proper-case/</guid>
</item>
<item>
<title>(PHP) Ordinal Numbers</title>
<link>http://snipplr.com/view/6323/ordinal-numbers/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 19 May 2008 15:23:44 GMT</pubDate>
<guid>http://snipplr.com/view/6323/ordinal-numbers/</guid>
</item>
<item>
<title>(ASP) Ordinal Numbers</title>
<link>http://snipplr.com/view/6322/ordinal-numbers/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 19 May 2008 15:23:02 GMT</pubDate>
<guid>http://snipplr.com/view/6322/ordinal-numbers/</guid>
</item>
<item>
<title>(Apache) Force SSL</title>
<link>http://snipplr.com/view/6321/force-ssl/</link>
<description><![CDATA[ <p>There are some things here worth noting. We are checking if HTTPS is off. Some people will instead check if traffic is coming from port 80, the standard HTTP port, or not coming from 443, the standard HTTPS port. Checking port numbers is not the best solution because the server administrator can set up HTTP and HTTPS to run on different ports. It's also worth noting that QueryString variables are preserved, if any are being passed. Most other examples I've seen on the Internet ignore the QueryString variables, which leads to navigation problems.</p> ]]></description>
<pubDate>Mon, 19 May 2008 15:01:57 GMT</pubDate>
<guid>http://snipplr.com/view/6321/force-ssl/</guid>
</item>
<item>
<title>(ASP) Force SSL</title>
<link>http://snipplr.com/view/6319/force-ssl/</link>
<description><![CDATA[ <p>There are some things here worth noting. We are checking if HTTPS is off. Some people will instead check if traffic is coming from port 80, the standard HTTP port, or not coming from 443, the standard HTTPS port. Checking port numbers is not the best solution because the server administrator can set up HTTP and HTTPS to run on different ports. It's also worth noting that QueryString variables are preserved, if any are being passed. Most other examples I've seen on the Internet ignore the QueryString variables, which leads to navigation problems.</p> ]]></description>
<pubDate>Mon, 19 May 2008 15:01:15 GMT</pubDate>
<guid>http://snipplr.com/view/6319/force-ssl/</guid>
</item>
</channel>
</rss>