now( ) is off by an hour

2013-03-12 Thread daniel kessler

I am working on an application that does it's own timeout, at 45 minutes.  It 
gets the last logged in time and compares it to the database current time.  The 
database time is correct.  However, the now() time is incorrect by an hour.  I 
assume this is due to daylight savings time.

So where does now() get it's time?  I'm on a VPN and that has the correct time 
when I check it's clock.  Would it then be the server that hosts the VPN?  Or 
someplace else?

thank you.

daniel 

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


RE: now( ) is off by an hour

2013-03-12 Thread DURETTE, STEVEN J

Check the date and time on the ColdFusion server. Also, make sure that your DB 
server and ColdFusion server are in the same time zone.


-Original Message-
From: daniel kessler [mailto:dani...@umd.edu] 
Sent: Tuesday, March 12, 2013 8:49 AM
To: cf-talk
Subject: now( ) is off by an hour


I am working on an application that does it's own timeout, at 45 minutes.  It 
gets the last logged in time and compares it to the database current time.  The 
database time is correct.  However, the now() time is incorrect by an hour.  I 
assume this is due to daylight savings time.

So where does now() get it's time?  I'm on a VPN and that has the correct time 
when I check it's clock.  Would it then be the server that hosts the VPN?  Or 
someplace else?

thank you.

daniel 



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


Re: now( ) is off by an hour

2013-03-12 Thread Paul Hastings

On 3/12/2013 7:48 PM, daniel kessler wrote:
 So where does now() get it's time?  I'm on a VPN and that has the correct
 time when I check it's clock.  Would it then be the server that hosts the
 VPN?  Or someplace else?

time could be fine but maybe JRE that cf is using is running in a different 
timezone. you can check via this snippet:

cfscript
jre=createObject(java,java.lang.System);
JREname=jre.getProperty(java.runtime.name);
JREversion=jre.getProperty(java.runtime.version);

tz=createObject(java,java.util.TimeZone).getDefault();
tzName=tz.getDisplayName(true,tz.LONG);
dstSavings=tz.getDSTSavings()/360;

writeoutput(JRE:=#JREname# #JREversion#br
tz:=#tzName#brdst savings:=#dstSavings#br
uses DST: #tz.useDaylightTime()#br
in DST now: #tz.inDaylightTime(now())#);
/cfscript


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


Re: now( ) is off by an hour

2013-03-12 Thread daniel kessler

It's a localhost CFServer (developer mode).  That is on a VPN that I am using.  
The VPN has the correct time.  However the now() is incorrect.  It was correct 
until daylight savings time.

At this point, I assume that it's getting the time from the machine that is 
hosting the VPN, which means that the VPN can have a different time.  However 
since I don't know where now() gets it's time, I can't get any traction on this 
from our support staff.

 Check the date and time on the ColdFusion server. Also, make sure that 
 your DB server and ColdFusion server are in the same time zone. 

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


Re: now( ) is off by an hour

2013-03-12 Thread Bobby

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions
_m-r_07.html

Gets the current date and time of the computer running the ColdFusion
server

It doesn't get its time form the VPN, it gets its time from the host
machine running the CF service. Clock in the bottom right corner of
windows has the time that the CF server would use.

If, for some reason, you've hidden the clock, cmd.exe  echo %time%

Your windows timezone could be off or you don't have the option set to
adjust for daylight savings time.



On 3/12/13 8:05 AM, daniel kessler dani...@umd.edu wrote:


It's a localhost CFServer (developer mode).  That is on a VPN that I am
using.  The VPN has the correct time.  However the now() is incorrect.
It was correct until daylight savings time.

At this point, I assume that it's getting the time from the machine that
is hosting the VPN, which means that the VPN can have a different time.
However since I don't know where now() gets it's time, I can't get any
traction on this from our support staff.

 Check the date and time on the ColdFusion server. Also, make sure that
 your DB server and ColdFusion server are in the same time zone.



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


Re: Adding Salt and Password Hash to existing acocunts

2013-03-12 Thread Torrent Girl

I've been playing around lately with hashing via both SQL Server 2008 and 
CF.  The following should give you the same results in both:

cfset hashpwd = hash(pwd  uuid,SHA-1 )

SET @pwdHash = CONVERT(VARCHAR(40),HashBytes('SHA1', @pwd + @UUID),2)

My understanding is, SQL Server 2012 is the only version that currently 
supports SHA512.

Thanks,

Eric Cobb
http://www.cfgears.com

In the example it was a hardcoded string for the salt. 'mySalt'. you'd
just replace that with whatever you intend to use.

I haven't used SHA512 this way. I only did it the way I did so there was
an equivalent method in CF to generate the same hash.

You'd have to play around with generating SHA512 hashes in TSQL and make
sure you are also able to generate that same hash in CF (assuming you will
be doing your hashing in CF at all before sending to the database).

You can do as many iterations of the salt as you want I suppose. If I was
going to hash multiple times, I'd salt them all.

On 3/11/13 9:05 AM, Torrent Girl moniqueb...@gmail.com wrote:

SHA512

Thanks. Is there any benefit to using SHA512 over anything else? 

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


Re: now( ) is off by an hour

2013-03-12 Thread daniel kessler

Thanks bobby.  I can only see the VPN OS, not the computer that serves up the 
VPN.  It sounds like I should ask them to check that server's time.

thank you.

It doesn't get its time form the VPN, it gets its time from the host
machine running the CF service. Clock in the bottom right corner of
windows has the time that the CF server would use.

If, for some reason, you've hidden the clock, cmd.exe  echo %time%

Your windows timezone could be off or you don't have the option set to
adjust for daylight savings time.

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


Re: now( ) is off by an hour

2013-03-12 Thread daniel kessler

I get:
JRE:=Java(TM) 2 Runtime Environment, Standard Edition 1.4.2_09-b05
tz:=Eastern Daylight Time
dst savings:=1
uses DST: YES
in DST now: NO

I saw that there is an update to 1.4.2_11, but that came out around 2007 I 
think.  So I would need a more recent update.  A coworker said that she updated 
her jvm and still sees the error.  However, I'm waiting for her to come in to 
work and run this script that you gave me.  Maybe it gives some different info.

When it says in dst now, that means that JVM thinks it's not in DST or that 
the computer does not think it's in DST?


script
jre=createObject(java,java.lang.System);
JREname=jre.getProperty(java.runtime.name);
JREversion=jre.getProperty(java.runtime.version);

tz=createObject(java,java.util.TimeZone).getDefault();
tzName=tz.getDisplayName(true,tz.LONG);
dstSavings=tz.getDSTSavings()/360;

writeoutput(JRE:=#JREname# #JREversion#br
   tz:=#tzName#brdst savings:=#dstSavings#br
   uses DST: #tz.useDaylightTime()#br
   in DST now: #tz.inDaylightTime(now())#);
/cfscript 

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


Re: now( ) is off by an hour

2013-03-12 Thread daniel kessler

I've been using the term VPN when I meant VM (virtual machine).  
Sorry about any confusion and thank you all for your help so far.

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


Re: Adding Salt and Password Hash to existing acocunts

2013-03-12 Thread Roger Austin

 Torrent Girl moniqueb...@gmail.com wrote: 

 Thanks. Is there any benefit to using SHA512 over anything else? 

What is the risk profile of the site?
What regulations do you have to meet if any?
 i.e., FIPS-140-2? http://en.wikipedia.org/wiki/FIPS_140
 http://csrc.nist.gov/publications/fips/fips140-2/fips1402.pdf

What does it cost to use higher level encryption? (Probably very little)

Any reason not to use the best encryption? (Probably not with modern systems)

MD5 should not be used. Use SHA-512

--
LinkedIn: http://www.linkedin.com/pub/roger-austin/8/a4/60
Twitter:  http://twitter.com/RogerTheGeek
Google+:  https://plus.google.com/117357905892731200369

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


Re: 32 vs 64 bit CF and DSNs

2013-03-12 Thread Claude Schnéegans

 I finally pulled the plug on the 64 but and installed the 32 bit CF version.

I'm also using CF 32bit, but it is because of some 32bit CFXs, but I did have 
the 64bit running with Access datasources.
I have Access 2003 installed on the server, may be you need it to bring the 
correct 32bit drivers.


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


Validation Query Question

2013-03-12 Thread DeMarco, Alex

I have a question regarding Validation Query:

The CF  9  online help says this about the Validation Query:
Called when a connection from the pool is reused. This can slow query response 
time because an additional query is generated. You should specify this just 
before restarting the database to verify all connections, but remove the 
validation query after restarting the database to avoid any performance loss.
If you are pointing to an Oracle RAC Cluster containing 2 nodes and want to 
ensure that the RAC node the connection is currently bound to is viable doesn't 
it make sense to leave the validation query in place?  (select 1 from dual;) 
regardless  of the small performance hit I would rather prefer that my 
connection is viable.

What is everyone's opinion on this?

Thank you in advance.

[circle]http://www.suny.edu/

Alex DeMarco
Manager of Technical Services
The State University of New York
State University Plaza - Albany, New York 12246
Tel: 518.320.1398Fax: 518.320.1550
Be a part of Generation SUNY: Facebookhttp://www.facebook.com/generationsuny 
- Twitterhttp://www.twitter.com/generationsuny - 
YouTubehttp://www.youtube.com/generationsuny





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


cfinvoke and Proxy Auto Configuration

2013-03-12 Thread Bill Franklin

Configuration:

So our ColdFusion 9.0.1 instance has a dedicated active directory account under 
which the ColdFusion services run.  It has been granted internet access by the 
network guys, and the internet configuration has been setup with a proxy auto 
configuration script, as our proxy servers can change based on company needs, 
etc.

Using this information, how do I setup cfinvoke to connect to an external web 
service?


Thanks in advance 

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


Re: cfinvoke and Proxy Auto Configuration

2013-03-12 Thread Russ Michaels

there is nothing special you need to do, as long as the server can make
external connections to the internet that is all that is required.

To confirm all permissions, simply login to the server as the AD user
ColdFusion runs under and make sure you can make outward connections.


On Tue, Mar 12, 2013 at 2:54 PM, Bill Franklin bill.frank...@bayer.comwrote:


 Configuration:

 So our ColdFusion 9.0.1 instance has a dedicated active directory account
 under which the ColdFusion services run.  It has been granted internet
 access by the network guys, and the internet configuration has been setup
 with a proxy auto configuration script, as our proxy servers can change
 based on company needs, etc.

 Using this information, how do I setup cfinvoke to connect to an external
 web service?


 Thanks in advance

 

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


Re: now( ) is off by an hour

2013-03-12 Thread Paul Hastings

On 3/12/2013 8:31 PM, daniel kessler wrote:
 JRE:=Java(TM) 2 Runtime Environment, Standard Edition 1.4.2_09-b05

kind of old  problematic.

 When it says in dst now, that means that JVM thinks it's not in DST or that
 the computer does not think it's in DST?

the JVM that cf's using thinks that it's not in DST. in theory the OS  JVM 
should use the same timezone, but that's in theory.

welcome to timezone hell.


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


(ot) .NET vs. CF

2013-03-12 Thread Dave Hatz

I know I have seen a lot of threads on this in the past, but didn't pay much 
attention to them until now.

I have been using CF since v4.0 and now we have clients telling us that we can 
not use CF anymore and that we need to switch to .NET.

Now I know our client's upper management couldn't tell the difference between a 
PC and Mac let alone tell the difference from .NET and CF.  They have given us 
no other reason than other big companies are doing it.

For those of u on this list that have experience with both, can I please get 
your feedback on the Pros and Cons of going to the .NET framework from 
ColdFusion?

Thanks,
Dave Hatz 

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


RE: (ot) .NET vs. CF

2013-03-12 Thread Robert Harrison

To be honest, if the reason is that is  what others are doing, wouldn't it be 
more appropriate to use PHP or Word Press?  Those are in far greater use that 
.net. 

Robert Harrison 
Director of Interactive Services

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

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

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


Re: (ot) .NET vs. CF

2013-03-12 Thread Justin Scott

 For those of u on this list that have experience with both, can I
 please get your feedback on the Pros and Cons of going to the
 .NET framework from ColdFusion?

Hi Dave, that will depend on what you're doing with it.  I don't have
anything against .NET and have done some coding with it.  The biggest
headache about .NET is that it's a fully object-oriented language and
everything is based around that.  It's a lot harder to throw something
together quickly with .NET than it is with ColdFusion.  If you're
building large well-designed applications that will be OO from the
beginning regardless of the language, then it's mostly a matter of
syntax.  .NET has a wealth of libraries behind it, but navigating that
world is on-par with Java in complexity (strong typing, lots of long
paths to method calls, etc.).  CF is more akin to PHP in that regard.

Not to get too far off-topic, but I'd be happy to see a project like
OpenBD or Railo that created a CFML engine on top of .NET rather than
Java so that we could just switch the engine out and say okay, we're
doing .NET now, wink wink.

If you're doing simple web applications, .NET may just get in the way
and add time and complexity that isn't needed.  If you're doing PDF
generation, I haven't seen anything that beats the simplicity of
CFDOCUMENT (though it has its limitations).

So, as with anything in IT... it depends.  But as has already been
mentioned, switching platforms just because someone read an article in
a magazine about something another company did is pretty
short-sighted.


-Justin

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


Re: (ot) .NET vs. CF

2013-03-12 Thread Gerald Guido

A couple of things come to mind. First is the primary reason I use CF:
Speed of development. CF can be seen as a framework for Java much like
jQuery is a framework for JavaScript. It takes care of the bulk of the
heavy lifting and grunt work so you can focus on writing productive code.

,NET is a lower level language when compared to CF meaning that you have to
take care of a lot of low level chores in order to do something, If you
wanted to open a bottle of wine with another language you would first have
to build the bottle opener, or even smelt the steel, in order to open the
bottle. With CF you call CFBottleOpener / and you are done.

Justin James http://www.techrepublic.com/search?a=justin+james at
techrepublic.com once remarked that only 25% of the time he spent writing
Java was writing productive code, the other 75% was taking care of low
level pluming so he can write said productive code. There is a phrase down
south that goes I am fixing to get ready to...  That is what it is like
with lower level languages like Java and .NET you (often) spend a bulk of
your time preparing to actually do something.

Lastly, you have the entire Java Class Library at your disposal. Say you
need to do something that CF was not designed to do or does not do
particularly well you can drop down into Java or use a third party class
library to perform said task.

In short it reduces complexity, and the amount of code that one needs to
write for the same end result. Less code = faster time to market, less
chance for bugs and lowers the cost of development.

Sorry if I am rambling... It is late in the day.
HTH.
G!

On Tue, Mar 12, 2013 at 5:07 PM, Justin Scott leviat...@darktech.orgwrote:


  For those of u on this list that have experience with both, can I





-- 
Gerald Guido
http://www.myinternetisbroken.com


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


Re: (ot) .NET vs. CF

2013-03-12 Thread Carl Von Stetten

Justin,

With regard to a CFML engine running on .NET, New Atlanta has a 
BlueDragon .NET edition 
http://www.newatlanta.com/products/bluedragon/index.cfm that does 
exactly that.
-Carl V.

On 3/12/2013 2:07 PM, Justin Scott wrote:
 For those of u on this list that have experience with both, can I
 please get your feedback on the Pros and Cons of going to the
 .NET framework from ColdFusion?
 Hi Dave, that will depend on what you're doing with it.  I don't have
 anything against .NET and have done some coding with it.  The biggest
 headache about .NET is that it's a fully object-oriented language and
 everything is based around that.  It's a lot harder to throw something
 together quickly with .NET than it is with ColdFusion.  If you're
 building large well-designed applications that will be OO from the
 beginning regardless of the language, then it's mostly a matter of
 syntax.  .NET has a wealth of libraries behind it, but navigating that
 world is on-par with Java in complexity (strong typing, lots of long
 paths to method calls, etc.).  CF is more akin to PHP in that regard.

 Not to get too far off-topic, but I'd be happy to see a project like
 OpenBD or Railo that created a CFML engine on top of .NET rather than
 Java so that we could just switch the engine out and say okay, we're
 doing .NET now, wink wink.

 If you're doing simple web applications, .NET may just get in the way
 and add time and complexity that isn't needed.  If you're doing PDF
 generation, I haven't seen anything that beats the simplicity of
 CFDOCUMENT (though it has its limitations).

 So, as with anything in IT... it depends.  But as has already been
 mentioned, switching platforms just because someone read an article in
 a magazine about something another company did is pretty
 short-sighted.


 -Justin

 

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


Re: now( ) is off by an hour

2013-03-12 Thread Carl Von Stetten

Daniel,

What version of ColdFusion are you running?  Maybe you can upgrade the 
JVM to a newer version that has updated DST settings?  I think the 
start/end dates for DST in the US were changed in 2007, while Java 1.4 
hasn't been current since around 2004.

-Carl V.

On 3/12/2013 6:31 AM, daniel kessler wrote:
 I get:
 JRE:=Java(TM) 2 Runtime Environment, Standard Edition 1.4.2_09-b05
 tz:=Eastern Daylight Time
 dst savings:=1
 uses DST: YES
 in DST now: NO

 I saw that there is an update to 1.4.2_11, but that came out around 2007 I 
 think.  So I would need a more recent update.  A coworker said that she 
 updated her jvm and still sees the error.  However, I'm waiting for her to 
 come in to work and run this script that you gave me.  Maybe it gives some 
 different info.

 When it says in dst now, that means that JVM thinks it's not in DST or that 
 the computer does not think it's in DST?


 script
 jre=createObject(java,java.lang.System);
 JREname=jre.getProperty(java.runtime.name);
 JREversion=jre.getProperty(java.runtime.version);

 tz=createObject(java,java.util.TimeZone).getDefault();
 tzName=tz.getDisplayName(true,tz.LONG);
 dstSavings=tz.getDSTSavings()/360;

 writeoutput(JRE:=#JREname# #JREversion#br
  tz:=#tzName#brdst savings:=#dstSavings#br
  uses DST: #tz.useDaylightTime()#br
  in DST now: #tz.inDaylightTime(now())#);
 /cfscript
 

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


Re: now( ) is off by an hour

2013-03-12 Thread Wil Genovese

Here is your answer: This JVM version is SO old that it has the OLD DST change 
over date.  The DST change over dates changed in 2008.

See this tech note from (Sun) Oracle. 

http://www.oracle.com/technetwork/java/javase/releasenotes-138306.html#142_19

Regards,
Wil


Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Mar 12, 2013, at 5:36 PM, Carl Von Stetten vonner.li...@vonner.net wrote:

 
 Daniel,
 
 What version of ColdFusion are you running?  Maybe you can upgrade the 
 JVM to a newer version that has updated DST settings?  I think the 
 start/end dates for DST in the US were changed in 2007, while Java 1.4 
 hasn't been current since around 2004.
 
 -Carl V.
 
 On 3/12/2013 6:31 AM, daniel kessler wrote:
 I get:
 JRE:=Java(TM) 2 Runtime Environment, Standard Edition 1.4.2_09-b05
 tz:=Eastern Daylight Time
 dst savings:=1
 uses DST: YES
 in DST now: NO
 
 I saw that there is an update to 1.4.2_11, but that came out around 2007 I 
 think.  So I would need a more recent update.  A coworker said that she 
 updated her jvm and still sees the error.  However, I'm waiting for her to 
 come in to work and run this script that you gave me.  Maybe it gives some 
 different info.
 
 When it says in dst now, that means that JVM thinks it's not in DST or 
 that the computer does not think it's in DST?
 
 
 script
 jre=createObject(java,java.lang.System);
 JREname=jre.getProperty(java.runtime.name);
 JREversion=jre.getProperty(java.runtime.version);
 
 tz=createObject(java,java.util.TimeZone).getDefault();
 tzName=tz.getDisplayName(true,tz.LONG);
 dstSavings=tz.getDSTSavings()/360;
 
 writeoutput(JRE:=#JREname# #JREversion#br
 tz:=#tzName#brdst savings:=#dstSavings#br
 uses DST: #tz.useDaylightTime()#br
 in DST now: #tz.inDaylightTime(now())#);
 /cfscript
 
 
 

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


Re: (ot) .NET vs. CF

2013-03-12 Thread Justin Scott

 With regard to a CFML engine running on .NET, New Atlanta has a
 BlueDragon .NET edition that does exactly that.

Thanks Carl, I knew they had a Java version but wasn't aware of the
.NET edition.  Good to know if I ever run across one of those types of
clients.


-Justin

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


Re: (ot) .NET vs. CF

2013-03-12 Thread Carl Von Stetten

Justin,

As a one-time Java BlueDragon user, I'd say the .NET version is the only 
reason I'd use BlueDragon over ACF at this point.  They have fallen way 
behind in comparable feature support (last time I checked they were 
about equivalent to ACF 7/8).

-Carl V.

On 3/12/2013 3:49 PM, Justin Scott wrote:
 Thanks Carl, I knew they had a Java version but wasn't aware of the
 .NET edition.  Good to know if I ever run across one of those types of
 clients.


 -Justin

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


Re: (ot) .NET vs. CF

2013-03-12 Thread Andrew Scott

Justin...

OpenBD began its days as a .Net engine...


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



On Wed, Mar 13, 2013 at 8:07 AM, Justin Scott leviat...@darktech.orgwrote:


  For those of u on this list that have experience with both, can I
  please get your feedback on the Pros and Cons of going to the
  .NET framework from ColdFusion?

 Hi Dave, that will depend on what you're doing with it.  I don't have
 anything against .NET and have done some coding with it.  The biggest
 headache about .NET is that it's a fully object-oriented language and
 everything is based around that.  It's a lot harder to throw something
 together quickly with .NET than it is with ColdFusion.  If you're
 building large well-designed applications that will be OO from the
 beginning regardless of the language, then it's mostly a matter of
 syntax.  .NET has a wealth of libraries behind it, but navigating that
 world is on-par with Java in complexity (strong typing, lots of long
 paths to method calls, etc.).  CF is more akin to PHP in that regard.

 Not to get too far off-topic, but I'd be happy to see a project like
 OpenBD or Railo that created a CFML engine on top of .NET rather than
 Java so that we could just switch the engine out and say okay, we're
 doing .NET now, wink wink.

 If you're doing simple web applications, .NET may just get in the way
 and add time and complexity that isn't needed.  If you're doing PDF
 generation, I haven't seen anything that beats the simplicity of
 CFDOCUMENT (though it has its limitations).

 So, as with anything in IT... it depends.  But as has already been
 mentioned, switching platforms just because someone read an article in
 a magazine about something another company did is pretty
 short-sighted.


 -Justin

 

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


Re: (ot) .NET vs. CF

2013-03-12 Thread Andrew Scott

And I am sure that if you get to the real nuts and bolts of it, Java is
more popular on the Enterprise level than .Net is.

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



On Wed, Mar 13, 2013 at 9:00 AM, Gerald Guido gerald.gu...@gmail.comwrote:


 A couple of things come to mind. First is the primary reason I use CF:
 Speed of development. CF can be seen as a framework for Java much like
 jQuery is a framework for JavaScript. It takes care of the bulk of the
 heavy lifting and grunt work so you can focus on writing productive code.

 ,NET is a lower level language when compared to CF meaning that you have to
 take care of a lot of low level chores in order to do something, If you
 wanted to open a bottle of wine with another language you would first have
 to build the bottle opener, or even smelt the steel, in order to open the
 bottle. With CF you call CFBottleOpener / and you are done.

 Justin James http://www.techrepublic.com/search?a=justin+james at
 techrepublic.com once remarked that only 25% of the time he spent writing
 Java was writing productive code, the other 75% was taking care of low
 level pluming so he can write said productive code. There is a phrase down
 south that goes I am fixing to get ready to...  That is what it is like
 with lower level languages like Java and .NET you (often) spend a bulk of
 your time preparing to actually do something.

 Lastly, you have the entire Java Class Library at your disposal. Say you
 need to do something that CF was not designed to do or does not do
 particularly well you can drop down into Java or use a third party class
 library to perform said task.

 In short it reduces complexity, and the amount of code that one needs to
 write for the same end result. Less code = faster time to market, less
 chance for bugs and lowers the cost of development.

 Sorry if I am rambling... It is late in the day.
 HTH.
 G!

 On Tue, Mar 12, 2013 at 5:07 PM, Justin Scott leviat...@darktech.org
 wrote:

 
   For those of u on this list that have experience with both, can I





 --
 Gerald Guido
 http://www.myinternetisbroken.com


 

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


Re: (ot) .NET vs. CF

2013-03-12 Thread Adam Cameron

I can't vouch for New Atlanta itself, but BD.NET has not seen any activity
for a number of years, and never got beyond CFMX 7 compat, as far as I can
recollect.

OpenBD is - as far as I can tell - a stagnant project (except for Alan
doing what best suits Alan: fair enough... that was always the story with
OpenBD anyhow), and BD.NET has been stagnant for *much* longer that that.

BD.NET might exist, but it's not something anyone should recommend to
anyone to use, in our community. And I think OpenBD has pretty much gone
that way as well.

IMO.

-- 
Adam


On 12 March 2013 22:49, Justin Scott leviat...@darktech.org wrote:


  With regard to a CFML engine running on .NET, New Atlanta has a
  BlueDragon .NET edition that does exactly that.

 Thanks Carl, I knew they had a Java version but wasn't aware of the
 .NET edition.  Good to know if I ever run across one of those types of
 clients.


 -Justin

 

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


Re: (ot) .NET vs. CF

2013-03-12 Thread Adam Cameron

This is a traditionally unpopular metric with CF developers, but there's
this:
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

Java's more prevalent than .NET platform languages, but that's not a
compelling reason to use either (/or).

And let's not forget that CFML is not Java, so it's a pointless comparison
to make anyhow.

To the OP: CFML is withering away... get used to it. Take whatever
opportunity you can to shift to a different language. Either .net-based
languages or Java would be good options.

-- 
Adam


On 13 March 2013 00:09, Andrew Scott andr...@andyscott.id.au wrote:


 And I am sure that if you get to the real nuts and bolts of it, Java is
 more popular on the Enterprise level than .Net is.

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



 On Wed, Mar 13, 2013 at 9:00 AM, Gerald Guido gerald.gu...@gmail.com
 wrote:

 
  A couple of things come to mind. First is the primary reason I use CF:
  Speed of development. CF can be seen as a framework for Java much like
  jQuery is a framework for JavaScript. It takes care of the bulk of the
  heavy lifting and grunt work so you can focus on writing productive code.
 
  ,NET is a lower level language when compared to CF meaning that you have
 to
  take care of a lot of low level chores in order to do something, If you
  wanted to open a bottle of wine with another language you would first
 have
  to build the bottle opener, or even smelt the steel, in order to open the
  bottle. With CF you call CFBottleOpener / and you are done.
 
  Justin James http://www.techrepublic.com/search?a=justin+james at
  techrepublic.com once remarked that only 25% of the time he spent
 writing
  Java was writing productive code, the other 75% was taking care of low
  level pluming so he can write said productive code. There is a phrase
 down
  south that goes I am fixing to get ready to...  That is what it is like
  with lower level languages like Java and .NET you (often) spend a bulk of
  your time preparing to actually do something.
 
  Lastly, you have the entire Java Class Library at your disposal. Say you
  need to do something that CF was not designed to do or does not do
  particularly well you can drop down into Java or use a third party class
  library to perform said task.
 
  In short it reduces complexity, and the amount of code that one needs to
  write for the same end result. Less code = faster time to market, less
  chance for bugs and lowers the cost of development.
 
  Sorry if I am rambling... It is late in the day.
  HTH.
  G!
 
  On Tue, Mar 12, 2013 at 5:07 PM, Justin Scott leviat...@darktech.org
  wrote:
 
  
For those of u on this list that have experience with both, can I
 
 
 
 
 
  --
  Gerald Guido
  http://www.myinternetisbroken.com
 
 
 

 

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


Re: (ot) .NET vs. CF

2013-03-12 Thread Russ Michaels

well, , being as it compiles to java byte code, and you can distribute any
CFML app as pure JAVA, no CFML in sight, which would make it a java app.
I have never tried this TBH, but I would presume you just deploy your app
as a war file, so it presumably would not even need a CFML engine, it will
just run directly on a java servlet engine.





On Wed, Mar 13, 2013 at 12:56 AM, Adam Cameron 
adamcameroncoldfus...@gmail.com wrote:


 This is a traditionally unpopular metric with CF developers, but there's
 this:
 http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

 Java's more prevalent than .NET platform languages, but that's not a
 compelling reason to use either (/or).

 And let's not forget that CFML is not Java, so it's a pointless comparison
 to make anyhow.

 To the OP: CFML is withering away... get used to it. Take whatever
 opportunity you can to shift to a different language. Either .net-based
 languages or Java would be good options.

 --
 Adam


 On 13 March 2013 00:09, Andrew Scott andr...@andyscott.id.au wrote:

 
  And I am sure that if you get to the real nuts and bolts of it, Java is
  more popular on the Enterprise level than .Net is.
 
  Regards,
  Andrew Scott
  WebSite: http://www.andyscott.id.au/
  Google+:  http://plus.google.com/113032480415921517411
 
 
 
  On Wed, Mar 13, 2013 at 9:00 AM, Gerald Guido gerald.gu...@gmail.com
  wrote:
 
  
   A couple of things come to mind. First is the primary reason I use CF:
   Speed of development. CF can be seen as a framework for Java much like
   jQuery is a framework for JavaScript. It takes care of the bulk of the
   heavy lifting and grunt work so you can focus on writing productive
 code.
  
   ,NET is a lower level language when compared to CF meaning that you
 have
  to
   take care of a lot of low level chores in order to do something, If you
   wanted to open a bottle of wine with another language you would first
  have
   to build the bottle opener, or even smelt the steel, in order to open
 the
   bottle. With CF you call CFBottleOpener / and you are done.
  
   Justin James http://www.techrepublic.com/search?a=justin+james at
   techrepublic.com once remarked that only 25% of the time he spent
  writing
   Java was writing productive code, the other 75% was taking care of low
   level pluming so he can write said productive code. There is a phrase
  down
   south that goes I am fixing to get ready to...  That is what it is
 like
   with lower level languages like Java and .NET you (often) spend a bulk
 of
   your time preparing to actually do something.
  
   Lastly, you have the entire Java Class Library at your disposal. Say
 you
   need to do something that CF was not designed to do or does not do
   particularly well you can drop down into Java or use a third party
 class
   library to perform said task.
  
   In short it reduces complexity, and the amount of code that one needs
 to
   write for the same end result. Less code = faster time to market, less
   chance for bugs and lowers the cost of development.
  
   Sorry if I am rambling... It is late in the day.
   HTH.
   G!
  
   On Tue, Mar 12, 2013 at 5:07 PM, Justin Scott leviat...@darktech.org
   wrote:
  
   
 For those of u on this list that have experience with both, can I
  
  
  
  
  
   --
   Gerald Guido
   http://www.myinternetisbroken.com
  
  
  
 
 

 

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


Re: (ot) .NET vs. CF

2013-03-12 Thread Adam Cameron

Well that's fine (and, yes, that's how you do the deployment). But a
language is what you type in to the IDE or text editor, not what it
compiles down to, or that one deploys. Java byte code is no more Java than
CFML is, for that matter.

CFML is not Java. Java is Java.

A better defence of CFML's Javaness would be to point out that one can
instantiate Java classes and call methods upon them natively in CFML, but
this still doesn't make CFML Java. Plus - on reflection - one can also do
the same with .NET classes/objects I think and no-one is suggesting CFML is
C#...?

CFML is a cool language, but it's dead. The former does not preclude the
latter.

-- 
Adam



On 13 March 2013 01:06, Russ Michaels r...@michaels.me.uk wrote:


 well, , being as it compiles to java byte code, and you can distribute any
 CFML app as pure JAVA, no CFML in sight, which would make it a java app.
 I have never tried this TBH, but I would presume you just deploy your app
 as a war file, so it presumably would not even need a CFML engine, it will
 just run directly on a java servlet engine.





 On Wed, Mar 13, 2013 at 12:56 AM, Adam Cameron 
 adamcameroncoldfus...@gmail.com wrote:

 
  This is a traditionally unpopular metric with CF developers, but there's
  this:
  http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
 
  Java's more prevalent than .NET platform languages, but that's not a
  compelling reason to use either (/or).
 
  And let's not forget that CFML is not Java, so it's a pointless
 comparison
  to make anyhow.
 
  To the OP: CFML is withering away... get used to it. Take whatever
  opportunity you can to shift to a different language. Either .net-based
  languages or Java would be good options.
 
  --
  Adam
 
 
  On 13 March 2013 00:09, Andrew Scott andr...@andyscott.id.au wrote:
 
  
   And I am sure that if you get to the real nuts and bolts of it, Java is
   more popular on the Enterprise level than .Net is.
  
   Regards,
   Andrew Scott
   WebSite: http://www.andyscott.id.au/
   Google+:  http://plus.google.com/113032480415921517411
  
  
  
   On Wed, Mar 13, 2013 at 9:00 AM, Gerald Guido gerald.gu...@gmail.com
   wrote:
  
   
A couple of things come to mind. First is the primary reason I use
 CF:
Speed of development. CF can be seen as a framework for Java much
 like
jQuery is a framework for JavaScript. It takes care of the bulk of
 the
heavy lifting and grunt work so you can focus on writing productive
  code.
   
,NET is a lower level language when compared to CF meaning that you
  have
   to
take care of a lot of low level chores in order to do something, If
 you
wanted to open a bottle of wine with another language you would first
   have
to build the bottle opener, or even smelt the steel, in order to open
  the
bottle. With CF you call CFBottleOpener / and you are done.
   
Justin James http://www.techrepublic.com/search?a=justin+james at
techrepublic.com once remarked that only 25% of the time he spent
   writing
Java was writing productive code, the other 75% was taking care of
 low
level pluming so he can write said productive code. There is a phrase
   down
south that goes I am fixing to get ready to...  That is what it is
  like
with lower level languages like Java and .NET you (often) spend a
 bulk
  of
your time preparing to actually do something.
   
Lastly, you have the entire Java Class Library at your disposal. Say
  you
need to do something that CF was not designed to do or does not do
particularly well you can drop down into Java or use a third party
  class
library to perform said task.
   
In short it reduces complexity, and the amount of code that one needs
  to
write for the same end result. Less code = faster time to market,
 less
chance for bugs and lowers the cost of development.
   
Sorry if I am rambling... It is late in the day.
HTH.
G!
   
On Tue, Mar 12, 2013 at 5:07 PM, Justin Scott 
 leviat...@darktech.org
wrote:
   

  For those of u on this list that have experience with both, can I
   
   
   
   
   
--
Gerald Guido
http://www.myinternetisbroken.com
   
   
   
  
  
 
 

 

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


Re: (ot) .NET vs. CF

2013-03-12 Thread Andrew Scott

Russ,

From memory as I haven't done it for awhile, is that the runtime is bundled
with your application meaning you need to supply a serial number with the
war as well. All that assumption was prior to ColdFusion 10, so it may
handle it differently.


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



On Wed, Mar 13, 2013 at 12:06 PM, Russ Michaels r...@michaels.me.uk wrote:


 well, , being as it compiles to java byte code, and you can distribute any
 CFML app as pure JAVA, no CFML in sight, which would make it a java app.
 I have never tried this TBH, but I would presume you just deploy your app
 as a war file, so it presumably would not even need a CFML engine, it will
 just run directly on a java servlet engine.





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


Re: (ot) .NET vs. CF

2013-03-12 Thread Andrew Scott

No Adam, the compiled version is Java.

Same as both Java and .Net compile down to a bytecode that is interpreted
at the machine language level, which makes machine code not .Net or Java
either :P


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



On Wed, Mar 13, 2013 at 12:15 PM, Adam Cameron 
adamcameroncoldfus...@gmail.com wrote:


 Well that's fine (and, yes, that's how you do the deployment). But a
 language is what you type in to the IDE or text editor, not what it
 compiles down to, or that one deploys. Java byte code is no more Java than
 CFML is, for that matter.

 CFML is not Java. Java is Java.

 A better defence of CFML's Javaness would be to point out that one can
 instantiate Java classes and call methods upon them natively in CFML, but
 this still doesn't make CFML Java. Plus - on reflection - one can also do
 the same with .NET classes/objects I think and no-one is suggesting CFML is
 C#...?

 CFML is a cool language, but it's dead. The former does not preclude the
 latter.

 --
 Adam




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


Re: (ot) .NET vs. CF

2013-03-12 Thread Gerald Guido

 To the OP: CFML is withering away... get used to it. Take whatever
opportunity you can to shift to a different language. Either .net-based
languages or Java would be good options.
*
*
True but tizz a crying shame. I have been all over the map but I have yet
to find a replacement that I *really* enjoy coding in. The closest I have
gotten so far is .NET and RoR. I am really digging C# and ASP.NET MVC 4 but
I have not gotten to the point where I can think in it like I can with CF
or JS. In time I suppose.

Sigh...

G!
*
*
On Tue, Mar 12, 2013 at 8:56 PM, Adam Cameron 
adamcameroncoldfus...@gmail.com wrote:

 o the OP: CFML is withering away... get used to it. Take whatever
 opportunity you can to shift to a different language. Either .net-based
 languages or Java would be good options.





-- 
Gerald Guido
http://www.myinternetisbroken.com


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


Re: (ot) .NET vs. CF

2013-03-12 Thread Dave Watts

 Well that's fine (and, yes, that's how you do the deployment). But a
 language is what you type in to the IDE or text editor, not what it
 compiles down to, or that one deploys. Java byte code is no more Java than
 CFML is, for that matter.

 CFML is not Java. Java is Java.

That's true from a developer's perspective. But from a deployment
perspective, it's very nice to have the ability to hand off an app to
someone who's in charge of a J2EE stack and not have to tell them
anything or do anything special (although they will typically ask you
why on earth the EAR file is so huge).

And frankly that's where the value of Java really is. It's not the
language, which is fairly obtuse and less-than-pleasant. No one's
excited about writing Java code. That's why there are all these other
languages that run on the JVM: Groovy, Clojure, Scala, Jython, JRuby,
etc. It seems like Java programmers spend more time looking for ways
not to write Java, than they do actually writing Java.

 A better defence of CFML's Javaness would be to point out that one can
 instantiate Java classes and call methods upon them natively in CFML, but
 this still doesn't make CFML Java. Plus - on reflection - one can also do
 the same with .NET classes/objects I think and no-one is suggesting CFML is
 C#...?

You can't call .NET assemblies natively from CFML. You need an
interop product for that (provided by JIntegra, kind of clunky). The
level of integration is far greater with CFML and Java. A CFML app IS
a Java app, as far as Java is concerned. Your CFML web app has J2EE
sessions (if you checked that box in the CF Admin), and you can write
an application that's half-CFML, half servlet/JSP/POJO classes and
they will share the same memory space - same application and session
scopes. Your .cfm files are themselves servlets.

 CFML is a cool language, but it's dead. The former does not preclude the
 latter.

The long run is a misleading guide to current affairs. In the long run
we are all dead.
- John Maynard Keynes

In the short run, I'm still making money with CF. I don't do as much
CF work as I used to, and I do more Java and .NET work than I used to,
but CF isn't dead yet. It's declining, but there's plenty of time
before it hits bottom - and that is the natural state of affairs.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

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