Re: Date format question

2010-01-05 Thread gary gilbert

I would say that the client who is using your api is not using the
datetime.parse method in .net which allows you to add a culture specific
format when a string date is parsed.

the .NET parse method is an overloaded .NET method that can either take the
following forms.

Parse(String) http://msdn.microsoft.com/en-us/library/1k1skd40.aspx
Parse(String, 
IFormatProvider)http://msdn.microsoft.com/en-us/library/kc8s65zs.aspx
Parse(String, IFormatProvider,
DateTimeStyles)http://msdn.microsoft.com/en-us/library/ey1cdcx8.aspx

Regards

Gary Gilbert
http://www.garyrgilbert.com/blog


On Tue, Jan 5, 2010 at 11:14 AM, Stefan Richter ste...@flashcomguru.comwrote:


 My CF app stores dates in a MySQL database which I often submit simply
 using NOW() in my SQL statement. The resulting database entry has this
 format:
 2008-01-29 11:08:40
 Other times I am using a default MYSQL value of CURRENT_TIMESTAMP in a
 timestamp field, which results in the same format.

 I have a public API which returns the date in the same format. Now one of
 my clients told me this:
 .Net functions do not recognize the date/time strings that the API returns
 making all date/time’s invalid.

 Is that really the case? Am I doing something wrong, or is he?

 Regards,

 Stefan



 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329413
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 8 and Access 2007

2010-01-05 Thread gary gilbert

In the coldfusion administrator choose datasources, in the dropdown list of
datatypes choose microsoft access, add a datasource name click next, on the
next screen browse to the mdb file and click finish.

Gary Gilbert
http://www.garyrgilbert.com/blog


On Sun, Dec 20, 2009 at 3:03 PM, Terry Troxel te...@it-werks.com wrote:


 How do I create an ODBC connection using an Access 2007 Database in CF 8?



 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329414
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: How long to get new posts picked up by CFBloggers.org?

2009-01-20 Thread gary gilbert
I believe there is a 30 minute scheduler running that goes through all the
feeds, though it could be a bit longer.  You could also ping cfbloggers

in my case:

http://www.coldfusionbloggers.org/ping.cfm?burl=http://www.garyrgilbert.com/blog

That will naturally force an immediate update of your site.


Gary Gilbert
http://www.garyrgilbert.com/blog


On Tue, Jan 20, 2009 at 1:39 PM, Andy Matthews andymatth...@comcast.netwrote:

 Ray added me to CFBloggers.org about 5 days ago. Since then I've made two
 new posts but neither of them have gotten picked up by the site. Do I need
 to do something specific or should it be automatic?

 I posted this on the 17th:

 http://www.andymatthews.net/read/2009/01/17/Locks-of-Love:-or-how-I-learned-to-let-go

 and this on the 19th (last night):

 http://www.andymatthews.net/read/2009/01/19/shrinkURL---API-wrapper-for-URL-shortening-services

 Is there someone who gets picked up on that site that could let me know if
 I need to update anything on my feed, or do I need to ping the service with
 each new post?

 

~|
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:318206
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Railo Hosting or a very basic VPS to install it on

2009-01-20 Thread gary gilbert
I have a ultra root package with http://viviotech.net

Full Root Access
- 5 MB (50 GB) Disk Space
- 1024 MB (1 GB) RAM
- 2048 MB (2 GB) Swap
- 1.5Mbps Unlimited* Transfer

Which runs about 50 USD/month.  Been running them since end of November no
complaints so far.

Gary Gilbert
http://www.garyrgilbert.com/blog


On Tue, Jan 20, 2009 at 5:16 PM, Adrian Lynch cont...@adrianlynch.co.ukwrote:

 I'm looking to reduce costs by getting a basic VPS package and installing
 Railo, Apache, Tomcat/Resin and SQL Server 2008 Express.

 I've been with Crystaltech and HostMySite for a while now, I love the whole
 VPS approach but the cost is a bit much for some projects so I thought I'd
 give the above techs a go.

 Does anyone have any recommendations?

 Thanks in advance.

 Adrian


 

~|
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:318241
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Trouble getting this loop to work ...

2008-09-25 Thread gary gilbert
I have to agree with Gert on this one.

That function needs to be rewritten so that it can accept a list of values.
Would be interesting to see what the function is doing too.

Running multiple queries in that way is unnecessarily network heavy.


Gary Gilbert
http://www.garyrgilbert.com/blog


On Thu, Sep 18, 2008 at 6:03 PM, Gert Franz [EMAIL PROTECTED] wrote:

 Well of course, you overwrite the query every time you iterate to the
 next value. The query always has the same name, so CFMX overwrites it.
 Nevertheless it is a bad solution. You should do something like this:
 cfquery name=getCateories...
 select * from categories where category in ('#mcategories#')
 /cfquery

 You could of course have your form, where the user selects the
 categories store the categoryID's and then do an in over these categoryID's

 Greetings from Switzerland
 Gert Franz
 Railo Technologies GmbH
 [EMAIL PROTECTED]
 www.railo.ch

 Join our Mailing List
 german:http://de.groups.yahoo.com/group/railo/
 english:   http://groups.yahoo.com/group/railo_talk/
 linked in: http://www.linkedin.com/e/gis/71368/0CF7D323BBC1



 John Seelye schrieb:
  Thanks for the reply.
 
  ROL.getcategorydetailnames()
 
  Is actually a PostGRESQL function that is called within the cfquery ...
 
  The function only accepts one input (an integer) per iteration, so in my
 form that calls this page when someone selects more than one category I need
 the entire query to execute (and give output) for each category id ...
 (#mcategories#).
 
  The way I have it written it only gives the output for the last category
 id passed to it.
 
  The output I am looking for would look something like ...
 
  Category 1 - thing 1, thing 2, thing 3, thing 4
  Category 2 - thing 11, thing 12, thing 13, thing 14
  Category 3 - thing 20, thing 21
  and so on ...
 
  I need to get the categories from user input and the things from the
 database with that function.
 
  The function works like a charm with just 1 category passed to 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:313046
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Railo 3 Released

2008-09-09 Thread gary gilbert
Railo has just announced the release of their new major version Railo 3

You can check out the lastest features over on the Railo website

http://www.railo.ch/blog/index.cfm/2008/9/9/Railo-30-released--Features-part-1

Some really cool stuff those guys in Switzerland are doing!

Gary Gilbert
http://www.garyrgilbert.com/blog


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312248
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: File upload 250 MB Discussion

2008-08-28 Thread gary gilbert
You do realize of course that this is a Coldfusion mailing list and not a 
Struts and/or JSP mailing list?



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311703
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Repost: cfgrid and cfform enctype=multipart/form-data

2008-08-22 Thread gary gilbert
Hi David,

Are you planning on submitting binary data from your grid?  If not there
isn't any reason to use the multipart.

I also received the error when submitting the page.  I do believe this is a
bug and should be reported.


Gary Gilbert
http://www.garyrgilbert.com/blog


On Thu, Aug 21, 2008 at 6:41 PM, David Byers [EMAIL PROTECTED] wrote:

 (Sorry for the repost... didn't get any responses yesterday and I'm
 really stuck here.)

 Greetings!

 I'm having a problem with cfgrid and I need some assistance.  Whenever I
 try to submit an HTML format grid with the enctype=multipart/form-data
 attribute applied to the cfform tag, I receive The submitted cfgrid
 form field is corrupt (name: __CFGRID__MYTEST__MYGRID value:
 ,__CFGRID__COLUMN__=DESCRIPTION; __CFGRID__DATA__=my Test 1) as an
 error.

 Traditionally, I would look for semicolons in the grid data.  This time,
 it appears as though the myGrid field is being passed twice to the
 action page.  If I remove the enctype attribute, the form works and
 submits the grid data just fine.

 Has anyone else experienced this and/or have a workaround?

 !--- BEGIN CODE SAMPLE - FILE t1.cfm ---
 cfscript
   variables.myQuery = queryNew(ID,Description,integer,varchar);

   queryAddRow(variables.myQuery,1);
   querySetCell(variables.myQuery,ID,1);
   querySetCell(variables.myQuery,Description,my Test 1);

   queryAddRow(variables.myQuery,1);
   querySetCell(variables.myQuery,ID,2);
   querySetCell(variables.myQuery,Description,my Test 2);
 /cfscript

 cfform name=myTest format=html action=t2.cfm method=post
 enctype=multipart/form-data
 cfgrid
   name=myGrid
   format=html
   selectmode=row
   pagesize=20
   autowidth=true
   preservepageonsort=true
   selectonload=false
   striperows=yes
   query=variables.myQuery
   width=360

   cfgridcolumn name=Description
 /cfgrid

 cfinput type=submit name=btn_submit value=Go
 /cfform
 !--- END CODE SAMPLE ---

 !--- BEGIN CODE SAMPLE - FILE t2.cfm ---
 cfdump var=#form#
 !--- END CODE SAMPLE ---

 TIA... I sincerely appreciate any input you have.

 David Byers
 Applications Developer - Internet

 Shift4 Corporation
 1491 Center Crossing Road
 Las Vegas, NV  89144-7047

 702.597.2480
 fax 702.597.2499
 www.shift4.com
 [EMAIL PROTECTED]


 Shift4 Corporation Copyright and Confidentiality Statement

 The information contained in this electronic mail message may be
 proprietary to, confidential to, privileged information of, and/or the
 copyright of the Shift4 Corporation. It may be controlled in part or in full
 by contracted relationship and/or non-disclosure documentation. It is
 intended solely for the addressee(s). ACCESS BY ANY OTHER PARTY IS
 UNAUTHORIZED AND STRICTLY FORBIDDEN. The sender does not waive any related
 rights and obligations. If this message (or any attachments contained
 therein) has been sent to your organization in error, or have been otherwise
 intercepted, please do not review, distribute, or copy contents. Please
 reply to the sender that A MESSAGE WAS RECEIVED IN ERROR and then please
 delete the message including all related attachments from all (where
 applicable) email transfer agents, message stores, email gateways, email
 scanning systems, and/or logging systems.


 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311399
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Details on CF9's free for academic licensing?

2008-08-19 Thread gary gilbert
Railo also has a free community edition, it has some limitations but I am sure 
if you contact them and indicate that you would like to use it in a teaching 
environment they may give you a version upgrade.

You can see the details at 
http://www.railo-technologies.com/en/index.cfm?treeID=148



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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311241
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Problems with switching from application.cfm to application.c fc

2008-07-22 Thread gary gilbert
Richard,

You may want to check out the documentation on application.cfc before going any 
further...

Gary 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309440
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 href question

2008-07-17 Thread gary gilbert
If I understand correctly when a user clicks on a column in your grid you
want focus to change to a specific tab?

You should be able to get a reference to the underlying ext object and then
get a reference to the column model, once you have the reference you can add
event listeners to do what you want.

You will probably have to do your reconfiguring of the grid using the
ajaxOnLoad() function to call your reconfigure js function.


Gary Gilbert
http://www.garyrgilbert.com/blog

On Thu, Jul 17, 2008 at 10:49 AM, Lawrence Mak [EMAIL PROTECTED]
wrote:

 Hi,
 I am trying to write a cfgrid in a layout-tab, with column links to other
 tabs in the layout. However, the href attribute for cfgridcolumn only allows
 url and column to other pages, not containers such as layout areas. Can
 anyone suggest other approach to achieve this? Thanks.

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309212
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFWindow and CFForm Submit

2008-07-17 Thread gary gilbert
Cfwindow is just a layer in the entire document, you should be able to call
the refresh method on your grid in your parent window by using javascript
after you submit your form in the cfwindow, you just need to have a js
function that exposes this functionality.

Gary Gilbert
http://www.garyrgilbert.com/blog

On Thu, Jul 17, 2008 at 3:08 AM, Michael Fisher [EMAIL PROTECTED]
wrote:

 Hi,

 I have looked around and have found documentation stating that if I have a
 cfwindow with a cfform, the form will submit in the cfwindow and will NOT
 refresh the parent page. Is this correct. I need the parent page to refresh
 because I have a query setup when you initially hit the page. The cfwindow
 contains a cfgrid that populates from this query. When grid data is changed,
 the parent window never refreshes and the old data is still populated into
 the grid. When i manually refresh the parent page, the new data can now be
 seen.

 Is there a way to refresh the parent page when using cfform and cfwindow?

 Thanks!

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309213
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfprocparam and varchar(max)

2008-07-17 Thread gary gilbert
Variable is a valid attribute but its the coldfusion variable name you want
to assign the results of an OUT or INOUT parameter.  CS is right in you case
you should be using the value attribute.

Gary Gilbert
http://www.garyrgilbert.com/blog

On Thu, Jul 17, 2008 at 1:02 AM, Scott Brady [EMAIL PROTECTED] wrote:

 I have a stored procedure in SQL Server 2005 which takes two input
 parameters, one of which is a varchar(max) data type.  When I try to
 call the procedure with cfstoredproc, I get an error Operand type
 clash: text is incompatible with int .  If I use cfquery to execute
 the procedure (using cfqueryparams), it runs just fine. I'm assuming
 it's something with the varchar(max) datatype.  Any ideas what it
 could be?  Searching hasn't resulted in any issues.

 Here's the signature of the procedure:

 CREATE PROCEDURE dbo.prc_MyProc
@affiliateID INTEGER,
@xmlText VARCHAR(MAX)
 AS
 BEGIN
 
 END

 Here's the cfquery which works:

 cfquery name=local.qResults datasource=#this.dsn#
EXECUTE dbo.prc_myProc
cfqueryparam value=#arguments.affiliateID#
 cfsqltype=cf_sql_integer /,
cfqueryparam value=#arguments.xmlText#
 cfsqltype=cf_sql_clob /
 /cfquery

 And here's the storedproc which doesn't:
 cfstoredproc procedure=prc_myProc datasource=#this.dsn#
 result=local.qResults
cfprocparam dbvarname=@affiliateID
 variable=#val(arguments.affiliateID)# cfsqltype=CF_SQL_INTEGER /
cfprocparam dbvarname=@xmlText value=#arguments.xmlText#
 cfsqltype=CF_SQL_CLOB /
 /cfstoredproc

 (and, sure, I could use cfquery to do it, but I prefer
 cfstoredproc to call procedures)

 Scott

 --
 -
 Scott Brady
 http://www.scottbrady.net/


 
 Now playing on iTunes: Phil Collins - Take Me Home
 http://foxytunes.com/artist/phil+collins/track/take+me+home

 

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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309215
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Preventing user from changing ID number in URL

2008-05-08 Thread gary gilbert
I agree with brad in that only those people with access to the ticket should
see it, then it doesnt matter if they manipulate the id it gets them
nothing.


Having role based security or resource based security will help prevent
unauthorized users from manipulating the url to view a ticket that they
shouldnt have access to.  That does tend to make things a bit more
complicated though when designing your security framework.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304831
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Binding to a CFGrid from tabs

2008-04-22 Thread gary gilbert
Michael,

Are you using cfajaimport in your tab cfm pages?  If you have ajax code in
your tab source pages you have to use the cfajaximport on those pages too.
since you are binding stuff in those souce pages to your form you probably
need to do an cfajaximport tags=cfform,cflayout/

Give that a try...

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304008
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFC, YES OR NO

2008-02-06 Thread gary gilbert
Ali,

Definitely stick with it, for more complicated web applications CFC's really
do become essential.  You can of course build large applications without the
use of CFC's as we all did before components came about but it tends to get
messy (thats not saying cfc's automatically make things tidy God knows I
have seen some pretty messy applications using CFC's).

CFC's aren't all that complicated when you think about it.  You can think of
cfc's as simply collections of functions grouped in a file by subject. For
example a user.cfc would contain all the functions that would work with
users (insert, update, delete, select etc).

I would definitely recommend taking a basic programming course or getting a
book on programming from your local library.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298326
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: stupid cfscript/javascript question

2008-02-06 Thread gary gilbert
li style=list-style-type:square; margin-left:-18px; margin-right: 8px; 
cfoutput
#show_new(dt)#
/cfoutput
/li


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:298336
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Paging won't display on CFGRID

2007-12-12 Thread gary gilbert
Page size is not for the Flash version of the grid it is only for the Ajax
version.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294597
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 8 install and the hot fix.

2007-11-23 Thread gary gilbert
I would install the Hotfix immediately, take a proactive approach here, why
wait until you have a problem you already have the solution so fix it now.
Besides the hotfix doesn't take too long to install anyway.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293721
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cflogout problem

2007-11-12 Thread gary gilbert
If you aren't using session cookies the session of the user won't be expired
if they simply close the browser since the default expiration of cookies is
something like 2037.  You can check this by looking for the cookies on your
machine.  To change the normal cookies into session cookies (ones that
expire as soon as the browser is closed) do the following:

When setting up your application make sure you have SETCLIENTCOOKIES=NO

Then on session start

cfif not IsDefined(Cookie.CFID)
   CFLOCK SCOPE=SESSION TYPE=READONLY TIMEOUT=5
   CFCOOKIE NAME=CFID VALUE=#SESSION.CFID# 
CFCOOKIE NAME=CFTOKEN VALUE=#SESSION.CFTOKEN# 
/CFLOCK
/cfif

or switch to using J2EE sessions which automatically destroys the jsessionid
when the browser is closed.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293118
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFStoredProc

2007-11-09 Thread gary gilbert
If you arent returning a result set then you should use a procparam with
type=out.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293045
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfimage captcha

2007-11-08 Thread gary gilbert
Dave,

I am pretty sure you are SOL on this one.  The only suggestion I would have
is to wrap your captcha image in a div tag with a white background or some
other neutral color.
-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292924
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: LiveDocs / adobe.com down

2007-11-07 Thread gary gilbert
Yep its down for me too.  Just to be sure I checked through a proxy server
and had no luck there either


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292825
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Isolating CF instances

2007-11-06 Thread gary gilbert
Hey All,

I have a question with regards to isolating CF instances.  We have a
customer with two different projects that until recently used, without
problem, the same DLL for certain processing.  The DLL version has now
increased and they are having issues with backwards compatibility so would
like to have the two projects use different versions of the same DLL on the
same machine with the only difference being the CF Instance.

Is this even possible?  I know you can specify java class paths per CF
instance but with dll's and windows how would one go about doing that per
instance?

Thanks

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292726
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: binding problem

2007-11-06 Thread gary gilbert
Hi Brian,

I copy and pasted your code just as you have it here and it worked without
error.

Just to confirm, you do have CF8 Installed right?


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292750
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Reading .TXT files as CF files

2007-11-06 Thread gary gilbert
Hi Brian,

You can have CF process any file ending you want you just have to register
it in IIS (if you are using IIS) so that IIS passes the files ending with
the type you specify off to the CF server.  On my server its
C:\ColdFusion8\runtime\lib\wsconfig\1\jrun.dll

Its in IIS under websites, properties, then I think its root folder,
configuration, then on the first tab.  I'm on a German machine here so can't
recall at the moment what it is in English.

If you scroll down on this list you will see that cfc, cfm, cfml, cfr, and
cfswf are all registered to the same jrun.dll, you could just add your
..rubbish, or . lfc extensions to the list and bobs your uncle



-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292756
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Isolating CF instances

2007-11-06 Thread gary gilbert
Thanks for the reply Cutter.

 I am of the same mind as you but I am looking for definitive yes or no on
this one.

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292787
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cftree Refresh

2007-11-05 Thread gary gilbert
Hi guys,

I would say this is a bug in the CF implementation.  You may want to log it
as such.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292670
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Tab Layout and forms questions...

2007-11-05 Thread gary gilbert
Hi Jeff,

You could set up a listener and have it refresh the other tabs after the
update.  Now since you are doing this all asynchronously you run the risk of
the user clicking on another tab before the refresh.  You could however make
that one call synchronous by putting up a Saving Change mask.

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292705
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Inserting a record into CFGRID

2007-10-29 Thread gary gilbert
Anthony,

I am pretty sure that the insertbutton and deletebutton attributes are for
applet only, additionally the insert attribute is for applet only, which
means you can't insert a row into a cfgrid only update or delete.

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292227
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFmenu submenu icons

2007-10-29 Thread gary gilbert
Brian,

Use firebug to inspect the element which should let you know what the style
class for that element is.  Then all you have to do is override the element
in your page or include your own style sheet.

The class is located in the
inetpub\wwwroot\CFIDE\scripts\ajax\resources\yui\yui.css.  The class is
called submenuindicator and uses an image called map.gif to provide the
icon.

Cheers,

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292230
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Can a ColdFusion application see what processes are scheduled?

2007-10-12 Thread gary gilbert
I don't believe that cfschedule is the tag for the job.  CFschedule lets you
schedule, run or delete events. What events are currently scheduled are not
accessible by cfschedule.

I took a look at the administrator API's in webroot/cfide/adimapi and
checked the descriptions of them but I didnt see any methods available to
get the scheduled events.  You may want to look again yourself I didnt look
at every cfc in the directory but if its there you should be able to do it,
provided your sandbox security allows it.

Regards,

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290924
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Request timeout

2007-10-11 Thread gary gilbert
In the coldfusion administrator all the event gateways are defaulted to
timeout after 30 seconds additionally in CF8 if you use the flex messaging
gateway the default is NOT to kill the thread on a timeout...

I believe that cfsetting only works within .cfm pages.  You could bump up
the timeout on the flexmessaging gateway in the CF admin...


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290861
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: flash form and spry tabs

2007-10-11 Thread gary gilbert
Will,

Did you set the timeout value on the cfform tag?  It defaults to 0 which
would probably result in you receiving that error.

cfform name=myform format=flash timeout=300  

Regards,

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290862
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: OOP Coldfusion

2007-10-11 Thread gary gilbert
Tim

Did you try and set up a mapping to the top level of your components
directory?

Frame works are a good thing, they take a lot of these types of questions
away from you so you can concentrate on what it is you need to concentrate
on, that being the solution to the problem.

Whether its Mach-2, FuseBox, Model-Glue, ColdSpring or IrishSpring (just
joking on this one) they all have their pros and cons.  Asking which one is
better will end up in a fire storm debate :)  Try ColdSpring if you like how
it works use it, otherwise try another and so on.  Yes it takes time but you
are the best person to judge which one best fits with how you think.

Regards,
-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290869
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 - Why is my ajax undefined?

2007-10-10 Thread gary gilbert
Hi Will,

It may have something to do with how the hostmysite has set up their
servers.

Check if you can get to www.yourdomain.com
/CFIDE/scripts/ajax/package/cfajax.js

If you can't then you know why ColdFusion is undefined as you need to have
access to the CFIDE/scripts directory in order for any of the ajax stuff to
work.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290733
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Constantly execute (refresh?) page, for cfpop?

2007-10-08 Thread gary gilbert
Hi George,

You could create the page as normal and set up a scheduled event in the
administrator to run it every 5 minutes.

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290518
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Constantly execute (refresh?) page, for lt;cfpopgt;?

2007-10-08 Thread gary gilbert
George,

You can also use the cfschedule tag without having to have access to the
administrator. Though it is possible to disable this tag via the
administrator sandbox/ resource security page.

Either way you will have to check with your hosting provider.



-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290536
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 Coding Standards

2007-10-08 Thread gary gilbert
Any coding standard that works toward readability and maintainability of
code is a good thing, but going overboard in any one direction makes the job
harder.

I also think the over use of new lines doesn't help with readability either

cfargument name=sfirstName
type=string
required=true
hint=first name of person
/

or

cfargument name=sfirstName type=string required=true hint=first name
of person /

The first is a superfluous use of carriage returns in my opinion and does
nothing to improve readability.

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290537
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFGRID Binding without Paging

2007-10-04 Thread gary gilbert
Hi Dale,

You should be able to access the underlying EXT Grid and remove the footer
panel.

script language=javascript
removeFooter = function()
{
mygrid = ColdFusion.Grid.getGridObject('thegridname');
mygrid.getView().getFooterPanel().remove();
}
/script

then at the end of your cfm page

cfset ajaxOnLoad(removeFooter)

Regards,
-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290166
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: quot;Invalid Parameter Typequot; Error message - When is a number not a number?

2007-10-02 Thread gary gilbert
Nathan,

The reason this fails is that C1 is a complex value.  You are trying to set
the entire column of a query as a numeric value.  When you use isnumeric(c1)
in the loop C1 in this case refers to the value that is contained in the
column for that row.  Using the cfparam you would need to specify the row of
C1, for example:

cfoutput query=q 
   cfoutput#isNumeric(c1)#/cfoutputbr
cfparam name=c1[currentrow] type=numeric default=-1 
/cfoutput

This works without error.  If you try and set the currentrow out of bounds
cfparam name=c1[0] type=numeric default=-1  you will receive the
same error.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289952
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Turn off autocomplete popup in CFEclipse?

2007-10-02 Thread gary gilbert
He cant possibly mean tag insite, its the damn variables that are annoying.

Thanks Casey!  I never bothered to try and find how to switch it off I just
ground my teeth...


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289955
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: var and queries with no name

2007-10-01 Thread gary gilbert
I don't believe so.

You should check your lock type(s) you are using.  By default sql server
uses row locking but you may be in a situation where page or table locking
is taking place.

Check out this
http://www.sql-server-performance.com/tips/reducing_locks_p1.aspx for some
good advice.



-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289851
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: imageGetEXIFMetadata() getting hammered

2007-09-28 Thread gary gilbert
Hi Paul can you give me the url for a couple images you are having problems
with so I can try on my end?

Thanks

Gary

On 9/28/07, Paul Hastings [EMAIL PROTECTED] wrote:

 gary gilbert wrote:
  Hi Paul I had similar problems and blogged about it here:
 
 http://www.garyrgilbert.com/blog/index.cfm/2007/8/8/CFIMAGE-Part-4-Remote-Images

 thanks, i'll have a read now.

  The problem seems to be only with large images, smaller ones I didn't
 give
  me a problem.  If you try to pull a smaller image from flickr they tend
 to

 no, i get this issue w/130kb as well as 2mb+ images on that site. in fact
 the
 image that's throwing the 500 error is the smallest one i tested. i've had
 no
 problems w/some fairly huge images (1944 x 2592) from a couple of nikons
 both
 local  remote (same server but grabbed from URL).

  I tried to read the image from the url write it to disk and then read
 the
  image back from disk but you end up losing the exif data when you do
 that

 yup, i'm storing images in BLOBs for use w/flex so i need to save all the
 EXIF
 data i can. that's why i'm trying to develop some intelligence about what
 to
 expect from each major camera model. also curious about datetime formats
 across
 camera models.

  I used cfhttp method=get
  url=http://farm1.static.flickr.com/97/232021390_ad47422845_o.jpg
   path=c:\/  Which got the image and wrote it to disk with the
 original

 yes i tried that (as well as simply copying, save image as in FF) but
 still
 ran into problems reading the EXIF for many files.

 thanks.

 ps: any idea about creating thumbnails from BLOBs then back to BLOBs? i
 keep
 getting errors about cfimage not knowing the image type (ie no file, so
 type).



 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289713
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: imageGetEXIFMetadata() getting hammered

2007-09-28 Thread gary gilbert
Hi Paul I had similar problems and blogged about it here:
http://www.garyrgilbert.com/blog/index.cfm/2007/8/8/CFIMAGE-Part-4-Remote-Images


The problem seems to be only with large images, smaller ones I didn't give
me a problem.  If you try to pull a smaller image from flickr they tend to
discard all the exif data on all resized images only the original has the
data. The problem is most people tend to upload the largest size possible
(or perhaps its only me).

I tried to read the image from the url write it to disk and then read the
image back from disk but you end up losing the exif data when you do that
(which I would think would be a bug, as well as the Exception occured in
JPG processing. segment size would extend beyond file stream length error).

I then decide to try something quite different :)


I used cfhttp method=get
url=http://farm1.static.flickr.com/97/232021390_ad47422845_o.jpg
 path=c:\/  Which got the image and wrote it to disk with the original
name with the exif data intact.  I then could read the image in using
cfimage source=c:\232021390_ad47422845_o.jpg name=myimage/ and get the
exif data without problem and output it. cfdump
var=#imageGetExifMetaData(myimage)#/

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289703
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Why wouldn't the first cell alternate colors with this code?

2007-09-27 Thread gary gilbert
Hi Rick,

If I may make a suggestion, put your style info into two classes and then
this:

cfif get_events.currentrow mod 2
td style=padding-top: 1px; padding-bottom: 2px; width: 35px; border-left:
1px solid ##aaa; border-bottom: 1px solid ##aaa; background: ##ccc; color:
black; font-size: 11px; font-weight: normal; text-align:
center;#dateformat(get_events.event_date, ddd)#/td
cfelse
   td style=padding-top: 1px; padding-bottom: 2px; width:
35px; border-left: 1px solid ##aaa; border-bottom: 1px solid ##aaa;
background: ##eee; color: black; font-size: 11px; font-weight: normal;
text-align: center;#dateformat(get_events.event_date, ddd)#/td

/cfif

Will become:


style
..High{
padding-top: 1px;
padding-bottom: 2px;
width:35px;
border-left: 1px solid #aaa;
border-bottom: 1px solid #aaa;
background: #eee;
color: black;
font-size: 11px;
font-weight: normal;
text-align: center;
}

..Low {
padding-top: 1px;
padding-bottom: 2px;
width: 35px;
border-left:1px solid #aaa;
border-bottom: 1px solid #aaa;
background: #ccc;
color:black;
font-size: 11px;
font-weight: normal;
text-align:center;
}
/style

...


td class=cfif get_events.currentrow mod 2.Highcfelse.Low/cfif
  #dateformat(get_events.event_date, ddd)#
/td



Makes your code a bit more readable and weight a bit less.

Regards,
-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289612
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfgrid border in CF8

2007-09-27 Thread gary gilbert
You should be able to do it the same way, just add the correct style to your
page to override the included stylesheet


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289648
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFFILE vs FTP

2007-09-27 Thread gary gilbert
Its probably the timeout settings on the server. if it takes longer than the
default timeout ( 30 seconds ) to upload it will fail. You may want to use
cfsetting requestTimeOut=600 which is ten minutes

Regards
-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289652
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Security Questions

2007-09-26 Thread gary gilbert
Andy,

XXS means cross-site-scripting.  You should check out this
http://de.wikipedia.org/wiki/Cross-Site_Scripting entry in wikipedia.  There
are a number of cf functions floating around that have been written to help
prevent this exploit as well as coding practices.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289491
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Security Questions

2007-09-26 Thread gary gilbert
Damn keyboard!!!XSS

On 9/26/07, gary gilbert [EMAIL PROTECTED] wrote:


 Andy,

 XXS means cross-site-scripting.  You should check out this
 http://de.wikipedia.org/wiki/Cross-Site_Scripting entry in wikipedia.
 There are a number of cf functions floating around that have been written to
 help prevent this exploit as well as coding practices.


 --
 Gary Gilbert
 http://www.garyrgilbert.com/blog


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289492
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Numberformat and cfgrid

2007-09-21 Thread gary gilbert
Hi Steve,

I also have a post about cell renderers you can see it here
http://www.garyrgilbert.com/blog/index.cfm/2007/8/24/CFGRID-Cell-Renderer-Revisited

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289071
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 Pricing

2007-09-20 Thread gary gilbert
I cant recall was CF always sold per 2 cpu's or is this new since MX ?

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288901
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Instantiating all objects within Application.cfm

2007-09-20 Thread gary gilbert
You could store them in the session scope.  If you use the
application.cfcyou could do it all on the onSessionStart method


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288915
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Can I assign a variable [pointer?] to a row of a query

2007-09-18 Thread gary gilbert
Hi Joel,

The only pointer that I can think of is using the query array syntax (
queryname.columnname[rownumber] ) where you specify the row number of the
column you want to access.  But I am not sure how much efficiency you would
gain (if any) by looping through your resultset that way.

CFLOOP is suposed to be faster than CFOUTPUT but generally my recordsets are
not big enough for me to feel a measurable difference.

as for whether the query data is stored internally in CF in a binary tree I
wouldn't have a clue.  I do know that the row number is indexed, you can see
that if you cfdump your query so accessing a columns data using the row
index should be fast.

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288680
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Quick Question About Dbase Architecture

2007-09-18 Thread gary gilbert
Joel,

if you want to have your database relational to 3rd normal form then yes you
should have separate tables for all of your lookups.  Databases are designed
to work well with joins of that nature and if you build your indexes
correctly you should be ok.  A lot of people forget to add indexes on
foreign key columns which will obviously hurt performance.

For improved performance you could build views that join the tables
together.  Views are faster than running plain old select queries and doing
all the joins.

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288709
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-Dev] Adobe Max 2007

2007-09-14 Thread gary gilbert
I guess I got lucky.

I sold it to my boss as educational and told him that I would take the time
off from work as vacation if he paid for the trip.  I mean it is
educational.. I will be in sessions from 9 am to 6pm every day and signed up
for the full day hands on training.  I certainly wouldnt qualify it as a
vacation.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288460
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Help needed in finding a string within a cgi variable.

2007-09-13 Thread gary gilbert
If you are only searching for the existence of _cache you could just use
findNoCase('_cache',cgi.query_string) instead of listFindNoCase.

I know they improved the speed of all the list functions for cf8 but using
it in this case seems a little superfluous.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288344
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Another cfwindow question...

2007-09-13 Thread gary gilbert
Additionally those files are relatively small (all combined 256kb).  Better
to include only the files that are needed than the ext_all.js file which
while only a single file contains everything that is needed by most of the
new ajax tags (cftree excluded) and is quite a bit larger (447kb) and then
you would need to additionally add the yui adapter and cf libraries too.

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288348
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax cfgrid bind problem

2007-09-12 Thread gary gilbert
Hi Mike,

if you are using a virtual directory and your cfc is located somewhere else you 
still need to be able to get to the cfc using a standard URL.  

I have found the the bind always starts at the webroot and goes from there so 
in your example you have.

http://mysite/projects

Your bind attribute would need to be cfc:mysite.projects.mycfc.myfunction if 
your cfc's are located in another virtual directory your bind attribute should 
be.

cfc:myVirtualDir.myCFC.myfunction

A good test is to see use a standard URL to get to your CFC if you reach it 
then you know what the path will be.

example url
http://mysite/projects/mycfc.cfc?method=myfunctionreturnformat=jsonargumentcollection=...

Regards,

Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288269
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Ajax cfgrid bind problem

2007-09-12 Thread gary gilbert
Mike,

But thats not your problem is it?  

Its the fact that as soon as you move your directory out of wwwroot/projects 
into c:/projects and point your virtual directory to that you code stops 
working and inspecting the url no matter what you try or what mappings you have 
in CF admin you still end up with

http://mysite/myCFC instead of http://mysite/projects/mycfc

right?

with cfc:mysite.projects.mycfc.myfunction you still get the above?

After I sent in that last email I re-read your first email again and set it up 
exactly as you have it and was able to produce the same results as you are 
getting. So at least I can replicate it.  

The only problem now is whats the solution...

Creating a CF mapping doesn't seem work.  I put in the correct path to the cfc 
in the cfajaxproxy tag and it passes without error but produces var 
_cf_mycfc=ColdFusion.AjaxProxy.init('/mycfc.cfc','myclass'); without the 
correct path info.

I checked the known issues and found the following entry.

69915: The cfajaxproxy tag is not able to correctly locate CFCs that are
in symbolically linked paths on the file system. Ensure that your
CFCs are always available under hard linked paths. 

As a workaround or until someone comes up with a solution you could bind to a 
URL instead of a CFC.

Regards,

Gary Gilbert
http://www.garyrgilber.com/blog 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288280
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: XHTML Style CF?

2007-09-12 Thread gary gilbert
Its mostly a coding style thing.

The style guide that company I work for put out requires that all tags that
can be closed are closed.

As Charlie stated it serves no purpose whatsoever.  But it does look nice.

-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288314
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4