RE: cfinclude on a flash form not working with Chrome

2011-06-22 Thread Edward Chanter

I've had problems with it too but found no solutions I'm afraid, Chrome uses
its own flash plugin though you can disable it and use the adobe one. That's
not a great solution for other chrome users though. Given that you're
reading a text file you might try using cffile to put the contents into a
variable and then insert the variable into your flash form. I'm not 100%
sure it will work but it's worth a try.

 -Original Message-
 From: Dave Hatz [mailto:daveh...@hatzventures.org]
 Sent: 22 June 2011 01:15
 To: cf-talk
 Subject: cfinclude on a flash form not working with Chrome
 
 
 Having difficulties trying to get this to work with Chrome.  This is
inside a
 Flash Form on CF8.  Works great on IE, FF and Safari, but won't come up on
 Chrome.  Seems there are a lot of Flash Form issues with Chrome when I
 Googled the problem, but nothing specific on the CFINCLUDE.  Can anyone
 help me out here on how to solve this problem?
 
 cfformitem type=text width=720cfinclude
 template=../uploads/agreement_section1.txt/cfformitem
 
 ~~~
 ~~|
 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:345514
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


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


Re: DoD CAC authentication

2011-06-22 Thread Bern Weed

I'm getting an empty string on the cgi.cert_subject.  This was working but I 
guess a change occurred on the server and now it is not.  I've been trying to 
troubleshoot within IIS but no luck.  The cgi.auth_user value is filled in, but 
I need the cgi.cert_subject.  Can you offer any advice.  

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


Re: DoD CAC authentication

2011-06-22 Thread Bern Weed

I'm getting an empty string on the cgi.cert_subject.  This was working but I 
guess a change occurred on the server and now it is not.  I've been trying to 
troubleshoot within IIS but no luck.  The cgi.auth_user value is filled in, but 
I need the cgi.cert_subject.  Can you offer any advice. 

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


Re: CF vs. Java Web Developer

2011-06-22 Thread Tariq Ahmed

Taking developers from other backgrounds has been one of our strategies:

http://riarockstars.com/2011/03/10/a-managers-take-on-the-state-of-cf-the-scarcity-talent/

The bare minimum effort to get something loosely working is way easier 
in CF vs. Java. Unfortunately the majority of CF developers leave their 
skills at that - thus finding true CF experts is extremely difficult.

Advanced Java/.NET folk pick CF up in two seconds, and they bring their 
formal software development OO theory  design with them. So we don't 
even look specifically for CFers anymore, just strong developers in 
general. Though the flip side to that is Sr. developers of another 
language probably want to stick with their language of choice. So 
finding people who are in-between intermediate and sr. is the sweet spot. :)






On 6/21/11 2:46 AM, Scott Brady wrote:
 FWIW, I don't think it's that easy to become a good CF developer, either.
 Yes, it's very easy to learn the language and it's easy to become
 competent at it (i.e., being able to build something that works).  But to
 actually be good (best practices, advanced topics, etc.) isn't necessarily
 simple.  In fact, because it's so easy to get up and running, in some ways,
 that might make it harder to become really good, because you don't need to
 in order to get things done.

 Java is definitely much more complex -- especially for people just getting
 started -- and more powerful.  But, I believe that if you're someone who is
 actually good at CF (i.e., you're actually a developer rather than a coder),
 you can learn Java.

 Scott

 On Mon, Jun 20, 2011 at 3:57 PM, Mike Chabotmcha...@gmail.com  wrote:

 I was saying the original statement is false since I would never trivialize
 the effort needed to become proficient in Java. Becoming a good Java
 programmer is not easy, as the original statement was implying.





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


Re: DoD CAC authentication

2011-06-22 Thread Dave Watts

 I'm getting an empty string on the cgi.cert_subject.  This was working but I 
 guess a change occurred on the server and now it is not.  I've been
 trying to troubleshoot within IIS but no luck.  The cgi.auth_user value is 
 filled in, but I need the cgi.cert_subject.  Can you offer any advice.

Well, generally CF doesn't really have a lot to do with CGI variables
provided by the web server. But to verify it's not a CF problem, I
recommend you create an ASP.NET page and see if that can read
CERT_SUBJECT. If that reads it and CF can't, you may have some sort of
connector problem (and will probably need to involve Adobe support).
If that doesn't read it, you need to talk to whoever manages the IIS
server and see what changed.

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 ons

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


RE: CF vs. Java Web Developer

2011-06-22 Thread Mark A. Kruger

I have a small take on this...

When we mad telecommuting available and stopped worrying about relocation
things got a lot easier for us. We have managed to find very qualified and
ambitious CF programmers in various places to add to our staff. 

I'm writing a post on that topic that I hope to publish today in fact. 

My take is that when developers reach a certain level of expertise they have
a lot of options open to them - most of which allow them to be independent.
Some of them still move up the chain in the corporate world, but many are
findings ways to make a good living and still do what they want. The best
developers often need to do something interesting and they want to be
exposed to the breadth of possibilities (different frameworks, approaches,
the latest and greatest etc). 

We play to these strengths whenever we can. We provide a model that is
focused on the work performed not hours at a desk. We make their families
important to us. We provide them with a steady flow of positive
reinforcement. Out of a staff of 18 nearly half are now remotely working in
various parts of the country.

The hurdles to overcome are:

1) How do you develop community and facilitate knowledge sharing with a
remote staff.
2) How do you manage meetings and stakeholder interaction.
3) What technology is the most helpful with a remote staff.
4) How do you overcome the hesitancy of potential customers who are
uncomfortable with a remote staff.

Although we have learned a great deal, it is still a learning process for us
and I am constantly trying new things to tweak our culture.

-Mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com


-Original Message-
From: Tariq Ahmed [mailto:ta...@dopejam.com] 
Sent: Wednesday, June 22, 2011 8:48 AM
To: cf-talk
Subject: Re: CF vs. Java Web Developer


Taking developers from other backgrounds has been one of our strategies:

http://riarockstars.com/2011/03/10/a-managers-take-on-the-state-of-cf-the-sc
arcity-talent/

The bare minimum effort to get something loosely working is way easier 
in CF vs. Java. Unfortunately the majority of CF developers leave their 
skills at that - thus finding true CF experts is extremely difficult.

Advanced Java/.NET folk pick CF up in two seconds, and they bring their 
formal software development OO theory  design with them. So we don't 
even look specifically for CFers anymore, just strong developers in 
general. Though the flip side to that is Sr. developers of another 
language probably want to stick with their language of choice. So 
finding people who are in-between intermediate and sr. is the sweet spot. :)






On 6/21/11 2:46 AM, Scott Brady wrote:
 FWIW, I don't think it's that easy to become a good CF developer,
either.
 Yes, it's very easy to learn the language and it's easy to become
 competent at it (i.e., being able to build something that works).  But
to
 actually be good (best practices, advanced topics, etc.) isn't
necessarily
 simple.  In fact, because it's so easy to get up and running, in some
ways,
 that might make it harder to become really good, because you don't need to
 in order to get things done.

 Java is definitely much more complex -- especially for people just getting
 started -- and more powerful.  But, I believe that if you're someone who
is
 actually good at CF (i.e., you're actually a developer rather than a
coder),
 you can learn Java.

 Scott

 On Mon, Jun 20, 2011 at 3:57 PM, Mike Chabotmcha...@gmail.com  wrote:

 I was saying the original statement is false since I would never
trivialize
 the effort needed to become proficient in Java. Becoming a good Java
 programmer is not easy, as the original statement was implying.







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


application.cfm

2011-06-22 Thread Claude Schnéegans

Hi,

I've noticed that application.cfm is indeed run before the template called in 
the url, but the template itself is compiled BEFORE application.cfm is called.
I need to have the ability in application.cfm to run some code and NOT compile 
the template.

Is it possible ?
CF 9

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


Re: application.cfm

2011-06-22 Thread Russ Michaels

The CFML must be compiled in order for Java to execute it
You can however stop the class file being generated so that it is compiled
to memory only.

In the CFADMIN under caching settings - *Save class files*

Russ

On Wed, Jun 22, 2011 at 3:33 PM,  wrote:


 Hi,

 I've noticed that application.cfm is indeed run before the template called
 in the url, but the template itself is compiled BEFORE application.cfm is
 called.
 I need to have the ability in application.cfm to run some code and NOT
 compile the template.

 Is it possible ?
 CF 9

 

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


Re: application.cfm

2011-06-22 Thread Nathan Strutz

First, I will say that this is a strange request, and chances are, you're
doing something wrong. Compile errors mean that there was more than an
error, it's that the template has serious problems that the CFML compiler
couldn't parse. The fact that you still want one page to execute and another
to not compile is weird, strange, odd. I can't think of a logical case for
this, and would love to hear it if you have one.

That said, you should be able to do this with an Application.cfc file
instead of Application.cfm. Make an onRequest method, which will compile and
run that function, then from there you cfinclude the requested template,
which should be compiled only when execution reaches that include.

I always use Ray's Application.cfc reference, for reference:
http://www.coldfusionjedi.com/downloads/application.cfc.txt

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Wed, Jun 22, 2011 at 7:33 AM,  wrote:


 Hi,

 I've noticed that application.cfm is indeed run before the template called
 in the url, but the template itself is compiled BEFORE application.cfm is
 called.
 I need to have the ability in application.cfm to run some code and NOT
 compile the template.

 Is it possible ?
 CF 9

 

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


Re: application.cfm

2011-06-22 Thread Claude Schnéegans

 The CFML must be compiled in order for Java to execute it

Sure, but actually I don't want to execute the file, nor compile it.
Yhe file is actually a pdf file under .cfm extension.
This is to force execution of an application.cfm first in which I check if the 
user is authorized to open the file.
If yes, the application.cfm returns the document with the correct name and 
headers,
if not, it returns an error message.
This way, documents cannot be opened directely.

I've been using this trick for years, until this morning a user loaded some 
document containing by chance characters cf... in its binary part.
This causes a compilation error, this is how I figured out that the document 
was compiled prior application.cfm was called.

I'm affraid I'll have to completely redesign my document retreiving system.

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


RE: application.cfm

2011-06-22 Thread Andrew Scott

Do you mind me asking what need would require this? I am struggling to even
think of one.


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




 -Original Message-
 From: Claude Schnéegans schneeg...@internetique.com [mailto:=?ISO-
 8859-1?Q?Claude_Schn=E9egans schneegans@interneti=71?= =?ISO-8859-
 1?Q?ue.com=3E?=]
 Sent: Thursday, 23 June 2011 12:33 AM
 To: cf-talk
 Subject: application.cfm
 
 
 Hi,
 
 I've noticed that application.cfm is indeed run before the template called
in
 the url, but the template itself is compiled BEFORE application.cfm is
called.
 I need to have the ability in application.cfm to run some code and NOT
 compile the template.
 
 Is it possible ?
 CF 9
 


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


Re: application.cfm

2011-06-22 Thread Claude Schnéegans

 I can't think of a logical case for
this, and would love to hear it if you have one.

Please see my othe reply.
When an administrator uploads some document ie: myDoc.pdf, it is stored as 
myDoc.pdf.cfm
When a user tries to open directly myDoc.pdf.cfm in the url, the document is 
protected by some code in application.cfm
I never want to have the document compiled.



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


Re: application.cfm

2011-06-22 Thread Russ Michaels

A better way to achieve what you want is to password protect certain folders
on your site so that the files cannot be access until a user has logged in.
Using CF to do this only works to secure cfm files, so if you want to secure
PDF's and the likes then simply use .htaccess files instead. This is native
to Apache and can be done on IIS using Helicon APE.
Once the user is authenticated via the .htaccess you can capture the
username to CF for further granular control.

Using only CF and not .htaccess the usual method to secure files is to store
them outside the webroot and use CFCONTENT to deliver them to authenticated
users. This however does have issues as it can easily result it hung native
java requests if the file fails to download for any reason or the user
closes his browser, which means CF needs restarting in order to free up that
hung request. Once you reach your max number of concurrent requests then CF
will stop processing.

HTH

Russ

On Wed, Jun 22, 2011 at 4:10 PM, Andrew Scott andr...@andyscott.id.auwrote:


 Do you mind me asking what need would require this? I am struggling to even
 think of one.


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




  -Original Message-
  From: Claude Schnéegans schneeg...@internetique.com [mailto:=?ISO-
  8859-1?Q?Claude_Schn=E9egans schneegans@interneti=71?= =?ISO-8859-
  1?Q?ue.com=3E?=]
  Sent: Thursday, 23 June 2011 12:33 AM
  To: cf-talk
  Subject: application.cfm
 
 
  Hi,
 
  I've noticed that application.cfm is indeed run before the template
 called
 in
  the url, but the template itself is compiled BEFORE application.cfm is
 called.
  I need to have the ability in application.cfm to run some code and NOT
  compile the template.
 
  Is it possible ?
  CF 9
 


 

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


RE: application.cfm

2011-06-22 Thread Andrew Scott

Actually I disagree with what you are saying here, first I would not be
putting the authentication in the Application.cfm and instead look at
securing it some other way. But that is not your issue.

The issue is that you are trying to run a template that will throw an error,
nothing that I can think of from the top of my head will ever get around
that.

Your best option would be to use the template in question with url
parameters with the name of the file. Then in that template check the
authentication and then pass the name of the PDF and use cfcontent to
actually load a PDF back to the browser. Your method is just asking for more
headaches like this.

But I am at a loss to explain how a PDF is going to throw a CF Exception
error, when using cfcontent to deliver the file it should not be trying to
compile that content.


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




 -Original Message-
 From: Claude Schnéegans schneeg...@internetique.com [mailto:=?ISO-
 8859-1?Q?Claude_Schn=E9egans schneegans@interneti=71?= =?ISO-8859-
 1?Q?ue.com=3E?=]
 Sent: Thursday, 23 June 2011 1:12 AM
 To: cf-talk
 Subject: Re: application.cfm
 
 
  The CFML must be compiled in order for Java to execute it
 
 Sure, but actually I don't want to execute the file, nor compile it.
 Yhe file is actually a pdf file under .cfm extension.
 This is to force execution of an application.cfm first in which I check if
the
 user is authorized to open the file.
 If yes, the application.cfm returns the document with the correct name and
 headers, if not, it returns an error message.
 This way, documents cannot be opened directely.
 
 I've been using this trick for years, until this morning a user loaded
some
 document containing by chance characters cf... in its binary part.
 This causes a compilation error, this is how I figured out that the
document
 was compiled prior application.cfm was called.
 
 I'm affraid I'll have to completely redesign my document retreiving
system.
 
 ~~
 ~~~|
 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:345525
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


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


SOT: anyone notice that js implemetation of CFDUMP not working in FF4?

2011-06-22 Thread j t

Use this often for ajax debugging in CF, abruptly stopped working (for me) with 
FF4,

http://www.netgrow.com.au/files/javascript_dump.cfm

TIA, -m 

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


Re: application.cfm

2011-06-22 Thread Claude Schnéegans

 But I am at a loss to explain how a PDF is going to throw a CF Exception
error, when using cfcontent to deliver the file it should not be trying to
compile that content.

The error is not thrown using cfcontent, but simply when CF compiles the file 
when the HTTP request is received, before even executing application.cfm
In my mind, application.cfm was called first, then the template compiled and 
run.
Apparently, both application.cfm and the template are compiled first, then 
executed.
This means that if application.cfm does not let the template to be executed, it 
is compiled for nothing.

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


Re: application.cfm

2011-06-22 Thread Claude Schnéegans

 A better way to achieve what you want is to password protect certain folders
on your site

I never use authentication on the server.
Only through CF, since the administrators of my CMS can add/edit their own 
users, sometime 1000s of members.

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


RE: application.cfm

2011-06-22 Thread DURETTE, STEVEN J (ATTASIAIT)

This is because you are actually saving a pdf file as a .cfm.  Maybe you should 
save it under a different extension, then have a page that serves it up using 
cfcontent.


-Original Message-
From: =?ISO-8859-1?Q?Claude_Schn=E9egans 
[mailto:schneegans@interneti=71?=.=?ISO-8859-1?Q?ue.com=3E?=] 
Sent: Wednesday, June 22, 2011 11:41 AM
To: cf-talk
Subject: Re: application.cfm


 But I am at a loss to explain how a PDF is going to throw a CF Exception
error, when using cfcontent to deliver the file it should not be trying to
compile that content.

The error is not thrown using cfcontent, but simply when CF compiles the file 
when the HTTP request is received, before even executing application.cfm
In my mind, application.cfm was called first, then the template compiled and 
run.
Apparently, both application.cfm and the template are compiled first, then 
executed.
This means that if application.cfm does not let the template to be executed, it 
is compiled for nothing.



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


Re: application.cfm

2011-06-22 Thread Azadi Saryev

store your pdf files outside of web root so they are not directly 
accessible.
serve them via an intermediary .cfm page, passing it the name of the pdf 
file, which checks user's access rights to requested pdf and serves the 
file or shows an error.

Azadi

On 22/06/2011 22:33 , =?ISO-8859-1?Q?Claude_Schn=E9egans wrote:
 Hi,

 I've noticed that application.cfm is indeed run before the template called in 
 the url, but the template itself is compiled BEFORE application.cfm is called.
 I need to have the ability in application.cfm to run some code and NOT 
 compile the template.

 Is it possible ?
 CF 9

 

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


Re: application.cfm

2011-06-22 Thread Russ Michaels

The admin can still edit users, even 1000's



On Wed, Jun 22, 2011 at 4:43 PM,  wrote:


  A better way to achieve what you want is to password protect certain
 folders
 on your site

 I never use authentication on the server.
 Only through CF, since the administrators of my CMS can add/edit their own
 users, sometime 1000s of members.

 

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


Re: application.cfm

2011-06-22 Thread Rex

Hi Claude,

I agree to both Steven and Azadi's solution.

Sorry Claude, but yes, you will have to rewrite your system.  The 
trick you are using is a security risk.  Someone can rename a CFM file 
to a PDF file and upload it.  Now that CFM code can be executed on the 
server.

It shouldn't be that hard to do, since you are already serving up the 
PDF via cfcontent anyway.  Just change where you store your files.

- Rex

On 6/22/2011 8:47 AM, Azadi Saryev wrote:
 store your pdf files outside of web root so they are not directly
 accessible.
 serve them via an intermediary .cfm page, passing it the name of the pdf
 file, which checks user's access rights to requested pdf and serves the
 file or shows an error.

 Azadi

 On 22/06/2011 22:33 , =?ISO-8859-1?Q?Claude_Schn=E9egans wrote:
 Hi,

 I've noticed that application.cfm is indeed run before the template called 
 in the url, but the template itself is compiled BEFORE application.cfm is 
 called.
 I need to have the ability in application.cfm to run some code and NOT 
 compile the template.

 Is it possible ?
 CF 9


 

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


Re: CF vs. Java Web Developer

2011-06-22 Thread Judah McAuley

I'm one of those, probably relatively few, devs that went the opposite
route, starting off in CF and then picking up C#. I didn't do CS in
college, actually any programming at all, but got a math degree so I
had the analytical skills at least and algorithmic thinking. I picked
up CF starting with 3.1 and then later on started picking up OO, AOP,
DI and other fun design patterns in the last couple of years, all in
CF. My (pretty much just me) company got acquired by a shop that is
all .NET in C# and so I've also spent part of the 2 or so years
getting up to speed in C#.

It's been interesting to see what transfers over and what doesn't. I
was ahead of a number of my coworkers when it came to things like
doing dependency injection, using MVC, using generics and using
delegates. But I didn't really have a sense of designing using
Interfaces and typing and type conversion frequently bites me in the
ass.

Anyway, in the end, I think that the important part is finding people
who are able to learn and have a desire to. Then give them the
opportunity and expose them to whatever the evolving best practices
are in that particular language/framework and make sure they have the
resources to keep learning. If you have all that, you'll end up with
good devs.

Judah

On Wed, Jun 22, 2011 at 6:48 AM, Tariq Ahmed ta...@dopejam.com wrote:

 Taking developers from other backgrounds has been one of our strategies:

 http://riarockstars.com/2011/03/10/a-managers-take-on-the-state-of-cf-the-scarcity-talent/

 The bare minimum effort to get something loosely working is way easier
 in CF vs. Java. Unfortunately the majority of CF developers leave their
 skills at that - thus finding true CF experts is extremely difficult.

 Advanced Java/.NET folk pick CF up in two seconds, and they bring their
 formal software development OO theory  design with them. So we don't
 even look specifically for CFers anymore, just strong developers in
 general. Though the flip side to that is Sr. developers of another
 language probably want to stick with their language of choice. So
 finding people who are in-between intermediate and sr. is the sweet spot. :)

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


Timing out a webpage

2011-06-22 Thread Rick Sanders

Hey all. I have an online test that I want to timeout after 15mins. Does
ColdFusion have a feature built-in to do this? It's my first time doing this
sort of thing. Thanks.

 

Kind Regards,

 

WebLogomailsig

Rick Sanders

Webenergy Software

902-401-7689

http://www.webenergy.ca http://www.webenergy.ca/ 

 




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


Re: Timing out a webpage

2011-06-22 Thread John M Bliss

Can the timeout check happen on a page load?  Or do you need to have it
happen while page is displayed?

On Wed, Jun 22, 2011 at 1:32 PM, Rick Sanders r...@webenergy.ca wrote:


 Hey all. I have an online test that I want to timeout after 15mins. Does
 ColdFusion have a feature built-in to do this? It's my first time doing
 this
 sort of thing. Thanks.



 Kind Regards,



 WebLogomailsig

 Rick Sanders

 Webenergy Software

 902-401-7689

 http://www.webenergy.ca http://www.webenergy.ca/






 

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


Re: application.cfm

2011-06-22 Thread Claude Schnéegans

 The admin can still edit users, even 1000's

Which admin? Window's or CF?

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


Re: application.cfm

2011-06-22 Thread Claude Schnéegans

 I agree to both Steven and Azadi's solution.

Of course I know this solution. I thought I had a simpler one.

 Someone can rename a CFM file
to a PDF file and upload it.  Now that CFM code can be executed on the
server.

No way. Even if the pseudo pdf file actually contains CFML code, it cannot be 
executed.
At best, the file will be sent as a pdf file by CFCONTENT then application.cfm 
CFABORTs
Furthermore, only the customer, who has paid for his system, is able to upload 
files.
I doubt he ever attemps to sabotage his own system.



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


Re: application.cfm

2011-06-22 Thread Russ Michaels

the admin of your CMS

On Wed, Jun 22, 2011 at 7:48 PM,  wrote:


  The admin can still edit users, even 1000's

 Which admin? Window's or CF?

 

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


Re: Timing out a webpage

2011-06-22 Thread Russ Michaels

well you have 2 options.

set your session timeout to 15 minutes, this will then mean they cannot sit
on a page doing nothing for more than 15 minutes.
If you want to time them for 15 minutes regardless of how many pages they
load or refresh then you could create a Javascript timer, Google will
garnish you with one of these.

Russ


On Wed, Jun 22, 2011 at 7:39 PM, John M Bliss bliss.j...@gmail.com wrote:


 Can the timeout check happen on a page load?  Or do you need to have it
 happen while page is displayed?

 On Wed, Jun 22, 2011 at 1:32 PM, Rick Sanders r...@webenergy.ca wrote:

 
  Hey all. I have an online test that I want to timeout after 15mins. Does
  ColdFusion have a feature built-in to do this? It's my first time doing
  this
  sort of thing. Thanks.
 
 
 
  Kind Regards,
 
 
 
  WebLogomailsig
 
  Rick Sanders
 
  Webenergy Software
 
  902-401-7689
 
  http://www.webenergy.ca http://www.webenergy.ca/
 
 
 
 
 
 
 

 

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


Re: application.cfm

2011-06-22 Thread Claude Schnéegans

 the admin of your CMS

Of course, this is the way it works, but you were talking about password 
protect certain folders.
I don't see how this can be done by CF code when files other than .cfm or .cfc 
are requested by HTTP and the CF server is not even invoked.


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


Re: Timing out a webpage

2011-06-22 Thread John M Bliss

...but note that Javascript can be turned off.  So, in addition, you'd want
to do something like this on page load (including first page where timer
should start and last page that processes test):

cfparam name=session.starttime default=#now()#
cfif datediff(n, session.starttime, now()) GT 15
!--- run some test timed out code ---
/cfif

On Wed, Jun 22, 2011 at 2:02 PM, Russ Michaels r...@michaels.me.uk wrote:


 well you have 2 options.

 set your session timeout to 15 minutes, this will then mean they cannot sit
 on a page doing nothing for more than 15 minutes.
 If you want to time them for 15 minutes regardless of how many pages they
 load or refresh then you could create a Javascript timer, Google will
 garnish you with one of these.

 Russ


 On Wed, Jun 22, 2011 at 7:39 PM, John M Bliss bliss.j...@gmail.com
 wrote:

 
  Can the timeout check happen on a page load?  Or do you need to have it
  happen while page is displayed?
 
  On Wed, Jun 22, 2011 at 1:32 PM, Rick Sanders r...@webenergy.ca wrote:
 
  
   Hey all. I have an online test that I want to timeout after 15mins.
 Does
   ColdFusion have a feature built-in to do this? It's my first time doing
   this
   sort of thing. Thanks.
  
  
  
   Kind Regards,
  
  
  
   WebLogomailsig
  
   Rick Sanders
  
   Webenergy Software
  
   902-401-7689
  
   http://www.webenergy.ca http://www.webenergy.ca/
  
  
  
  
  
  
  
 
 

 

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


Re: application.cfm

2011-06-22 Thread Russ Michaels

It is pretty simple.

use CFFILE to read the .htaccess file
add a new user
use CFFILE to write the .htaccess file

User logs in, when he is authenticated, his credentials are available in the
CGI scope for you to use via CFML.

As I said, on Apache this is native, on IIS you can use Helicon APE (which
probably has an API as well).


Russ


On Wed, Jun 22, 2011 at 8:08 PM,  wrote:


  the admin of your CMS

 Of course, this is the way it works, but you were talking about password
 protect certain folders.
 I don't see how this can be done by CF code when files other than .cfm or
 .cfc are requested by HTTP and the CF server is not even invoked.


 

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


mysterious cfhttp issue

2011-06-22 Thread Brian FitzGerald

OK, I cannot figure this out for the life of me and it's driving me crazy.  For 
an entire day I was trying to integrate with the Spreedly.com API, and no 
matter what I did (importing certificates, etc.) I got this mysterious PEER 
could not authenticate message.

I posted a thread here the other day about it, but eventually found this post 
(and workaround) on Ray Camden's blog, outlining the issue: 
http://www.coldfusionjedi.com/index.cfm/2011/1/12/Diagnosing-a-CFHTTP-issue--peer-not-authenticated

So I plugged in the fix described by Simon Free and Pete Freitag, which worked 
great for exactly 1 day.

Then, the workaround stopped working again.  Then it started again.  Then it 
stopped again.  I cannot get any consistent results from this thing!  I don't 
know if my requests are being routed to different servers on Spreedly's end 
that are somehow configured differently, or what, but I know this is the bug 
that Ray Camden describes and that Jason Dean filed a bug report for here: 
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=85815

On my production server, the workaround seems to always work, but on my 
development machine, it sometimes works and sometimes doesn't.  Now, more often 
than not it works only WITHOUT the workaround.  This stuff is over my head, 
unfortunately.  Does anyone have any sugggestions?

I would just leave the fix in all the time, but when I do and it's not 
required, it breaks the application.  When I take it out, and it is required, 
it breaks the application.

I have setup the simplest possible test page here, without workaround: 
http://spanishwizards.com/index.cfm?event=test.spreedly

And with workaround: 
http://spanishwizards.com/index.cfm?event=test.spreedlyuseWorkaround=true

And while it seems consistent (so far) on my production server, I can't 
duplicate these results consistently on my development machine.

Thanks for any insight,
Brian 

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


RE: Timing out a webpage

2011-06-22 Thread DURETTE, STEVEN J (ATTASIAIT)

You may want to use multiple ways to do it... If you just use javascript then 
your timeout would be bypassed by just turning off javascript in the browser.

Steve

-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Wednesday, June 22, 2011 3:02 PM
To: cf-talk
Subject: Re: Timing out a webpage


well you have 2 options.

set your session timeout to 15 minutes, this will then mean they cannot sit
on a page doing nothing for more than 15 minutes.
If you want to time them for 15 minutes regardless of how many pages they
load or refresh then you could create a Javascript timer, Google will
garnish you with one of these.

Russ


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


Inserting data using QODBC

2011-06-22 Thread Terry Troxel

If anyone is using the QODBC read/write driver, could you possibly post an
example cfquery doing an insert into the customer table that works?
I have not been able to accomplish this simple exercise as it gives me a
crazy error:

[macromedia][sequelink jdbc driver][QODBC] Error parsing complete XML return
string.

I know QODBC supposedly converts Coldfusion to XML in the background, but I
am lost and could sure use a pointer or 2.

I created a ticket in their suppost forum, but no answer.

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


Re: mysterious cfhttp issue

2011-06-22 Thread Russ Michaels

Brian,

If the work around works consistently on the production server then it seems
you have the problem solved.

for your development machine perhaps you could add in some error handling.
If the workaround breaks, automatically swap to the normal method.

Perhaps it may be worth getting a copy of the cert at the other end in both
circumstances and comparing them, it may be as you said that they have
multiple servers on a cluster and it may not be the exact same cert on each
server.

Russ

On Wed, Jun 22, 2011 at 8:19 PM, Brian FitzGerald
bmfitzgera...@yahoo.comwrote:


 OK, I cannot figure this out for the life of me and it's driving me crazy.
  For an entire day I was trying to integrate with the Spreedly.com API, and
 no matter what I did (importing certificates, etc.) I got this mysterious
 PEER could not authenticate message.

 I posted a thread here the other day about it, but eventually found this
 post (and workaround) on Ray Camden's blog, outlining the issue:
 http://www.coldfusionjedi.com/index.cfm/2011/1/12/Diagnosing-a-CFHTTP-issue--peer-not-authenticated

 So I plugged in the fix described by Simon Free and Pete Freitag, which
 worked great for exactly 1 day.

 Then, the workaround stopped working again.  Then it started again.  Then
 it stopped again.  I cannot get any consistent results from this thing!  I
 don't know if my requests are being routed to different servers on
 Spreedly's end that are somehow configured differently, or what, but I know
 this is the bug that Ray Camden describes and that Jason Dean filed a bug
 report for here:
 http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=85815

 On my production server, the workaround seems to always work, but on my
 development machine, it sometimes works and sometimes doesn't.  Now, more
 often than not it works only WITHOUT the workaround.  This stuff is over my
 head, unfortunately.  Does anyone have any sugggestions?

 I would just leave the fix in all the time, but when I do and it's not
 required, it breaks the application.  When I take it out, and it is
 required, it breaks the application.

 I have setup the simplest possible test page here, without workaround:
 http://spanishwizards.com/index.cfm?event=test.spreedly

 And with workaround:
 http://spanishwizards.com/index.cfm?event=test.spreedlyuseWorkaround=true

 And while it seems consistent (so far) on my production server, I can't
 duplicate these results consistently on my development machine.

 Thanks for any insight,
 Brian

 

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


Re: mysterious cfhttp issue

2011-06-22 Thread Brian FitzGerald

Hey Russ,

Thank you for the suggestions.  Thinking about it again, you're right; as long 
as it works in production that's what's important.  It was just giving me such 
a hassle in development that I kinda had my heart set on having it work right 
in both places :)

With that said, implementing the workaround you suggested should suffice for my 
development environment.  I'll do that.

Kind Regards,
Brian 

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


RE: application.cfm

2011-06-22 Thread Andrew Scott

CF should not be compiling anything that is not CFML, if it is this actually
happening then it sounds like a bug in CF.

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




 -Original Message-
 From: Claude Schnéegans schneeg...@internetique.com [mailto:=?ISO-
 8859-1?Q?Claude_Schn=E9egans schneegans@interneti=71?= =?ISO-8859-
 1?Q?ue.com=3E?=]
 Sent: Thursday, 23 June 2011 1:41 AM
 To: cf-talk
 Subject: Re: application.cfm
 
 
  But I am at a loss to explain how a PDF is going to throw a CF
Exception
 error, when using cfcontent to deliver the file it should not be trying to
 compile that content.
 
 The error is not thrown using cfcontent, but simply when CF compiles the
file
 when the HTTP request is received, before even executing application.cfm
In
 my mind, application.cfm was called first, then the template compiled and
 run.
 Apparently, both application.cfm and the template are compiled first, then
 executed.
 This means that if application.cfm does not let the template to be
executed,
 it is compiled for nothing.
 


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


RE: CF vs. Java Web Developer

2011-06-22 Thread Andrew Scott

Judah my point exactly.


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




 -Original Message-
 From: Judah McAuley [mailto:ju...@wiredotter.com]
 Sent: Thursday, 23 June 2011 4:12 AM
 To: cf-talk
 Subject: Re: CF vs. Java Web Developer
 
 
 I'm one of those, probably relatively few, devs that went the opposite
route,
 starting off in CF and then picking up C#. I didn't do CS in college,
actually any
 programming at all, but got a math degree so I had the analytical skills
at least
 and algorithmic thinking. I picked up CF starting with 3.1 and then later
on
 started picking up OO, AOP, DI and other fun design patterns in the last
 couple of years, all in CF. My (pretty much just me) company got acquired
by
 a shop that is all .NET in C# and so I've also spent part of the 2 or so
years
 getting up to speed in C#.
 
 It's been interesting to see what transfers over and what doesn't. I was
 ahead of a number of my coworkers when it came to things like doing
 dependency injection, using MVC, using generics and using delegates. But I
 didn't really have a sense of designing using Interfaces and typing and
type
 conversion frequently bites me in the ass.
 
 Anyway, in the end, I think that the important part is finding people who
are
 able to learn and have a desire to. Then give them the opportunity and
 expose them to whatever the evolving best practices are in that particular
 language/framework and make sure they have the resources to keep
 learning. If you have all that, you'll end up with good devs.
 
 Judah


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


RE: application.cfm

2011-06-22 Thread Andrew Scott

.htacces file dude you were told that.


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




 -Original Message-
 From: Claude Schnéegans schneeg...@internetique.com [mailto:=?ISO-
 8859-1?Q?Claude_Schn=E9egans schneegans@interneti=71?= =?ISO-8859-
 1?Q?ue.com=3E?=]
 Sent: Thursday, 23 June 2011 5:09 AM
 To: cf-talk
 Subject: Re: application.cfm
 
 
  the admin of your CMS
 
 Of course, this is the way it works, but you were talking about password
 protect certain folders.
 I don't see how this can be done by CF code when files other than .cfm or
.cfc
 are requested by HTTP and the CF server is not even invoked.
 
 


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


RE: application.cfm

2011-06-22 Thread Andrew Scott

Would that not be another risk, or do you mean secured login via an admin
panel to edit ths?


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




 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: Thursday, 23 June 2011 5:15 AM
 To: cf-talk
 Subject: Re: application.cfm
 
 
 It is pretty simple.
 
 use CFFILE to read the .htaccess file
 add a new user
 use CFFILE to write the .htaccess file
 
 User logs in, when he is authenticated, his credentials are available in
the CGI
 scope for you to use via CFML.
 
 As I said, on Apache this is native, on IIS you can use Helicon APE (which
 probably has an API as well).
 
 
 Russ
 


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