<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;CEYAQXg6eyp7ImA9WhRRFEk.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271</id><updated>2011-11-27T17:02:20.613-08:00</updated><category term="db4o" /><category term="couchdb" /><category term="coldfusion" /><category term="sql" /><category term="bugs" /><category term="cfcs" /><category term="cfscript" /><category term="email" /><category term="spry" /><category term="functions" /><category term="application" /><category term="oodb" /><category term="undocumented" /><category term="open-source" /><category term="server management" /><category term="ms sql 2000" /><title type="text">Coldfusion by Russ &lt;CFRuss&gt;</title><subtitle type="html">On web application development with Coldfusion, jQuery, SQL, etc.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://cfruss.blogspot.com/" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>20</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/cfruss" /><feedburner:info uri="cfruss" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>40.793739</geo:lat><geo:long>-124.161025</geo:long><feedburner:emailServiceId>cfruss</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><entry gd:etag="W/&quot;CEUDR30-eyp7ImA9WxBQGUg.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-3231754374188117163</id><published>2010-01-19T17:51:00.001-08:00</published><updated>2010-01-19T17:51:16.353-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-19T17:51:16.353-08:00</app:edited><title>Been busy</title><content type="html">I feel badly that I haven't had a chance to blog lately, as I have been very busy.&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-3231754374188117163?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=AGsAlo-0Ocw:m8afg9sFaDw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=AGsAlo-0Ocw:m8afg9sFaDw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=AGsAlo-0Ocw:m8afg9sFaDw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=AGsAlo-0Ocw:m8afg9sFaDw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=AGsAlo-0Ocw:m8afg9sFaDw:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=AGsAlo-0Ocw:m8afg9sFaDw:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=AGsAlo-0Ocw:m8afg9sFaDw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=AGsAlo-0Ocw:m8afg9sFaDw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/AGsAlo-0Ocw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/3231754374188117163/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=3231754374188117163" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/3231754374188117163?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/3231754374188117163?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/AGsAlo-0Ocw/been-busy.html" title="Been busy" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2010/01/been-busy.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkMBQ3g_eCp7ImA9WxBQGEo.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-3862663908068338479</id><published>2009-11-29T20:15:00.000-08:00</published><updated>2010-01-18T19:07:32.640-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-01-18T19:07:32.640-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="coldfusion" /><category scheme="http://www.blogger.com/atom/ns#" term="application" /><category scheme="http://www.blogger.com/atom/ns#" term="cfcs" /><category scheme="http://www.blogger.com/atom/ns#" term="cfscript" /><title>Application.cfc Reference in CFScript for Coldfusion 9</title><content type="html">One of Coldfusion 9's features is the ability to define components entirely within CFScript. I was looking around for an example of Application.cfc in CFScript, and I couldn't find it. So I've compiled it for you here. It includes all available methods and application variables. (If you find something I've missed, let me know!)&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
- The ordering of variables and methods matches Adobe's documentation.&lt;br /&gt;
- Descriptions are from Adobe.&lt;br /&gt;
- Variables are set to CF defaults.&lt;br /&gt;
- onRequest, onError, and onMisingTemplate are commented out because they can mess with your application if you don't implement them properly.&lt;br /&gt;
- You do not need to enclose this within cfscript tags.&lt;br /&gt;
&lt;br /&gt;
Application.cfc:&lt;br /&gt;
&lt;pre style="border: 1px solid black; padding: 4px; overflow: scroll; display: block; height:500px; font-size:12px;"&gt;&lt;span style="color: rgb(68, 68, 68); width:2100px; display:block;"&gt;&lt;i&gt;/**
@title "Application.cfc reference in CFScript for Coldfusion 9"
@description "This component includes all Application.cfc methods and variables, set to their default values (if applicable). Please note that default values are not always desirable, and some methods or variables should be modified or removed depending on the situation."
@author "Russ S. (http://cfruss.blogspot.com)"

@dateCreated "November 29, 2009"
@licence "This work is licensed under the Creative Commons Attribution 3.0 United States License. To view a copy of this license, visit http://creativecommons.org/licenses/by/3.0/us/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA."

@hint "You implement methods in Application.cfc to handle ColdFusion application events and set variables in the CFC to configure application characteristics."
*/&lt;/i&gt;&lt;/span&gt;

&lt;span style="color: rgb(32, 64, 160);"&gt;component&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;output&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0);"&gt;"false"&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;/* **************************** APPLICATION VARIABLES **************************** */&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// The application name. If you do not set this variable, or set it to the empty string, your CFC applies to the unnamed application scope, which is the ColdFusion J2EE servlet context.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;name&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 128, 0);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Life span, as a real number of days, of the application, including all Application scope variables.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;applicationTimeout&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;createTimeSpan&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;0&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;1&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;0&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Whether the application supports Client scope variables.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;clientManagement&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;strong&gt;false&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Where Client variables are stored; can be cookie, registry, or the name of a data source.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;clientStorage&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 128, 0);"&gt;"registry"&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(68, 68, 68);"&gt;//cookie||registry||datasource&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Contains ColdFusion custom tag paths. &lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;customTagPaths&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 128, 0);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// The Google Maps API key required to embed Google Maps in your web pages.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;googleMapKey&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 128, 0);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Name of the data source from which the query retrieves data. &lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;datasource&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 128, 0);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Whether to store login information in the Cookie scope or the Session scope.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;loginStorage&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 128, 0);"&gt;"cookie"&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(68, 68, 68);"&gt;//cookie||session&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// A structure that contains ColdFusion mappings. Each element in the structure consists of a key and a value. The logical path is the key and the absolute path is the value. &lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;mappings&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Whether to enable validation on cfform fields when the form is submitted.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;serverSideFormValidation&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;strong&gt;true&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Whether the application supports Session scope variables.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;sessionManagement&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;strong&gt;true&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Life span, as a real number of days, of the user session, including all Session variables.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;sessionTimeout&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;createTimeSpan&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;0&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;0&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;30&lt;/span&gt;, &lt;span style="color: rgb(255, 0, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Whether to send CFID and CFTOKEN cookies to the client browser.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;setClientCookies&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;strong&gt;true&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Whether to set CFID and CFTOKEN cookies for a domain (not just a host).&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;setDomainCookies&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;strong&gt;false&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Whether to protect variables from cross-site scripting attacks.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;scriptProtect&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;strong&gt;false&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// A Boolean value that specifies whether to add a security prefix in front of the value that a ColdFusion function returns in JSON-format in response to a remote call. &lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;secureJSON&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;strong&gt;false&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// The security prefix to put in front of the value that a ColdFusion function returns in JSON-format in response to a remote call if the secureJSON setting is true. &lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;secureJSONPrefix&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 128, 0);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// A comma-delimited list of names of files. Tells ColdFusion not to call the onMissingTemplate method if the files are not found.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;welcomeFileList&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 128, 0);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// A struct that contains the following values: server, username, and password.If no value is specified, takes the value in the administrator.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;smtpServersettings&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Request timeout. Overrides the default administrator settings.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;timeout&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;30&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt; &lt;span style="color: rgb(68, 68, 68);"&gt;// seconds&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// A list of ip addresses that need debugging.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;debugipaddress&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 128, 0);"&gt;""&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Overrides the default administrator settings. It does not report compile-time exceptions.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;enablerobustexception&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;strong&gt;false&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;/* ORM variables */&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// Specifies whether ORM should be used for the ColdFusion application.Set the value to true to use ORM. The default is false.&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;ormenabled&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;strong&gt;false&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// The struct that defines all the ORM settings. Documentation: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSED380324-6CBE-47cb-9E5E-26B66ACA9E81.html&lt;/span&gt;
&lt;span style="color: rgb(32, 64, 160);"&gt;THIS&lt;/span&gt;.&lt;span style="color: rgb(32, 64, 160);"&gt;ormsettings&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 68);"&gt;// note: THIS.datasource applies to cfquery as well as ORM. It is defined on line 31.&lt;/span&gt;


&lt;span style="color: rgb(68, 68, 68);"&gt;/* **************************** APPLICATION METHODS **************************** */&lt;/span&gt;


&lt;span style="color: rgb(68, 68, 68);"&gt;&lt;i&gt;/**
@hint "Runs when an application times out or the server is shutting down."
@ApplicationScope "The application scope."
*/&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;public&lt;/strong&gt; &lt;strong&gt;void&lt;/strong&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;function&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;onApplicationEnd&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(32, 64, 160);"&gt;struct&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;ApplicationScope&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(32, 64, 160);"&gt;structNew&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/span&gt;

&lt;strong&gt;return&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;
&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;


&lt;span style="color: rgb(68, 68, 68);"&gt;&lt;i&gt;/**
@hint "Runs when ColdFusion receives the first request for a page in the application."
*/&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;public&lt;/strong&gt; &lt;strong&gt;boolean&lt;/strong&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;function&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;onApplicationStart&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/span&gt;

&lt;strong&gt;return&lt;/strong&gt; &lt;strong&gt;true&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;
&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;


&lt;span style="color: rgb(68, 68, 68);"&gt;&lt;i&gt;/**
@hint "Intercepts any HTTP or AMF calls to an application based on CFC request."
@cfcname "Fully qualified dotted path to the CFC."

@method "The name of the method invoked."
@args "The arguments (struct) with which the method is invoked."
*/&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;public&lt;/strong&gt; &lt;strong&gt;void&lt;/strong&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;function&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;onCFCRequest&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(32, 64, 160);"&gt;required&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;string&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;cfcname&lt;/span&gt;, &lt;span style="color: rgb(32, 64, 160);"&gt;required&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;string&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;method&lt;/span&gt;, &lt;span style="color: rgb(32, 64, 160);"&gt;required&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;string&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;args&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/span&gt;

&lt;strong&gt;return&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;
&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;


&lt;span style="color: rgb(68, 68, 68);"&gt;&lt;i&gt;/**
@hint "Runs when an uncaught exception occurs in the application."
@Exception "The ColdFusion Exception object. For information on the structure of this object, see the description of the cfcatch variable in the cfcatch description."
@EventName "The name of the event handler that generated the exception. If the error occurs during request processing and you do not implement an onRequest method, EventName is the empty string."

note: This method is commented out because it should only be used in special cases
*/&lt;/i&gt;&lt;/span&gt;
&lt;span style="color: rgb(68, 68, 68);"&gt;/*
public void function onError(required any Exception, required string EventName) {
return;
}
*/&lt;/span&gt;


&lt;span style="color: rgb(68, 68, 68);"&gt;&lt;i&gt;/**
@hint "Runs when a request specifies a non-existent CFML page."
@TargetPage "The path from the web root to the requested CFML page."
note: This method is commented out because it should only be used in special cases
*/&lt;/i&gt;&lt;/span&gt;
&lt;span style="color: rgb(68, 68, 68);"&gt;/*
public boolean function onMissingTemplate(required string TargetPage) {
return true;
}
*/&lt;/span&gt;


&lt;span style="color: rgb(68, 68, 68);"&gt;&lt;i&gt;/**
@hint "Runs when a request starts, after the onRequestStart event handler. If you implement this method, it must explicitly call the requested page to process it."
@TargetPage "Path from the web root to the requested page."
note: This method is commented out because it should only be used in special cases
*/&lt;/i&gt;&lt;/span&gt;
&lt;span style="color: rgb(68, 68, 68);"&gt;/*
public void function onRequest(required string TargetPage) {
return;
}
*/&lt;/span&gt;


&lt;span style="color: rgb(68, 68, 68);"&gt;&lt;i&gt;/**
@hint "Runs at the end of a request, after all other CFML code."

*/&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;public&lt;/strong&gt; &lt;strong&gt;void&lt;/strong&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;function&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;onRequestEnd&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/span&gt;
&lt;strong&gt;return&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;


&lt;span style="color: rgb(68, 68, 68);"&gt;&lt;i&gt;/**
@hint "Runs when a request starts."
@TargetPage "Path from the web root to the requested page."
*/&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;public&lt;/strong&gt; &lt;strong&gt;boolean&lt;/strong&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;function&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;onRequestStart&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(32, 64, 160);"&gt;required&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;string&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;TargetPage&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/span&gt;

&lt;strong&gt;return&lt;/strong&gt; &lt;strong&gt;true&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;
&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;


&lt;span style="color: rgb(68, 68, 68);"&gt;&lt;i&gt;/**
@hint "Runs when a session ends."
@SessionScope "The Session scope"

@ApplicationScope "The Application scope"
*/&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;public&lt;/strong&gt; &lt;strong&gt;void&lt;/strong&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;function&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;onSessionEnd&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(32, 64, 160);"&gt;required&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;struct&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;SessionScope&lt;/span&gt;, &lt;span style="color: rgb(32, 64, 160);"&gt;struct&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;ApplicationScope&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;=&lt;/span&gt;&lt;span style="color: rgb(32, 64, 160);"&gt;structNew&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/span&gt;

&lt;strong&gt;return&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;
&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;


&lt;span style="color: rgb(68, 68, 68);"&gt;&lt;i&gt;/**
@hint "Runs when a session starts."
*/&lt;/i&gt;&lt;/span&gt;
&lt;strong&gt;public&lt;/strong&gt; &lt;strong&gt;void&lt;/strong&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;function&lt;/span&gt; &lt;span style="color: rgb(32, 64, 160);"&gt;onSessionStart&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;(&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;)&lt;/strong&gt;&lt;/span&gt; &lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;{&lt;/strong&gt;&lt;/span&gt;

&lt;strong&gt;return&lt;/strong&gt;&lt;span style="color: rgb(68, 68, 255);"&gt;;&lt;/span&gt;
&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;

&lt;span style="color: rgb(68, 68, 255);"&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/span&gt;
&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-3862663908068338479?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=XrCHU07DKbU:HHQVpwRL3nI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=XrCHU07DKbU:HHQVpwRL3nI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=XrCHU07DKbU:HHQVpwRL3nI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=XrCHU07DKbU:HHQVpwRL3nI:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=XrCHU07DKbU:HHQVpwRL3nI:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=XrCHU07DKbU:HHQVpwRL3nI:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=XrCHU07DKbU:HHQVpwRL3nI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=XrCHU07DKbU:HHQVpwRL3nI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/XrCHU07DKbU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/3862663908068338479/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=3862663908068338479" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/3862663908068338479?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/3862663908068338479?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/XrCHU07DKbU/applicationcfc-reference-in-cfscript.html" title="Application.cfc Reference in CFScript for Coldfusion 9" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2009/11/applicationcfc-reference-in-cfscript.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUQGQn8zfip7ImA9WxNRFUg.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-5731114536793973147</id><published>2009-09-09T21:18:00.000-07:00</published><updated>2009-09-09T21:35:23.186-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-09T21:35:23.186-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="coldfusion" /><category scheme="http://www.blogger.com/atom/ns#" term="open-source" /><category scheme="http://www.blogger.com/atom/ns#" term="functions" /><title>ListToQuery: My first CFLib submission</title><content type="html">My first submission to CFLib.org has been approved and posted! Check it out: &lt;a href="http://bit.ly/aQuEQ"&gt;CFLib.org - listToQuery&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;It is super-simple and does exactly what it says. I wrote it because I was working on a project which required a list be converted to a query, and I couldn't find any existing UDFs to do so.&lt;br /&gt;&lt;br /&gt;If you find yourself in a similar situation, I highly recommend submitting your solution to &lt;a href="http://www.CFLib.org"&gt;CFLib.org&lt;/a&gt;. It helps everyone! Plus, it gives you priceless bragging rights.&lt;br /&gt;&lt;br /&gt;On a side note: I was working on &lt;a href="http://cfruss.blogspot.com/2009/07/about-couchdb-for-coldfusion.html"&gt;CouchDB for Coldfusion&lt;/a&gt; and ended up spending 3 hours writing a UDF that I planned to submit to CFLib. When I was done, I found &lt;a href="http://www.cflib.org/udf/easySocket"&gt;EasySocket&lt;/a&gt;, which was submitted a week ago and is almost exactly what I wrote! If only I had searched CFLib for "socket" before writing my own UDF. How disappointing...&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-5731114536793973147?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=1z3_vID00_k:mz2KG35oAhs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=1z3_vID00_k:mz2KG35oAhs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=1z3_vID00_k:mz2KG35oAhs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=1z3_vID00_k:mz2KG35oAhs:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=1z3_vID00_k:mz2KG35oAhs:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=1z3_vID00_k:mz2KG35oAhs:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=1z3_vID00_k:mz2KG35oAhs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=1z3_vID00_k:mz2KG35oAhs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/1z3_vID00_k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/5731114536793973147/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=5731114536793973147" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/5731114536793973147?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/5731114536793973147?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/1z3_vID00_k/listtoquery-my-first-cflib-submission.html" title="ListToQuery: My first CFLib submission" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2009/09/listtoquery-my-first-cflib-submission.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8ASX0zfCp7ImA9WxNSF0Q.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-4441426800297857760</id><published>2009-08-31T17:26:00.000-07:00</published><updated>2009-09-01T01:14:08.384-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-09-01T01:14:08.384-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="coldfusion" /><category scheme="http://www.blogger.com/atom/ns#" term="couchdb" /><category scheme="http://www.blogger.com/atom/ns#" term="oodb" /><title>An object-database for Coldfusion</title><content type="html">I've been working on an OODB (object-database) for Coldfusion! It uses CouchDB as the data-storage engine and it is Railo compatible. As far as I know, there is no OODB for Coldfusion yet, so this is fairly cutting-edge. &lt;br /&gt;&lt;br /&gt;So far I've got the basic CRUD working, and it is WAY cool. Instead of data-mapping by hand or even using CF 9's fancy new ORM (object-relational mapping), you just make your object and go like so: &lt;br /&gt;&lt;br /&gt;OODB.save(myObject, 'myObjID'); &lt;br /&gt;&lt;br /&gt;How simple is that?! When you want to populate an object with saved data, you go like so:&lt;br /&gt;&lt;br /&gt;OODB.load(myObject, 'myObjID'); &lt;br /&gt;&lt;br /&gt;This has the potential to save vast amounts of development time by allowing developers to focus almost entirely on object behavior instead of data-mapping. I think OODB will be really useful for projects that have relatively small data storage needs (blogs, wikis, etc). SQL will probably remain the best choice for large datasets though. &lt;br /&gt;&lt;br /&gt;The next big thing I need to do for this project is to make an OODB method to get lists of object IDs based on the data within them. Until then, this code is more cool than it is useful. &lt;br /&gt;&lt;br /&gt;If you'd like to check it out, &lt;a href="http://couchdb.riaforge.org/index.cfm?event=page.svnzip"&gt;download CouchDB for Coldfusion&lt;/a&gt;. You'll find the OODB files in the OODB directory. Don't forget to install &lt;a href="http://couchdb.apache.org"&gt;CouchDB&lt;/a&gt; first! You'll also need to modify document.cfc to get it working. &lt;br /&gt;&lt;br /&gt;WARNING: I don't recommend this for real-world use yet: this is beta code running on beta software. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://twitter.com/russplaysguitar"&gt;Follow me on Twitter&lt;/a&gt; if you'd like to stay up to date on the latest developments. &lt;br /&gt;&lt;br /&gt;Special thanks to &lt;a href="http://mingo.nl/"&gt;Mingo Hagen&lt;/a&gt; and &lt;a href="http://corfield.org"&gt;Sean Corfield&lt;/a&gt; for their continued input and support.&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-4441426800297857760?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=dDqk2oiQAnY:Vwr2KCRvnHc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=dDqk2oiQAnY:Vwr2KCRvnHc:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=dDqk2oiQAnY:Vwr2KCRvnHc:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=dDqk2oiQAnY:Vwr2KCRvnHc:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=dDqk2oiQAnY:Vwr2KCRvnHc:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=dDqk2oiQAnY:Vwr2KCRvnHc:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=dDqk2oiQAnY:Vwr2KCRvnHc:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=dDqk2oiQAnY:Vwr2KCRvnHc:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/dDqk2oiQAnY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/4441426800297857760/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=4441426800297857760" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/4441426800297857760?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/4441426800297857760?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/dDqk2oiQAnY/object-database-for-coldfusion.html" title="An object-database for Coldfusion" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2009/08/object-database-for-coldfusion.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUAMR3wzcCp7ImA9WxJUE0o.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-3475248060271122971</id><published>2009-07-11T22:24:00.000-07:00</published><updated>2009-07-11T22:49:46.288-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-07-11T22:49:46.288-07:00</app:edited><title>CouchDB for Coldfusion</title><content type="html">Download the project here: &lt;a href="http://couchdb.riaforge.org/"&gt;CouchDB for Coldfusion on RIAForge&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;A recent Twitter by &lt;a href="http://twitter.com/mjhagen"&gt;Mingo Hagen&lt;/a&gt; inspired me to start my first open-source project on RIAForge: &lt;a href="http://couchdb.riaforge.org/"&gt;CouchDB for Coldfusion&lt;/a&gt;. This project is basically a CFC wrapper for CouchDB operations.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://couchdb.apache.org"&gt;CouchDB&lt;/a&gt; is a fairly new concept. It is a document-oriented database that uses a RESTful HTTP/JSON API for interactions. You should read more about it yourself, but here are just a few reasons why it is cool:&lt;br /&gt;* Schema-free storage&lt;br /&gt;* Data is stored as JSON&lt;br /&gt;* All document revisions are saved&lt;br /&gt;* You can interact with the DB directly through the browser via the built-in API&lt;br /&gt;* Built-in web-based admin&lt;br /&gt;&lt;br /&gt;&lt;a href="http://couchdb.riaforge.org/"&gt;CouchDB for Coldfusion&lt;/a&gt; is still in the early stages, but already I find it is an easy way to interact with &lt;a href="http://couchdb.apache.org"&gt;CouchDB&lt;/a&gt;. I'll be using this project as a way to learn more about CouchDB. If you'd like to contribute please let me know and I'll give you SVN access.&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-3475248060271122971?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=XJeCRsHMN7s:0fb9eA1sCQI:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=XJeCRsHMN7s:0fb9eA1sCQI:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=XJeCRsHMN7s:0fb9eA1sCQI:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=XJeCRsHMN7s:0fb9eA1sCQI:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=XJeCRsHMN7s:0fb9eA1sCQI:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=XJeCRsHMN7s:0fb9eA1sCQI:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=XJeCRsHMN7s:0fb9eA1sCQI:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=XJeCRsHMN7s:0fb9eA1sCQI:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/XJeCRsHMN7s" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/3475248060271122971/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=3475248060271122971" title="12 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/3475248060271122971?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/3475248060271122971?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/XJeCRsHMN7s/about-couchdb-for-coldfusion.html" title="CouchDB for Coldfusion" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>12</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2009/07/about-couchdb-for-coldfusion.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0IAQ38-cSp7ImA9WxJXFU8.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-8089259607639238614</id><published>2009-06-08T23:00:00.001-07:00</published><updated>2009-06-08T23:39:02.159-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-08T23:39:02.159-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="coldfusion" /><category scheme="http://www.blogger.com/atom/ns#" term="db4o" /><category scheme="http://www.blogger.com/atom/ns#" term="cfcs" /><title>db4o in Coldfusion, anyone?</title><content type="html">&lt;a href="http://www.db4o.com/"&gt;DB4O&lt;/a&gt; is an object database. It allows you to store objects (at whatever state they happen to be in) and retrieve them for use later.&lt;br /&gt;This can be really useful if:&lt;br /&gt;1. You want a simple, quick way to store data&lt;br /&gt;2. You want to create an application that can run without an SQL database&lt;br /&gt;3. You hate SQL (or SQL hates you)&lt;br /&gt;&lt;br /&gt;I did some research and found a guy named Todd Sharp who &lt;a href="http://cfsilence.com/blog/client/index.cfm/2008/5/28/More-CFJava--Compiling-Classes-And-Persisting-Objects"&gt;installed db4o for Coldfusion&lt;/a&gt;. He hasn't released his code, so that got me thinking: "Hey, I know some Java and I know how to install Java classes in Coldfusion. Why don't I do it myself?"&lt;br /&gt;&lt;br /&gt;So I tried it, and it worked! But... I've run into a couple serious issues that I can't seem to figure out.&lt;br /&gt;&lt;br /&gt;Firstly, after about four or five "save" operations, the database becomes corrupt. No matter how simple the objects are, this always happens. If I can't figure this out, my experiment is basically a failure.&lt;br /&gt;&lt;br /&gt;Second, I cannot store CFCs. If I try, my CPU goes full throttle until I kill Coldfusion. I'm guessing this is due to the underlying complexity of CFCs, but it sure puts a damper on things. I've been using CF 8's JSON functions to "simplify" my Coldfusion objects like so: DeserializeJSON(SerializeJSON(myCFCinstance))&lt;br /&gt;&lt;br /&gt;Does anyone else have any experience with db4o? I'll provide my source code and installation instructions to anyone who wants to try it.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.taragana.com/index.php/archive/how-to-learn-db40-java-and-net-object-database-in-5-minutes/"&gt;Here is a great tutorial for db4o&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;My system specs:&lt;br /&gt;Java version: Open JDK 1.6.0_0&lt;br /&gt;CF Version: 8,0,1,195765   &lt;br /&gt;OS: Ubuntu 9.04 (2.6.28-11-generic)&lt;br /&gt;Hardware: Dell Vostro 1000&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-8089259607639238614?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=k5lOm--z7RI:M93keGY-mZk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=k5lOm--z7RI:M93keGY-mZk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=k5lOm--z7RI:M93keGY-mZk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=k5lOm--z7RI:M93keGY-mZk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=k5lOm--z7RI:M93keGY-mZk:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=k5lOm--z7RI:M93keGY-mZk:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=k5lOm--z7RI:M93keGY-mZk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=k5lOm--z7RI:M93keGY-mZk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/k5lOm--z7RI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/8089259607639238614/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=8089259607639238614" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/8089259607639238614?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/8089259607639238614?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/k5lOm--z7RI/db4o-in-coldfusion-anyone.html" title="db4o in Coldfusion, anyone?" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>4</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2009/06/db4o-in-coldfusion-anyone.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0EGRXc7eSp7ImA9WxVWE0k.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-8539403790059112999</id><published>2009-01-10T22:07:00.001-08:00</published><updated>2009-02-22T15:33:44.901-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-02-22T15:33:44.901-08:00</app:edited><title>Copy to Clipboard SWF button (cross browser compatible)</title><content type="html">Since Flash 10, there have been security enhancements that prevent data being copied to the clipboard without an event being initiated by the user.&lt;br /&gt;See: &lt;a href="http://blogs.pcmag.com/securitywatch/2008/09/adobe_to_plug_clipboardjacking.php"&gt;http://blogs.pcmag.com/securitywatch/2008/09/adobe_to_plug_clipboardjacking.php&lt;/a&gt; and &lt;a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer10_uia_requirements.html"&gt;http://www.adobe.com/devnet/flashplayer/articles/fplayer10_uia_requirements.html&lt;/a&gt;).&lt;br /&gt;This means that Jeffothy’s Keyings &lt;a href="http://www.jeffothy.com/weblog/clipboard-copy"&gt;Clipboard Copy&lt;/a&gt; trick no longer works :-(&lt;br /&gt;&lt;br /&gt;NEW DEVELOPMENT: jhuckaby provided a better solution. Check it out:&lt;br /&gt;&lt;a href="http://code.google.com/p/zeroclipboard/"&gt;Zero Clipboard&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="filter:alpha(opacity=50);-moz-opacity:.50;"&gt;&lt;br /&gt;&lt;br /&gt;I've developed a simple new way to get the job done.&lt;br /&gt;My method uses a basic flash button that says "COPY" on it. Clicking it will copy to the clipboard any text provided via FlashVars parameters in the object/embed tags. The flash file then executes javascript as a callback function. This javascript is also provided via FlashVars.&lt;br /&gt;&lt;br /&gt;&lt;!--&lt;br /&gt;In the example below, I've provided a dummy textbox as a way of informing the user what will be copied to the clipboard. The text in the textbox is not the text being copied.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Example&lt;/b&gt;&lt;br /&gt;&lt;iframe style="border: 0px none ; width: 300px; height: 30px;" src="http://www.royalgrafix.net/copybutton.html"&gt;&lt;/iframe&gt;&lt;br /&gt;--&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Actionscript 2.0 Code&lt;/b&gt;&lt;br /&gt;&lt;div style="border: 1px solid rgb(77, 232, 240); background-color: rgb(228, 247, 252); font-family: Courier New,Courier,monospace;"&gt;&lt;br /&gt;on (release) {&lt;br /&gt; System.setClipboard(_level0.txtToCopy);&lt;br /&gt; getURL('javascript:'+_level0.js+';');&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;HTML/JS Code&lt;/b&gt;&lt;br /&gt;&lt;div style="border: 1px solid rgb(77, 232, 240); background-color: rgb(228, 247, 252); font-family: Courier New,Courier,monospace;"&gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;function alertUser(){&lt;br /&gt;alert('copied');&lt;br /&gt;}&lt;br /&gt;--&amp;gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;div style="border:solid 1px black; width:60px; height:20px;"&amp;gt;&lt;br /&gt;&amp;lt;object width="60" height="20"&amp;gt;&lt;br /&gt;&amp;lt;PARAM NAME=FlashVars VALUE="txtToCopy=cfRuss.blogspot.com&amp;amp;js=alertUser()"&amp;gt;&lt;br /&gt;&amp;lt;param name="movie" value="copyButton.swf"&amp;gt;&lt;br /&gt;&amp;lt;embed src="copyButton.swf" flashvars="txtToCopy=cfRruss.blogspot.com&amp;amp;js=alertUser()" width="60" height="20"&amp;gt;&lt;br /&gt;&amp;lt;/embed&amp;gt;&lt;br /&gt;&amp;lt;/object&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Download&lt;/span&gt; the required flash file here: &lt;a href="http://www.mediafire.com/?ogt1uoyyl1m"&gt;copyButton.swf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;FlashVars&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;txtToCopy&lt;/span&gt; - the text that you wish to copy to the clipboard&lt;br /&gt;&lt;span style="font-style: italic;"&gt;js&lt;/span&gt; - javascript to be executed upon clicking the COPY button&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;Note&lt;br /&gt;&lt;/span&gt;&lt;span&gt;You may&lt;/span&gt;&lt;span&gt; get &lt;/span&gt;&lt;span&gt;a warning dialog from your flash player if you try to run this script locally.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span&gt;This dialog will not appear when you run the script on your server.&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-8539403790059112999?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=cExYNhXXgkU:QHWAD3WDRwQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=cExYNhXXgkU:QHWAD3WDRwQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=cExYNhXXgkU:QHWAD3WDRwQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=cExYNhXXgkU:QHWAD3WDRwQ:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=cExYNhXXgkU:QHWAD3WDRwQ:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=cExYNhXXgkU:QHWAD3WDRwQ:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=cExYNhXXgkU:QHWAD3WDRwQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=cExYNhXXgkU:QHWAD3WDRwQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/cExYNhXXgkU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/8539403790059112999/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=8539403790059112999" title="25 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/8539403790059112999?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/8539403790059112999?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/cExYNhXXgkU/copy-to-clipboard-swf-button-cross.html" title="Copy to Clipboard SWF button (cross browser compatible)" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>25</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2009/01/copy-to-clipboard-swf-button-cross.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkEMRnw8fCp7ImA9WxZWGUw.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-7802114167925960496</id><published>2008-03-18T23:25:00.000-07:00</published><updated>2008-03-19T00:11:27.274-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-03-19T00:11:27.274-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="coldfusion" /><category scheme="http://www.blogger.com/atom/ns#" term="cfcs" /><category scheme="http://www.blogger.com/atom/ns#" term="server management" /><title>CFCs vs. Spaghetti Code: Round 1, Fight!</title><content type="html">Ever inherit a batch of code so disturbing that you just have to rewrite the whole damn thing? Well, I did, and so far... ehh.&lt;br /&gt;&lt;br /&gt;The CF powers-that-be tout CFCs as being great because they promote reuse of code. While this is quite true, the overlords of Coldfusion have neglected to mention in any of their documentation just how to go about reusing CFCs &lt;span style="font-style: italic;"&gt;well&lt;/span&gt;. Sure, you can CFINVOKE methods from it or instantiate it with CreateObject() or access it as a webservice... blah, blah, blah. What I want to know is, &lt;span style="font-weight: bold;"&gt;why does my CFC cripple the server under high-load?&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;Yesterday, after spending a month rewriting our shopping cart as a CFC (hey, it's complicated alright?), I was finally able to post it and see what happens. After about an hour, JRun started throwing funny null errors and ran up queued requests like there was no tomorrow. Yikes! I quickly put the old cart back up, and everything was cool again. Okay... so what happened?&lt;br /&gt;&lt;br /&gt;I spent most of today investigating. Although CFCs can act like objects, my CFC is stateless. It has no properties of its own and for all intents and purposes is essentially just a nice way to keep my cart code in one place. Every time a method from it is called, it must be passed some identifying variables. I had considered writing it as a state-based CFC and storing unique copies in each user's session scope, but I figured my server couldn't afford to store complex objects in it's memory for up to half an hour at a time. Plus, erasing a user's cart every time their session times out is actually a step down from the old cart code, which uses cookies to store cart info "forever."&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span&gt;So, the methods in my CFC are being accessed by individual CFINVOKE tags, about 4-7 per page. I found a comment on some blog somewhere about how it is better to instantiate the component and then access methods from the instantiated object. Although my CFC is stateless, I thought, hey why not? ... And that turned out even worse. The server lasted about 5 minutes before junking out.&lt;br /&gt;&lt;br /&gt;Well... thats all I could come up with for this round. I hate to say it but...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;The winner of Round 1 is: Spaghetti code!&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;Ugh, so what next? I found another random blog that says that you can store stateless CFCS in the application scope. I'm gonna give it a shot tomorrow and see what happens. I'm a little concerned because I saw a forum post by Mr. Camden explaining how CFCs in the application scope became unstable under high-stress. Hmmmm... mind you this post was dated back in 2003 and he was expressing how it may be fixed soon. So... we'll see!&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-7802114167925960496?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=e0t296P-APU:Ej4DzuI1qXg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=e0t296P-APU:Ej4DzuI1qXg:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=e0t296P-APU:Ej4DzuI1qXg:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=e0t296P-APU:Ej4DzuI1qXg:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=e0t296P-APU:Ej4DzuI1qXg:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=e0t296P-APU:Ej4DzuI1qXg:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=e0t296P-APU:Ej4DzuI1qXg:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=e0t296P-APU:Ej4DzuI1qXg:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/e0t296P-APU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/7802114167925960496/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=7802114167925960496" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/7802114167925960496?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/7802114167925960496?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/e0t296P-APU/cfcs-vs-spaghetti-code-round-1-fight.html" title="CFCs vs. Spaghetti Code: Round 1, Fight!" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2008/03/cfcs-vs-spaghetti-code-round-1-fight.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DU8DSHY_cSp7ImA9WxZWGU0.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-9026782992673528587</id><published>2008-03-18T23:08:00.000-07:00</published><updated>2008-03-18T23:24:39.849-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-03-18T23:24:39.849-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="coldfusion" /><category scheme="http://www.blogger.com/atom/ns#" term="bugs" /><category scheme="http://www.blogger.com/atom/ns#" term="functions" /><title>Round()... and why I sometimes hate my life.</title><content type="html">I came across a frustrating Coldfusion MX 6.1 bug today. When attempting to use the Round() function, my numbers were not rounding correctly. Instead of rounding up at .5, they were being rounded down. Uhh... wtf, cf?&lt;br /&gt;&lt;br /&gt;I spent about an hour or so debugging the issue, and sadly, I still cannot say for certain what the problem was. My best guess is that one of the variables in my expression may not have been of type numeric (although it held a numeric value), which could've somehow caused Coldfusion to get confused when performing the Round() function.&lt;br /&gt;&lt;br /&gt;After this thought entered my mind, I immediately encapsulated the expression in a Val() function and "presto!", Round() started working again and I began to reconcile my feelings towards the computer. I had wasted so much time on something so moronic that I didn't feel the need to really fish around for the exact reason WHY Round() stopped working right, I was just happy that it was over with.&lt;br /&gt;&lt;br /&gt;Just thinking about it gives me a headache again!&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-9026782992673528587?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=UR3D_OsM1zQ:bP-w8Xps8bQ:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=UR3D_OsM1zQ:bP-w8Xps8bQ:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=UR3D_OsM1zQ:bP-w8Xps8bQ:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=UR3D_OsM1zQ:bP-w8Xps8bQ:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=UR3D_OsM1zQ:bP-w8Xps8bQ:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=UR3D_OsM1zQ:bP-w8Xps8bQ:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=UR3D_OsM1zQ:bP-w8Xps8bQ:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=UR3D_OsM1zQ:bP-w8Xps8bQ:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/UR3D_OsM1zQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/9026782992673528587/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=9026782992673528587" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/9026782992673528587?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/9026782992673528587?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/UR3D_OsM1zQ/round-and-why-i-sometimes-hate-my-life.html" title="Round()... and why I sometimes hate my life." /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2008/03/round-and-why-i-sometimes-hate-my-life.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkcAQXwyfip7ImA9WxZSEUs.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-5747334701520321803</id><published>2008-01-24T00:14:00.000-08:00</published><updated>2008-01-24T00:40:40.296-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-01-24T00:40:40.296-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="cfcs" /><category scheme="http://www.blogger.com/atom/ns#" term="email" /><category scheme="http://www.blogger.com/atom/ns#" term="server management" /><title>MX 6.1 Issue: CFPOP vs. open-source IMAP alternatives... and why you may end up with CFX_POP3</title><content type="html">Today I spent a large portion of my time fighting a losing battle against bugs. Bugs in Java, bugs in Coldfusion MX 6.1, bugs in the open-source scripts I tried to use... ahhh! Finally I broke down and begged the boss to just buy CFX_POP3 for $20. Let me explain my dilemma:&lt;br /&gt;&lt;br /&gt;My goal: A script that will automatically remove email addresses from our mailing list if we receive a "recipient does not exist" response. This means not only getting a list of messages in the inbox, but also parsing the message body to find the email address that will be removed.&lt;br /&gt;&lt;br /&gt;First try: &amp;lt;CFPOP&gt; . This is Coldfusion's built in POP email tag. In theory, you can handle all the normal email functions with it. In practice, if you try to access a message that is in UTF-7 (rather than UTF-8, the current standard), you'll get an error message. This isn't Coldfusion's fault- rather, UTF-7 is no longer supported in Java. There are a couple of .jar's out there that should enable Java to handle UTF-7, but none of them worked for me. &lt;br /&gt;&lt;br /&gt;Second attempt: IMAP via open-source CFCs. I tried &lt;a href="http://sourceforge.net/projects/cfimap-cfc/"&gt;cfimap&lt;/a&gt; AND &lt;a href="http://www.opensourcecf.com/1/2006/12/ImapCFC-Update.cfm"&gt;imap.cfc&lt;/a&gt;, both of which were not compatible with MX 6.1, and no amount of debugging got me anywhere.&lt;br /&gt;&lt;br /&gt;My solution: &lt;a href="http://store.newmediadevelopment.net/cfx_tag.cfm?ProductID=16"&gt;CF_POP3&lt;/a&gt; For $20, I should've just gone for it in the first place. It has some extra features that CFPOP lacks, but what counts is that it supports UTF-7. &lt;br /&gt;&lt;br /&gt;Thank goodness I'm done with debugging other people's open-source code. For now.&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-5747334701520321803?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=Rr8Rfm-AMoM:0WtJQGO-Ip4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=Rr8Rfm-AMoM:0WtJQGO-Ip4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=Rr8Rfm-AMoM:0WtJQGO-Ip4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=Rr8Rfm-AMoM:0WtJQGO-Ip4:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=Rr8Rfm-AMoM:0WtJQGO-Ip4:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=Rr8Rfm-AMoM:0WtJQGO-Ip4:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=Rr8Rfm-AMoM:0WtJQGO-Ip4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=Rr8Rfm-AMoM:0WtJQGO-Ip4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/Rr8Rfm-AMoM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/5747334701520321803/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=5747334701520321803" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/5747334701520321803?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/5747334701520321803?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/Rr8Rfm-AMoM/mx-61-issue-cfpop-vs-open-source-imap.html" title="MX 6.1 Issue: CFPOP vs. open-source IMAP alternatives... and why you may end up with CFX_POP3" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2008/01/mx-61-issue-cfpop-vs-open-source-imap.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEEER3syeyp7ImA9WxZTE0o.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-8764581267590618725</id><published>2008-01-14T20:12:00.000-08:00</published><updated>2008-01-14T20:50:06.593-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-01-14T20:50:06.593-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql" /><category scheme="http://www.blogger.com/atom/ns#" term="server management" /><title>Tip: Speed up your SQL database with indexing</title><content type="html">When your database starts to grow, you'll find that your queries take longer and longer to complete. This is because they have to search more and more rows. This slowdown can affect your entire website or application as the slow queries inevitably occupy more simultaneous threads. You can even experience temporary outages if slow queries occupy all your threads, forcing every query request to wait!&lt;br /&gt;&lt;br /&gt;There are numerous ways to fix this:&lt;br /&gt;1. Code conservatively so that your query the database as little as possible.&lt;br /&gt;2. Include primary keys in your WHERE and JOIN-ON clauses.&lt;br /&gt;3. Run a Query Analyzer tool on slow queries to find out what parts of your query are slowest, and then...&lt;br /&gt;4. Create indexes on columns that are frequently used in WHERE or JOIN clauses.&lt;br /&gt;&lt;br /&gt;Main points when indexing:&lt;br /&gt;1. Don't index columns where a large percentage of rows haveh the same values. This defeats the whole purpose. &lt;br /&gt;2. Don't index large varchar columns. Again, this will not increase performance.&lt;br /&gt;3. Don't index every column. Just index the ones used to identify unique rows in a large number of WHERE and JOIN clauses.&lt;br /&gt;4. Go read some more in-depth documentation on indexing. This is just a general overview. Here is a decent article regarding Clustered VS. Non-Clustered Indexes: &lt;a href="http://www.daemon.com.au/index.cfm?objectid=ABF13B5F-EA69-0EC7-F7FAD8ABCA1E04FD"&gt;daemon: Database Indexing Strategies for FarCry&lt;/a&gt;. (FYI Farcry is a CMS, but the DB principals are the same)&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;In the case of one website I'm working on, my predecessor chose to ignore Primary Keys and generate his own uniquely identifying numbers. These numbers are used in many queries, but none of the columns were indexed. After applying an index to these columns, the entire website saw a significant performance boost. In fact, this has helped reduce the number of SQL Deadlocks by minimizing row-lock time.&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-8764581267590618725?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=8TZ1Gv3ohh4:ekv1tzbJvKs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=8TZ1Gv3ohh4:ekv1tzbJvKs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=8TZ1Gv3ohh4:ekv1tzbJvKs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=8TZ1Gv3ohh4:ekv1tzbJvKs:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=8TZ1Gv3ohh4:ekv1tzbJvKs:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=8TZ1Gv3ohh4:ekv1tzbJvKs:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=8TZ1Gv3ohh4:ekv1tzbJvKs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=8TZ1Gv3ohh4:ekv1tzbJvKs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/8TZ1Gv3ohh4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/8764581267590618725/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=8764581267590618725" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/8764581267590618725?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/8764581267590618725?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/8TZ1Gv3ohh4/tip-speed-up-your-sql-database-with.html" title="Tip: Speed up your SQL database with indexing" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2008/01/tip-speed-up-your-sql-database-with.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEMGR3k9eCp7ImA9WxZTEE8.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-8557167731969586301</id><published>2008-01-10T20:20:00.000-08:00</published><updated>2008-01-10T20:40:26.760-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-01-10T20:40:26.760-08:00</app:edited><title>Query of Queries - "unsupported type conversion error" in MX 6.1</title><content type="html">I just ran into this frustrating bug yesterday. When working with Query of Queries you (&amp;lt;cfquery dtype="query"&gt;) you may get the error, "unsupported type conversion error." After doing some research I found out that the reason this occurs is because Coldfusion attempts to automatically determine the data types for columns in QofQ. If it gets it wrong and you try to use the QofQ in such a way that conflicts with the data-type Coldfusion assigned, you will get this error.&lt;br /&gt;&lt;br /&gt;To remedy this you must be sure that when you create the QofQ, the data in your columns LOOKS like the data types you think they should be. For example, if you want Coldfusion to assign the varchar datatype to a column, you should initially populate the column with at least one cell that contains a non-numeric character. If a column contains only integers, Coldfusion will assign an "int" data type to it. I don't know the details of how Coldfusion determines a "date" data type for QofQ, but I'm sure you'll figure it out.&lt;br /&gt;&lt;br /&gt;I just find it helpful to know that this "bug" exists so that when I get an "unsupported type conversion error" I'll know what is causing it.&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-8557167731969586301?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=qt2rXcZCR-0:nPBy96YBIJg:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=qt2rXcZCR-0:nPBy96YBIJg:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=qt2rXcZCR-0:nPBy96YBIJg:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=qt2rXcZCR-0:nPBy96YBIJg:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=qt2rXcZCR-0:nPBy96YBIJg:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=qt2rXcZCR-0:nPBy96YBIJg:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=qt2rXcZCR-0:nPBy96YBIJg:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=qt2rXcZCR-0:nPBy96YBIJg:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/qt2rXcZCR-0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/8557167731969586301/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=8557167731969586301" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/8557167731969586301?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/8557167731969586301?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/qt2rXcZCR-0/query-of-queries-unsupported-type.html" title="Query of Queries - &quot;unsupported type conversion error&quot; in MX 6.1" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2008/01/query-of-queries-unsupported-type.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ak8NRX46cCp7ImA9WB9aF0o.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-6298582282200319702</id><published>2008-01-07T23:29:00.000-08:00</published><updated>2008-01-07T23:54:54.018-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-01-07T23:54:54.018-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql" /><category scheme="http://www.blogger.com/atom/ns#" term="bugs" /><category scheme="http://www.blogger.com/atom/ns#" term="ms sql 2000" /><title>"IN operator" and Null values--a bug in MS SQL 2000</title><content type="html">Just discovered a bug in MS SQL 2000 today. When performing a query with the &lt;span style="font-weight:bold;"&gt;IN operator&lt;/span&gt;, you'll need to make sure that the associated &lt;span style="font-weight:bold;"&gt;value list&lt;/span&gt; does not contain any null values. If it does, the expression will always return false. The fix for this is simple enough: simply add &lt;span style="font-weight:bold;"&gt;AND column IS NOT NULL&lt;/span&gt; to your SELECT sub-query.&lt;br /&gt;&lt;br /&gt;For example, the following SQL query:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;SELECT intelligence_rating&lt;br /&gt;FROM aliens&lt;br /&gt;WHERE home_world IN (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SELECT name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FROM worlds&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHERE class = 'M'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;Would need to be changed to:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;SELECT intelligence_rating&lt;br /&gt;FROM aliens&lt;br /&gt;WHERE home_world IN (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;SELECT name&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;FROM worlds&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHERE class = 'M'&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AND name IS NOT NULL&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;)&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;If there were any worlds that did not have a value in the &lt;span style="font-weight:bold;"&gt;name&lt;/span&gt; column. Good thing we can safely assume that all worlds have names. For now... (queue scary music?)&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-6298582282200319702?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=0eX7c9YBkF8:e6WgUA4w2T8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=0eX7c9YBkF8:e6WgUA4w2T8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=0eX7c9YBkF8:e6WgUA4w2T8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=0eX7c9YBkF8:e6WgUA4w2T8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=0eX7c9YBkF8:e6WgUA4w2T8:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=0eX7c9YBkF8:e6WgUA4w2T8:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=0eX7c9YBkF8:e6WgUA4w2T8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=0eX7c9YBkF8:e6WgUA4w2T8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/0eX7c9YBkF8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/6298582282200319702/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=6298582282200319702" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/6298582282200319702?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/6298582282200319702?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/0eX7c9YBkF8/ms-sql-2000-bug-where-value-in-select.html" title="&quot;IN operator&quot; and Null values--a bug in MS SQL 2000" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2008/01/ms-sql-2000-bug-where-value-in-select.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkMMRnwzfip7ImA9WB9aFE8.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-1478529915663678510</id><published>2008-01-03T19:40:00.000-08:00</published><updated>2008-01-03T21:28:07.286-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-01-03T21:28:07.286-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="coldfusion" /><category scheme="http://www.blogger.com/atom/ns#" term="cfcs" /><category scheme="http://www.blogger.com/atom/ns#" term="undocumented" /><title>Passing multiple same-named arguments to a CFC via GET or POST</title><content type="html">&lt;h1 style="color: white; font-size: 1px; display: none; visibility: hidden; margin:0px;padding:0px;"&gt;functions,  cfcs, components, cffunction, cfcompnent, cfargument, lists, tricks, secrets, unknown, tips, interesting, uncommon, undocumented&lt;/h1&gt;I discovered a useful undocumented behavior of Coldfusion components today! It turns out that if you define the value of a named argument more than once in a remote method call (via GET or POST), those values will be passed as a comma-delimited list. This behavior is different than how Coldfusion would treat argument multiples in every other function call--normally, Coldfusion either overwrites arguments with their last defined value or throws an error.&lt;br /&gt;&lt;br /&gt;Here is an example:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;example.cfc&lt;/b&gt;&lt;br /&gt;&lt;div style="padding-left: 16px; padding-right:16px;background-color: rgb(238, 238, 238); font-family: courier new;"&gt;&lt;br /&gt;&lt;span style='color:#900'&gt;&amp;#60;&amp;#99;&amp;#102;&amp;#99;&amp;#111;&amp;#109;&amp;#112;&amp;#111;&amp;#110;&amp;#101;&amp;#110;&amp;#116;&amp;#62;&lt;/span&gt;&lt;br /&gt;&amp;#9;&lt;span style='color:#900'&gt;&amp;#60;&amp;#99;&amp;#102;&amp;#102;&amp;#117;&amp;#110;&amp;#99;&amp;#116;&amp;#105;&amp;#111;&amp;#110;&amp;#32;&amp;#110;&amp;#97;&amp;#109;&amp;#101;&amp;#61;&amp;#34;&amp;#116;&amp;#101;&amp;#115;&amp;#116;&amp;#34;&amp;#32;&amp;#97;&amp;#99;&amp;#99;&amp;#101;&amp;#115;&amp;#115;&amp;#61;&amp;#34;&amp;#114;&amp;#101;&amp;#109;&amp;#111;&amp;#116;&amp;#101;&amp;#34;&amp;#32;&amp;#114;&amp;#101;&amp;#116;&amp;#117;&amp;#114;&amp;#110;&amp;#116;&amp;#121;&amp;#112;&amp;#101;&amp;#61;&amp;#34;&amp;#97;&amp;#110;&amp;#121;&amp;#34;&amp;#62;&lt;/span&gt;&lt;br /&gt;&amp;#9;&amp;#9;&lt;span style='color:#900'&gt;&amp;#60;&amp;#99;&amp;#102;&amp;#100;&amp;#117;&amp;#109;&amp;#112;&amp;#32;&amp;#118;&amp;#97;&amp;#114;&amp;#61;&amp;#34;&amp;#35;&amp;#97;&amp;#114;&amp;#103;&amp;#117;&amp;#109;&amp;#101;&amp;#110;&amp;#116;&amp;#115;&amp;#35;&amp;#34;&amp;#62;&lt;/span&gt;&lt;br /&gt;&amp;#9;&lt;span style='color:#900'&gt;&amp;#60;&amp;#47;&amp;#99;&amp;#102;&amp;#102;&amp;#117;&amp;#110;&amp;#99;&amp;#116;&amp;#105;&amp;#111;&amp;#110;&amp;#62;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Then simply type something like this as a url to call the above component: http://www.yourdomain.com/&lt;br&gt;&lt;b&gt;example.cfc?method=test&amp;a=1&amp;a=2&amp;a=oh&amp;a=3&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This is what you'll see:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_3XSk2C5jhyM/R33CE76tjmI/AAAAAAAAAAU/z7aGQDyzrNE/s1600-h/samename.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_3XSk2C5jhyM/R33CE76tjmI/AAAAAAAAAAU/z7aGQDyzrNE/s200/samename.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5151486938840927842" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;kinda cool, huh? &lt;br /&gt;&lt;br /&gt;I've tested this behavior in Coldfusion MX 6.1 and MX 7. If anyone out there would like to test it on MX 8 and let me know how it works, that would be great!&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-1478529915663678510?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=g36NfzPyiMM:KNCK48Huq_4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=g36NfzPyiMM:KNCK48Huq_4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=g36NfzPyiMM:KNCK48Huq_4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=g36NfzPyiMM:KNCK48Huq_4:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=g36NfzPyiMM:KNCK48Huq_4:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=g36NfzPyiMM:KNCK48Huq_4:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=g36NfzPyiMM:KNCK48Huq_4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=g36NfzPyiMM:KNCK48Huq_4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/g36NfzPyiMM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/1478529915663678510/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=1478529915663678510" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/1478529915663678510?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/1478529915663678510?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/g36NfzPyiMM/passing-multiple-same-named-arguments.html" title="Passing multiple same-named arguments to a CFC via GET or POST" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_3XSk2C5jhyM/R33CE76tjmI/AAAAAAAAAAU/z7aGQDyzrNE/s72-c/samename.jpg" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2008/01/passing-multiple-same-named-arguments.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0INSXg7fSp7ImA9WB9bEUk.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-4182415581370151474</id><published>2007-10-28T02:10:00.001-07:00</published><updated>2007-12-20T01:06:38.605-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-12-20T01:06:38.605-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="server management" /><title>Shared Hosting Security Issues</title><content type="html">I'm so frustrated with the web host provider for my newest independent project. I accidentally discovered a serious security issue and have been trying to get them to fix it, but they haven't even been getting back to me. It shouldn't be MY responsibility to try to get them to fix THEIR problem! &lt;br /&gt;&lt;br /&gt;Long story short, the moral is: don't trust shared hosting security! And NEVER store sensitive customer information (ssn's, credit card info, etc) on a shared database server.&lt;br /&gt;&lt;br /&gt;And watch where you buy stuff online. Personally, I think paypal is the ONLY way to do it.&lt;br /&gt;&lt;br /&gt;Sigh.&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-4182415581370151474?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=GROPvOs1-9k:INrCDnjcyyc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=GROPvOs1-9k:INrCDnjcyyc:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=GROPvOs1-9k:INrCDnjcyyc:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=GROPvOs1-9k:INrCDnjcyyc:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=GROPvOs1-9k:INrCDnjcyyc:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=GROPvOs1-9k:INrCDnjcyyc:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=GROPvOs1-9k:INrCDnjcyyc:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=GROPvOs1-9k:INrCDnjcyyc:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/GROPvOs1-9k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/4182415581370151474/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=4182415581370151474" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/4182415581370151474?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/4182415581370151474?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/GROPvOs1-9k/shared-hosting-security-issues.html" title="Shared Hosting Security Issues" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2007/10/shared-hosting-security-issues.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0EFQHc4eCp7ImA9WB9bEUk.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-727006038904747859</id><published>2007-10-14T01:14:00.000-07:00</published><updated>2007-12-20T01:06:51.930-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-12-20T01:06:51.930-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="coldfusion" /><category scheme="http://www.blogger.com/atom/ns#" term="server management" /><title>Make your own remote server monitor!</title><content type="html">Site going down in the middle of the night? Here is how to set up your own remote server monitor that will email your host support team (and even send you a text message!):&lt;br /&gt;&lt;br /&gt;1. Install Coldfusion developer (it's free!) on one your development machines. It cannot go on the same server that is being monitored because if it goes down, so will the monitor (duh.) This step is easier said than done, but if you already have Coldfusion installed on a local machine then you don't have to worry about it.&lt;br /&gt;&lt;br /&gt;2. Set up a mail server that coldfusion can access with the cfmail tag. The mail server cannot be located on the server that you are monitoring!&lt;br /&gt;&lt;br /&gt;3. Copy &amp; modify this simple code:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;br /&gt;&amp;lt;!--- ServerMonitor.cfm ---&gt; &lt;br /&gt;Testing the server...&lt;br /&gt;&amp;lt;cftry&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;cfhttp url="http://www.yoursite.com" throwOnError="yes" redirect="no"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;Success!&lt;br /&gt;  &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;cfcatch&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Monitor failure!&lt;br /&gt;    &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;!--- send email to host support team ---&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cfmail to="support@yourhost.com" from="youremail@yourOTHERhost.com" subject="Server Monitor Failure"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Our server, (INSERT YOUR SERVER NAME HERE), may be having troubles. Could you please check on it? Thank you!&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/cfmail&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;!--- send text message to you ---&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cfmail to="SEE STEP 4" from="youremail@yourOTHERhost.com" subject="Server Monitor Failure"&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Our server, (INSERT YOUR SERVER NAME HERE), may be having troubles. Could you please check on it? Thank you!&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/cfmail&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/cfcatch&gt;&lt;br /&gt;&amp;lt;/cftry&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4. Did you know you can send text messages with simple emails? You do now! Here is a list of providers and associated text-message email addresses:&lt;br /&gt;&lt;br /&gt;AT&amp;T Wireless&lt;br /&gt;NUMBER@mmode.com&lt;br /&gt;&lt;br /&gt;Cingular&lt;br /&gt;NUMBER@mms.mycingular.com&lt;br /&gt;&lt;br /&gt;Sprint&lt;br /&gt;NUMBER@pm.sprint.com&lt;br /&gt;&lt;br /&gt;T-Mobile&lt;br /&gt;NUMBER@tmomail.net&lt;br /&gt;&lt;br /&gt;Verizon&lt;br /&gt;NUMBER@vzwpix.com&lt;br /&gt;&lt;br /&gt;5. Schedule ServerMonitor.cfm (the above code) to run automatically every half hour (or something like that) in Coldfusion Administrator (or with Windows Task Sceduler). I say every half hour because if the server goes down you don't want to be recieving a million text messages or have your host support team get pissed at you. (p.s. it might be best to disable the text messaging option if you don't get unlimited text messages)&lt;br /&gt;&lt;br /&gt;Now just remember to leave the machine on all night. That's it! No more worrying about checking your busy e-commerce site in the middle of the night, no more calling host support at 2am asking them to reboot the server :)&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-727006038904747859?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=EMKCf3bFEOE:aKr1Fo82xew:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=EMKCf3bFEOE:aKr1Fo82xew:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=EMKCf3bFEOE:aKr1Fo82xew:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=EMKCf3bFEOE:aKr1Fo82xew:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=EMKCf3bFEOE:aKr1Fo82xew:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=EMKCf3bFEOE:aKr1Fo82xew:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=EMKCf3bFEOE:aKr1Fo82xew:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=EMKCf3bFEOE:aKr1Fo82xew:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/EMKCf3bFEOE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/727006038904747859/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=727006038904747859" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/727006038904747859?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/727006038904747859?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/EMKCf3bFEOE/make-your-own-remote-server-monitor.html" title="Make your own remote server monitor!" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2007/10/make-your-own-remote-server-monitor.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkQNR3w7eSp7ImA9WB9aFE8.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-6862593727663996295</id><published>2007-10-07T20:24:00.001-07:00</published><updated>2008-01-03T21:26:36.201-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2008-01-03T21:26:36.201-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="functions" /><title>ExpandPath()</title><content type="html">I recently happened upon a cool CF function that returns the absolute path of a directory on your server after being passed a relative path: &lt;a href="http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&amp;file=part_cfm.htm"&gt;ExpandPath()&lt;/a&gt;&lt;br /&gt;This function is especially helpful when something requires an absolute path-- which is usually the case for file management tags (cffile, cfdirectory, cfftp), system functions (fileExists(), directoryExists(), getFileFromPath(), GetProfileString()) and some others (cfexecute, cfdocument.)&lt;br /&gt;For those of us working on shared servers, this tag is especially useful because: 1. Sometimes you don't know the absolute path and 2. Even if you did, there is no guarantee that it won't change someday. Speaking of things changing someday, this tag is extremely helpful when writing portable or compartmentalized code--which we should be doing anyways to save us from future headaches ("...damnit, I changed my webroot location and now I have to fix all my absolute references! Oh the horror...")&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-6862593727663996295?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=98ZwoUSl1c0:5Wc1tfncKgU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=98ZwoUSl1c0:5Wc1tfncKgU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=98ZwoUSl1c0:5Wc1tfncKgU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=98ZwoUSl1c0:5Wc1tfncKgU:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=98ZwoUSl1c0:5Wc1tfncKgU:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=98ZwoUSl1c0:5Wc1tfncKgU:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=98ZwoUSl1c0:5Wc1tfncKgU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=98ZwoUSl1c0:5Wc1tfncKgU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/98ZwoUSl1c0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/6862593727663996295/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=6862593727663996295" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/6862593727663996295?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/6862593727663996295?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/98ZwoUSl1c0/expandpath.html" title="ExpandPath()" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2007/10/expandpath.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0IDR3g4fip7ImA9WB9bEUk.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-4279764931005605899</id><published>2007-09-21T00:01:00.000-07:00</published><updated>2007-12-20T01:06:16.636-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-12-20T01:06:16.636-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="coldfusion" /><category scheme="http://www.blogger.com/atom/ns#" term="server management" /><title>How to clear your Coldfusion server cache (not a pretty job, but someone's gotta do it...)</title><content type="html">&lt;p class="whs17"&gt;I found the following information somewhere on the web (that means it &lt;span style="font-style: italic;"&gt;must &lt;/span&gt;be true!)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="whs17"&gt;&lt;span style="font-weight: bold;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="whs17"&gt;&lt;span style="font-weight: bold;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p class="whs17"&gt;&lt;span style="font-weight: bold;"&gt;&lt;b&gt;How to Clear   your CFMX Server Cache -&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;The CFMX server reads ColdFusion files and recompiles this information   to Java Class files. Sometimes, after making changes to the JAR files   within the ColdFusion library (/lib), or your CFM scripts, you may need   to perform the following steps to 'clear your cache' as we like to call   it. &lt;/p&gt; &lt;p&gt;The folder that contains the Java *.class files is in the location shown   below. Your path may vary depending on your installation location.&lt;/p&gt; &lt;p&gt;e.g. C:\CFusionMX\wwwroot\WEB-INF\cfclasses&lt;/p&gt; &lt;ol class="whs18" type="1"&gt;&lt;li class="kadov-p"&gt;&lt;p&gt;Make a backup of all the (*.class) files in a   separate folder. &lt;/p&gt;&lt;/li&gt;&lt;li class="kadov-p"&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;&lt;b&gt;Stop&lt;/b&gt;&lt;/span&gt; the   ColdFusion Application Server &lt;/p&gt;&lt;/li&gt;&lt;li class="kadov-p"&gt;&lt;p&gt;Delete all (*.class) files in the "cfclasses"   folder specified in above. &lt;/p&gt;&lt;/li&gt;&lt;li class="kadov-p"&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;&lt;b&gt;Start&lt;/b&gt;&lt;/span&gt;   the ColdFusion Application Server&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/blockquote&gt;&lt;ol class="whs18" type="1"&gt;&lt;/ol&gt; &lt;p&gt;&lt;/p&gt;But really though, it works. I did it today when I installed that hotfix from my last post. You can trust me.... lol. Now you're never going to do it.&lt;br /&gt;Anyways, from what I've read Coldfusion caches all your Coldfusion pages in this folder. If you make a lot of changes to your site, then you probably have a bunch of unused cache files. This can contribute to a slower site because the server has to search through those files whenever a page is accessed. One forum-fellow said he had 40,000 files in there, oh snap! I didn't have quite that many, but still, I'm glad I found out how to "clear my cache" (as they like to call it.)&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;   &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-4279764931005605899?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=gTQu5-K8hsw:qtYliVF6D2Y:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=gTQu5-K8hsw:qtYliVF6D2Y:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=gTQu5-K8hsw:qtYliVF6D2Y:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=gTQu5-K8hsw:qtYliVF6D2Y:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=gTQu5-K8hsw:qtYliVF6D2Y:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=gTQu5-K8hsw:qtYliVF6D2Y:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=gTQu5-K8hsw:qtYliVF6D2Y:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=gTQu5-K8hsw:qtYliVF6D2Y:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/gTQu5-K8hsw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/4279764931005605899/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=4279764931005605899" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/4279764931005605899?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/4279764931005605899?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/gTQu5-K8hsw/how-to-clear-your-coldfusion-server.html" title="How to clear your Coldfusion server cache (not a pretty job, but someone's gotta do it...)" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2007/09/how-to-clear-your-coldfusion-server.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEENSX06fip7ImA9WxJXFUU.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-1476085599967505619</id><published>2007-09-19T18:25:00.000-07:00</published><updated>2009-06-09T14:24:58.316-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-06-09T14:24:58.316-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="sql" /><category scheme="http://www.blogger.com/atom/ns#" term="coldfusion" /><title>cfQueryParam -- featuring zombies and oral surgeons</title><content type="html">Check out this &lt;a href="http://www.forta.com/blog/index.cfm/2005/12/21/SQL-Injection-Attacks-Easy-To-Prevent-But-Apparently-Still-Ignored"&gt;article&lt;/a&gt; by Ben Forta about SQL Injection Attacks. Yikes! It's scary to think that someone could simply put a few extra lines into a url and totally ruin a database. Thank goodness for cfQueryParam (not to be confused with cfParam!)&lt;br /&gt;So today I spent some time searching through query after query making sure that any of them with user input was filtered with cfQueryParam. Kind of mind-numbing, but alas, very necessary. The only snags that I hit had to do with using LIKE statements or functions in queries with cfQueryParam. Here is what I learned.&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;Example of how to use LIKE with cfQueryParam (for my oral surgeon):&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;SELECT&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;tooth&lt;br /&gt;FROM mouth&lt;br /&gt;WHERE tooth LIKE &amp;lt;cfqueryparam value="%#form.wisdomTooth#%" cfsqltype="CF_SQL_VARCHAR"&gt;&lt;/blockquote&gt;The trick here is that instead of putting the wildcard indicators (%) on the outside of the cfqueryparam tag, you have to include them in the value attribute. In fact, Coldfusion throws an error if you try to put anything outside the cfqueryparam tag.&lt;br /&gt;&lt;br /&gt;The following is a great illustration of what will NOT work (for zombies&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;with discerning taste):&lt;br /&gt;&lt;blockquote&gt;SELECT brains&lt;br /&gt;FROM people&lt;br /&gt;WHERE tasteRating = tasteTest(&amp;lt;cfqueryparam value="#url.victimSkin#" cfsqltype="CF_SQL_INTEGER"&gt;)&lt;/blockquote&gt;You would need to put the tasteTest function INSIDE the cfqueryparam value attribute, like so: &amp;lt;cfqueryparam value="#tasteTest(url.taste)#" cfsqltype="CF_SQL_INTEGER"&gt;&lt;br /&gt;&lt;br /&gt;This brings me to another cute piece of information that I found today. There is bug in Coldfusion MX 6.1 regarding the use of functions inside cfqueryparam tags. If you are too good for MX 6.1 and only use "new" versions of Coldfusion, then this won't apply to you, Mr. Fancypants. For the rest of us: &lt;a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19108&amp;amp;sliceId=2"&gt;Coldfusion MX 6.1 Hot Fix for cfQuery / cfQueryParam&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;p.s. Although the cfsqltype is NOT a required attribute, someone somewhere said that it improves performance, which makes sense to me--so what the hell, why not use it? Apparently it is hard to come by  a chart of cfsqltypes and their associated SQL data types (it was not included in the Coldfusion MX 6.1 LiveDocs.)&lt;br /&gt;So here is the link to the Adobe LiveDocs page that DOES include a chart: &lt;a href="http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&amp;amp;file=00000317.htm"&gt;Coldfusion MX 7 cfQueryParam (with data type chart!)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-1476085599967505619?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=RqE7gQRahZs:e2VDmmjEtl0:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=RqE7gQRahZs:e2VDmmjEtl0:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=RqE7gQRahZs:e2VDmmjEtl0:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=RqE7gQRahZs:e2VDmmjEtl0:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=RqE7gQRahZs:e2VDmmjEtl0:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=RqE7gQRahZs:e2VDmmjEtl0:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=RqE7gQRahZs:e2VDmmjEtl0:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=RqE7gQRahZs:e2VDmmjEtl0:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/RqE7gQRahZs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/1476085599967505619/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=1476085599967505619" title="5 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/1476085599967505619?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/1476085599967505619?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/RqE7gQRahZs/like-it-ps-theres-bug-in-61.html" title="cfQueryParam -- featuring zombies and oral surgeons" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>5</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2007/09/like-it-ps-theres-bug-in-61.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEYESX49eCp7ImA9WB9TE0s.&quot;"><id>tag:blogger.com,1999:blog-6650413229535480271.post-8643381727953808240</id><published>2007-09-19T02:40:00.000-07:00</published><updated>2007-09-21T01:08:28.060-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2007-09-21T01:08:28.060-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="spry" /><title>I'm learning Spry... what are you doing?</title><content type="html">The biggest change in Dreamweaver CS3 has to be the Spry framework. Nothing like built-in AJAX!&lt;br /&gt;I have been wrangling with Spry off and on for the last few weeks and so far I suck at it. There is just so much to learn! It doesn't help that I don't have CS3 at home, so I'm stuck writing Spry code by hand (something I don't recommend.)&lt;br /&gt;I dig the debug info, but compared to Coldfusion's debug service it is weaksauce. Oh well, better than nothing.&lt;br /&gt;&lt;br /&gt;With Spry in mind, I've been slowly developing my first serious Web 2.0 app. The idea of it is to offer a listing of touring bands that will be coming through a user's local area. Something like byofl.org (Book Your Own Fuckin' Life, lol) My idea will require auto-geolocation similar to craigslist, but it will need to be combined with a location radius so the user can select bands coming though only his town or any town within a specified radii (up to 250 miles perhaps).&lt;br /&gt;Since I've been doing music in bands for about 7 years and have been on 3 tours, I know how desperate touring bands are for shows and how hard it is to find them. Not to mention finding a place to shower... This app would be unique in that the target users are show bookers--or even  anyone that could provide services such as lodging, food, showers, etc.&lt;br /&gt;&lt;br /&gt;I think it will be a hit if I can get the user interface right. That's why I'm going with Spry for now. The cool thing about Web 2.0 is that I'll be delivering the content using XML, so it won't be too tough to develop a whole new interface down the road if I want. I mean, I'm gonna have to do something in Flash too! Then I gotta try out plugging it into Adobe AIR and Google Desktop. I can't wait!&lt;div class="blogger-post-footer"&gt;Content provided by: &lt;a href="http://cfruss.blogspot.com/"&gt;cfruss.blogspot.com&lt;/a&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6650413229535480271-8643381727953808240?l=cfruss.blogspot.com' alt='' /&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=siyEhU4eQMU:r8ipdSZqFEA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=siyEhU4eQMU:r8ipdSZqFEA:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=siyEhU4eQMU:r8ipdSZqFEA:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=siyEhU4eQMU:r8ipdSZqFEA:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=siyEhU4eQMU:r8ipdSZqFEA:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=siyEhU4eQMU:r8ipdSZqFEA:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/cfruss?a=siyEhU4eQMU:r8ipdSZqFEA:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/cfruss?i=siyEhU4eQMU:r8ipdSZqFEA:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/cfruss/~4/siyEhU4eQMU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://cfruss.blogspot.com/feeds/8643381727953808240/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=6650413229535480271&amp;postID=8643381727953808240" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/8643381727953808240?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/6650413229535480271/posts/default/8643381727953808240?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/cfruss/~3/siyEhU4eQMU/im-learning-spry-what-are-you-doing.html" title="I'm learning Spry... what are you doing?" /><author><name>Russ</name><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://cfruss.blogspot.com/2007/09/im-learning-spry-what-are-you-doing.html</feedburner:origLink></entry></feed>

