<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Mark Ireland&apos;s Blog - coldfusion</title>
			<link>http://www.markireland.com.au/blog/index.cfm</link>
			<description>Australian Web App Developer</description>
			<language>en-us</language>
			<pubDate>Wed, 08 Sep 2010 21:29:56 -0500</pubDate>
			<lastBuildDate>Mon, 04 Jan 2010 20:08:00 -0500</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>markincuba@hotmail.com</managingEditor>
			<webMaster>markincuba@hotmail.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>markincuba@hotmail.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			<itunes:image href="" />
			<image>
				<url></url>
				<title>Mark Ireland&apos;s Blog</title>
				<link>http://www.markireland.com.au/blog/index.cfm</link>
			</image>
			<itunes:explicit>no</itunes:explicit>
			
			<item>
				<title>Coldfusion snapshot Memory Analyzer?</title>
				<link>http://www.markireland.com.au/blog/index.cfm/2010/1/4/Coldfusion-snapshot-Memory-Analyzer</link>
				<description>
				
				Pavan Kumar Gorakavi has posted an article on &lt;a href=&quot;http://java.sys-con.com/node/1230460&quot;&gt;Using Eclipse Memory Analyzers&lt;/a&gt;

I wonder if it can be used in looking at a Coldfusion snapshot? 
				</description>
				
				<category>coldfusion</category>				
				
				<pubDate>Mon, 04 Jan 2010 20:08:00 -0500</pubDate>
				<guid>http://www.markireland.com.au/blog/index.cfm/2010/1/4/Coldfusion-snapshot-Memory-Analyzer</guid>
				
			</item>
			
			<item>
				<title>CF cannot terminate threads in a &quot;native thread&quot; state</title>
				<link>http://www.markireland.com.au/blog/index.cfm/2009/12/10/CF-cannot-terminate-threads-in-a-native-thread-state</link>
				<description>
				
				Charlie Arehart replied with this on [cfaussie]:


&gt;&gt;&gt; &quot;charlie arehart&quot; &lt;charlie_lists@carehart.org&gt; 10/12/2009 10:58 am &gt;&gt;&gt;
Scott, as far as I can tell, nothing has changed in the CF Enterprise Server
Monitor from 8 to 9. Both it, and FusionReactor, and SeeFusion can all
attempt to kill requests. 


Just beware: such an attempt is only that, an &quot;attempt&quot;. There&apos;s no
guarantee it can be interrupted. If a CF request is in what&apos;s called a
native thread (that is, talking to something outside of CF, such as hung
talking to a database, doing a cfhttp, or invoking a web service, etc.) then
none of the tools can interrupt the request. 


Yes, that does mean that CF requests can hang for a very long time, indeed
indefinitely in some cases and that you can&apos;t really do anything about it.
And no, not even the CF admin timeout setting can change this. It&apos;s subject
to the same limitation. It is worth noting that putting a TIMEOUT on CFHTTTP
or CFINVOKE is a good ideas, as sometimes it can allow CF to interrupt
those. We had a discussion of that here last year, if I recall. There&apos;s also
a TIMEOUT on CFQUERY too, but it doesn&apos;t always work and depends on the
drive version, type, database, and other variables.


Finally, should anyone wonder, all this inability to timeout requests in a
native thread state is not a CF bug. It&apos;s a JVM thing. The CF &quot;kill thread&quot;
mechanisms above merely processes ask the JVM to terminate the thread, and
it cannot terminate threads in a &quot;native thread&quot; state. 
				</description>
				
				<category>coldfusion</category>				
				
				<pubDate>Thu, 10 Dec 2009 04:00:00 -0500</pubDate>
				<guid>http://www.markireland.com.au/blog/index.cfm/2009/12/10/CF-cannot-terminate-threads-in-a-native-thread-state</guid>
				
			</item>
			
			<item>
				<title>I know this is what PDFs are for but my clients want a nicely styled word docx</title>
				<link>http://www.markireland.com.au/blog/index.cfm/2009/9/22/I-know-this-is-what-PDFs-are-for-but-my-client-want-a-nicely-styled-word-docx</link>
				<description>
				
				I know this is what PDFs are for but my clients want a nicely styled word docx, so I tried this:
&lt;code&gt;
&lt;cfsavecontent variable=&quot;style4html4word&quot;&gt;
&lt;style&gt;
h1, h2, h3 {text-align:center;font-family: Arial;}
p {font-size:11pt;font-family: Arial;margin: 0 1cm 0 1cm;}
.bottomtext {text-align:right;padding-top:15em;margin-bottom:2em;}
&lt;/style&gt;
&lt;/cfsavecontent&gt;
&lt;/code&gt;

This works but is it just nuts?

&lt;code&gt;
&lt;form action=&quot;https://secure.whatever.com/notauthenticated/tohtml4word.cfm&quot; method=&quot;post&quot; target=&quot;_blank&quot;&gt;
&lt;input type=&quot;hidden&quot; name=&quot;filename&quot; value=&quot;well_formed_name&quot; /&gt;
&lt;cfoutput&gt;&lt;textarea cols=&quot;50&quot; rows=&quot;10&quot; name=&quot;content&quot; style=&quot;display: none;&quot;&gt;&lt;html&gt;&lt;head&gt;&lt;title&gt;All Whatever&lt;/title&gt;#variables.style4html4word#&lt;/head&gt;&lt;body&gt;#allContent#&lt;/body&gt;&lt;/html&gt;&lt;/textarea&gt;&lt;/cfoutput&gt;
&lt;div&gt;&lt;input type=&quot;submit&quot; value=&quot; Open as Word &quot; onclick=&quot;progress();&quot; /&gt;&lt;/div&gt;
&lt;/form&gt;
&lt;cfoutput&gt;
#allContent#
&lt;/cfoutput&gt;
&lt;/code&gt;

tohtml4word.cfm is just:

&lt;code&gt;
&lt;cfheader name=&quot;Content-type&quot; value=&quot;application/html&quot;&gt;
&lt;cfheader name=&quot;Cache-Control&quot; value=&quot;max-age=0&quot;&gt;
&lt;cfheader name=&quot;Pragma&quot; value=&quot;public&quot;&gt;
&lt;cfheader name=&quot;Content-disposition&quot; value=&quot;attachment; filename=#form.filename#.htm&quot;&gt;
&lt;cfoutput&gt;#form.content#&lt;/cfoutput&gt;
&lt;/code&gt;

Am I just abusing Coldfusion ease-of-use? What would be better from a maintenance point of view? 
				</description>
				
				<category>coldfusion</category>				
				
				<pubDate>Tue, 22 Sep 2009 23:28:00 -0500</pubDate>
				<guid>http://www.markireland.com.au/blog/index.cfm/2009/9/22/I-know-this-is-what-PDFs-are-for-but-my-client-want-a-nicely-styled-word-docx</guid>
				
			</item>
			
			<item>
				<title>Variables and This scopes and the onRequest method</title>
				<link>http://www.markireland.com.au/blog/index.cfm/2009/7/15/Variables-and-This-scopes-and-the-onRequest-method</link>
				<description>
				
				Rex posted this on the CFDEV list (I think it bears repeating):

The VARIABLES scope is the default scope for an unscoped variable, and 
is shared with the cfincluded page that is called by the onRequest 
method.  The THIS scope only exists in a CFC or in a method of the CFC.  
Since the cfinclude is called in a method, then the THIS scope is 
available in the cfincluded page.
 
When there is no onRequest method, the page is just executed, and the 
called page, test.cfm, does not have access to any of the cfc variables, 
so VARIABLES scope is empty, and the THIS scope does not exist. 
				</description>
				
				<category>coldfusion</category>				
				
				<pubDate>Wed, 15 Jul 2009 20:03:00 -0500</pubDate>
				<guid>http://www.markireland.com.au/blog/index.cfm/2009/7/15/Variables-and-This-scopes-and-the-onRequest-method</guid>
				
			</item>
			
			<item>
				<title>cflogin documentation really sucks</title>
				<link>http://www.markireland.com.au/blog/index.cfm/2009/6/12/cflogin-documentation-really-sucks</link>
				<description>
				
				I think the cflogin documentation really sucks &lt;strong&gt;because&lt;/strong&gt; Coldfusion is so easy and so flexible.

That is, there are so many cool things you can do once a user is authenticated that Adobe has failed to provide a very simple example.

&lt;code&gt;
&lt;cfset authUserFail = false&gt;
&lt;cflogin&gt;
   &lt;cfif isDefined(&quot;cflogin&quot;) and len(cflogin.name) and len(cflogin.password)&gt;
     &lt;cfldap server=&quot;ldap&quot; 
       action=&quot;query&quot; attributes=&quot;dn&quot; 
       filter=&quot;(uid=#cflogin.name#)&quot; 
        start=&quot;&quot; 
         name=&quot;findUser&quot;&gt;
      &lt;cfif findUser.recordCount&gt;
                &lt;cftry&gt;
                    &lt;cfldap server=&quot;ldap&quot; action=&quot;query&quot; attributes=&quot;n&quot; 
                        filter=&quot;(uid=#cflogin.name#)&quot; start=&quot;&quot; 
                            username=&quot;#findUser.dn#&quot; password=&quot;#cflogin.password#&quot; name=&quot;authUser&quot;&gt;
                 &lt;cfcatch&gt;
                    &lt;cfset authUserFail = true&gt;
                 &lt;/cfcatch&gt;
                &lt;/cftry&gt;            
         &lt;cfif not authUserFail and authUser.recordCount eq 1&gt;        
           &lt;cfloginuser name=&quot;#cflogin.name#&quot; password=&quot;#cflogin.password#&quot; roles=&quot;&quot;&gt;
           &lt;cfset session.user = cflogin.name&gt;
         &lt;cfelse&gt;
         &lt;cfset request.infoWarningsErrors.addError(&apos;authUserFail&apos;,&apos;Authentication failed&apos;)&gt;
          &lt;cfinclude template=&quot;dsp_login.cfm&quot;&gt;
         &lt;/cfif&gt;
       &lt;cfelse&gt;
           &lt;cfset request.infoWarningsErrors.addError(&apos;findUserFail&apos;,&apos;Authentication failed&apos;)&gt;
           &lt;cfinclude template=&quot;dsp_login.cfm&quot;&gt;
       &lt;/cfif&gt;
 &lt;cfelseif isDefined(&quot;cflogin&quot;) and (not len(cflogin.name) and not len(cflogin.password))&gt;
     &lt;cfset request.infoWarningsErrors.addError(&apos;noblanks&apos;,&apos;Please enter username and password&apos;)&gt;     
 &lt;/cfif&gt;
&lt;/cflogin&gt;
&lt;cfif len(getAuthUser()) and (not structKeyExists(session,&quot;user&quot;)&gt;
    &lt;cfldap server=&quot;ldap&quot; action=&quot;query&quot; attributes=&quot;&quot; 
            filter=&quot;(uid=#getAuthUser()#)&quot; start=&quot;&quot; name=&quot;refreshUser&quot;&gt;
    &lt;cfif refreshUser.recordCount eq 1&gt;
      &lt;cfset session.user = getAuthUser()&gt;
		DO SOME CLEVER SESSION.USER STUFF HERE	
     &lt;/cfif&gt;
&lt;/cfif&gt;
&lt;cflog file=&quot;lostsession&quot; text=&quot;#getAuthUser()#, #isDefined(&apos;cflogin&apos;)#, #yesNoFormat(authUserFail)#, #isDefined(&apos;authUser&apos;)#, #isDefined(&apos;refreshUser&apos;)#&quot;&gt;
&lt;/cfif&gt;
&lt;/code&gt; 
				</description>
				
				<category>coldfusion</category>				
				
				<pubDate>Fri, 12 Jun 2009 02:30:00 -0500</pubDate>
				<guid>http://www.markireland.com.au/blog/index.cfm/2009/6/12/cflogin-documentation-really-sucks</guid>
				
			</item>
			
			<item>
				<title>Analysts at Gartner Praise Coldfusion</title>
				<link>http://www.markireland.com.au/blog/index.cfm/2009/5/21/Analysts-at-Gartner-Praise-Coldfusion</link>
				<description>
				
				I am posting this in case I need ammunition the next time I lobby to use Coldfusion.

&lt;a href=&quot;http://www.webbschofield.com/index.cfm/2009/5/14/Analysts-at-Gartner-Praise-CF&quot;&gt;Analysts at Gartner Praise CF&lt;/a&gt;

The ColdFusion note / report can be purchased from Gartner.

Other quotes from Mark in the note:

&quot;...ColdFusion can provide unique value that is not fully addressed by any competing alternative technology. Most notably, ColdFusion is unmatched by any competitor for ease of use and technical capabilities. When we combine this with cross-platform deployment,and significant integration into both Java and .NET, ColdFusion stands out as a compelling solution for many IT challenges.&quot;

&quot;ColdFusion provides a potential wrapper around the complexity of Java, providing Web developers access to the power of the Java platform via the productivity of a fourth-generation language (4GL).&quot;

&quot;ColdFusion is nearly unique in the industry because it provides a balance of ease of use and advanced features that can support &quot;entry level&quot; business unit application developers, as well as &quot;advanced&quot; centralized IT development teams.&quot;

&quot;We also believe ColdFusion will play a pivotal role in Adobe&apos;s Flash Platform (www.adobe.com/flashplatform). Developers with investments in Flash, Flex, Air, BlazeDS and PDF Forms will find ColdFusion an integral supporting player in this technology family.&quot;

Mark recommends you ...

&quot;Consider This Product When

" You need to deliver robust Web applications, and alternatives such as .NET or Java are overkill

" You are invested in Java and Java EE, and need developer productivity to better your investment in Java

" You need to augment an otherwise heavily Java-centric IT strategy with a Web application layer that provides a higher level of developer productivity; integration with Java is particularly tight since ColdFusion applications are literally compiled into Java code for runtime execution

" You need to augment an otherwise heavily .NET-centric IT strategy with a platform that can be deployed to Linux and Unix, while retaining tight connectivity and integration with the Microsoft technology ecosystem

" You need to integrate Web applications with online Adobe Forms, or provide back-end processing to Flex and Air RIAs&quot; 
				</description>
				
				<category>coldfusion</category>				
				
				<pubDate>Thu, 21 May 2009 02:56:00 -0500</pubDate>
				<guid>http://www.markireland.com.au/blog/index.cfm/2009/5/21/Analysts-at-Gartner-Praise-Coldfusion</guid>
				
			</item>
			
			<item>
				<title>begone spambots</title>
				<link>http://www.markireland.com.au/blog/index.cfm/2009/1/21/begone-spambots</link>
				<description>
				
				For a few weeks I had this blog hosted at godaddy.com but the changes needed to Ray C&apos;s code to get around godaddy&apos;s restrictions (like no createObject(), no cfdump etc) just kept growing so I cut my losses and moved here to www.hostek.com

Its just as cheap, its CF8 and there are no restrictions. 
				</description>
				
				<category>coldfusion</category>				
				
				<pubDate>Wed, 21 Jan 2009 00:29:00 -0500</pubDate>
				<guid>http://www.markireland.com.au/blog/index.cfm/2009/1/21/begone-spambots</guid>
				
			</item>
			
			<item>
				<title>my bugs fix themselves</title>
				<link>http://www.markireland.com.au/blog/index.cfm/2009/1/20/my-bugs-fix-themselves</link>
				<description>
				
				I had a problem with the code that runs this blog. I presumed it was caused by the hosts setup.

I left it broken (by commenting out a line) It worked again if I added &apos;reinit&apos; equals whatever to the url.

Now its working again and I didnt do anything :-)

But changing settings in the admin settings page does not work (I try setting captcha on) 
				</description>
				
				<category>coldfusion</category>				
				
				<pubDate>Tue, 20 Jan 2009 17:43:00 -0500</pubDate>
				<guid>http://www.markireland.com.au/blog/index.cfm/2009/1/20/my-bugs-fix-themselves</guid>
				
			</item>
			</channel></rss>