Re: Ajax Post Value on CF Side

2015-04-07 Thread Dean Lawrence

Once you convert it into a CF structure using deserializeJSON, you can then
use cfdump to see how CF interprets it.

On Tue, Apr 7, 2015 at 12:31 PM Robert Harrison rharri...@aimg.com wrote:


 Let me make this simpler.  The value being send via an ajax post is:

 Object {name: rid, value: 1}

 If I just want to dump that value/object how to I do it?   I have no idea
 what name CF see that as.

 Robert Harrison
 Full Stack Developer
 AIMG
 rharri...@aimg.com
 Main Office: 704-321-1234  ext.118
 Direct Line: 516-302-4345
 www.aimg.com



 

~|
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:360420
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Ajax Post Value on CF Side

2015-04-07 Thread Dean Lawrence

You can very easily convert it to a structure using the deserializeJSON
function in CF. Here is a link with some examples of working with JSON in
ColdFusion. http://www.learncfinaweek.com/week1/JSON/

On Tue, Apr 7, 2015 at 11:55 AM Robert Harrison rharri...@aimg.com wrote:


 I'm sending an Ajax post to a CF page.  The post data looks like (below) in
 the counsel:



 Object {name: rid, value: 1}



 How in the heck to I get that value on the ColdFusion page?





 Robert Harrison
 Full Stack Developer
 AIMG
  mailto:rharri...@aimg.com rharri...@aimg.com
 Main Office: 704-321-1234  ext.118
 Direct Line: 516-302-4345
  http://www.aimg.com/ www.aimg.com









 

~|
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:360418
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ACF10 mail and Windows Server 2012

2015-04-07 Thread Dean Lawrence

Have you looked at the raw source of the email to make sure that CF is not
placing the text in an html mailpart?

On Tue, Apr 7, 2015 at 1:21 PM John M Bliss bliss.j...@gmail.com wrote:


 Yes. The code didn't change. Just moved from 32 bit Windows Server 2003
 to 64 bit Windows Server 2012 and 32 bit ACF10 to 64 bit ACF10.

 On Tue, Apr 7, 2015 at 10:49 AM, Russ Michaels r...@michaels.me.uk
 wrote:

 
  are you sure you do not have the emails set to send as HTML ?
 
 
  On Tue, Apr 7, 2015 at 1:19 PM, John M Bliss bliss.j...@gmail.com
 wrote:
 
  
   In the SMTP Server properties, I changed the IP from one of the IP's on
  the
   box to all unassigned and it worked.
  
   Next question: resulting plaintext emails appear to have carriage
  returns /
   line feeds stripped out. Any idea how to get those back?
  
   On Tue, Apr 7, 2015 at 7:52 AM, John M Bliss bliss.j...@gmail.com
  wrote:
  
Working on configuring ACF10 mail on Windows Server 2012. I followed
   these
steps:
   
   
   
  
  http://blog.hyperfive.com/2013/07/how-to-setup-internal-
 smtp-service-for.html
   
...but, in ACF10 admin interface Server Settings  Mail when I set
 Mail
Server to localhost, check Verify mail server connection, and click
   Submit,
I get Connection Verification Failed!
   
Any ideas what I'm missing?
   
--
John Bliss - http://www.linkedin.com/in/jbliss
   
  
  
  
   --
   John Bliss - http://www.linkedin.com/in/jbliss
  
  
  
 
 

 

~|
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:360423
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Handling invalid recipient in mailing list

2015-04-03 Thread Dean Lawrence

You can also utilize a tool like BoogieBounce by Boogie Tools (
http://www.boogietools.com/). I've used this in the past and it works
great. It allows you to determine the cause of a rejected email (hard
bounce, soft bounce, server unreachable, etc.) and then programmatically
deal with it as needed. I would agree though, over the years I have
switched to using 3rd party mailing services for lists, as the number of
man-hours and headaches caused by managing the email are not worth it.

On Fri, Apr 3, 2015 at 10:37 AM Robert Harrison rharri...@aimg.com wrote:


 It is true that using a service like Mail Chimp to validate a mail list is
 an easy way to validate a mail list, but the steps I detailed are a valid
 alternative for any full blown system you may be managing.

 I've written systems that have opt-in, opt-out features and utilize a
 variety of merged lists, like customer lists, prospect lists, interest
 lists, etc.  These are lists which are constantly changing based on user
 actions and other factors.  If you're managing a dynamic, living list,
 those
 steps probably are the most valid. For one-offs, the service, as you
 suggest, is probably the best solution.


 Robert Harrison
 Full Stack Developer
 AIMG
 rharri...@aimg.com
 Main Office: 704-321-1234  ext.118
 Direct Line: 516-302-4345
 www.aimg.com


 

~|
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:360364
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: considering two options for changing hosting

2015-03-31 Thread Dean Lawrence

Mark,

I made the switch to Hostek (https://cp.hostek.com/aff.php?aff=931) a few
years back and I have been very happy with the decision. I just went
through a server upgrade over the weekend in which we ran into an issue
with a couple of old sites that are still running on MS Access. Their
support staff were very diligent and were able to work out the issue for
me. I have not worked with their shared hosting, but their VPS service has
been top notch.

On Tue, Mar 31, 2015 at 6:46 AM Cameron Childress camer...@gmail.com
wrote:


 On Thu, Mar 26, 2015 at 7:04 PM, Mark Spence wrote:

  1.  Lately the Wordpress portion of the site has become slow and I can't
  figure out why.  It's not the db and it is not the plug-ins.  It's a
 simple
  site with not many posts or widgets and it should be faster.  The CF
  portion of the site is fast.
 

 You might consider moving the WP stuff to a host like WP Engine.


  So I am looking at the Hostek Personal Plus for $7.99 CF shared hosting.
  Has anyone used both hosts and can compare the two?  Will I see a
  performance difference?
 

 I usually look at cost like this and try to figure out how much tech
 support this really buys from your host. Maybe 15 minutes a month?
 Generally speaking, I would expect similar (good or bad) performance from
 any host at this cost level.

 -Cameron

 --
 Cameron Childress
 --
 p:   678.637.5072
 im: cameroncf
 facebook http://www.facebook.com/cameroncf | twitter
 http://twitter.com/cameronc | google+
 https://profiles.google.com/u/0/117829379451708140985


 

~|
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:360327
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: considering two options for changing hosting

2015-03-31 Thread Dean Lawrence

Actually, my VPS is 64bit Windows 2008 r2. I manage it myself, so I know.
Hostek has some workaround to be able to run these Access DSNs. It's all
automated, so I don't pay it much mind. Also, even without Windows support,
there is no reason that you could not use a Java driver to connect to the
Access file if you really have to. I do this on my Mac to be able to run a
local copy of the site on my development machine. I agree though, I would
love to get rid of these last couple of Access sites that I still maintain.
They cause me nothing but trouble. I've converted the vast majority of my
client sites long ago, but there are still a couple stragglers.

On Tue, Mar 31, 2015 at 4:37 PM Russ Michaels r...@michaels.me.uk wrote:


 Mark,

 there is a very good reason I do not tell people there is a workaround to
 get MSAccess working on 64bit, and no you definitely should not encourage
 such things, you are a bad bad man and I am giving you a virtual slap right
 now..


 On Tue, Mar 31, 2015 at 9:06 PM, Mark A Kruger mkru...@cfwebtools.com
 wrote:

 
  Russ,
 
  You can make access Run on 64bit - it's just not very easy :)  I know I
  know
  I should NOT be encouraging such things (ha).
 
 
  http://www.coldfusionmuse.com/index.cfm/2010/12/31/Access.
 on.64bit.ColdFusio
  n
 
  -Mark
 
  -Original Message-
  From: Russ Michaels [mailto:r...@michaels.me.uk]
  Sent: Tuesday, March 31, 2015 1:52 PM
  To: cf-talk
  Subject: Re: considering two options for changing hosting
 
 
  MSAccess does not work since windows server 2008 as the jet drivers do
 not
  exist for 64bit OS, so your host must be running 2003 still on 32bit.
  So the days of running MSAccess have already gone years ago, you are just
  running on a legacy windows 2003 system, which reaches EOL this July.
 
  If you want to know why CF has so many issues on shared hosting, then
 read
  this
 
  http://www.michaels.me.uk/post.cfm/why-coldfusion-railo-
 are-not-suited-to-sh
  ared-hosting
 
 
 
  On Tue, Mar 31, 2015 at 6:31 PM, Stephens, Larry V steph...@iu.edu
  wrote:
 
  
   I echo everything said below except I am on shared hosting. I've had
 some
   issues with slow response and failure to connect and, at least twice,
  they
   volunteered to move me to a different host to solve the problem. I'm
   running multiple sites with them.
  
   There have been times when I'm pretty sure they didn't read all my
  support
   request and gave a kneejerk response, but we worked through that. If I
  was
   starting any new sites they would go there.
  
   I'm pretty sure the days of running Access are limited. I still have a
   couple of sites, too, and they don't work real well. The connections
 keep
   dying and have to be restarted by the support staff. I'm converting
 them
  to
   MSSQL.
  
  
   Larry V. Stephens
  
  
   I made the switch to Hostek (https://cp.hostek.com/aff.php?aff=931) a
  few
   years back and I have been very happy with the decision. I just went
   through a server upgrade over the weekend in which we ran into an issue
   with a couple of old sites that are still running on MS Access. Their
   support staff were very diligent and were able to work out the issue
 for
   me. I have not worked with their shared hosting, but their VPS service
  has
   been top notch.
  
  
 
 
 
 

 

~|
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:360336
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Should I migrate away from ColdSpring

2015-03-20 Thread Dean Lawrence

Great! Thanks for the heads up, Nolan.

On Fri, Mar 20, 2015 at 8:10 PM Nolan Erck nolan.e...@gmail.com wrote:


 FYI, on the ColdSpring Google group there is now a small discussion about
 the ColdSpring docs and making sure they have a good home on a server
 somewhere.

 -Nolan


 On Fri, Mar 20, 2015 at 8:37 AM, Dean Lawrence dean...@gmail.com wrote:

 
  Thanks, Nolan, I appreciate your insights. I'm pretty much on the same
 page
  as you, but I guess I am mainly concerned that with the ColdSpring site
  apparently gone, that I can't even get to the documentation to try to
  either troubleshoot an issue or even expand on features that I haven't
  worked with before, not necessarily that ColdSpring is more or less
 likely
  to fail than other libraries.
 
  I will probably end up doing what you suggested, leave existing sites
  alone, but maybe try one of the newer and maintained libraries for future
  projects.
 
  Thanks again,
 
  Dean
 
  On Thu, Mar 19, 2015 at 8:45 PM Nolan Erck nolan.e...@gmail.com wrote:
 
  
   I like ColdSpring. I like having XML documentation for that layer of
 my
   codebase.  As such, I have several sites that I don't plan to migrate
 to
   DI/1 or WireBox.  I also do a lot of Java consulting work, and
 switching
   from Spring (Java) to ColdSpring (CFML) is less painful for my brain.
 :)
   That being said, lots of people like DI/1 and Wirebox, but all you'd
  gain
   by moving to them is being able to say yes we're now using DI/1
 instead
  of
   ColdSpring.
  
   I don't see why ColdSpring would be more likely to break from a future
 CF
   update than any other library.  One should always test code when
 changing
   flavors of CF, that's not specific to ColdSpring.
  
   Personally, I'd leave the site alone at least for now.  Future
 projects,
  I
   consider DI/1 or Wirebox, depending on the stack and requirements.  I'm
   also semi-secretly hoping someone maintains ColdSpring moving forward,
  but
   I'm probably in the minority on that.
  
   2 cents. Hope that helped.
  
   -Nolan
  
   PS. Shameless plug! I'm giving a talk at dev.Objective() titled
  Dependency
   Injection: Why Is It Awesome and Why Should I Care? Ya'll should come
   watch! :)
  
  
  
  
  
  
  
  
  
  
   On Thu, Mar 19, 2015 at 8:31 AM, Dean Lawrence dean...@gmail.com
  wrote:
  
   
I've been using ColdSpring for a good number of years and it is
 pretty
   much
a part of almost every site that I have developed. When trying to
  access
http://coldspringframework.org/ to look at the docs, I get a service
unavailable error. It was like this when I tried to access it about a
   month
ago as well. Is the site defunct?
   
I know that the project has not been worked on for some time, so my
question is, should I consider migrating my sites to another
 dependency
injection solution? If so, which would you suggest? I've briefly
 looked
   at
Wirebox and DI/1, but have never put either one into play. Also, what
   kind
of work am I looking at to convert my existing sites? The thought of
   doing
this gives me heartburn, but I don't want to have to scramble if some
future CF or Java update breaks ColdSpring.
   
I appreciate any input.
   
Dean
   
   
   
  
  
 
 

 

~|
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:360279
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Should I migrate away from ColdSpring

2015-03-20 Thread Dean Lawrence

Thanks, Nolan, I appreciate your insights. I'm pretty much on the same page
as you, but I guess I am mainly concerned that with the ColdSpring site
apparently gone, that I can't even get to the documentation to try to
either troubleshoot an issue or even expand on features that I haven't
worked with before, not necessarily that ColdSpring is more or less likely
to fail than other libraries.

I will probably end up doing what you suggested, leave existing sites
alone, but maybe try one of the newer and maintained libraries for future
projects.

Thanks again,

Dean

On Thu, Mar 19, 2015 at 8:45 PM Nolan Erck nolan.e...@gmail.com wrote:


 I like ColdSpring. I like having XML documentation for that layer of my
 codebase.  As such, I have several sites that I don't plan to migrate to
 DI/1 or WireBox.  I also do a lot of Java consulting work, and switching
 from Spring (Java) to ColdSpring (CFML) is less painful for my brain. :)
 That being said, lots of people like DI/1 and Wirebox, but all you'd gain
 by moving to them is being able to say yes we're now using DI/1 instead of
 ColdSpring.

 I don't see why ColdSpring would be more likely to break from a future CF
 update than any other library.  One should always test code when changing
 flavors of CF, that's not specific to ColdSpring.

 Personally, I'd leave the site alone at least for now.  Future projects, I
 consider DI/1 or Wirebox, depending on the stack and requirements.  I'm
 also semi-secretly hoping someone maintains ColdSpring moving forward, but
 I'm probably in the minority on that.

 2 cents. Hope that helped.

 -Nolan

 PS. Shameless plug! I'm giving a talk at dev.Objective() titled Dependency
 Injection: Why Is It Awesome and Why Should I Care? Ya'll should come
 watch! :)










 On Thu, Mar 19, 2015 at 8:31 AM, Dean Lawrence dean...@gmail.com wrote:

 
  I've been using ColdSpring for a good number of years and it is pretty
 much
  a part of almost every site that I have developed. When trying to access
  http://coldspringframework.org/ to look at the docs, I get a service
  unavailable error. It was like this when I tried to access it about a
 month
  ago as well. Is the site defunct?
 
  I know that the project has not been worked on for some time, so my
  question is, should I consider migrating my sites to another dependency
  injection solution? If so, which would you suggest? I've briefly looked
 at
  Wirebox and DI/1, but have never put either one into play. Also, what
 kind
  of work am I looking at to convert my existing sites? The thought of
 doing
  this gives me heartburn, but I don't want to have to scramble if some
  future CF or Java update breaks ColdSpring.
 
  I appreciate any input.
 
  Dean
 
 
 

 

~|
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:360274
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Should I migrate away from ColdSpring

2015-03-19 Thread Dean Lawrence

I've been using ColdSpring for a good number of years and it is pretty much
a part of almost every site that I have developed. When trying to access
http://coldspringframework.org/ to look at the docs, I get a service
unavailable error. It was like this when I tried to access it about a month
ago as well. Is the site defunct?

I know that the project has not been worked on for some time, so my
question is, should I consider migrating my sites to another dependency
injection solution? If so, which would you suggest? I've briefly looked at
Wirebox and DI/1, but have never put either one into play. Also, what kind
of work am I looking at to convert my existing sites? The thought of doing
this gives me heartburn, but I don't want to have to scramble if some
future CF or Java update breaks ColdSpring.

I appreciate any input.

Dean


~|
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:360269
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: trying to shorten long string

2015-03-09 Thread Dean Lawrence

Another option would be to place the entire description in a div and then
truncate it via css.

http://www.w3schools.com/cssref/css3_pr_text-overflow.asp

On Sat, Mar 7, 2015 at 1:31 AM, Mark Spence markpence...@gmail.com wrote:


 I have a long product description I am trying to truncate.  I could just
 truncate it, but I don't want to break off sentences.  Here is the solution
 I came up with but it does not seem to have any effect.

 Any ideas?

 cfset variables.description = qry_productsGet.productdescription
 cfif len(variables.description) gt 200
 cfloop condition=i eq false
 cfset variables.description =
 listDeleteAt(variables.description,listLen(variables.description, .),
 .)
 cfif len(variables.description) lte 200
 cfset i = true
 /cfif
 /cfloop
 /cfif


 

~|
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:360231
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: trying to shorten long string

2015-03-09 Thread Dean Lawrence

Well, the reason for the alternative approach is that he didn't specify why
he wanted to truncate the description. Typically, this is due to layout and
not necessarily content. Also, counting words breaks down as soon as you
introduce html into the mix, because it is very easy to lop off closing
tags, screwing up the display. However, if you can guarantee that there is
no html used, here is a link to an old article that Ray did that uses regex
to dump all words into an array.
http://www.raymondcamden.com/2007/08/02/Counting-Word-Instances-in-a-String.
You could then loop over this array, adding the length of each word to a
total length  variable, and outputting the word as long as the total length
variable does not exceed the maximum length limit that you set.

On Mon, Mar 9, 2015 at 1:47 PM, Michael Grant mgr...@modus.bz wrote:


 I think the point is that he's trying to truncate the text in a meaningful
 way, such as at the end of a sentence.
 One way around 4.5 houses is to only use a period as a delimiter if it is
 followed by at least one space and an uppercase letter. It's not perfect of
 course, but it would eliminate more edge cases of your truncation not
 working as intended.

 Mike

 On Mon, Mar 9, 2015 at 1:04 PM, Dean Lawrence dean...@gmail.com wrote:

 
  Another option would be to place the entire description in a div and then
  truncate it via css.
 
  http://www.w3schools.com/cssref/css3_pr_text-overflow.asp
 




-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:360233
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Passing arguments into base class

2015-02-06 Thread Dean Lawrence

Thanks Nathan, that's good to know. I will definitely have to look deeper
into that. I have been using ColdSpring in a common way for so long that I
have not looked over the documentation in a couple years. I may have had
the ability all along and not known it. Thanks again!

On Fri, Feb 6, 2015 at 3:40 PM, Nathan Strutz str...@gmail.com wrote:


 You're using ColdSpring and you say CS is not autowiring the field on a
 base class? It's supposed to, FYI, it just is. If it does not, you can do
 it explicitly in your xml file (if you use the DefaultXMLBeanFactory.cfc).
 Also, make sure the autowire option is on, at least for this object if not
 for all of your beans. It's strange that it is not working, maybe this
 would be a question for the ColdSpring list.

 Nathan Strutz



-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:360075
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Passing arguments into base class

2015-02-06 Thread Dean Lawrence

Byron,

This is pretty much what I was thinking that I had to do, but was hoping to
not have to explicitly call the super.init() method for every class that
extends the base class. I'm just not sure if what I am trying to do is even
possible.

On Fri, Feb 6, 2015 at 2:23 PM, Byron Mann byronos...@gmail.com wrote:


 This might work, if I'm understanding.

 component name='baseClass' {

   variables.utilClass = '';

public any function init(utilClass utilClass){
  variables.utilClass = arguments.utilClass;
   }

 }

 In your derived class you can do this.

 component extends='baseClass'{
   public any function init(utilClass utilClass){
 super.init(argumentCollection=arguments);
   }
 }


 

~|
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:360071
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Passing arguments into base class

2015-02-06 Thread Dean Lawrence

Hi Jon,

No, the utility class is not dependent on the base class. The base class
has some universal methods that handle things like performing common
preInsert and preUpdate ORM methods across all my persistent objects. My
utility class has some common methods that I use for such things as
encryption/decrypt. I am need of some of the methods that are in the
utility class from within my base class. Since the base class is never call
directly or from my beanfactory (I use ColdSpring), I don't know how to
inject the utility class into the base class.

On Fri, Feb 6, 2015 at 2:23 PM, Jon Clausen jon_clau...@silowebworks.com
wrote:


 Dean,

 Is your utility class dependent on the the base class (e.g. - does it use
 “this” or the variables scope)?  If so, then you have a couple of 
 different
 ways you can go:

 1) use it as a mixin inside your component{} , and forego the class
 wrapper for the Utility methods entirely:

 include template=“Utilities.cfm”;

 2) use inheritance of the Utilities class on the base class (or the base
 class’ super class):

 component name=“BaseClass” extends=“UtilityClass”{}

 If it’s not dependent on the base class, you can either:

 1) Inject it using a dependency framework like Wirebox (
 http://wiki.coldbox.org/wiki/WireBox.cfm - which can run outside of a
 Coldbox app), Coldspring, etc. ( I see Nathan just replied to this effect)
 and just call the injection mapping in your constructor.  If there are
 constructor arguments the Util class needs, you can set those with your
 injection framework and be done with them.

 2) If the methods are all static helpers, incorporate it as a mixin to
 your Application.cfc, so that the methods become available globally,
 without scope, on every request.


 Jon




-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:360072
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Passing arguments into base class

2015-02-06 Thread Dean Lawrence

Thanks Nathan,

I am familiar with IoC and am using ColdSpring for this very purpose.
However, it doesn't really work in this situation because the base class is
never called directly though the beanfactory. The bean that is extending
the base class may, but not the baseclass itself. This is my issue.

I am actually already doing something identical to what Byron suggested,
but by calling the utility class through the beanfactory (which is stored
in the application scope) instead of creating a new instance of the utility
class using New. In either case, the utility class variable is being
explicitly called/created within the base class, not passed in as an
argument.

On Fri, Feb 6, 2015 at 2:14 PM, Nathan Strutz str...@gmail.com wrote:


 Dean,

 Byron's suggestion is a good one, and the right way to go unless you use an
 IoC container. It's an object-oriented programming idea where, when you
 come to the point of not wanting to instantiate all your objects. You
 invert the control of creating away from what normally creates them into
 some kind of bean factory. There are a number of them out there for
 ColdFusion. ColdSpring, WireBox, and DI/1 to name the big ones off the top
 of my head. An ioc container/factory will keep it all internally for you,
 wire your bean up, then hand you what you asked for, all ready to go.

 The only other solution is to send in your utility object each time you
 create something that needs it.



-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:360070
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Passing arguments into base class

2015-02-06 Thread Dean Lawrence

All of my classes in my app are derived from a base class. I've been using
this successfully for the last couple of years. However, within the base
class, I need the use of a utility class as well. I am currently calling it
from the application scope, but I want to better encapsulate the base class
and inject the utility class into the base class instead of relying on an
external reference. My question is, how do I do this? I know how to do it
with a regular class file, but not with a class that is being inherited.
Can anyone give me some direction?

Thanks,

-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:360060
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Passing arguments into base class

2015-02-06 Thread Dean Lawrence

Thanks Byron,

I wasn't wanting my utility class to inherit my base class, I am wanting to
inject the utility class into the base class. I'm trying to get away from
explicitly defining the utility class from within the base class. Since the
base class is not called directly, I don't know how to pass the utility
class in as a required argument during initialization.

On Fri, Feb 6, 2015 at 12:11 PM, Byron Mann byronos...@gmail.com wrote:


 Think you might want something like this in your base cfc? I think you'd
 not want the UtilClass to inherit the base class however, or this would
 lead to a circular reference and probably kill the app.

 component name='baseClass' {

  variables.utilClass = new UtilClass();

 }




-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:360063
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Cannot access session variables in a cfc

2015-01-28 Thread Dean Lawrence

Byron, the ApplicationProxy.cfc needs to be in the root directory along
with the main Application.cfc. When you extend a CFC, CF will first look in
the same directory to see if that CFC exist. If it doesn't CF will start
looking for the CFC from the application root down. So by simply adding
extends=ApplicationProxy to the Application.cfc within the /cfc
directory, CF will find the ApplicationProxy.cfc in the root, which in turn
finds the Application.cfc in the root. No mappings are needed.

On Wed, Jan 28, 2015 at 3:21 PM, Byron Mann byronos...@gmail.com wrote:


 On Wed, Jan 28, 2015 at 1:57 PM, Robert Harrison rharri...@aimg.com
 wrote:

 
   try adding an Application.cfc in the root physical directory
 
  I don't that that will work. It would still be a separate application
 pool,
  and I think you need the CFID and CFTOKEN cookies to have session vars.
 



 Did a simple test on CF10 and CF8 and this does seem to work.  The only
 identifier for an application is the application name that I'm aware of, so
 I would guess the first Application.cfc to be called would be the one to
 initialize the application.  Subsequent calls would set the session and
 application timeouts, thus setting them the same would be a good idea.

 That being said, Dean's proxy suggestion is probably best, since you would
 probably want the code to run from either application.cfc.

 I thought the directory structure might be like this. The proxy would still
 work, but would probably just need a cfmapping to the app root so the
 /cfc/application.cfc could find the /app/applicationproxy.cfc.

 /cfc
 /app
 /app/application.cfc


 

~|
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:360036
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Mura or ContentBox

2015-01-28 Thread Dean Lawrence

Excellent! Thank you so very much, Jon.

On Wed, Jan 28, 2015 at 4:16 PM, Jon Clausen jon_clau...@silowebworks.com
wrote:


 Dean,

 Replies inline:

   I do have a question though regarding the customization of
  ContentBox. My biggest stumbling block with the use of a CMS is the
  customized site functionality that I typically require being just
 managing
  page content and blogs. As an example, adding a product catalog or
  membership management. Can the ColdBox admin be modified to roll the
  management of these area into a unified interface?

 Yes, through the cascading file system, as well as through interception
 points.  For example, the index() function
 modules.contentbox-admin.dashboard calls  event.setView(dashboard/index”);

 If you added your own /views/modules/contenbox-admin/dashboard/index.cfm
 file, then it would be used over the version of index.fm in the
 contentbox-admin module /views/dashboard directory.  There are also a ton
 of interception points that you can use.  Take a look at the
 ModuleConfig.cfc for the CB admin and read up on interceptors in the
 Coldbox documentation for ideas on how to use them effectively.

  I briefly looked at
  SlatWall and it seemed like a separate administration just linked to from
  within the ContentBox admin, not actually managed there. So there is
  separate users for both admins. Is it possible to create extended
  functionality like a product catalog, but have it use the ContentBox
 admin
  and users as well?

 Yes, just have the controllers (“handlers” in ContentBox lingo) for the
 areas you want to serve within the admin extend
 modules.contentbox-admin.handlers.baseHandler and then use custom routes
 to bring them in to the admin path.  They will be under the influence of
 the security interceptor that way.



 --

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:360038
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Cannot access session variables in a cfc

2015-01-28 Thread Dean Lawrence

Hmm, that's odd as I use that setup on numerous sites and I never have to
map the applicationproxy. I am currently using it on both ACF 10 and 11,
but I started using this around 8 or 9 and haven't changed it for new
version. I don't believe that you could use the root.(dot) notation in 8 or
9, which if I remember correctly, predicated the use of the proxy. Every
site is also housed in completely different directories, nowhere near the
cfusion/wwwroot directory, so I am not sure why it is didn't work for you
as well. Anyway, thanks for the additional info regarding cutting out the
proxy step.

On Wed, Jan 28, 2015 at 4:54 PM, Byron Mann byronos...@gmail.com wrote:


 @Dean,

 Looked into this a bit further on CF10.

 root
 - Application.cfc
 - ApplicationProxy.cfc (extends Application)
 - cfc-folder
 - - Application.cfc (extends ApplicationProxy)
 - - myCFC.cfc

 This does not work without the cfc/application.cfc having
 extends=root.ApplicationProxy, where 'root' is a CF mapping.

 As you said, CF will search from the application root downward on the file
 system. Since there is an Application.cfc in the cfc folder, it would start
 there and not find the ApplicationProxy in the directory above.

 This would work if the actual root directory was cfusion/wwwroot, or maybe
 if both application.cfc had the same applicationName and the
 ApplicationProxy was used/cached in /root app somehow before /root/cfc was
 initialized.

 If you use a CF mapping the proxy is really not even necessary, as this
 does work.

 /cfc/application.cfc
 -
 cfcomponent extends=root.application

 Cheers,
 Byron








 On Wed, Jan 28, 2015 at 3:44 PM, Dean Lawrence dean...@gmail.com wrote:

 
  Byron, the ApplicationProxy.cfc needs to be in the root directory along
  with the main Application.cfc. When you extend a CFC, CF will first look
 in
  the same directory to see if that CFC exist. If it doesn't CF will start
  looking for the CFC from the application root down. So by simply adding
  extends=ApplicationProxy to the Application.cfc within the /cfc
  directory, CF will find the ApplicationProxy.cfc in the root, which in
 turn
  finds the Application.cfc in the root. No mappings are needed.
 
  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:360040
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Cannot access session variables in a cfc

2015-01-28 Thread Dean Lawrence

You could also extend the main application.cfc. You can't do this directly
if the cfc's are in a sub-directory though. If that is the case, you could
use a proxy, I do this all the time. Here would be the structure.

root
- Application.cfc
- ApplicationProxy.cfc (extends Application)
- cfc-folder
- - Application.cfc (extends ApplicationProxy)
- - myCFC.cfc

You will probably want to also call super.onApplicationStart() from within
the cfc folder Application.cfc's onApplicationStart() method. The same
would hold true for onSessionStart(), you would want to call
super.OnSessionStart(). This ensures that all the main application and
session vars get initialized properly.

On Wed, Jan 28, 2015 at 1:57 PM, Robert Harrison rharri...@aimg.com wrote:


  try adding an Application.cfc in the root physical directory

 I don't that that will work. It would still be a separate application pool,
 and I think you need the CFID and CFTOKEN cookies to have session vars.

 Robert Harrison
 Full Stack Developer
 AIMG
 rharri...@aimg.com
 Main Office: 704-321-1234  ext.118
 Direct Line: 516-302-4345
 www.aimg.com


 

~|
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:360032
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Mura or ContentBox

2015-01-28 Thread Dean Lawrence

Cameron and Jon, thank you so much for your input. Jon, your breakdown of
uses is great. I do have a question though regarding the customization of
ContentBox. My biggest stumbling block with the use of a CMS is the
customized site functionality that I typically require being just managing
page content and blogs. As an example, adding a product catalog or
membership management. Can the ColdBox admin be modified to roll the
management of these area into a unified interface? I briefly looked at
SlatWall and it seemed like a separate administration just linked to from
within the ContentBox admin, not actually managed there. So there is
separate users for both admins. Is it possible to create extended
functionality like a product catalog, but have it use the ContentBox admin
and users as well?

On Tue, Jan 27, 2015 at 10:38 AM, Jon Clausen jon_clau...@silowebworks.com
wrote:


 I have and will continue to use both.  They are both great for what they
 provide, but what they provide is very different.  If I’m developing a
 basic site with maybe a few custom plugins for display on the front-end,
 Mura is my choice.  If I’m refactoring an existing application or need to
 develop an app with a great deal of customization, then ContentBox is my
 choices.

 ContentBox is a plugin for the Coldbox framework, and follows the module
 specifications for inheritance, which means you can extend or override just
 about anything in the core functionality if you need to and develop your
 own modules which extend its functionality.  Mura, for all effective
 purposes, *is* the framework, so you are limited by its conventions. A
 basic breakdown of where each shines:

 Mura:
 - Intuitive, clean admin interface
 - In-page editing on the front-end of the site. (clients love this feature
 to make quick edits or adjustments to individual pages)
 - Easy template system, structure and display view extensions
 - Easy page layout customization and content collection displays
 - Simple, if somewhat limited, plugin architecture
 - Regular releases and:
 - Self-updating (ContentBox doesn’t yet support this)
 - Multi-site capable out-of-the-box

 ContentBox:
 - Modularity and compatibility with just about anything you need to
 customize through Coldbox’s cascading file system and access to Wirebox.
 - Access to the full set of Coldbox features
 - Fast and getting faster - ContentBox isn’t yet updated to run on 4.0
 but, when it does, it should scream.  I find that, with caching enabled on
 both, ContentBox is a bit faster, though the system reserved memory
 required to run a medium to large ContentBox site is higher.
 - Nice admin dashboard
 - User management. I much prefer the roles/permissions administration and
 functionality of ContentBox to Mura

 Hope that helps,

 Jon


  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:360033
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Mura or ContentBox

2015-01-26 Thread Dean Lawrence

I'm about to start a new project for a client that will require a CMS. I
would typically build out the functionality that is needed, however this
client has a limited budged and limited requirements, so I thought that I
would try utilizing either Mura or ContentBox. Does anyone have any
personal insights into what they find best about either solution?

Thanks,

-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:360005
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Call Rail API / CF

2015-01-19 Thread Dean Lawrence

You are more on track with the second one than the first. I have two
comments. First, you are using a POST method and the documentation for the
companies method states that it should be a GET method. Second, you are
replacing MYKEYHERE with your assigned assigned API key, correct?

On Mon, Jan 19, 2015 at 11:25 AM, Robert Harrison rharri...@aimg.com
wrote:


 The two most promising have been:

 cfset tmp = {} /
 cfset tmp['Authorization'] = Token token='MYKEYHERE' /

 cfhttp url=https://api.callrail.com/v1/companies.json; result=r
 method=post 
 cfhttpparam type=header name=content-type value=application/json /
 !---cfhttpparam type=body value=#origTemp# /---
 cfhttpparam type=body value=#serializeJson(tmp)# /
 /cfhttp

 cfdump var=#r# /

 AND

 cfhttp url=https://api.callrail.com/v1/companies.json; result=r
 method=post 
 cfhttpparam type=header name=Authorization value=Token token='
 MYKEYHERE'' /
 /cfhttp
 cfdump var=#r# /


 Robert Harrison
 Full Stack Developer
 AIMG
 rharri...@aimg.com
 Main Office: 704-321-1234 ext.121
 Direct Line: 516-302-4345
 www.aimg.com





-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:359996
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Call Rail API / CF

2015-01-19 Thread Dean Lawrence

So when you dump the results of the cfhttp call, is it empty? If not, is
there anything that is listed in the Filecontent key within the dump
structure?

On Mon, Jan 19, 2015 at 11:47 AM, Robert Harrison rharri...@aimg.com
wrote:


 Yes. The PHP version does pull the data. The CF version comes up empty.


 Robert Harrison
 Full Stack Developer
 AIMG
 rharri...@aimg.com
 Main Office: 704-321-1234 ext.121
 Direct Line: 516-302-4345
 www.aimg.com




 --

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:36
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Call Rail API / CF

2015-01-19 Thread Dean Lawrence

Ok, good, I just wanted to make sure. So, when you use a GET, it sounds
like you are authenticating correctly, no? This my sound stupid, but do you
have any companies added to the system for the API to return? Also, have
you tried removing the single quotes from your API key in the header? In
the API documentation, it does not have quotes around it,
Authorization: Token
token=abc1234.

On Mon, Jan 19, 2015 at 11:37 AM, Robert Harrison rharri...@aimg.com
wrote:


 I'm not using my key here... I just not posting my key to a public forum
 that's indexed in Google.

 And I've treid get also... I've tried every variation I can think of.  I
 got
 a 200 response from GET but no data.  Otherwise I get 401.


 Robert Harrison
 Full Stack Developer
 AIMG
 rharri...@aimg.com
 Main Office: 704-321-1234 ext.121
 Direct Line: 516-302-4345
 www.aimg.com




  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:359998
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Call Rail API / CF

2015-01-19 Thread Dean Lawrence

Robert, can you share the code that you have tried?

On Mon, Jan 19, 2015 at 9:31 AM, Robert Harrison rharri...@aimg.com wrote:


 Below is a call rail API request in PHP. This works in PHP, but I need to
 run this in ColdFusion.  I've tried every combination of cfhttp and
 cfhttpparam I can think of that looks correct, and have tried it using
 JSON,
 but I always get a 401 Unauthorized response.  Anyone ever done the Call
 Rail API in CF or have any ideas on the code below. I'm about out of ideas.



 Thanks





 ?php

   $api_url = 'https://api.callrail.com/v1/companies.json';



   // Replace with your API Key

   $api_key = 'MYKEYHERE';



   $ch = curl_init($api_url);



   curl_setopt($ch, CURLOPT_HEADER, 0);

   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

   curl_setopt($ch, CURLOPT_HTTPHEADER, array(Authorization: Token
 token=\{$api_key}\));



   $json_data = curl_exec($ch);

   $parsed_data = json_decode($json_data);

   curl_close($ch);



   // Examine meta data from the response

   $total_entries = $parsed_data-total_entries;

   echo Total entries: {$parsed_data-total_entries} \n;



   // Loop through companies

   foreach($parsed_data-companies as $company){

 echo Company: {$company-name} \n;

   }

 ?









 Robert Harrison
 Full Stack Developer
 AIMG
  mailto:rharri...@aimg.com rharri...@aimg.com
 Main Office: 704-321-1234 ext.121
 Direct Line: 516-302-4345
  http://www.aimg.com/ www.aimg.com









 

~|
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:359994
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Call Rail API / CF

2015-01-19 Thread Dean Lawrence

When I use this code, I get a result back. It is an unauthorized result
since I don't have an API key, but it is a GET request and does return a
JSON result.

cfset api_url = https://api.callrail.com/v1/companies.json; /

!---Replace with your API Key---
cfset api_key = MYKEYHERE /

cfhttp method=get url=#api_url# result=json_data
cfhttpparam type=header name=Authorization value=Token
token=#api_key# 
/cfhttp

cfdump var=#json_data#

On Mon, Jan 19, 2015 at 12:07 PM, Robert Harrison rharri...@aimg.com
wrote:


 Yep tried double quotes too.


 Robert Harrison
 Full Stack Developer
 AIMG
 rharri...@aimg.com
 Main Office: 704-321-1234 ext.121
 Direct Line: 516-302-4345
 www.aimg.com



 --

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:360004
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Trouble with ArrayAppend

2014-12-22 Thread Dean Lawrence

Hi David,

Yes, the tmpAddress variable is var scoped at the top of the method. I
tried your suggestion of re-initializing the struct with each iteration,
but it did not change the results.

I've been doing some more testing and have found that, if I serialize the
entire result to JSON prior to returning the data to the calling client,
that the structures inside the array are populated properly. So the issue
is when passing the results back as a CF struct. Again though, this is only
if the CFC is called as a webservice, it works fine when called directly
from a CF template. Quite odd.

On Mon, Dec 22, 2014 at 9:15 AM, David Phelan dphe...@emerginghealthit.com
wrote:


 Dean,

 First, is tmpAddress var scoped at the top of your function?

 I would try initializing tmpAddress on each iteration.

 for (var Address in Deal.getAddresses()){
 tmpAddress = StructNew();
 
 }

 Dave

 -Original Message-
 From: Dean Lawrence [mailto:dean...@gmail.com]
 Sent: Saturday, December 20, 2014 12:19 PM
 To: cf-talk
 Subject: Re: Trouble with ArrayAppend


 Ok, I just tried calling the same method directly from a CF template and
 the structures populated properly. It is only when I am calling it as a
 webservice that the structs are empty.

 On Sat, Dec 20, 2014 at 12:10 PM, Dean Lawrence dean...@gmail.com wrote:

  Thanks Rodney. I was hoping that what you suggested would work, but
  unfortunately, it did not. I tried it in both ACF 10 and ACF 11. I'm
  still left with empty structs inside the array.
 
  On Sat, Dec 20, 2014 at 11:22 AM, Rodney Enke renk...@gmail.com wrote:
 
 
  I believe you are just passing a reference of the tmpAddress to the
  array, so it is being overridden with each loop. Try the following to
  insert a copy of the structure into the array instead:
 
  ArrayAppend(results.Deal.addresses,duplicate(tmpAddress));
 
  -
  Rodney
 
  On Fri, Dec 19, 2014 at 4:39 PM, Dean Lawrence dean...@gmail.com
 wrote:
 
  
   I have a remote method which is retrieving a deal object,
   populating a structure and returning it to the client requesting
   it. This is all well and good. However, the deal object has
   multiple address objects
  associated
   to it. When looping over these addresses, I am having trouble
   adding
  them
   to an array. Here is my code:
  
   for (Address in Deal.getAddresses()){
   tmpAddress.street = Address.getStreet();
   tmpAddress.street2 = Address.getStreet2();
   tmpAddress.city = Address.getCity();
   tmpAddress.state = Address.getState();
   tmpAddress.postalcode = Address.getPostalcode();
   tmpAddress.phone = Address.getPhone();
   ArrayAppend(results.Deal.addresses,tmpAddress);
   }
  
   The problem that I am having is that the results.Deal.addresses key
  ends up
   with an array of empty structures, the total number matching the
   total addresses associated to this deal. So in my test case, the
   deal that I
  am
   working on has a single address, so the results.Deal.addresses key
   is an array with on empty structure in it (no keys). However, if I
   don't try
  to
   append to the array by doing this:
  
   for (Address in Deal.getAddresses()){
   tmpAddress.street = Address.getStreet();
   tmpAddress.street2 = Address.getStreet2();
   tmpAddress.city = Address.getCity();
   tmpAddress.state = Address.getState();
   tmpAddress.postalcode = Address.getPostalcode();
   tmpAddress.phone = Address.getPhone();
   results.Deal.addresses = tmpAddress; }
  
   The results.Deal.addresses key is now a struct and all the address
   keys assigned properly, so I know the tmpAddress struct is being
   populated properly. Does anyone have any thoughts as to what might
   be going on? I
  am
   running ACF 10 and yes, I have var scoped the results, Deal and
  tmpAddress
   variables at the top of the method. I also tried adding local to
   the Address variable in the for loop, but it did not help.
  
   Thansk,
  
   --
  
 [image: profile picture]  *Dean Lawrence*
   *President*
   Internet Data Technology
   *Phone:* 888-438-4381 x701
   *Web:* www.idatatech.com
   *Email:* d...@idatatech.com
 Programming | Database | Consulting | Training
  
  
  
 
 



 

~|
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:359871
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Trouble with ArrayAppend

2014-12-20 Thread Dean Lawrence

I have a remote method which is retrieving a deal object, populating a
structure and returning it to the client requesting it. This is all well
and good. However, the deal object has multiple address objects associated
to it. When looping over these addresses, I am having trouble adding them
to an array. Here is my code:

for (Address in Deal.getAddresses()){
tmpAddress.street = Address.getStreet();
tmpAddress.street2 = Address.getStreet2();
tmpAddress.city = Address.getCity();
tmpAddress.state = Address.getState();
tmpAddress.postalcode = Address.getPostalcode();
tmpAddress.phone = Address.getPhone();
ArrayAppend(results.Deal.addresses,tmpAddress);
}

The problem that I am having is that the results.Deal.addresses key ends up
with an array of empty structures, the total number matching the total
addresses associated to this deal. So in my test case, the deal that I am
working on has a single address, so the results.Deal.addresses key is an
array with on empty structure in it (no keys). However, if I don't try to
append to the array by doing this:

for (Address in Deal.getAddresses()){
tmpAddress.street = Address.getStreet();
tmpAddress.street2 = Address.getStreet2();
tmpAddress.city = Address.getCity();
tmpAddress.state = Address.getState();
tmpAddress.postalcode = Address.getPostalcode();
tmpAddress.phone = Address.getPhone();
results.Deal.addresses = tmpAddress;
}

The results.Deal.addresses key is now a struct and all the address keys
assigned properly, so I know the tmpAddress struct is being populated
properly. Does anyone have any thoughts as to what might be going on? I am
running ACF 10 and yes, I have var scoped the results, Deal and tmpAddress
variables at the top of the method. I also tried adding local to the
Address variable in the for loop, but it did not help.

Thansk,

-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:359862
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Trouble with ArrayAppend

2014-12-20 Thread Dean Lawrence

I have a remote method which is retrieving a deal object, populating a
structure and returning it to the client requesting it. This is all well
and good. However, the deal object has multiple address objects associated
to it. When looping over these addresses, I am having trouble adding them
to an array. Here is my code:

for (Address in Deal.getAddresses()){
tmpAddress.street = Address.getStreet();
tmpAddress.street2 = Address.getStreet2();
tmpAddress.city = Address.getCity();
tmpAddress.state = Address.getState();
tmpAddress.postalcode = Address.getPostalcode();
tmpAddress.phone = Address.getPhone();
ArrayAppend(results.Deal.addresses,tmpAddress);
}

The problem that I am having is that the results.Deal.addresses key ends up
with an array of empty structures, the total number matching the total
addresses associated to this deal. So in my test case, the deal that I am
working on has a single address, so the results.Deal.addresses key is an
array with on empty structure in it (no keys). However, if I don't try to
append to the array by doing this:

for (Address in Deal.getAddresses()){
tmpAddress.street = Address.getStreet();
tmpAddress.street2 = Address.getStreet2();
tmpAddress.city = Address.getCity();
tmpAddress.state = Address.getState();
tmpAddress.postalcode = Address.getPostalcode();
tmpAddress.phone = Address.getPhone();
results.Deal.addresses = tmpAddress;
}

The results.Deal.addresses key is now a struct and all the address keys
assigned properly, so I know the tmpAddress struct is being populated
properly. Does anyone have any thoughts as to what might be going on? I am
running ACF 10 and yes, I have var scoped the results, Deal and tmpAddress
variables at the top of the method. I also tried adding local to the
Address variable in the for loop, but it did not help.

Thansk,

-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:359863
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Trouble with ArrayAppend

2014-12-20 Thread Dean Lawrence

Thanks Rodney. I was hoping that what you suggested would work, but
unfortunately, it did not. I tried it in both ACF 10 and ACF 11. I'm still
left with empty structs inside the array.

On Sat, Dec 20, 2014 at 11:22 AM, Rodney Enke renk...@gmail.com wrote:


 I believe you are just passing a reference of the tmpAddress to the array,
 so it is being overridden with each loop. Try the following to insert a
 copy of the structure into the array instead:

 ArrayAppend(results.Deal.addresses,duplicate(tmpAddress));

 -
 Rodney

 On Fri, Dec 19, 2014 at 4:39 PM, Dean Lawrence dean...@gmail.com wrote:

 
  I have a remote method which is retrieving a deal object, populating a
  structure and returning it to the client requesting it. This is all well
  and good. However, the deal object has multiple address objects
 associated
  to it. When looping over these addresses, I am having trouble adding them
  to an array. Here is my code:
 
  for (Address in Deal.getAddresses()){
  tmpAddress.street = Address.getStreet();
  tmpAddress.street2 = Address.getStreet2();
  tmpAddress.city = Address.getCity();
  tmpAddress.state = Address.getState();
  tmpAddress.postalcode = Address.getPostalcode();
  tmpAddress.phone = Address.getPhone();
  ArrayAppend(results.Deal.addresses,tmpAddress);
  }
 
  The problem that I am having is that the results.Deal.addresses key ends
 up
  with an array of empty structures, the total number matching the total
  addresses associated to this deal. So in my test case, the deal that I am
  working on has a single address, so the results.Deal.addresses key is an
  array with on empty structure in it (no keys). However, if I don't try to
  append to the array by doing this:
 
  for (Address in Deal.getAddresses()){
  tmpAddress.street = Address.getStreet();
  tmpAddress.street2 = Address.getStreet2();
  tmpAddress.city = Address.getCity();
  tmpAddress.state = Address.getState();
  tmpAddress.postalcode = Address.getPostalcode();
  tmpAddress.phone = Address.getPhone();
  results.Deal.addresses = tmpAddress;
  }
 
  The results.Deal.addresses key is now a struct and all the address keys
  assigned properly, so I know the tmpAddress struct is being populated
  properly. Does anyone have any thoughts as to what might be going on? I
 am
  running ACF 10 and yes, I have var scoped the results, Deal and
 tmpAddress
  variables at the top of the method. I also tried adding local to the
  Address variable in the for loop, but it did not help.
 
  Thansk,
 
  --
 
[image: profile picture]  *Dean Lawrence*
  *President*
  Internet Data Technology
  *Phone:* 888-438-4381 x701
  *Web:* www.idatatech.com
  *Email:* d...@idatatech.com
Programming | Database | Consulting | Training
 
 
 

 

~|
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:359866
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Trouble with ArrayAppend

2014-12-20 Thread Dean Lawrence

Ok, I just tried calling the same method directly from a CF template and
the structures populated properly. It is only when I am calling it as a
webservice that the structs are empty.

On Sat, Dec 20, 2014 at 12:10 PM, Dean Lawrence dean...@gmail.com wrote:

 Thanks Rodney. I was hoping that what you suggested would work, but
 unfortunately, it did not. I tried it in both ACF 10 and ACF 11. I'm still
 left with empty structs inside the array.

 On Sat, Dec 20, 2014 at 11:22 AM, Rodney Enke renk...@gmail.com wrote:


 I believe you are just passing a reference of the tmpAddress to the array,
 so it is being overridden with each loop. Try the following to insert a
 copy of the structure into the array instead:

 ArrayAppend(results.Deal.addresses,duplicate(tmpAddress));

 -
 Rodney

 On Fri, Dec 19, 2014 at 4:39 PM, Dean Lawrence dean...@gmail.com wrote:

 
  I have a remote method which is retrieving a deal object, populating a
  structure and returning it to the client requesting it. This is all well
  and good. However, the deal object has multiple address objects
 associated
  to it. When looping over these addresses, I am having trouble adding
 them
  to an array. Here is my code:
 
  for (Address in Deal.getAddresses()){
  tmpAddress.street = Address.getStreet();
  tmpAddress.street2 = Address.getStreet2();
  tmpAddress.city = Address.getCity();
  tmpAddress.state = Address.getState();
  tmpAddress.postalcode = Address.getPostalcode();
  tmpAddress.phone = Address.getPhone();
  ArrayAppend(results.Deal.addresses,tmpAddress);
  }
 
  The problem that I am having is that the results.Deal.addresses key
 ends up
  with an array of empty structures, the total number matching the total
  addresses associated to this deal. So in my test case, the deal that I
 am
  working on has a single address, so the results.Deal.addresses key is an
  array with on empty structure in it (no keys). However, if I don't try
 to
  append to the array by doing this:
 
  for (Address in Deal.getAddresses()){
  tmpAddress.street = Address.getStreet();
  tmpAddress.street2 = Address.getStreet2();
  tmpAddress.city = Address.getCity();
  tmpAddress.state = Address.getState();
  tmpAddress.postalcode = Address.getPostalcode();
  tmpAddress.phone = Address.getPhone();
  results.Deal.addresses = tmpAddress;
  }
 
  The results.Deal.addresses key is now a struct and all the address keys
  assigned properly, so I know the tmpAddress struct is being populated
  properly. Does anyone have any thoughts as to what might be going on? I
 am
  running ACF 10 and yes, I have var scoped the results, Deal and
 tmpAddress
  variables at the top of the method. I also tried adding local to the
  Address variable in the for loop, but it did not help.
 
  Thansk,
 
  --
 
[image: profile picture]  *Dean Lawrence*
  *President*
  Internet Data Technology
  *Phone:* 888-438-4381 x701
  *Web:* www.idatatech.com
  *Email:* d...@idatatech.com
Programming | Database | Consulting | Training
 
 
 

 

~|
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:359867
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Bcrypt.class error

2014-12-20 Thread Dean Lawrence

Yes Russ, I have update 15 installed.

On Fri, Dec 19, 2014 at 3:07 PM, Russ Michaels r...@michaels.me.uk wrote:


 Do you have all the cf10 updates installed?
 Always worth ruling that out first.


 On Fri, Dec 19, 2014 at 19:26 PM, Dean Lawrence dean...@gmail.com wrote:


 Well, this ended up not working, as it failed again first thing this
 morning. I tried re-initing my app and it still did threw the error. What
 also found out though, was that instead of rebooting CF, I could get it to
 work by renaming the webservice CFC, making a call to the webservice (which
 generated and error) and then renaming the CFC back to the original name.
 After I did this, the app was able to authenticate again.

 So this tells me that the CFC is cached somewhere, but I do not know where.
 I tried emptying both the template and component caches from the CF admin,
 but this did not resolve the issue. Does anyone know how/where CF would be
 caching this and how to programmatically refresh it?

 On Thu, Dec 18, 2014 at 2:52 PM, Russ Michaels r...@michaels.me.uk
 javascript:; wrote:
 
 
  that is a pretty generic error, but as it only happens after a while you
  might solve the problem by caching your object in application scope so it
  doesn;t have to be instan tiated every time.
 
  application.bcrypt = CreateObject(java, BCrypt);
 
  obviously check that it exists before creating it , or you are just doing
  the same thing.
 


 --

   [image: profile picture]  *Dean Lawrence*
 *President*
 Internet Data Technology
 *Phone:* 888-438-4381 x701
 *Web:* www.idatatech.com
 *Email:* d...@idatatech.com javascript:;
   Programming | Database | Consulting | Training




 

~|
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:359868
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Bcrypt.class error

2014-12-19 Thread Dean Lawrence

Thanks Byron,

Yes, the error is being generated by the checkpw method. Since the method
is working as written, I don't think that moving the checkpw call to a set
statement will alleviate the issue. When it decides to fail, it fails using
the exact same credentials call from the client side, so I know that it is
not an issue of incorrect values being passed in. Also, even with the more
granular error checking, if the checkpw method decided to start failing, I
would ultimately receive the ambiguous NullPointerException error. I may
add the additional tests once the app goes live, since I won't be dealing
with controlled data, but I don't think that it will benefit me with this
current issue.

I am trying the application scoped suggestion as offered by Russ, since I
know that I can refresh that variable even if the webservice is cached
somewhere else. So far it has not failed again, so I am hoping that it
solved the issue.

Thanks again for you input Byron.

On Thu, Dec 18, 2014 at 3:21 PM, Byron Mann byronos...@gmail.com wrote:


 Based on your description, I think this is the line causing an error.

 bcrypt.checkpw(lcase(password),Member.getMemberPassword())

 I might just add some more granular logging before the statement that would
 maybe nail down what is amiss.

 try {  writeoutput(lcase(password)); } catch (any e) {  write error 1 }
 try {  writeoutput(Member.getMemberPassword()); } catch (any e) {  write
 error 2 }
 try {  writeoutput(bcrypt.checkpw('test','test')); } catch (any e) {  write
 error 3 }
 try {  writeoutput(bcrypt.checkpw(lcase(password),Member.
 getMemberPassword())); } catch (any e) {  write error 4 }
 bcrypt.checkpw(lcase(password),Member.getMemberPassword())

 Could maybe also pull out the checkpw function from inside the if an set to
 a variable.

 var chkResult = bcrypt.checkpw(lcase(password),Member.getMemberPassword())
 if(isDefined(chkResult) and !isNull(chkResult) and isBoolean(chkResult)
 and chkResult){.

 if statement might be a bit overkill, but may handle the error more
 gracefully.


-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:359860
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Bcrypt.class error

2014-12-19 Thread Dean Lawrence

Well, this ended up not working, as it failed again first thing this
morning. I tried re-initing my app and it still did threw the error. What
also found out though, was that instead of rebooting CF, I could get it to
work by renaming the webservice CFC, making a call to the webservice (which
generated and error) and then renaming the CFC back to the original name.
After I did this, the app was able to authenticate again.

So this tells me that the CFC is cached somewhere, but I do not know where.
I tried emptying both the template and component caches from the CF admin,
but this did not resolve the issue. Does anyone know how/where CF would be
caching this and how to programmatically refresh it?

On Thu, Dec 18, 2014 at 2:52 PM, Russ Michaels r...@michaels.me.uk wrote:


 that is a pretty generic error, but as it only happens after a while you
 might solve the problem by caching your object in application scope so it
 doesn;t have to be instan tiated every time.

 application.bcrypt = CreateObject(java, BCrypt);

 obviously check that it exists before creating it , or you are just doing
 the same thing.



-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:359861
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Bcrypt.class error

2014-12-18 Thread Dean Lawrence

I am using the java bcrypt class library to encrypt passwords on one of my
sites and it is working fine. However, I am extending the app with a
webservice and using the same bcrypt library to authenticate logins. This
works fine for a period of time and then stops working.

The error that I receive is An exception occurred when executing method
checkpw.. The error detail is The cause of this exception was that:
java.lang.NullPointerException.. Even when I start to receive this error,
I am still able to make the exact same call from within a CF template
without a problem. But being called from the webservice, I get the error. I
have tried reinitializing the app to no avail. The only way that I have
been able to fix the issue is by rebooting CF. I am using ACF 10 and here
is the code that I am using to call bcrypt.

component  displayname=Consumer API output=false wsversion=2
namespace=http://mydomain/;
{
variables.bcrypt = CreateObject(java, BCrypt);

remote struct function authenticate() returnformat=JSON {
var results = {};
var memberEmail = ;
var password = ;
var token = ;

results.status = 0;
results.message = Invalid email or password;

if (isSOAPRequest()){
try
{
memberEmail = getSOAPRequestHeader(http://mydomain/;,
memberEmail);
password = getSOAPRequestHeader(http://mydomain/;,
password);

if (isValid(email,memberEmail)){
Member = entityLoad(Member,{email=memberEmail},true);

if (NOT isNull(Member)){
if
(bcrypt.checkpw(lcase(password),Member.getMemberPassword())){
results.message = Successfully Authenticated;
token =
variables.utility.formStringEncrypt(Member.getMemberID());
addSOAPResponseHeader(http://mydomain/;,
token, token, false);
results.status = 1;
results.message = Member authenticated;
} else {
addSOAPResponseHeader(http://mydomain/;,
token, token, false);
}
} else {
addSOAPResponseHeader(http://mydomain/;, token,
token, false);
}
} else {
addSOAPResponseHeader(http://mydomain/;, token,
token, false);
}
}
catch(Any e)
{
results.message = Error processing request.;
sendError(e);
}
} else {
results.message = Not invoked as a web service;
}

return results;
}
}

Any help would be greatly appreciated.

-- 

  [image: profile picture]  *Dean Lawrence*
*President*
Internet Data Technology
*Phone:* 888-438-4381 x701
*Web:* www.idatatech.com
*Email:* d...@idatatech.com
  Programming | Database | Consulting | Training


~|
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:359854
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Bcrypt.class error

2014-12-18 Thread Dean Lawrence

Yea, it is the generic nature of the error that is so frustrating. Like I
said, I can still call the same class file and make the identical method
call from another cf file even after the webservice starts throwing the
error, so my assumption is that it is being cached somewhere. I tried
clearing the template and cfc caches which had no affect on it though. If I
knew that I could reset it without having to reboot CF, I could then build
a test to do so on error. I'll try your suggestion of caching it in the
application scope and see if that fixes the issue. Thanks Russ.

On Thu, Dec 18, 2014 at 2:52 PM, Russ Michaels r...@michaels.me.uk wrote:


 that is a pretty generic error, but as it only happens after a while you
 might solve the problem by caching your object in application scope so it
 doesn;t have to be instan tiated every time.

 application.bcrypt = CreateObject(java, BCrypt);

 obviously check that it exists before creating it , or you are just doing
 the same thing.

 On Thu, Dec 18, 2014 at 7:36 PM, Dean Lawrence dean...@gmail.com wrote:
 
 
  I am using the java bcrypt class library to encrypt passwords on one of
 my
  sites and it is working fine. However, I am extending the app with a
  webservice and using the same bcrypt library to authenticate logins. This
  works fine for a period of time and then stops working.
 
  The error that I receive is An exception occurred when executing method
  checkpw.. The error detail is The cause of this exception was that:
  java.lang.NullPointerException.. Even when I start to receive this
 error,
  I am still able to make the exact same call from within a CF template
  without a problem. But being called from the webservice, I get the
 error. I
  have tried reinitializing the app to no avail. The only way that I have
  been able to fix the issue is by rebooting CF. I am using ACF 10 and here
  is the code that I am using to call bcrypt.
 
  component  displayname=Consumer API output=false wsversion=2
  namespace=http://mydomain/;
  {
  variables.bcrypt = CreateObject(java, BCrypt);
 
  remote struct function authenticate() returnformat=JSON {
  var results = {};
  var memberEmail = ;
  var password = ;
  var token = ;
 
  results.status = 0;
  results.message = Invalid email or password;
 
  if (isSOAPRequest()){
  try
  {
  memberEmail = getSOAPRequestHeader(http://mydomain/;,
  memberEmail);
  password = getSOAPRequestHeader(http://mydomain/;,
  password);
 
  if (isValid(email,memberEmail)){
  Member =
 entityLoad(Member,{email=memberEmail},true);
 
  if (NOT isNull(Member)){
  if
  (bcrypt.checkpw(lcase(password),Member.getMemberPassword())){
  results.message = Successfully
 Authenticated;
  token =
  variables.utility.formStringEncrypt(Member.getMemberID());
  addSOAPResponseHeader(http://mydomain/;,
  token, token, false);
  results.status = 1;
  results.message = Member authenticated;
  } else {
  addSOAPResponseHeader(http://mydomain/;,
  token, token, false);
  }
  } else {
  addSOAPResponseHeader(http://mydomain/;,
 token,
  token, false);
  }
  } else {
  addSOAPResponseHeader(http://mydomain/;,
 token,
  token, false);
  }
  }
  catch(Any e)
  {
  results.message = Error processing request.;
  sendError(e);
  }
  } else {
  results.message = Not invoked as a web service;
  }
 
  return results;
  }
  }
 
  Any help would be greatly appreciated.
 
  --
 
[image: profile picture]  *Dean Lawrence*
  *President*
  Internet Data Technology
  *Phone:* 888-438-4381 x701
  *Web:* www.idatatech.com
  *Email:* d...@idatatech.com
Programming | Database | Consulting | Training
 
 
 

 

~|
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:359856
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: JDBC drivers for old FoxPro DBF files.

2014-11-24 Thread Dean Lawrence

Here was a JDBC driver that I found that supposedly works with FoxPro,
StelsDBF (http://www.csv-jdbc.com/stels_dbf_jdbc.htm). I've never used them
before, but they have a demo version of the driver that you can download.

On Fri, Nov 21, 2014 at 7:58 PM, Arden Weiss ardenwe...@verizon.net wrote:


 Need advice on what database drivers work well with CF10 and the old
 FoxPro for DOS DBF files. Back in the CF

 Client has app that has been running flawlessy since 2000 or so using CF5
 and the ODBC drivers that came with the product to process credit card
 transactions via authorize.net -- back in the CF6 days, I failed to find
 a JDBC driver that played nicely with the DBF files -- hope that has
 changed.

 Recently flaws in the SSL3 security (POODLE) caused authnet to drop
 support for SSL3 and hence broke the application -- we now will be using
 CF10 with Java 1.7 and TSL1.2 to solve that problem, but we need solid
 support for DBF file update until the whole system gets rewritten/changed.

 Any/all advice requested.

 

~|
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:359706
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: JDBC drivers for old FoxPro DBF files.

2014-11-24 Thread Dean Lawrence

You may also want to try the driver by HXTT (http://www.hxtt.com/dbf.html).
I use their Access driver to be able to work with some of my old Access
driven projects on my Mac.

On Mon, Nov 24, 2014 at 9:28 AM, Dean Lawrence dean...@gmail.com wrote:

 Here was a JDBC driver that I found that supposedly works with FoxPro,
 StelsDBF (http://www.csv-jdbc.com/stels_dbf_jdbc.htm). I've never used
 them before, but they have a demo version of the driver that you can
 download.

 On Fri, Nov 21, 2014 at 7:58 PM, Arden Weiss ardenwe...@verizon.net
 wrote:


 Need advice on what database drivers work well with CF10 and the old
 FoxPro for DOS DBF files. Back in the CF

 Client has app that has been running flawlessy since 2000 or so using CF5
 and the ODBC drivers that came with the product to process credit card
 transactions via authorize.net -- back in the CF6 days, I failed to find
 a JDBC driver that played nicely with the DBF files -- hope that has
 changed.

 Recently flaws in the SSL3 security (POODLE) caused authnet to drop
 support for SSL3 and hence broke the application -- we now will be using
 CF10 with Java 1.7 and TSL1.2 to solve that problem, but we need solid
 support for DBF file update until the whole system gets rewritten/changed.

 Any/all advice requested.

 

~|
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:359708
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Avoiding a boat load of queries inserting multiple records - Better Way?

2014-10-09 Thread Dean Lawrence

Les,

I think that it would probably be more efficient if you imported all the
records into a temp table and then did an insert into the main email table
based upon a join query that only includes records from the temp table that
are not in the main email table. You could then do a similar insert into
the category relationship table, but update the query to use the new id
value that was created by the insert into the main email table. Both of
these queries could be included in a single stored procedure and executed
with a single request from ColdFusion.

On Thu, Oct 9, 2014 at 12:30 PM, Les Mizzell lesm...@bellsouth.net wrote:


 I've got an application that imports email list from Excel sheets.
 Mostly working fine, but I've got one spot where I'd like to optimize
 things if I could.

 Once the data is imported I run two queries against each email address:
 1. see if the email address is already in the group in question
 2. see if this person has already unsubscribed from this list ---

 If both of those return no records, and I've already run some other
 validation making sure entered info is valid, I add everything to an array:

 cfset mailREC[CurrentRow][1] = email /
 cfset mailREC[CurrentRow][2] = fname /
 cfset mailREC[CurrentRow][3] = lname /
 cfset mailREC[CurrentRow][4] = other /

 Now the problem ...
 I need to do two inserts
- first to enter the info into the email database
- second to capture the ID from the first insert, and put that into a
 relational table that assigns that address to the specified group.
 I removed cfqueryparam from the below to make it more compact...

 So, I loop through my array and enter all the records..

 loop..
cfquery name=insertEMAIL
  SET NOCOUNT ON
   . remainder of insert code
  SET NOCOUNT OFF
  SELECT @@IDENTITY AS fromLISTID
  /cfquery

cfquery name=insertGROUP 
INSERT INTO nl_catREL ( groups_id, email_id )
 VALUES ( #req.thisGROUPID#, #insertLIST.fromLISTID# )
 /cfquery
 /loop..

 The problem is, some of these spreadsheets and have up to 5,000 or more
 email addresses.
 That means, just for the insert, two queries for each address = 10,000
 queries.
 If it was just one insert query, no big deal, as I could loop inside the
 query tag itself and reduce it to one call. It's the two combined that
 are giving me a headache. The application IS working the way it is, but
 shove a 15,000 email list into it, and it obviously chokes.

 Is there a better way to set up my two insert queries above so it's not
 making two calls for every single address?



 

~|
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:359430
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF11 changes to Application.cfc - no mappings defined?

2014-10-08 Thread Dean Lawrence

Mark,

When you say global mappings, are you saying that you created a mapping in
the ColdFusion admin? Also, can you maybe share some of your
Application.cfc code for us to get a better idea as to what you are trying
to accomplish?

On Wed, Oct 8, 2014 at 1:58 PM, Gaulin, Mark mark.gau...@ihs.com wrote:


 Hi Folks
 Our single CF11 test server just highlighted a freaky difference between
 CF10 and CF11 that has us all puzzled.  (We are running CF11 with the
 latest service pack.)

 It appears that the CF mappings defined in CFIDE (such as /cfc - root
 dir for all of our CFC's) are not defined inside the block of code at the
 top of Application.cfc (outside of any method in Application.cfc).  This
 means we can't instantiate CFC's under the /cfc directory in that top
 script block area.

 We know we can create CFC's in onApplicationStart(), but we currently use
 a CFC to set the Application's this.name and this.setDomainCookies,
 etc. variables, and I think those can only be changed right at the top of
 Application.cfc.

 Is this a bug or something?  Why would globally-defined mappings not be
 available at the top of Application.cfc? (BTW, the per-Application
 this.mappings are also ignored in that top script block, so that's not a
 help either.)

 Thanks
 Mark

 

~|
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:359416
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF11 changes to Application.cfc - no mappings defined?

2014-10-08 Thread Dean Lawrence

Hmm, that is odd. It may very well be a bug. I don't know for sure if the
location of where you define the application properties is restricted to
the top of your Application.cfc or not, but here are two things to try.

Placing the calling of your configuration cfc inside your
onApplicationStart() method:

cfcomponent name=MyApplication output=false
cfscript

public void function onApplicationStart() {
tcreateObject(component,
cfc.ApplicationSettings).configureAppSettings(app=this);
this.applicationManager.onApplicationStart();
}

public void function onRequestStart() {
application.applicationManager.onRequestStart();
}
/cfscript
/cfcomponent

Or add an additional mapping above the call to the config cfc.

cfcomponent name=MyApplication output=false
cfscript

   THIS.mappings[/cfc]=path-to-cfc-folder;
   createObject(component,
cfc.ApplicationSettings).configureAppSettings(app=this);

   public void function onApplicationStart() {
this.applicationManager.onApplicationStart();
}

public void function onRequestStart() {
application.applicationManager.onRequestStart();
}
/cfscript
/cfcomponent



On Wed, Oct 8, 2014 at 2:39 PM, Gaulin, Mark mark.gau...@ihs.com wrote:


 Hi Dean
 Yes, we defined mappings in the CF Admin.  These mappings all work outside
 of the top script block, but not in it.

 Here's a sketch of what currently works on CF10:

 cfcomponent name=MyApplication output=false
 cfscript
 // All of these settings can be done by the configureAppSettings()
 call below...
 //  this.name = App;
 //  this.clientManagement = true;
 //  this.sessionManagement = true;
 //  this.setClientCookies = false;
 //  this.applicationTimeout = createTimeSpan(2, 0, 0, 0);
 //  this.setDomainCookies = true;

 createObject(component,
 cfc.ApplicationSettings).configureAppSettings(app=this);

 public void function onApplicationStart() {
 this.applicationManager.onApplicationStart();
 }

 public void function onRequestStart() {
 application.applicationManager.onRequestStart();
 }
 /cfscript
 /cfcomponent


 -Original Message-
 From: Dean Lawrence [mailto:dean...@gmail.com]
 Sent: Wednesday, October 08, 2014 2:13 PM
 To: cf-talk
 Subject: Re: CF11 changes to Application.cfc - no mappings defined?


 Mark,

 When you say global mappings, are you saying that you created a mapping in
 the ColdFusion admin? Also, can you maybe share some of your
 Application.cfc code for us to get a better idea as to what you are trying
 to accomplish?

 On Wed, Oct 8, 2014 at 1:58 PM, Gaulin, Mark mark.gau...@ihs.com wrote:

 
  Hi Folks
  Our single CF11 test server just highlighted a freaky difference
  between
  CF10 and CF11 that has us all puzzled.  (We are running CF11 with the
  latest service pack.)
 
  It appears that the CF mappings defined in CFIDE (such as /cfc -
  root dir for all of our CFC's) are not defined inside the block of
  code at the top of Application.cfc (outside of any method in
  Application.cfc).  This means we can't instantiate CFC's under the
  /cfc directory in that top script block area.
 
  We know we can create CFC's in onApplicationStart(), but we currently
  use a CFC to set the Application's this.name and
  this.setDomainCookies, etc. variables, and I think those can only be
  changed right at the top of Application.cfc.
 
  Is this a bug or something?  Why would globally-defined mappings not
  be available at the top of Application.cfc? (BTW, the per-Application
  this.mappings are also ignored in that top script block, so that's
  not a help either.)
 
  Thanks
  Mark
 
 



 

~|
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:359420
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: How can I force clients to refresh JavaScript files?

2014-09-12 Thread Dean Lawrence

Try CF Static (http://cfstatic.riaforge.org/), it appends a unique string
to the end of the file requests, which forces browsers to load the newer
version. You can have it compress all your CSS and JS files or simply use
it deliver your files.

On Fri, Sep 12, 2014 at 11:05 AM,  wrote:


 I wonder why browsers caching Javascript and CSS files at least do not
 check if the date of the file on the server is still the same as the one in
 their cache.
 Since I implemented a Javascript errors log, I catch many errors showing
 that the old file in the cache was used days after the error was corrected,
 even with Google Bot! (yeah, Google Bot reads and executes scripts).

 This page :

 http://stackoverflow.com/questions/32414/how-can-i-force-clients-to-refresh-javascript-files
 expose the problem and gives many solutions.

 I wonder if one could develop an even better solution using ColdFusion?
 Any ideas?


 

~|
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:359294
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: HMAC Algorithms and Encoding?

2014-09-09 Thread Dean Lawrence

Sandy,

I do believe that you can use any algorithm that the hash function
supports. Take a look at the documentation for hash and you will see what
options you have.

On Tue, Sep 9, 2014 at 8:34 AM, Sandra Clark sclarkli...@gmail.com wrote:


 I'm working on a Cybersource Authorization form, which has a PHP sample
 page.



 I'm trying to use the hmac() function in CF10.  However, the documentation
 on it is lacking to say the least.

 Parameters


 Parameter

 Required\Optional

 Description


 message

 Required

 The message to transmit. The message can be a String or a byte array.


 key

 Required

 The secret key to create HMAC. The key can be a String or a byte array.


 algorithm

 Optional

 Algorithm used.


 encoding

 Optional

 Encoding to be used.





 No where can I find the algorithms or encoding options that can be used.
 The
 example itself is of little use.  Anyone have any links, lists etc, where I
 can find some?



 Thanks



 Sandy Clark

 About Web







 

~|
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:359248
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: HMAC Algorithms and Encoding?

2014-09-09 Thread Dean Lawrence

Sandy,

Looking at the example in the HMAC() docs, they prefixed the algorithm type
with HMAC. Maybe if you try HMACSHA-256, to see if it works?

On Tue, Sep 9, 2014 at 10:46 AM, Sandra Clark sclarkli...@gmail.com wrote:


 Tried that, I am now getting an error telling me that  An error occurred
 while generating HMAC.
 Error: Algorithm SHA-256 not available.

 HASH() documentation  is showing SHA-256
 *sigh*

 -Original Message-
 From: Dean Lawrence [mailto:dean...@gmail.com]
 Sent: Tuesday, September 9, 2014 9:53 AM
 To: cf-talk
 Subject: Re: HMAC Algorithms and Encoding?


 Sandy,

 I do believe that you can use any algorithm that the hash function
 supports.
 Take a look at the documentation for hash and you will see what options you
 have.




 

~|
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:359251
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion / authorize.net question

2014-08-18 Thread Dean Lawrence

Eric, looking at your sample form, you are never populating the hidden
x_last_name field with the value from the LastName field. Also, your
LastName field is outside of the form tags. You need to use javascript to
populate the x_last_name field with the value of LastName when someone
clicks the submit button, prior to actually submitting the form. An easier
option would be to just rename your LastName field to x_last_name and not
have to deal with the javascript at all.


On Mon, Aug 18, 2014 at 7:13 AM, Eric Bourland ebwebw...@outlook.com
wrote:


 Dear .jonah,

 Good morning. Thank you so much.

 The code is below. The page is set up here: http://nnvawi.org/sample.cfm

 You can try it out and see that there is a blank value for field Last Name
 in the authorize form.

 I have tried to follow the sample code given by authorize.net.

 Thank you very much for any advice you can give me, and for your time.

 best from Eric

 Code:

 cfsetting enablecfoutputonly=true
 cfoutput
 !--
 This sample code is designed to connect to Authorize.net using the SIM
 method.
 For API documentation or additional sample code, please visit:
 http://developer.authorize.net

 Most of this page below (and including) this comment can be modified using
 any
 standard html. The parts of the page that cannot be modified are noted in
 the
 comments.  This file can be renamed as long as the file extension remains
 .cfm
 --

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
   http://www.w3.org/TR/html4/loose.dtd;
 HTML lang='en'
 HEAD
 TITLE Sample SIM Implementation /TITLE
 /HEAD
 BODY


 !-- This section generates the Submit Payment button using Coldfusion
--
 /cfoutput
 !--- set default values for user-editable fields ---
 cfparam name=form.LastName default=


 !--- the parameters for the payment can be configured here ---
 !--- the API Login ID and Transaction Key must be replaced with valid
 values ---
 cfset loginID=x
 cfset transactionKey=yy
 cfset amount=19.99
 cfset description=Sample Transaction
 cfset label=Submit Payment !--- The is the label on the 'submit'
 button ---
 cfset testMode=false
 cfset LastName=#form.LastName# !--- adding a cfset for LastName;
 value for LastName will come from the FORM scope ---


 !--- By default, this sample code is designed to post to our test server
 for
 developer accounts: https://test.authorize.net/gateway/transact.dll for
 real
 accounts (even in test mode), please make sure that you are posting to:
 https://secure.authorize.net/gateway/transact.dll ---
 cfset posturl=https://secure.authorize.net/gateway/transact.dll;

 !--- If an amount or description were posted to this page, the defaults
 are overidden ---
 cfif IsDefined(FORM.amount)
   cfset amount=FORM.amount
 /cfif
 cfif IsDefined(FORM.description)
   cfset description=FORM.description
 /cfif
 cfif IsDefined(FORM.LastName)
   cfset LastName=FORM.LastName
 /cfif


 !--- also check to see if the amount or description were sent using the
 GET method ---
 cfif IsDefined(URL.amount)
   cfset amount=URL.amount
 /cfif
 cfif IsDefined(URL.description)
   cfset description=URL.description
 /cfif
 cfif IsDefined(URL.LastName)
   cfset LastName=URL.LastName
 /cfif

 !--- an invoice is generated using the date and time ---
 cfset invoice=DateFormat(Now(),mmdd)  TimeFormat(Now(),HHmmss)

 !--- a sequence number is randomly generated ---
 cfset sequence=RandRange(1, 1000)

 !--- a timestamp is generated ---
 cfset timestamp=DateDiff(s, January 1 1970 00:00,
 DateConvert('local2UTC', Now())) 

 !--- The following lines generate the SIM fingerprint ---
 cf_hmac data=#loginID#^#sequence#^#timestamp#^#amount#^
 key=#transactionKey#
 cfset fingerprint=#digest#

 cfoutput

 !--- Print the Amount and Description to the screen.---
 pAmount: #amount# br /
 Description: #description# br /
 Enter Last Name: input type=text name=LastName value= tabindex=1
 size=20 //p

 !--- gist of problem is just above -- I cannot set up a field in which a
 user can enter a value like LastName ---

 !--- Create the HTML form containing necessary SIM post values ---
 FORM method='post' action='#posturl#' 
 !--- Additional fields can be added here as outlined in the SIM
 integration
 guide at http://developer.authorize.net ---
 INPUT type='hidden' name='x_login' value='#loginID#' /
 INPUT type='hidden' name='x_amount' value='#amount#' /
 INPUT type='hidden' name='x_description' value='#description#' /
 INPUT type='hidden' name='x_invoice_num' value='#invoice#' /
 INPUT type='hidden' name='x_fp_sequence' value='#sequence#' /
 INPUT type='hidden' name='x_fp_timestamp' value='#timeStamp#' /
 INPUT type='hidden' name='x_fp_hash' value='#fingerprint#' /
 INPUT type='hidden' name='x_test_request' value='#testMode#' /
 INPUT type='hidden' name='x_show_form' value='PAYMENT_FORM' /
 input type='submit' value='#label#' /
  cfoutputINPUT type='hidden' name='x_last_name' value='#LastName#'
 //cfoutput 

Re: ColdFusion / authorize.net question

2014-08-18 Thread Dean Lawrence

Les, your implementation is using the Direct Post Method (DPM), not the
Server Integration Method (SIM) that Eric is trying to implement.


On Mon, Aug 18, 2014 at 2:52 PM, Les Mizzell lesm...@bellsouth.net wrote:


 On 8/18/2014 12:36 AM, Eric Bourland wrote:
  Has anyone here tried out the ColdFusion SIM* sample code from
 authorize.net? I

 A version of the below has been working great for me. I use it as a
 include on my form processing page that also records the appropriate
 data to the customers record in the database (NOT the credit card info!
 NEVER do this!)






-- 
---
Dean M. Lawrence
INTERNET DATA TECHNOLOGY
p // 888.438.4381 ext. 701
w // www.idatatech.com
f // www.facebook.com/idatatech
t // www.twitter.com/idatatech

Social Marketing | SEO | Design | Internet Development


~|
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:359128
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: EMail Injection Attack

2014-08-18 Thread Dean Lawrence

The easiest thing to do is to scan your site code to see what pages contain
the cfmail tag. The next thing is to look at your web server logs to see
who is requesting those pages. If you allow for the site visitor to specify
who the mail is being sent to, then you are opening yourself up to someone
sending spam through your site.


On Mon, Aug 18, 2014 at 4:39 PM, G T tran.ga...@gmail.com wrote:


 The server itself is our own dedicated webserver, and as for our email
 server we're using Microsoft 365 so I do not think the compromise is at
 that level.

 I may implement the smtp auth piece to at least mitigate the issue as of
 now.

 Thanks for the suggestion!

  Do you have admin control of this server or is it a shared host?  If its
 a
 server you control then its a simple matter to lock down the mail server,
 right?  Require smtp auth for all senders and then use smtp auth in your
 cfmail statements in your code.  That would be just step 1 of a hardening
 process that should have more than this layer to it.
 
 I realize this doesn't bear on your discovery question but if this is
 happening at all it points to a hole in security in at least one place.
 And if its a shared host then the situation may not be in your control in
 the first place.
 
 
 
 
 

 

~|
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:359140
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Invalid Data for Parameter but which one?

2014-07-29 Thread Dean Lawrence

Actually, the error is telling you exactly what is wrong. You are sending a
string value of false to a field that only allows a maximum of 1
character. More than likely, you are trying to send a true/false value to a
char(1) field. Try either converting your true/false value to 1/0. Also, I
do believe that if you use cfqueryparam (which you should be already) and
specify the sql type for the field is bit, it will properly convert your
true/false values to 1/0 for you.


On Tue, Jul 29, 2014 at 4:47 AM, Richard White rich...@re-base.net wrote:


 Hi,

 I received the following error within a query 'Invalid data value false
 exceeds maxlength setting 1.'

 I understand the error but I need to trace which parameter is having this
 issue as there are lots. Is there any way of getting coldfusion to tell me?

 Thanks,
 Richard

 

~|
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:359028
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: AWeber Email List Management

2014-07-16 Thread Dean Lawrence

Thanks Maureen and Bryon for your suggestions. Yes, PHP is an option, but I
am not posting directly to AWeber because I have to do work with the
submitted data first prior to sending it to their server, including setting
some CF session values. I was primarily trying to not have to work with 2
languages within the same app. I guess that I am either going to have to
roll my own wrapper or work with one of the other language wrappers that
they have. Thanks again.


On Wed, Jul 16, 2014 at 12:17 AM, Byron Mann byronos...@gmail.com wrote:


 Guess I should have phrased that a bit differently. Php (and others) option
 with cfexecute is certainly viable, I was concerned if the original poster
 was able to do so.

 They may be in a corporate, hosted or government environment that dictates
 otherwise.

 If php and CF are running locally on the server, I would opt for the
 command line method, as it will perform better. If this is a hosted
 environment a POST method will probably be the better option since many
 hosts lock down cfexecute in the sandbox.

 My million dollar idea would be to write a CF/Php compiler. Hm, project
 for the weekend me thinks.

 Byron Mann
 Lead Engineer  Architect
 HostMySite.com
 On Jul 15, 2014 10:57 PM, Maureen mamamaur...@gmail.com wrote:

 
  I don't see why not.  If you are going to do that, there are several
  options other than PHP as well.  Or you could just call the php page
  on your form action instead of a cfm page.
 
  On Tue, Jul 15, 2014 at 10:39 PM, Byron Mann byronos...@gmail.com
 wrote:
  
   Is installing php and using the php lib via cfexecute an option?
  
   Byron Mann
   Lead Engineer  Architect
   HostMySite.com
   On Jul 14, 2014 3:28 PM, Dean Lawrence dean...@gmail.com wrote:
  
  
   Does anyone have any experience using the AWeber API (
   https://labs.aweber.com/) from within their ColdFusion app? They
 don't
   have an wrapper library for ColdFusion and their documentation is not
  very
   good. I haven't been able to find anything substantial by using
 Google,
  so
   any help pointing me in the right direction would be greatly
  appreciated.
 
 

 

~|
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:358878
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: AWeber Email List Management

2014-07-15 Thread Dean Lawrence

Thanks for the suggestion Russ,

Unfortunately, my client already settled on using AWeber.


On Mon, Jul 14, 2014 at 3:31 PM, Russ Michaels r...@michaels.me.uk wrote:


 no, but I can recommend www.sendgrid.com though


 On Mon, Jul 14, 2014 at 8:27 PM, Dean Lawrence dean...@gmail.com wrote:

 
  Does anyone have any experience using the AWeber API (
  https://labs.aweber.com/) from within their ColdFusion app? They don't
  have an wrapper library for ColdFusion and their documentation is not
 very
  good. I haven't been able to find anything substantial by using Google,
 so
  any help pointing me in the right direction would be greatly appreciated.
 
 

 

~|
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:358869
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


AWeber Email List Management

2014-07-14 Thread Dean Lawrence

Does anyone have any experience using the AWeber API (https://labs.aweber.com/) 
from within their ColdFusion app? They don't have an wrapper library for 
ColdFusion and their documentation is not very good. I haven't been able to 
find anything substantial by using Google, so any help pointing me in the right 
direction would be greatly appreciated. 

~|
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:358866
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ColdFusion Builder 3 syntax errors

2014-06-04 Thread Dean Lawrence

Since upgrading to CFB 3, I am getting some weird syntax error in the editor. 
An example is when I try to escape a pound sign with in a style block that 
falls within a cfoutput tag.

.container {
border: 1px solid ##ACACAC;
margin-bottom:10px;
width:700px;
}

The editor marks the border line as being an error.

Encountered  # #  at line 217, column 28. test.cfm

I've tried replacing the escaped pound sign with #chr(35# which still shows an 
error

Encountered  ( (  at line 217, column 31. test.cfm

Any thoughts on why this is or a setting that will stop CFB from showing an 
error? I didn't have this problem with CFB 2.

~|
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:358712
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: stripping characters for meta description

2014-05-13 Thread Dean Lawrence

You are also getting exclamation points, colons, and periods. The code that
you have posted should replace anything that is not a letter, number or
space (though I would use \s for a space, as it is more readable). Are you
sure that you are not outputting the original text, not the modified
version?


On Tue, May 13, 2014 at 11:26 AM, Matthew Smith chedders...@gmail.comwrote:


 I have this:
 cfset request.page.description =
 REReplace(request.page.description,[^0-9A-Za-z ],,all)

 yes I am still getting quotes in the description.



 http://www.theartoflovingcatsanddogs.com/art-item/pueblo-kitties-coffee-cup-286/index.cfm


 

~|
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:358636
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF Builder 3 frustrates!!!

2014-05-08 Thread Dean Lawrence

Also, you can use the AnyEditTools plugin (http://andrei.gmxhome.de/anyedit/)
to export / import any working sets that you have defined. This works great
if you use the same workspace that you had for your previous CFB or Eclipse
installation.


On Thu, May 8, 2014 at 3:10 PM, Carl Von Stetten vonner.li...@vonner.netwrote:


 You can actually import your entire CFB2 workspace if you want (projects
 included).  By default (and on Windows), CFB2 put the workspace in
 C:\Users\Username\Adobe ColdFusion Builder Workspace. You can point CFB3
 to that same workspace if you want, or copy it into the one created by
 CFB3 (probably in a similar place).

 At least that worked with the Thunder Beta version I have.

 -Carl V.


 

~|
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:358588
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Could not initialize class com.rsa.jcm.c.ji

2014-05-07 Thread Dean Lawrence

I'm having issues with CF10 and cfhttp calls. Occasionally after a server 
reboot, some of my sites that utilize cfhttp start to throw this Could not 
initialize class com.rsa.jcm.c.ji error. I can usually get it to work again by 
stopping and restarting the CF services. However, today it does not want to 
work, no is it ideal that I have to do this in the first place. In looking at 
the logs, there is no indication of anything going on. The http.log simply 
shows the request. The error type that shows up in my notifications is 
java.lang.NoClassDefFoundError. I am including the stack trace below. Any help 
to diagnose and fix the issue would be greatly appreciated.

java.lang.NoClassDefFoundError: Could not initialize class com.rsa.jcm.c.ji at 
com.rsa.jcm.c.ec.aS(Unknown Source) at com.rsa.jcm.c.bv.init(Unknown Source) 
at com.rsa.jcm.c.t.newECPublicKey(Unknown Source) at 
com.rsa.cryptoj.o.kd.newECPublicKey(Unknown Source) at 
com.rsa.cryptoj.o.dh.b(Unknown Source) at com.rsa.cryptoj.o.dh.b(Unknown 
Source) at com.rsa.cryptoj.o.au.b(Unknown Source) at 
com.rsa.cryptoj.o.n.a(Unknown Source) at 
com.rsa.cryptoj.o..n.engineGeneratePublic(Unknown Source) at 
com.rsa.cryptoj.o.im.e(Unknown Source) at com.rsa.cryptoj.o.im.init(Unknown 
Source) at com.rsa.cryptoj.o.am.g(Unknown Source) at 
com.rsa.cryptoj.o.am.init(Unknown Source) at 
com.rsa.cryptoj.o.hi.init(Unknown Source) at com.rsa.cryptoj.o.cd.a(Unknown 
Source) at com.rsa.cryptoj.o.pg.engineGenerateCertificate(Unknown Source) at 
java.security.cert.CertificateFactory.generateCertificate(Unknown Source) at 
sun.security.provider.JavaKeyStore.engineLoad(Unknown Source) at 
sun.security.provider.JavaKey
 Store$JKS.engineLoad(Unknown Source) at java.security..KeyStore.load(Unknown 
Source) at sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore(Unknown 
Source) at sun.security.ssl.TrustManagerFactoryImpl.engineInit(Unknown Source) 
at javax.net.ssl.TrustManagerFactory.init(Unknown Source) at 
org.apache.http.conn.ssl.SSLSocketFactory.createSSLContext(SSLSocketFactory.java:190)
 at 
org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:209)
 at org.apache.http.conn.ssl.SSLSocketFactory.init(SSLSocketFactory.java:333) 
at 
org.apache.http.conn.ssl.SSLSocketFactory.getSocketFactory(SSLSocketFactory.java:165)
 at 
org.apache.http.impl.conn.SchemeRegistryFactory.createDefault(SchemeRegistryFactory.java:45)
 at 
org.apache.http.impl.client.AbstractHttpClient.createClientConnectionManager(AbstractHttpClient.java:294)
 at 
org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:445)
 at org.apache.http.impl.client.AbstractHttpCli
 ent.createHttpContext(AbstractHttpClient.java:274) at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:797)
 at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
 at 
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
 at coldfusion.tagext..net.HttpTag.createConnection(HttpTag.java:1924) at 
coldfusion.tagext.net.HttpTag.connHelper(HttpTag.java:907) at 
coldfusion.tagext.net.HttpTag.doEndTag(HttpTag.java:1198) at 
cfindex2ecfm736253959.runPage(C:\home\paperbuyersonline.com\wwwroot\index.cfm:206)
 at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244) at 
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag..java:444) at 
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at 
coldfusion.filter.IpFilter.invoke(IpFilter.java:64) at 
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:449) at 
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) 
 at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at 
coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at 
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at 
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
 at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at 
coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at 
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at 
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at 
coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at 
coldfusion.CfmServlet.service(CfmServlet.java:219) at 
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at 
sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source) at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at 
java.lang.reflect.Method.invoke(Unknown Source) at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityU
 til.java:274) at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:271) at 
java.security.AccessController.doPrivileged(Native Method) at 
javax.security.auth.Subject.doAsPrivileged(Unknown Source) at 

Re: Could not initialize class com.rsa.jcm.c.ji

2014-05-07 Thread Dean Lawrence

Well, I found some other threads of a similar vain, which talked about
sandbox security. So I turned off sandbox security and restarted the CF
service and I am no longer getting the error. However, I don't know for
sure if it was the act of shutting off the sandbox security or the simple
act of restarting the CF service again which made the difference.


On Wed, May 7, 2014 at 10:32 AM, Dean Lawrence dean...@gmail.com wrote:


 I'm having issues with CF10 and cfhttp calls. Occasionally after a server
 reboot, some of my sites that utilize cfhttp start to throw this Could not
 initialize class com.rsa.jcm.c.ji error. I can usually get it to work
 again by stopping and restarting the CF services. However, today it does
 not want to work, no is it ideal that I have to do this in the first place.
 In looking at the logs, there is no indication of anything going on. The
 http.log simply shows the request. The error type that shows up in my
 notifications is java.lang.NoClassDefFoundError. I am including the stack
 trace below. Any help to diagnose and fix the issue would be greatly
 appreciated.

 java.lang.NoClassDefFoundError: Could not initialize class
 com.rsa.jcm.c.ji at com.rsa.jcm.c.ec.aS(Unknown Source) at
 com.rsa.jcm.c.bv.init(Unknown Source) at
 com.rsa.jcm.c.t.newECPublicKey(Unknown Source) at
 com.rsa.cryptoj.o.kd.newECPublicKey(Unknown Source) at
 com.rsa.cryptoj.o.dh.b(Unknown Source) at com.rsa.cryptoj.o.dh.b(Unknown
 Source) at com.rsa.cryptoj.o.au.b(Unknown Source) at
 com.rsa.cryptoj.o.n.a(Unknown Source) at
 com.rsa.cryptoj.o..n.engineGeneratePublic(Unknown Source) at
 com.rsa.cryptoj.o.im.e(Unknown Source) at com.rsa.cryptoj.o.im.init(Unknown
 Source) at com.rsa.cryptoj.o.am.g(Unknown Source) at 
 com.rsa.cryptoj.o.am.init(Unknown
 Source) at com.rsa.cryptoj.o.hi.init(Unknown Source) at
 com.rsa.cryptoj.o.cd.a(Unknown Source) at
 com.rsa.cryptoj.o.pg.engineGenerateCertificate(Unknown Source) at
 java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
 at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source) at
 sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source) at
 java.security..KeyStore.load(Unknown Source) at
 sun.security.ssl.TrustManagerFactoryImpl.getCacertsKeyStore(Unknown Source)
 at sun.security.ssl.TrustManagerFactoryImpl.engineInit(Unknown Source) at
 javax.net.ssl.TrustManagerFactory.init(Unknown Source) at
 org.apache.http.conn.ssl.SSLSocketFactory.createSSLContext(SSLSocketFactory.java:190)
 at
 org.apache.http.conn.ssl.SSLSocketFactory.createDefaultSSLContext(SSLSocketFactory.java:209)
 at
 org.apache.http.conn.ssl.SSLSocketFactory.init(SSLSocketFactory.java:333)
 at
 org.apache.http.conn.ssl.SSLSocketFactory.getSocketFactory(SSLSocketFactory.java:165)
 at
 org.apache.http.impl.conn.SchemeRegistryFactory.createDefault(SchemeRegistryFactory.java:45)
 at
 org.apache.http.impl.client.AbstractHttpClient.createClientConnectionManager(AbstractHttpClient.java:294)
 at
 org.apache.http.impl.client.AbstractHttpClient.getConnectionManager(AbstractHttpClient.java:445)
 at
 org.apache.http.impl.client.AbstractHttpClient.createHttpContext(AbstractHttpClient.java:274)
 at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:797)
 at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
 at
 org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:732)
 at coldfusion.tagext..net.HttpTag.createConnection(HttpTag.java:1924) at
 coldfusion.tagext.net.HttpTag.connHelper(HttpTag.java:907) at
 coldfusion.tagext.net.HttpTag.doEndTag(HttpTag.java:1198) at
 cfindex2ecfm736253959.runPage(C:\home\paperbuyersonline.com\wwwroot\index.cfm:206)
 at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244) at
 coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag..java:444) at
 coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at
 coldfusion.filter.IpFilter.invoke(IpFilter.java:64) at
 coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:449) at
 coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
 at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at
 coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at
 coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at
 coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
 at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at
 coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:58) at
 coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at
 coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at
 coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at
 coldfusion.CfmServlet.service(CfmServlet.java:219) at
 coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at
 sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source

Re: Unable to add text to HTML HEAD tag

2014-05-07 Thread Dean Lawrence

John,

Have you seen this thread? (
http://stackoverflow.com/questions/17516757/cf10-unable-to-add-text-to-html-head)
I don't know much content that you are trying to display, but have you
tried to increase the Max Output Buffer?



On Wed, May 7, 2014 at 2:21 PM, John Pullam jpul...@mcleansystems.comwrote:


 I don't dispute that rewriting it might be the best long term solution.
 And perhaps doing it in pieces is smart too (although I'd hate to be the
 person who had to maintain the application when it is in the middle.)

 But I wasn't asking for advice on CF programming strategy, rather I was
 looking for help on one particular problem, after having spent a few hours
 with no results from searches and tests.

 It annoys me (and I'm sure others) when people feel compelled to
 advise/lecture on programming techniques rather than discuss the issue. It
 also detracts from the quality of discussion because who wants to put
 themselves up for that criticism? Clearly anyone who advises me on my
 problem must be as dumb and inexperienced as I am!

 I will probably get very little additional feedback on this question
 because of that response.

 

~|
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:358581
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: More CFBuilder 3 frustration

2014-05-01 Thread Dean Lawrence

Mike,

Code insight does work on CFC that have been invoked using ColdSpring, you
just need to tell CFB where to find the CFC. Just follow these steps:

1. In the project properties, click on the CFC Mappings link.
2. Click on the New button in the CFC Variable Mapping section.
3. Enter usersDAO for the variable name
4. Enter the dotted path from the website root to the CFC (I keep mine in
model directory so I would enter model.userDAO)
5. Click Ok to save and exit the properties dialog.

After you do this, whenever you create a variable named usersDAO, CFB will
present code insight for any methods found in usersDAO CFC. So your example
would work fine.

usersDAO = application.beanfactory.getbean(usersDAO)



On Thu, May 1, 2014 at 1:29 AM, Mike K afpwebwo...@gmail.com wrote:


 So to summarise then,   ColdFusion Builder 3 is a great IDE, except that
 the following important features dont work for me,  and no one has been
 able to show me that they can work for me ...

 [A] FTP doesnt work, and no one has yet offered me any way to make it work.

 [B] Code insight apparently doesnt work if you use ColdSpring to
 instantiate the CFCs
 [C] You can't use the view in browser function - apparently it's been
 removed from ColdFusion Builder 3.(Unless someone can tell me where to
 find it).

 I can't see the point in paying all that cash for something that doesnt
 even do what UltraEdit can do.

 Or have it got it all wrong?Where are the fanboys now that were
 berating me for using Dreamweaver all these years? All these functions
 worked in Dreamweaver right up till Adobe decided that ColdFusion wasnt
 worthy of being in their product.



 Cheers
 Mike Kear
 Windsor, NSW, Australia
 Adobe Certified Advanced ColdFusion Developer
 AFP Webworks
 http://afpwebworks.com
 ColdFusion Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month


 

~|
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:358509
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: More CFBuilder 3 frustration

2014-05-01 Thread Dean Lawrence

Yes, that is correct. Just as you are telling ColdSpring where the CFC is,
you also have to tell CFB.


On Thu, May 1, 2014 at 11:28 AM, Mike K afpwebwo...@gmail.com wrote:


 Ok that's good news, Dean. I see code insight as a  big benefit of
 ColdFusion Builder, but so many things are going wrong these days I was
 getting to assume that this was just not going to work for me.
  (Sometimes I think there's a malicious supreme being looking over me
 saying nah ah.   you can't do that )

 So when i create a new CFC, I have to enter it into the ColdSpring.XML so
 Coldspring can find it and also into the CFC Mappings in CFBuilder, as you
 described.   Right?

 Cheers
 Mike Kear



 On Fri, May 2, 2014 at 1:20 AM, Dean Lawrence dean...@gmail.com wrote:

 
  Mike,
 
  Code insight does work on CFC that have been invoked using ColdSpring,
 you
  just need to tell CFB where to find the CFC. Just follow these steps:
 
  1. In the project properties, click on the CFC Mappings link.
  2. Click on the New button in the CFC Variable Mapping section.
  3. Enter usersDAO for the variable name
  4. Enter the dotted path from the website root to the CFC (I keep mine in
  model directory so I would enter model.userDAO)
  5. Click Ok to save and exit the properties dialog.
 
  After you do this, whenever you create a variable named usersDAO, CFB
 will
  present code insight for any methods found in usersDAO CFC. So your
 example
  would work fine.
 
  usersDAO = application.beanfactory.getbean(usersDAO)
 
  Cheers
 Mike Kear
 Windsor, NSW, Australia
 Adobe Certified Advanced ColdFusion Developer
 AFP Webworks
 http://afpwebworks.com
 ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month


 

~|
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:358511
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: More CFBuilder 3 frustration

2014-04-30 Thread Dean Lawrence

Mike,

I user CFB / Eclipse for rmultiple clients all the time. You simply create
a new project (File -- New -- ColdFusion Project) for each site that you
are working on. In the navigator pane, you will see each project in a
separate folder. I then create a working set under the filter drop-down
(the little down arrow in the top right of the navigation pane) for each
project. When I select a working set, it hides all my other project folders.

For CFC insight, you simply need to create a CFC Variable Mapping in the
projects properties. Just right click on the project name and choose
properties. From there, click on the CFC Mappings link and create the
mapping. Once you have done so, you will get code insight for your CFC even
if it is instantiated with ColdSpring.

As for the preview button, I know I used to have it in CFB 2, but I don't
see it in CFB 3. However, I have not created a server profile and assigned
it to a project, that may make the difference. However, even when I had it
in CFB 2, I never used it because I typically use a front-end controller,
either a a full framework or a slimmed down one that I created, so the
preview button didn't do me any good when working on an event action page
since the page would error if not called through the controller. So I
always just keep a browser open and tab back and forth between the browser
and the editor.

Hope this helps.


On Wed, Apr 30, 2014 at 6:15 PM, Mike K afpwebwo...@gmail.com wrote:


 Does anyone actually use CF Builder for multiple projects?

 Everything I've seen so far seems to assume I'm working for a company with
 one web site.  There's nothing I've found so far showing how to set it up
 for multiple web sites.

 I thought I'd done it right, but apparently not, because I can't preview
 any pages.  I've seen a video on the Adobe web site about using CF Builder
 for Dreamweaver users.The guy just clicks a tab at the bottom of the
 screen called Safari and sees the page run right in the window.I
 can't find that tab or any menu item or link where I can do the same thing.


 So after messing about with this damn thing for 4 hours now, I've got
 nowhere.Can't preview a page.  Can't upload anything to the server.
 It's just an expensive text editor so far.

 I can't use code insight either because unless I've missed something, it
 doesnt insight into CFCs instantiated with Coldspring.

 Has anyone managed to make CFBuilder introspect CFCs instantiated with
 ColdSpring?


 --
 Cheers
 Mike Kear
 Windsor, NSW, Australia
 Adobe Certified Advanced ColdFusion Developer
 AFP Webworks
 http://afpwebworks.com
 ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month


 

~|
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:358493
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion 10 does not allow Access datasource

2014-04-28 Thread Dean Lawrence

You could also use a Java driver to communicate with Access
http://www.hxtt.com/access.html. I use this driver on my Mac to work on
some older sites that I have to support and are using Access.


On Mon, Apr 28, 2014 at 10:10 AM, Russ Michaels r...@michaels.me.uk wrote:


 The problem is not just with CF. If you are using a 64 bit edition of
 windows, then the Jet driver is no longer supported by Microsoft and
 doesn't work on modern 64bit OS.
 The only option is to use the workarounds to get a 32bit ODBC DSN setup.
 This also means you will have hosting problems, as Windows is 64bit only
 since Server 2008, so you wont be able to setup a CF DSN unless the host is
 willing to also do this workaround for you or unless they are still running
 Windows 2003.

 See this:
 http://blogs.coldfusion.com/post.cfm/coldfusion-10-64bit-and-msaccess




 On Mon, Apr 28, 2014 at 2:57 PM, John Pullam jpul...@mcleansystems.com
 wrote:

 
  I have a newly installed CF10 system working on my desktop (developer)
  machine, including several working SQL Server datasources. But when I try
  to get the Access ones to work I keep running into issues.
 
  I installed the 32 bit version of ColdFusion in order to bypass the
 issues
  with 64 bit drivers, but the results I get sound similar to what others
  have said already. Unfortunately the suggestions and fixes in those
  postings don't seem to help in my case. Initially I thought I had this
  working but after a reboot, its behaviour changed and the Access
  datasources failed, so I deleted them in order to try again.
 
  Now, when I attempt to add a new datasource, I get the message The
  ColdFusion ODBC Server service is not running or has not been installed.
  You may also use the MS Access with Unicode driver to connect to MS
  Access datasources.
 
  I did the obvious things such as going into services and manually
 starting
  the service. Also there is no Unicode driver option in the administrator.
 
  Any ideas?
 
 

 

~|
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:358438
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


riaforge.org not found

2014-02-24 Thread Dean Lawrence

Is anyone able to reach riaforge.org? I'm coming up with a site not found 
error. I'm hitting something when I try riaforge.org because it is redirecting 
me to www.riaforge.org. However, I did a DNS lookup and the www is returning a 
302 Moved Temporarily status code. 

~|
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:357735
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Best way to use LESS CSS with CF?

2013-09-10 Thread Dean Lawrence

Rick,

CFSTATIC (https://github.com/DominicWatson/cfstatic) will combine and
minify both standard CSS and JS files as well as work with LESS file. I've
used it in a number of projects and it works great.


On Tue, Sep 10, 2013 at 11:47 AM, Rick Faircloth
r...@whitestonemedia.comwrote:


 But one question I need clarification concerning: if I don't use LESS,
 and work with a naming convention, such as BEM, can a pre-processor
 still be used with that to compile several stylesheets into a single
 stylesheet? Or do pre-processors work with only certains frameworks,
 like LESS or SASS?

 Rick

-- 
---
Dean M. Lawrence
INTERNET DATA TECHNOLOGY
p // 888.438.4381 ext. 701
w // www.idatatech.com
f // www.facebook.com/idatatech
t // www.twitter.com/idatatech

Social Marketing | SEO | Design | Internet Development


~|
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:356760
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Do you use Hostek and Gmail for your mail?

2013-08-21 Thread Dean Lawrence

Andrew,

Would setting the spoolenable attribute of cfmail to no possibly help
the issue? I have no idea if CF utilizes existing connections when not
using it's spool, but it is worth a try.


On Wed, Aug 21, 2013 at 8:31 AM, Andrew Scott andr...@andyscott.id.auwrote:


 I can't reproduce locally, as this is an Enterprise only feature in the
 admin. I know this is not hosteks fault, I just need it sorted. Hostek have
 already stated the below response. The change suggested below, actually
 does fix this at least it has been working fine for over 8 months, till
 recently when the mail just keeps stopping every two days. And then I
 started seeing other web applications emails in my sent folder.

 Response from Hostek.

 *We have identified the cause of the issue.  The setting 'Maintain
 connection to mail server' in the 'Mail' section of the CFAdmin is what is
 causing this.  If multiple sites on the server are using the same SMTP
 server, such as 'smtp.gmail.com', this setting causes ColdFusion to re-use
 that connection until it completes sending emails to that server that are
 currently in the queue.  So, if both sites send an e-mail with the same
 10-15 second period, it re-used the first site's authentication credentials
 since it did not re-establish the connection.

 This is not an issue for sites using the default cfmail settings since the
 local smtp service does not use username/password credentials, and it
 improves performance for mail sent locally when there is a lot of mail
 being sent.  However, for now, I have disabled the 'Maintain connection to
 mail server' option to prevent the issue when using external mail servers.
  We will submit a bug report to Adobe suggesting that they treat CFMail
 tags with different authentication credentials as if they were sending to
 different servers (I.E. only use the same connection if the same
 username/password are specified).
 *


 Regards,
 Andrew Scott
 WebSite: http://www.andyscott.id.au/
 Google+:  http://plus.google.com/113032480415921517411



 On Wed, Aug 21, 2013 at 10:26 PM, Russ Michaels r...@michaels.me.uk
 wrote:

 
  Are both of the sites in question developed by you or completely
 unrelated?
  If they are unrelated and have no access to the other one then this would
  clearly point to a problem with cf and not hosteks fault.
  In which case you should yry to reproduce locally with the same version
 of
  cf.
 
  If they are related to you then this is more likely you are using the
 same
  smtp settings somewhere.
 
  There is one way to completely bypass cfmail for sending email, and also
  get much better tracking, reporting and reliability at the same time.
  Take a look at sendgrid.net and sending via their api.
 
  Russ Michaels
  www.michaels.me.uk
  cfmldeveloper.com
  cflive.net
  cfsearch.com
  On 21 Aug 2013 13:16, Andrew Scott andr...@andyscott.id.au wrote:
 
  
   Sort off, just have no proof that is what is happening to me. What I do
   know, is that I have 5 emails that is clearly sent from another web
   application on the same server, sitting in my sent folder.
  
   I have been having issues with Hostek the last four weeks where my mail
   just stops being sent, they are at a loss to explain this, but there
 are
   errors to do with authentication in the logs. At least this is what I
 am
   being told and shown.
  
   Some months ago, I had this issue and emailed the person that I was
  getting
   these emails from and he was dumbfounded as well, and was not aware
 that
   this was happening.
  
   What I can tell you is that there is a setting in the CFadmin to keep
 the
   mail connection open. However it appears that if this setting is
 switched
   on, and two people with seconds of each other send an email to the same
   server, ColdFusion will hold the connection open and use the
 credentials
  of
   the previous person.
  
   So for arguments sake if I send an email via my website, and another
   customer does the same from their website, then the mail is sent using
  the
   credentials of the first connection to that mail server.
  
   But as usual, as no other customer on Hostek has complained about
 this, I
   am reaching out to those who may be hosted there and use gmail for
 their
   mail. To hear if they are actually having the same issues as well.
  
  
  
  
  
   Regards,
   Andrew Scott
   WebSite: http://www.andyscott.id.au/
   Google+:  http://plus.google.com/113032480415921517411
  
  
  
   On Wed, Aug 21, 2013 at 9:19 PM, Russ Michaels r...@michaels.me.uk
   wrote:
  
   
So are you saying that mail sent from your gmail account is ending up
  in
other peoples sent items?
   
Russ Michaels
www.michaels.me.uk
cfmldeveloper.com
cflive.net
cfsearch.com
On 21 Aug 2013 11:51, Andrew Scott andr...@andyscott.id.au
 wrote:
   

 I am reaching out to everyone who is using hostek for their
 hosting,
   and
 using gmail for your mail, your mail may not be being sent.
   

Re: Do you use Hostek and Gmail for your mail?

2013-08-21 Thread Dean Lawrence

Andrew, yes, that is an option that you can set server wide, but I was
referring to the attribute for just the cfmail tag. I do believe that if
you set it on a tag level, that it overrides the main server setting.


On Wed, Aug 21, 2013 at 9:18 AM, Andrew Scott andr...@andyscott.id.auwrote:


 Dean, sorry I have no access to a shared hosting providers cfadmin. So I am
 at their mercy to make changes to fix the issue.

 Regards,
 Andrew Scott
 WebSite: http://www.andyscott.id.au/
 Google+:  http://plus.google.com/113032480415921517411





-- 
---
Dean M. Lawrence
INTERNET DATA TECHNOLOGY
p // 888.438.4381 ext. 701
w // www.idatatech.com
f // www.facebook.com/idatatech
t // www.twitter.com/idatatech

Social Marketing | SEO | Design | Internet Development


~|
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:356521
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Tag replacement

2013-07-17 Thread Dean Lawrence

You could also simply use a regular expression to do the replace.

cfset *testString* = 'reference-link id=2 type=reference/' /

cfset *newstring* = *rereplace*(*testString*,'reference-link id=(\w)
type=reference/',sup\1/sup) /

The newstring variable would now be sup2/sup

Dean


On Wed, Jul 17, 2013 at 12:43 PM, a.matthew14 a.matthe...@yahoo.com wrote:


 Thanks Mark, will give it a go.

 Matt.



  Original message 
 From: Mark A Kruger mkru...@cfwebtools.com
 Date: 17/07/2013  17:37  (GMT+00:00)
 To: cf-talk cf-talk@houseoffusion.com
 Subject: RE: Tag replacement


 Here's one way to do this using adaptive tags.

 http://www.coldfusionmuse.com/index.cfm/2006/5/10/adaptive.tags


 Note.. I whipped this up and it may need debugging.

 First create a sub folder - call it whatever... let's say /adtags


 Next create a cfm file within the folder called reference.cfm - the name
 of the file MUST be reference.cfm. Inside this file place this (as yet
 untested) snippet of code:



 !---MAK:   make sure we are using cfoutput to
 granularly control output.---
 cfsetting enablecfoutputonly=Yes
 cfif thistag.executionmode IS 'Start'
 !--- begin the tag ---
 cfoutputsup/cfoutput
 !---MAK:   find the ID and output it---
 Cfloop collection=#attributes# item=aItem
   cfif aItem IS 'id'cfoutput#attributes[aItem]#/cfoutput/cfif
 /CFLOOP
 !---MAK:   end the tag---
 cfif thistag.executionmode IS 'End'
   cfoutput/sup/cfoutput
 /cfif
 cfsetting enablecfoutputonly=no


 Finally at the top of the page where you want this behavior add this
 command.

 cfimport taglib=adtags prefix=/

 (remember adtags is the name of your subfolder).

 The result is that CF will see any HTML tag called reference... as a
 non-prefixed call to the custom tag reference.

 While this approach is fun and clever you may want to think twice about it
 ;) Still... it IS a solution.


 -Mark



 Mark Kruger - CFG
 CF Webtools
 www.cfwebtools.com
 www.coldfusionmuse.com
 O: 402.932.3318
 E: mkru...@cfwebtools.com
 Skype: markakruger








 -Original Message-
 From: a.matthew14 [mailto:a.matthe...@yahoo.com]
 Sent: Wednesday, July 17, 2013 11:11 AM
 To: cf-talk
 Subject: Tag replacement


 Hello all,

 I have a body of text as below:
  body body body bodybodybody bodybody body body reference-link id=1
 type=reference/ body body body

 reference-link id=2 type=reference/body body body bodybody body body
 body body

 Is it possible to change the reference-link tag from a reference link tag
 reference-link id=1 type=reference/ to a superscript as so
 sup1/sup, basically getting the value of the id attribute of the
 reference link tag and creating a superscript tag with the value.

  Many thanks,

 Matt






 

~|
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:356220
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Tag replacement

2013-07-17 Thread Dean Lawrence

Your message is a reply to anothers post and is more than 100 lines of
text. If possible, please trim your posts when replying. Thank you.
This is just a friendly reminder and your
message has not been blocked or altered in any way.

You could also simply use a regular
expression to do the replace.

cfset *testString* = 'reference-link id=2 type=reference/' /

cfset *newstring* = *rereplace*(*testString*,'reference-link id=(\w)
type=reference/',sup\1/sup) /

The newstring variable would now be sup2/sup

Dean


---
Dean M. Lawrence
INTERNET DATA TECHNOLOGY
p // 888.438.4381 ext. 701
w // www.idatatech.com
f // www.facebook.com/idatatech
t // www.twitter.com/idatatech

Social Marketing | SEO | Design | Internet Development


~|
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:356221
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Installing / compiling / signing JUpload

2013-07-11 Thread Dean Lawrence

Mike,

Why don't you just download it from http://sourceforge.net/projects/jupload/.
It includes both the source and a compiled version of jupload. The compiled
jar is located in the site folder within the download and is
named wjhk.jupload.jar


On Wed, Jul 10, 2013 at 5:27 PM, Michael Muller mich...@mullertech.comwrote:


 Hey all,

 I've been using JumpLoader as my multi-file uploader for a while and want
 to switch to JUpload as it offers the ability to resize the image
 beforehand without encapsulating the resized image(s) in a zip file.
 However, the documentation is a bit klunky, and some of the links to where
 I'd download a compiler aren't working. And I've never done this before,
 so, does anyone have a favorite tutorial on the subject, or have some time
 to help me work through this over the phone? I'd be happy to spend a few
 bucks for the 1/2 hour I imagine this might take.

 http://jupload.sourceforge.net/howto-compile.html

 Thanks,

 Mik




 Michael Muller -- (413) 320-5336
 http://MontagueWebWorks.com

 ** Powered by ROCKETFUSION **

 Information is not knowledge
 Knowledge is not wisdom

 Eschew Obfuscation



 

~|
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:356166
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: trouble with cfheader/cfcontent

2013-06-18 Thread Dean Lawrence

Randy,

This is more than likely your web server restricting the downloading of
.exe files and not ColdFusion. Check with your server config.


On Tue, Jun 18, 2013 at 4:13 PM, Randy Robinson rlrobin...@sartellgroup.com
 wrote:


 I'm attempting to use cfheader/cfcontent to allow our users to download
 files and programs from our site. With *.exe files it is copying the file
 name correctly but the size does not match to the original file size. For
 example, the site has a file named WG.exe with a size of 1587KB, but it
 downloads as users/Randy/WG.exe with a size of 11kb. The code needs to work
 for all types of files. Here is the code:

 cfheader name=Content-Disposition value=attachment; filename=#fName#
 /
 cfcontent type=application/unknown

 

~|
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:355992
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Reading SOAP headers received from Flex

2013-06-01 Thread Dean Lawrence

I'm trying to read SOAP headers that a Flex client is sending my web service 
and the headers are blank. I am using username = 
getSOAPRequestHeader(http://mydomain/;, username); to read the header. Does 
anyone know if there is something special that needs to been done on either the 
ColdFusion or Flex side of things to make this work? I'm using CF 10. 

~|
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:355864
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Help needed with CF10 developer edition on XP w/IIS

2012-12-11 Thread Dean Lawrence

Stephen,

Just to clarify, IIS on XP does allow you to define multiple sites, it just
hides the create menu from within the gui and does not allow you to run
more than one at a time. However, you can create multiple sites via the
command line. I used to run a utility called IIsAdmin.NET (
http://www.codeproject.com/Articles/10561/IIsAdmin-NET-Create-Multiple-Web-Sites-Under-Windo)
which does this for you and adds a taskbar icon that allows you to very
easily create and switch between the different site. I have never used
iis_multiplex,
as Sergey had suggested, but I would assume that it does something similar.

Dean


On Tue, Dec 11, 2012 at 9:01 AM, Stephen Hait sh...@mindspring.com wrote:


 On Tue, Dec 11, 2012 at 7:47 AM, Andrew Scott andr...@andyscott.id.au
 wrote:

 
  Now XP is very old hat, and I would suggest upgrading your OS. If that is
  not an option then maybe look into something like VirtualBox which will
  allow you to run a VPS in your system. Now the beauty here is that you
 can
  install any *nix flavour that ColdFusion supports and it is at no cost to
  you.
 

 Thanks, Andy - Virtual Box sounds interesting. I was just looking into KVM
 and SPICE on linux recently so I'll check into virtualization further now.

 Stephen


 

~|
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:353418
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: question about lists and CFMAIL

2012-12-02 Thread Dean Lawrence

Eric,

Take a look a the Sending query-based email on this page
http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec14b97-7ffb.html

You specify the query name in the query attribute and the email column as
your To: attribute. Cfmail will then loop over the query and send a
customized email to each record in the query.



On Sun, Dec 2, 2012 at 5:45 PM, Matt Quackenbush quackfu...@gmail.comwrote:


 No need at all for the cfloop. When you provide the query to cfmail it does
 the loop for you.


 On Sun, Dec 2, 2012 at 4:35 PM, Eric Bourland e...@ebwebwork.com wrote:

 
  Matt, thanks for that. I made progress. I read up on the query attribute
 of
  CFMAIL. But after doing some research, I did find another way to make
 this
  application work: CFLOOP. This seems to be working fine -- but do you
  recommend another way? I could not figure out how the query attribute of
  CFMAIL would help me in this case -- I am sure I am just missing
 something
  very obvious. =) Thank you again for your help. Eric
 
  !--- is form.doRemind defined? ---
  cfif IsDefined(FORM.doRemind)
 
  !--- begin to loop through query ---
  cfloop query=NotPaid
 
  cfmail
server=#REQUEST.MailingListServer#
from=i...@nnvawi.org
to=#NotPaid.UserEmail#
subject=NNVAWI Membership Dues Reminder
  username = username
password = #REQUEST.MailingListAdminPass#
SpoolEnable=No
type=html
 
h1Greetings, #NotPaid.FirstName# #NotPaid.LastName#./h1
 
pThis is a friendly reminder to pay your NNVAWI membership dues
 for
  the current year. You may do so here at the secure authorize.net payment
  page:
 
/cfmail
 
  /cfloop
  !---  close cfloop ---
 
  /cfif
  !--- / is form.doRemind defined? ---
 
  -Original Message-
  From: Matt Quackenbush [mailto:quackfu...@gmail.com]
  Sent: Sunday, December 02, 2012 4:16 PM
  To: cf-talk
  Subject: Re: question about lists and CFMAIL
 
  No, not on the right track. Look at the query attribute of cfmail.
 That's
  what you want to use.
 
 
 
 http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e08
  11cbec22c24-7f8e.html
 
  HTH
 
 
 
 

 

~|
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:353328
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: list delimiters question

2012-11-15 Thread Dean Lawrence

It is treading your form.some_url value as a list separated by a
question mark. The listgetat is retrieving the second value in the
list, which are all the url name-value pairs.

On Thu, Nov 15, 2012 at 9:53 AM, morchella
morchella.delici...@gmail.com wrote:

 not sure what the listgetat 2 is doing?


 

~|
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:353177
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Empty file upload field causing 403 error.

2012-08-02 Thread Dean Lawrence

I am about at my wits end with this. I have a weird scenario in that I have a 
simple form that allow for uploading a logo and adding a couple of fields of 
copy. When I choose a file and submit the form, everything works fine, the logo 
is uploaded and the form fields are added to my database.

The problem arises when I try to just update the text fields and do not upload 
a logo. When I submit the form the server is giving me a 403 error. I get this 
error on both apache and IIS, both Mac and PC. It doesn't If I remove the file 
field, the form works fine. If I leave the file field in place, but remove the 
multi-part form designation, the form work fine. If I submit the form with a 
new file, the form works fine, it is just when I try to submit the form without 
attaching a file.

Any suggestions? 


~|
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:352035
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Empty file upload field causing 403 error.

2012-08-02 Thread Dean Lawrence

Thanks Russ, but unfortunately, that did not change anything.

On Thu, Aug 2, 2012 at 10:36 AM, Russ Michaels r...@michaels.me.uk wrote:

 I seem to remember a bug whereby the file upload field needs to be in a
 specific position, i.e. the first field on the form (or perhaps the
 opposite), otherwise you get issues like this.
 so give that a try and see if it helps.


 On Thu, Aug 2, 2012 at 3:32 PM, Dean Lawrence dean...@gmail.com wrote:


 I am about at my wits end with this. I have a weird scenario in that I
 have a simple form that allow for uploading a logo and adding a couple of
 fields of copy. When I choose a file and submit the form, everything works
 fine, the logo is uploaded and the form fields are added to my database.

 The problem arises when I try to just update the text fields and do not
 upload a logo. When I submit the form the server is giving me a 403 error.
 I get this error on both apache and IIS, both Mac and PC. It doesn't If I
 remove the file field, the form works fine. If I leave the file field in
 place, but remove the multi-part form designation, the form work fine. If I
 submit the form with a new file, the form works fine, it is just when I try
 to submit the form without attaching a file.

 Any suggestions?




 

~|
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:352037
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Empty file upload field causing 403 error.

2012-08-02 Thread Dean Lawrence

I could Ray, but I don't think that that will help, as the server is
throwing the error before it reaches my processing page. I tested this
by changing the form action to a non-processing page and received the
same 403 error.

On Thu, Aug 2, 2012 at 11:20 AM, Raymond Camden raymondcam...@gmail.com wrote:

 Can you share your processing code?





-- 
---
Dean M. Lawrence
INTERNET DATA TECHNOLOGY
p // 888.438.4381 ext. 701
w // www.idatatech.com
f // www.facebook.com/idatatech
t // www.twitter.com/idatatech

Social Marketing | SEO | Design | Internet Development

~|
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:352039
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Empty file upload field causing 403 error.

2012-08-02 Thread Dean Lawrence

Ok, I found out what the issue is. For this particular site, I am
running FuseGuard and it is blocking the request. Apparently, the form
is passing a ** extension when there is no file specified and the base
rules for FuseGuard do not allow this. I am now going to dig into the
rules to see how I can fix the issue.

Thanks for the suggestions guys.

On Thu, Aug 2, 2012 at 12:20 PM, Russ Michaels r...@michaels.me.uk wrote:

 do you have any stray characters perhaps being inserted inserted into the
 file field, I have seen this happen on the MAC, that forms got submitted
 with things like hard spaces which caused issues.

 On Thu, Aug 2, 2012 at 4:34 PM, Scott Slone ssl...@rubbergumball.netwrote:


 Just a few questions on your formÅ 
 How are you calling the data for the form to update an existing logo? Are
 you pulling the location of the image from db, or is it just a blank
 field?
 If the image location is calling from the db- are you set up to check for
 file existence before processing?

 /Scott

 On 8/2/12 8:26 AM, Dean Lawrence dean...@gmail.com wrote:

 
 I could Ray, but I don't think that that will help, as the server is
 throwing the error before it reaches my processing page. I tested this
 by changing the form action to a non-processing page and received the
 same 403 error.
 
 On Thu, Aug 2, 2012 at 11:20 AM, Raymond Camden raymondcam...@gmail.com
 wrote:
 
  Can you share your processing code?
 
 
 
 
 
 --
 --
 -
 Dean M. Lawrence
 INTERNET DATA TECHNOLOGY
 p // 888.438.4381 ext. 701
 w // www.idatatech.com
 f // www.facebook.com/idatatech
 t // www.twitter.com/idatatech
 
 Social Marketing | SEO | Design | Internet Development
 
 



 

~|
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:352047
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Empty file upload field causing 403 error.

2012-08-02 Thread Dean Lawrence

Turns out that Foundeo was aware of the issue and had released a newer
version of FuseGuard which fixed it. Everything is working properly
now. Yea!!

On Thu, Aug 2, 2012 at 1:20 PM, Dean Lawrence dean...@gmail.com wrote:
 Ok, I found out what the issue is. For this particular site, I am
 running FuseGuard and it is blocking the request. Apparently, the form
 is passing a ** extension when there is no file specified and the base
 rules for FuseGuard do not allow this. I am now going to dig into the
 rules to see how I can fix the issue.

 Thanks for the suggestions guys.

 On Thu, Aug 2, 2012 at 12:20 PM, Russ Michaels r...@michaels.me.uk wrote:

 do you have any stray characters perhaps being inserted inserted into the
 file field, I have seen this happen on the MAC, that forms got submitted
 with things like hard spaces which caused issues.

 On Thu, Aug 2, 2012 at 4:34 PM, Scott Slone ssl...@rubbergumball.netwrote:


 Just a few questions on your formÅ 
 How are you calling the data for the form to update an existing logo? Are
 you pulling the location of the image from db, or is it just a blank
 field?
 If the image location is calling from the db- are you set up to check for
 file existence before processing?

 /Scott

 On 8/2/12 8:26 AM, Dean Lawrence dean...@gmail.com wrote:

 
 I could Ray, but I don't think that that will help, as the server is
 throwing the error before it reaches my processing page. I tested this
 by changing the form action to a non-processing page and received the
 same 403 error.
 
 On Thu, Aug 2, 2012 at 11:20 AM, Raymond Camden raymondcam...@gmail.com
 wrote:
 
  Can you share your processing code?
 
 
 
 
 
 --
 --
 -
 Dean M. Lawrence
 INTERNET DATA TECHNOLOGY
 p // 888.438.4381 ext. 701
 w // www.idatatech.com
 f // www.facebook.com/idatatech
 t // www.twitter.com/idatatech
 
 Social Marketing | SEO | Design | Internet Development
 
 



 

~|
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:352049
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: High school algebra problem

2012-05-14 Thread Dean Lawrence

You would use the MOD Operator.

#794625 MOD 256# will return 1, #794626 MOD 256# will return 2, etc.
That will give you your folder number. If the result is 0, then the
folder would be 256.

On Mon, May 14, 2012 at 4:02 PM, Les Irvin les.cft...@gmail.com wrote:

 Not exactly a CF question per se, sorry... but...  I'm trying to write
 a formula in CF and my algebra skills are rusty.

 I'm working with a real estate MLS system that divides their online
 photos, sequentially, into 256 different directories - numbered 1
 through 256.  When they get up to directory 256, they start back again
 at 1.  When I asked for a reference table, they explained we don't
 have one, it just happens automatically.  Trouble is, I need to
 automatically find the photos armed only with the property number.

 For example (actual data):
 property #794622 is placed in directory 254.
 property #794623 is placed in directory 255.
 property #794624 is placed in directory 256.
 property #794625 is placed in directory 1.
 property #794626 is placed in directory 2.
 property #794627 is placed in directory 3.
 ...and on and on sequentially...

 What formula can I use that will allow me to take any property number
 (say 45 or 1023465 or 332495845745, etc, etc...) and find its
 corresponding directory number?

 Thanks in advance for indulging me on this one...
 Les

 

~|
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:351140
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Document Service Error (was deanlaw)

2012-02-07 Thread Dean Lawrence

Sorry, I realized that my original post had an ambiguous subject line. Has 
anyone come across this before? Do I need to reinstall (which I do not want to 
do) or is there something else that I should be looking for?

Thanks

 I'm running CF9.01 on OSX Lion 64 bit. I've had problems displaying 
 the info page in the admin and with cfdocument. I came across a blog 
 post at http://blog.maestropublishing.
 com/adobe-coldfusion-9-on-mac-lion-fix-for-hangin which fixed my 
 problem with the info page, but I am still having a problem with 
 cfdocument. In looking at the server logs, I am getting a Unable to 
 initialize Document service: java.lang.NoSuchFieldError: java3DTested 
 error on startup. Does anyone know how to correct this or even where I 
 should be looking?
 
 Thanks,
 
 Dean 

~|
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:349803
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


deanlaw

2012-02-03 Thread Dean Lawrence

I'm running CF9.01 on OSX Lion 64 bit. I've had problems displaying the info 
page in the admin and with cfdocument. I came across a blog post at 
http://blog.maestropublishing.com/adobe-coldfusion-9-on-mac-lion-fix-for-hangin 
which fixed my problem with the info page, but I am still having a problem with 
cfdocument. In looking at the server logs, I am getting a Unable to 
initialize Document service: java.lang.NoSuchFieldError: java3DTested error on 
startup. Does anyone know how to correct this or even where I should be looking?

Thanks,

Dean 

~|
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:349770
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


MySQL date problem

2012-01-22 Thread Dean Lawrence

I have an app that I have created using CF 9.01, MySQL 5.1.41 and ORM. One of 
the properties of my object is a start date. Everything inserts and updates to 
the MySQL database without a problem. This issue that I am having is when I try 
to perform any CF date functions on the stored date.

If I try to do a datecompare or datediff function on the start date, I get a 
Date value passed to date function DateCompare is unspecified or invalid 
error message. However, if I try either isValid(date,Deal.getStartDate()) or 
isDate(Deal.getStartDate()), both return true. Any thoughts? 

~|
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:349600
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: MySQL date problem

2012-01-22 Thread Dean Lawrence

Nevermind. Stupid mistake. I was looping over a number of records and it turns 
out that one of the records had a null value set which was what caused the 
error. Had nothing to do with MySQL dates at all. Ugh.


 I have an app that I have created using CF 9.01, MySQL 5.1.41 and ORM. 
 One of the properties of my object is a start date. Everything inserts 
 and updates to the MySQL database without a problem. This issue that I 
 am having is when I try to perform any CF date functions on the stored 
 date.
 
 If I try to do a datecompare or datediff function on the start date, I 
 get a Date value passed to date function DateCompare is unspecified 
 or invalid error message. However, if I try either isValid(date,
 Deal.getStartDate()) or isDate(Deal.getStartDate()), both return true. 
 Any thoughts? 

~|
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:349601
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: anyone using ckeditor? I will PAY you for your help!

2012-01-11 Thread Dean Lawrence

You are correct in the way that you were trying to implement this in
the config file (or better yet, in an external config file that
overrides the base config file). The problem is, is that it is not
what you are looking for. I misunderstood your original post, in that
I thought that CKEditor was actually replacing your tags. That is what
the protectedSource option is for. It tells the editor not to modify
the tag itself. The issue that you are having is a formatting issue.
That is handled by CKEDITOR.dataProcessor and is apparently
configurable. If you take a look at this forum page and scroll all the
way to the bottom, the last post shows an example of how to change the
formatting rules.
(http://cksource.com/forums/viewtopic.php?f=6t=14613start=10#wrap)

There is also a closed trouble ticket that has some discussion
regarding the same thing. (http://dev.ckeditor.com/ticket/3260)

Here is the API page
(http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.dataProcessor.html)
and the docs page
(http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Data_Processor)
for the dataProcessor.

I've never liked their documentation as there examples are always
pretty skimpy. I've never played with the dataProcessor, so
unfortunately, I don't have anything that I could share with you.

Good luck,

Dean

On Wed, Jan 11, 2012 at 12:55 PM, Torrent Girl moniqueb...@gmail.com wrote:

 How do I do this?

 He means the editor must be set to HTML mode in order to enter and change 
 text that contains HTML.

 How and where do I set the editor to html mode?


 So here is what I do:

 The content is saved in the DB.

 I open a page (editPage.cfm)
 Pull the content from the DB and display it on the page via the form.
 IF I view source,

 THIS

 div id=contentFullNoBar
  !---  * breadcrumbs - DO NOT EDIT  *---
  div id=breadCrumbs
    cfinclude template=../includes/breadCrumbs.cfm /
  /div
  !--- end bread crumbs ---

  div id=topHalf
    div id=HalfLeftThreeQtr
      div id=innerLeftThree

        !---  left nav menu  ---
        cfinclude template=../includes/leftNav.cfm /
        !---* end left nav * ---

        div id=contentHalf4

          !--- * ADD MAIN CONTENT HERE * ---

          cfinvoke component=cfc.citi method=getFounders   
 returnvariable=founders /
          cfinvoke component=cfc.citi method=getDevelopers         
 returnvariable=developers /
          cfinvoke component=cfc.citi method=getAdvisors   
 returnvariable=advisors /
          pThe CITI Program's content has been produced by a diverse team of 
 research professionals from around the world, including university-affiliated 
 administrators and faculty, independent research professionals, and 
 representatives from U.S. federal agencies. . This group of content 
 developers is dedicated to providing the highest-quality educational 
 materials for our learners, and is lead by the CITI Program Founders and the 
 CITI Program's Executive Advisory Committee./p
            cfoutput
          table
            tbody
              tr
                tdspan class=bbheadingtextCITI Program 
 Founders/span/td
              /tr
              cfloop query=founders

                  tr
                    td#name#/td
                    td#company#/td
                  /tr

              /cfloop
              tr
                td height=20 colspan=2nbsp;/td
              /tr
              tr
                tdspan class=bbheadingtextCITI Program Executive 
 Advisory Committee /span/td
              /tr
              cfloop query=advisors

                  tr
                    td#name#/td
                    td#company#/td
                  /tr

              /cfloop
              tr
                td height=20 colspan=2nbsp;/td
              /tr
              tr
                td  colspan=2The co-founders are provided guidance and 
 advice from the CITI Executive Advisory Committee chaired by Ernest Prentice 
 Ph.D. br /
                  br /
                  The CITI Program remains dynamic and responsive to the needs 
 of our learners thanks to the efforts of the CITI Program Developer Group. 
 The Group meets periodically to review the courses, make editorial changes 
 and to develop new initiatives for the CITI Program. br /
                  br //td
              /tr
              tr
                tdspan class=bbheadingtextCITI Developers' 
 Group/span/td
              /tr
              cfloop query=developers

                  tr
                    td#name#/td
                    td#institution#/td
                  /tr

              /cfloop
              tr
                td height=20 colspan=2nbsp;/td
              /tr
            /tbody
          /table
           /cfoutput
          !--- * END MAIN CONTENT  * ---

        /div
      /div
    /div
  /div
 /div
 !-- END OF MAIN CONTENT AREA--



 Is changed to this:

 div id=contentFullNoBar
        !---  * breadcrumbs - DO NOT EDIT  *---
  

Re: anyone using ckeditor? I will PAY you for your help!

2012-01-11 Thread Dean Lawrence


 Thank you. But once again, the proper syntax is not included.


I got this to work. I am calling CKEditor as such.

script type=text/javascript charset=utf-8
//![CDATA[
$(function()
{
var config = {
customConfig : '/config/RichEditorConfig.js',
toolbar: 'clientFull',
height : 350
};

var editor = $('.jquery_ckeditor').ckeditor(config);
CKFinder.setupCKEditor(null, /admin/ckfinder/);

});
//]]
/script

In my external config file, RichEditorConfig.js, I define my settings
and I just added additional writer settings to work with some of the
tags. This is what it looks like:

CKEDITOR.editorConfig = function( config )
{
config.forcePasteAsPlainText = true;
config.pasteFromWordNumberedHeadingToList = true;
config.pasteFromWordRemoveFontStyles = true;
config.pasteFromWordRemoveStyles = true;
config.disableNativeSpellChecker = false;
config.filebrowserUploadUrl = '',
config.filebrowserImageUploadUrl = '',
config.filebrowserFlashUploadUrl = '',

config.toolbar_clientFull =
[
['Source'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print',
'SpellChecker', 'Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Link','Unlink','Anchor'],
'/',

['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],

['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Image','Table','HorizontalRule','SpecialChar','PageBreak'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
['Maximize', 'ShowBlocks','-','About']
];
config.toolbar_clientMin =
[

['TextColor','Bold','Italic','Underline','Strike','NumberedList','BulletedList','Link','Unlink','-','Source','Maximize']
] ;

config.toolbar_idt =
[

['Source','-','Cut','Copy','Paste','-','Undo','Redo','-','Find','Replace','-','SpecialChar','-','About'],

['Bold','Italic','Underline','Rule','-','JustifyCenter','JustifyRight','UnorderedList','OrderedList','-','Outdent','Indent','-','Table','Link','Unlink','Anchor','-','TextColor','BGColor'],
['FontFormat','FontName','FontSize','Templates']
] ;
config.toolbar_idtMin =
[

['Cut','Copy','Paste','-','Undo','Redo','-','Bold','Italic','Underline','Rule','-','JustifyCenter','JustifyRight','UnorderedList','OrderedList','-','Outdent','Indent','-','Link','Unlink'],
['FontFormat','FontName','FontSize','Templates']
] ;
};

CKEDITOR.on( 'instanceReady', function( ev )
{
ev.editor.dataProcessor.writer.setRules('cfinvoke',
{
indent  : false,
breakBeforeOpen : true,
breakAfterOpen  : false,
breakBeforeClose: false,
breakAfterClose : true
}
);
ev.editor.dataProcessor.writer.setRules('output',
{
indent  : false,
breakBeforeOpen : true,
breakAfterOpen  : false,
breakBeforeClose: false,
breakAfterClose : true
}
);
ev.editor.dataProcessor.writer.setRules('cfinclude',
{
indent  : false,
breakBeforeOpen : true,
breakAfterOpen  : false,
breakBeforeClose: false,
breakAfterClose : true
}
);
ev.editor.dataProcessor.writer.setRules('p',
{
indent  : true,
breakBeforeOpen : true,
breakAfterOpen  : false,
breakBeforeClose: false,
breakAfterClose : true
   

Re: anyone using ckeditor? I will PAY you for your help!

2012-01-10 Thread Dean Lawrence

You should take a look at the protectedSource method in the config
settings 
(http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.protectedSource).
This allows you to use regular expressions to specify which tags
should not be affected by the editor.

On Tue, Jan 10, 2012 at 7:51 PM, Torrent Girl moniqueb...@gmail.com wrote:

 Hi All I have had a year long headache with ckeditor and it changing my CF 
 code.

 I got around the issue for a while by using a straight text area to enter 
 code in the DB.

 Now other users will be using the system and I need to get the text editor to 
 work.

 I STILL have not been able to figure out how to stop this thing from editing 
 my CF code and I am beyond frustrated with it.

 I tried installing tinyMCE (sp?) and it did the same thing.

 Has anyone installed and used ckeditor properly with Coldfusion to where it 
 is keeping your CF code in tact?

 I will pay for your help (that is how desperate I am)

 Thank you!

 

~|
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:349386
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Richtext Editor Woes

2012-01-03 Thread Dean Lawrence

Scott,

Just for future knowledge, you can limit the abilities of the user
based upon their role.

config.accessControl = arrayNew(1);

config.accessControl[1] = structNew();
config.accessControl[1].role = '*';
config.accessControl[1].resourceType = '*';
config.accessControl[1].folder = '/';
config.accessControl[1].folderView = true;
config.accessControl[1].folderCreate = true;
config.accessControl[1].folderRename = true;
config.accessControl[1].folderDelete = true;
config.accessControl[1].fileView = true;
config.accessControl[1].fileUpload = true;
config.accessControl[1].fileRename = true;
config.accessControl[1].fileDelete = true;

All you would have to do is change the fileUpload value to false to
prevent file uploads.

Dean

On Tue, Jan 3, 2012 at 2:35 PM, Terry Troxel terry.tro...@gmail.com wrote:

 Thanks Russ, But turning off the buttons did not satisfy the CF security
 updates.
 So since I had an abundance of time this weekend I installed, configured the

 Following and I am now a happy camper:

 CKEditor, latest version, CFFM latest version by Mr. Rick Root (Loud
 Applause),
 And I now have an image manager that I think puts CKFinder in the weeds and
 is
 Open source.

 Terry Troxel




 

~|
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:349303
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) Nivo slideshow

2011-12-15 Thread Dean Lawrence

Jenny,

The page is not finding the jquery.nivo.slider.pack.js file. Make sure
your path is correct.

Dean

On Thu, Dec 15, 2011 at 12:51 PM, Jenny Gavin-Wear
jenn...@fasttrackonline.co.uk wrote:

 Hi all,

 I am sure I am doing something daft.  Images are not sliding and I am
 getting the following error:-

 Error: $(#slider).nivoSlider is not a function
 Source File:
 http://chesterfield-fc-trust.fasttrackonline.co.uk/concept/untitled1.cfm
 Line: 17

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 meta http-equiv=Content-Type content=text/html; charset=utf-8 /
 titleUntitled Document/title
 link rel=stylesheet href=nivo-slider.css type=text/css media=screen
 /

 !--- jquery ---
 script
 src=http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js;
 type=text/javascript/script
 script src=jquery.nivo.slider.pack.js type=text/javascript/script

 !--- on load ---
 script type=text/javascript
 $(window).load(function() {
    $('#slider').nivoSlider({
    });
 });
 /script
 /head
 body

 !--- slide show ---
 div id=slider class=nivoSlider
    img src=/pageart/stadium-1200.gif width=1200 height=200 /
    img src=/pageart/stadium-1200-1.gif width=1200 height=200
 title=This is an example of a caption /
    img src=/pageart/stadium-1200-2.gif width=1200 height=200 /
 /div
 /body
 /html

 Thanks in advance for showing me where I've gone wrong!

 Jenny
 --
 I am using the free version of SPAMfighter.
 We are a community of 7 million users fighting spam.
 SPAMfighter has removed 12053 of my spam emails to date.
 Get the free SPAMfighter here: http://www.spamfighter.com/len

 The Professional version does not have this message




 

~|
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:349170
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Fckeditor Security Issues

2011-12-03 Thread Dean Lawrence

Terry,

It is a very easy fix. All you need to do is to add an additional
argument to the JVM settings in you CF Admin. Here is a blog post
which explains it.

http://www.petefreitag.com/item/718.cfm

On Sat, Dec 3, 2011 at 9:16 PM, Terry Troxel terry.tro...@gmail.com wrote:

 Ok, so that's handled. Why will my standalone still giving me the xml error?

 Terry


 

~|
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:348943
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: runing CF and ASP.NET on the same web server (IIS 6)

2011-11-02 Thread Dean Lawrence

Nathan, as others have said, running ASP or .Net side-by-side with
ColdFusion is not a problem, I've been doing it for years. It sounds
like you may have a faulty .Net installation. I would try repairing
it. Here is a link to the Microsoft article on fixing your install.

http://support.microsoft.com/kb/306160

Dean

On Wed, Nov 2, 2011 at 11:13 AM, Nathan Chen nathan.c...@cu.edu wrote:

 Russ, it was the same error 404.17 even though I tried several things.

 Nathan

 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: Monday, October 31, 2011 3:58 PM
 To: cf-talk
 Subject: RE: runing CF and ASP.NET on the same web server (IIS 6)


 Then it can't be anything to do with cf, what is the actual error you
 get.

 Regards
 Russ Michaels
 From my mobile
 On 31 Oct 2011 21:45, Nathan Chen nathan.c...@cu.edu wrote:


 Russ, no, it still didn't work after disabled CF.

 Nathan

-- 
---
Dean M. Lawrence
INTERNET DATA TECHNOLOGY
p // 888.438.4381 ext. 701
w // www.idatatech.com
f // www.facebook.com/idatatech
t // www.twitter.com/idatatech

Social Marketing | SEO | Design | Internet Development

~|
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:348412
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Problem deleting Solr Keys

2011-10-31 Thread Dean Lawrence

I have a Solr collection for literature which I store both a reference to the 
original file in a database and the physical file on the filesystem. When a new 
piece of literature is added to the system, I update the Solr collection with 
the following code:


cfoutput query=literatureQuery
cfset litFile = litpath  #literatureID#.pdf /

cfif fileExists(litFile)
cfindex
action=update
collection=literature_solr
type=file
key=#litFile#
title=#documentName#
body=litNumber,documentName
custom1=/literature/#alias#
custom2=#litNumber#
custom3=#documentName#
/cfif

cfquery name=tableCleanup datasource=#dsn#
UPDATE literature
SET indexed = cfqueryparam cfsqltype=cf_sql_bit value=1 /
WHERE literatureID = cfqueryparam cfsqltype=cf_sql_char 
value=#literatureID# /
/cfquery
/cfoutput

This works fine and I am able to search for the file using cfsearch. However, I 
have a problem with deleting keys from the catalog when a file is deleted. For 
that I use the following code:

cfoutput query=deletedLiterature
cfset litFile = litpath  #literatureID#.pdf /

!--- Delete the deleted literature from the literature collection. ---
cfindex
collection=literature_solr
type=file
action=Delete
key=#litFile#
/cfoutput

!--- Remove temporary entries ---
cfquery name=tableCleanup datasource=#dsn#
DELETE
FROM literatureToDelete
/cfquery

The problem that I have is that the key is not being deleted from collection 
and is still showing up in searches. The only way that I have been able to 
clear it out is to purge the whole catalog and re-index all the documents. Has 
anyone else had this problem? 

~|
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:348373
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Problem deleting Solr Keys

2011-10-31 Thread Dean Lawrence

Thanks Ray,

I had done some troubleshooting using the status attribute and it only
ever showed 0 records being affected. The litFile variable is
identical and I've even tried to delete a key by manually adding the
key name in the delete action. I have also used the Solr server
interface to pull the stored key and manually used that in the cfindex
delete key. It's been really frustrating.

Dean

On Mon, Oct 31, 2011 at 5:04 PM, Raymond Camden raymondcam...@gmail.com wrote:

 Use the status attribute of cfindex. Look at the result. It should
 show how many items were deleted. You may also want to double check to
 ensure litFile is matching case-wise.


 On Mon, Oct 31, 2011 at 4:01 PM, Dean Lawrence dean...@gmail.com wrote:

 I have a Solr collection for literature which I store both a reference to 
 the original file in a database and the physical file on the filesystem. 
 When a new piece of literature is added to the system, I update the Solr 
 collection with the following code:


 cfoutput query=literatureQuery
        cfset litFile = litpath  #literatureID#.pdf /

 

~|
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:348375
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Problem deleting Solr Keys

2011-10-31 Thread Dean Lawrence

Yea, 9.01 and CHF2. I did just look at my java version though and I am
at 1.6.0_17, do you think that might be the issue?

On Mon, Oct 31, 2011 at 5:35 PM, Raymond Camden raymondcam...@gmail.com wrote:

 Um- using latest CF? (Yeah, grasping at straws here.) And by latest I
 mean 901+CHF2.


 On Mon, Oct 31, 2011 at 4:09 PM, Dean Lawrence dean...@gmail.com wrote:

 Thanks Ray,

 I had done some troubleshooting using the status attribute and it only
 ever showed 0 records being affected. The litFile variable is
 identical and I've even tried to delete a key by manually adding the
 key name in the delete action. I have also used the Solr server
 interface to pull the stored key and manually used that in the cfindex
 delete key. It's been really frustrating.

 Dean

 On Mon, Oct 31, 2011 at 5:04 PM, Raymond Camden raymondcam...@gmail.com 
 wrote:

 Use the status attribute of cfindex. Look at the result. It should
 show how many items were deleted. You may also want to double check to
 ensure litFile is matching case-wise.


 On Mon, Oct 31, 2011 at 4:01 PM, Dean Lawrence dean...@gmail.com wrote:

 I have a Solr collection for literature which I store both a reference to 
 the original file in a database and the physical file on the filesystem. 
 When a new piece of literature is added to the system, I update the Solr 
 collection with the following code:


 cfoutput query=literatureQuery
        cfset litFile = litpath  #literatureID#.pdf /





 

~|
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:348382
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion Hosting

2011-09-29 Thread Dean Lawrence

Paul, do you mean GoDaddy.com? I hadn't heard anything regarding
hosting.com discontinuing ColdFusion hosting. I just checked their
site and they still have it listed.

Thanks,

Dean

On Thu, Sep 29, 2011 at 10:13 AM, Paul Smith psmit...@gmail.com wrote:

 Yesterday, hosting.com informs me they are going out of the ColdFusion 
 hosting business.

 This thread has been very useful. Thank you all.

 I've been with ColdFusion from the VERY beginning and am too old to change 
 now.

 AHPhostng.net's ColdFusion VPS for $99 looks good to me, but I wonder if 
 there have been any developments since this thread was last posted on.

 best, paul

Can anyone recommend a decent yet cheap web host for ColdFusion?

 

~|
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:347799
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Solr Summary Text

2011-09-19 Thread Dean Lawrence

Hey Victor,

Yes, I was finally able to get this working. If I remember correctly,
it was a combination of editing the schema.xml and the solrconfig.xml
files. However, I don't remember what updates I actually made. I will
try to compare my backup files with the live files that are working.
I'm pretty swamped over the next couple of days, but I will try to
post my results as soon as I can.

Dean

On Mon, Sep 19, 2011 at 8:52 PM, Victor Moore victor.mo...@gmail.com wrote:

 Dean,

 did you find a solution to this?  I have cf 901 with CHF901 installed
 and no luck

 Regards
 Victor


-- 
---
Dean M. Lawrence
INTERNET DATA TECHNOLOGY
p // 888.438.4381 ext. 701
w // www.idatatech.com
f // www.facebook.com/idatatech
t // www.twitter.com/idatatech

Social Marketing | SEO | Design | Internet Developmen

~|
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:347534
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Simple Chinese Problem

2011-06-29 Thread Dean Lawrence

I have a site that is using fckeditor version 2.6.6 to edit it's pages. I am 
having a problem using text on a page that is written in Simple Chinese. When I 
past it into the editor, the text shows properly, but after I have saved it to 
the database, it is returned as just question marks.

The copy is stored in an MS SQL 2000 db in an ntext field. My page encoding is 
UTF-8. I am running CF 9.0.1 on a Windows 2003 server. The sql type that I am 
using for my cfqueryparam is cf_sql_longvarchar. My SQL Server collation is 
SQL_Latin1_General_CP1_CI_AS.

Anyone have any thoughts as to why this copy is not being stored properly? 

~|
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:345909
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Simple Chinese Problem

2011-06-29 Thread Dean Lawrence

Bingo!!! Thank you so much Dave!

On Wed, Jun 29, 2011 at 12:16 PM, Dave Watts dwa...@figleaf.com wrote:

 I have a site that is using fckeditor version 2.6.6 to edit it's pages. I am 
 having a problem using text on a page
 that is written in Simple Chinese. When I past it into the editor, the text 
 shows properly, but after I have saved
 it to the database, it is returned as just question marks.

 The copy is stored in an MS SQL 2000 db in an ntext field. My page encoding 
 is UTF-8. I am running CF 9.0.1
 on a Windows 2003 server. The sql type that I am using for my cfqueryparam 
 is cf_sql_longvarchar. My SQL
 Server collation is SQL_Latin1_General_CP1_CI_AS.

 Anyone have any thoughts as to why this copy is not being stored properly?

 Have you configured the CF datasource to allow Unicode?

 http://www.coldfusionmuse.com/index.cfm/2006/7/6/mssql.unicode

 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 onsite.

 

~|
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:345913
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: dbvarname mssql cf8?

2011-06-21 Thread Dean Lawrence

I have been using stored procs with SQL 2000 for many years on CF
versions 5-9. dbvarnames are ignored in the java versions of
ColdFusion. If you pass all the procparams to the stored procedure in
the order that they are defined int the stored proc, it works fine.

Dean

On Tue, Jun 21, 2011 at 10:15 AM, Ras Tafari rastaf...@gmail.com wrote:

 wow, thanks. i had no idea :)

 lol, the subject was more indicative of what my question was...

 whats up with dbvarname and named parameters in cf8/9?

 doesnt seem to work (out of the box)... is there a work around?

 tw

 

~|
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:345482
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


  1   2   >