parsing big XML documents

ColdFusion No Comments »

I certainly haven’t run into this problem yet but yesterday Macromedia released a technote here about changing the default size limit for XML documents greater than 64,000 (bytes I assume) so if you’ve seen an error message along the lines of:

org.xml.sax.SAXParseException: Parser has reached the entity expansion limit “64,000 set by the Application

then this article will be of note to you.

uh oh, another clone!

general 1 Comment »

take a look at this code:

<SAQUERY NAME=DbQuery DATASOURCE=“SomeDNS” LOCK=“YES”>
SELECT * FROM table
</SAQUERY>

or maybe this code:

<SASET NAME=var VALUE=“Testing 123″>
<SAIF COND=var .eq. “Test”>
The value of var is Test<BR>
<SAELSEIF COND=var .eq. 123>
The value of var is 123<BR>
<SAELSEIF COND=var .eq. “BOB” NOCASE>
The value of var is BOB<BR>
<SAELSE>
The value was not Test, 123 or BOB<BR>
</SAIF>

Looks familiar? Well, it kinda looks like CF to me but it’s using SA, what is SA? Steel Arrow, and their latest software release, Steel Arrow KA - KA stands for Kick Ass!!! You can read more at http://www.steelarrow.com/. I wonder how true their statistics are in comparing to other app servers. The figures certainly look interesting here

Britain, gotta love it!

general 6 Comments »

Britain has to be the only place that when there’s a few centimetres of snow, the entire country grinds to a halt. We’re having odd weather (for the UK) at the moment and it’s cold (for the UK) outside, -3, -4 at night time. Around 6pm tonight we had a snow flurry, what was super odd was that we had lightening at the same time. So this snow, it managed to cause huge traffic jams on most roads around the south. What is even more odd is the London Underground (the tube) got affected - now if you can expain that, then you’re better than i am!!!

testing a mailserver

ColdFusion No Comments »

It would be nice to check whether a mail server is able to accept connections before you try and use the CFMAIL tag. Previously, the CF administrator was the only place you could verify a connection - but leverage the factory java objects and you can do it really neatly. I was looking for an answer as to how to do this for a thread in the MM forums and found this neat little UDF so i thought i’d share it here. Remember, it’s using factory methods so these might not be supported in subsequent releases of CF.

<cfobject action=“CREATE” type=“JAVA” class=“coldfusion.server.ServiceFactory” name=“factory”>
<cfscript>
function my_cfusion_verifymail(smtp,port,timeout)
{
ms = factory.getMailSpoolService();
ms.setServer(smtp);
ms.setPort(val(port));
ms.setTimeout(val(timeout));

if (ms.verifyServer()) return “”;
else return “Error”;
}
</cfscript>

Fusebox 4, forcing a reparse

Fusebox 1 Comment »

Ok, so you’ve set you fusebox.xml.cfm to production mode, how do you force a reparse of the xml files?

Simple, append &fusebox.load=true&fusebox.password=mypassword in the URL address box and hit the application. The password should be same as you’ve entered into the fusebox.xml.cfm file in the parameters section.

FuseQ, Harmony and Content Variables

Harmony No Comments »

FuseQ was great for folks doing content management. Yes, you could do the same thing in Fusebox3 but it took a little more effort. It’s extremely easy to harness the power of Fusebox 4 to leverage it for use in a content management system

Blog comments..

general No Comments »

looks like I’ve had a little problem when people leave comments on my blog entries. Must of been following my upgrade to the blog CFC - should be ok now.

gotta love supporting users!

general No Comments »

Ok, so we’ve all heard the cases, “What’s the cup holder for on the front of my computer for” or “I’ve got a blank screen” and the support engineer suggests turning the computer on and the user replies, “I would, be we’ve got a power cut here”. How about these real ones from where i work received in the past few weeks:

USER: Oh, I thought i was getting a new computer
ME: You have
USER: It looks the same to me
ME: No, look under the table - it’s new
USER: Ah, I thought that bit (pointing at the monitor) was the computer

Or, a user phones up asking if there’s anyway to verify an email address, hmm - try sending an email to it? Then the user asked “isn’t there a universal database to check if emails have been received”

You *GOTTA* love support!!!

Introducing…Harmony

Harmony 5 Comments »

Harmony started life out as a mini CMS project in early 2001 just because I’d never written one and i thought it was about time i did. In 2002 I presented at the Fusebox Conference with a session on ‘Content management with Fusebox’ and in those days i was calling it ‘myCMS’. Harmony was the code name of another project I’m very close to, Microsoft’s Media Centre 2004 - which is now in production (or at least OEMs can sell it) so i thought i’d leech the name :)

Harmony came about because the company i work for refused to spend $30,000 on a Commonspot license to CMS our public facing web site, preferring to let our webmaster (not me) manually edit over 1500 static HTML files with our new corporate web image whenever it changed (6 monthly). It was intended more as a proof of concept but over the years i’ve constantly been playing with the code and it’s now turning out to be a pretty neat ‘demo app’ (yet to be used in production I hasten to add).

Originally starting as a FuseQ application, I’ve recently updated the core engine to use Fusebox4, I’ll be convering a number of the core changes i needed to make to move from FuseQ to Fusebox 4 but it was a relatively painless experience.

Blog 3.0

general No Comments »

I’m now running Ray’s new Blog 3.0 CFC and it took little effort to change between the previous versions. I did need to edit the migrate1.cfm file he includes to use <CFQUERYPARAM> since it kept erroring when i ran the script to move the data between sources.

It’s now got the colour coding built in which is activated using the <code> tag around the chunk you want to be processed. I’ve got to rejig it so i can use SoEditor lite again but as expected Ray’s done a top job.

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in