Tero Pikala
Member since Dec 11, 2008
- Profile: /members/1787-tero-pikala.htm
- Comments: 12
Recent Blog Comments By Tero Pikala
-
Making SOAP Web Service Requests With ColdFusion And CFHTTP
Posted on May 12, 2010 at 11:13 AM
@Frank, You can try something like this: <cfhttp timeout="1" url=" http://www.slow-host.com/ "> <cfif CFHTTP.statuscode is "408 Request Time-out"> Timeout <cfelse> <cfdump var="#CFHTTP#"> </cfif> Or you could use throwonerror="true". Unfortunately that doesn'... read more »
-
Converting ISO Date/Time To ColdFusion Date/Time
Posted on Apr 15, 2010 at 6:31 AM
Hi I changed return statement to following: <cfreturn ParseDateTime(REReplace(arguments.Date, "^.*?(\d{4})-?(\d{2})-?(\d{2})T([\d:]+).*$", "\1-\2-\3 \4", "ONE"))> replaceFirst() is method of java.lang.String and didn't work with BlueDragon.NET which I unfortunately have to work with. Tero... read more »
-
Making SOAP Web Service Requests With ColdFusion And CFHTTP
Posted on Jan 11, 2010 at 6:26 PM
I've found this often only way to invoke "complex" web services. They don't really have to be that complex - typically .NET ones just don't work well with Axis that is doing heavy lifting in ColdFusion. In my opinion easiest way to figure out required XML is to use SoapUI ( http://www.soapui.org/ ... read more »
-
Ask Ben: Creating ColdFusion Templates On The Fly
Posted on Sep 21, 2009 at 5:28 PM
Based on the original question it seems that Steve only needs to create CF templates so that pages from CMS can have proper URLs. I would suggest to use mod_rewrite or similar approach to rewrite pretty much any URLs in the site to a page handler which can be traditional CF page. This is much clea... read more »
-
SQL Optimization Case Study - JOIN Clause vs. IN Clause
Posted on Sep 4, 2007 at 7:27 PM
Sometimes you just need to use IN, specifically if there are some ids in ColdFusion that need to be part of the query. This could happen for example when you have results from search server but need to filter out them based on some SQL based logic. When that happens one thing to check is that num... read more »
-
Ask Ben: Forward ColdFusion Requests To Another Domain
Posted on Aug 22, 2007 at 9:50 AM
That would go to .htaccess in your webroot; only requests for that domain will be served there and thus matching is done earlier by Apache virtual hosts setup. If your host allows you to use .htaccess and they have mod_rewrite enabled this would work for you - I would think that's quite common but... read more »
-
Ask Ben: Forward ColdFusion Requests To Another Domain
Posted on Aug 22, 2007 at 7:59 AM
Alternative and in my opinion preferred way is to use mod_rewrite if using Apache. Couple fo lines in .htaccess will take care of whole thing (including images and other files) RewriteEngine On RewriteRule ^(.*)$ http://www.new.com/ $1 [R=301,L] IIS has something similar, I don't know exact sol... read more »
-
I Just Can't Understand Object Oriented Programming (OOP) And Join Tables
Posted on Aug 17, 2007 at 9:53 AM
I guess I would do something like this: Create value object Practice. It has property childs which is an array. Then create PracticeDAO which can be asked for single Practice with id and knows how to populate childs array with Practice objects as well. Sort order is determined by position in arr... read more »
-
Ask Ben: Environment-Based Application.cfc Settings
Posted on Aug 13, 2007 at 2:41 PM
To use SFTP you need to use SCP task with Ant - and it's definitely good idea to use something else than stone age FTP without any security at all.... read more »
-
Ask Ben: Environment-Based Application.cfc Settings
Posted on Aug 13, 2007 at 7:50 AM
@Ben, Ant has external task for FTP communications. As long as you don't have anything really tricky it should be possible to script FTP transfer with Ant. Check http://ant.apache.org/manual/OptionalTasks/ftp.html for all the options it has. It can be as easy as this: <ftp server="${ft... read more »
-
Ask Ben: Environment-Based Application.cfc Settings
Posted on Aug 12, 2007 at 1:33 PM
Quite different approarch is to deploy application to various environmens with Ant script and use that script to customize environment specific variables. Check Ant manual for Replace / ReplaceFilter tasks for details.... read more »