Re: java.lang.OutOfMemoryError: Java heap space

2011-03-28 Thread tom vallee

i should replace -XX:+UseConcMarkSweepGC and  -XX:+UseParNewGC or only 
-XX:+UseConcMarkSweepGC

with : XX:+UseParallelGC 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343346
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: coldfusion service stop rsponding or CPU goes up tp 100%

2011-03-23 Thread tom vallee

thanks!

here are my settings now :

java.args=-server -Xmx4096m -Xms4096m -Dsun.io.useCanonCaches=false 
-XX:PermSize=256m -XX:MaxPermSize=256m -XX:+UseParallelGC 
-Dsun.rmi.dgc.client.gcInterval=60 -Dsun.rmi.dgc.server.gcInterval=60 
-XX:NewSize=148m -XX:SurvivorRatio=4 
-Dcoldfusion.rootDir={application.home}/../ 
-Dcoldfusion.libPath={application.home}/../lib 
-Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/flex/jars,{application.home}/../wwwroot/WEB-INF/cfform/jars,C:\\Program
 Files (x86)\\Efflare\\ImageCR3Service\\imagecr3.jar


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343222
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


upgrade coldfusion 7 JDK

2011-03-23 Thread tom vallee

Can i upgrade a cf7 to the latest jdk 1.6.0_24 ???

i currently use : Java Version  1.4.2_14   

thanks 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343223
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: coldfusion service stop rsponding or CPU goes up tp 100%

2011-03-22 Thread tom vallee

i upgraded to latest version and the coldfusion stop answering at 3 am

and the cpu spikes to 100% at 8h15 am.

anything else?


Are you stuck on that JDK version for any reason? The first thing I'd do
would be to upgrade it. It is 20 updates behind.

Next, have you checked anything like jconsole to see what is going on when
this spike happens? 

.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


HI,

i have a few problems with one of my server :

Win2008 R2
Coldufsion 8.0.1 x64
Java 1.6.0_04

Dual Xeon Quad Core
32gb RAM

Sometimes the CPU goes up to 100% and I need to restart the coldfusion
service and everything goes back normal

Sometimes, coldfusion stop responding, if i type my website in internet
explorer, it's not responsing but IIS is responding

i think it might be the JVM settings,

here are my jvm settings 

java.args=-server -Xmx4096m -Xms4096m -Dsun.io.useCanonCaches=false
-XX:PermSize=64m -Xincgc -XX:NewSize=48m -XX:SurvivorRatio=4
-XX:MaxPermSize=192m -Dcoldfusion.rootDir={application.home}/../
-Dcoldfusion.libPath={application.home}/../lib
-Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/
../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-
INF/flex/jars,{application.home}/../wwwroot/WEB-INF/cfform/jars,C:\\Program
Files (x86)\\Efflare\\ImageCR3Service\\imagecr3.jar


help! 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343188
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: coldfusion service stop rsponding or CPU goes up tp 100%

2011-03-22 Thread tom vallee

i upgrade to the latest JDK version and the coldfusion stop responding this 
night at 3 am

it doesn't solve my problems
Are you stuck on that JDK version for any reason? The first thing I'd do
would be to upgrade it. It is 20 updates behind.

Next, have you checked anything like jconsole to see what is going on when
this spike happens? 

.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


HI,

i have a few problems with one of my server :

Win2008 R2
Coldufsion 8.0.1 x64
Java 1.6.0_04

Dual Xeon Quad Core
32gb RAM

Sometimes the CPU goes up to 100% and I need to restart the coldfusion
service and everything goes back normal

Sometimes, coldfusion stop responding, if i type my website in internet
explorer, it's not responsing but IIS is responding

i think it might be the JVM settings,

here are my jvm settings 

java.args=-server -Xmx4096m -Xms4096m -Dsun.io.useCanonCaches=false
-XX:PermSize=64m -Xincgc -XX:NewSize=48m -XX:SurvivorRatio=4
-XX:MaxPermSize=192m -Dcoldfusion.rootDir={application.home}/../
-Dcoldfusion.libPath={application.home}/../lib
-Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/
../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-
INF/flex/jars,{application.home}/../wwwroot/WEB-INF/cfform/jars,C:\\Program
Files (x86)\\Efflare\\ImageCR3Service\\imagecr3.jar


help! 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343191
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: coldfusion service stop rsponding or CPU goes up tp 100%

2011-03-22 Thread tom vallee

there's no error in the log when the service locks up at 3am..

what should i put in my jvm settings instead?
 HI,
 
 i have a few problems with one of my server :
 
 Win2008 R2
 Coldufsion 8.0.1 x64
 Java 1.6.0_04
 
 Dual Xeon Quad Core
 32gb RAM
 
 Sometimes the CPU goes up to 100% and I need to restart the coldfusion 
 service and everything goes back normal
 
 Sometimes, coldfusion stop responding, if i type my website in 
 internet explorer, it's not responsing but IIS is responding
 
 i think it might be the JVM settings,
 
 here are my jvm settings 
 
 java.args=-server -Xmx4096m -Xms4096m -Dsun.io.useCanonCaches=false 
 -XX:PermSize=64m -Xincgc -XX:NewSize=48m -XX:SurvivorRatio=4  
 -XX:MaxPermSize=192m -Dcoldfusion.rootDir={application.home}/../ 
 -Dcoldfusion.libPath={application.home}/../lib -Dcoldfusion.
 classPath={application.home}/../lib/updates,{application.home}/../lib,
 {application.home}/../gateway/lib/,{application.home}/..
 /wwwroot/WEB-INF/flex/jars,{application.home}/..
 /wwwroot/WEB-INF/cfform/jars,C:\\Program Files 
 (x86)\\Efflare\\ImageCR3Service\\imagecr3.jar
 
 
 help! 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343197
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: coldfusion service stop rsponding or CPU goes up tp 100%

2011-03-22 Thread tom vallee

also, i install jconsole

the ps survivor space frequently goes to 100%, is it normal?

also there is many Ps scavenge (1125 collection in 2 hours) vs 5 collection of 
PS marksweep

there's no error in the log when the service locks up at 3am..

what should i put in my jvm settings instead? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343198
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: coldfusion service stop rsponding or CPU goes up tp 100%

2011-03-22 Thread tom vallee

the latest hs_pid file in runtime\bin is 1 months old..

in runtime/log/ there is many of these errors when the CPU was 100%

java.net.SocketException: Connection reset by peer: socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at 
java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at jrun.servlet.jrpp.ProxyEndpoint.getHeader(ProxyEndpoint.java:760)
at 
javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:124)
at 
javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:124)
at coldfusion.runtime.CgiScope.resolve(CgiScope.java:216)
at coldfusion.runtime.CgiScope.containsName(CgiScope.java:296)
at coldfusion.runtime.CgiScope.search(CgiScope.java:329)
at 
coldfusion.runtime.NeoPageContext.searchScopes(NeoPageContext.java:684)
at 
coldfusion.runtime.NeoPageContext.findAttribute(NeoPageContext.java:585)
at coldfusion.runtime.PageScope.resolveName(PageScope.java:52)
at coldfusion.runtime.PageScope.containsName(PageScope.java:57)
at coldfusion.runtime.Scope.containsKey(Scope.java:105)
at coldfusion.runtime.Scope.put(Scope.java:72)
at coldfusion.runtime.CfJspPage._arrayset(CfJspPage.java:1038)
at 
coldfusion.runtime.NeoPageContext.SymTab_setSplitNameInMap(NeoPageContext.java:1258)
at 
coldfusion.runtime.NeoPageContext.SymTab_setValidatedSplitNameInString(NeoPageContext.java:1228)
at 
coldfusion.runtime.NeoPageContext.SymTab_setValidatedDottedName(NeoPageContext.java:1304)
at 
coldfusion.runtime.NeoPageContext.setValidatedAttribute(NeoPageContext.java:524)
at 
coldfusion.runtime.NeoPageContext.setAttribute(NeoPageContext.java:392)
at coldfusion.runtime.CfJspPage._set(CfJspPage.java:369)
at 
cfsavecontent2ecfm146453001.runPage(E:\cf8_updates\cfusion\wwwroot\WEB-INF\cftags\savecontent.cfm:11)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
at 
coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:63)
at coldfusion.tagext.lang.ModuleTag.doAfterBody(ModuleTag.java:361)
at 
cfinfo2ecfm1595267860._factor8(C:\inetpub\scripts\ChaletsALouerModules\info.cfm:128)
at 
cfinfo2ecfm1595267860._factor9(C:\inetpub\scripts\ChaletsALouerModules\info.cfm:49)
at 
cfinfo2ecfm1595267860._factor10(C:\inetpub\scripts\ChaletsALouerModules\info.cfm:34)
at 
cfinfo2ecfm1595267860.runPage(C:\inetpub\scripts\ChaletsALouerModules\info.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
at 
cfinfo2ecfm351247822.runPage(C:\inetpub\scripts\ChaletsALouer\info.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:196)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:370)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2661)
at 
cfApplication2ecfc638988258$funcONREQUEST.runFunction(C:\inetpub\scripts\ChaletsALouer\Application.cfc:448)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:418)
at 
coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:360)
at 
coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:324)
at 
coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:59)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:277)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:192)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:448)
at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:308)
at coldfusion.runtime.AppEventInvoker.invoke(AppEventInvoker.java:74)
at 
coldfusion.runtime.AppEventInvoker.onRequest(AppEventInvoker.java:243)
at 
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:269)
at 
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at 
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
  

Re: coldfusion service stop rsponding or CPU goes up tp 100%

2011-03-22 Thread tom vallee

the service stop responding not always at 3am, sometimes it's at 2pm, 7pm etc

i check if there was any schedule task starting and no there's nothing

here's my jvm settings now :

java.args=-server -Xmx4096m -Xms4096m -Dsun.io.useCanonCaches=false 
-XX:PermSize=64m -XX:+UseParallelGC -XX:NewSize=48m -XX:SurvivorRatio=4  
-XX:MaxPermSize=192m -Dcoldfusion.rootDir={application.home}/../ 
-Dcoldfusion.libPath={application.home}/../lib 
-Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/flex/jars,{application.home}/../wwwroot/WEB-INF/cfform/jars,C:\\Program
 Files (x86)\\Efflare\\ImageCR3Service\\imagecr3.jar

is it ok? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343203
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: coldfusion service stop rsponding or CPU goes up tp 100%

2011-03-22 Thread tom vallee

couldn't it be that because the CPU is at 100%,

it can't make the connection??

Because there's nothing wrong with these request 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343208
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


coldfusion service stop rsponding or CPU goes up tp 100%

2011-03-21 Thread tom vallee

HI,

i have a few problems with one of my server :

Win2008 R2
Coldufsion 8.0.1 x64
Java 1.6.0_04

Dual Xeon Quad Core
32gb RAM

Sometimes the CPU goes up to 100% and I need to restart the coldfusion service 
and everything goes back normal

Sometimes, coldfusion stop responding, if i type my website in internet 
explorer, it's not responsing but IIS is responding

i think it might be the JVM settings,

here are my jvm settings 

java.args=-server -Xmx4096m -Xms4096m -Dsun.io.useCanonCaches=false 
-XX:PermSize=64m -Xincgc -XX:NewSize=48m -XX:SurvivorRatio=4  
-XX:MaxPermSize=192m -Dcoldfusion.rootDir={application.home}/../ 
-Dcoldfusion.libPath={application.home}/../lib 
-Dcoldfusion.classPath={application.home}/../lib/updates,{application.home}/../lib,{application.home}/../gateway/lib/,{application.home}/../wwwroot/WEB-INF/flex/jars,{application.home}/../wwwroot/WEB-INF/cfform/jars,C:\\Program
 Files (x86)\\Efflare\\ImageCR3Service\\imagecr3.jar


help! 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343168
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Issue with new CF Update

2011-03-21 Thread Tom McNeer

On Mon, Mar 21, 2011 at 2:42 PM, Jason Nokes
jno...@distributorcentral.comwrote:


 The ? is not in there.


If you're referring to Sean's post, he means, make sure that the character
is front of Dcoldfusion is a hyphen, not an en dash or em dash.

The character within your post, which he quotes, appears to be an en dash.
That's what he means when he refers to extended characters.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343172
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: KickAssVps.com Experiences

2011-03-04 Thread Tom McNeer

I'd have to agree with John and Gerald: overall, my experience with KAVPS
has been generally quite good.

There have been occasional minor outages, and a few other quirks - things
that will tend to happen with a small hosting service. But they're very
flexible, Brian Emerson is very helpful, and they have some great tools
included with their accounts that they should (but don't) make enough of a
noise about.

They do have phone support. It's just not the sort of 24/7, lots of support
reps thing you'll get with a larger service.

The tools I refer to are things like:

   - a web interface to handle your own DNS settings. You can create a full
   set of DNS listings of all types, without the necessity of asking them to
   make DNS changes for you. Add a new site/domain on your VPS, you can create
   a new set of DNS listings for it.
   - Set up your own monitors for your sites - ping, HTML, etc. I doubt that
   the monitoring comes from outside their network, so if their network has
   problems, the monitoring probably would, too. But it certainly gives you the
   ability to monitor issues on your own VPS.
   - Database backup/restore tool. A web-based interface to any SQL Server
   database you have with them. While they do their own nightly backups, you
   can create a backup at any time and download it. You can also upload a
   backup file and force a restore on their system. I use the first function
   fairly frequently to refresh the databases on my development server from the
   live, production databases.

That said, you should check VivioTech, too.

There is a difference in orientation, in my opinion: KAVPS is more
Windows-oriented, VivioTech more Linux. That's oversimplified, of course,
but mostly true. It may or may not make a difference in your choice.
-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342769
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Create REST based web services?

2011-02-14 Thread Tom Jones

So I dont mean to sound dense, but nearly all of the Google searches I did on 
creating REST web services with coldfusion have turned up next to nothing. I 
found a couple for consuming but not publishing.

Thanks,
tom


Absolutely. It's perfect for it. Just google it and you should see a heap of
tutorials.



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342195
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Create REST based web services?

2011-02-11 Thread Tom Jones

Hello,
I would like to know if it's possible to create REST based web services in 
Coldfusion and if so how? I'm just looking for a little how to, getting started.

Thanks,
tom 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342156
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFIMAGE (CF8) - moving /saving file from CFFileServlet

2011-02-07 Thread Tom King

Hi all,
I'm having problems getting an image which I've used CFIMAGE to crop on CF8.

I can crop the image, return it to the browser, but trying to 'get' at it on
the subsequent page request is driving me mad.

I can output the image, i.e img src=
http://localhost:81/CFFileServlet/_cf_image/_cfimg588898389753871789.jpg; /
for the usual five minutes the temp file exists for, but if I try to do:

cfimage
action=write

source=#expandpath('/CFFileServlet/_cf_image/_cfimg588898389753871789.jpg')#


destination=#expandPath('/images/portraits/#profile.image#_crop.jpg')#
overwrite = yes /

i.e, I want to copy/move the file from the temp location to a more permanent
location,

I'd get
File D:\www\blah\html\CFFileServlet\_cf_image\_cfimg5926235398043866604.jpg
does not exist.

When it really does - I can pull it up in a browser and look at it.

This is presumably due to /CFFileServlet/ not being a physical directory?
I've tried using cfimage to create another image object from the same
location, and also tried to use cfhttp to get the image, but to no avail..

How does everyone else do it?

Thanks
T


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341923
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFIMAGE (CF8) - moving /saving file from CFFileServlet

2011-02-07 Thread Tom King

I'm using Matt Gifford's trick of returning the cropped image via an ajax
request:
http://www.mattgifford.co.uk/image-cropping-with-coldfusion-jquery/

So, yes, I suppose I could save it at that point, but it would remove the
functionality of being able to revert to the original which is rather handy.

There must be a way of getting at the servlet images though?
T


On 7 February 2011 11:55, Dave Watts dwa...@figleaf.com wrote:


  I'm having problems getting an image which I've used CFIMAGE to crop on
 CF8.
 
  I can crop the image, return it to the browser, but trying to 'get' at it
 on
  the subsequent page request is driving me mad.
 
  I can output the image, i.e img src=
  http://localhost:81/CFFileServlet/_cf_image/_cfimg588898389753871789.jpg;
 /
  for the usual five minutes the temp file exists for, but if I try to do:
 
  cfimage
 action=write
 
 source=#expandpath('/CFFileServlet/_cf_image/_cfimg588898389753871789.jpg')#
  destination=#expandPath('/images/portraits/#profile.image#_crop.jpg')#
 overwrite = yes /
 
  i.e, I want to copy/move the file from the temp location to a more
 permanent
  location,
 
  I'd get
  File
 D:\www\blah\html\CFFileServlet\_cf_image\_cfimg5926235398043866604.jpg
  does not exist.
 
  When it really does - I can pull it up in a browser and look at it.
 
  This is presumably due to /CFFileServlet/ not being a physical directory?
  I've tried using cfimage to create another image object from the same
  location, and also tried to use cfhttp to get the image, but to no
 avail..
 
  How does everyone else do it?

 Can't you just either (a) save it to a variable in memory on your
 first operation, or (b) save it to a specific destination on your
 first operation? You can then serve it in the browser as needed.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341925
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: xss filter

2011-01-19 Thread Tom McNeer

On Tue, Jan 18, 2011 at 8:37 PM, Nick Gleason n.glea...@citysoft.comwrote:


 Thoughts?


You might want to contact the developer of Portcullis, John Mason, directly.

His e-mail is mason |at| fusionlink.com.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341023
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: wireframe for developers

2011-01-18 Thread Tom McNeer

On Tue, Jan 18, 2011 at 10:52 AM, Gerald Guido gerald.gu...@gmail.comwrote:


 I use Balsamiq Mockups.


Me, too.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340968
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFBuilder Suddenly Showing Whitespace Chars, Sorta

2011-01-16 Thread Tom McNeer

Matt,

You probably accidentally hit Ctrl+. Try that key combination and see if it
doesn't turn them off.

Same thing happened to me. Here's a Ray Camden blog
posthttp://www.coldfusionjedi.com/index.cfm/2010/4/30/Eclipse-Tip--Whitespace-characters-visible-when-they-are-turned-offabout
it.



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340915
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Using jsTree with Coldfusion

2011-01-12 Thread Tom Jones

Hello,
I was wondering if anyone has an example they would be willing to share on 
using jsTree with Coldfusion? I really dont know php and the example for the 
database driven example is confusing. 

Thanks,
tom 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340699
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How to set cfset session variable to be called in a cfc?

2011-01-07 Thread Tom McNeer

Faye,

On Fri, Jan 7, 2011 at 1:05 PM, Faye Larson fz...@yahoo.com wrote:


 With the following code from two cfc files, how do I pass the result from
 getAllAsStruct in CustomerGateway.cfc to exportToExcel, #arguments.data#, in
 Export.cfc?

 My environment is set up for using session variables. I need to cfset
 session.exportData somewhere so that it can be called?


Obviously, I don't know exactly what you're trying to do, but here's a
pretty good guess: the real point is to export some customer data as an
Excel file.

So you probably want another CFC (call it a service component), perhaps
called CustomerService.cfc.

In there you may have a method called exportCustomerData, which might
possibly take some arguments, such as a Customer Type, a date range, or
other filtering mechanisms.

The CustomerService would call a method on CustomerGateway that retrieves
the query data. While the gateway *could* build the struct, you generally
want to leave that sort of work to another component, using the gateway
strictly for database interaction. So perhaps the gateway's method is just
GetAll (or whatever's appropriate, depending on whether you need to apply
filters in the query), and you build the struct (or array, or just leave it
as a query, depending on what you need), in the CustomerService.

Then the CustomerService calls the Export.cfc's method, and does whatever's
necessary - saving the spreadsheet, returning it to the browser, whatever.

Unless you have a reason to persist the query data from request to request,
you don't want or need to place it in the session scope.

So:


   1. Request calls method on CustomerService, optionally with filter data.
   2. CustomerService calls CustomerGateway to get data, optionally with
   filter.
   3. CustomerService manipulates data into what array/structure/etc. you
   want (this could even be done by some sort of utility cfc)
   4. CustomerService call Export.exportToExcel(data), passing in the data
   it has manipulated.
   5. CustomerService completes its action by returning the filename of the
   spreadsheet, or whatever's appropriate to your needs.


From there on, it kinda depends on what you want to do with the spreadsheet.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340579
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How to set cfset session variable to be called in a cfc?

2011-01-07 Thread Tom McNeer

Faye,

On Fri, Jan 7, 2011 at 1:54 PM, Faye Larson fz...@yahoo.com wrote:


 I am trying to export the data which is an arrayCollection in Flex to
 Excel. I followed this article,
 http://viconflex.blogspot.com/2007/02/export-data-from-flex-app-using.html,
 and got all the components working. Now the last step is to make the data
 (arrayCollection) available in #arguments.data#, I guess.


I'll need a little more explanation. Your original example was a ColdFusion
query. Now you say it's data coming from Flex.

Is it being created from scratch in Flex? Didn't it originate as server-side
data?

ColdFusion is just Java under the hood, and you'll find you'll use many of
the same patterns.

If you can walk us through the process - basically, how did Flex get the
data, how was it manipulated, and such - what it's returning - we can
probably help. It would also help to know what's supposed to happen with the
spreadsheet. Is it to be displayed, just saved, or what?

As much detail as you can provide on the steps in the process, please.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340581
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How to set cfset session variable to be called in a cfc?

2011-01-07 Thread Tom McNeer

Faye,

The way you're handling the export has a number of issues. If you don't
mind, I'll suggest a somewhat different flow to the logic. I definitely
would not use the session scope here. It's just not necessary.

But first - have you actually tested your .cfm file by placing some data
into the session scope, then seeing what comes out? Completely in isolation
from Flex?

I've never seen an attempt to create a spreadsheet this way, by simply
outputting some data and giving it a spreadsheet content type:

cfsetting enablecfoutputonly=true showdebugoutput=No
   cfheader name=Content-Disposition value=attachment;
filename=export.xls/
   cfcontent type=application/vnd.ms-
excel reset=true/
   cfscript
   WriteOutput(session.exportData);
   /cfscript
cfexit /

I'm not certain, but I don't think it will work.

In your .cfm file, set session.data to something and see what you get. I'm
guessing it won't work, but I could be wrong. I've created many spreadsheets
from ColdFusion, and they always require a good bit of manipulation, or the
use of the cfspreadsheet tags and functions in later versions. I don't
think you can just dump the data in that way, although perhaps since it's a
struct, it'll work. I don't know. But there are certainly lots of ways in CF
to create spreadsheets from data structures cleanly, and I'd suggest using
one.

So make sure you can actually create a spreadsheet, with valid data, before
you go further.

Here's how I would suggest you make things flow:(Again, this is with the
assumption that the methods need no arguments for filtering.)

   - In your button handler, do not make a remote object call. Instead, go
   ahead and make your URLRequest to the .cfm file.
   - In your .cfm file, create an instance of your gateway and retrieve the
   data.
   - Then create an instance of your export cfc, call its method and pass in
   the data retrieved in the previous step.
   - Now do whatever's necessary to actually create everything as a
   spreadsheet.

It could be simpler - create a method in a cfc called exportCustomerData
which wraps the calls to the gateway and to the export function.

So the problem should have nothing to do with Flex. Just make a URLRequest
to a .cfm file - with parameters, if necessary - then handle all the
processing there. You can do all your testing without Flex being involved,
by calling the page directly in a browser.

Mainly, make certain you can create the spreadsheet properly from CF. That's
the key.

If none of this makes sense, or if you need more help, let me know a couple
of things:

   - what version of CF you are using, and
   - whether you've tested creating the spreadsheet in a .cfm file that way



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340587
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: are queries in CFC methods not allowed to be cached?

2010-12-06 Thread Tom McNeer

Yuilang,

On Mon, Dec 6, 2010 at 2:46 PM, Yuliang Ruan yuliangr...@hotmail.comwrote:


 put a cachedWithin in my cffunction and it never retrieves the cached
 version.  even when i'm hitting F5 back to back.


 what's the deal?  haven't found anything in docs saying u can't query cache
 in CFC


You can certainly cache a query within a CFC. Perhaps you could share the
code that creates the cachespan and runs the query, along with an
explanation of how you know a cached version is not being used.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339831
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Detect users based on country???

2010-11-23 Thread Tom McNeer

Just a word regarding the ipinfodb geolocation service:

The URL for the API has changed, and they now require registration for a
free application key that must be included in the request.

Go to http://www.ipinfodb.com for info.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339455
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Hosted VPS recommendations

2010-11-20 Thread Tom McNeer

Speaking of KickAss ...

On Sat, Nov 20, 2010 at 11:00 AM, Dan Vega danv...@gmail.com wrote:

 They have just been awesome.. I can't speak to their customer service
 because quite frankly, I have never needed them in 2 years


I actually have needed their assistance on a few occasions. And they do a
terrific job. Definitely above and beyond.

My only criticism of KAVPS (and they know this) is that they don't actually
make their customers and prospects aware of all the great tools they offer.
When you get the VPS, you also get a browser-based DNS Manager which lets
you directly access your info on their name servers, as well as a
browser-based tool to backup and restore any SQL Server databases you have
on their shared SQL instances.

For a few bucks a month, you can also add a monitoring service that lets you
define monitors for your site(s).

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339410
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Hosted VPS recommendations

2010-11-20 Thread Tom McNeer

On Sat, Nov 20, 2010 at 5:29 PM, Pete Ruckelshaus pruckelsh...@gmail.comwrote:


 I assume you installed your own copies of CF9 and MSSQL?  Or is that
 included with the VPS?  If so, it might really be something I need to look
 at...


Depends on what you buy. You can add CF9 Standard to the basic VPS for $35 a
month. The use of databases on a shared SQL Server is $10/month per
database.


Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:339420
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfm vs html pages

2010-11-08 Thread Tom McNeer

On Mon, Nov 8, 2010 at 5:12 PM, Wil Genovese jugg...@trunkful.com wrote:


 As long as you have a ColdFusion server (or one of the open source CFML
 servers) this is a perfect solution.


Although ... depending on how those 100 pages are maintained, you might want
to consider the Mura CMS. It's free, it's excellent, and it'll keep that
menu updated (along with lots of other things) itself.

http://www.getmura.com

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338973
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


List Sort help

2010-09-22 Thread Tom Jones

Hello,
I have a lit of version numbers and I need to sort them in the right order. 

cfset appVers = 3.6.1,3.6.5,3.6.3,3.6.10

How do I sort these so that they show in the right order starting with the 
highest first?

Thanks,
tom 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337321
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: List Sort help

2010-09-22 Thread Tom Jones

thanks,
but I get an error saying cant convert 3.6.1 to numeric.

tom

ListSort should work:

http://www.cfquickdocs.com/cf8/#ListSort

Although you might need to use the text sort instead of numeric.



andy 

Hello,
I have a lit of version numbers and I need to sort them in the right order. 

cfset appVers = 3.6.1,3.6.5,3.6.3,3.6.10

How do I sort these so that they show in the right order starting with the
highest first?

Thanks,
tom 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337323
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: List Sort help

2010-09-22 Thread Tom Jones

Hmm, OK ... I'm using CFMX7 and OpenBD 1.3

Thanks,
tom


What version of CF?

On CF9, the following works:

cfset appVers = 3.6.1,3.6.5,3.6.3,3.6.10

cfoutput#appVers#br /#listSort( appVers, 'numeric', 'desc' )#/cfoutput




 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337326
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: List Sort help

2010-09-22 Thread Tom Jones

Correction, it's only on OpenBD 1.3, that I have the problem. I will file a bug 
with them.

Thanks,
tom


Hmm, OK ... I'm using CFMX7 and OpenBD 1.3

Thanks,
tom


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337329
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


WebService question

2010-09-20 Thread Tom Jones

Hello,
I have a cfc which is used as a SOAP web service. This all works very well. But 
my question has to do with the arguments. I would like to have a argument 
called theXMLData for example ...

cffunction name=CheckIn access=remote returntype=boolean output=no
cfargument name=theXMLData

But I get an error when I try to send straight XML through a web service. I 
know I can use Base64 encoding, but it adds 30 - 40% overhead to the message. 
Is there any way to send the XML data as XML instead of encapsulating it?

The client software which is sending the data is a Objective-C app, which I 
wrote as well. So any suggestions are welcome.

Thanks,
tom 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337237
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Function to Output a query as an ol or ul

2010-08-26 Thread Tom King

Hi all,
Having not found an existing function to do this (output a query object as a
nested ol or ul), I thought I'd try my own hand at it - I'm *so* close. Yet,
not quite there.

Basically, my mind has given up trying to get the logic correct in when to
close /li elements. It works most of the time, but if I say have a nested
list, it gets a bit confused and doesn't close the /li - So XHTML throws a
wobbly.

Can anyone see where I'm going wrong? (or better still, happen to have a
function which does something similar I might adapt?)

Here's some dummy data and the function:
http://neokoenig.pastebin.com/k7EQ8B98

Thanks in advance for any insight...

T


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336573
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Function to Output a query as an ol or ul

2010-08-26 Thread Tom King

Hi John,
That's fine when you just want a straight:

ul
liSomething/li
/ul

But I'm trying to build something with nested ul/ol's from the same query
object..

T

On 26 August 2010 16:22, John M Bliss bliss.j...@gmail.com wrote:


 ul
   cfoutput query=MyQuery
  li#MyQuery.MyColumn#/li
   /cfoutput
 /ul

 On Thu, Aug 26, 2010 at 10:18 AM, Tom King mailingli...@oxalto.co.uk
 wrote:

 
  Hi all,
  Having not found an existing function to do this (output a query object
 as
  a
  nested ol or ul), I thought I'd try my own hand at it - I'm *so* close.
  Yet,
  not quite there.
 
  Basically, my mind has given up trying to get the logic correct in when
 to
  close /li elements. It works most of the time, but if I say have a
 nested
  list, it gets a bit confused and doesn't close the /li - So XHTML
 throws
  a
  wobbly.
 
  Can anyone see where I'm going wrong? (or better still, happen to have a
  function which does something similar I might adapt?)
 
  Here's some dummy data and the function:
  http://neokoenig.pastebin.com/k7EQ8B98
 
  Thanks in advance for any insight...
 
  T
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336575
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Function to Output a query as an ol or ul

2010-08-26 Thread Tom King

I've updated the dummy data in my example to include multiple depths (i.e
nesting)
http://neokoenig.pastebin.com/nGBphKVN

T

On 26 August 2010 16:27, Tom King mailingli...@oxalto.co.uk wrote:

 Hi John,
 That's fine when you just want a straight:

 ul
 liSomething/li
 /ul

 But I'm trying to build something with nested ul/ol's from the same query
 object..

 T

 On 26 August 2010 16:22, John M Bliss bliss.j...@gmail.com wrote:


 ul
   cfoutput query=MyQuery
  li#MyQuery.MyColumn#/li
   /cfoutput
 /ul

 On Thu, Aug 26, 2010 at 10:18 AM, Tom King mailingli...@oxalto.co.uk
 wrote:

 
  Hi all,
  Having not found an existing function to do this (output a query object
 as
  a
  nested ol or ul), I thought I'd try my own hand at it - I'm *so* close.
  Yet,
  not quite there.
 
  Basically, my mind has given up trying to get the logic correct in when
 to
  close /li elements. It works most of the time, but if I say have a
 nested
  list, it gets a bit confused and doesn't close the /li - So XHTML
 throws
  a
  wobbly.
 
  Can anyone see where I'm going wrong? (or better still, happen to have a
  function which does something similar I might adapt?)
 
  Here's some dummy data and the function:
  http://neokoenig.pastebin.com/k7EQ8B98
 
  Thanks in advance for any insight...
 
  T
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336577
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Function to Output a query as an ol or ul

2010-08-26 Thread Tom King

It sort of makes sense that this is a recursion issue, as I keep hitting the
'You need to know the future' (i.e the next row before it's happened)
feeling..

Re: Michael, yes, assume the query is sorted (i.e the depth is how deep the
containing UL is).

It does my head in. Recursion that is.

On 26 August 2010 16:35, Ian Skinner h...@ilsweb.com wrote:


  I *THINK* what you are trying to do is a classic problem for a
 recursive function.

 Create a function that handles one level of your list with the proper
 ul and li tags.

 Then for each record inside the logic for the li... test to see if
 there is another level, if so call the same function.

 Rough and incomplete pseudo code.

 cffunction name=myMenu...
   
 ul
 cfloop
 li
 #anMenuItem#
 cfif anotherLevelmyMenu()/cfif
 li
 /cfloop
 /ul


 cfreturn theMenu
 /cffunction

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336581
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Passing a Date Time Value to a function

2010-08-18 Thread Tom King

It's been one of those days already - can anyone tell me why the time gets
stripped out? I'm aware that I'm using 'date' as an argument type, but
datetime throws an error and there's nothing in CF8 docs on it... How do I
preserve the time data?

cffunction name=dateFormatter2 returntype=string
cfargument name=startDate type=date
cfargument name=endDate type=date
cfscript
var result =;
startDate=dateFormat(arguments.startdate, 'dd  ');
startTime=timeFormat(arguments.startdate, HH:MM);
endDate=dateFormat(arguments.enddate, 'dd  ');
endTime=timeFormat(arguments.enddate, HH:MM);
 /cfscript

cfsavecontent variable=result
cfoutputStart: #startDate#, #startTime# br /End: #endDate#,
#endTime#/cfoutput
   /cfsavecontent
   cfreturn result
 /cffunction

cfoutput
 #dateFormatter2(now(),now())#
/cfoutput

Cheers!
T


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336349
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Passing a Date Time Value to a function

2010-08-18 Thread Tom King

Brilliant- that's got it, thanks.

Can't really believe I've never hit that error in the past 6 years...
:)

Cheers!
T

On 18 August 2010 13:48, Jason Fisher ja...@wanax.com wrote:


 It's because you re-used the variable names startDate and endDate, so you
 re-wrote the value of each variable to strip out the time and then asked
 for the time.  Always be sure to 'var' all variables in a function, and
 you'll avoid the snafu.  If you do the following, you'll even get a runtime
 error letting you know the problem (cannot var a variable with the same
 name as an argument):



 cffunction name=dateFormatter2 returntype=string access=private
 output=No
cfargument name=startDate type=date required=Yes /
cfargument name=endDate type=date required=Yes /

cfscript
var result = ;
var startDate = ;
var startTime = ;
var endDate = ;
var endTime = ;

startDate = dateFormat(arguments.startDate, dd  );
startTime = timeFormat(arguments.startDate, HH:mm);
endDate = dateFormat(arguments.endDate, dd  );
endTime = timeFormat(arguments.endDate, HH:mm);
 /cfscript

cfsavecontent variable=result
cfoutput
Start: #startDate#, #startTime#
br /End: #endDate#, #endTime#
/cfoutput
/cfsavecontent

cfreturn result /
 /cffunction


 cfoutput
 #dateFormatter2(now(), now())#
 /cfoutput


 Use different var names, and it works fine:



 cffunction name=dateFormatter2 returntype=string access=private
 output=No
cfargument name=startDate type=date required=Yes /
cfargument name=endDate type=date required=Yes /

cfscript
var result = ;
var start = ;
var startTime = ;
var end = ;
var endTime = ;

start = dateFormat(arguments.startDate, dd  );
startTime = timeFormat(arguments.startDate, HH:mm);
end = dateFormat(arguments.endDate, dd  );
endTime = timeFormat(arguments.endDate, HH:mm);
 /cfscript

cfsavecontent variable=result
cfoutput
 Start: #start#, #startTime#
br /End: #end#, #endTime#
 /cfoutput
/cfsavecontent

cfreturn result /
 /cffunction


 cfoutput
 #dateFormatter2(now(), now())#
 /cfoutput



 

 From: Tom King mailingli...@oxalto.co.uk
 Sent: Wednesday, August 18, 2010 8:26 AM
 To: cf-talk cf-talk@houseoffusion.com
 Subject: Passing a Date Time Value to a function

 It's been one of those days already - can anyone tell me why the time gets
 stripped out? I'm aware that I'm using 'date' as an argument type, but
 datetime throws an error and there's nothing in CF8 docs on it... How do I
 preserve the time data?

 cffunction name=dateFormatter2 returntype=string
 cfargument name=startDate type=date
 cfargument name=endDate type=date
 cfscript
 var result =;
 startDate=dateFormat(arguments.startdate, 'dd  ');
 startTime=timeFormat(arguments.startdate, HH:MM);
 endDate=dateFormat(arguments.enddate, 'dd  ');
 endTime=timeFormat(arguments.enddate, HH:MM);
 /cfscript

 cfsavecontent variable=result
 cfoutputStart: #startDate#, #startTime# br /End: #endDate#,
 #endTime#/cfoutput
 /cfsavecontent
 cfreturn result
 /cffunction

 cfoutput
 #dateFormatter2(now(),now())#
 /cfoutput

 Cheers!
 T



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336351
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFXML and extra lines

2010-08-06 Thread Tom Jones

Hello,
I'm creating some xml using cfxml and I'm noticing empty lines in the xml 
result. When I look at the code I can kind of make out the these extra empty 
lines are in locations where i'm using a cfoutput, and cfset tags to help 
create the xml.

How can I clean up the xml so that it looks nice?

thanks,
tom 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336067
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFXML and extra lines

2010-08-06 Thread Tom Jones

There is also an option in CF administrator to control white space.

JPass





Yea, I have the white space compression turned on, but since it's happening in 
the xml it does not get removed. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336071
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFXML and extra lines

2010-08-06 Thread Tom Jones

I finally figured it out, this works like a champ!

tom

cfset myXSLT = 
?xml version=1.0 encoding=UTF-8?
xsl:transform version=1.0 
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xsl:output method=xml indent=yes /
xsl:strip-space elements=* /
xsl:template match=/
xsl:copy-of select=. /
/xsl:template
/xsl:transform

cfxml variable=root
...
/cfxml
cfset root = #XmlTransform(root,myXSLT)# 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336073
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How to interpret log files?

2010-07-15 Thread Tom Chiverton

On Wednesday 14 Jul 2010 14:08:25 you wrote:
 Have you tried the other logs? The CF specific logs? They are fairly
 straight forward if it's a cf specific problem.
 Even if it doesn't show you what happened it might help point you in the
 right direction.

The first 503 in the web server log should narrow it down, for instance.

-- 
Tom Chiverton
Helping to augmentatively monetize sexy paradigms as part of the IT team of 
the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335392
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logout and back button

2010-07-15 Thread Tom Chiverton

On Wednesday 14 Jul 2010 14:49:29 you wrote:
 If other programming languages can effectively end session variables, i
 still dont know what MX's problem is.

Citation needed.

-- 
Tom Chiverton
Helping to globally deliver collaborative best-of-breed eye-catching open-
source solutions as part of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335393
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: mod_rewrite question: redirecting to www.domain.com from domain.com with dynamic domain names

2010-07-15 Thread Tom Chiverton

On Thursday 15 Jul 2010 06:24:21 you wrote:
 I get how to redirect from domain.com to www.domain.com like this:
 
 rewritecond %{http_host} ^domain.com [nc]
 rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
 
 BUT, what if I do not know the domain name in advance, is there a way I can
 make it dynamic

Something like
rewritecond %{http_host} ^([a-zA-Z]).com [nc]
rewriterule ^(.*)$ http://www.$2.com/$1 [r=301,nc]
but I'd have to read the docs...

 if it already has a subdomain, ignore this rule.  So...

How can you determine this ?

-- 
Tom Chiverton
Helping to carefully participate eligible principle-centered products as part 
of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335394
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How to interpret log files?

2010-07-14 Thread Tom Chiverton

On Tuesday 13 Jul 2010 19:16:09 you wrote:
 My boss sent us a snapshot of an event log after a 503 error shut down dev,

Who was running code then ? What code was new ? If you can find the request 
that killed CF, you have a chance of finding the issue... it does happen from 
time to time, normally memory related.

-- 
Tom Chiverton
Helping to continuously maximize appliances as part of the IT team of the year 
2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335345
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logout and back button

2010-07-13 Thread Tom Chiverton

On Monday 12 Jul 2010 14:02:07 Michael Grant wrote:
 I don't think this is an Adobe issue. It's an application design issue.

This is an important point; by pressing 'back' the user can't see anything 
they couldn't see before, and maintain a permanent record of if they wanted to 
(by saving the page, for instance).
If you allow non-logged in users to perform actions that they shouldn't be 
allowed to, then you have a bigger problem than your log out work flow.

-- 
Tom Chiverton
Helping to collaboratively monetize deliverables as part of the IT team of the 
year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335292
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logout and back button

2010-07-12 Thread Tom Chiverton

On Saturday 10 Jul 2010 18:34:50 you wrote:
 however after logging out, i am able to click the back button and get back
 into the last page in the software.

On the logout action page, redirect them to a page that does a redirection to 
the login page.
This is commonly seen as a 'logout confirmation' page that says thank you for 
using blah blah ltd.

-- 
Tom Chiverton
Helping to appropriately industrialize professional cross-platform efficient 
patterns as part of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335249
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Builder Key Commands

2010-07-12 Thread Tom Chiverton

On Monday 12 Jul 2010 14:23:36 you wrote:
 AutoHotKey, which lets your script just about anything (at least for
 Windows, not sure if there is something similar for the Mac?).

Or Snippit's, if all you want to do is write your own templates and execute 
them with a shortcut.

-- 
Tom Chiverton
Helping to completely enable mindshares as part of the IT team of the year 
2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335262
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Does Application.cfm get run by .cfc web service?

2010-07-09 Thread Tom Jones

Hello,
I have a web service (SOAP) file called wsl.cfc and I was wondering if 
Application.cfm got called every time a remote client connected and ran a 
function from the wsl.cfc web service?

Thanks,
tom 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335211
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFMAIL isn't working at all

2010-07-07 Thread Tom Chiverton

On Tuesday 06 Jul 2010 14:15:10 you wrote:
 What happens if you log in as the same user that CF is running as
 (cfusion), and attempt to send mail to sendmail via telnet?

Or use a packet monitor like tethereal to see what is going on at the network 
level on the SMTP port.

-- 
Tom Chiverton
Helping to evangelistically implement patterns as part of the IT team of the 
year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335141
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Builder Auto-Indent

2010-06-29 Thread Tom Chiverton

On Tuesday 29 Jun 2010 06:41:34 Matt Quackenbush wrote:
 However, I do not see any such option in my installation.

You mean the whole 'ColdFusion' option is missing ? Or something else ?

-- 
Tom Chiverton
Helping to conveniently grow enterprise viral initiatives as part of the IT 
team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334917
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: coldfusion equivalent to php json_encode

2010-06-28 Thread Tom Chiverton

On Friday 25 Jun 2010 18:26:33 you wrote:
 however we cannot seem to find an equivalent in coldfusion, we have tried
 cfabort and setting the showError attribute, and with the SerializeJSON
 but doesnt appear to work

I suggest looking at what is being returned with FireBug or something, it's 
possible your results structure is slightly different. You can always build 
the JSON string by hand...

-- 
Tom Chiverton
Helping to appropriately pursue professional clicks-and-mortar viral action-
items as part of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334888
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Odd MySQL error...

2010-06-24 Thread Tom Chiverton

On Wednesday 23 Jun 2010 21:27:06 you wrote:
 If looks like your server is getting random intermittent connection drops
 from your MySQL server (I'm assuming it's remote)

You could turn off persistent connections too. 

-- 
Tom Chiverton
Helping to evangelistically innovate eigth-generation interfaces as part of 
the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334806
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Is it time for Adobe to Rebrand Cold Fusion?

2010-06-22 Thread Tom Chiverton

On Monday 21 Jun 2010 20:20:11 you wrote:
 I don't know if anyone from Adobe monitors this list, but I'm thinking it
 may be time to consider rebranding CF.

Sigh. Do we have to have the 'ActionScript Server' argument again too ?

-- 
Tom Chiverton
Helping to proactively network enterprise real-time integrated sexy content as 
part of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334717
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Tom Chiverton

On Tuesday 22 Jun 2010 14:11:24 you wrote:
 Hi All,
 
 I was wondering if somebody could help with a problem we have encountered
 since moving to ColdFusion 9 from ColdFusion 8.
 
 When we use CFContent to serve a file, it fails on large files (300+mb) but
 works on smaller (-30mb) files. It fails consistantly without a ColdFusion
 error, the browser receives a 404 error

Does it get this error immediately ? Or after transferring some of the file ?
I'd suspect some setting you've not copied into the new server, like request 
timeout or RAM limits.

-- 
Tom Chiverton
Helping to completely establish visionary second-generation one-to-one niches 
as part of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334725
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Tom Chiverton

On Tuesday 22 Jun 2010 14:57:12 Daniel Mackey wrote:
 cfheader name=Content-Disposition value=attachment; filename=cf9.exe
 cfcontent type=unknown file=C:\temp\cf9.exe deletefile=No

Confirmed broken I think - congratulations, you've found a bug in ColdFusion 
:-)

I'm on 64bit SuSE Linux here, so used the CF9.0.0 installer for that O/S - 
file not found in FireFox.
Change the 'file' patch in CFCONTENT to a much smaller file like /etc/hosts 
and it all works as expected. Fun fun fun.

-- 
Tom Chiverton
Helping to continually disseminate vertical eigth-generation exceptional B2C 
e-tailers as part of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334729
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFContent failing on large files since moving to ColdFusion 9

2010-06-22 Thread Tom Chiverton

Update:
I now can't get anything to work on the box, because :

Error,jrpp-15,06/22/10,15:10:25,billpack,Java heap space The 
specific sequence of files included or processed is: 
/home/chivertont/workspace/billpack/webroot/t.cfm'' 
java.lang.OutOfMemoryError: Java heap space

Of course a swift bounce of CF fixes that, but I wonder if you could try 
increasing you heap size to beyond the file size and see what happens ?

-- 
Tom Chiverton
Helping to greatly seize B2B mission-critical compelling niches as part of the 
IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334731
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF9 Developer Edition - IP Addresses

2010-06-21 Thread Tom Chiverton

On Wednesday 16 Jun 2010 19:35:54 you wrote:
   The new wording is, for each license that you *buy*, you can use that
 license for:
 * One production environment
 * One staging environment
 * One test environment

Based on http://www.terrenceryan.com/blog/post.cfm/coldfusion-9-testing-
staging-and-development-changes-to-eula although section 3.2 of the EULA says 
what you said, Terrence says in the comments 
purchase of a production license should enable as many backend systems that 
you want, as long as they are not full production, ... The EULA might be read 
the other way, but our intention was what I said. 

-- 
Tom Chiverton
Helping to continuously syndicate meta-services as part of the IT team of the 
year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334672
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Gudies on how to create a Webservice and Security in Adobe ColdFusion 9? Please :)

2010-06-21 Thread Tom Chiverton

On Monday 21 Jun 2010 15:33:30 Glyn Jackson wrote:
 So I want to know the best way forward in terms of a webservice, basic html
 posts? how would you open this up?

If you make a CFC-based interface to it, these are automatically available as 
standard WSDL-based web services that should work OK with anything.

 what about security? how do I restrict others from acccess this as it needs
 to be open over https?

The standard approach would be to have a login() method that returns a time-
limited (and/or locked to IP address) token, and then each other method 
accepts and validates the token.
ColdSpring's AOP can help here, see for instance 
http://www.rachaelandtom.info/content/slides-and-files-my-scotch-road-talk-
sotr09 for a quick ready-to-run demo 

Don't forget things like http://www.rachaelandtom.info/content/protecting-
coldfusion-applications-common-attacks though !

-- 
Tom Chiverton
Helping to continuously develop guinine cutting-edge channels as part of the 
IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334681
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CF9 Developer Edition - IP Addresses

2010-06-16 Thread Tom Chiverton

does anyone know how to edit the allowed allocated IP addresses for the CF9

Restart the CF server.



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334594
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Finding the value of a key in a nested structure

2010-06-15 Thread Tom King

Cheers Ray - simple is good!! :)

On 14 June 2010 17:02, Raymond Camden rcam...@gmail.com wrote:


 Evaluate is slow - comparatively. It isn't horrible though. The main
 reason I will complain about evaluate is when it isn't strictly
 necessary. Technically it isn't in your case. You could break up the
 string into parts and check the existence of each - but I think your
 code is fine (and a hell of a lot simpler).

 On Mon, Jun 14, 2010 at 9:44 AM, Tom King mailingli...@oxalto.co.uk
 wrote:
 
  nevermind - found the solution!
 
  ended up with:
 
 cffunction name=checkPermission
 cfargument name=path
 cfif IsDefined('session.currentUser.permissions.' 
  arguments.path)
 cfif evaluate('session.currentUser.permissions.' 
  arguments.path)
  cfreturn true
  cfelse
  cfreturn false
  /cfif
 cfelse
 cfreturn false
 /cfif
 /cffu

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334568
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: concatenating email address

2010-06-15 Thread Tom King

So in the CF Code, you don't escape the  and 's.

So:

cfset the_from = the_from  ,   fname lnameemail  

will get you the string to use in your CFMAIL tag,

then when you're displaying it via cfoutput, use:

#htmlCodeFormat(the_from)#

or, to escape the characters, but don't surround with PREs

#htmlEditFormat(the_from)#

T

On 15 June 2010 15:07, daniel kessler dani...@umd.edu wrote:


 Problem's not the concatenation, it's just the browser interprets anything
 between  and  as tags, so they're hidden by design.
 
 
 Once you have your list, try this:
 
 
 cfoutput#htmlCodeFormat(the_from)#/cfoutput

 I tried this and the email message failed anyway.  It looked great when I
 did the output to a web page, but on checking the source, it instead had:
 PREDaniel Kesslerlt;dani...@umd.edu kessler%26lt%3bdani...@umd.edu
 gt;/PRE

 Clearly, I want the actual characters instead of the PRE and lt;

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334573
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Finding the value of a key in a nested structure

2010-06-14 Thread Tom King

Ok, my brain is hurting - I know this should be possible, but I can't quite
get the syntax.

I need to pass a string (a path to a structure which contains a boolean in
the session scope) into a function, which then checks the value:

i.e

cfif checkPermission(email.send.all)
Show a form or page
/cfif

cffunction name=checkPermission
cfargument name=path
cfif session.currentUser.permissions['#arguments.path#']
cfreturn true
cfelse
cfreturn false
/cfif
/cffunction

So in this instance, CF is looking for
session.currentUser.permissions['email.send.all'] - i.e a structure key name
of 'email.send.all' , rather than
session.currentUser.permissions.email.send.all

Is there an elegant solution to this problem?

Ta
T


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334528
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Finding the value of a key in a nested structure

2010-06-14 Thread Tom King

Cheers Andy -
That's fine if I want to check the struct exists, but I'm trying to directly
test against the value of that path (which in this case is a boolean)...?
T


On 14 June 2010 15:25, Andy Matthews li...@commadelimited.com wrote:


 When working with structures nested that deeply you might consider
 IsDefined
 instead.

 cfif IsDefined('session.currentUser.permissions.'  arguments.path)

 It's not a best practice necessarily, but it would prevent a whole bunch of
 StructKeyExists calls.


 andy


 -Original Message-
 From: Tom King [mailto:mailingli...@oxalto.co.uk]
 Sent: Monday, June 14, 2010 9:20 AM
 To: cf-talk
 Subject: Finding the value of a key in a nested structure


 Ok, my brain is hurting - I know this should be possible, but I can't quite
 get the syntax.

 I need to pass a string (a path to a structure which contains a boolean in
 the session scope) into a function, which then checks the value:

 i.e

 cfif checkPermission(email.send.all)
 Show a form or page
 /cfif

 cffunction name=checkPermission
 cfargument name=path
 cfif session.currentUser.permissions['#arguments.path#']
 cfreturn true
 cfelse
 cfreturn false
 /cfif
 /cffunction

 So in this instance, CF is looking for
 session.currentUser.permissions['email.send.all'] - i.e a structure key
 name
 of 'email.send.all' , rather than
 session.currentUser.permissions.email.send.all

 Is there an elegant solution to this problem?

 Ta
 T




 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334530
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Finding the value of a key in a nested structure

2010-06-14 Thread Tom King

nevermind - found the solution!

ended up with:

cffunction name=checkPermission
cfargument name=path
cfif IsDefined('session.currentUser.permissions.' 
arguments.path)
cfif evaluate('session.currentUser.permissions.' 
arguments.path)
 cfreturn true
 cfelse
 cfreturn false
 /cfif
cfelse
cfreturn false
/cfif
/cffunction

(Never used evaluate() before, heard it was bad..?)

T


On 14 June 2010 15:29, Tom King mailingli...@oxalto.co.uk wrote:

 Cheers Andy -
 That's fine if I want to check the struct exists, but I'm trying to
 directly test against the value of that path (which in this case is a
 boolean)...?
 T



 On 14 June 2010 15:25, Andy Matthews li...@commadelimited.com wrote:


 When working with structures nested that deeply you might consider
 IsDefined
 instead.

 cfif IsDefined('session.currentUser.permissions.'  arguments.path)

 It's not a best practice necessarily, but it would prevent a whole bunch
 of
 StructKeyExists calls.


 andy


 -Original Message-
 From: Tom King [mailto:mailingli...@oxalto.co.uk]
 Sent: Monday, June 14, 2010 9:20 AM
 To: cf-talk
 Subject: Finding the value of a key in a nested structure


 Ok, my brain is hurting - I know this should be possible, but I can't
 quite
 get the syntax.

 I need to pass a string (a path to a structure which contains a boolean in
 the session scope) into a function, which then checks the value:

 i.e

 cfif checkPermission(email.send.all)
 Show a form or page
 /cfif

 cffunction name=checkPermission
 cfargument name=path
 cfif session.currentUser.permissions['#arguments.path#']
 cfreturn true
 cfelse
 cfreturn false
 /cfif
 /cffunction

 So in this instance, CF is looking for
 session.currentUser.permissions['email.send.all'] - i.e a structure key
 name
 of 'email.send.all' , rather than
 session.currentUser.permissions.email.send.all

 Is there an elegant solution to this problem?

 Ta
 T




 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334531
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: HTML 5, has anyone done anything more than played with it

2010-06-02 Thread Tom Chiverton

On Tuesday 01 Jun 2010 20:44:12 you wrote:
 I've seen a couple of Javascript libraries that create support for
 the semantic tags (header, footer etc), but support for canvas,
 video and audio 

And even then, what codec are you going to  use for VIDEO ? All 3 ?

 won't be mainstream unitl IE9 comes out (I'm not a
 M$ fanboy, but it is the most widely used browser).

IE overall is, but you really have to look at each version as a separate 
product, in which case it really isn't :-) 

-- 
Tom Chiverton
Helping to efficiently unleash vertical revolutionary edge-of-your-seat 
prospective action-items as part of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334220
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: HowTo Convert a String to an Array?

2010-06-02 Thread Tom Chiverton

On Thursday 20 May 2010 06:22:14 you wrote:
 Given the following string in Coldfusion:
 
 ul[0][id]=main1 ul[0][children][0][id]=child2 ul[0][children][0][class]=
  ul[1][id]=main3 ul[2][id]=main4 ul[3][id]=main5 I'm looking for help
  understanding how to use the string above to create an array, which will
  then allow be to later build out the following:

You probably want to split it on '' to start with. Take a look in the docs at 
the string functions.

-- 
Tom Chiverton
Helping to vitalistically promote prospective m-commerce as part of the IT 
team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334222
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF 9 Hosting

2010-05-21 Thread Tom McNeer

I'll add my recommendation for KickAssVPS -- although I will also say that I
maintain a client's dedicated server at Hosting.com/HostMySite, and the
engineers there - one in particular - have been very helpful in tuning the
JVM on that dedicated server.

As far as KickAss goes, one of the things I like (in addition to the
reliability) is that they have a couple of very handy tools: first, you can
manage DNS through a web interface, so if you add a site, you can manage the
DNS yourself, without having to put in a support request. Second, if you use
their shared SQL Server service (which has also been very reliable), they
have a web-based tool that lets you backup and restore databases on your
own, downloading the backup if you want.

They of course do their own SQL backups. But for instance, if you're moving
a client to your VPS who has an existing SQL server database, you just ask
KAVPS to create the new database instance. Then, when you're ready to move,
you just get a backup of the existing database and do the restore yourself.

I also find this functionality helpful for getting backups of production
databases to periodically refresh the versions on my dev server.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333906
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Remove html characters

2010-05-18 Thread Tom Chiverton

On Tuesday 18 May 2010 15:33:01 you wrote:
 #REReplace(trim(MYTEXTSTRING), [^]*, , All)#

But if I say that this is  the other thing, which is  that thing, it'll go 
all wrong...

-- 
Tom Chiverton
Helping to centrally extend industry-wide plug-and-play slick products as part 
of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333781
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Automate FTP

2010-05-17 Thread Tom Chiverton

On Saturday 15 May 2010 03:20:56 you wrote:
 I'm not really getting any errors when using cfexecute, just nothing is
 happening or transferring.

Assuming it's not a timeout or memory limit (both of which would give errors), 
have you tried running a packet sniffer like Wireshark to see what is really 
going on during the FTP session ?

-- 
Tom Chiverton
Helping to heterogeneously utilize m-commerce as part of the IT team of the 
year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333746
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Scheduled task isn't running the item in the url

2010-05-14 Thread Tom Chiverton

On Friday 14 May 2010 15:34:46 you wrote:
 Dave, I'm still not able to get this cfschedule working.  When I say run
  it separately, it means that instead of cfschedule activating the cf code
  that I have (which then sends email) that I instead bring up the url on my
  own browser to have it do it's task.  That makes it run (and send my urls)
  just fine.  So, no I'm not doing it from the server console, which I don't
  have access to.

This is almost always because your browser or computer is doing something 
different to the server's browser.
Could it be DNS (change not getting there yet) or permissions (automatic 
Windows domain authorisation, for instance, or saved credentials in your 
browser).
Testing directly on the server or locally with something like 'wget' is 
normally the best path forwards.

-- 
Tom Chiverton
Helping to heterogeneously scale web-readiness as part of the IT team of the 
year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333695
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: New CF security bulletin

2010-05-13 Thread Tom Chiverton

On Wednesday 12 May 2010 19:21:35 you wrote:
 http://forta.com/blog/index.cfm/2010/5/11/ColdFusion-Security-Hotfix-Releas
 ed#comments

Oh my.
That's fairly impressive.

-- 
Tom Chiverton
Helping to interactively deploy total back-end strategic B2B synergies as part 
of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333643
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Software Recommendations

2010-05-13 Thread Tom McNeer

On Thu, May 13, 2010 at 4:07 PM, Jon Sahlin jon.sah...@thegoodbead.comwrote:


 I'm looking for recommendations on CF-based solutions for a CMS,


Mura


 Blog


Mango


 , and enterprise-level shopping cart / online store.


Quill Designs' SiteDirector


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333666
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Software Recommendations

2010-05-13 Thread Tom McNeer

If you want to stay in the CF world for the Blog, I'd go with MangoBlog (

 http://www.mangoblog.org/) Don't know the developer, but they did a
 fantastic job. More apps should be this well built.


It's developed by Laura Arguello at ASFusion, developers of the terrific
Mate Flex framework.



 Ecom, can't say I've seen a CF powered one that really blows me away.


To be honest, even though I did - and do - suggest SiteDirector, it's not as
slick as the other two. But it does its job well.



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333668
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DateAdd value different on different servers

2010-04-22 Thread Tom McNeer

Steve,

On Thu, Apr 22, 2010 at 8:47 AM, DURETTE, STEVEN J (ATTASIAIT) 
sd1...@att.com wrote:


 I believe it is doing this because even though you are adding a specific
 amount of seconds the system automatically knows to make adjustments
 based on its time zone or if it uses daylight savings time or not.


If dateAdd worked that way, you'd have to adjust for the server time zone
constantly. It doesn't. It's just math.

I can confirm that two servers, both running CF9 on Windows Server 2008,
both in the Eastern time zone, both recognizing that Daylight Savings Time
is in effect, are returning date/time values one hour apart.

Moreover, I can confirm that a server in the Central time zone, also
recognizing that Daylight Savings Time is in effect, returns a date/time
value that is the same as one of the EDT servers, and one hour _later_ (not
earlier) than one of the EDT servers.

After I've played with the JVMs, I'll report back.



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333083
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DateAdd value different on different servers

2010-04-22 Thread Tom McNeer

Okay,

So - it wasn't a JVM issue. Updating it did not change the results.

And Steve was right, in a way. But I still don't understand why it should be
this way.

First, Steve, I understand what you're saying about whenever you display a
time. But in practice, I'm not displaying a time at all. I'm simply
creating a date/time value and adding a number of seconds to it, then
inserting into a database.

So to my way of thinking - and according to every doc I've ever read - the
dateAdd function should do exactly what you tell it to do: just add the
increments to the original date.

But what's happening DOES involve DST - though not the time zone. I don't
know why. It shouldn't. But it does, at least in CF9.

Try this for yourself: Daylight Savings Time began at 2:00 AM Eastern on
March 14, 2010. So run the following:

cfset myDate = createDate(2010,3,14) /
cfdump var=#myDate# /brbr
cfset myDate2 = DateAdd('s',1271779666,myDate)
cfdump var=#myDate2# /brbr

myDate is two hours _before_ DST went into effect. On two different CF9
servers, one on EDT, the other on CDT, the result for myDate2 was:
{ts '2050-07-01 17:07:46'}

Now change the createDate to (2010,3,15) - _after_ DST went into effect. On
the same servers, the result was:
{ts '2050-07-02 16:07:46'}

The original date was changed by a day. But the result of the dateAdd
statement changed by 23 hours.

I wish I could test this on CF8 and/or 7, but the only servers with those
versions to which I have access are in Arizona, where they don't use DST.
Those servers return the 16:07:46 timestamp. But without having the machines
set to DST, I can't tell if CF is acting differently or not.

If someone has access to those versions on a DST machine, please try this
and see what you get. I'd really be curious to know if this is a CF9 thing.

Maybe I've just misunderstood how dateAdd works - although the docs simply
say Adds units of time to a date. There's no mention of DST affecting it.
But it's certainly doing so.

So in brief: when you dateAdd, the result will be affected by DST  - at
least, based on whether your added timespan crosses the DST threshhold for
the current year. I have no idea if it tries to figure out whether the
resulting date/time is during DST or not.

In most instances, this might not even be noticed. But in my case, where I'm
receiving a timestamp from an external device as a Unix epoch time, then
converting it to a date/time object by adding the epoch time to the date of
1/1/1970, the result is not what I want, since all I'm trying to do is
recreate the time from the original device. The DST addition causes the
timestamp to be wrong by an hour.

Frustrating, but at least I now understand what's happening. Hope this will
help someone else avoid the same frustration.



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333085
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DateAdd value different on different servers

2010-04-22 Thread Tom McNeer

Hi Judah,

Yep. I understand. And the consistency is there. I just didn't know that
dateAdd made the adjustment, though I knew Java knew the difference.

And though it may have been discussed earlier on the list, I sure couldn't
find it in all the Googling I did before I posted.

Anyway, now that I understand what's happening, it's an easy workaround:
getTimeZoneInfo().isDSTon.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333088
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DateAdd value different on different servers

2010-04-22 Thread Tom McNeer

On Thu, Apr 22, 2010 at 1:37 PM, Judah McAuley ju...@wiredotter.com wrote:


 I'm planning on using timezone.cfc for a lot of my calendar-related
 functionality in the future due to these issues:


It's an excellent resource. I use it a good bit. But as I say, I just wasn't
aware of this particular issue, though your explanation makes perfect sense.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333090
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CRUD screens...

2010-04-21 Thread Tom Chiverton

On Monday 19 Apr 2010, Justin Scott wrote:
 Just curious what people are using to make/manage CRUD screens these days
 for data management applications.  Anything new in this area over the last
 couple of years?

ColdFusion Builder has a wizard.

-- 
Helping to enthusiastically cultivate low-risk out-of-the-box 
principle-centered market-driven channels as part of the IT team of the year 
2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333051
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


DateAdd value different on different servers

2010-04-21 Thread Tom McNeer

There's a simple answer to this one; it's just beyond me.

I have a routine that takes a Unix time value which is passed from an
external device and creates a date/time object. A client complained that the
time being generated was an hour off. He's right. But I can't figure out
why.

As a test, I ran the following code on three different servers, all running
CF 9:

-
cfset myDate = DateAdd('s',1271779666,createDate(1970,1,1))
cfoutput #dateFormat(myDate,'long')# -
#timeformat(myDate,'long')#/cfoutput


The results:

Server 1 - Dev server, Eastern Time Zone
April 20, 2010 - 4:07:46 PM GMT

Server 2 - Production server, Eastern Time Zone
April 20, 2010 - 5:07:46 PM EDT

Server 3 - Production server, Central Time Zone
April 20, 2010 - 5:07:46 PM CDT

So why are the latter two servers inserting time zone information, and why
are they advancing the time an hour?

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333065
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DateAdd value different on different servers

2010-04-21 Thread Tom McNeer

Thanks for the replies, but mainly they tell me that I've muddied the water.

Let me try to be clearer:

I shouldn't have even mentioned the Unix value, because that's not relevant.
Just forget that I'm getting a Unix value completely.

And I definitely should not have shown the time zones, because they
shouldn't be relevant.

So let me start over. Forget everything but the following:

First, I'm saying, Create a date/time value for January 1, 1970.

myDate = createDate(1970,1,1)

That's going to result in an object that represents midnight on 1/1/1970.
Doesn't even matter that it's the epoch date.

Then I'm adding a number of seconds:

myDate2 = DateAdd('s',1271779666,myDate)

When these two values are dumped, two servers show the following:

{ts '1970-01-01 00:00:00'}

 {ts '2010-04-20 17:07:46'}

One server shows this:

{ts '1970-01-01 00:00:00'}

 {ts '2010-04-20 16:07:46'}
=

So - we're not dealing with time zones. We're simply creating date/time
values. Why does the result of the dateAdd function return different values?

That's the real issue. Sorry for being so confusing before.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333069
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DateAdd value different on different servers

2010-04-21 Thread Tom McNeer

On Wed, Apr 21, 2010 at 5:32 PM, Jason Fisher ja...@wanax.com wrote:


 I'd say that earns a WTF.


I'd agree.


  It would appear that one of the servers must
 be adjusting the original CreateDate(), but your output shows that it's
 just not happening that way.


And in the real world, the _one_ server that's different is actually
correct. By that I mean, in my application, the external devices (many of
them) are sending in the seconds value as a Unix epoch value. And the
_one_ server that's different is the one where the final date/time value
matches what the users are inputting on the external devices.


  I always thought that the DateAdd() was a
 simple math function.


Me, too.


  What are the differences (if any) in JVM and CF
 versions?


CF versions are the same:  9.0.0.251028 - Standard

One of the wrong servers is using the JVM installed by default with CF 9.
The other wrong server is using 1.6.0_17.
The right server is using 1.6.0_18.

I'll update the JVM on one of the wrong servers in the morning and see
what that does.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333073
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: PDF alternate to cfdocument [spamtrap bayes][spamtrap heur][auto-ip]

2010-04-06 Thread Tom Chiverton

On Tuesday 06 Apr 2010, Paul Hastings wrote:
 On 4/6/2010 10:52 AM, Craigsell wrote:
  I would use iText (http://itextpdf.com/).  It's the same code that runs

 i think he specified easy ;-)

There are a ton of good examples on the first page of the obvious google 
search.

-- 
Helping to evangelistically reintermediate virtual market-growth as part of 
the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332625
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: reverse engineer PHP to CF

2010-03-31 Thread Tom Chiverton

On Monday 29 Mar 2010, Glyn Jackson wrote:
 I no nothing about PHP. can any one reverse engineer this following in CF?

It appears to allow the display and overwrite of any file the user knows the 
path of (or can guess) and listing of all the files in the current directory 
(web root?).
Shouldn't be too hard to rewrite sensibly with proper path handling :-)
-- 
Helping to preemptively disintermediate out-of-the-box frictionless virtual 
mindshares as part of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332487
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Builder Released!

2010-03-24 Thread Tom Chiverton

On Wednesday 24 Mar 2010, Andrew Scott wrote:
 Having said all that on a comparison I fail to see where it is given tru
 value for money, when there are better, faster free alternatives ?

Snap. Compare what it does to a 'proper' IDE like what JetBrains have for 
Java, and you see it's *much* closer to CFEclipse than anything else.
Maybe version 2 :-)

-- 
Helping to synergistically market functionalities as part of the IT team of 
the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332162
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Features (Re: ColdFusion Builder Released!)

2010-03-24 Thread Tom Chiverton

On Tuesday 23 Mar 2010, b...@bradwood.com wrote:
 As a ColdBox user, that would be really really nice for the IDE to be
 aware of how the autowiring is going to work at run time.  I never
 realized how useful it was for your IDE to know about the variables
 and objects in your code until I did some work in Java/Eclipse and
 marveled at the usefulness of simply clicking a class and being taken to
 the corresponding .java file etc.

Exactly - it's this sort of (static) analysis that makes or breaks an IDE, and 
CFB has none of it except some clumsy 'variable mappings' which a lot of the 
time it 'should' be able to figure for itself.

-- 
Helping to authoritatively incentivize mission-critical e-business as part of 
the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332163
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: iText version in CF9

2010-03-22 Thread Tom Chiverton

On Monday 15 Mar 2010, Craigsell wrote:
 I jsut started working with iText version 5.0.1 from my CF8 8.0.0 instance.
  Soon we will be migrating to CF9.  Does anyone know the itext version that
 ships with CF9 and if there are any differences with the latest version?  I
 know the new version was refactored so that it no longer conflicts with the
 older  one.

We're accessing iText through the JavaLoader (on RIAForge) project so we don't 
have to worry about these things. The only way to know for sure in your case 
would be to run it and see, but if it makes a subtle change in the output you 
wont know with eye balling every output...

-- 
Helping to vitalistically engage appliances as part of the IT team of the year 
2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331926
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


sql query builder, web based

2010-03-17 Thread Tom Jones

Hello,
I was wondering if there were any good sql query builders that I can add to my 
application. I found a jquery plugin called Sqlquerybuilder 
(http://plugins.jquery.com/project/SQL_QUERY_BUILDER). It's almost what I need 
but the saved queries will break if the schema changes since all of the table 
columns are stored as integers for point in an array.

Thanks,
tom



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331820
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


sql query builder, web based

2010-03-17 Thread Tom Jones

Hello,
I was wondering if there were any good sql query builders that I can add to my 
application. I found a jquery plugin called Sqlquerybuilder 
(http://plugins.jquery.com/project/SQL_QUERY_BUILDER). It's almost what I need 
but the saved queries will break if the schema changes since all of the table 
columns are stored as integers for point in an array.

Thanks,
tom



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331819
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


WebBased SQL query builder

2010-03-17 Thread Tom Jones

Hello,
I was wondering if there were any good sql query builders that I can add to my 
application. I found a jquery plugin called Sqlquerybuilder 
(http://plugins.jquery.com/project/SQL_QUERY_BUILDER). It's almost what I need 
but the saved queries will break if the schema changes since all of the table 
columns are stored as integers for point in an array.

Thanks,
tom


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331821
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


sql query builder, web based

2010-03-17 Thread Tom Jones

Hello,
I was wondering if there were any good sql query builders that I can add to my 
application. I found a jquery plugin called Sqlquerybuilder 
(http://plugins.jquery.com/project/SQL_QUERY_BUILDER). It's almost what I need 
but the saved queries will break if the schema changes since all of the table 
columns are stored as integers for point in an array.

Thanks,
tom


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331822
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


WebBased SQL query builder

2010-03-17 Thread Tom Jones

Hello,
I was wondering if there were any good sql query builders that I can add to my 
application. I found a jquery plugin called Sqlquerybuilder 
(http://plugins.jquery.com/project/SQL_QUERY_BUILDER). It's almost what I need 
but the saved queries will break if the schema changes since all of the table 
columns are stored as integers for point in an array.

Thanks,
tom


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331824
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfspreadsheet write problem within function

2010-03-10 Thread Tom McNeer

Leigh,

Thanks for the reply and sorry for the slow response on my part. Somehow I
missed your reply.


On Fri, Mar 5, 2010 at 8:49 PM, Leigh cfsearch...@yahoo.com wrote:


  Can someone just confirm that I'm not crazy

 You are not crazy. A very quick test produced the same results for me.
 Interestingly, the error disappeared if I removed the VAR declaration for
 the ss variable.  Obviously not a viable solution though.


Thanks. Good to know. I'll file a bug report. Weird that the VAR declaration
would make a difference.



 Try using the SpreadSheetWrite() function instead.



Thanks. I will. By the way, have you confirmed that the SpreadsheetWrite()
function works inside a cffunction? (I'm not being lazy. I just won't have a
chance to get back to this for a couple of days.)


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331538
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Forms Processing: Updating Only Changed Data

2010-03-10 Thread Tom McNeer

Some of the answer depends on your overall architecture. The first step
would be to retrieve the relevant database record using the ID passed from
your form. That would give you, in some manner (a query record, a bean,
whatever) a representation of the existing data.

Then you could write a routine that compares the values of the retrieved
record/bean with those submitted in the form.

You might also think of this as two different tasks: 1) updating the record,
and 2) recording (elsewhere) the changes.

The second task is the audit, of course. That's why you're doing the
comparison. As for the first, there's no particular reason to worry about
which fields have been changed when you're updating the record. Just use all
the form fields and do an update. By definition, the changes will be
recorded and the data that has not changed will remain the same. That avoids
the necessity of writing a complex dynamic update statement, which could be
a big benefit with as many fields as you seem to have.



-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331562
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cfspreadsheet write problem within function

2010-03-05 Thread Tom McNeer

Has anyone encountered problems using cfspreadsheet action='write' inside
a function?

Take a look at the code below:
==
cfset myQuery = queryNew(ID,Name)
cfset queryAddRow(myQuery) /
cfset querySetCell(myQuery,ID,1) /
cfset querySetCell(myQuery,Name,Lucy)
cfset queryAddRow(myQuery) /
cfset querySetCell(myQuery,ID,2) /
cfset querySetCell(myQuery,Name,Desi)
cfdump var=#myQuery#
cfset path = C:\lucy.xlsx /
cfdump var=#path#
cffunction name=build access=public returntype=any
output=false
cfargument name=myQuery type=query required=true /
cfargument name=path type=string required=true /
cfset var ss = spreadsheetNew(Desilu,true) /
cfset spreadSheetAddRow(ss,ID,Character Name)
cfloop query=arguments.myQuery
cfset spreadsheetsetCellValue(ss,arguments.myQuery.ID,
arguments.myQuery.currentRow+1,1) /
cfset spreadsheetsetCellValue(ss,arguments.myQuery.Name,
arguments.myQuery.currentRow+1,2) /
/cfloop
!---cfspreadsheet action=write filename=#arguments.path#
name=ss overwrite=true sheetname=Fred /---
cfreturn ss
/cffunction
cfset desilu = build(myQuery,path) /
cfdump var=#desilu#
cfspreadsheet action=write filename=#path# name=desilu
overwrite=true sheetname=Desilu /
===
Note the commented-out line within the function, writing the spreadsheet
file. If it remains commented, the spreadsheet is written correctly by the
final action in the code.

However, if the comments are removed, an error occurs during the function:
'Specified variable ss is not-defined or invalid.'

Yet obviously, the variable is defined. And when it is returned outside the
function, it is valid for writing a spreadsheet in the second
cfspreadsheet tag.

The error only occurs when I apply the 'write' action within a function. And
seeing as how I really want all of this to take place within a CFC, it needs
to happen *inside* a function.

Can someone just confirm that I'm not crazy, and perhaps give me some
advice? Googling hasn't help. And there don't seem to be any
spreadsheet-related bugs filed in the Adobe bugbase.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331391
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Local DEV setup, multiple projects/websites

2010-03-02 Thread Tom Chiverton

On Monday 01 Mar 2010, Cameron Childress wrote:
 end up with a buncha hosts file entries everyone on the team has to
 manage.  For me, it's much less work. YMMV.

Well, of course, but I don't understand how differing live and development 
environments is ever a good thing.


-- 
Helping to collaboratively iterate out-of-the-box compelling high-end 
ubiquitous deliverables as part of the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331246
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Local DEV setup, multiple projects/websites

2010-03-01 Thread Tom Chiverton

On Friday 26 Feb 2010, Cameron Childress wrote:
 On Thu, Feb 25, 2010 at 9:05 PM, Jeff U j...@uspokerdirectory.com wrote:
  I'm hoping I can create all links RELATIVE and that way they work
  both locally as well as on production with no code changes what-so-ever.

 By far, the easiest solution is to make your links relative to the
 current page/directory rather than the root.  Instead of this:

Well, maybe, but you are incurring a lot of work.
It's better to just use name based virtual hosts in your web server as others 
have suggested - as a bonus your dev. environment will more closely match 
live, which leads to less surprise at deploy time :-)

-- 
Helping to adaptively participate end-to-end sticky 24/365 services as part of 
the IT team of the year 2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331205
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Serious, intermittent problem with CF Web Service

2010-03-01 Thread Tom Chiverton

On Monday 01 Mar 2010, Leon Miller-Out wrote:
 We're still getting the error after updating to the latest Sun 1.4.2 JRE,

Did I miss why you couldn't try a much more recent one ?

-- 
Helping to advantageously maintain IPOs as part of the IT team of the year 
2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.co

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331206
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


<    1   2   3   4   5   6   7   8   9   10   >