Re: Use J2EE datasource to insert Clob on MX6,7

2008-11-03 Thread Matthew Williams
My guess would be it's a Standard, vs an Enterprise install.  Those 
native Oracle drivers are just not up to par with the DataDirect ones.


Matthew Williams
Geodesic GraFX

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314762
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Images Inside of CFDocument Look Awful/Fuzzy

2008-11-03 Thread Peter Boughton
 When I attempt to generate the PDF, however, the images are fuzzy, 
 unsharp, and some appear to have compression artifacts. 
 
 1) Has anyone noticed this?
 2) If so, how did you fix it? How can you get crisper images from the 
 PDF generated from CFDocument?

It's because the images are too small/low quality for printing/PDF.
You will need larger, higher-quality images... probably about 4-5 times larger.

For example, if you want your image to be 30x20 pixels, you might need the 
original image file to be 150x100, and then do:
img src=my150x100.img alt=whatever style=width:30px;height:20px;/

(You might want to experiment to see how small you can get away with - when I 
last did this, it appeared that the images were stored uncompressed in the PDF, 
so filesizes were quite large.)


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314763
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Use J2EE datasource to insert Clob on MX6,7

2008-11-03 Thread James Holmes
I'm assuming Enterprise because of this:

J2EE server:Weblogic8.1u6

The only way to get CF running on that is via the Enterprise WAR/EAR deployment.

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/



2008/11/3 Matthew Williams [EMAIL PROTECTED]:
 My guess would be it's a Standard, vs an Enterprise install.  Those
 native Oracle drivers are just not up to par with the DataDirect ones.


 Matthew Williams
 Geodesic GraFX

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314764
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


coldfusion8 is amazing!

2008-11-03 Thread Don L
It's no wonder why so many developers like it (no, not meant to apple-polish 
Adobe), just a quick reflection.  Just tried silient installation of cf8 on XP 
Home edition beta 2 (unfortunately can't find a XP Home Edition -- released 
copy and can't wait to purchase it over the net...), installation took only 
about 5/6 minutes.  The only thing is, for the last step, I tried to verify its 
success by going to the cf admin, upon login, it did some wizard migration 
thing, it seems all good.  I'm just wondering if this last step is also 
included in the silent installation process, but I was impatient.  Upon 
re-examination of the the properties file, I did not find any reference about a 
default web server, hmm?

Thanks.

Chunshen Li (Don) 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314765
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Images Inside of CFDocument Look Awful/Fuzzy

2008-11-03 Thread Tom Chiverton
On Thursday 30 Oct 2008, Matthew Reinbold wrote:
 When I attempt to generate the PDF, however, the images are fuzzy, unsharp,
 and some appear to have compression artifacts.

I bet they have to be resized to fit the page or something, right ?

-- 
Tom Chiverton
Helping to paradigmatically benchmark synergistic transparent extensible 
patterns





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314760
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Use J2EE datasource to insert Clob on MX6,7

2008-11-03 Thread Matthew Williams
That begs the question then of why is the OP using the data source 
capability into WebLogic over the datasource that you can define in 
ColdFusion? 


Matthew Williams
Geodesic GraFX

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314766
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Adobe Certified ColdFusion Developer Directory

2008-11-03 Thread Dave Phillips
Hi all,

Macromedia had a page on their site that allowed someone to verify that a 
person was a Certified ColdFusion MX 7 Developer or Advanced Certified 
ColdFusion MX 7 Developer.  Does anyone know where this page can be found?  I 
have not been able to located it on Adobe's website. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314767
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Adobe Certified ColdFusion Developer Directory

2008-11-03 Thread Mike Kear
they pulled it down .   They alleged it was something to do with
privacy.   But i think it had more to do with the total disarray the
certification is in.  and continues to be in.

Either way  - by design or incompetence,  the page has gone

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


On Tue, Nov 4, 2008 at 2:17 AM, Dave Phillips
[EMAIL PROTECTED] wrote:
 Hi all,

 Macromedia had a page on their site that allowed someone to verify that a 
 person was a Certified ColdFusion MX 7 Developer or Advanced Certified 
 ColdFusion MX 7 Developer.  Does anyone know where this page can be found?  I 
 have not been able to located it on Adobe's website.

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314768
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: LDAP Query Performance question

2008-11-03 Thread Burns, John D
Mike-

When you do this is this a loop that runs 5500 queries or 1 query that
updates 5500 records? Just curious what the impact is for each
connection.

John

-Original Message-
From: Dawson, Michael [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2008 3:45 PM
To: cf-talk
Subject: RE: LDAP Query Performance question

Oh, by the way, regarding my earlier message.  We have about 5,500
accounts that I update on a daily basis.  Performance isn't really an
issue, however, I have plans to cut this down from taking several
minutes, to just a few dozen seconds.

Mike 

-Original Message-
From: Burns, John D [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2008 12:03 PM
To: cf-talk
Subject: RE: LDAP Query Performance question

It's just a nightly task but it may have 300-400 results each time it
runs. I don't think it'll bring down the house or anything it just
brought up the question to see if there was a more elegant way of doing
it.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314769
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: LDAP Query Performance question

2008-11-03 Thread Dawson, Michael
My current process is to query AD using CFLDAP.  That returns about
5,500 user objects.

Then, I loop over those results and perform a CFQUERY to a SQL 2005
database.  Our SQL server is pretty beefy, so we haven't had any
performance issues.

My goal of this process is to compare names, titles, phones, addresses,
etc, from AD to the daily-updated information in SQL.  If any one of the
data attributes is different, then I perform an LDAP update to refresh
that particular user object.

It does take a few minutes to run, however, I have found a faster method
of connecting AD directly to SQL Server.

When I get some time, I'm going to rewrite this process to actually join
AD and the SQL table and compare the data in one swoop rather than
thousands of swoops.

Then, I will be able to schedule this as a SQL job and take the full
load of of ColdFusion.  Until then, it doesn't hurt a thing.

Mike

-Original Message-
From: Burns, John D [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2008 9:19 AM
To: cf-talk
Subject: RE: LDAP Query Performance question

Mike-

When you do this is this a loop that runs 5500 queries or 1 query that
updates 5500 records? Just curious what the impact is for each
connection.

John

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314770
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: conditional cfchartseries

2008-11-03 Thread Tom Chiverton
On Thursday 30 Oct 2008, Jason Fisher wrote:
 Just keep/set a variable before you define the chart:

This is *much* clearer and more maintainable than iif()/de().

-- 
Tom Chiverton
Helping to synergistically envisioneer ROI





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314761
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: LDAP Query Performance question

2008-11-03 Thread Burns, John D
See, I'm doing the opposite. I'm getting a list of accounts from a SQL
database and trying to then perform a read query to get those user
accounts from AD. However, I can't find an elegant way to do that in 1
query so I'm looping over my results and doing individual queries to the
AD for each account. I'm definitely looking into this AD/SQL linking
which I had never heard of before. Thanks for the help!

John

-Original Message-
From: Dawson, Michael [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2008 10:27 AM
To: cf-talk
Subject: RE: LDAP Query Performance question

My current process is to query AD using CFLDAP.  That returns about
5,500 user objects.

Then, I loop over those results and perform a CFQUERY to a SQL 2005
database.  Our SQL server is pretty beefy, so we haven't had any
performance issues.

My goal of this process is to compare names, titles, phones, addresses,
etc, from AD to the daily-updated information in SQL.  If any one of the
data attributes is different, then I perform an LDAP update to refresh
that particular user object.

It does take a few minutes to run, however, I have found a faster method
of connecting AD directly to SQL Server.

When I get some time, I'm going to rewrite this process to actually join
AD and the SQL table and compare the data in one swoop rather than
thousands of swoops.

Then, I will be able to schedule this as a SQL job and take the full
load of of ColdFusion.  Until then, it doesn't hurt a thing.

Mike

-Original Message-
From: Burns, John D [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2008 9:19 AM
To: cf-talk
Subject: RE: LDAP Query Performance question

Mike-

When you do this is this a loop that runs 5500 queries or 1 query that
updates 5500 records? Just curious what the impact is for each
connection.

John



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314771
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Use J2EE datasource to insert Clob on MX6,7

2008-11-03 Thread Tom Chiverton
On Monday 03 Nov 2008, Matthew Williams wrote:
 That begs the question then of why is the OP using the data source
 capability into WebLogic over the datasource that you can define in
 ColdFusion?

We used data sources defined in WebLogic because they could then be managed by 
the same stuff that managed the ones the other J2EE apps in the server used.

-- 
Tom Chiverton
Helping to revolutionarily differentiate networks





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314772
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: LDAP Query Performance question

2008-11-03 Thread Dawson, Michael
Would it help if you used some sort of group membership?

For example, your SQL query would add all accounts to a domain group, or
remove accounts, as needed.  Then, you would just pull all members of
that group in one CFLDAP query.

I do something similar to this every morning.  My process determines who
is an active employee, faculty or student.

I have a SSIS job that pulls current employment information from our HR
system.  It then checks to see if each employee is a member of our
Current Employees domain group.  If it is not a member, it adds them.

Conversely, it also checks to see if any group members are no longer
employed.  If not, they are removed from the domain group.

The result is the domain group is competely updated every morning.
Performance is high, because group membership does not change greatly on
a daily basis.  You may add/drop a member here and there, but the entire
group is usually not completely changed.

mike 

-Original Message-
From: Burns, John D [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2008 9:31 AM
To: cf-talk
Subject: RE: LDAP Query Performance question

See, I'm doing the opposite. I'm getting a list of accounts from a SQL
database and trying to then perform a read query to get those user
accounts from AD. However, I can't find an elegant way to do that in 1
query so I'm looping over my results and doing individual queries to the
AD for each account. I'm definitely looking into this AD/SQL linking
which I had never heard of before. Thanks for the help!

John

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314773
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Post Code Check

2008-11-03 Thread Jason Congerton
I am trying to create a postal code and delivery cost app for my company,

I have set the tables up as 

tbl name au_zones: au_zone_id, au_zone(postal zone), au_basic(min cost), 
au_costpk(cost per kilo)
tbl name postCodes: post_code_id, postcode(postal code), pc_zoneid(link to 
au-zones)

tbl name products: productid, product_name, weight.

The calculation will come from postcode to zone 
au_basic+(au_costpk*product_weight)

The user will use a form with a text box for post code and a select box for 
products (multiples should be allowed).

When the user fills out and submits the form my products query will have 1 or 
multiple records, so i relise i will have to loop throught the query to get
the individual product weights. This is where my knowledge needs enlightening, 
how do i loop throught the query and and reference the weight against the
au_costpk field from for every product found, and then display it to the 
screen. Would i be on the right track using below?



cfloop query=qryName

cfset qryName.pdname  =  
(qryname.weight*otherqryname.au_costpk)+otherqryname.au_basic

/cfloop

Any ideas?

Thanks 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314774
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Parsing timestamp set by phpBB

2008-11-03 Thread Jason Durham
I have a date represented as 993124800 in my database that php's
date() function is able understand and format.  I'm running into dead
ends trying to have ColdFusion parse this date correctly.  That date
should work out to...

 

June 21, 2001, 7:00 am

 

I've searched Google, RiaForge and CFLib.  The only working solution is
to use Sean Corfield's cf_php but I'm not sure my shared host will
accept his jars.  Can anyone offer some guidance?

 

TIA

 

Jason Durham

 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314775
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Alternatives for Assembla's SVN

2008-11-03 Thread Rick Faircloth
Hi, all...

I've been using Assembla's SVN service and it's worked well, espeically 
for a free service.

However, they're now becoming a paid service unless the spaces are made 
public.
I don't mind paying (it would cost me $17.30 per month under the new 
plans) for a good
service.  I've never tried another service, so I'd like some 
recommendations so I can compare
and see if I want to stay with Assembla.

SVN service recommendations?

Thanks...

Rick

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314776
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Parsing timestamp set by phpBB

2008-11-03 Thread C S
I have a date represented as 993124800 in my database that php's
date() function is able understand and format.  I'm running into dead
ends trying to have ColdFusion parse this date correctly.  That date
should work out to...


That looks like an epoch time. Try 
http://www.cflib.org/index.cfm?event=page.udfbyidudfid=654 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314777
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Parsing timestamp set by phpBB

2008-11-03 Thread Wil Genovese
If its EPOCH time then this will work.  I wrote a simple function for that
ages ago.

cfscript

/*#
# epochtime by Wil
Genovese   #
#take a time format and convert either to or from
epoch   #

# #
#datetime - actual value to
convert   #
#conversion - the type of conversion to
do#
#  E2D for epoch to
date  #
#  D2E for date to
epoch  #
# example
usage:  #
#  Convert 1162576737 to
#epochtime(1162576737,E2D,0)#br  #
 #  Convert '#now()#' to
#epochtime(now(),D2E,1)#br  #

#*/

function epochtime(datetime,method) {
var epoch = January 1 1970 00:00:00;
if (method eq E2D){
return Dateadd(s,datetime,epoch);
} else if (method EQ D2E) {
return DateDiff(s,epoch,datetime);
}
}
/cfscript

Wil Genovese
Sr. Web Application Developer



On Mon, Nov 3, 2008 at 10:37 AM, C S [EMAIL PROTECTED] wrote:

 I have a date represented as 993124800 in my database that php's
 date() function is able understand and format.  I'm running into dead
 ends trying to have ColdFusion parse this date correctly.  That date
 should work out to...


 That looks like an epoch time. Try
 http://www.cflib.org/index.cfm?event=page.udfbyidudfid=654

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314778
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Parsing timestamp set by phpBB

2008-11-03 Thread Jason Durham
Thank you Wil and CS.  I was able to output the date how I want it
with...

#DateFormat(DateAdd(s, 993124800, January 1 1970
00:00:00),long)#
#TimeFormat(DateAdd(h,-getTimeZoneInfo().utcHourOffset,DateAdd(s,
993124800, January 1 1970 00:00:00)),long)#

Now I'll go back through it to simplify its reuse.  Thanks!

-Original Message-
From: Wil Genovese [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2008 10:49 AM
To: cf-talk
Subject: Re: Parsing timestamp set by phpBB

If its EPOCH time then this will work.  I wrote a simple function for
that
ages ago.

cfscript

/*##
###
# epochtime by Wil
Genovese   #
#take a time format and convert either to or from
epoch   #

#
#
#datetime - actual value to
convert   #
#conversion - the type of conversion to
do#
#  E2D for epoch to
date  #
#  D2E for date to
epoch  #
# example
usage:  #
#  Convert 1162576737 to
#epochtime(1162576737,E2D,0)#br  #
 #  Convert '#now()#' to
#epochtime(now(),D2E,1)#br  #


#*/

function epochtime(datetime,method) {
var epoch = January 1 1970 00:00:00;
if (method eq E2D){
return Dateadd(s,datetime,epoch);
} else if (method EQ D2E) {
return DateDiff(s,epoch,datetime);
}
}
/cfscript

Wil Genovese
Sr. Web Application Developer



On Mon, Nov 3, 2008 at 10:37 AM, C S [EMAIL PROTECTED] wrote:

 I have a date represented as 993124800 in my database that php's
 date() function is able understand and format.  I'm running into dead
 ends trying to have ColdFusion parse this date correctly.  That date
 should work out to...


 That looks like an epoch time. Try
 http://www.cflib.org/index.cfm?event=page.udfbyidudfid=654

 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314779
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Parsing timestamp set by phpBB

2008-11-03 Thread Eric Haskins
?php
echo date(F d, Y,g:i a,'993124800');
?

Gives me this output???

June 21,2001,8:00 am

Eric Haskins



On Mon, Nov 3, 2008 at 11:31 AM, Jason Durham [EMAIL PROTECTED] wrote:

 I have a date represented as 993124800 in my database that php's
 date() function is able understand and format.  I'm running into dead
 ends trying to have ColdFusion parse this date correctly.  That date
 should work out to...



 June 21, 2001, 7:00 am



 I've searched Google, RiaForge and CFLib.  The only working solution is
 to use Sean Corfield's cf_php but I'm not sure my shared host will
 accept his jars.  Can anyone offer some guidance?



 TIA



 Jason Durham





 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314780
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Parsing timestamp set by phpBB

2008-11-03 Thread Eric Haskins
Sorry misread able as unable :) its monday but yeah it is Epoch

Eric

On Mon, Nov 3, 2008 at 12:11 PM, Eric Haskins [EMAIL PROTECTED] wrote:

 ?php
 echo date(F d, Y,g:i a,'993124800');
 ?

 Gives me this output???

 June 21,2001,8:00 am

 Eric Haskins




 On Mon, Nov 3, 2008 at 11:31 AM, Jason Durham [EMAIL PROTECTED] wrote:

 I have a date represented as 993124800 in my database that php's
 date() function is able understand and format.  I'm running into dead
 ends trying to have ColdFusion parse this date correctly.  That date
 should work out to...



 June 21, 2001, 7:00 am



 I've searched Google, RiaForge and CFLib.  The only working solution is
 to use Sean Corfield's cf_php but I'm not sure my shared host will
 accept his jars.  Can anyone offer some guidance?



 TIA



 Jason Durham





 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314781
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: How can you have a variable topmargin height on CF8 CFDOCUMENT so that you can have 2 differently sized headers?

2008-11-03 Thread Chris Johnson
I did find one possible solution that I don't like, but should support most 
report templates that need differently sized primary and secondary headers.

I'm creating two cfdocumentsections with different topmargin values.  Each 
cfdocumentsection has their own cfdocumentitem headers.

The next step is to figure out roughly how many lines I can fit on the first 
page with all conditions met as there are a couple different formatting options 
we use for aggregate reports vs individual monthly summaries, etc.

Then loop over the output previous to the cfdocument and parse it in two so you 
have a first page set and then the rest of it.

May have to process the output twice, nearly doubling the processing time, but 
you get the dynamic headers =/

Really wish Adobe would address this.. It just seems crazy that you can't 
specify at least a 2nd level of margins.



 Another CF8 CFDocument problem here...
 
 With CF7, you could specify a cfdocument topmargin= value that was 
 shorter than the height of the value going in the cfdocumentitem 
 type=header.  The cfdocitem header would just continue past and 
 overlap the content below.
 
 This was fixed by adding a padding-top:XXX to the content so that on 
 the first page it just shifted the content down a bit to accommodate 
 for the first page having a larger header.
 
 However, in CF8, that same setup now shrinks the header so that 
 everything fits within the size set in the cfdocument topmargin value.
 
 
 The problem here is that we have been using a PDF for invoicing that 
 has a master header on the first page with our logo, company info, 
 etc.
 
 Then on each subsequent page, a much shorter header with just the 
 client name and the current page number.
 
 So in CF7, the cfdocument tag had a topmargin value of 1.5.  This 
 along with the extra padding from the top of the div holding the 
 content below worked just fine.
 
 But now, I have to change the topmargin value to about 3.5 or in 
 order to avoid the header shrinking smaller.
 
 So not a problem... until you get to the second page.  Now on every 
 following page, there is a large 2 gap between the header and content 
 because of the new larger topmargin value.
 
 
 I've tried using CSS tricks like holding the header stuff in a div 
 and trying height/padding/margin to force the content to appear 
 larger, but now it seems that none of that works and CF scales/zooms 
 the size of the header content to whatever percentage will fit in that 
 topmargin value.
 
 
 
 I did read that CF8 uses the iText libraries and that via createObject 
 you could modify margins with setMargins()... I believe this was on 
 CFSearching.com.
 
 But I have yet to be able to find an example of how I can insert my 
 cfscript code to only change the margins for the first page, or to 
 only change the margins for all non-first pages.
 
 
 
 Has anyone made this work?  This is quite a common layout design for 
 things CFDocument could be used for.. I have to imagine that someone 
 else has run into the same problem?
 
 
 Thanks in advance, I love cfpdf for its populate feature, so I 
 really want to be able to make that move to CF8 =/


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314782
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Post Code Check

2008-11-03 Thread Jason Fisher
Do it all in one query:

SELECT p.product_name, 
p.weight,
(
SELECT (z.au_basic + (z.au_costpk * p.weight))
FROM au_zones z INNER JOIN
postCodes c ON z.au_zone_id = c.pc_zone_id
WHERE c.postcode = cfqueryparam= cfsqltype=CF_SQL_VARCHAR 
value=#form.postalCode#
) AS deliveryCost
FROM products p
WHERE p.productid IN ( cfqueryparam cfsqltype=CF_SQL_VARCHAR 
value=#form.productIDList# list=Yes )

cfoutput query=queryName
#product_name# [#weight# lbs]: $#deliveryCost# to ship
/cfoutput

That will give you a line for every selected product, with the name, weight, 
and deliveryCost all computed in one query.
 I am trying to create a postal code and delivery cost app for my 
 company,
 
 I have set the tables up as 
 
 tbl name au_zones: au_zone_id, au_zone(postal zone), au_basic(min 
 cost), au_costpk(cost per kilo)
 tbl name postCodes: post_code_id, postcode(postal code), 
 pc_zoneid(link to au-zones)
 
 tbl name products: productid, product_name, weight.
 
 The calculation will come from postcode to zone 
 au_basic+(au_costpk*product_weight)
 
 The user will use a form with a text box for post code and a select 
 box for products (multiples should be allowed).
 
 When the user fills out and submits the form my products query will 
 have 1 or multiple records, so i relise i will have to loop throught 
 the query to get
 the individual product weights. This is where my knowledge needs 
 enlightening, how do i loop throught the query and and reference the 
 weight against the
 au_costpk field from for every product found, and then display it to 
 the screen. Would i be on the right track using below?
 
 
 
 cfloop query=qryName
 
 cfset qryName.pdname  =  (qryname.weight*otherqryname.
 au_costpk)+otherqryname.au_basic
 
 /cfloop
 
 Any ideas?
 
 Thanks 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314783
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Parsing timestamp set by phpBB

2008-11-03 Thread Paul Hastings
Eric Haskins wrote:
 Sorry misread able as unable :) its monday but yeah it is Epoch

just fyi, there are more than one Epoch. java uses ms since 1-jan-1970, unix 
uses seconds since 1-jan-1970, cf/db2/excel use decimal days since 31-dec-1899. 
you need to be careful to get the units  Epoch right.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314784
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


variables declaration in udfs

2008-11-03 Thread Brian Dumbledore
I have a udf, to force a query in the udf to be local, I jsut do a cfset var 
qname =  before I do the cfquery, I have a bunch of queries and variabels in 
the udf, is there no other easier way than to put as many cfsets as there are 
variables??? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314785
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: variables declaration in udfs

2008-11-03 Thread Adrian Lynch
cfset var LOCAL = StructNew() or {} if on CF8.

Then reference all your local vars as LOCAL.queryName etc.

Adrian
Building a database of ColdFusion errors at http://cferror.org/

-Original Message-
From: Brian Dumbledore
Sent: 03 November 2008 19:50
To: cf-talk
Subject: variables declaration in udfs


I have a udf, to force a query in the udf to be local, I jsut do a cfset
var qname =  before I do the cfquery, I have a bunch of queries and
variabels in the udf, is there no other easier way than to put as many
cfsets as there are variables???


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314786
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Cf8 bug?

2008-11-03 Thread Don
Perhaps you've ran into this before. Within a cfc I'm simply looping over a 
query object and using the ID value from the query to call an external cfc 
method that eventually calls a method contained within the same CFC as the code 
below appears.

The problem is that using dot notation or array syntax I'm getting strange 
behaviour. It seems that while I've created an array [ daNums ] that shows on 
output that the right number IS being returned and USED, that when I use that 
same ID value to retreive my object, its returning the same object for each 
iteration of the loop. 

for example the first time through it gets a value of (1) which corresponds to 
an particular object, then (2). But with the code below I am always getting 
(2)(2). Not (1)(2). Or when I use array notation I always get [1][1]. For some 
reason it seems things are not iterating properly.

Is this because in the object creation call the method that eventually gets 
called to create the object exists within the same cfc as this code?

cfquery name=local.qryItems 
datasource=#application.datasource#

select  *
fromitems

/cfquery

cfset local.items = arrayNew(1)
cfset local.daNums = arrayNew(1)

cfloop query=local.qryItems

!--- this code always returns (2)(2) ---
!---
cfset obj = 
application.cfcs.items.itemGateway.getItemObject(local.qryItems.id)
cfset arrayappend(local.daNums, local.qryItems.id)
cfset arrayappend(local.items, obj)
---

!--- this code always returns (1)(1) ---  

cfset arrayappend(local.daNums, local.qryItems.id)
cfset arrayappend(local.items, 
application.cfcs.items.itemGateway.getItemObject(local[qryItems][id]) )

/cfloop   

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314787
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Cf8 bug?

2008-11-03 Thread Mark Kruger
Looks to me like you need a row number in your query call Consider this
code:

local[qryItems][id]) 

This will always get the first row - yes? Since you are in a loop...
Shouldn't this be just id (wich would give you
local.qryItems['id'][currentrow]).

I would also say that you better have a darn good reason for doing it this
way... It's pretty confusing :) 


-Mark 


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

-Original Message-
From: Don [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 03, 2008 3:52 PM
To: cf-talk
Subject: Cf8 bug?

Perhaps you've ran into this before. Within a cfc I'm simply looping over a
query object and using the ID value from the query to call an external cfc
method that eventually calls a method contained within the same CFC as the
code below appears.

The problem is that using dot notation or array syntax I'm getting strange
behaviour. It seems that while I've created an array [ daNums ] that shows
on output that the right number IS being returned and USED, that when I use
that same ID value to retreive my object, its returning the same object for
each iteration of the loop. 

for example the first time through it gets a value of (1) which corresponds
to an particular object, then (2). But with the code below I am always
getting (2)(2). Not (1)(2). Or when I use array notation I always get
[1][1]. For some reason it seems things are not iterating properly.

Is this because in the object creation call the method that eventually gets
called to create the object exists within the same cfc as this code?

cfquery name=local.qryItems
datasource=#application.datasource#

select  *
fromitems

/cfquery

cfset local.items = arrayNew(1)
cfset local.daNums = arrayNew(1)

cfloop query=local.qryItems

!--- this code always returns (2)(2) ---
!---
cfset obj =
application.cfcs.items.itemGateway.getItemObject(local.qryItems.id)
cfset arrayappend(local.daNums, local.qryItems.id)
cfset arrayappend(local.items, obj)
---

!--- this code always returns (1)(1) ---  

cfset arrayappend(local.daNums, local.qryItems.id)
cfset arrayappend(local.items,
application.cfcs.items.itemGateway.getItemObject(local[qryItems][id]) )

/cfloop   



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314788
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Post Code Check

2008-11-03 Thread Jason Congerton
excellent, thank you very much. works a treat.
 Do it all in one query:
 
 SELECT p.product_name, 
 p.weight,
 (
 SELECT (z.au_basic + (z.au_costpk * p.weight))
 FROM au_zones z INNER JOIN
 postCodes c ON z.au_zone_id = c.pc_zone_id
 WHERE c.postcode = cfqueryparam= cfsqltype=CF_SQL_VARCHAR 
 value=#form.postalCode#
 ) AS deliveryCost
 FROM products p
 WHERE p.productid IN ( cfqueryparam cfsqltype=CF_SQL_VARCHAR 
 value=#form.productIDList# list=Yes )
 
 cfoutput query=queryName
 #product_name# [#weight# lbs]: $#deliveryCost# to ship
 /cfoutput
 
 That will give you a line for every selected product, with the name, 
 weight, and deliveryCost all computed in one query.
  I am trying to create a postal code and delivery cost app for my 
  company,
  
  I have set the tables up as 
  
  tbl name au_zones: au_zone_id, au_zone(postal zone), au_basic(min 
  cost), au_costpk(cost per kilo)
  tbl name postCodes: post_code_id, postcode(postal code), 
  pc_zoneid(link to au-zones)
  
  tbl name products: productid, product_name, weight.
  
  The calculation will come from postcode to zone 
  au_basic+(au_costpk*product_weight)
  
  The user will use a form with a text box for post code and a select 
 
  box for products (multiples should be allowed).
  
  When the user fills out and submits the form my products query will 
 
  have 1 or multiple records, so i relise i will have to loop throught 
 
  the query to get
  the individual product weights. This is where my knowledge needs 
  enlightening, how do i loop throught the query and and reference the 
 
  weight against the
  au_costpk field from for every product found, and then display it to 
 
  the screen. Would i be on the right track using below?
  
  
  
  cfloop query=qryName
  
  cfset qryName.pdname  =  (qryname.weight*otherqryname.
  au_costpk)+otherqryname.au_basic
  
  /cfloop
  
  Any ideas?
  
  Thanks 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314789
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Script to move email to from undelivr to spool?

2008-11-03 Thread Nick Gleason
Hi folks,

We need to develop a script that can move mail from the undelivr folder to
the spool folder in CF.  My recollection is that there was some talk on this
board a while back about this issue and maybe that a script had been
developed.  I checked the archives and riaforge with no luck.  Does anyone
know if such a script is already built and available?

Thanks in advance,

Nick




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314790
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Script to move email to from undelivr to spool?

2008-11-03 Thread Shannon Peevey
What platform are you on, and what is the criteria needed to move the messages?

Speeves

On 11/3/08, Nick Gleason [EMAIL PROTECTED] wrote:
 Hi folks,

 We need to develop a script that can move mail from the undelivr folder to
 the spool folder in CF.  My recollection is that there was some talk on this
 board a while back about this issue and maybe that a script had been
 developed.  I checked the archives and riaforge with no luck.  Does anyone
 know if such a script is already built and available?

 Thanks in advance,

 Nick




 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314791
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Script to move email to from undelivr to spool?

2008-11-03 Thread AJ Mercer
This might give you some ideas

http://www.coldfusionjedi.com/index.cfm/2006/1/16/Yet-another-project--announcing-SpoolMail

you can manage your undelivered emails from within CFIDE


On Mon, Nov 3, 2008 at 10:27 PM, Nick Gleason [EMAIL PROTECTED]wrote:

 Hi folks,

 We need to develop a script that can move mail from the undelivr folder to
 the spool folder in CF.  My recollection is that there was some talk on
 this
 board a while back about this issue and maybe that a script had been
 developed.  I checked the archives and riaforge with no luck.  Does anyone
 know if such a script is already built and available?

 Thanks in advance,

 Nick




 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314792
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


CF DATEDIFF Function

2008-11-03 Thread LSD 4Me
Hi,

Can anybody explain why the return value is '0' when determining the difference 
in dates between today and tommorow? 

IE...

cfset showdiff = #datediff('d',now(),'11/04/2008')#

cfdump var=#showdiff#

What i interpret from the datediff statement is that I need the difference in 
(days) between now() which is 11/03/2008 and 11/04/2008...Should be 1...Keep 
getting 0.

Any ideas? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314793
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Script to move email to from undelivr to spool?

2008-11-03 Thread Nick Gleason
Shannon,

Hey there.  We're on IIS.  But I was imagining that this would be a CF file
run by scheduled task once a day or so.  However, I'm open to other
approaches as well.

Nick


 

 -Original Message-
 From: Shannon Peevey [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 03, 2008 8:11 PM
 To: cf-talk
 Subject: Re: Script to move email to from undelivr to spool?
 
 What platform are you on, and what is the criteria needed to 
 move the messages?
 
 Speeves
 
 On 11/3/08, Nick Gleason [EMAIL PROTECTED] wrote:
  Hi folks,
 
  We need to develop a script that can move mail from the undelivr 
  folder to the spool folder in CF.  My recollection is that 
 there was 
  some talk on this board a while back about this issue and 
 maybe that a 
  script had been developed.  I checked the archives and 
 riaforge with 
  no luck.  Does anyone know if such a script is already 
 built and available?
 
  Thanks in advance,
 
  Nick
 
 
 
 
  
 
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314794
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF DATEDIFF Function

2008-11-03 Thread Azadi Saryev
because your server time is different from your computer's time? your
server may be in a timezone where it is already 'tomorrow' while where
you are it is still 'today', so now() on the server will return your
'tomorrow' date...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



LSD 4Me wrote:
 Hi,

 Can anybody explain why the return value is '0' when determining the 
 difference in dates between today and tommorow? 

 IE...

 cfset showdiff = #datediff('d',now(),'11/04/2008')#

 cfdump var=#showdiff#

 What i interpret from the datediff statement is that I need the difference in 
 (days) between now() which is 11/03/2008 and 11/04/2008...Should be 1...Keep 
 getting 0.

 Any ideas? 

   

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314795
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfgridcolumn

2008-11-03 Thread Alex Yohn
I am having the exact same problem.  I populate the GRID from a query, but on 
the select box columns, if a value is already selected, I do not get the drop 
down of all the possible values, only the value selected.

cfgridcolumn name=misc_cd header=Misc Cd select=true 
values=#valuelist(getMiscExpenseItems.misc_cd)# 
valuesdisplay=#valuelist(getMiscExpenseItems.misc_desc)#

It appears the query is overriding the values/valuesdisplay option.  Any ideas? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314796
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF DATEDIFF Function

2008-11-03 Thread Paul Hastings
Azadi Saryev wrote:
 because your server time is different from your computer's time? your

well there's that or that dateDiff returns results for *whole* days (or 
whatever). try using hours.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314797
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF DATEDIFF Function

2008-11-03 Thread LSD 4Me
Problem is that im not storing time with the date... Also, the return value is 
'0' for today, and tommorow...i.e

Today
#datediff(d,now(),now())#

Tommorow
#datediff(d,now(),now()+1)#

I managed to resolve this with another solution...

cfset currentdate = #dateformat(now(),'mm,dd,')#
cfset ddiff = (#currentdate# - #db_data#)

This returns the INT values i need to begin with (-,0,+)

Thanks neways! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314798
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF DATEDIFF Function

2008-11-03 Thread Azadi Saryev
it's a bad idea to store dates in your db as text. store them as dates.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



LSD 4Me wrote:
 Problem is that im not storing time with the date... Also, the return value 
 is '0' for today, and tommorow...i.e

 Today
 #datediff(d,now(),now())#

 Tommorow
 #datediff(d,now(),now()+1)#

 I managed to resolve this with another solution...

 cfset currentdate = #dateformat(now(),'mm,dd,')#
 cfset ddiff = (#currentdate# - #db_data#)

 This returns the INT values i need to begin with (-,0,+)

 Thanks neways! 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314799
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Script to move email to from undelivr to spool?

2008-11-03 Thread Dave Watts
 Hey there.  We're on IIS.  But I was imagining that this would be a CF file
 run by scheduled task once a day or so.  However, I'm open to other
 approaches as well.

Why not just write a batch file and schedule that using the Windows
scheduler? That would likely be far more efficient.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314800
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


is ColdFusion still alive in Atlanta

2008-11-03 Thread Michael Firth
Hi all,
 
Man, I have been pounding the job boards here in Atlanta, but seems like all 
positions are for .Net or PHP.  This begs to ask the question is Coldfusion 
still alive in the Atlanta, area.  I've seen a lot of jobs for other locations  
around the country but all searches come up with zero except postings for UPS 
jobs.
 
I almost get the feeling everybody is moving away at least down here.  Love to 
hear any comments on this from people in the atlanta area.
 
Thanks
 
Mike
_
Stay organized with simple drag and drop from Windows Live Hotmail.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_102008

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-jobs-talk/message.cfm/messageid:4084
Subscription: http://www.houseoffusion.com/groups/cf-jobs-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.11