Re: (ot) CKFinder - anyone know about how licensing works?

2010-09-14 Thread Mike Kear

Dan, they've had a heavy workload recently,  and not enough people to
respond to things.  Add to that,  some other people taking annual
leave and they're getting behind in their responses.

I got a response from Wiktor Walc, who heads up the support function
at CKFinder, and he's given me a temporary workaround for my problem,
and he's working with me on developing a long term fix.

I'll send you his email address off list.

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




On Wed, Sep 15, 2010 at 10:41 AM, Dan O'Keefe  wrote:
>
> I have a client having the same issue as far as contacting Fred
> regarding a new purchase, and no response.
>
> Dan
>
>
>
> On Wed, Aug 25, 2010 at 11:45 PM, Mike Kear  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:337038
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 Jacob Munson

>
> A lot of people have unsubscribed from cf-talk because it got too
> 'noisy'. I've unsubscribed a couple of times over the last half dozen
> years. It's manageable nowadays which is nice (but I suspect a lot of
> folks don't know it's gotten quieter and won't think of coming back).
>

This describes me perfectly.  I have not been on CF-Talk for the last few
years because I got tired of all the OT posts and crap.  But the other day I
was looking at the site and noticed that the volume is WAY down from where
it used to be.  And the topics seem a lot more CF relevant than they used to
be.  So I subscribed again.  :)


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


Re: WHERE Left(str,5) = 'string' VS WHERE str LIKE 'string%'

2010-09-14 Thread Won Lee

Interesting.  Thanks for the results.  There probably is another route we
could test.  We could right a function in C, compile it , and add it to
mysql.  I've never done it myself but I did read that it may make your query
faster.  I think I also I read that it might slow it down.

BTW according to the mysql explain, the real reason why the LIKE wins in
this case is when you start to join other tables.  In my example the DB
server will execute against every row with the LEFT statement while the
execution plan for the LIKE will try execute against 40% of the rows in the
db with another table.


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


RE: An instance of CF 7, CF 8, CF 9 on single pc

2010-09-14 Thread Andrew Scott

Not surprised it struggles with 2.5g of ram :-)

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


> -Original Message-
> From: Russ Michaels [mailto:r...@michaels.me.uk]
> Sent: Wednesday, 15 September 2010 11:10 AM
> To: cf-talk
> Subject: Re: An instance of CF 7, CF 8, CF 9 on single pc
> 
> 
> that's the easiest option as long your machine has the power and diskspace
> and probably better even to have just 1 VM to save cluttering up your
> desktop pc with all those server apps auto starting and consuming your
> resources and slowing it down.
> If you have a single CPU this could be a bit slow though, I would suggest
a
> dual core as minimum.
> 
> I run windows 7 64bit on my desktop with 8gb RAM and a quad core CPU, so I
> don't really have any issues with running everything at the same time in
> here, so no need for a VM, although I do keep an unbuntu VM to hand in
> case I need it.
> 
> On my laptop I have windows 7, a core2 mobile cpu and 2.5 gb ram. It
> struggles a bit running a VM (prob due to the mobile cpu) and everything
> runs fairly slow, so I prefer to just run Multiple instances of CF, railo,
MSSQL,
> MySQL etc in a STOPPED state and just start the services I need as and
when I
> need them. I do this with a batch file for each setup.
> 


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


Re: WHERE Left(str,5) = 'string' VS WHERE str LIKE 'string%'

2010-09-14 Thread rex

Over 100,000 queries this is what I got (in ms):
LIKELEFT
MyISAM 16,215.60   16,069.00
InnoDB 16,168.60   15,987.80
MSSQL Server   28,268.60   26,775.20
Won's Test   1,184.401,168.80
INDEXED MyISAM 16,256.20   16,303.20
INDEXED InnoDB 16,112.40   16,119.00
INDEXED MSSQL Server   24,509.40   25,337.40
INDEXED Won's Test   1,156.601,159.00


LEFT() wins for unindexed columns, LIKE wins for indexed columns.

The answer is "it depends", but eventually the answer becomes "it won't 
matter".  These days, the sql engine/optimizer is smart enough to decide 
how to approach the problem.

"It depends" on certain things:
how wide your column is
if the column is indexed
how wide the search string is
how many records returned
how many records being searched
datatype of the column
etc. etc.

Then eventually "it won't matter", since the results would only be 
nanoseconds apart (if you are comparing exactly the same columns).  This 
is over 100K queries and they're only ms apart.  I'd love to see other 
people's test results though!

Won Lee wrote:
> I ran a quick test
>
> CREATE TABLE HoF (
>  ID INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
>  LastName VARCHAR(100)
>) ENGINE = InnoDB;
>
>
>   


~|
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:337034
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 rex

Yea, I dont know if you saw my other post.  In your case, my answer is 
totally wrong.  A lot of us thought that your function was expecting two 
arguments: name and likes, but it turns out you were taking in one 
argument of type struct.  Before CF9, you can't call a function and pass 
an implicit struct.

Michael Grant wrote:
> There's nothing wrong with it. However I wasn't asking how to write a
> function. My post was asking if I was wrong about passing in args as a short
> handed struct. And apparently I'm wrong with regards to cf<9.
>
> On Tue, Sep 14, 2010 at 8:06 PM, rex  wrote:
>
>   
>> why use a struct?  what's wrong with
>>
>>myFunction(name="mike", likes="beer,soccer,women");
>>
>> if you want it shorter, then don't name the arguments, just do name and
>> likes in order:
>>
>>myFunction("mike", "beer,soccer,women");
>>
>>
>> Michael Grant wrote:
>> 
>>> Calling a function from within the same component. For some reason I was
>>> sure that you could do this this way:
>>>
>>> 
>>>
>>> myFunction( {name="mike", likes="beer,soccer,women"} );
>>>
>>> 
>>>
>>> Am I crazy?
>>>
>>>
>>>
>>>   
>> 
>
> 

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


Re: An instance of CF 7, CF 8, CF 9 on single pc

2010-09-14 Thread Mark Mandel

All good points ;o)

My laptop is also a quad core, 8gb of ram... so yeah, it handles it nicely.

When running it on 65W mode on a plane... it tends to get... sluggish with
even 1 VM open.

Mark

On Wed, Sep 15, 2010 at 11:09 AM, Russ Michaels  wrote:

>
> that's the easiest option as long your machine has the power and diskspace
> and probably better even to have just 1 VM to save cluttering up your
> desktop pc with all those server apps auto starting and consuming your
> resources and slowing it down.
> If you have a single CPU this could be a bit slow though, I would suggest a
> dual core as minimum.
>
> I run windows 7 64bit on my desktop with 8gb RAM and a quad core CPU, so I
> don't really have any issues with running everything at the same time in
> here, so no need for a VM, although I do keep an unbuntu VM to hand in case
> I need it.
>
> On my laptop I have windows 7, a core2 mobile cpu and 2.5 gb ram. It
> struggles a bit running a VM (prob due to the mobile cpu) and everything
> runs fairly slow, so I prefer to just run Multiple instances of CF, railo,
> MSSQL, MySQL etc in a STOPPED state and just start the services I need as
> and when I need them. I do this with a batch file for each setup.
>
> e.g.
> CF7_mysql.bat will just start cf7 and mysql
> cf8_MSSQL.bat will just start cf8 and MSSQL
>
> you get the idea.
>
>
> On Wed, Sep 15, 2010 at 1:07 AM, Mark Mandel 
> wrote:
>
> >
> > I've always liked using Virtual Machines:
> >
> > http://www.compoundtheory.com/?action=displayPost&ID=334
> >
> > Mark
> >
> > On Wed, Sep 15, 2010 at 5:00 AM, Russ Michaels 
> > wrote:
> >
> > >
> > > the only problem with this is that cf7 and cf8 may not work correctly
> if
> > at
> > > all with the version of java installed with cf9.
> > > In which case, you will need to install an older version of java and
> > create
> > > a separate jvm.config for each instance.
> > > this article will help you with that.
> > >
> > >
> >
> http://www.n8williams.com/devblog/coldfusion/multiple-coldfusion-instances-with-separate-jvm-configs-as-windows-services
> > >
> > >
> > > On Tue, Sep 14, 2010 at 6:43 PM, Jacob Munson 
> > wrote:
> > >
> > > >
> > > > You will want to install CF9 first to make sure you get the most
> > current
> > > > JVM.  Install the Multi-server version of CF.  In your new CF 9
> Admin,
> > > add
> > > > a
> > > > new CF9 instance in the Instance Manager.  Then install CF8 and CF7
> as
> > > J2EE
> > > > EARs.  Finally, you can add the CF8/CF7 EARs as instances in your CF9
> > > > Instance Manager.  If you wish, you can add the instances to your web
> > > > server
> > > > to avoid having to use the ported sites.
> > > >
> > > > On Tue, Sep 14, 2010 at 11:22 AM, Don  wrote:
> > > >
> > > > >
> > > > > What would be the best way to do this?
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
> 

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


Re: An instance of CF 7, CF 8, CF 9 on single pc

2010-09-14 Thread Russ Michaels

that's the easiest option as long your machine has the power and diskspace
and probably better even to have just 1 VM to save cluttering up your
desktop pc with all those server apps auto starting and consuming your
resources and slowing it down.
If you have a single CPU this could be a bit slow though, I would suggest a
dual core as minimum.

I run windows 7 64bit on my desktop with 8gb RAM and a quad core CPU, so I
don't really have any issues with running everything at the same time in
here, so no need for a VM, although I do keep an unbuntu VM to hand in case
I need it.

On my laptop I have windows 7, a core2 mobile cpu and 2.5 gb ram. It
struggles a bit running a VM (prob due to the mobile cpu) and everything
runs fairly slow, so I prefer to just run Multiple instances of CF, railo,
MSSQL, MySQL etc in a STOPPED state and just start the services I need as
and when I need them. I do this with a batch file for each setup.

e.g.
CF7_mysql.bat will just start cf7 and mysql
cf8_MSSQL.bat will just start cf8 and MSSQL

you get the idea.


On Wed, Sep 15, 2010 at 1:07 AM, Mark Mandel  wrote:

>
> I've always liked using Virtual Machines:
>
> http://www.compoundtheory.com/?action=displayPost&ID=334
>
> Mark
>
> On Wed, Sep 15, 2010 at 5:00 AM, Russ Michaels 
> wrote:
>
> >
> > the only problem with this is that cf7 and cf8 may not work correctly if
> at
> > all with the version of java installed with cf9.
> > In which case, you will need to install an older version of java and
> create
> > a separate jvm.config for each instance.
> > this article will help you with that.
> >
> >
> http://www.n8williams.com/devblog/coldfusion/multiple-coldfusion-instances-with-separate-jvm-configs-as-windows-services
> >
> >
> > On Tue, Sep 14, 2010 at 6:43 PM, Jacob Munson 
> wrote:
> >
> > >
> > > You will want to install CF9 first to make sure you get the most
> current
> > > JVM.  Install the Multi-server version of CF.  In your new CF 9 Admin,
> > add
> > > a
> > > new CF9 instance in the Instance Manager.  Then install CF8 and CF7 as
> > J2EE
> > > EARs.  Finally, you can add the CF8/CF7 EARs as instances in your CF9
> > > Instance Manager.  If you wish, you can add the instances to your web
> > > server
> > > to avoid having to use the ported sites.
> > >
> > > On Tue, Sep 14, 2010 at 11:22 AM, Don  wrote:
> > >
> > > >
> > > > What would be the best way to do this?
> > > >
> > >
> > >
> > >
> >
> >
>
> 

~|
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:337031
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 Sean Corfield

On Tue, Sep 14, 2010 at 1:25 AM, Richard White  wrote:
> i cant help but notice these days it has slowed down, and just wondering what 
> could be the cause of this.
>
> Is there an alternative forum that people are now using? could it be that 
> ColdFusion is getting easier to understand? or could it be that people are 
> using alternative technologies (hopefully not!)

A lot of people have unsubscribed from cf-talk because it got too
'noisy'. I've unsubscribed a couple of times over the last half dozen
years. It's manageable nowadays which is nice (but I suspect a lot of
folks don't know it's gotten quieter and won't think of coming back).

In addition, a lot of CFers have moved to more specialized groups for
frameworks, CFC-related stuff, ORM-related stuff and so on. Almost all
of those are using Google Groups...
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

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


Re: (ot) CKFinder - anyone know about how licensing works?

2010-09-14 Thread Dan O'Keefe

I have a client having the same issue as far as contacting Fred
regarding a new purchase, and no response.

Dan



On Wed, Aug 25, 2010 at 11:45 PM, Mike Kear  wrote:
>
> G'day Gerald,
>
> I think you might be right.   There was nothing that I saw telling me
> that BEFORE i made the sale, and now I cant get anyone at CKFinder to
> answer my emails.  I have some issues connecting it up where the
> documentation is sparse to say the least,  and after 4 days they wont
> answer my email asking them to confirm what you said.     I need to
> see if they're willing to change the licence details to allow me to
> put the CKFinder where I need  it, and I need to have another tech
> question answered.
>
> But they haven't responded in any way after 3 attempts to contact them.
>
> So perhaps my options are running out and I might well end up doing
> what I usually do - making my own.  I could call it MKFinder.  The
> only bit I'm not sure how to do right now is integrating with
> FCKEditor or CKEditor and passing the image details back to the
> editor.  The rest I can do with ColdFusion.
>
>
> Cheers
> Mike Kear
> Windsor, NSW, Australia
> Adobe Certified Advanced ColdFusion Developer
> AFP Webworks
> http://afpwebworks.com
> ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month
>
>
>
> On Wed, Aug 25, 2010 at 11:38 PM, Gerald Guido  wrote:
>>
>> ***>>* install it into a subdomain
>> *
>> I think you are SOL** :(
>> *
>> *The *license states*:
>>
>> **Web Site*: you may integrate CKFinder in one web site (the "Web Site").
>> The Web Site URL must be specified at the moment of the purchase. The
>> license will not be valid for sub-domains of the specified Web Site URL.
>> ***
>> *http://ckfinder.com/license
>>
>> G!
>>
>
> 

~|
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:337029
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 Michael Grant

There's nothing wrong with it. However I wasn't asking how to write a
function. My post was asking if I was wrong about passing in args as a short
handed struct. And apparently I'm wrong with regards to cf<9.

On Tue, Sep 14, 2010 at 8:06 PM, rex  wrote:

>
> why use a struct?  what's wrong with
>
>myFunction(name="mike", likes="beer,soccer,women");
>
> if you want it shorter, then don't name the arguments, just do name and
> likes in order:
>
>myFunction("mike", "beer,soccer,women");
>
>
> Michael Grant wrote:
> > Calling a function from within the same component. For some reason I was
> > sure that you could do this this way:
> >
> > 
> >
> > myFunction( {name="mike", likes="beer,soccer,women"} );
> >
> > 
> >
> > Am I crazy?
> >
> >
> >
>
> 

~|
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:337028
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 rex

oh, wow, I got confused there...

This guy wasn't doing







So here, there's no need for argumentCollection, he can just do 
myFunction("mike", "beer,soccer,women")

Turns out, he was doing this:






so this is a problem.  In CF8.0.1, you cannot pass in an implicit struct 
when calling a function.  In CF8.0.0 you cannot even do an implicit 
struct inside an implicit struct:



There's the rub!

Andy Matthews wrote:
> 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
>
> 
> args = {name="mike", likes="beer,soccer,women"}; myFunction(
> argumentCollection=args ); 
>
>
>
>   
>
>
>
> 

~|
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:337027
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 rex

Maybe I'm confused, sorry, but isn't this the same as 
myFunction(name="mike", likes="beer,soccer,women")?

Leigh wrote:
> I do not remember that being allowed in CF8. But you could assign the 
> structure to a variable. Then use argumentCollection
>
> 
> args = {name="mike", likes="beer,soccer,women"};
> myFunction( argumentCollection=args );
> 
>
>
>
>   

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


Re: An instance of CF 7, CF 8, CF 9 on single pc

2010-09-14 Thread Mark Mandel

I've always liked using Virtual Machines:

http://www.compoundtheory.com/?action=displayPost&ID=334

Mark

On Wed, Sep 15, 2010 at 5:00 AM, Russ Michaels  wrote:

>
> the only problem with this is that cf7 and cf8 may not work correctly if at
> all with the version of java installed with cf9.
> In which case, you will need to install an older version of java and create
> a separate jvm.config for each instance.
> this article will help you with that.
>
> http://www.n8williams.com/devblog/coldfusion/multiple-coldfusion-instances-with-separate-jvm-configs-as-windows-services
>
>
> On Tue, Sep 14, 2010 at 6:43 PM, Jacob Munson  wrote:
>
> >
> > You will want to install CF9 first to make sure you get the most current
> > JVM.  Install the Multi-server version of CF.  In your new CF 9 Admin,
> add
> > a
> > new CF9 instance in the Instance Manager.  Then install CF8 and CF7 as
> J2EE
> > EARs.  Finally, you can add the CF8/CF7 EARs as instances in your CF9
> > Instance Manager.  If you wish, you can add the instances to your web
> > server
> > to avoid having to use the ported sites.
> >
> > On Tue, Sep 14, 2010 at 11:22 AM, Don  wrote:
> >
> > >
> > > What would be the best way to do this?
> > >
> >
> >
> >
>
> 

~|
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:337025
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 rex

why use a struct?  what's wrong with

myFunction(name="mike", likes="beer,soccer,women");

if you want it shorter, then don't name the arguments, just do name and 
likes in order:

myFunction("mike", "beer,soccer,women");


Michael Grant wrote:
> Calling a function from within the same component. For some reason I was
> sure that you could do this this way:
>
> 
>
> myFunction( {name="mike", likes="beer,soccer,women"} );
>
> 
>
> Am I crazy?
>
>
> 

~|
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:337024
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 Michael Grant

Yeah, that's not really applicable to what I was saying.

On Tue, Sep 14, 2010 at 5:04 PM, Tony Bentley
wrote:

>
> 
> myFunction("mike", "beer,soccer,women" );
>
> //either
> myFunction(name,likes){
> //reference by arguments scope
> }
> 
>
> 
>
> 
> 
> 
> 
>
>
> 

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


Re: ImageUtils.cfc and CFImage

2010-09-14 Thread Leigh

> I have been *sorta* following this and If I understand the
> problem correctly you might want to to look at the Alagad 
> imagecomponent. 

Yep. You are understanding it correctly. It is _essentially_ doing the same 
thing as GetTextDimensions(). But it uses TextLayout (my personal preference) 
instead of FontMetrics. It also returns a little more detail: "ascent", 
"decent" and "leading". Though those values could be added to 
GetTextDimensions().

Out of curiosity, I tried getSimpleStringMetrics() with "BakerSignet BT Roman" 
and it actually returns the same results as ImageUtils.cfc.  At least it does 
once you make the code changes I mentioned in my previous response ;-)


Image.cfc
=
ASCENT 23  
DESCENT 8  
HEIGHT 31  
LEADING 0  
WIDTH 193  

ImageUtils.cfc
=
HEIGHT 31  
WIDTH 193  



  

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


RE: ImageUtils.cfc and CFImage

2010-09-14 Thread Leigh

Well, I think that _is_ why you are not getting the right results ;) ie The 
styles are not being applied.




  

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


RE: ImageUtils.cfc and CFImage

2010-09-14 Thread Eric Roberts

I will check that out...thanks!

-Original Message-
From: Gerald Guido [mailto:gerald.gu...@gmail.com] 
Sent: Tuesday, September 14, 2010 4:39 PM
To: cf-talk
Subject: Re: ImageUtils.cfc and CFImage


I have been *sorta* following this and If I understand the problem correctly
you might want to to look at the Alagad imagecomponent. It is based on
java.awt.

http://imagecomponent.riaforge.org/

It looks like it is giving me accurate measurements based on the strings I
am feeding it, be it all caps, lower case  or mixed case.

I used this to get the width:





















testmetrics for lower case returns this:

struct
ASCENT 15
DESCENT 3
HEIGHT 18
LEADING 0
WIDTH 150


ALL CAPS GAVE ME

struct
ASCENT 15
DESCENT 3
HEIGHT 18
LEADING 0
WIDTH 198


HTH

G!

On Tue, Sep 14, 2010 at 3:11 PM, Leigh  wrote:

>
> >> You could try something like this for the section that sets the style
>
> .. By that I meant modify the GetTextDimensions() function.
>
>
>
>
>
> 



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


RE: ImageUtils.cfc and CFImage

2010-09-14 Thread Eric Roberts

I am currently not using that until I figure out why I am not getting the
desired results then I will update getTextDimensions.  Until then it is
straight code ;-)

-Original Message-
From: Leigh [mailto:cfsearch...@yahoo.com] 
Sent: Tuesday, September 14, 2010 3:11 PM
To: cf-talk
Subject: RE: ImageUtils.cfc and CFImage


>> You could try something like this for the section that sets the style

.. By that I meant modify the GetTextDimensions() function. 



  



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


RE: ImageUtils.cfc and CFImage

2010-09-14 Thread Eric Roberts

I'll post it in the morning...I left my thumbdrive at work, so I don't have
my code with me.

-Original Message-
From: Leigh [mailto:cfsearch...@yahoo.com] 
Sent: Tuesday, September 14, 2010 2:56 PM
To: cf-talk
Subject: RE: ImageUtils.cfc and CFImage


>> We tried your code and the text you used worked great, but when 
>> we substituted other text, the image was not centered in the bounding >>
box and the bounding box was too small.

Yes, I am not all surprised. I think I mentioned it in the notes, but ...
since the focus of the entry was measurement, I doubt I spent much time on
dynamic positioning the bounding boxes. That is probably what you are
seeing. But if you check the actual dimensions returned, they should be
accurate.  At least within pixel or two ..

> How would you code an if or case statement
> properly to use the "javaStyle" for plain, bold, and
> italic?  


You could try something like this for the section that sets the style
 
( white space and comments removed for brevity...)

   other code 

  
  
 

   


   


   



   

 
  
 
  

  ... rest of code .

   



> we have the issue of the vertical centering
> not being right.  

Well for vertical centering you may need to take into account the text
"baseline".  Can you post an small example of what you are using? ie
Something that demonstrates the wrong results?


-Leigh






~|
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:337018
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 Tony Bentley


myFunction("mike", "beer,soccer,women" );

//either
myFunction(name,likes){
//reference by arguments scope
}










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


Re: ImageUtils.cfc and CFImage

2010-09-14 Thread Gerald Guido

I have been *sorta* following this and If I understand the problem correctly
you might want to to look at the Alagad imagecomponent. It is based on
java.awt.

http://imagecomponent.riaforge.org/

It looks like it is giving me accurate measurements based on the strings I
am feeding it, be it all caps, lower case  or mixed case.

I used this to get the width:





















testmetrics for lower case returns this:

struct
ASCENT 15
DESCENT 3
HEIGHT 18
LEADING 0
WIDTH 150


ALL CAPS GAVE ME

struct
ASCENT 15
DESCENT 3
HEIGHT 18
LEADING 0
WIDTH 198


HTH

G!

On Tue, Sep 14, 2010 at 3:11 PM, Leigh  wrote:

>
> >> You could try something like this for the section that sets the style
>
> .. By that I meant modify the GetTextDimensions() function.
>
>
>
>
>
> 

~|
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:337016
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


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



  



~|
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: CF8+: Short Hand notation for calling a function within a component.

2010-09-14 Thread Leigh

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


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




  

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


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

2010-09-14 Thread Michael Grant

Calling a function from within the same component. For some reason I was
sure that you could do this this way:



myFunction( {name="mike", likes="beer,soccer,women"} );



Am I crazy?


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


RE: ImageUtils.cfc and CFImage

2010-09-14 Thread Leigh

>> You could try something like this for the section that sets the style

.. By that I meant modify the GetTextDimensions() function. 



  

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


Re: An instance of CF 7, CF 8, CF 9 on single pc

2010-09-14 Thread Russ Michaels

the only problem with this is that cf7 and cf8 may not work correctly if at
all with the version of java installed with cf9.
In which case, you will need to install an older version of java and create
a separate jvm.config for each instance.
this article will help you with that.
http://www.n8williams.com/devblog/coldfusion/multiple-coldfusion-instances-with-separate-jvm-configs-as-windows-services


On Tue, Sep 14, 2010 at 6:43 PM, Jacob Munson  wrote:

>
> You will want to install CF9 first to make sure you get the most current
> JVM.  Install the Multi-server version of CF.  In your new CF 9 Admin, add
> a
> new CF9 instance in the Instance Manager.  Then install CF8 and CF7 as J2EE
> EARs.  Finally, you can add the CF8/CF7 EARs as instances in your CF9
> Instance Manager.  If you wish, you can add the instances to your web
> server
> to avoid having to use the ported sites.
>
> On Tue, Sep 14, 2010 at 11:22 AM, Don  wrote:
>
> >
> > What would be the best way to do this?
> >
>
>
> 

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


Re: ImageUtils.cfc and CFImage

2010-09-14 Thread Leigh

> Btw - if you guys find anything, please please please let
> Ben and I know if we can update our code.

Absolutely.


  

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


RE: ImageUtils.cfc and CFImage

2010-09-14 Thread Leigh

>> We tried your code and the text you used worked great, but when 
>> we substituted other text, the image was not centered in the bounding >> box 
>> and the bounding box was too small.

Yes, I am not all surprised. I think I mentioned it in the notes, but ...
since the focus of the entry was measurement, I doubt I spent much time on 
dynamic positioning the bounding boxes. That is probably what you are seeing. 
But if you check the actual dimensions returned, they should be accurate.  At 
least within pixel or two ..

> How would you code an if or case statement
> properly to use the "javaStyle" for plain, bold, and
> italic?  


You could try something like this for the section that sets the style
 
( white space and comments removed for brevity...)

   other code 

  
  
 

   


   


   



   

 
  
 
  

  ... rest of code .

   



> we have the issue of the vertical centering
> not being right.  

Well for vertical centering you may need to take into account the text 
"baseline".  Can you post an small example of what you are using? ie Something 
that demonstrates the wrong results?


-Leigh




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


RE: (ot) IIS 7 renders htm but not html

2010-09-14 Thread Nathan Chen

Never mind, I found the problem. It was the permission under Handler
Mappings that wasn't set to script. Thank you.

Nathan Chen

-Original Message-
From: Nathan Chen [mailto:nathan.c...@cu.edu] 
Sent: Tuesday, September 14, 2010 11:24 AM
To: cf-talk
Subject: (ot) IIS 7 renders htm but not html


All:

 

Sorry for the OT but I have been researching this very simple issue: I
upgraded from IIS 6 with Windows 2003 to IIS 7on Windows 2008 and the
new IIS 7 renders cfm, asp, htm files, but not html files. I went to the
places on IIS 7 I know to make sure .html extension, MIME type, handler
mapping all associated with html.  But it just won't work. 

 

What else do I need to look?

 

Nathan Chen





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


RE: ImageUtils.cfc and CFImage

2010-09-14 Thread Eric Roberts

We tried your code and the text you used worked great, but when we
substituted other text, the image was not centered in the bounding box and
the bounding box was too small.  I think you may be right about the style
not being applied properly.  How would you code an if or case statement
properly to use the "javaStyle" for plain, bold, and italic?  I tried using
Font.Bold, etc,  and it didn't seem to like that (threw an error).

Using the code from Ben's original code on your site, we were able to get
horizontal centering, but now we have the issue of the vertical centering
not being right.  If I do not have any modifier on the offset calculation,
font size of 30 works great.  If I drop it to 16, it is on the bottom of the
box.  If I subtract 5 from the calculation, it is centered.  Add to that not
all fonts use the same modified at the same font size (for instance, Times
New Roman at 16 is centered, but Copperplate Gothic is off a bit and I have
to use a mod of -6 (might have been -4...not in front of my code right now).
Any ideas on how to mathematically account for this or if there is another
function I can use to accommodate this variance?

Eric

-Original Message-
From: Leigh [mailto:cfsearch...@yahoo.com] 
Sent: Tuesday, September 14, 2010 8:46 AM
To: cf-talk
Subject: RE: ImageUtils.cfc and CFImage


Yes, that is my entry. I found the measurements are not always pixel perfect
with every font. But in my experience TextLayout is a little more accurate
with certain styles and characters. Keep in mind the two methods return
different areas. For example, the one used by ImageUtils.cfc includes the
"leading" area, whereas the TextLayout bounds does not. So it is not a
straight substitution ..

>> With text layout you have to further
>> differentiate bold and
>> italics as a BitOr operation...

Well, since both use java.awt.Font objects, that is required with either
method. That is what seemed a little off to me about GetTextDimensions(). I
only ran a few tests, but it seemed to return the same size no matter what
style was used. When I used the methods described in the entry however, I
got a different width. 

I am not sure if this is the same font you are using, with the settings
below, GetTextDimensions() returned h=31 and w=175 versus roughly h=31 and
w=193 using the two (2) methods in the entry. Using "plain" returns the same
h=31 and w=175.  So my guess is maybe the font style is not being applied
properly.






-Leigh



  



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


Re: An instance of CF 7, CF 8, CF 9 on single pc

2010-09-14 Thread Jacob Munson

You will want to install CF9 first to make sure you get the most current
JVM.  Install the Multi-server version of CF.  In your new CF 9 Admin, add a
new CF9 instance in the Instance Manager.  Then install CF8 and CF7 as J2EE
EARs.  Finally, you can add the CF8/CF7 EARs as instances in your CF9
Instance Manager.  If you wish, you can add the instances to your web server
to avoid having to use the ported sites.

On Tue, Sep 14, 2010 at 11:22 AM, Don  wrote:

>
> What would be the best way to do this?
>


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


Re: Removing new line from CSV?

2010-09-14 Thread Michael Grant

No need for the extraneous pound signs.




On Tue, Sep 14, 2010 at 1:26 PM, Phillip Duba  wrote:

>
> Try Chr(10) also like:
>
> 
>
> I just had to do that with a message digest that wasn't being verified
> correctly,
>
> Phil
>
> On Tue, Sep 14, 2010 at 1:17 PM, Phillip Vector
> wrote:
>
> >
> > I have the following data...
> >
> > bb0a0933-85d4-44be-a72c-25aa759c603f,3782049,DirectMail,63933-8188,The
> > form ProgramForms has been rejected because of the following reason:
> > bb0a0933-85d4-44be-a72c-25aa759c603f,3782049,DirectMail,63933-8188,"The
> > form (Application Form) has been rejected because of the following
> > reason: 0002 -Missing proof of program participation
> > 1023 -SSN not provided"
> > 70d4eeca-047d-42e5-8648-25abe1579c96,3784291,DirectMail,07055-2931,
> >
> > The issue I have is that on the second record (ID:
> > bb0a0933-85d4-44be-a72c-25aa759c603f), they use 2 lines when there is
> > more then one reason why the app was rejected. I suspect that they are
> > using CTRL-Return or some such to put it in.
> >
> > The question is.. How do I remove it and make it one line again with a
> > cfreplace command? I use commands like
> >
> > 
> >
> > to basically scrub the data. So how would I do it for a situation like
> > this? When I try
> >
> > 
> >
> > It doesn't remove it..
> >
> >
>
> 

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


Re: Removing new line from CSV?

2010-09-14 Thread Phillip Duba

Try Chr(10) also like:



I just had to do that with a message digest that wasn't being verified
correctly,

Phil

On Tue, Sep 14, 2010 at 1:17 PM, Phillip Vector
wrote:

>
> I have the following data...
>
> bb0a0933-85d4-44be-a72c-25aa759c603f,3782049,DirectMail,63933-8188,The
> form ProgramForms has been rejected because of the following reason:
> bb0a0933-85d4-44be-a72c-25aa759c603f,3782049,DirectMail,63933-8188,"The
> form (Application Form) has been rejected because of the following
> reason: 0002 -Missing proof of program participation
> 1023 -SSN not provided"
> 70d4eeca-047d-42e5-8648-25abe1579c96,3784291,DirectMail,07055-2931,
>
> The issue I have is that on the second record (ID:
> bb0a0933-85d4-44be-a72c-25aa759c603f), they use 2 lines when there is
> more then one reason why the app was rejected. I suspect that they are
> using CTRL-Return or some such to put it in.
>
> The question is.. How do I remove it and make it one line again with a
> cfreplace command? I use commands like
>
> 
>
> to basically scrub the data. So how would I do it for a situation like
> this? When I try
>
> 
>
> It doesn't remove it..
>
> 

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


Re: Removing new line from CSV?

2010-09-14 Thread Jacob Munson

In Windows a line feed is actually #chr(10)##chr(13)#.  However, if you
remove those you will probably remove ALL line feeds in your file instead of
just the double line feed that is causing you problems.  This can be tricky,
but you will probably want to look for #chr(10)##chr(13)##chr(10)##chr(13)#,
or something like that.  Line feeds can be a real pain in the butt because
different software will give you different line feed combinations.

Sent with my Android phone

On Sep 14, 2010 11:19 AM, "Phillip Vector" 
wrote:
>
> I have the following data...
>
> bb0a0933-85d4-44be-a72c-25aa759c603f,3782049,DirectMail,63933-8188,The
> form ProgramForms has been rejected because of the following reason:
> bb0a0933-85d4-44be-a72c-25aa759c603f,3782049,DirectMail,63933-8188,"The
> form (Application Form) has been rejected because of the following
> reason: 0002 -Missing proof of program participation
> 1023 -SSN not provided"
> 70d4eeca-047d-42e5-8648-25abe1579c96,3784291,DirectMail,07055-2931,
>
> The issue I have is that on the second record (ID:
> bb0a0933-85d4-44be-a72c-25aa759c603f), they use 2 lines when there is
> more then one reason why the app was rejected. I suspect that they are
> using CTRL-Return or some such to put it in.
>
> The question is.. How do I remove it and make it one line again with a
> cfreplace command? I use commands like
>
> 
>
> to basically scrub the data. So how would I do it for a situation like
> this? When I try
>
> 
>
> It doesn't remove it..
>
> 

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


An instance of CF 7, CF 8, CF 9 on single pc

2010-09-14 Thread Don

What would be the best way to do this? 

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


(ot) IIS 7 renders htm but not html

2010-09-14 Thread Nathan Chen

All:

 

Sorry for the OT but I have been researching this very simple issue: I
upgraded from IIS 6 with Windows 2003 to IIS 7on Windows 2008 and the
new IIS 7 renders cfm, asp, htm files, but not html files. I went to the
places on IIS 7 I know to make sure .html extension, MIME type, handler
mapping all associated with html.  But it just won't work. 

 

What else do I need to look?

 

Nathan Chen



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


Removing new line from CSV?

2010-09-14 Thread Phillip Vector

I have the following data...

bb0a0933-85d4-44be-a72c-25aa759c603f,3782049,DirectMail,63933-8188,The
form ProgramForms has been rejected because of the following reason:
bb0a0933-85d4-44be-a72c-25aa759c603f,3782049,DirectMail,63933-8188,"The
form (Application Form) has been rejected because of the following
reason: 0002 -Missing proof of program participation
1023 -SSN not provided"
70d4eeca-047d-42e5-8648-25abe1579c96,3784291,DirectMail,07055-2931,

The issue I have is that on the second record (ID:
bb0a0933-85d4-44be-a72c-25aa759c603f), they use 2 lines when there is
more then one reason why the app was rejected. I suspect that they are
using CTRL-Return or some such to put it in.

The question is.. How do I remove it and make it one line again with a
cfreplace command? I use commands like



to basically scrub the data. So how would I do it for a situation like
this? When I try



It doesn't remove it..

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


RE: Need A jQuery Guru's Help

2010-09-14 Thread Che Vilnonis

Thanks Tony!
I tweaked your snippet and everything now works. 

-Original Message-
From: Tony Bentley [mailto:cascadefreehee...@gmail.com] 
Sent: Tuesday, September 14, 2010 12:36 PM
To: cf-talk
Subject: Re: Need A jQuery Guru's Help




$(document).ready(function(){showHide()});

$(document).ready(function(){showHide(true)});






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


Re: Need A jQuery Guru's Help

2010-09-14 Thread Tony Bentley



$(document).ready(function(){showHide()});

$(document).ready(function(){showHide(true)});




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


Need A jQuery Guru's Help

2010-09-14 Thread Che Vilnonis

I have a form that has some form elements that are disabled by default.
There is a radio button ("sameasbilling" -- default value is 'true') that
when checked will enable the disabled elements.

Here is my problem, when the form is submitted it is validated. If an error
occurs, the app redirects back to the form. Everytime I redirect, all form
elements are disabled eventhough the value of the radio button
("sameasbilling") may or may not be have a value of 'false'.

Here is a simplified version of the form: http://asitv.com/_test.cfm

Can anyone take a peek at this page and help me resolve this?

Thanks, Che



~|
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:336997
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 Russ Michaels

also easycfm.com and stackoverflow.com


-- 

--
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:336996
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: ImageUtils.cfc and CFImage

2010-09-14 Thread Leigh

Yes, that is my entry. I found the measurements are not always pixel perfect 
with every font. But in my experience TextLayout is a little more accurate with 
certain styles and characters. Keep in mind the two methods return different 
areas. For example, the one used by ImageUtils.cfc includes the "leading" area, 
whereas the TextLayout bounds does not. So it is not a straight substitution ..

>> With text layout you have to further
>> differentiate bold and
>> italics as a BitOr operation...

Well, since both use java.awt.Font objects, that is required with either 
method. That is what seemed a little off to me about GetTextDimensions(). I 
only ran a few tests, but it seemed to return the same size no matter what 
style was used. When I used the methods described in the entry however, I got a 
different width. 

I am not sure if this is the same font you are using, with the settings below, 
GetTextDimensions() returned h=31 and w=175 versus roughly h=31 and w=193 using 
the two (2) methods in the entry. Using "plain" returns the same h=31 and 
w=175.  So my guess is maybe the font style is not being applied properly.






-Leigh



  

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


RE: Two selects query

2010-09-14 Thread Kevin Parker

Thanks guys - as always answer is so obvious you don't see it :-)


++
Kevin Parker
m: 0418 815 527
++

http://au.linkedin.com/in/krparker

-Original Message-
From: Ketan Jetty [mailto:kje...@yahoo.com] 
Sent: Monday, 13 September 2010 23:54
To: cf-talk
Subject: Re: Two selects query


also try using the option tag as
Please select an option
Ketan Jetty




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


Re: Railo Training in Australia

2010-09-14 Thread Arsalan Tariq Keen

Can't we have a recorded session available of this presentation/training? I 
mean ... Fusioneers outside Australia would also like to have an insight 
into this stuff!
:)



Regards,
Arsalan

--
From: "Paul Stewart" 
Sent: Tuesday, September 14, 2010 3:55 PM
To: "cf-talk" 
Subject: Re: Railo Training in Australia

>
> Fusioneers,
>
> like it
> --
> From: "AJ Mercer" 
> Sent: Tuesday, September 14, 2010 2:22 AM
> To: "cf-talk" 
> Subject: Railo Training in Australia
>
>>
>> Hi Fusioneers,
>>
>> Railo are once again sponsoring cf.Objective(anz) with Gert Franz and 
>> Mark
>> Drew attending the conference. As well as doing a couple of sessions, 
>> they
>> will both be available before and after the conference to run the Railo
>> training Course.
>>
>> More info here
>>http://webonix.net/post/railo-training-in-australia
>>
>>
>>
>> -- 
>>
>> *AJ Mercer*
>>   | > community="Open" /> 
>> http://twitter.com/webonix
>>
>>
>>
>
> 

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


Re: Railo Training in Australia

2010-09-14 Thread Paul Stewart

Fusioneers,

like it 
--
From: "AJ Mercer" 
Sent: Tuesday, September 14, 2010 2:22 AM
To: "cf-talk" 
Subject: Railo Training in Australia

> 
> Hi Fusioneers,
> 
> Railo are once again sponsoring cf.Objective(anz) with Gert Franz and Mark
> Drew attending the conference. As well as doing a couple of sessions, they
> will both be available before and after the conference to run the Railo
> training Course.
> 
> More info here
>http://webonix.net/post/railo-training-in-australia
> 
> 
> 
> -- 
> 
> *AJ Mercer*
>   |  community="Open" /> 
> http://twitter.com/webonix
> 
> 
> 

~|
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:336991
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 Richard White

>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:336990
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 Andrew Scott

It could be a number of things, people may have learnt that Google has a lot
of answers and/or tweets get them quicker responses.

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



> -Original Message-
> From: Richard White [mailto:rich...@j7is.co.uk]
> Sent: Tuesday, 14 September 2010 6:26 PM
> To: cf-talk
> Subject: coldfusion forums?
> 
> 
> when i first started using coldfusion (3 years ago) the houseoffusion.com
> forum really helped. At that time the forum was buzzing and it seemed
every
> minute new posts or replies were going up.
> 
> i cant help but notice these days it has slowed down, and just wondering
> what could be the cause of this.
> 
> Is there an alternative forum that people are now using? could it be that
> ColdFusion is getting easier to understand? or could it be that people are
> using alternative technologies (hopefully not!)
> 


~|
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:336989
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 Russ Michaels

There are less newbies on the list is the most likley answer, all the people
who were posting every day are probably competent developers now.
There may be less traffic but your questions still get answered do they not?
My own discussion list over at www.cfmldeveloper.com is the same, it used to
be very active, but is now very quiet, however if you post a question it
does get answered.
The Adobe forums are also very active these days.




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


coldfusion forums?

2010-09-14 Thread Richard White

when i first started using coldfusion (3 years ago) the houseoffusion.com forum 
really helped. At that time the forum was buzzing and it seemed every minute 
new posts or replies were going up.

i cant help but notice these days it has slowed down, and just wondering what 
could be the cause of this. 

Is there an alternative forum that people are now using? could it be that 
ColdFusion is getting easier to understand? or could it be that people are 
using alternative technologies (hopefully not!) 

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