<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/conversion</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 11:23:01 GMT</pubDate>
<item>
<title>(C) conversion between queue and stack - zaxbbun</title>
<link>http://snipplr.com/view/71249/conversion-between-queue-and-stack/</link>
<description><![CDATA[ <p>conversion between queue and stack</p> ]]></description>
<pubDate>Tue, 21 May 2013 18:17:07 GMT</pubDate>
<guid>http://snipplr.com/view/71249/conversion-between-queue-and-stack/</guid>
</item>
<item>
<title>(PHP) State to Name/Abbreviation/Code Conversion Function - Concept211</title>
<link>http://snipplr.com/view/70891/state-to-nameabbreviationcode-conversion-function/</link>
<description><![CDATA[ <p>State to Name/Abbreviation/Code Conversion Function</p> ]]></description>
<pubDate>Tue, 23 Apr 2013 02:17:02 GMT</pubDate>
<guid>http://snipplr.com/view/70891/state-to-nameabbreviationcode-conversion-function/</guid>
</item>
<item>
<title>(C#) US State to Abbreviation Dictionary and Conversion - misholson</title>
<link>http://snipplr.com/view/69920/us-state-to-abbreviation-dictionary-and-conversion/</link>
<description><![CDATA[ <p>Two static dictionaries for converting US state names to abbreviations, and the reverse.</p> ]]></description>
<pubDate>Wed, 13 Feb 2013 07:18:00 GMT</pubDate>
<guid>http://snipplr.com/view/69920/us-state-to-abbreviation-dictionary-and-conversion/</guid>
</item>
<item>
<title>(Java) MOngoDBUtil - alexedy</title>
<link>http://snipplr.com/view/69446/mongodbutil/</link>
<description><![CDATA[ <p>A Singleton class that serialize and deserialize an object to a DBObject.</p> ]]></description>
<pubDate>Sun, 13 Jan 2013 19:27:10 GMT</pubDate>
<guid>http://snipplr.com/view/69446/mongodbutil/</guid>
</item>
<item>
<title>(PHP) Miles to Latitude and Miles to Longitude Converter - VisionHive</title>
<link>http://snipplr.com/view/67019/miles-to-latitude-and-miles-to-longitude-converter/</link>
<description><![CDATA[ <p>There are tons of functions out there to calculate the distance between two points, but what if you know one point and want to calculate the latitude ("vertical") or longitude ("horizontal") equivalent of a fixed distance, in miles? An example application would be in generating a minimum &amp; maximum latitude and longitude bounding box around an area to limit the results of a database query that uses distance from a fixed point.</p> ]]></description>
<pubDate>Sat, 01 Sep 2012 13:08:26 GMT</pubDate>
<guid>http://snipplr.com/view/67019/miles-to-latitude-and-miles-to-longitude-converter/</guid>
</item>
<item>
<title>(Visual Basic) Splitting the words in a  TitleCase string without using regular expressions (for VBA) - warwick-datum-process</title>
<link>http://snipplr.com/view/65842/splitting-the-words-in-a--titlecase-string-without-using-regular-expressions-for-vba/</link>
<description><![CDATA[ <p>Using VBA (Visual Basic for Applications) in MS Access, I needed to convert TitleCase to lower\_case, but did not have the regex enqine that's available in VB Script.  This solution,  based on a simple state machine model, splits the words in the string (converting to lower-case is trivial after that).  It treats a block of upper-case letters as a single word, but the last letter of that block is the first letter of the next word; e.g., "VBAIsLame" becomes "VBA Is Lame".   Because of this behaviour, if you subsequently convert to lower-case, you cannot reliably convert back to the original (all-upper-case words are indistinguishable from title-case words).  To resolve this potential ambiguity, you can supply an "upper\_case\_indicator" that will be inserted before each capital letter that isn't the start of a word.  So `TitleCaseSplit("VBAIsLame", "_", "-")` returns "V-B-A\_Is\_Lame".</p> ]]></description>
<pubDate>Thu, 28 Jun 2012 03:16:13 GMT</pubDate>
<guid>http://snipplr.com/view/65842/splitting-the-words-in-a--titlecase-string-without-using-regular-expressions-for-vba/</guid>
</item>
<item>
<title>(ActionScript 3) Radians to degrees conversion and viceversa - erosmarcon</title>
<link>http://snipplr.com/view/64906/radians-to-degrees-conversion-and-viceversa/</link>
<description><![CDATA[ <p>Radians to degrees and viceversa conversion formula</p> ]]></description>
<pubDate>Thu, 17 May 2012 17:54:11 GMT</pubDate>
<guid>http://snipplr.com/view/64906/radians-to-degrees-conversion-and-viceversa/</guid>
</item>
<item>
<title>(Objective C) Macro to use HEX color - Gretzki</title>
<link>http://snipplr.com/view/64892/macro-to-use-hex-color/</link>
<description><![CDATA[ <p>OBJC macro to use HEX color values to init UIColor objects</p> ]]></description>
<pubDate>Wed, 16 May 2012 20:54:41 GMT</pubDate>
<guid>http://snipplr.com/view/64892/macro-to-use-hex-color/</guid>
</item>
<item>
<title>(JavaScript) get RGBA values as an object - claudiowebdesign</title>
<link>http://snipplr.com/view/60570/get-rgba-values-as-an-object/</link>
<description><![CDATA[ <p>this function gets a parameter like an hex color (es: "#ffffff"), an abbreviated hex color (es: "#fff"), an rgb color (es: "rgb(255,255,255)") or an rgba color (es: "rgba(255,255,255,1)"), and returns an object containing the rgba values, like { red:x, green:y, blue:z, alpha:k  }.</p> ]]></description>
<pubDate>Sun, 06 Nov 2011 05:13:03 GMT</pubDate>
<guid>http://snipplr.com/view/60570/get-rgba-values-as-an-object/</guid>
</item>
<item>
<title>(ActionScript 3) AS3 Decimal To Hex - adrianparr</title>
<link>http://snipplr.com/view/60387/as3-decimal-to-hex/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Nov 2011 04:22:10 GMT</pubDate>
<guid>http://snipplr.com/view/60387/as3-decimal-to-hex/</guid>
</item>
<item>
<title>(C#) Byte array to String in .Net 3.5 - roboninjapiratejesus</title>
<link>http://snipplr.com/view/59709/byte-array-to-string-in-net-35/</link>
<description><![CDATA[ <p>ASCIIEncoding class has another method, GetByte(), which does the opposite of this one.</p> ]]></description>
<pubDate>Thu, 13 Oct 2011 02:43:54 GMT</pubDate>
<guid>http://snipplr.com/view/59709/byte-array-to-string-in-net-35/</guid>
</item>
<item>
<title>(Haskell) Haskell Radix Conversion using ByteStrings - rtperson</title>
<link>http://snipplr.com/view/54655/haskell-radix-conversion-using-bytestrings/</link>
<description><![CDATA[ <p>Another radix conversion, when you need to zippy greatness of Haskell's ByteString.(Haskell strings are slooooow!)

TODO: rewrite this using overloaded strings.</p> ]]></description>
<pubDate>Wed, 01 Jun 2011 00:30:19 GMT</pubDate>
<guid>http://snipplr.com/view/54655/haskell-radix-conversion-using-bytestrings/</guid>
</item>
<item>
<title>(Haskell) Haskell Radix Conversion - rtperson</title>
<link>http://snipplr.com/view/54654/haskell-radix-conversion/</link>
<description><![CDATA[ <p>Converts an integer from base 10 to a string of base x (where 0 > x >= 20). The only thing I'd improve is getting rid of all the calls to error. Perhaps hand back a Maybe String that simply hands back Nothing if unable to convert the number.</p> ]]></description>
<pubDate>Wed, 01 Jun 2011 00:26:01 GMT</pubDate>
<guid>http://snipplr.com/view/54654/haskell-radix-conversion/</guid>
</item>
<item>
<title>(Java) String to Char Array (char[]) - lowko0</title>
<link>http://snipplr.com/view/54402/string-to-char-array-char/</link>
<description><![CDATA[ <p>I hope its easy to understand. Any doubts just post a comment.
Thanks.</p> ]]></description>
<pubDate>Thu, 26 May 2011 08:27:26 GMT</pubDate>
<guid>http://snipplr.com/view/54402/string-to-char-array-char/</guid>
</item>
<item>
<title>(PHP) Change Date from dd/mm/yyyy to yyyy-dd-mm - dubogii</title>
<link>http://snipplr.com/view/53674/change-date-from-ddmmyyyy-to-yyyyddmm/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 17 May 2011 19:54:00 GMT</pubDate>
<guid>http://snipplr.com/view/53674/change-date-from-ddmmyyyy-to-yyyyddmm/</guid>
</item>
<item>
<title>(VB.NET) Temperature Class - Scooter</title>
<link>http://snipplr.com/view/53332/temperature-class/</link>
<description><![CDATA[ <p>This class is intended to reside within the app_code folder in your ASP.NET web site. It facilitates the storage and conversion of temperature values. See the linked blog post for usage example.</p> ]]></description>
<pubDate>Wed, 11 May 2011 09:31:48 GMT</pubDate>
<guid>http://snipplr.com/view/53332/temperature-class/</guid>
</item>
<item>
<title>(PHP) X,Y from lat,long - burnleywallet</title>
<link>http://snipplr.com/view/53315/xy-from-latlong/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 11 May 2011 01:55:18 GMT</pubDate>
<guid>http://snipplr.com/view/53315/xy-from-latlong/</guid>
</item>
<item>
<title>(ActionScript 3) String to Integer conversion - vorp</title>
<link>http://snipplr.com/view/52505/string-to-integer-conversion/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 23 Apr 2011 05:37:20 GMT</pubDate>
<guid>http://snipplr.com/view/52505/string-to-integer-conversion/</guid>
</item>
<item>
<title>(SQL) SQL Value conversion function - kashif21</title>
<link>http://snipplr.com/view/51435/sql-value-conversion-function/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 01 Apr 2011 21:50:21 GMT</pubDate>
<guid>http://snipplr.com/view/51435/sql-value-conversion-function/</guid>
</item>
<item>
<title>(SQL) SQl Select cluase value conversion - kashif21</title>
<link>http://snipplr.com/view/51434/sql-select-cluase-value-conversion/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 01 Apr 2011 21:45:45 GMT</pubDate>
<guid>http://snipplr.com/view/51434/sql-select-cluase-value-conversion/</guid>
</item>
</channel>
</rss>