<?xml version="1.0" encoding="utf-8"?>

			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>CFSITHMASTER</title>
			<link>http://www.cfsithmaster.com/index.cfm</link>
			<description></description>
			<language>en-us</language>
			<pubDate>Thu, 20 Jun 2013 08:25:34 -0500</pubDate>
			<lastBuildDate>Thu, 07 Jul 2011 17:24:00 -0500</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>peruzc@gmail.com</managingEditor>
			<webMaster>peruzc@gmail.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>peruzc@gmail.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			
			<itunes:explicit>no</itunes:explicit>
			
			<item>
				<title>Array Reverse</title>
				<link>http://www.cfsithmaster.com/index.cfm/2011/7/7/Array-Reverse</link>
				<description>
				
				I recently came in need of a way to reverse the order of the elements in my array. Here&apos;s what I came up with.

&lt;code&gt;
array function reverseArray(required array inputArray)
	hint=&quot;reverses the order of the array&quot;
	output=&quot;false&quot;
{
	var j = arrayLen(arguments.inputArray);

	for (var i=1;i&lt;=arrayLen(arguments.inputArray)/2;i++) {
		arraySwap(arguments.inputArray,i,j--);
	}

	return arguments.inputArray;
}
&lt;/code&gt;
				</description>
				
				<category>ColdFusion</category>
				
				<pubDate>Thu, 07 Jul 2011 17:24:00 -0500</pubDate>
				<guid>http://www.cfsithmaster.com/index.cfm/2011/7/7/Array-Reverse</guid>
				
				
			</item>
			
			<item>
				<title>Query To Array</title>
				<link>http://www.cfsithmaster.com/index.cfm/2011/6/30/Query-To-Array</link>
				<description>
				
				Here&apos;s another one if you want to turn the query variable into an array of structures.

&lt;code&gt;
array function queryToArray (required query data)
	output=&quot;false&quot;
{
	local.columns = listToArray(arguments.data.columnList);

	local.queryArray = [];

	for (local.rowIndex = 1; local.rowIndex &lt;= arguments.data.recordCount; local.rowIndex++) {
		local.row = {};

		for (local.columnIndex = 1; local.columnIndex &lt;= arrayLen(local.columns); local.columnIndex++) {
			local.columnName = local.columns[local.columnIndex];

			local.row[local.columnName] = arguments.data[local.columnName][local.rowIndex];
		}

		arrayAppend(local.queryArray, local.row);
	}

	return(local.queryArray);
}
&lt;/code&gt;
				</description>
				
				<category>ColdFusion</category>
				
				<pubDate>Thu, 30 Jun 2011 11:25:00 -0500</pubDate>
				<guid>http://www.cfsithmaster.com/index.cfm/2011/6/30/Query-To-Array</guid>
				
				
			</item>
			
			<item>
				<title>Query To Struct</title>
				<link>http://www.cfsithmaster.com/index.cfm/2011/6/30/Query-To-Struct</link>
				<description>
				
				Below is a very handy function to convert a query variable into a structure of structure. Enjoy.

&lt;code&gt;
struct function queryToStruct(required query data, boolean unique=false)
	output=&quot;false&quot;
{
	var result = {};
	var columns = listToArray(arguments.data.columnList);

	for (var r=1;r&lt;=arguments.data.recordCount;r++) {
		var row = {};

		for (var c=1;c&lt;=arrayLen(columns);c++) {
			var columnName = columns[c];
			structInsert(row, columnName, arguments.data[columnName][r]);
		}

		structInsert(result, r, row);
	}

	if (structCount(result) == 1 &amp;&amp; arguments.unique) {
		result = result[structKeyArray(result)[1]];
	}

	return result;
}	
&lt;/code&gt;
				</description>
				
				<category>ColdFusion</category>
				
				<pubDate>Thu, 30 Jun 2011 11:20:00 -0500</pubDate>
				<guid>http://www.cfsithmaster.com/index.cfm/2011/6/30/Query-To-Struct</guid>
				
				
			</item>
			</channel></rss>