RE: Coldfusion Hosting

2012-05-20 Thread andy matthews

I've been using Gearhost for the past 6 or 7 years and they've been great.
$20-ish I believe.



andy

-Original Message-
From: Phillip Vector [mailto:vec...@mostdeadlygame.com] 
Sent: Sunday, May 20, 2012 9:33 PM
To: cf-talk
Subject: Coldfusion Hosting


So I know it's been discussed before, so a link to the relevant past article
will suffice... But I am in need of moving my webpages to a new server and
was wondering where I can find some cheap ($20 or
under) web hosting that will allow me to host 3 or more websites with
Coldfusion (and Fusebox).

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


SOT: JavaScript MVC with Ember.js

2012-05-15 Thread andy matthews

Today Devnet released an article that I wrote on a JavaScript MVC framework
called Ember.js.
 
http://www.adobe.com/devnet/html5.html
 
If you're familiar with Backbone, Spine, or Angular, then you might be
interested in this article.
 
Hope you like it.
 
 
 
andy


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


RE: date and time from two different inputs query a single datetime field

2012-05-10 Thread andy matthews

Give the fields the same name.

In most languages that results in a commadelimited value which you could
then strip out.

You could also just concatenate them together in your queryparam:

cfqueryparam value=#trim(form.xdate_use)##trim(form.xtime)#
cfsqltype=CF_SQL_DATE /
 

-Original Message-
From: Les Mizzell [mailto:lesm...@bellsouth.net] 
Sent: Thursday, May 10, 2012 8:50 PM
To: cf-talk
Subject: date and time from two different inputs query a single datetime
field


cfinput type=text name=xdate_use  ex: 05/31/2012 cfinput type=text
name=xtime  ex: 3:31 PM

Given the values used as examples for the fields above, exactly how would I
go about querying a datetime stamp field (SQL Server) to find all records
dates on or after the date/time above?

No problem doing it with just the date:

   responsedate = cfqueryparam value=#trim(form.xdate)# 
cfsqltype=CF_SQL_DATE /


  but for the life of me, I can't figure how to put both fields together to
do date AND time...

I'm probably an idiot..



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


RE: CFIMAGE Killing the Server

2012-05-07 Thread andy matthews

Are you informing the user when a specific image is rejected? 

-Original Message-
From: Robert Harrison [mailto:rob...@austin-williams.com] 
Sent: Monday, May 07, 2012 10:59 AM
To: cf-talk
Subject: RE: CFIMAGE Killing the Server


We found the problem.  It was choking on CYMK images.  We're now rejecting
CYMK images and it's working. 

We're allowing the user to upload multiple images at once (maybe even 50),
then resizing as needed using CFIMAGE. Works fine when you put in a reject
for CYMK images. CFIMAGE does convert the CYMK to RGB, but that apparently
requires significant processing resources.

Robert Harrison
Director of Interactive Services

Austin  Williams
Advertising I Branding I Digital I Direct
125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T 631.231.6600 X 119
  F 631.434.7022 http://www.austin-williams.com

Blog:  http://www.austin-williams.com/blog
Twitter:  http://www.twitter.com/austin_



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


RE: (ot) Large web space hosts

2012-04-26 Thread andy matthews

Dropbox might also be an option:

https://www.dropbox.com/pricing



andy 

-Original Message-
From: Kevin Parker [mailto:tras...@internode.on.net] 
Sent: Thursday, April 26, 2012 5:50 AM
To: cf-talk
Subject: (ot) Large web space hosts


Apologies for the OT - looking for little off list advice please.

I'm looking for about 100GB of web space to store a lot of old documents
associated with a hobby I have. My regular host only provides 1GB of course
and then charges the earth beyond that.

I looked to the web and found a few but also found a few negative stories
about these types of web hosting packages and reasons why they can provide
lots of space at a cheap price. I only need it to serve up documents so my
needs aren't too over the top - its mainly space I need.

Preferring Australian based I found this
(http://www.crazydomains.com.au/web-hosting/) but I'm not precious about
where it is.

Has anyone had any experience with these types of hosting packages and their
providers or can make any recommendations.

Please contact me off list.

Thank you

++
Kevin Parker

++







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


RE: REST on Pre CF 10?

2012-04-19 Thread andy matthews

Sean Corfield's FW/1 can also do REST using URL Routes

https://github.com/seancorfield/fw1 

https://github.com/seancorfield/fw1/wiki/Developing-Applications-Manual
(search for URL Route)



andy

-Original Message-
From: Matt Quackenbush [mailto:quackfu...@gmail.com] 
Sent: Monday, April 16, 2012 3:59 PM
To: cf-talk
Subject: Re: REST on Pre CF 10?


https://github.com/atuttle/Taffy

Excellent RESTful framework, in my opinion.


On Mon, Apr 16, 2012 at 3:51 PM, N kips nich...@gmail.com wrote:


 Can a REST API webservice be implemented in Pre CF 10 editions?

 



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


RE: FusionReactor - Development server

2012-04-14 Thread andy matthews

Looks like you might have been dreaming:

http://www.fusion-reactor.com/fr/faq.cfm#licencing1

Each physical or virtual server requires one FusionReactor license - all of
the instances which are installed on that server are covered by the one
FusionReactor license. So, if you have (say) 6 physical boxes, then you need
6 licenses. Note, that on a single box you may have multiple instances
(ColdFusion, JRun, Tomcat, JBoss) installed on it, but you still only need 1
license for that (virtual or physical) server. Virtual Machines (VM's) are
also classed as separate physical servers and therefore require a license.


andy 

-Original Message-
From: Bobby [mailto:bo...@acoderslife.com] 
Sent: Saturday, April 14, 2012 8:31 AM
To: cf-talk
Subject: FusionReactor - Development server


I figured if anyone knew the answer to this (outside of FR Support), it
would be someone on this list©

I may have dreamed this because I can't find it again but I thought I read
that if you bought a FusionReactor enterprise license, you were also allowed
to install a second copy on a development server at no extra cost.

Does anyone know whether or not that is true?

Thanks







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


RE: Javascript test in ColdFusion

2012-04-04 Thread andy matthews

My pleasure RR.



andy 

-Original Message-
From: Robert Rhodes [mailto:rrhode...@gmail.com] 
Sent: Wednesday, April 04, 2012 7:05 PM
To: cf-talk
Subject: Re: Javascript test in ColdFusion


Thanks to all for the suggestions on this.  I went with the approach below
and it worked well.

Thank you Andy,

-RR



On Mon, Mar 26, 2012 at 11:39 PM, andy matthews
li...@commadelimited.comwrote:


 A dead simple way of testing for JavaScript:

 script
window.location.href = 'javascriptCapable.cfm'; /script meta 
 http-equiv=refresh content=1; url=nonJavascriptCapable.cfm

 If a browser understands JS they get one page, if they don't they get 
 another.

 One thing to consider though that it's not quite as simple as 
 understanding JS...you should be checking for specific functionality 
 using something like Modernizr.

 http://www.modernizr.com/



 andy



 -Original Message-
 From: Robert Rhodes [mailto:rrhode...@gmail.com]
 Sent: Monday, March 26, 2012 12:00 PM
 To: cf-talk
 Subject: Javascript test in ColdFusion


 Hello again.

 I have a site that loads all the content in ajax.  I also have a 
 version of the site that does not use ajax.

 I am looking for some code I can put in the application.cfm to test to 
 see if the visitor's browser supports javascipt or not, so I can load 
 the right version of the site.

 Any ideas?

 Thanks.

 --RR




 



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


RE: random records no duplicates

2012-03-29 Thread andy matthews

Agreed.

Simple to store a list of already asked questions in the session scope.


andy 

-Original Message-
From: .jonah [mailto:jonah@creori.com] 
Sent: Thursday, March 29, 2012 4:12 AM
To: cf-talk
Subject: Re: random records no duplicates


Another way is to leave the already asked questions out of your new query
each time:

cfquery name=getquestion datasource=#request.DSN#
SELECT questions.questionid, questions.questiontext
 FROM questions
 WHERE questions.questionid NOT IN (#listOfPreviouslyAskedQuestions#)
/cfquery

cfset displayRow = RandRange(1,getquestion.recordcount)

cfoutput query=getquestion maxrows=1 
startrow=#displayRow##questiontext#/cfoutput




On 3/29/12 1:58 AM, .jonah wrote:
 Either keep a list of questions already asked and query again if it 
 tries to give you one you've had before or keep a a copy of the query 
 for each user and remove the row after you ask each question.

 On 3/29/12 1:21 AM, Akos Fortagh wrote:
 hi there, wondering if someone might be able to help with this please.
 I have a simple questions table and I'm displaying one randomly generated
question from it at a time. User clicks a button and the page reloads to
give the next question.
 So far I have this simple bit working fine:
 cfquery name=getquestion datasource=#request.DSN#
 SELECT questions.questionid, questions.questiontext
  FROM questions
 /cfquery
  
 cfset displayRow = RandRange(1,getquestion.recordcount)

 cfoutput query=getquestion maxrows=1 
 startrow=#displayRow##questiontext#/cfoutput

 What would be the easiest approach to make sure that one question cannot
be delivered twice?
 Any help 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:350584
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Clean URL's

2012-03-26 Thread andy matthews

Dominic had the best answer then.

Using mod_rewrite for Apache or ISAPI_REWRITE for IIS is your best bet.
Depending on your site you could hardcode existing links, or come up with a
regex pattern that matches existing links.



andy 

-Original Message-
From: Rick T [mailto:rtuinenb...@gmail.com] 
Sent: Monday, March 26, 2012 11:15 AM
To: cf-talk
Subject: Re: Clean URL's


The existing site has this URL format, and they have tons of search engines
already indexed.  I have to move the entire site to a CF environment, and I
don't want to introduce a new url pattern with fear of losing my search
engine listings.


I've had success with SES Converter:
http://developer.fusium.com/tools/ses.cfm

You would still have the .cfm extension; you would get pages in this form:

http://www.ccbsllc.com/pages/Portfolio.cfm

http://nutriciaconsulting.com/pages/Upcoming-Events.cfm

But that result is search engine friendly, if that is what you're after.

HTH. Eric

I am using Apache with Railo and I am in need to having my URL's 
looking something like this:

www.somedomain.com/new/cool

I want all request to use Railo, and all variables hidden.

Any help on this is 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:350554
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Javascript test in ColdFusion

2012-03-26 Thread andy matthews

A dead simple way of testing for JavaScript:

script
window.location.href = 'javascriptCapable.cfm';
/script
meta http-equiv=refresh content=1; url=nonJavascriptCapable.cfm 

If a browser understands JS they get one page, if they don't they get
another.

One thing to consider though that it's not quite as simple as understanding
JS...you should be checking for specific functionality using something like
Modernizr.

http://www.modernizr.com/



andy

 

-Original Message-
From: Robert Rhodes [mailto:rrhode...@gmail.com] 
Sent: Monday, March 26, 2012 12:00 PM
To: cf-talk
Subject: Javascript test in ColdFusion


Hello again.

I have a site that loads all the content in ajax.  I also have a version of
the site that does not use ajax.

I am looking for some code I can put in the application.cfm to test to see
if the visitor's browser supports javascipt or not, so I can load the right
version of the site.

Any ideas?

Thanks.

--RR




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


RE: [OT] Adobe.com / Cisco.com - Same CMS ?

2012-03-14 Thread andy matthews

I think it's just that go is a common verb.



andy 

-Original Message-
From: IT (Pradeep Viswanathan) [mailto:prade...@emiratesnbd.com] 
Sent: Wednesday, March 14, 2012 5:35 AM
To: cf-talk
Subject: [OT] Adobe.com / Cisco.com - Same CMS ?


Just wondering if Adobe and Cisco.com run on same CMS?

This made me think about it
http://cisco.com/go/ace
http://adobe.com/go/coldfusion


Thx  rgds,
Pradeep Viswanathan R



DISCLAIMER:
This e-mail message including any of its attachments is intended solely for
the addressee(s) and may contain privileged information. If you are not the
addressee or you have received this email message in error, please notify
the sender who will remove your details from its database. You are not
authorized to read, copy, disseminate, distribute or use this e-mail message
or any attachment to it in any manner and must delete the email and destroy
any hard copies of it. 
This e-mail message does not contain financial instructions or commitments
of any kind. Any views expressed in this message are those of the individual
sender and do not necessarily reflect the views of Emirates NBD PJSC, or any
other related subsidiaries, entities or persons.




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


RE: (ot) Places to post a CF opening

2012-03-06 Thread andy matthews

You can pay a small fee to post it on Ben Nadel's job board. I believe he
donates the money to charity.


andy 

-Original Message-
From: Gerald Guido [mailto:gerald.gu...@gmail.com] 
Sent: Tuesday, March 06, 2012 9:12 AM
To: cf-talk
Subject: (ot) Places to post a CF opening


We have an opening for someone with CF Experience. We advertised it as a DBA
with CF Experience and posted on some free sites and Craig's list and have
not had any bites locally. The powers that be do not want to nut up to post
it to Monster or career builder.

I know that there is the CF-Jobs list but where else can we post for free
that will get us more coverage?

As always many TIA.

G!

--
Gerald Guido
http://www.myinternetisbroken.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:350295
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: strip off HTML

2012-02-12 Thread andy matthews

Uwe...

At a guess, I'd say that the * might be a little too aggressive.

Try a plus instead:

cfset textstr = REReplace(str,'[^]+','','all')



andy

-Original Message-
From: Uwe Degenhardt [mailto:cf-t...@sdsolutions.de] 
Sent: Sunday, February 12, 2012 8:53 AM
To: cf-talk
Subject: strip off HTML


Hi list,
with this code I want to strip off
HTML coding of the field: XYSHORTDESC
of a mySQL-table-field.
It doesn't really work, since it is giving back blank fields after running,
and I don't know why.
Does anybody have a clue why or have an idea which ColdFusion function I can
take to strip off HTML ro run it properly ?
Thanks.
Uwe

CFQUERY NAME=GetData datasource=1234 maxrows=1 Select
ID,XYSHORTDESC FROM xyarticles /CFQUERY cfloop query=GetData
startrow=1 endrow=#GetData.recordcount# cfsavecontent variable=str
cfoutput#GetData.XYSHORTDESC#/cfoutput
/cfsavecontent
cfset textstr = REReplace(str,'[^]*','','all')
 CFSET textstr = LEFT(textstr,255)
cfoutput
#textstr#
/cfoutput
CFQUERY NAME=UpdateData datasource=1234 password=12345
username=frank update xyarticles set XYSHORTDESC = '#textstr#'
where ID = '#GetData.ID#'
/CFQUERY





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


RE: ridiculously cheap CFML conference next month

2012-01-20 Thread andy matthews

Yeah, I went the first year when it was CFinNC and it was fantastic.



andy 

-Original Message-
From: Justin Scott [mailto:leviat...@darktech.org] 
Sent: Thursday, January 19, 2012 11:37 PM
To: cf-talk
Subject: Re: ridiculously cheap CFML conference next month


 But will NCDevCon be taking place this year? I've heard different stories.

I am not involved in the conference aside from attending, so I do not know
what their plans are for 2012.  As an attendee I certainly hope they choose
to continue with NCDevCon if it's feasible to do so.  The College of
Textiles was am amazing host location and everyone involved with the
conference did a wonderful job.  If they do run it again in
2012 I will definitely be making the trip.


-Justin Scott



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


RE: ridiculously cheap CFML conference next month

2012-01-19 Thread andy matthews

But will NCDevCon be taking place this year? I've heard different stories.



andy 

-Original Message-
From: Justin Scott [mailto:leviat...@darktech.org] 
Sent: Thursday, January 19, 2012 11:11 PM
To: cf-talk
Subject: Re: ridiculously cheap CFML conference next month


 Forgive the sales pitch - but since CFUnited shut down, our community 
 just has so few opportunities to get together and grow.  Sure there's 
 the amazing http://cfobjective.com/

Unfortunately I won't be able to make OpenCF Summit, but I am beginning to
plan for cf.Objective.  I also wanted to mention NCDevCon while we're on the
topic (a regional ColdFusion conference).  It was only $70 and provided
world-class value, so if you're on the fence don't shrug off a conference
like OpenCF Summit just because it's inexpensive to register.


-Justi



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


RE: OT/JS: Trouble outputting individual products instead of entire list

2012-01-16 Thread andy matthews

You want similar functionality in both places, I'd write a function that
does it that you can apply to both sections. If it still doesn't behave the
same then your XML might be different.



andy

-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Sunday, January 15, 2012 5:39 PM
To: cf-talk
Subject: OT/JS: Trouble outputting individual products instead of entire
list


Hi, all...

I'm trying to parse and output some XML using jQuery so that I get an output
similar to this:

Air Conditioners
XC21
XC22
XC23

Furnaces
XF30
XF31
XF32

I'm using the .each function of jQuery to loop over the Categories XML (on
one file), then again on the Products XML (on a separate file.

The problem is, I can get the Air Conditioners category to output, but then
the entire list of AC models (XC21, etc) outputs as one item instead of
individually.

Here's the jQuery... anyone spot my flow in logic?

Thanks,

Rick

$(document).ready(function() {

   $('#get_categories_and_products').click(function() {

  $.ajax ({   type:  get,
  url:   categories.xml,
  dataType:  xml,
  success:   function(xml) {// list categories

 $(xml).find(Category).each(function() {

 
$('#categories').append($(this).find('CategoryName').text() + 'br /')

 currentCategory =
$(this).find('CategoryName').text();

 $.ajax  ({  type:get,
 url: lennoxproducts.xml,
 dataType:xml,
 success: function(xml) { //
list products for category


 
$(xml).find(Category).each(function() {


   if  ( $(this).text() ==
currentCategory
   )

   { var currentProductName =
$(this).next().find('ModelName').text();
 
$('#categories').append(currentProductName + 'br /')
   }

});  
 }
 });
  });
   }
});
   });
});





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


RE: Convert php to cfm

2012-01-11 Thread andy matthews

Tom...

If you're using CF8 or above, then you already have JSON functions built in.

cfset myArray = ['andy', 'jaime']
cfset json = SerializeJSON(myArray)
cfset newArray = DeserializeJSON(json) 

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_
c-d_43.html#5176845

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_
in-k_18.html#5177391

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_
s_03.html#292127


-Original Message-
From: Tom Small [mailto:t...@re-base.net] 
Sent: Wednesday, January 11, 2012 4:53 AM
To: cf-talk
Subject: Re: Convert php to cfm


Hi Andrew, I am using ColdFusion9 and have downloaded json (serialize and
deserialize) from cflibs. Although this may sound naive, can you tell me
where to include both files, also how to cfoutput it via json to my
datastore  as I am a newbie... 



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


RE: CFimage to draw a triangle

2011-12-25 Thread andy matthews

cfscript
t = ImageNew('', 300,300,'argb');
ImageSetAntialiasing(t);
ImageSetDrawingColor(t,'00');
ImageDrawLines(t,[0,300,0],[0,150,300],'yes','yes');
ImageWrite(t,'/Users/andy/Sites/triangle.png');
/cfscript
img src=/triangle.png / 

-Original Message-
From: Terry Troxel [mailto:terry.tro...@gmail.com] 
Sent: Sunday, December 25, 2011 9:34 AM
To: cf-talk
Subject: CFimage to draw a triangle


Could someone show me the proper way to draw a filled triangle using
CFimage?

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


RE: Is CFMAIL reliable??

2011-12-05 Thread andy matthews

Brook...

Haven't used CFMail heavily for a year or so, but I've always found it
fairly reliable. Occasionally you have to check the undelivr folder, but
then I wrote a service to do that for me:

http://undelivrnator.riaforge.org/



andy 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Monday, December 05, 2011 8:06 PM
To: cf-talk
Subject: Is CFMAIL reliable??


Hi Guys (and girls),

 

You may notice a trend in my postings! Moving away from infusion (long over
due) and looking at Native CF functions instead. So now I am looking at
CFMAIL and in the past know it has been a bit dodgy. There is a conversation
here about restarting the spooling service:

 

http://www.mail-archive.com/cf-talk@houseoffusion.com/msg342750.html

 

And Ben Nadel talks about monitoring the undeliverable folder and how the
spooler just occasionally stops working. 

http://www.bennadel.com/blog/1893-Monitoring-The-ColdFusion-Mail-Server-With
-GMail-And-A-Scheduled-Task.htm

 

The comments attest to this being an issue for a lot of people. So I guess
the question is, has this been resolved or is it necessary  to implement all
of these hacks to keep CFMAIL running well?

 

Brook






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


RE: HTML5 Browser Support

2011-11-16 Thread andy matthews

Not to agree with Ray but has anyone seen Firefox's version number lately?

They've literally gone through 3 major release numbers in like 3 months.
At the beginning of this year they were on 3. or 4. They just released v8
last week.


andy
 

-Original Message-
From: Raymond Camden [mailto:raymondcam...@gmail.com] 
Sent: Wednesday, November 16, 2011 5:40 AM
To: cf-talk
Subject: Re: HTML5 Browser Support


While it is still a problem, I think it is improving rather quickly.
IE6 continues to decline,and the major browser vendors are spewing out
updates faster than ever, especially Chrome. Even MS followed up IE9 with
their IE10 beta rather quickly.


On Wed, Nov 16, 2011 at 5:03 AM, Steve 'Cutter' Blades
cold.fus...@cutterscrossing.com wrote:

 On 11/15/2011 4:03 PM, Gerald Guido wrote:
 Right now, according to my (extremely unscientific) estimates about 
 40-60% of the browser market supports at least some of the HTML5 spec 
 (Basically everything except IE8 and below).
 I was lucky enough to watch Douglas Crockford give a keynote at the 
 first Ext JS conference a few years back. He gave this awesome 
 presentation on the future of HTML and JS, then burst everyone's 
 bubble when he pointed out that it would be well over a decade before 
 developer's could truly take advantage of any of it (with the 
 exception of mobile). His reasoning was browser life cycle. Today 
 there are developers who must continue to support IE 6 because a 
 company (or govt) won't/can't move past it. How long do you think it 
 will take before 85%
 + are up to, or past, IE 10? (sad fact: users still use MS)

 Steve 'Cutter' Blades
 Adobe Community Professional
 Adobe Certified Expert
 Advanced Macromedia ColdFusion MX 7 Developer  
 http://cutterscrossing.com


 Co-Author Learning Ext JS 3.2 Packt Publishing 2010 
 https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desk
 top-style-user-interfaces/book

 The best way to predict the future is to help create it



 



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


RE: Adobe Abandons Flex

2011-11-16 Thread andy matthews

Not fair to say stupid enough.

Many of those apps were written back when IE6 was 80-90% of the browser
market. Are you writing apps that target Chrome and Firefox right now? Same
thing.
 

-Original Message-
From: Maureen [mailto:mamamaur...@gmail.com] 
Sent: Wednesday, November 16, 2011 7:55 PM
To: cf-talk
Subject: Re: Adobe Abandons Flex


Oh, ack!! It never occurred to me that they would be stupid enough to apps
that only run on IE6.

On Wed, Nov 16, 2011 at 5:28 PM, .jonah jonah@creori.com wrote:


 It's not that the upgrade costs. It's usually that they have a lot of 
 intranet apps that only run properly on IE6. :(

 On 11/16/11 5:22 PM, Maureen wrote:
  This makes no sense to me.  I can understand a business or 
  government office being slow to upgrade to new software if cost were 
  involved, but
 IE
  upgrades are free, and would certainly be more secure and productive.





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


RE: Adobe Abandons Flex

2011-11-16 Thread andy matthews

I'm sure you do, good for you. Were you around during the late 90s and the
browser wars? We didn't have the luxury in many cases of either
cross-browser libraries or foresight enough to think a specific browser
would be around for a decade.



andy 

-Original Message-
From: Maureen [mailto:mamamaur...@gmail.com] 
Sent: Wednesday, November 16, 2011 8:45 PM
To: cf-talk
Subject: Re: Adobe Abandons Flex


I'm not writing apps that target any browser.  I'm writing apps that work in
all of them.  And I consider it bad practice not to do so.

On Wed, Nov 16, 2011 at 6:42 PM, andy matthews
li...@commadelimited.comwrote:


 Not fair to say stupid enough.

 Many of those apps were written back when IE6 was 80-90% of the 
 browser market. Are you writing apps that target Chrome and Firefox 
 right now? Same thing.





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


RE: Adobe drops Flsh for mobile devices

2011-11-10 Thread andy matthews

I think you'll find that all of the powerful voices in CF have been
begging Adobe to do more for years.

I'd agree with you though about Ray, Ben, and a few others. They're so
prolific that it's all too easy to let them shoulder the burden of preaching
that CF stuff. I could ask though, do you blog about ColdFusion? :D



andy 

-Original Message-
From: Irvin Gomez [mailto:ir...@pixel69.com] 
Sent: Thursday, November 10, 2011 10:33 PM
To: cf-talk
Subject: Re: Adobe drops Flsh for mobile devices


To be clear - CFLib is slow to update because I'm 200% busy. If I 
didn't have work, I'd have more time for CFLib. To me, this is a good 
problem to have.

On Thu, Nov 10, 2011 at 5:44 PM, Irvin Gomez ir...@pixel69.com wrote:


I specifically mentioned you as an example of why Coldfusion is dying a very
slow death: why are you the one with all the responsibility? Where is the
rest of the community these days?

How come nobody is posting new examples, simple tutorials that would show
potential new users how nice and easy Coldfusion is?

The signs are everywhere: this list has very little new blood. 

The few coldfusion blogs that are actually popular mostly deal with stuff
way beyong beginning or itermediate level. That does nothing to promote
Coldfusion, because the ones who can see the value in those discussions are
long-time CF converts. It's preaching to the choir.

Now, I'm not attacking anyone - it is all Adobe's fault for not allocating
enough resources to a technology/product the derive financial benefit from. 

Finally, I think this state of denial does not benefit anyone; it would be
much better if the powerful voices in the community acknowledged that more
needs to be done to give Coldfusion the place it deserves. Attacking the
messenger is not going to get much done. That's my opinion and I hope it can
be respected the way I respect those who disagree with it. 



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


RE: 20USD/Hour Seriously?

2011-09-23 Thread andy matthews

To be fair, someone in the US is as likely to rip you off as someone in
India.


andy 

-Original Message-
From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk] 
Sent: Friday, September 23, 2011 4:41 PM
To: cf-talk
Subject: RE: 20USD/Hour Seriously?


A little while ago a Mumbian showed me a site as an example of his design.
Even the directors comments on one page were still there, they had just
changed the name of the director.

When I looked at the page source it had the details of a company in the USA.

On googling the company name I found the exact same site, developed by a guy
in the USA.

I called the USA company who were shocked to discover their site had been
completely ripped off.





--
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 2623 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:347673
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: 20USD/Hour Seriously?

2011-09-22 Thread andy matthews

Not to mention that $20 an hour is still a pretty damn good wage
comparitively. Better than making $6.50 flipping burgers at McDonalds.



andy

-Original Message-
From: Gerald Guido [mailto:gerald.gu...@gmail.com] 
Sent: Thursday, September 22, 2011 9:12 PM
To: cf-talk
Subject: Re: 20USD/Hour Seriously?


Not to start a flame war But there are 14 million ppl out of work in the US.
Many who have been out of a job for over a year.

I would imagine there are a few CF'ers/PHP'ers/Insert your stack here, etc.
who have been out of work long enough to be hurting enough to take any work
that they can get. I have been there even in good economic times when I was
self employed.

To quote Bob and Doug, $10 is $10 eh?

I agree with Sean and Matt but there are others that are not as fortunate to
have a CV as impressive as theirs.

Flame on Garth,
G!

My $0.02 and worth every penny

On Thu, Sep 22, 2011 at 9:38 PM, Sean Corfield
seancorfi...@gmail.comwrote:


 On Thu, Sep 22, 2011 at 6:38 PM, Steve 'Cutter' Blades 
 cold.fus...@cutterscrossing.com wrote:
  He may have been referring to a poster to the cf-jobs list, who 
  offered their services (and claimed better than average knowledge) at
$20/hr.
  Horrific when someone undervalues their services so much. Even worse 
  when they undervalue everyone else's by making a post like that.

 Yes, I saw that cf-jobs post. The guy has posted fairly often in the 
 past, pushing himself as an experienced CFer for various rates i.r.o.
 $20/hour.

 Consulting groups tend to go in between $150/hour and $200/hour - 
 sometimes even more - and even with their cut, $85/hour is about the 
 least I've seen good CFers getting that way... more usually they get 
 over $100/hour.

  Good CF devs are a valuable commodity. Great (available) CF devs a 
  rare commodity. Don't sell yourself, and everyone else, short.

 Absolutely. Accepting a below market rate devalues everyone's work.
 --
 Sean A Corfield -- (904) 302-SEAN
 An Architect's View -- http://corfield.org/ World Singles, LLC. -- 
 http://worldsingles.com/ Railo Technologies, Inc. -- 
 http://www.getrailo.com/

 Perfection is the enemy of the good.
 -- Gustave Flaubert, French realist novelist (1821-1880)

 



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


RE: Management API?

2011-08-28 Thread andy matthews

You don't need root access to MySQL at all. Just create a new API user that
has the proper permissions. Better yet, create a stored procedure that gets
called that does all of the appropriate tasks and let this user call that
proc. Then, under the hood, the proc runs as Admin to do the various tasks.



andy 

-Original Message-
From: Richard White [mailto:rich...@j7is.co.uk] 
Sent: Sunday, August 28, 2011 5:48 AM
To: cf-talk
Subject: Management API?


Hi,
i am creating a management API to manage my clients' software. 

The benefit is that at a click of it will setup or delete the clients
databases etc...

what do you guys think of the security of this as i am presuming this would
need to have root access into MySQL as it needs to have the ability to
create and delete databases, set grants etc...

is it wrong from a security point of view to have a cf data source that
accesses the root user in MySQL?

thanks 



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


RE: ColdFusion 10 and beyond

2011-08-09 Thread andy matthews

How sad is it that the ColdFusion team blog is using WordPress? Why not
BlogCFC or MangoBlog?



andy 

-Original Message-
From: Guust Nieuwenhuis [mailto:i...@lagaffe.be] 
Sent: Tuesday, August 09, 2011 12:51 PM
To: cf-talk
Subject: Re: ColdFusion 10 and beyond


Richard,

The next version of ColdFusion, code name Zeus is on its way...

Here are some resources for you about it:
- Next version of ColdFusion is codenamed Zeus
http://blogs.adobe.com/coldfusion/2011/06/08/next-version-of-coldfusion-is-c
odenamed-zeus/
- ColdFusion X Writeup
http://www.coldfusionjedi.com/index.cfm/2011/3/3/ColdFusion-X-Writeup
- ColdFusion 10 - Sneak Peak at RIACON
http://www.askbenore.com/2011/08/06/coldfusion-10-sneak-peak-at-riacon/

Make sure you follow ColdFusionBloggers (http://www.coldfusionbloggers.org/)
and you'll be up to date when something new is announced.

Kind regards,
Guust


On 09 Aug 2011, at 19:00, Richard Steele wrote:

 
 I'm concerned that at some point Adobe will pull the plug on CF as free
PHP continues to grow its user base. I know that there is an open source
version of CF, but I'm not sure if it has Enterprise features such as the
ability to create load balanced multiple instances. What's the general
feeling about this? Should I be concerned?  Is there any work being done on
ColdFusion 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:346608
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: NCDevCon

2011-08-09 Thread andy matthews

Yeah...

Anything Ray says in public NOW is canon...remember that.



andy 

-Original Message-
From: Raymond Camden [mailto:raymondcam...@gmail.com] 
Sent: Tuesday, August 09, 2011 2:27 PM
To: cf-talk
Subject: NCDevCon


Forgive the slightly commercial note, but please consider going to NCDevCon
this September. Adobe is sponsoring it and will be doing 5 sessions. We will
also have Rakshith, the new CF PM, doing the keynote. I've got two sessions
myself and the price is a pretty cheap 60 bucks. Details may be found here:

http://ncdevcon.com/

This will be my first public presentation as an official evangelist, so you
should attend at minimum just to laugh at how nervous I get.
See you there!




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


RE: Replace cfhttp with jquery.post()

2011-05-06 Thread andy matthews

Simplest thing to do would be to put the cfhttp call into a cfc, then call
that from jQuery.


andy

-Original Message-
From: David Mineer Jr [mailto:min...@gmail.com] 
Sent: Friday, May 06, 2011 7:53 PM
To: cf-talk
Subject: Re: Replace cfhttp with jquery.post()


K, hold up.  This has something to do with the ip address of the calling
function.  This program can only be called from the local server i.e.
localhost.  cfhttp must call from localhost and so it works.  jQuery.post()
must call from the client ip address and therefore won't ever work.

So I better look more into this and see how I am going to handle this.  This
is an internal app and that service only responds to internal requests.

---
David Mineer Jr
-
The critical ingredient is getting off your
butt and doing something. It's as simple
as that. A lot of people have ideas, but
there are few who decide to do
something about them now. Not
tomorrow. Not next week. But today.
The true entrepreneur is a doer.


On Fri, May 6, 2011 at 5:55 PM, David Mineer Jr min...@gmail.com wrote:

 Nice catch.  I also had address2 instead of addressline2.  I changed those
 and still nothing.

 I get the code pasted above for the post info when I click on the link,
but
 the response info is blank.  That's what has me flustered.  I get nothing
 back.  The link turns red and I can alert that there was an error, just
 don't know how to return the error that is sent back (assuming it is
getting
 back to me.







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


RE: Synonym Dictionary

2011-04-30 Thread andy matthews

You could look into using SOUNDEX in MySQL.

-Original Message-
From: Richard White [mailto:rich...@j7is.co.uk] 
Sent: Saturday, April 30, 2011 10:27 AM
To: cf-talk
Subject: Synonym Dictionary


Hi,

We use ColdFusion and MySQL (innodb) in our applications and when users
search for data  we want it to also find records containing related words /
synonyms. 

What is the best way to achieve this?

Thanks 



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


Re: Regex Question

2011-04-28 Thread Andy Matthews

That seems like it might do the trick:

http://regexr.com?2tl99

 Could be as simple as \w{3} 
 
 Would that do it (searching for 3 consecutive word characters)?
 
 -- 
 Charlie Griefer
 http://charlie.griefer.com
 
 I have failed as much as I have succeeded. But I love my life. I love 
 my wife. And I wish you my kind of success.
 On Thursday, April 28, 2011 at 10:10 AM, Rick Colman wrote: 
  
  input looks like:
  
  (A XXX)(B YYY)(C ZZZ) 
  
  I need to pull out:
  
  XXXYYYZZZ ...
  
  Can somebody help?
  
  TNX.
  
  Rick.
  
  


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


RE: Question about API wrapper design

2011-04-16 Thread andy matthews

The person method was private, only called by the other methods.



andy 

-Original Message-
From: Jeff Gladnick [mailto:jeff.gladn...@gmail.com] 
Sent: Saturday, April 16, 2011 10:55 PM
To: cf-talk
Subject: Re: Question about API wrapper design


hmm.  This sounds too complicated for the average user, but I am curious to
know more about this.

For the same reason I am hesitant to have multiple files extending a base
class.  For that I like mark's suggestion about the single cfc.  I want this
to be as plug and play as possible for people.

What I did in some of my projects was to have a base method person that
the other methods used. Enforce type or variable checking in
getPersonByType, but have the bulk of the work done in the getPerson
method.


andy




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


RE: Question about API wrapper design

2011-04-15 Thread andy matthews

What I did in some of my projects was to have a base method person that
the other methods used. Enforce type or variable checking in
getPersonByType, but have the bulk of the work done in the getPerson method.


andy

-Original Message-
From: Mark Drew [mailto:mark.d...@gmail.com] 
Sent: Friday, April 15, 2011 6:13 PM
To: cf-talk
Subject: Re: Question about API wrapper design


Hi there Jeff

I think this depends. Who are you writing the API for? I.e is this
something you are going to use then let other people use it via RiaForge?
Or Are you just developing it to be open source from the get go?

I am inclined to have one big file as then it's simple to use as you
instantiate it and check out the methods. On the other hand, you might
want to return sub objects from your methods (such as arrays of people
etc) 


With regards to Question 2, I simpler methods that are more descriptive
would help, such as:

getPerson(id)
getPeople(Since [optional])
getPeopleByTitle(title)
getPeopleByTag(tag)
getPeopleByCompany(companyid)
getPeopleBySearch(searchterm)
getPeopleByCriteria(criteriaStruct)
createPerson()
savePerson()
deletePerson()



I hope that helps. 

Regards

Mark Drew




On 16/04/2011 08:08, Jeff Gladnick jeff.gladn...@gmail.com wrote:


I'm one of the developers working on a CFML wrapper for the highrise
API (highrise.riaforge.org) and we're starting to plan out how we're
going to organize the file structure.

We have a few choices:
1) Separate file for each type of object (people, task, note, etc)
2) One big CFC file containing functions for each.

Although it seems like a no brainer to go with #1, I figured it might
be easier for CF developers to integrate into their projects if there
was just a single file to include, rather then a big library.
Advanced users could just strip out what they didn't want/need.

The 2nd question is about function encapsulation.  On the people
object, http://developer.37signals.com/highrise/people, there seem to
be 7 different variations of GET person that could all be combined
into a single getPerson() function that had (at least) 7 different
arguments.  It seems like we could shrink the codebase a lot more this
way. 

Any suggestions for file  function organization?





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


RE: Removing duplicates from a value list

2011-04-07 Thread andy matthews

Convert it to a struct, then back to a list:
http://www.bennadel.com/blog/432-Using-ColdFusion-Structures-To-Remove-Dupli
cate-List-Values.htm


andy

-Original Message-
From: Les Irvin [mailto:les.cft...@gmail.com] 
Sent: Thursday, April 07, 2011 11:07 PM
To: cf-talk
Subject: Removing duplicates from a value list


What's the easiest way to remove dupes from a value list?

I want to turn, say, this:
History,Recreation,History,Music,Architecture,History,Recreation,Music

into this:
History,Recreation,Music,Architecture

Thanks in advance for your help,
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:343618
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: ColdFusion 9 Enterprise Features

2011-03-21 Thread andy matthews

Adobe tries their best to not break up ColdFusion based on features. It's
usually based on processor support.


andy

-Original Message-
From: Richard White [mailto:rich...@j7is.co.uk] 
Sent: Monday, March 21, 2011 4:15 AM
To: cf-talk
Subject: ColdFusion 9 Enterprise Features


Hi,

I am assuming it means i am getting a bit rusty at searching the web, but i
cannot seem to find anywhere that details the enterprise-only features. We
only need to run a single instance on a server but am trying to work out
whether we need standard or enterprise license... 

Would appreciate any links that details the difference

thanks 



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


RE: jQuery and Session Timeout

2011-03-18 Thread andy matthews

The jQuery team did a complete rewrite of the ajax() method in 1.5. That's
probably where your issue is coming from.

http://blog.jquery.com/2011/01/31/jquery-15-released/

-snip-
AJAX REWRITE
Perhaps the largest change is that a call to jQuery.ajax (or jQuery.get,
jQuery.post, etc.) now returns a jqXHR object that provides consistency to
the XMLHttpRequest object across platforms (and allows you to perform
previously-impossible tasks like aborting JSONP requests).
-snip-



andy

-Original Message-
From: Steve Milburn [mailto:scmilb...@gmail.com] 
Sent: Friday, March 18, 2011 1:28 PM
To: cf-talk
Subject: jQuery and Session Timeout


Hello all (sorry if this is posted twice...)

I've been using the technique detailed in a blog post by Ray Camden
(http://www.coldfusionjedi.com/index.cfm/2010/9/8/Example-of-handling-sessio
n-time-outs-in-an-Ajax-application)
to detect a session timeout during an ajax request and take
appropriate action.  This has been serving me well, but now that I'm
starting to have some problems with it I'm realizing how little I
actually know about how it works.

Let's start with the first issue.  I've been using this technique with
jQuery 1.4.2.  Since upgrading to version 1.5.1 I cannot seem to get
the statusText of the XMLHTTPRequest response to be anything other
than error, regardless of whether there was an actual error or
whether the session timed out.  If I load jQuery 1.4.2 and run the
page, the response statusText is SessionTimeout (once the session is
actually timed out, of course).  However, if I load jQuery 1.5.1 on
that page, the response statusText is always error (again, once the
session is timed out - everything works perfectly until then).  And
since my code is looking for the statusText = SessionTimeout to
handle an expired session, the user is not notified that their session
is expired.

Relevent CF code here - http://pastebin.com/xPFaX4fx

jQuery code here - http://pastebin.com/CAJDve0k

As you can see in the js code, I'm dumping the XMLHTTPRequest object
to the console so I can see the contents.  I've noticed the contents
vary by more than just the statusText from 1.4.2 to 1.5.1.  Is this
just the nature of the beast with jQuery 1.5.1, and I have to find
another way to handle expired sessions when making ajax requests?

BTW - I'm running CF8.  There is also an issue that is discussed in
the comments of that blog post and detailed in a subsequent post by
Ray regarding the status of Robust Exception Information in the CF
administrator.  That brings up another issue for me that I can address
later, but for now I have that enabled.

Thanks for any help.



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


RE: cf jquery mobile

2011-03-15 Thread andy matthews

jQuery is built in part on jQuery UI. This should mean that jQuery UI
plugins work within jQuery Mobile.

http://www.erichynds.com/examples/jquery-related-selects/

Try that one. It came up in a search for jQuery UI related select.

Honestly though, related selects are easy to code with jQuery. You'd
probably be better off just writing your own.



andy

-Original Message-
From: Tim Do [mailto:t...@wng.com] 
Sent: Tuesday, March 15, 2011 1:42 PM
To: cf-talk
Subject: RE: cf  jquery mobile


Point taken, I was simply trying to convert a  page over to mobile.

I'm trying to use JQM and JQ now but finding it difficult to use jquery
plugins on the mobile device.  Ex:  I'm trying to do a simple related select
dropdowns and tried a couple of plugins, it works on my pc browser, but when
I try on the blackberry or iphone it doesn't work.  What I'm confused about
is all of the samples that I'm seeing both jquery-1.5.1.min.js and
jquery.mobile-1.0a3.min.js are being included.  Does this mean that
functions from jquery library will work on mobile devices?  Or do I need to
find specific plugins for jquery mobile?  If so, am I screwed because I
can't find any for a related select specific to mobile devices??  

-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com] 
Sent: Monday, March 14, 2011 6:07 PM
To: cf-talk
Subject: Re: cf  jquery mobile


I would also _strongly_ urge you not to mix CF's built in JS stuff
with any other JS framework. You can do it - but most of the time it
leads to trouble. If you are experienced enough to be working with
JQM, you probably do not need the built-in CF client side form
validation. Use a good jQuery plugin for that instead.

On Mon, Mar 14, 2011 at 7:25 PM, andy matthews li...@commadelimited.com
wrote:

 Without seeing code I couldn't be sure what was wrong, but jQuery Mobile
is
 quite particular about pathing. My guess is that some of the script files
 aren't loading. Hit your site with Firefox (with Firebug turned on) and
see
 if the javascript files needed for cfform are loading.



 andy

 -Original Message-
 From: Tim Do [mailto:t...@wng.com]
 Sent: Monday, March 14, 2011 10:51 AM
 To: cf-talk
 Subject: cf  jquery mobile


 I'm playing around w/ jquery mobile and am struggling with how to get
 certain features of cf to work within jquery mobile.  For instance, within
 my cfform the form validation and my related dropdown which I use cfselect
 and bind no long work.  Why is this and is there a way to get this to work
 together?  Thanks!




 





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


RE: cf jquery mobile

2011-03-14 Thread andy matthews

Without seeing code I couldn't be sure what was wrong, but jQuery Mobile is
quite particular about pathing. My guess is that some of the script files
aren't loading. Hit your site with Firefox (with Firebug turned on) and see
if the javascript files needed for cfform are loading.



andy

-Original Message-
From: Tim Do [mailto:t...@wng.com] 
Sent: Monday, March 14, 2011 10:51 AM
To: cf-talk
Subject: cf  jquery mobile


I'm playing around w/ jquery mobile and am struggling with how to get
certain features of cf to work within jquery mobile.  For instance, within
my cfform the form validation and my related dropdown which I use cfselect
and bind no long work.  Why is this and is there a way to get this to work
together?  Thanks!




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


RE: cf jquery mobile

2011-03-14 Thread andy matthews

+1



-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com] 
Sent: Monday, March 14, 2011 8:07 PM
To: cf-talk
Subject: Re: cf  jquery mobile


I would also _strongly_ urge you not to mix CF's built in JS stuff
with any other JS framework. You can do it - but most of the time it
leads to trouble. If you are experienced enough to be working with
JQM, you probably do not need the built-in CF client side form
validation. Use a good jQuery plugin for that instead.

On Mon, Mar 14, 2011 at 7:25 PM, andy matthews li...@commadelimited.com
wrote:

 Without seeing code I couldn't be sure what was wrong, but jQuery Mobile
is
 quite particular about pathing. My guess is that some of the script files
 aren't loading. Hit your site with Firefox (with Firebug turned on) and
see
 if the javascript files needed for cfform are loading.



 andy

 -Original Message-
 From: Tim Do [mailto:t...@wng.com]
 Sent: Monday, March 14, 2011 10:51 AM
 To: cf-talk
 Subject: cf  jquery mobile


 I'm playing around w/ jquery mobile and am struggling with how to get
 certain features of cf to work within jquery mobile.  For instance, within
 my cfform the form validation and my related dropdown which I use cfselect
 and bind no long work.  Why is this and is there a way to get this to work
 together?  Thanks!




 



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


RE: Javascript question

2011-03-13 Thread andy matthews

You didn't say what it is you're trying to accomplish, nor did you post
example code, so we can't really say what's not working. One thing you could
try is simplifying your code. Try replacing 3 lines with one:

// old lines
var getAttributes = row_id.split(_);
var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
getAttributes[3] + _ + getAttributes[4];
var new_row_id = document.getElementById(new_row_ +
setCommonAttr).value;});

// new line
new_row_id = $('#' + row_id.replace(/^row/,'new_row') );


-Original Message-
From: fun and learning [mailto:funandlrnn...@gmail.com] 
Sent: Sunday, March 13, 2011 9:43 AM
To: cf-talk
Subject: Javascript question


Hi All - I am trying to get the following working. It seemed to work
initially, but somehow it stopped working

I have a row like below

tr id=row_1_4_2009_abc class=rowclick
   td/td
/tr

I am using jquery to get the id on click of a row:

$(.rowclick).click(function() {
  var row_id = $(this).attr(id);
  var getAttributes = row_id.split(_);
  var setCommonAttr = getAttributes[1] + _ + getAttributes[2] + _ +
getAttributes[3] + _ + getAttributes[4];
  var new_row_id = document.getElementById(new_row_ +
setCommonAttr).value;
});

Can anyone let me know what is wrong with the above code. Tried different
options but with no success





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


RE: Jquery ajax and CFC ioutside webroot

2011-03-12 Thread andy matthews

You can't do it without some additional code.

Read these posts about accessing files outside of your web root.

http://blog.pengoworks.com/index.cfm/2008/1/16/Invoke-CFCs-outside-of-webroo
t-without-mappings

http://www.bennadel.com/blog/1655-Ask-Ben-Dynamic-Web-Root-And-Site-URL-Calc
ulations-In-Application-cfc.htm



andy


-Original Message-
From: fun and learning [mailto:funandlrnn...@gmail.com] 
Sent: Saturday, March 12, 2011 2:13 PM
To: cf-talk
Subject: Jquery ajax and CFC ioutside webroot


Hi All -

Can I use jquery ajax to call a cfc that is located outside the webroot? I
tried it but I think it is trying to look for the cfc within web root. How
can I get it to point to a cfc outside the webroot?

Thanks 



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


RE: Lightweight code editor, CF support would be a plus

2011-02-06 Thread andy matthews

Lightweight.

-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Sunday, February 06, 2011 5:52 AM
To: cf-talk
Subject: Re: Lightweight code editor, CF support would be a plus


what about cfeclipse ?


On Sun, Feb 6, 2011 at 11:48 AM, Scott Brady dsbr...@gmail.com wrote:


 I'm guessing that since they asked for both lightweight and ideally
 free
 it pretty much rules out CF Builder -- especially for just occasional
 editing on a server.

 Scott

 On Sun, Feb 6, 2011 at 3:33 AM, wattw...@telarushq.com 
 wattw...@telarushq.com wrote:

 
  Is CFBuilder out of the question?
 
  Sent from my HTC on the Now Network from Sprint!
 
  - Reply message -
  From: Pete Ruckelshaus pruckelsh...@gmail.com
  Date: Sat, Feb 5, 2011 20:44
  Subject: Lightweight code editor, CF support would be a plus
  To: cf-talk cf-talk@houseoffusion.com
 
 
  Yes, I'm on Windows.  Also looking for something that is ideally free.
 
  On Sat, Feb 5, 2011 at 10:30 PM, Rodney Enke renk...@gmail.com wrote:
 
  
   You didn't mention what OS, but if your looking for a Windows editor
 I'd
   recommend Emeditor by Emurasoft.  It's lightweight, GREAT for log
files
  and
   has a CF plugin.  The plugin is out of date but works in a pinch.
  
   -
   Rod
  
  
   On Sat, Feb 5, 2011 at 8:53 PM, Pete Ruckelshaus 
 pruckelsh...@gmail.com
   wrote:
  
   
I'm looking for a good, lightweight code/text editor that I can
 install
   on
a
dev server with limited resources.  I'll primarily use it for log
  files,
etc., but there might be the odd instance where I need to directly
 edit
  a
html of cf file, so support for html and cf would be useful.
   
Any suggestions?  And, no, I don't want to use vi.
   
Thanks,
   
Pete
   
   
   
  
  
 
 
 
 

 



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


RE: Lightweight code editor, CF support would be a plus

2011-02-05 Thread andy matthews

Editplus is awesome. $30.

-Original Message-
From: Pete Ruckelshaus [mailto:pruckelsh...@gmail.com] 
Sent: Saturday, February 05, 2011 9:44 PM
To: cf-talk
Subject: Re: Lightweight code editor, CF support would be a plus


Yes, I'm on Windows.  Also looking for something that is ideally free.

On Sat, Feb 5, 2011 at 10:30 PM, Rodney Enke renk...@gmail.com wrote:


 You didn't mention what OS, but if your looking for a Windows editor I'd
 recommend Emeditor by Emurasoft.  It's lightweight, GREAT for log files
and
 has a CF plugin.  The plugin is out of date but works in a pinch.

 -
 Rod


 On Sat, Feb 5, 2011 at 8:53 PM, Pete Ruckelshaus pruckelsh...@gmail.com
 wrote:

 
  I'm looking for a good, lightweight code/text editor that I can install
 on
  a
  dev server with limited resources.  I'll primarily use it for log files,
  etc., but there might be the odd instance where I need to directly edit
a
  html of cf file, so support for html and cf would be useful.
 
  Any suggestions?  And, no, I don't want to use vi.
 
  Thanks,
 
  Pete
 
 
 

 



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


RE: Anyone know anything about this new ColdFusion conference?

2011-01-31 Thread andy matthews

Wait, is CF dying?


andy

-Original Message-
From: Ben Forta [mailto:b...@forta.com] 
Sent: Monday, January 31, 2011 8:15 PM
To: cf-talk
Subject: RE: Anyone know anything about this new ColdFusion conference?


Good point, I guess I blocked those from my memory.

Oh well, I guess I'll just have to ignore this pointless banter up for a few
more days before the thread makes it to the CF-Talk Rogues Gallery.

--- Ben


-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Monday, January 31, 2011 8:58 PM
To: cf-talk
Subject: Re: Anyone know anything about this new ColdFusion conference?


 I officially nominate this thread as the least productive on cf-talk ever.

I'm sorry, Ben, but this one isn't even close. Are you forgetting all the
why isn't CF/CFB free threads? Or the is CF dying threads?
This one will need at least twenty more replies before it's even in the same
category.




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


RE: Should I build my app as an API?

2011-01-28 Thread andy matthews

Eric...

I like the idea of building out the API from the beginning. That would have
the benefit of having your API almost fully tested before it's publicly
released.

Simon Free has some great presentations on the Do's and Don't's of writing
APIs. Check them out:

http://www.simonfree.com/presentations/



andy

-Original Message-
From: Eric Cobb [mailto:cft...@ecartech.com] 
Sent: Friday, January 28, 2011 8:20 AM
To: cf-talk
Subject: Should I build my app as an API?


I'm getting ready to start working on what I hope is to become a pretty 
large side project.  Right now I'm in the planning phases, and one of 
the (eventual) plans is to have a full API that others can use to 
interact with the site.  When thinking about this, I came up with an 
idea that I wanted to run by you guys to get some opinions.

Instead of taking the usual approach of building the site like I want 
then adding an API to it, what if I were to just build out the API 
first, then build my site off of that API?  Has anyone ever done this, 
or have any ideas on this?

I'm really hoping to get a good discussion going on this, so please let 
me know what you think!

-- 

Thanks,

Eric Cobb
ECAR Technologies, LLC
http://www.ecartech.com
http://www.cfgears.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:341681
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Should I build my app as an API?

2011-01-28 Thread andy matthews

Also, consider looking into ColdBox. It's built from the ground up to allow
for REST:

http://www.simonfree.com/presentations/

-Original Message-
From: Eric Cobb [mailto:cft...@ecartech.com] 
Sent: Friday, January 28, 2011 8:20 AM
To: cf-talk
Subject: Should I build my app as an API?


I'm getting ready to start working on what I hope is to become a pretty 
large side project.  Right now I'm in the planning phases, and one of 
the (eventual) plans is to have a full API that others can use to 
interact with the site.  When thinking about this, I came up with an 
idea that I wanted to run by you guys to get some opinions.

Instead of taking the usual approach of building the site like I want 
then adding an API to it, what if I were to just build out the API 
first, then build my site off of that API?  Has anyone ever done this, 
or have any ideas on this?

I'm really hoping to get a good discussion going on this, so please let 
me know what you think!

-- 

Thanks,

Eric Cobb
ECAR Technologies, LLC
http://www.ecartech.com
http://www.cfgears.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:341682
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: (ot) Creating Smartphone Graphics

2011-01-23 Thread andy matthews

I've spent the last 3 or 4 weeks creating assets for iPhone (with Retina
display) and Android. Here's how I approach it.

1) Don't create your original files in Photoshop if at all possible. Use
Illustrator or a similar vector too. Fireworks would be acceptable if you
don't have Illustrator.

2) Create the files at the appropriate pixel dimension, 480x800, at the
correct dpi, then copy them into Photoshop as a smart object (this keeps it
vector, and therefore resizeable).

3) Working with the iPhone3GS- and iPhone 4 is tough, keeping all those
different sizes in mind, but working with Android would be a pain in the
a$$.


andy


-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Sunday, January 23, 2011 1:19 PM
To: cf-talk
Subject: (ot) Creating Smartphone Graphics


Sorry for the OT, but I have searched everywhere
trying to find a definitive answer that actually
works in practice.

I'm getting into mobile development and one of my first
goals has been to figure out how to create site graphics.

I use Photoshop, and I'm asking, What's the best way
to set up my blank files to work on?  72ppi with the
appropriate pixel dimensions? (I have a Samsung Fascinate,
so the screen size is 480x800 pixels, 233 ppi)

Most of what I've read states it doesn't matter what ppi
your work in.  That doesn't hold up in practice, however.

Here's a test case:

http://www.wsm-dev.com/wsmDev/mobileDevelopment/graphicsTesting/index.cfm

You can see from the display the various ppi's that I used
for the graphics.  The only one that looks like what I'm
trying to create on the smart phone screen is the bottom
graphic of the word Hurricane.

That was created on a canvas size of 2.5 inches x 4.18 inches,
the size of the Fascinate Screen (according to reviews), with
a screen resolution of *300 ppi* !!!

Since the Fascinate's ppi actually works out to 233 ppi, I thought
the top graphic would be the most accurate in the display.  But
even it was too small.

These graphics are not given a size in the HTML.

I upped the ppi to 300 for the bottom example and it turns out to
be the most accurate!

I just don't get this.  I've worked with graphics for over a decade,
for the web and print, but trying to figure out smartphone screens
is beyond my comprehension to this point.

I'd like to set up my blank file in Photoshop at whatever screen
size is appropriate (in this case 480x800) and create graphics on that
at whatever ppi gives the correct size and quality.

But so far, nothing makes sense.

Would someone who has experience with creating graphics for smartphone
screens *please* explain to me what is going on with this

Thanks for any feedback!

Rick 






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


RE: (ot) Creating Smartphone Graphics

2011-01-23 Thread andy matthews

And Rick...

Are you in Tampa?

-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Sunday, January 23, 2011 1:19 PM
To: cf-talk
Subject: (ot) Creating Smartphone Graphics


Sorry for the OT, but I have searched everywhere
trying to find a definitive answer that actually
works in practice.

I'm getting into mobile development and one of my first
goals has been to figure out how to create site graphics.

I use Photoshop, and I'm asking, What's the best way
to set up my blank files to work on?  72ppi with the
appropriate pixel dimensions? (I have a Samsung Fascinate,
so the screen size is 480x800 pixels, 233 ppi)

Most of what I've read states it doesn't matter what ppi
your work in.  That doesn't hold up in practice, however.

Here's a test case:

http://www.wsm-dev.com/wsmDev/mobileDevelopment/graphicsTesting/index.cfm

You can see from the display the various ppi's that I used
for the graphics.  The only one that looks like what I'm
trying to create on the smart phone screen is the bottom
graphic of the word Hurricane.

That was created on a canvas size of 2.5 inches x 4.18 inches,
the size of the Fascinate Screen (according to reviews), with
a screen resolution of *300 ppi* !!!

Since the Fascinate's ppi actually works out to 233 ppi, I thought
the top graphic would be the most accurate in the display.  But
even it was too small.

These graphics are not given a size in the HTML.

I upped the ppi to 300 for the bottom example and it turns out to
be the most accurate!

I just don't get this.  I've worked with graphics for over a decade,
for the web and print, but trying to figure out smartphone screens
is beyond my comprehension to this point.

I'd like to set up my blank file in Photoshop at whatever screen
size is appropriate (in this case 480x800) and create graphics on that
at whatever ppi gives the correct size and quality.

But so far, nothing makes sense.

Would someone who has experience with creating graphics for smartphone
screens *please* explain to me what is going on with this

Thanks for any feedback!

Rick 






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


RE: (ot) Creating Smartphone Graphics

2011-01-23 Thread andy matthews

I mean are you in Nasville.

Your website is wsm-dev.com

I'm in East Nashville, by the stadium.



andy

-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Sunday, January 23, 2011 1:19 PM
To: cf-talk
Subject: (ot) Creating Smartphone Graphics


Sorry for the OT, but I have searched everywhere
trying to find a definitive answer that actually
works in practice.

I'm getting into mobile development and one of my first
goals has been to figure out how to create site graphics.

I use Photoshop, and I'm asking, What's the best way
to set up my blank files to work on?  72ppi with the
appropriate pixel dimensions? (I have a Samsung Fascinate,
so the screen size is 480x800 pixels, 233 ppi)

Most of what I've read states it doesn't matter what ppi
your work in.  That doesn't hold up in practice, however.

Here's a test case:

http://www.wsm-dev.com/wsmDev/mobileDevelopment/graphicsTesting/index.cfm

You can see from the display the various ppi's that I used
for the graphics.  The only one that looks like what I'm
trying to create on the smart phone screen is the bottom
graphic of the word Hurricane.

That was created on a canvas size of 2.5 inches x 4.18 inches,
the size of the Fascinate Screen (according to reviews), with
a screen resolution of *300 ppi* !!!

Since the Fascinate's ppi actually works out to 233 ppi, I thought
the top graphic would be the most accurate in the display.  But
even it was too small.

These graphics are not given a size in the HTML.

I upped the ppi to 300 for the bottom example and it turns out to
be the most accurate!

I just don't get this.  I've worked with graphics for over a decade,
for the web and print, but trying to figure out smartphone screens
is beyond my comprehension to this point.

I'd like to set up my blank file in Photoshop at whatever screen
size is appropriate (in this case 480x800) and create graphics on that
at whatever ppi gives the correct size and quality.

But so far, nothing makes sense.

Would someone who has experience with creating graphics for smartphone
screens *please* explain to me what is going on with this

Thanks for any feedback!

Rick 






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


RE: (ot) Creating Smartphone Graphics

2011-01-23 Thread andy matthews

Yeppers.


andy

-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Sunday, January 23, 2011 4:38 PM
To: cf-talk
Subject: RE: (ot) Creating Smartphone Graphics


No, I'm down in Hinesville, GA... close to Savannah.

I googled wsm-dev Nashville TN to see what that brought
up and I saw a lot about wsmv.com...tv station.
Is that what you thought the wsm-dev was about?

Thanks for the info, too!

Rick

-Original Message-
From: andy matthews [mailto:li...@commadelimited.com] 
Sent: Sunday, January 23, 2011 3:28 PM
To: cf-talk
Subject: RE: (ot) Creating Smartphone Graphics


I mean are you in Nasville.

Your website is wsm-dev.com

I'm in East Nashville, by the stadium.



andy

-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Sunday, January 23, 2011 1:19 PM
To: cf-talk
Subject: (ot) Creating Smartphone Graphics


Sorry for the OT, but I have searched everywhere
trying to find a definitive answer that actually
works in practice.

I'm getting into mobile development and one of my first
goals has been to figure out how to create site graphics.

I use Photoshop, and I'm asking, What's the best way
to set up my blank files to work on?  72ppi with the
appropriate pixel dimensions? (I have a Samsung Fascinate,
so the screen size is 480x800 pixels, 233 ppi)

Most of what I've read states it doesn't matter what ppi
your work in.  That doesn't hold up in practice, however.

Here's a test case:

http://www.wsm-dev.com/wsmDev/mobileDevelopment/graphicsTesting/index.cfm

You can see from the display the various ppi's that I used
for the graphics.  The only one that looks like what I'm
trying to create on the smart phone screen is the bottom
graphic of the word Hurricane.

That was created on a canvas size of 2.5 inches x 4.18 inches,
the size of the Fascinate Screen (according to reviews), with
a screen resolution of *300 ppi* !!!

Since the Fascinate's ppi actually works out to 233 ppi, I thought
the top graphic would be the most accurate in the display.  But
even it was too small.

These graphics are not given a size in the HTML.

I upped the ppi to 300 for the bottom example and it turns out to
be the most accurate!

I just don't get this.  I've worked with graphics for over a decade,
for the web and print, but trying to figure out smartphone screens
is beyond my comprehension to this point.

I'd like to set up my blank file in Photoshop at whatever screen
size is appropriate (in this case 480x800) and create graphics on that
at whatever ppi gives the correct size and quality.

But so far, nothing makes sense.

Would someone who has experience with creating graphics for smartphone
screens *please* explain to me what is going on with this

Thanks for any feedback!

Rick 










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


RE: SerializeJSON return different between CF8 and CF9

2010-12-30 Thread andy matthews

And THAT is why you're not a Jedi.



andy

-Original Message-
From: Kris Jones [mailto:kris.jon...@verizon.net] 
Sent: Thursday, December 30, 2010 8:53 PM
To: cf-talk
Subject: Re: SerializeJSON return different between CF8 and CF9


Doh! Yes, exactly what I'm doing. Here's the weird thing though -
works fine in CF9. Perfect. In CF8 it simply escapes all the quotes in
the JSON string itself. Strange behavior? Or just an incompatibility?

I honestly didn't understand that returnformat=json was actually
serializing the json. I thought it was killing the wddx formatting.

Thanks for the education!

Cheers,
Kris



On Thu, Dec 30, 2010 at 9:37 PM, Raymond Camden rcam...@gmail.com wrote:

 Dumb question. But you are doing something like this:

 cfreturn serializejson(data)

 but _also_ adding returnFormat=json?

 If so - you are double serializing the JSON.


 On Thu, Dec 30, 2010 at 8:09 PM, Kris Jones kris.jon...@verizon.net
wrote:

 Okay, finally figured this out: To make this work in CF8 (w/ chf4
 applied), I had to change the returnformat to plain, rather than
 json. Otherwise it escaped all the quotes used to construct the
 JSON. This does not happen in CF9.

 Searched and searched for this on the web to no avail - hopefully this
 will save someone else some time.

 Cheers,
 Kris


 Was reworking a function today to use serializejson instead of
 building the json myself. Love this functionality. Unfortunately, I've
 run into a snag when I pushed this over to a CF8 box where it must
 run. The double-quotes on elements in the JSON returned are escaped
 when run from the CF8 box, but are not escaped (the desired format)
 when run from CF9.

 I checked hotfixes, and updated the CF8 box to chf4, which includes
 the functionality for returnformat=json.

 CF9 Format:

 {COLUMNS:[CREATE_DT,ID,CMS_ID,NAME],DATA:[[December, 30
 2010 19:16:31,32,KJ301220101413,null],[December, 30 2010
 18:33:45,31,KJ301220101413,null]]}

 CF8 Format:


{\COLUMNS\:[\CREATE_DT\,\ID\,\CMS_ID\,\NAME\],\DATA\:[[\Decemb
er,
 30 2010 19:16:31\,32,\KJ301220101413\,null],[\December, 30 2010
 18:33:45\,31,\KJ301220101413\,null]]}




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


RE: Dumping VAR Scope?

2010-12-04 Thread andy matthews

If you're running CF9, you can dump the LOCAL scope. Variables are placed in
this scope by default in CF9.

-Original Message-
From: Rick Root [mailto:rick.r...@gmail.com] 
Sent: Friday, December 03, 2010 11:05 AM
To: cf-talk
Subject: Re: Dumping VAR Scope?


On Fri, Dec 3, 2010 at 12:03 PM, Matt Quackenbush quackfu...@gmail.com
wrote:

 Rick, to my knowledge there is no way to dump the var'd variables as a
 whole.  That said, of course you can always dump individual var'd
variables.

That is my suspicion as well



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


RE: Javascript in fckEditor

2010-11-26 Thread andy matthews

By default FCKEditor renders your code. It's handy but might not be what you
want.

-Original Message-
From: Monique Boea [mailto:moniqueb...@gmail.com] 
Sent: Friday, November 26, 2010 9:31 AM
To: cf-talk
Subject: Javascript in fckEditor


Hello all.

I am added content to my database via fckEditor and everytime I add a page
with javascript on it, the editor acts up when I view try to edit it.

The text field disappears and the content is actually displayed on the page.


Any suggestions?

Thanks and hope everyone enjoyed your holiday!




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


RE: REGEX hell

2010-11-22 Thread andy matthews

For future reference you should avoid using * where possible as it can
easily lead to overmatching. Even using + would be better although both +
and * alone are greedy matches. An even better solution would be to use a
lazy match like so:

\)\s+?\)

The ? following the + tells the regex engine to match as little as possible.



andy

-Original Message-
From: Rick Colman [mailto:rcol...@cox.net] 
Sent: Monday, November 22, 2010 9:59 PM
To: cf-talk
Subject: Re: REGEX hell


This worked!! TNX.

On 11/22/2010 6:04 PM, Michael Dinowitz wrote:
 Are you sure it's a space and not 2 spaces? Or a tab? Try using \s* to
 indicate that there may be one or more space characters.

 \)\s*\)

 cfset cleandata2 = REReplaceNoCase(cleandata1, '\)\s*\)', ')', 'all')

 On Mon, Nov 22, 2010 at 8:48 PM, Rick Colmanrcol...@cox.net  wrote:

 I am trying to replace two trailing parens )) with a single paren.

 here is a sample string:

 (K AAA) (N AAC) (E GAA) )

 looks like there is a space in between the two )), so I tried:

 cfset cleandata2 = #REReplaceNoCase( cleandata1,'\)\ \)',')','all')#

 but this is not working.

 Any ideas as two what is wrong 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:339445
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Regex to parse cfhttp.filecontent?

2010-11-04 Thread andy matthews

http://regexr.com?2sg59

In CF, that would return an array with one or more matches. You could then
just remove the part you don't want, namely AUTHORIZATION RESULT: , and
proceed with your string.


andy

-Original Message-
From: Marie Taylore [mailto:mt4yl...@yahoo.com] 
Sent: Thursday, November 04, 2010 6:51 PM
To: cf-talk
Subject: Regex to parse cfhttp.filecontent?


Hi all,

I need help in parsing returned cfhttp.filecontent contents.

I need to find the line with AUTHORIZATION RESULT:  and then get all the
text that follows on that same line.

I'm sure there's a simple way to do that with ReFind, but I'm a Regex idiot.

Any help would be appreciated.

Thanks!

MarieT


  



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


RE: OT Windows Command line HTTP request

2010-10-28 Thread Andy Matthews

You could check if Curl exists in DOS.


Andy
 

-Original Message-
From: Ian Skinner [mailto:h...@ilsweb.com] 
Sent: Thursday, October 28, 2010 11:58 AM
To: cf-talk
Subject: OT Windows Command line HTTP request


  In the simplest manner possible.  What ways can one make a Windows DOS
Command line HTTP request.

TIA

Ian




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


RE: Writing cfml content to an html file

2010-10-21 Thread Andy Matthews

You shouldn't have any problems writing CFML code to a page. The error
you're getting is likely from your hashmarks not being escaped.


andy 

-Original Message-
From: Rick Sanders [mailto:c...@webenergy.ca] 
Sent: Thursday, October 21, 2010 9:23 AM
To: cf-talk
Subject: Writing cfml content to an html file


Hey all,

I'm trying to take some cfml content and write it to an html file using
cffile. The cfml content has queries etc I'm getting all kinds of
errors. Is there any way I can just get the cffile tag to write exactly what
I want to the file parsing the cfml content?

Error example:

Invalid CFML construct found on line 18 at column 303.  
ColdFusion was looking at the following text: 
#
The CFML compiler was processing: 
*   A cffile tag beginning on line 1, column 2. 

The error occurred in E:\Websites\nscomputers\emailquote.cfm: line 18   
16 :   /tr
17 : cfquery name=sys datasource=nscomputers
18 : SELECT
S1.SystemID,S1.SessionID,S1.CPU,S1.RAM,S1.RAMqty,S1.MB,S1.HD,S1.HDqty,S1.Tow
er,S1.Optical,S1.Video,S1.OS,S1.Keyboard,S1.Mouse,S1.Monitor,S1.Printer,S1.S
peaker,S1.acc1,S1.acc2,S1.acc3,S1.acc4,S1.acc5,S1.acc6,S1.acc7,S1.acc8,S1.Su
bTotal,S1.CreatedBy FROM dbo.SystemBuilder S1 WHERE
(S1.SessionID='#cookie.sid#')
19 : /cfquery 







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


RE: fckEditor and Coldfusion tags

2010-10-20 Thread andy matthews

ColdFusion has a function called Evaluate. One way to run this code would be
to pass the contents of your dbField into the function. The problem is that
if it contained anything OTHER than CF code it would probably die.

Another option might be for the user to input their code, then you save it
out as a cf file on the file system and save a reference to it's path. Then
you could execute the file anytime you wanted, but still save changes to it.


andy


-Original Message-
From: Torrent Girl [mailto:torrentg...@gmail.com] 
Sent: Wednesday, October 20, 2010 5:12 PM
To: cf-talk
Subject: fckEditor and Coldfusion tags


Hello all.

I built a Content Management system that uses the fckEditor.

The problem is that when a user adds CF tags, they aren't read correct when
the content is retrieved from the database.

I did a bit of research which lead me to the following url which instructed
me to edit the fckconfig.js file.

http://www.cfshopkart.org/viewtopic.php?f=12t=125

I changed the file as instructed and the cf tags are still not being read.

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


RE: Nice slideshow script?

2010-10-17 Thread andy matthews

I always suggest Mike Alsup's Cycle plugin for slideshows. It's simple, easy
to implement, and has lots of options.



andy

-Original Message-
From: Pete Ruckelshaus [mailto:pruckelsh...@gmail.com] 
Sent: Sunday, October 17, 2010 12:33 PM
To: cf-talk
Subject: Nice slideshow script?


I'm looking for suggestions on a nice, elegant, straightforward-to-implement
slideshow script.  I don't want to use cfpresentation for a myriad of
reasons.  Is there anything that hooks into CF9's built-in AJAX stuff?

Thanks

Pete




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


RE: Nice slideshow script?

2010-10-17 Thread andy matthews

http://malsup.com/jquery/cycle/

-Original Message-
From: Pete Ruckelshaus [mailto:pruckelsh...@gmail.com] 
Sent: Sunday, October 17, 2010 12:33 PM
To: cf-talk
Subject: Nice slideshow script?


I'm looking for suggestions on a nice, elegant, straightforward-to-implement
slideshow script.  I don't want to use cfpresentation for a myriad of
reasons.  Is there anything that hooks into CF9's built-in AJAX stuff?

Thanks

Pete




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


RE: Detecting Mobile Devices

2010-10-13 Thread Andy Matthews

I'd put all this in a function, and run the user agent string through it.
Then use the function call to return a boolean. Also, I found this function
on CFLib.org. 

http://cflib.org/index.cfm?event=page.udfbyidudfid=1887

Might be worth giving it a try.



andy


-Original Message-
From: Steve LaBadie [mailto:slaba...@po-box.esu.edu] 
Sent: Wednesday, October 13, 2010 8:16 AM
To: cf-talk
Subject: Detecting Mobile Devices


I have just finished the development of a mobile site for our university. I
have placed a redirect script on the home page and everything seems to be
working. I was wondering if there is a more streamlined approach to
detecting the different devices. Right now I am checking for specific
brands. I can see this list expanding as more devices come on the market.
Any thoughts.

 

 

cfif findNoCase('blackberry', CGI.HTTP_USER_AGENT)

cflocation url=http://esu.mpill.me; addtoken=no

cfelseif findNoCase('iphone', CGI.HTTP_USER_AGENT)

cflocation url=http://esu.mpill.me; addtoken=no

cfelseif findNoCase('droid', CGI.HTTP_USER_AGENT)

cflocation url=http://esu.mpill.me; addtoken=no

cfelseif CGI.HTTP_ACCEPT CONTAINS text/vnd.wap.wml

cflocation url=http://esu.mpill.me; addtoken=no

/cfif

 

Steve LaBadie, Web Manager

East Stroudsburg University

200 Prospect St.

East Stroudsburg, Pa 18301

570-422-3999

http://www.esu.edu http://www.esu.edu 

slaba...@po-box.esu.edu mailto:slaba...@po-box.esu.edu 





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


RE: Microsoft rumored to be buying Adobe

2010-10-07 Thread andy matthews

DAYUM!

-Original Message-
From: Eric Cobb [mailto:cft...@ecartech.com] 
Sent: Thursday, October 07, 2010 3:59 PM
To: cf-talk
Subject: Re: Microsoft rumored to be buying Adobe


It means that .Net developers will now have a much easier way to connect 
to things like Exchange, Sharepoint, Excel, and Active Directory.  :)

Thanks,

Eric Cobb
ECAR Technologies, LLC
http://www.ecartech.com
http://www.cfgears.com



Jeff Gladnick wrote:

http://sanfrancisco.cbslocal.com/2010/10/07/adobe-shares-soar-on-rumor-of-mi
crosoft-bid/

 What's that mean for Coldfusion!?




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


RE: Microsoft rumored to be buying Adobe

2010-10-07 Thread andy matthews

Don't forget Lasso. Wasn't that before ASP?

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Thursday, October 07, 2010 4:15 PM
To: cf-talk
Subject: Re: Microsoft rumored to be buying Adobe



http://sanfrancisco.cbslocal.com/2010/10/07/adobe-shares-soar-on-rumor-of-mi
crosoft-bid/

 What's that mean for Coldfusion!?

If this actually happened, I suspect that the product would be
divested or discontinued. But I really doubt that this will happen.
The only thing that Adobe has that MS doesn't is the design tools
market. There isn't much history of MS buying established competitors
to their own products. And speaking of established competitors, during
the existence of CF, Microsoft has gone through at least four
different competing products: they had a couple of things before ASP
(IDC and HTX I think), then there was ASP, then ASP.NET.




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


RE: Can't figure out a query to accomplish this...

2010-10-03 Thread andy matthews

Show us the structure of the two tables.


andy

-Original Message-
From: Rick Faircloth [mailto:ric...@whitestonemedia.com] 
Sent: Sunday, October 03, 2010 2:12 PM
To: cf-talk
Subject: Can't figure out a query to accomplish this...


I'm using MySQL 5.

I want to compare table1 to table2 and get any
records in table1 that don't exist in table2.

I have tried everything I could think of and that
I could find on the 'net.

Nothing's working.

I've tried

- select where not in (subselect)
- select where not exists (subselect)
- from dual
- left join where null
- blah, blah, blah (this one really performed badly)

How can I write this to make it work?

select   p.mls_number
from properties p
where  p.mls = 'hmls'
and  p.mls_number not in (select pc.mls_number from properties_copy pc
where pc.mls = 'hmls')

Any kind suggestions for a weary soul?

Thanks,

Rick





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


RE: Can't figure out a query to accomplish this...

2010-10-03 Thread andy matthews

Appears that MySQL does support intersects, or minus like Greg suggested.

http://www.bitbybit.dk/carsten/blog/?p=71


andy

-Original Message-
From: Greg Morphis [mailto:gmorp...@gmail.com] 
Sent: Sunday, October 03, 2010 2:18 PM
To: cf-talk
Subject: Re: Can't figure out a query to accomplish this...


Does MySQL support 'minus'?
 On Oct 3, 2010 2:12 PM, Rick Faircloth ric...@whitestonemedia.com
wrote:




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


RE: Fake URLS

2010-10-01 Thread Andy Matthews

What you're looking for is generally called SES or search engine
safe/friendly URLs.

The incoming SES URL has to have something that can be used to look up the
real URL behind the scenes. So if you wanted to use ipod_touch_32_gb,
then that would have to be the product name. You could also add the item
number and use that.

http://www.domain.com/ipod_touch_32_gb
Becomes
http://www.domain.com/ipod_touch_32_gb/123456789

There was a discussion on this just the other day in fact.

http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:61959


-Original Message-
From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] 
Sent: Friday, October 01, 2010 10:44 AM
To: cf-talk
Subject: Fake URLS


I am trying to make my e-Commerce item links for efficient.  For example, I
would like the link for an IPod Tocuh 32 GB to be
http://www.domain.com/ipod_touch_32_gb instead of
http://www.domain.com/store.cfm?i=123456s=789456p=654321.  You get the
point.  I'm assuming that the url http://www.domain.com/ipod_touch_32_gb
will throw some kind of 404 error and I will need to change the web server
custom error for this 404 error to run some kind of script.

Has anyone implemented URLs like this before?  If so, how?  Are there any
scripts out there that I can use?

Thanks,

Donnie 



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


RE: What version-/source control are you using (if any)?

2010-09-29 Thread andy matthews

We're using SVN and it's great. Throws a fit sometimes if you don't follow
the procedures exactly but it's solid.


andy

-Original Message-
From: Michael Christensen [mailto:mich...@strib.dk] 
Sent: Tuesday, September 28, 2010 8:35 AM
To: cf-talk
Subject: What version-/source control are you using (if any)?


We're thinking about setting up version-/source control for our CF code.

What are people out there using? What works, what doesn't? 



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


RE: List Sort help

2010-09-22 Thread Andy Matthews

ListSort should work:

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

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



andy 

-Original Message-
From: Tom Jones [mailto:tjo...@acworld.com] 
Sent: Wednesday, September 22, 2010 11:18 AM
To: cf-talk
Subject: List Sort help


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

cfset appVers = 3.6.1,3.6.5,3.6.3,3.6.10

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

Thanks,
tom 



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


RE: Boardwalk Empire

2010-09-22 Thread Andy Matthews

NO, but it's done in OT. 

-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Wednesday, September 22, 2010 2:26 PM
To: cf-talk
Subject: Re: Boardwalk Empire


Is it done in CF?

On Wed, Sep 22, 2010 at 3:24 PM, Rick Root rick.r...@gmail.com wrote:


 anyone else watch HBO's new series Boardwalk Empire?  I caught the 
 series premier last night, thought it was pretty good.

 Rick

 



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


RE: Shorter URLs - How?

2010-09-21 Thread Andy Matthews

The best approach for this would be to use a URL rewriting tool such as
ISAPI_REWRITE. That's an IIS thing. Doing it with pure ColdFusion, the best
thing you could hope for is 

http://www.scribblar.com/index.cfm/k3ns5



andy

-Original Message-
From: Stefan Richter [mailto:ste...@flashcomguru.com] 
Sent: Tuesday, September 21, 2010 10:04 AM
To: cf-talk
Subject: Shorter URLs - How?


Hi all,
I'm a Flex developer with just enough CF skills to be dangerous :-) and need
some guidance here.
My website allows users to access specific pages via a unique id/parameter
such as this:
http://www.scribblar.com/rooms/index.cfm?r=k3ns5

What's involved in terms of CF code to shorten this to
http://www.scribblar.com/rooms/k3ns5
or even better still
http://www.scribblar.com/k3ns5

I'm unsure as to how to achieve this. In case it makes a difference I am
using a Windows box with IIS7.

Cheers 

Stefan







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


RE: Flex/Coldfusion Open source projects

2010-09-19 Thread andy matthews

RIAforge.org has loads of projects based around Adobe products: ColdFusion,
Flex, Photoshop, etc.

CFLib.org has a large number of single serving functions and that sort of
thing.


andy

-Original Message-
From: fun and learning [mailto:funandlrnn...@gmail.com] 
Sent: Sunday, September 19, 2010 4:39 PM
To: cf-talk
Subject: Flex/Coldfusion Open source projects


Hi All -

What are the best active projects in Flex, Coldfusion or both. I am good in
Coldfusion, but I never got a chance to work in advanced topics. Also, I am
very interested in learning Flex and I want to learn by contributing to
existing projects. Also, it would be great if anyone can suggest a project
with flex for front end and coldfusion as backend

Thanks, 



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


RE: coldfusion forums?

2010-09-14 Thread Andy Matthews

Sitepoint forums has a good ColdFusion section. Lots of meaty questions
there. 

-Original Message-
From: Richard White [mailto:rich...@j7is.co.uk] 
Sent: Tuesday, September 14, 2010 5:25 AM
To: cf-talk
Subject: Re: coldfusion forums?


There may be less traffic but your questions still get answered do they
not?

yes definitely, just meant as a discussion point, and wondering if i was
maybe missing something new :)





--
Russ Michaels
www.cfmldeveloper.com - Supporting the CF community since 1999 FREE 
ColdFusion/Railo hosting for developers.

blog: www.michaels.me.uk



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


RE: CF8+: Short Hand notation for calling a function within a component.

2010-09-14 Thread Andy Matthews

Right. Not allowed in CF8, but it is allowed in CF9.




andy 

-Original Message-
From: Leigh [mailto:cfsearch...@yahoo.com] 
Sent: Tuesday, September 14, 2010 3:07 PM
To: cf-talk
Subject: Re: CF8+: Short Hand notation for calling a function within a
component.


I do not remember that being allowed in CF8. But you could assign the
structure to a variable. Then use argumentCollection

cfscript
args = {name=mike, likes=beer,soccer,women}; myFunction(
argumentCollection=args ); /cfscript



  



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


RE: CF9 Solr Search issue

2010-09-13 Thread Andy Matthews

You might consider pinging Shannon Hicks on Twitter, @iotashan. He's quite
knowledgeable about Solr.



andy 

-Original Message-
From: Mary Jo Sminkey [mailto:mary...@cfwebstore.com] 
Sent: Monday, September 13, 2010 8:40 AM
To: cf-talk
Subject: CF9 Solr Search issue


I've run into a frustrating issue while trying to use Solr search in CF9.
I'm not sure if the Verity has the same problem, but basically the problem
is that I have 3 different queries I want to index into a single collection
and if I purge the collection first, it is refusing to index all three. The
records come from fairly difference sources, so not easy to combine, I'm
using categories to mark the record type so my search interface allows the
user to select the scope they want to search in. The code basically looks
like this:

cfindex collection=#variables.collection# action=purge

 Code to Retrieve the 3 different document types to index 

!--- add documents to collection ---
cfindex collection=#variables.collection# action=update body=doc_text
category=doc_type_code custom1=id key=key query=local.qryDocs1 /
cfindex collection=#variables.collection# action=update body=doc_text
category=doc_type_code custom1=id key=key query=local.qryDocs2 /
cfindex collection=#variables.collection# action=update
body=doc_text1,doc_text2,doc_text3 category=doc_type_code custom1=id
key=key query=local.qryDocs3 /

Depending on the order that I run the cfindex tags, I only get one or two of
the queries being indexed, never all three. If however, I *don't* run a
purge first, they always get indexed properly. 

The keys in each of these queries is unique from all the others, so I know
that's not the problem. It's not a major problem that I don't run a purge,
since these records pretty much never change (at least in terms of being
removedI generally only have new ones, or changes to existing ones) but
just not thrilled at having to leave it out, when it *should* work with it
in there.

Any ideas? Anyone seen anything similar? 


--- Mary Jo




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


RE: Question on form variables

2010-09-07 Thread Andy Matthews

Setting a variable into the FORM scope on page one, will not automatically
put those variables, or their values, into the FORM scope on page two.

You'd need to add a hidden form field on page one, and populate it's value
from the FORM variable you're creating. 

-Original Message-
From: fun and learning [mailto:funandlrnn...@gmail.com] 
Sent: Tuesday, September 07, 2010 1:29 PM
To: cf-talk
Subject: Question on form variables


Hi All -

This might be a silly question, but I am confused with below scenario...I
have some form variables set on a page, and clicking on submit button, I go
to second page, where I am dumping these form variables...Some of the
variable values show up as empty string, but when I see the form variables
in the coldfusion debugging section, all the variable values are set. Am I
missing something here? 



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


RE: Question on form variables

2010-09-07 Thread Andy Matthews

So you're saying that when you inspect the FORM scope, by cfdumping it, on
page two that the variables are there? But when you output them by
themselves (FORM.varOne) they're empty?



andy 

-Original Message-
From: fun and learning [mailto:funandlrnn...@gmail.com] 
Sent: Tuesday, September 07, 2010 1:50 PM
To: cf-talk
Subject: Re: Question on form variables


Yes, I am setting the hidden variables

Setting a variable into the FORM scope on page one, will not 
automatically put those variables, or their values, into the FORM scope on
page two.

You'd need to add a hidden form field on page one, and populate it's 
value from the FORM variable you're creating.

Hi All -

This might be a silly question, but I am confused with below 
scenario...I have some form variables set on a page, and clicking on 
submit button, I go to second page, where I am dumping these form 
variables...Some of the variable values show up as empty string, but 
when I see the form variables in the coldfusion debugging section, all 
the variable values are set. Am I missing something here?



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


RE: Question on form variables

2010-09-07 Thread Andy Matthews

Are you cfparaming those variables at the top of page two?

Are you cfincluding any code that might overwrite those variables?


andy 

-Original Message-
From: fun and learning [mailto:funandlrnn...@gmail.com] 
Sent: Tuesday, September 07, 2010 2:01 PM
To: cf-talk
Subject: Re: Question on form variables


Yes, you are right.

So you're saying that when you inspect the FORM scope, by cfdumping it, 
on page two that the variables are there? But when you output them by 
themselves (FORM.varOne) they're empty?



andy

Yes, I am setting the hidden variables

Setting a variable into the FORM scope on page one, will not 
automatically put those variables, or their values, into the FORM 
scope on
page two. 



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


RE: Question on form variables

2010-09-07 Thread Andy Matthews

If that were the case then why would the var names show up in the cfdump for
the FORM scope? 

-Original Message-
From: Matthew [mailto:a.matthe...@yahoo.com] 
Sent: Tuesday, September 07, 2010 2:28 PM
To: cf-talk
Subject: Re: Question on form variables


My guess is that you've not set the method attribute in your form to post,
the default is get if not set.

Sent from my iPhone

On 7 Sep 2010, at 20:00, fun and learning funandlrnn...@gmail.com wrote:

 
 Yes, you are right.
 
 So you're saying that when you inspect the FORM scope, by cfdumping 
 it, on page two that the variables are there? But when you output 
 them by themselves (FORM.varOne) they're empty?
 
 
 
 andy
 
 Yes, I am setting the hidden variables
 
 Setting a variable into the FORM scope on page one, will not 
 automatically put those variables, or their values, into the FORM 
 scope on
 page two. 
 
 



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


RE: Finding if a key exists in a struct based on a variable name

2010-09-07 Thread Andy Matthews

CF9 has the ternary operator which is awesome. Works like JavaScript:

cfset output = (boolean ? It was True : It was False)



andy

-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Tuesday, September 07, 2010 4:17 PM
To: cf-talk
Subject: Re: Finding if a key exists in a struct based on a variable name


HA! So I'm not the only one!
So I thought DE meant Delay Evaluation as in Don't evaluate what's in
these little brackets this until you've satisfied the IIF condition.
I guess not?

On Tue, Sep 7, 2010 at 5:14 PM, Raymond Camden rcam...@gmail.com wrote:


 Bah - I hacked away at it for 10 minutes before remembering why I 
 hated IIF/DE in the first place. ;)

 On Tue, Sep 7, 2010 at 4:04 PM, Michael Grant mgr...@modus.bz wrote:
 
  Try running this:
 
  cfset x = {}
  cfset y = all
  cfoutput
  #iif(StructKeyExists(x,#y#head),DE('yes'),DE('no'))#
  /cfoutput
  p
  !--- cfset x[allhead] = booger --- cfoutput 
  #iif(StructKeyExists(x,#y#head),DE(x[#y#head]),DE('no'))#
  /cfoutput
 
 
 

 



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


RE: Ajax file upload.

2010-09-06 Thread andy matthews

I'm more interested why it has to be cfform? Are you using the validation
for cfform? You know that once your form is finalized, you can just download
the JS that cfform outputs and ditch cfform for production?


andy

-Original Message-
From: Steve Sequenzia [mailto:c...@thinksys.com] 
Sent: Monday, September 06, 2010 12:12 PM
To: cf-talk
Subject: Ajax file upload.


I am trying to make this http://www.webtoolkit.info/ajax-file-upload.html
work in ColdFusion.

I can get it to work as long as I don't make the form a cfform. I need to
make it work with a cfform though.

When I change the form to cfform it just submits to the action page I
created but it loses the ajax functionality.

Any one know how to make it work with cfform?

Thanks 



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


RE: Is there an anchor in a URL String

2010-09-02 Thread Andy Matthews

I think it's because the # doesn't do anything server side.

You can definitely get it with Javascript. It works like so:

Assuming this link:
/test.cfm#anchor

This code:
script type=text/javascript
!--
alert(location.hash);
//--
/script

Outputs this:
#anchor

You could then pass that off to CF via AJAX if you needed to.



andy 

-Original Message-
From: Robert Harrison [mailto:rob...@austin-williams.com] 
Sent: Thursday, September 02, 2010 11:55 AM
To: cf-talk
Subject: Is there an anchor in a URL String


I need to know if there is an anchor in a URL string (e.g.,
http://mylink.cfm#thisanchor).

Doing a CF dump and listing of every cgi var I know of does not give me that
information. 

Is there any way I can tell if a URL contains an anchor?

Thanks

Robert B. Harrison



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


RE: Moving to Apache

2010-09-02 Thread Andy Matthews

Not trying to start an argument, but you can't much easier than adding a
vhost block to the httpd.conf file in Apache.

IIS on the other hand has loads of nested windows and boxes and permissions.
Apache lets you do it all in one spot.


andy 

-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Thursday, September 02, 2010 12:23 PM
To: cf-talk
Subject: Re: Moving to Apache


do you have some particular reason to switch to Apache?
Windows is much easier to use and administer, especially if you are not used
to Apache/Linux.
Unless there is a specific feature of Apache you need which IIS doesn't have
then you may be just creating more work and complications for yourself.

On Thu, Sep 2, 2010 at 3:41 PM, Dave Watts dwa...@figleaf.com wrote:


  I am currently running ColdFusion MX7 on Windows 2003 running IIS. I 
  would like to switch to Apache.
 
  1. Can this be done without screwing things up?

 Yes, if done carefully. If this is on the same box, you obviously 
 won't be able to have both Apache and IIS listening to port 80, so 
 there will be a little bit of downtime.

  2. Do I have to re-install CF and point to Apache?

 You don't have to reinstall CF. You will simply need to run the JRun 
 web server configuration tool to disconnect CF from IIS and connect it 
 to Apache. If you have multiple virtual hosts, you'll probably end up 
 doing some manual configuration with Apache, as the web server 
 configuration tool doesn't handle that too well - you might want to 
 test setting this up in another environment first.

  3. Should I set-up a VM?

 That shouldn't be necessary for this.

 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 o

 



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


RE: Moving to Apache

2010-09-02 Thread Andy Matthews

Really? I didn't know that. That's cool. 

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Thursday, September 02, 2010 12:33 PM
To: cf-talk
Subject: Re: Moving to Apache


 IIS on the other hand has loads of nested windows and boxes and
permissions.
 Apache lets you do it all in one spot.

IIS lets you do it all in one spot also. You don't have to use the IIS
management console unless you like the pointing and the clicking. IIS also
has an API to let you automate this stuff if you want, and comes with a
bunch of sample scripts you can use to do it.

Dave Watts, CTO, Fig Leaf Software



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


RE: getting server name

2010-09-02 Thread Andy Matthews

Hah! I just implemented this same thing in our system the other day.

This code snippet will return the computer's name:

CreateObject(java, java.net.InetAddress).getLocalHost().getHostName()



andy

-Original Message-
From: Eric Roberts [mailto:ow...@threeravensconsulting.com] 
Sent: Thursday, September 02, 2010 12:44 PM
To: cf-talk
Subject: getting server name


Does anyone know if CF,r via a .NET object even, I can get the server name
(not the domain or IP) to use to differentiate servers in the
application.cfm?  The server name is the one thing that won't change if the
server get changed.  Thanks!

 

Eric





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


RE: Is there an anchor in a URL String

2010-09-02 Thread Andy Matthews

Robert...

Did you get my previous email about doing it with JavaScript?



andy 

-Original Message-
From: Robert Harrison [mailto:rob...@austin-williams.com] 
Sent: Thursday, September 02, 2010 1:50 PM
To: cf-talk
Subject: Is there an anchor in a URL String


I need to know if there is an anchor in a URL string (e.g.,
http://mylink.cfm#thisanchor).

Doing a CF dump and listing of every cgi var I know of does not give me that
information. 

Is there any way I can tell if a URL contains an anchor?

Thanks

Robert B. Harrison
Director of Interactive Services
Austin  Williams
125 Kennedy Drive, Suite 100
Hauppauge NY 11788
P : 631.231.6600 Ext. 119
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be .

Plug in to our blog: AW Unplugged
http://www.austin-williams.com/unplugged
 
 

__ Information from ESET Smart Security, version of virus signature
database 5419 (20100902) __

The message was checked by ESET Smart Security.

http://www.eset.com
 



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


RE: CFParam vs. IsDefined

2010-09-01 Thread Andy Matthews

One reason to use IsDefined over StructKeyExists is when you don't know if
one of the child structures exists.

For example, in our control app, we assign permissions to our users like so:

SESSION.p -- struct, always exists
SESSION.p.nav -- struct, exists if the user has at least one perm in this
set 
SESSION.p.nav.SOMEPERMISSION !-- bool, only exists if this user has this
perm

So you can see that if we wanted to check if someone had SOMEPERMISSION we'd
have to do some dancing around to use StructKeyExists. Instead we just say
IsDefined('SESSION.p.nav.SOMEPERMISSION') and we're done.

Admittedly we could probably do this more efficiently by having all perms as
keys inside a perms struct, but cest la vie.


andy


-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Wednesday, September 01, 2010 10:51 AM
To: cf-talk
Subject: Re: CFParam vs. IsDefined


defo better to make sure they are defined.
Also using isDefined() is also bad as this search every single scope for
your variable and is thus quite slow and can potentially cause timeouts.
Much better to use StructKeyExists() and only test the scope your variable
is in.

--
Russ Michaels
www.cfmldeveloper.com
Supporting the cf community since 1999
FREE ColdFusion/Railo hosting for developers.


On Wed, Sep 1, 2010 at 4:40 PM, DURETTE, STEVEN J (ATTASIAIT) 
sd1...@att.com wrote:


 Using your way ensures that any variables that you are using already 
 exist.

 I was always taught that I should define my variables before I use 
 them in code (my ancient programming college courses).  So, I tend to 
 follow your method.

 Also, from a security stand, you should already know what should be 
 coming into your page. If it isn't there then something went wrong. 
 And if you didn't define it and it is there you should be ignoring it.

 Steve

 -Original Message-
 From: Michael Grant [mailto:mgr...@modus.bz]
 Sent: Wednesday, September 01, 2010 11:36 AM
 To: cf-talk
 Subject: CFParam vs. IsDefined


 I prefer to CFParam my vars with a default value of a zero len string 
 or a 0 for numeric values. Then I skip the isdefined and just test 
 against the value. Well recently someone I know said that it's better 
 to test if it's defined. Is there a pro or con to doing it my way vs. 
 IsDefined ?

 Thanks.




 



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


RE: Check out this... code....

2010-08-31 Thread Andy Matthews

You're right. The correct version should be:

#Year(DateAdd(, 0, Now()))# 

No need for the -1.



andy

-Original Message-
From: Eric Cobb [mailto:cft...@ecartech.com] 
Sent: Tuesday, August 31, 2010 4:13 PM
To: cf-talk
Subject: Re: Check out this... code


I'm glad you posted this today, I just found this one a few minutes ago:

#Year(DateAdd(, 1, Now()))-1#


Thanks,

Eric Cobb
ECAR Technologies, LLC
http://www.ecartech.com
http://www.cfgears.com



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


RE: Number of site using ColdFusion

2010-08-25 Thread Andy Matthews

That's because that's individual pages.

Adobe (Ben Forta) has a good reference for sites using ColdFusion:
http://www.forta.com/cf/using/

Rey Bango manages GotCFM.com which also has a list of sites using CF:
http://www.gotcfm.com/thelist.cfm

-Original Message-
From: Robert Harrison [mailto:rob...@austin-williams.com] 
Sent: Wednesday, August 25, 2010 11:48 AM
To: cf-talk
Subject: Number of site using ColdFusion


Anyone have a reliable reference to how many sites may are using ColdFusion?

If I Google index.cfm and home.cfm the numbers exceed 1 billion. That seems
a bit too high. 

TIA,
Robert 


Robert B. Harrison
Director of Interactive Services
Austin  Williams
125 Kennedy Drive, Suite 100
Hauppauge NY 11788
P : 631.231.6600 Ext. 119
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be .

Plug in to our blog: AW Unplugged
http://www.austin-williams.com/unplugged


 

__ Information from ESET Smart Security, version of virus signature
database 5397 (20100825) __

The message was checked by ESET Smart Security.

http://www.eset.com
 



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


RE: Number of site using ColdFusion

2010-08-25 Thread Andy Matthews

No clue about the GotCFM list. I'd guess that Ben's list is well maintained,
but I don't know for certain. Perhaps he'd chime in on this one?


andy 

-Original Message-
From: Andrew Scott [mailto:andr...@andyscott.id.au] 
Sent: Wednesday, August 25, 2010 11:56 AM
To: cf-talk
Subject: RE: Number of site using ColdFusion


How well are these lists maintained?

Both do not contain sites that I know without a doubt are written in
ColdFusion, not to mention the first 5 I checked on Rey's randomly are now
written in PHP :-(

Regards,
Andrew Scott
http://www.andyscott.id.au/


 -Original Message-
 From: Andy Matthews [mailto:li...@commadelimited.com]
 Sent: Thursday, 26 August 2010 2:53 AM
 To: cf-talk
 Subject: RE: Number of site using ColdFusion
 
 
 That's because that's individual pages.
 
 Adobe (Ben Forta) has a good reference for sites using ColdFusion:
 http://www.forta.com/cf/using/
 
 Rey Bango manages GotCFM.com which also has a list of sites using CF:
 http://www.gotcfm.com/thelist.cfm
 
 -Original Message-
 From: Robert Harrison [mailto:rob...@austin-williams.com]
 Sent: Wednesday, August 25, 2010 11:48 AM
 To: cf-talk
 Subject: Number of site using ColdFusion
 
 
 Anyone have a reliable reference to how many sites may are using 
 ColdFusion?
 
 If I Google index.cfm and home.cfm the numbers exceed 1 billion. That 
 seems a bit too high.
 
 TIA,
 Robert
 
 
 Robert B. Harrison
 Director of Interactive Services
 Austin  Williams
 125 Kennedy Drive, Suite 100
 Hauppauge NY 11788
 P : 631.231.6600 Ext. 119
 F : 631.434.7022
 http://www.austin-williams.com
 
 Great advertising can't be either/or.  It must be .
 
 Plug in to our blog: AW Unplugged
 http://www.austin-williams.com/unplugged
 
 
 
 
 __ Information from ESET Smart Security, version of virus 
 signature database 5397 (20100825) __
 
 The message was checked by ESET Smart Security.
 
 http://www.eset.com
 
 
 
 
 ~~
 ~~~|
 Order the Adobe Coldfusion Anthology now!
 http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-
 Dinowitz/dp/1430272155/?tag=houseoffusion
 Archive: http://www.houseoffusion.com/groups/cf-
 talk/message.cfm/messageid:336516
 Subscription: 
 http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cf



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


RE: RegEx: Grabbing Keywords from Referers

2010-08-23 Thread Andy Matthews

This regex would search through a string and return all occurences of
q=followed by any character that's NOT an .

q=[^]+

Given this string:
http://www.google.com/search?source=ighl=enrlz=q=coldfusionaq=faqi=g-p3
g7aql=oq=gs_rfai=CJtNhsL9yTK_zHIWWhgTb-J3tDwAAAKoEBU_QXcSj

It matches 

q=coldfusion
q=f

Not sure where the second q= came from. I just did a search on the Google
homepage for ColdFusion.


andy
 

-Original Message-
From: Che Vilnonis [mailto:ch...@asitv.com] 
Sent: Monday, August 23, 2010 12:54 PM
To: cf-talk
Subject: RE: RegEx: Grabbing Keywords from Referers


Nice solution John. Thanks! Definitely different than mine.
I wonder if the regex gurus have a solution as well. ;)

-Original Message-
From: John M Bliss [mailto:bliss.j...@gmail.com]
Sent: Monday, August 23, 2010 1:00 PM
To: cf-talk
Subject: Re: Grabbing Keywords from Referers


This does (at least) Google.  Shouldn't be too difficult to extrapolate the
others...

cfloop index=thisarg list=#cgi.HTTP_REFERER# delimiters=?
   cfif ListFirst(thisarg, =) is q and ListLen(thisarg, =) is 2
  !--- then user searched for URLDecode(ListLast(thisarg, '=')) ---
  cfbreak
   /cfif
/cfloop



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


RE: RegEx: Grabbing Keywords from Referers

2010-08-23 Thread Andy Matthews

Ah. The text was so small in my testing app that I couldn't tell what that
was. Try this instead:

[?|]q=[^]+

That only looks for q= when immediately following a ? or an .

Given the same string:

http://www.google.com/search?q=coldfusionsource=ighl=enrlz=aq=faqi=g-p3
g7aql=oq=gs_rfai=CJtNhsL9yTK_zHIWWhgTb-J3tDwAAAKoEBU_QXcSj

It only matches

?q=coldfusion
or
q=coldfusion



-Original Message-
From: John M Bliss [mailto:bliss.j...@gmail.com] 
Sent: Monday, August 23, 2010 1:48 PM
To: cf-talk
Subject: Re: RegEx: Grabbing Keywords from Referers


 Not sure where the second q= came from.

From this:  aq=f


On Mon, Aug 23, 2010 at 1:44 PM, Andy Matthews
li...@commadelimited.comwrote:


 This regex would search through a string and return all occurences of 
 q=followed by any character that's NOT an .

 q=[^]+

 Given this string:

 http://www.google.com/search?source=ighl=enrlz=q=coldfusionaq=faq
 i=g-p3 g7aql=oq=gs_rfai=CJtNhsL9yTK_zHIWWhgTb-J3tDwAAAKoEBU_QXcSj

 It matches

 q=coldfusion
 q=f

 Not sure where the second q= came from. I just did a search on the 
 Google homepage for ColdFusion.


 andy


 -Original Message-
 From: Che Vilnonis [mailto:ch...@asitv.com]
 Sent: Monday, August 23, 2010 12:54 PM
 To: cf-talk
 Subject: RE: RegEx: Grabbing Keywords from Referers


 Nice solution John. Thanks! Definitely different than mine.
 I wonder if the regex gurus have a solution as well. ;)



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


RE: RegEx: Grabbing Keywords from Referers

2010-08-23 Thread Andy Matthews

Awesome Che! Glad I could be of help!


andy 

-Original Message-
From: Che Vilnonis [mailto:ch...@asitv.com] 
Sent: Monday, August 23, 2010 3:01 PM
To: cf-talk
Subject: RE: RegEx: Grabbing Keywords from Referers


Andy thanks again so much... this seems to work with Yahoo,Bing  Google.
My RegEx skills are a work in progress.


cfset referer =
http://search.yahoo.com/search;_ylt=Aqj24Omsi1LGKlDY4_G1hi6bvZx4?fr=yfp-t-7
01-stoggle=1cop=mssei=UTF8p=children%20karate%20uniform
cfset keywords = reMatchNoCase([?|][p|q]=[^]+, referer) cfset
keywords = urlDecode(reReplace(keywords[1],[?|][p|q]=, ,ALL))





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


RE: Preventing use of remote method by other sites

2010-08-16 Thread Andy Matthews

Yes, but would you know TO do that?


andy 

-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com] 
Sent: Monday, August 16, 2010 11:30 AM
To: cf-talk
Subject: Re: Preventing use of remote method by other sites


Don't forget you can easily set those headers yourself. I could setup cfhttp
to use that header and hit your resource.


On Fri, Aug 13, 2010 at 3:31 PM, Andy Matthews li...@commadelimited.com
wrote:

 Works perfectly Tony. I simplified the conditional tho'

 cfif StructKeyExists(headers,'X-Requested-With') AND 
 headers['X-Requested-With'] EQ 'XMLHttpRequest'

 /cfif



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


RE: Preventing use of remote method by other sites

2010-08-16 Thread Andy Matthews

Right. I know that. Good point though.

I suppose I could get our JS guy to also pass in a session id. Then I could
compare that with the actual session ID for the user and go from there. 

-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com] 
Sent: Monday, August 16, 2010 11:42 AM
To: cf-talk
Subject: Re: Preventing use of remote method by other sites


Sorry - what? Oh - are you asking if I would know to use that vector?
If I run your site and see a request made via XHR to foo.cfm, and then I try
to run it myself in another tab and get blocked, then yes, I would consider
that. And I'm a Script Kiddy Hacker so I assume the real guys would try it
too.

Shoot - I almost always try the URLs I see in Firebug/Chrome Dev tools. I'm
not trying to be malicious of course. Just poking around.


On Mon, Aug 16, 2010 at 11:34 AM, Andy Matthews li...@commadelimited.com
wrote:

 Yes, but would you know TO do that?


 andy

 -Original Message-
 From: Raymond Camden [mailto:rcam...@gmail.com]
 Sent: Monday, August 16, 2010 11:30 AM
 To: cf-talk
 Subject: Re: Preventing use of remote method by other sites


 Don't forget you can easily set those headers yourself. I could setup 
 cfhttp to use that header and hit your resource.


 On Fri, Aug 13, 2010 at 3:31 PM, Andy Matthews 
 li...@commadelimited.com
 wrote:

 Works perfectly Tony. I simplified the conditional tho'

 cfif StructKeyExists(headers,'X-Requested-With') AND 
 headers['X-Requested-With'] EQ 'XMLHttpRequest'

 /cfif



 



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


RE: image dimensions on mapped drive file

2010-08-16 Thread Andy Matthews

Does ColdFusion have access to that drive? Can you generate a list of files,
and their permissions with cfdirectory for example?


andy 

-Original Message-
From: Matthew Smith [mailto:chedders...@gmail.com] 
Sent: Monday, August 16, 2010 12:31 PM
To: cf-talk
Subject: image dimensions on mapped drive file


I need to get the dimensions of some images.  In my local environment, my
wwwroot is located on a mapped drive at:
\\awesome-pc\inetpub\wwwroot\

It is also mapped on the server as:
z:\wwwroot\

I found a couple of methods to get image dimensions, and am using the one
from this thread:
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:33091

http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:33091 I am
getting:
Can't read input file!

I can go to the image on the server by putting in the path directly, so it
is accessable, but for some reason cf can't see it.  I know there is an
issue with null credentials on network assets, so everything is starting
under a user account.

How can I get this to work?

Passing:
\\awesome-pc\inetpub\wwwroot\domain_com\includes\www_domain_com\dev\images\p
roducts\image.jpg
or
z:\wwwroot\domain_com\includes\www_domain_com\dev\images\products\image.jpg

cffunction name=ImageSize returnType=struct access=public

  cfargument name=FileLoc type=string required=Yes

  cfset jFileIn =
createObject(java,java.io.File).init(ARGUMENTS.FileLoc)

  cfset ImageInfo = StructNew()
  cfset ImageObject =
createObject(java,javax.imageio.ImageIO).read(jFileIn)

  cfset ImageInfo.ImgWidth = ImageObject.getWidth()
  cfset ImageInfo.ImgHeight = ImageObject.getHeight()

  cfreturn ImageInfo

/cffunction

--
Regards,
Matthew Smith




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


RE: Preventing use of remote method by other sites

2010-08-16 Thread Andy Matthews

You're not being a jerk. Those are all good points. I doubt anyone's going
to care to mess with it. Even if they do, the most that will happen is that
one site's usability stats get inflated.


andy

-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com] 
Sent: Monday, August 16, 2010 12:41 PM
To: cf-talk
Subject: Re: Preventing use of remote method by other sites


Which can also be done via CFHTTP as well. ;) Not trying to be a jerk here -
but the fact is, there is no (afaik) 100% way to say that a URL is ajax
only.

On Mon, Aug 16, 2010 at 11:51 AM, Andy Matthews li...@commadelimited.com
wrote:

 Right. I know that. Good point though.

 I suppose I could get our JS guy to also pass in a session id. Then I 
 could compare that with the actual session ID for the user and go from
there.

 -Original Message-
 From: Raymond Camden [mailto:rcam...@gmail.com]
 Sent: Monday, August 16, 2010 11:42 AM
 To: cf-talk
 Subject: Re: Preventing use of remote method by other sites


 Sorry - what? Oh - are you asking if I would know to use that vector?
 If I run your site and see a request made via XHR to foo.cfm, and then 
 I try to run it myself in another tab and get blocked, then yes, I 
 would consider that. And I'm a Script Kiddy Hacker so I assume the 
 real guys would try it too.

 Shoot - I almost always try the URLs I see in Firebug/Chrome Dev 
 tools. I'm not trying to be malicious of course. Just poking around.



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


Preventing use of remote method by other sites

2010-08-13 Thread Andy Matthews

I have a method that I'm exposing remotely. We'll be using AJAX calls to insert 
usability stats about a new application. I'm working through the code when I 
realize that since it's remote access, anyone from any site could post to it 
and skew our results.

I'm wondering what's the best way to prevent access to this URL from any other 
site, or code. My first thought was to compare the current URL, dev1 for 
example, to the URL the request was made from, or perhaps the IP address. But 
I'm not sure how to get that information.

Anyone have ideas?



andy matthews 

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


Preventing use of remote method by other sites

2010-08-13 Thread Andy Matthews

I have a method that I'm exposing remotely. We'll be using AJAX calls to insert 
usability stats about a new application. I'm working through the code when I 
realize that since it's remote access, anyone from any site could post to it 
and skew our results.

I'm wondering what's the best way to prevent access to this URL from any other 
site, or code. My first thought was to compare the current URL, dev1 for 
example, to the URL the request was made from, or perhaps the IP address. But 
I'm not sure how to get that information.

Anyone have ideas?



andy matthews 

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


RE: Preventing use of remote method by other sites

2010-08-13 Thread Andy Matthews

Oooh. That's a good idea. Since we're using it for AJAX, then make it so
that it can ONLY be used as AJAX, which would prevent other sites from using
it because of the cross site scripting.

Great idea Tony, thanks! 

-Original Message-
From: Tony Bentley [mailto:cascadefreehee...@gmail.com] 
Sent: Friday, August 13, 2010 2:55 PM
To: cf-talk
Subject: Re: Preventing use of remote method by other sites


I use a cfc that checks to see if the method being called is from within the
domain, is indeed ajax and that the method is indeed is accessed remotely,
otherwise abort the request. If you are doing cross site requests, pass a
unique key in your form.

Is it ajax?

cffunction name=isAjax access=private returntype=boolean
output=false
!---
all of the user management requests are going to come via ajax
within the domain.
if a request is not from this site and not ajax, abort the request
run this check on any of the remote methods
---
cfscript
requestHeaders = getHTTPRequestData().headers;
if(not StructKeyExists(requestHeaders, X-Requested-With)){
 return false;
}
else if(StructFind(requestHeaders,X-Requested-With) neq
XMLHttpRequest){
return false;
}
else{
return true;
}
/cfscript
/cffunction


Called on init:

cfparam name=url.method default=
cfscript
accessRemote = false;
cfcname = getmetadata(this);
for(i=1;i lte arrayLen(cfcname.FUNCTIONS);i++){
fname = cfcname.FUNCTIONS[i];
if(fname.name eq url.method  fname.access eq remote){
accessRemote = true;
break;
}
}
if(not isAjax() and not accessRemote){
abort();//this is a simple cfabort function for MX
}
/cfscript



On Fri, Aug 13, 2010 at 11:17 AM, Andy Matthews
li...@commadelimited.comwrote:


 I have a method that I'm exposing remotely. We'll be using AJAX calls 
 to insert usability stats about a new application. I'm working through 
 the code when I realize that since it's remote access, anyone from any 
 site could post to it and skew our results.

 I'm wondering what's the best way to prevent access to this URL from 
 any other site, or code. My first thought was to compare the current 
 URL, dev1 for example, to the URL the request was made from, or 
 perhaps the IP address. But I'm not sure how to get that information.

 Anyone have ideas?



 andy matthews

 



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


  1   2   3   4   5   6   7   8   9   10   >