Re: Checking for a duplicate value question

2012-05-03 Thread Cameron Childress
As Andrew says, it's best done in the DB before your data becomes a list. If you can't do that for some reason, convert your list to an array and loop over that. Arrays are much faster than long lists. The longer the list/array, the bigger the performance difference. - Cameron On May 3,

CFINVOKE - Component Location

2012-05-03 Thread Jenny Gavin-Wear
Hi all, I'm trying to work out how to point to the file location of a component using cfinvoke. I am storing all of the component files for my application in one directory which is one step off the web root. Many thanks in advance, Jenny -- I am using the free version of SPAMfighter. We are

locale problem

2012-05-03 Thread Stephen Fisher
I have a corrupt collection and am trying to use the mkvdk utility to repair it. However I am getting an error message that the verity locale is english and my cmd prompt locale is englishx. So I intend to use the chcp command to change the locale of my cmd prompt window. I have tried the

Re: CFINVOKE - Component Location

2012-05-03 Thread Raymond Camden
Can you use a cfmapping? On Thu, May 3, 2012 at 10:43 AM, Jenny Gavin-Wear jenn...@fasttrackonline.co.uk wrote: Hi all, I'm trying to work out how to point to the file location of a component using cfinvoke. I am storing all of the component files for my application in one directory

Re: Checking for a duplicate value question

2012-05-03 Thread Les Mizzell
When getting the information out of the database, us distinct on the field. Only one list is coming from the database, the other is from a completely different source. convert your list to an array and loop over that The small list is the one that will have the operations done to it. The

RE: CFINVOKE - Component Location

2012-05-03 Thread Jenny Gavin-Wear
Hi Ray, Thanks for your reply. Yes I could use a cfmapping, however I'm a bit confused as I thought the cfmappings were for accessing files outside the web root or its sub-directories. I read By default, ColdFusion MX defines a mapping for the web root (/). You can define additional

Re: CFINVOKE - Component Location

2012-05-03 Thread Matt Quackenbush
You'll want to use dot notation. So, using your example of /gallerycomponents/functions.cfc, you'd do the following: cfinvoke component=gallerycomponents.functions method=foo / HTH On Thu, May 3, 2012 at 11:29 AM, Jenny Gavin-Wear jenn...@fasttrackonline.co.uk wrote: Hi Ray, Thanks for

Re: Checking for a duplicate value question

2012-05-03 Thread Christopher Watson
In reading through this thread, it appears as though one of your lists (not clear whether it's the short or long list) is sourced from database, and the other not. But if you've got one list of key column values in a CF List var, then you should be able to query the database to pull out

Re: CFINVOKE - Component Location

2012-05-03 Thread Bobby
Try component=gallerycomponents.functions ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

RE: CFINVOKE - Component Location

2012-05-03 Thread Jenny Gavin-Wear
Thanks Bobby, sorted. -Original Message- From: Bobby [mailto:bo...@acoderslife.com] Sent: 03 May 2012 17:41 To: cf-talk Subject: Re: CFINVOKE - Component Location Try component=gallerycomponents.functions ~~ ~~~| Order

RE: CFINVOKE - Component Location

2012-05-03 Thread Jenny Gavin-Wear
Thanks Matt. -Original Message- From: Matt Quackenbush [mailto:quackfu...@gmail.com] Sent: 03 May 2012 17:36 To: cf-talk Subject: Re: CFINVOKE - Component Location You'll want to use dot notation. So, using your example of /gallerycomponents/functions.cfc, you'd do the following:

Re: CFINVOKE - Component Location

2012-05-03 Thread Raymond Camden
On Thu, May 3, 2012 at 11:29 AM, Jenny Gavin-Wear jenn...@fasttrackonline.co.uk wrote: Then I tried running the cfinvoke as follows, but it appears I have some syntax wrong. cfinvoke component=/gallerycomponents/functions.cfc method=getTags No, you use dot notation for CFCs. Try cfinvoke

Code Review Gig

2012-05-03 Thread Brian Thornton
Hi guys, I have some code going to print (public scrutiny) and wanted to see if anyone was available for hourly code review. This isn't a formal job but something you would be paid for. Should have experience in CFCs, constructors, cfscript, MVC, REST, mime types, ORM and CSRF Thanks

RE: CFINVOKE - Component Location

2012-05-03 Thread Rick Faircloth
Just for clarification... Why would CF begin to use dot notation for cfc's instead of sticking with the familiar ../, etc, syntax? The dot notation has been a pain in my rear on more than one occasion. Rick -Original Message- From: Raymond Camden [mailto:raymondcam...@gmail.com]

Re: CFINVOKE - Component Location

2012-05-03 Thread Matt Quackenbush
CFCs have used dot notation since Day 1 of their existence. The reason is because CFCs (loosely) represent classes, which are grouped in packages. In other languages, like Java - which CF runs on top of, those packages are always denoted in dot notation. For example: java.util.List

Re: CFINVOKE - Component Location

2012-05-03 Thread Matt Quackenbush
Continuing on that thought (hit [send] too soon)... On the other hand, *.cfm templates match up with a standard file, and therefore use the traditional web separator, the slash (/). On Thu, May 3, 2012 at 12:52 PM, Matt Quackenbush quackfu...@gmail.comwrote: CFCs have used dot notation since

Re: CFINVOKE - Component Location

2012-05-03 Thread Christopher Watson
In all my work with CF, I have always housed my CFCs in a dedicated root directory (typically named CFC), and I just set up the path alias in CF Admin, so that all I ever have to use in the component attribute of the cfinvoke tag is the actual name of the component: cfinvoke

Re: CFINVOKE - Component Location

2012-05-03 Thread Jochem van Dieten
On Thu, May 3, 2012 at 7:38 PM, Rick Faircloth wrote: Why would CF begin to use dot notation for cfc's instead of sticking with the familiar ../, etc, syntax? Because it represents the package and the component instead of the directory and the file, i.e. it represents a logical hierarchy

Re: Checking for a duplicate value question

2012-05-03 Thread Cameron Childress
On Thu, May 3, 2012 at 12:10 PM, Les Mizzell lesm...@bellsouth.net wrote: convert your list to an array and loop over that The small list is the one that will have the operations done to it. The large list is the one that I need to search for duplicate values. If the server was running

Re: Checking for a duplicate value question

2012-05-03 Thread .jonah
You could also use a query-of-queries with where biglistitem not in (smalllistitems). On 5/3/12 1:29 PM, Cameron Childress wrote: On Thu, May 3, 2012 at 12:10 PM, Les Mizzelllesm...@bellsouth.net wrote: convert your list to an array and loop over that The small list is the one that

Re: Checking for a duplicate value question

2012-05-03 Thread Andrew Scott
Ever since ColdFusion 6, ColdFusion has always had the feature to do an ArrayFind() http://www.andyscott.id.au/2012/5/3/ColdFusion-and-using-ArrayFind-prior-to-ColdFusion-9 -- Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/108193156965451149543

Re: Checking for a duplicate value question

2012-05-03 Thread Leigh
Ever since ColdFusion 6, ColdFusion has always had the feature to do anArrayFind()   True. Though indexOf() has a few additional nuances over arrayFind. It is both case and data type sensitive. -Leig ~| Order the Adobe