Re: Shocked!

2007-05-22 Thread steven . brownlee
Claude:

You obviously misunderstood what I was saying, and 10+ years
of experience isn't light.  I wasn't looking, or asking, for
unwarranted criticism when I sent this message.

- Steve

- Original Message Follows -
From: Claude Schneegans [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Subject: Re: Shocked!
Date: Tue, 22 May 2007 09:46:05 -0400

  I come from a C#/Java background,
 
 Your background is probably to light, I've worked with
 tens of languages, including Fortran, Algol, Pascal, Lisp,
 Snobol, C, C++, Java, and I  don't remember
 any in which scoping was mandatory or even possible for
 parameters.


~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

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


Shocked!

2007-05-21 Thread steven . brownlee
I just looked at some code from another developer and
noticed that they were accessing variables in the arguments
scope witout using the ARGUMENTS. prefix to the variable
name.  I was about to wander over to him and ask him why his
application wasn't working when I decided I'd better test it
first.

I was shocked to see my test function work.  I just can't
believe that Adobe would even expose those variables without
a scope prefix.  I know that it does a top-down search
through the myriad of scopes, but this just seems flat out
dangerous.

Was anyone else aware of this?

- Steve

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

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


Re: REFind

2007-05-15 Thread steven . brownlee
Not sure from your message what exactly is happening, but
try this statement for your REFind()

cfif REFind(^\d{9}-\d{3}$,i) gt 0 

Steve Brownlee
http://www.fusioncube.net/

- Original Message Follows -
From: Scott Stewart [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Subject: REFind
Date: Tue, 15 May 2007 11:21:28 -0400

 Hey all, 
 
  
 
 I may not be understanding REFind properly.
 
  
 
 I have this: 
 
  
 
 cfloop list=#this.lstUIDs# index=i delimiters=,
 
 cfif REFind(^\d{9}-\d{3}$,i) is 1
 
 cfset psyEx = psyEx+1
 
 cfelse
 
 cfset psy = psy+ 1
 
 /cfif
 
 /cfloop
 
  
 
 What's coming in is a list of UID's from a form. The UID's
 that match the pattern are ignored by an outboard
 application.
 
  
 
 Psy and psyEx are counters for an x of y records
 exported The outboard app only returns a text file.
 
  
 
 My traces show this:
 
  
 
 information type[11:16:50.015
 C:\Inetpub\wwwroot\psychnet\classes\ContentManagement.cfc
 @ line: 28] [2844 ms (1st trace)] - [this.lstUIDs =
 207862004-001,303062003-001,303302003-001,307972005-001,31
 3642005-039,315352
 004-001,316162004-001,318502004-001,388372004-001,40565200
 5-001,504842006-00
 1,504972006-001,505122006-001,567792006-001,2006-13416-000
 ,2006-20801-014,20
 06-22931-014,2006-23020-006,2006-23022-005,2006-23072-005,
 2006-23081-010,200
 6-23500-001,2006-23500-002,2006-23500-013,2006-23500-020]
 UID information type[11:16:50.015
 C:\Inetpub\wwwroot\psychnet\classes\ContentManagement.cfc
 @ line: 29] [2844 ms (0 ms)] - [psy = 1] psy
 information type[11:16:50.015
 C:\Inetpub\wwwroot\psychnet\classes\ContentManagement.cfc
 @ line: 30] [2844 ms (0 ms)] - [psyEx = 0] psyEx
 
  
 
 -- 
 
 Scott Stewart
 
 ColdFusion Developer
 
  
 
 SSTWebworks
 
 7241 Jillspring Ct.
 
 Springfield, Va. 22152
 
 (703) 220-2835
 
  
 
 http://www.sstwebworks.com
 
  
 
 
 
 ~~
 

~|
ColdFusion MX7 by Adobe®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

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


RE: Subversion... CF's built-in webserver ... Can I do this?

2007-05-14 Thread steven . brownlee
Tero:

I'm not sure if it's a Linux issue, but I back up the
repository directories directly.  I'm not sure what issue
you are seeing to warrant the statement, Note that just
copying repository files doesn't work properly, - as that
is what I've been doing for years without any problems.  I
would like to hear what issues you are seeing so that I may
avoid them in the future.

Steve Brownlee
http://www.fusioncube.net/

- Original Message Follows -
From: Tero Pikala [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Subject: RE: Subversion... CF's built-in webserver ... Can I
do this?
Date: Mon, 14 May 2007 17:36:32 +0100

 I'm running following script daily to get backup copies
 out of subversion server (which is Ubuntu 6.10 running in
 VMware). Note that just copying repository files doesn't
 work properly; you need to make hot copy or dump of each
 repository instead.  
 
 
 (all variables are set before this) 


~|
Create Web Applications With ColdFusion MX7  Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

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


Re: QofQ to get a limited set of rows

2007-05-11 Thread steven . brownlee
You have to trim the query using RemoveRows.  In fact Ben
Nadel wrote a function for it a while back if I remember
correctly.  Check his blog and search for query of queries.

Steve Brownlee
http://www.fusioncube.net/

- Original Message Follows -
From: [EMAIL PROTECTED] (Michael Dinowitz)
To: CF-Talk cf-talk@houseoffusion.com
Subject: QofQ to get a limited set of rows
Date: Fri, 11 May 2007 15:43:29 -0400

 Lets say I have a query that returned 100 items. I'd like
 to do a query of queries to create a query that is only
 items 11-20. Does anyone know a simple way of doing this
 or  do I have to create a new query and populate it using
 a loop? 
 
 Thanks


~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2  MX7 integration  create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

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


Re: Java equivalent of CFHTTP

2007-05-11 Thread steven . brownlee
Well the functionality must obviously exist in Java since
ColdFusion is Java.  Do a little more research and I'm sure
you'll find the libraries you need.

Steve Brownlee
http://www.fusioncube.net/

- Original Message Follows -
From: Yves Leung-Tack [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Subject: Java equivalent of CFHTTP
Date: Fri, 11 May 2007 15:59:03 -0400

 Hi,
 
(sorry if this is a repost since I cannot see my
 previous post) I'm looking for an equivalent to CFHTTP.
 I'm basically want to call a python script and be able to
 get its response.
 
 Is there such a thing in Java ? A way to implement that ?
 
 
 Thanks


~|
ColdFusion MX7 and Flex 2 
Build sales  marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

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


RE: CFAJAX and WebOrb

2006-02-06 Thread Steven Brownlee
Aaron, also take a look at Rob Gonda's ajaxCFC framework if you're
investigating these types of products.

http://www.robgonda.com/blog/projects/ajaxcfc/ 

-Original Message-
From: Aaron Roberson [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 05, 2006 7:48 PM
To: CF-Talk
Subject: Re: CFAJAX and WebOrb

James,

I will have to take a deeper look into CFAJAX!

Thanks,
Aaron


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231404
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


CFCHART configuration?

2006-02-02 Thread Steven Brownlee
Taking a stab here.  I'm working with CFCHART.  The way it operates is using
the WebCharts indirect method that makes a temporary file that the chart
is accessed from.  By default it creates the following temporary file (with
example parameters).


/{application}/CFIDE/GraphData.cfm?graphCache=wc50graphID=Images/100697.PNG

Now, an application that I'm working on has secured the CFIDE directory
(using JAAS), so now anyone now authenticated against the server cannot see
any graphs produced by the code.  Two ways around this.

1. Create a slightly more complex security model to allow that file
to be publicly accessed
2. Configure CF to change where is creates that temporary file

The first option I can do, but would rather not for reasons I'm sure you can
imagine, and it would be much easier for me to do option two.  Does anyone
have a clue if (a) this can be done, and (b) how to do it, if so.

Thanks for any ideas,
Steve



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231182
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFEclipse Vs Dreamweaver

2006-01-27 Thread Steven Brownlee
Reasons I use Eclipse 90% of the time:

1.  It's a true IDE.  I find it ultimately more convenient to have my DB
tool, CF/Java code editor, stylesheet editor, source control view and
regular expression builder all available at once instead of having multiple
apps open
2.  It's free  :)
3.  Tag completion.  Don't know why people think that's a DW only feature
4.  CVS and Subversion integration.  Have to use 'em and Eclipse tools are
uber
5.  Interface is more customizable

I use Dreamweaver 8 now and it's useful for a couple of things that Eclipse
is weak on:
1.  Search  Replace
2.  HTML template creation

-Original Message-
From: Greg Hamer [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 27, 2006 8:54 PM
To: CF-Talk
Subject: Re: CFEclipse Vs Dreamweaver

Great question Phyo!

I too heard the buzz about CFEclipse, installed it and ended up wondering
what all of the excitement was about?  Sincerely, I really do want to be won
over.

But in doing the comparison, would the CFEclipse advocates please qualify
which version of Dreamweaver they last worked with?

DW8's tag collapse and balance braces alone make it a winner for me.  Note,
the tag collapse works with any tag based syntax.  It is the bomb.

Regarding Barney's view about the code-centric stuff bolted on, I prefer
to view it as two tools for the price of one.  The world's best graphical
HTML authoring tool (and DW8 has brilliant improvements for CSS support),
AND for code editing, HOMESITE/CFStudio evolved.  And I too like being able
to navigate by going back and forth between code and design views.

No dis on CFEclipse.  I am a HUGE open source fan (MySQL, Subversion,
Tomcat, Open Office, and on and on).  Personally for me, however, CFEclipse
is not YET the productivity tool that DW8 is.

And calling tag completion lazy programmer things.  Oh yeah tough guy!  So
why are you using CFEclipse?  Why don't you just do all of your coding in
VI. lol.  Man, when my fingers are flying across the keyboard, anything
that:  a) get's the job done sooner; b) eliminates even 1 typo in 1000, is
cool by me.  I mean, the whole point of using computers is to let computers
do the things computers can do (like tag completion and code collapse), so
that we developers can maximize our time doing the things that computers can
not do.

fyi ... following are two recent articles on CFEclipse from CFDJ.  The
August article is the one that convinced me to take CFEclipse for a spin.
The January article I haven't read yet.

CFEclipse for ColdFusion Developers -- Jan 20, 2006
http://coldfusion.sys-con.com/read/167971.htm

CFEclipse: The Developer's IDE, Eclipse For ColdFusion -- Aug 18, 2005
http://coldfusion.sys-con.com/read/48235.htm

Again, I look forward to the day that CFEclipse is my tool of choice.  But I
must say, I admire how Macromedia keeps giving me reasons to buy their
products in the midst of competition from open source.   Oh, hey, isn't this
a cf list?  The new features in CF7 were brilliant.  No open source tools
giving me gateways and report writers (yet).  I am now eagerly awaiting the
first Adobe CF release.

Best Regards,

g




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230664
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFEclipse Vs Dreamweaver

2006-01-27 Thread Steven Brownlee
Sure, here's my list of essentials.  Takes about 15 minutes to install
these.

- CFeclipse (http://www.cfeclipse.org/)
- Subclipse  (http://subclipse.tigris.org/)
- QuickREx
(http://www.bastian-bergerhoff.com/eclipse/features/web/QuickREx/toc.html)
- DBEdit* (http://sourceforge.net/projects/dbedit) 
- CSS Editor  (http://csseditor.sourceforge.net/)
- Javascript editor
(http://www.interaktonline.com/Products/Eclipse/JSEclipse/Overview/)

Other I have installed but aren't essential for CF development.

- PHP Editor  (http://www.phpeclipse.de/tiki-view_articles.php)
- Flex 2 plugin  (http://labs.macromedia.com/technologies/flexframework2/)
- Colorer  (http://colorer.sourceforge.net/eclipsecolorer/index.html)

*Note about DBEdit plugin.  The auto-install site installs the tool buggy.
Best to download the zip and install it manually (just unzip directly to
eclipse directory).

I'm familiar with all the new features in DW8.  I really do like the CSS
editor... a lot.  However, the one in Eclipse suits my needs so I never
think to open up DW for it.

-Original Message-
From: Greg Hamer [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 28, 2006 12:15 AM
To: CF-Talk
Subject: Re: CFEclipse Vs Dreamweaver

Steve,

I have Eclipse 3.1 with CFEclipse 1.2.0.  Obviously Eclipse gives me the
Java code editor, and CFEclipse the CF code editor.  Am I correct that for
me to have a config that matches yours, I have to install a few more
plugins?  e.g for DB tool, stylesheet editor, Subversion view and regular
expression builder?  Would you be so kind as to share with me which plugins
you are using?

I currently am not in a team environment.  Your sharing how you have rolled
up your configuration would be greatly appreciated :)

I anticipate I will be spending alot of time in Flex 2 starting next month,
so there is some Eclipse in my future one way or another.

Thank you for sharing how you are using Eclipse.

btw ... Lynda.com has a great 17 part (1 hour), online video training title
on Dreamweaver 8 New Features with Garrick Chow.  The first 2 on CSS are
free.  Link here:
http://movielibrary.lynda.com/html/modPage.asp?ID=173

  Best regards,

  g




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230669
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Monitoring JRun Memory Usage

2006-01-22 Thread Steven Brownlee
First reaction: OutOfMemory errors are *usually* the result of a low PermGen
setting on your JVM.

Now, on to your question.  If you're running unmodified CFMX, then you're
using the 1.4.2 JDK, so your options are limited.  If you've upgraded to the
1.5 JDK then you have many options for probing deeper into the JVM guts to
find the problem.  With the 1.4, then all you have is the code the Gabriel
posted earlier. 

-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 20, 2006 10:00 AM
To: CF-Talk
Subject: Monitoring JRun Memory Usage

I'm running CFMX7.0.1 Enterprise on Windows Server 2003.

I'd like to monitor - and log - JRun memory usage.  coldfusion died on us
this morning for some reason - I can't find any indication of what caused
the error other than the time it occurred (9:16am) when an OutOfMemory error
occurred.

I thought it would be useful to monitor memory usage every minute or so and
record it to a log... timestamp,memory

Anyone got any ideas of the simplest way to do this?  I do have Perl
installed on the server so that might be an option.

Rick



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230208
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Upgrading to MX FINALLY

2006-01-11 Thread Steven Brownlee
You can use the cfcompile utility to precompile the sites' code before you
activate them in production.

-Original Message-
From: Adam Haskell [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 11, 2006 9:36 AM
To: CF-Talk
Subject: Upgrading to MX FINALLY

Ok so we're finally begining the process of upgrading to MX 7, from 5. I did
this at my last company (4.5 - MX6 - MX6.1) with very very few problems.
One problem we always had was when the server came back up the page load was
incredibly long for the first 10 minutes while CF compiled all the template.
Was there something I was missing back in the day that could have mitigated
that [problem some and has MX 7 improved on this at all? This is a major
concern here, my old job was ecommerce we only had 1 site to complie, here
we run about 100+ small projects on the server and at one time 10-15 of them
could be being accessed I have some major concerns about the compile time.

Adam



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229259
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Regex ex question. How to match NOT this string.

2006-01-07 Thread Steven Brownlee
Thanks for the investigating, Jacob.  So the JDK uses Perl which is why my
lookbehind worked in my class, and then CF uses a proprietary version of
Perl's implementation.  Something just doesn't feel right about all that...
just not sure what.

Well, no matter.  You're right that tinkering with how you structure your
pattern, you can mimic the [negative/positive] lookbehind function.

-Original Message-
From: Munson, Jacob [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 06, 2006 6:04 PM
To: CF-Talk
Subject: RE: Regex ex question. How to match NOT this string.

I just looked in my Advanced Macromedia ColdFusion MX 7 Application
Development book (what a title! ;)), written by Ben Forta and a bunch of
other folks, and this paragraph is very on topic:

...these additions make ColdFusion's RegEx support much more powerful, and
much closer to the way regular expressions work in Perl, which for many
people is the de facto standard for how regular expressions should behave.
The additions they are talking about are things like look ahead, word
boundaries, escape sequences, etc.  Also, this sentence answers our previous
question ColdFusion does not support (Perl's) lookbehind processing...

Also, it looks like Java uses Perl's syntax as well:
http://tinyurl.com/ay8kc


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228693
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Proposal Writing

2006-01-07 Thread Steven Brownlee
Here are the sections I use in a project charter.  Might give your some
ideas.  Not all sections make it into the final draft for all clients.
Depends on the scope of the project.

1.  Statement of Need   
2.  Benefits
3.  Critical Success Factors
4.  Measures of Success 
5.  Approach Strategy   
6.  Stakeholders and Customers  
6.1 Stakeholders
6.2 Customers   
7.  Scope   
7.1 Deliverables
7.2 Acceptance Criteria 
7.3 Work Breakdown Structure
7.4 Exclusions  
7.5 Assumptions 
7.6 Constraints 
8.  Cost Estimates  
9.  Organizational Breakdown Structure  
9.1 Roles and Responsibilities  
10. Timeline
11. Project Control Strategies  
11.1Quality Assurance   
11.2Change Control  
11.3Communications  
11.4Information Management  
12. Risk Management 
13. Logistics   
14. Additional Documents
 

-Original Message-
From: Jennifer Gavin-Wear [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 07, 2006 8:01 AM
To: CF-Talk
Subject: Proposal Writing

I'm trying to put together a standardized proposal document and I'd be glad
of some advice.

Many thanks,

Jenny



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228695
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Garbage Collection Lag

2006-01-04 Thread Steven Brownlee
Permanent Generation isn't involved in the garbage collection process at
all.  The PermGen space is where your JVM stores the meta-data about the
classes that ColdFusion is creating constantly.  The parameter you need to
worry about is your NewSize.   One thing I notice that you probably don't
want to do is set your MaxPermSize so big.  ColdFusion uses a lot of PermGen
space, but not that much - especially since you only have 512m set aside for
your total memory size.  And yes, you're right, your JVM size is Xmx +
PermSize.

Here are some recommendations:

- You have 4GB of RAM on the machine, you should dedicate much more to the
size of the JVM (assuming this is your production machine).  Perhaps 2GB
- Set a minimum PermSize.  -XX:PermSize=80m.  
- I've never seen ColdFusion use more than 120m in PermGen space even for
massive applications, so set MaxPermSize somewhere in that range
- Make your New Generation space larger.  Perhaps 25% of your total JVM
size.
- The -XX:+UseConcMarkSweepGC setting seems to make no difference in any of
the tests I've run either so you can not worry about that

Last but not least, if you're using JVM 1.5 look into using jconsole to
monitor your memory usage.  If you're still on 1.4.2, you're limited to
seeing just the total JVM usage, but you can still monitor it to see how
much it's fluctuating during use.  Bottom line is that every application is
different, so you need to tinker with the size of your memory spaces until
you get the performance you need.  In the applications I've looked at,
simply increasing the New Generation size helps tremendously.

-Original Message-
From: Terry Ford [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 04, 2006 4:39 PM
To: CF-Talk
Subject: Garbage Collection Lag

Hey CFers,

As traffic increases and the server has been up for a while I'm starting to
notice periods where the JVM seems to be taking vacations when it ought to
be processing templates.  I suspect that this is garbage collection.

The symptom is a cfstat period for 1 or 2 seconds where no templates are
processed, yet at the same time no templates are queued.  There are no
queries running on mysql either, so it does look as if the JVM is at work
and ignoring CFMX.  

It gets pretty bad at times, with such a pause occuring every 30 seconds or
so.

Any suggestions on how to reduce this garbage collection lag?

Here's what I'm using right now.  dual xeon machine, 4GB RAM, linux.  A ps
-e at steady state shows the cfusion process using ~650MB of memory (which
is an unrelated question:  how can CF be using 650MB if Xmx = 512M?  Unless
the process memory = Xmx + Maxperm?)

java.args=-server -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS
-Xbootclasspath/a:{application.home}/lib/webchartsJava2D.jar
-Djava.awt.graphicsenv=com.gp.java2d.Ex
HeadlessGraphicsEnvironment -Xmx512m -Dsun.io.useCanonCaches=false
-XX:MaxPermSize=256m
-Djavax.xml.parsers.SAXParserFactory=com.macromedia.crimson.jaxp.SAXParserFa
cto
ryImpl
-Djavax.xml.parsers.DocumentBuilderFactory=com.macromedia.crimson.jaxp.Docum
entBuilderFactoryImpl -XX:NewSize=48m

Anyway, any ideas would be much appreciated...  does a larger MaxPermSize
increase or decrease garbage collection lag?  any other params that might
help out here?  I tried -XX:+UseConcMarkSweepGC but it didnt seem to help at
all.

Thanks


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228397
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Garbage Collection Lag

2006-01-04 Thread Steven Brownlee
Correct, PermGen (class objects and meta data) are not on the heap.  Also
correct is the the query/session/application variable memory is stored on
the heap.  These are the memory objects that are getting moved around and
collected when obsolete.  

I think once you increase your New Generation size and give your PermGen a
larger minimum, you'll see drastic improvements.  In fact, your info that
UseConcMarkSweepGC actually decreases your performance makes me believe that
the PermGen was causing most of your problems.  When the PermGen space needs
to be expanded, the JVM forces a full GC.  If you don't specify a minimum
size, the default for PermGen is only 4m.  Since you're working with over
900 classes, I think your PermGen space is being increased almost
constantly.



-Original Message-
From: Terry Ford [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 04, 2006 6:24 PM
To: CF-Talk
Subject: Re: Garbage Collection Lag

Thanks -- I'll give that a try.  Have got approx 950 classes in this app, so
I'll watch closely for out of memory errors wrto MaxPermSize (classes are in
Perm memory and not Heap, right?)

After fiddling a little further, -XX:+UseConcMarkSweepGC seems to do more
harm than good on my setup.  The problem is that the normal garbage
collection appears to run less frequently but for a longer period of time.
So instead of frequent 1-2 second delays with UseConcMarkSweepGC , you get
infrequent 3-4 second delays.

The problem is that even 1-2 second delays are nasty when you've got
incoming requests of 60+ templates/second.  By the time the GC is complete
you've got ~150 incoming requests that have to sort themselves out.   By
turning the GCConcMarkSweep off you don't get as many interrupting events.
I like to completely avoid queued requests if possible.

One last question... is it correct that all cached queries / session /
application variables are stored in the heap, and not perm memory?  I use a
*ton* of application variables (tables and parts of tables in structs of
arrays and arrays of structs and all sorts of other fun configurations) and
a fair number of cached queries.  Just wondering if the heavy use of memory
in application variables affects jvm optimization in any way.

Regards,
Terry

Permanent Generation isn't involved in the garbage collection process 
at all.  The PermGen space is where your JVM stores the meta-data about 
the classes that ColdFusion is creating constantly.  The parameter you need
to
worry about is your NewSize.   One thing I notice that you probably don't
want to do is set your MaxPermSize so big.  ColdFusion uses a lot of 
PermGen space, but not that much - especially since you only have 512m 
set aside for your total memory size.  And yes, you're right, your JVM 
size is Xmx + PermSize.

Here are some recommendations:

- You have 4GB of RAM on the machine, you should dedicate much more to 
the size of the JVM (assuming this is your production machine).  
Perhaps 2GB
- Set a minimum PermSize.  -XX:PermSize=80m.  
- I've never seen ColdFusion use more than 120m in PermGen space even 
for massive applications, so set MaxPermSize somewhere in that range
- Make your New Generation space larger.  Perhaps 25% of your total JVM 
size.
- The -XX:+UseConcMarkSweepGC setting seems to make no difference in 
any of the tests I've run either so you can not worry about that

Last but not least, if you're using JVM 1.5 look into using jconsole to 
monitor your memory usage.  If you're still on 1.4.2, you're limited to 
seeing just the total JVM usage, but you can still monitor it to see 
how much it's fluctuating during use.  Bottom line is that every 
application is different, so you need to tinker with the size of your 
memory spaces until you get the performance you need.  In the 
applications I've looked at, simply increasing the New Generation size
helps tremendously.

-Original Message-
From: Terry Ford [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 04, 2006 4:39 PM
To: CF-Talk
Subject: Garbage Collection Lag

Hey CFers,

As traffic increases and the server has been up for a while I'm 
starting to notice periods where the JVM seems to be taking vacations 
when it ought to be processing templates.  I suspect that this is garbage
collection.

The symptom is a cfstat period for 1 or 2 seconds where no templates 
are processed, yet at the same time no templates are queued.  There are 
no queries running on mysql either, so it does look as if the JVM is at 
work and ignoring CFMX.

It gets pretty bad at times, with such a pause occuring every 30 
seconds or so.

Any suggestions on how to reduce this garbage collection lag?

Here's what I'm using right now.  dual xeon machine, 4GB RAM, linux.  A 
ps -e at steady state shows the cfusion process using ~650MB of memory 
(which is an unrelated question:  how can CF be using 650MB if Xmx = 
512M?  Unless the process memory = Xmx + Maxperm?)

java.args=-server -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS 

RE: Love flash in CFCHART but hate...

2005-12-15 Thread Steven Brownlee
Awesome, Ray, I'm headed there now.  Thanks! 

-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 14, 2005 5:50 PM
To: CF-Talk
Subject: Re: Love flash in CFCHART but hate...

You can configure a _lot_ of stuff via the cfcharts command line designer
program. It is in your cfusion/bin folder I believe. If you search Tim
Buntel's blog, he wrote an entry about it a few months back.


On 12/14/05, Steve Brownlee [EMAIL PROTECTED] wrote:
 It's been reported from some of my users that they find it distracting 
 when - using CFCHART and the Flash type - the bar chart has the 
 animation every time it's drawn.  I can't see any attributes to stop 
 this annoying behavior.  Am I missing it, or is this simply something that
we are forced to live with?

 - Steve


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227081
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Love flash in CFCHART but hate...

2005-12-15 Thread Steven Brownlee
*I* actually wanted the PNG type (less compression), but the users get what
the users want :\ 

-Original Message-
From: Richard Colman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 14, 2005 8:25 PM
To: CF-Talk
Subject: RE: Love flash in CFCHART but hate...

Set it as a jpg... In cfchart 

-Original Message-
From: Steve Brownlee [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 14, 2005 2:20 PM
To: CF-Talk
Subject: Love flash in CFCHART but hate...

It's been reported from some of my users that they find it distracting when
- using CFCHART and the Flash type - the bar chart has the animation every
time it's drawn.  I can't see any attributes to stop this annoying behavior.
Am I missing it, or is this simply something that we are forced to live
with?

- Steve



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227082
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Subversion type of repository

2005-10-06 Thread Steven Brownlee
None that I've seen.  Of the dozen or so Subversion repositories that I've
set up and use regularly, they are all Native Filesystem types.  I remember
once reading that the Berkeley should only be used in special cases, but the
details of that escape me now. 

-Original Message-
From: Stan Winchester [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 06, 2005 8:50 PM
To: CF-Talk
Subject: Subversion type of repository

Is there a preferred type of repository Native Filesystem vs. Berkeley
Database to CFML projects?

 

Thank you,

Aftershock Web Design, Inc.

by: Stan Winchester

President/Developer

[EMAIL PROTECTED]  

http://www.aftershockweb.com/   

Phone 503-244-3440

Fax 503-244-3454

 





~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220283
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


OT: Developers little helper

2005-06-21 Thread Steven Brownlee
This is not a CF tool, but a good tool for CF programmers.  I've received a
lot of positive feedback on it, so I thought I'd share it with CF-Talk.
Basically, it's a small utility that sits in your system tray that allows
you to have one-click access to either single system services, or
user-defined groups of services.

Here's the link to a more descriptive post on my Blog.  The link for
downloading is there.

http://www.orbwave.com/cfjboss/2005/06/system-manager-10-released.html

Hope you find it useful.

- Steve


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:210164
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFSET construct

2005-05-25 Thread Steven Brownlee
It's not ok to have other ColdFusion tags inside a CFSET.  You'll have 
to put the condition outside.

cfif findMatches.gender eq male
cfset gender = He
cfelse
cfset gender = She
/cfif

cfset client.KissMyDate_DisplayMessage = gender  rest of message

Stuart Kidd wrote:
 Hi guys,
 
 I¹m trying to put together a CFSET construct but am having probs:
 
 cfset client.KissMyDate_DisplayMessage = 'Unfortunately this user has
 decided not to receive anymore responses to this advert.'  cfif
 FindMatches.gender eq 'male''He'cfelse'She'/cfif  'may change this in
 the near future however.'
 
 Could somebody please point out what I am doing wrong, is it not okay to
 have ampersands in constructs?
 
 Thanks,
 
 Saturday
 
 
 
 
 

~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207637
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Build Systems

2005-05-01 Thread Steven Brownlee
Take a serious look at Ant, especially now with the release of 1.6.3.  Some
serious enhancements and fixes make it a powerhouse of a build tool.  I use
it for some complex and large builds on a J2EE system - involving both Java
and CF projects.

I haven't tried every product on the market but of the ones I've dealt with,
Ant has the best combination of power and ease.

-Original Message-
From: Chris Jensen [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 30, 2005 2:46 AM
To: CF-Talk
Subject: Build Systems

Hi,
We're looking at implementing an automated build/deployment system for 
our development server and (i hope) will later extend this to our 
production server also.

Specifically we're thinking of nightly builds, and also the ability to 
deploy an existing build (eg deploy release X of project Y to the 
production server with one command or a click of an icon).

What is everyone's experiences (good or bad) with various tools to help 
with this in a largely Cold Fusion/Windows 2000 environment?

I'm aware of Make, Ant and Maven, but have little experience with them 
for this purpose (or at all). Are people using any of these for CFMX. Is 
there anything else that suits the job better?

Chris


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205206
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: .Net Web Service HELP!

2005-04-13 Thread Steven Brownlee
The simplest way is to convert any complex ColdFusion structure to an XML
representation.  I did something similar for a client of mine sending CF
queries to a .NET client.  Had to convert all queries and structures to XML
first.  Check out http://www.cflib.org/udf.cfm?ID=648 

-Original Message-
From: Ernie Pena [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 13, 2005 9:52 AM
To: CF-Talk
Subject: .Net Web Service HELP!

I am connecting to a .net web service and I am able to get a response on a
simple test, however when I try to send the complex data I get an error. I'm
not sure what I need to do but I'm sure the data I'm sending over isnt quite
right or is it.

First let me show you the .net ws because its an internal site I can only
paste the code.

...NET Web Service xml
method: StopCheckingRule
requires two an Array (aPatients) and an Array of Boolean
(aSubGroupContinueIndicators)

-
POST /IVBuMelWebSvc/TrialConductor.asmx HTTP/1.1
Host: biostat252.mdacc.tmc.edu
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: TrialIVBuMel/CheckStoppingRule

?xml version=1.0 encoding=utf-8?
soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/;
  soap:Body
CheckStoppingRule xmlns=TrialIVBuMel
  aPatients
Patient
  TimeOnTestdouble/TimeOnTest
  SubGroupint/SubGroup
  HasDiedboolean/HasDied
/Patient
Patient
  TimeOnTestdouble/TimeOnTest
  SubGroupint/SubGroup
  HasDiedboolean/HasDied
/Patient
  /aPatients
  aSubGroupContinueIndicators
booleanboolean/boolean
booleanboolean/boolean
  /aSubGroupContinueIndicators
  sErrorsstring/sErrors
/CheckStoppingRule
  /soap:Body
/soap:Envelope
-

My Code:

-

cfset aPatients = arrayNew(1) /
cfset aPatients [1] = createObject(component, Patient) / cfset
aPatients [1].TimeOnTest = 23 / cfset aPatients [1].SubGroup = 2 / cfset
aPatients [1].HasDied = FALSE /

cfset Indicators = arrayNew(1)/
cfset Indicators[1] = FALSE /
cfset Indicators[2] = FALSE /
cfset Indicators[3] = FALSE  /
cfset Indicators[4] = FALSE /
cfset Indicators[5] = FALSE /

CFSCRIPT
   ws = CreateObject(webservice,
 
http://biostat252.mdacc.tmc.edu/IVBuMelWebSvc/TrialConductor.asmx?wsdl;);
   sErrors =
ws.CheckStoppingRule(aPatients=#aPatients#,aSubGroupContinueIndicators=#I
ndicators#);
writeoutput(sErrors);
/CFSCRIPT


-

Any help with this would be greatly appreciated!

Thanks in advance

Ernie Pena
U. T. M. D. Anderson Cancer Center 




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202547
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Transferring cfadmin settings between servers

2005-04-12 Thread Steven Brownlee
What version are you running? 

-Original Message-
From: Duncan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 9:13 PM
To: CF-Talk
Subject: Transferring cfadmin settings between servers

Morning all,
Can anyone tell me how I can transfer scheduled tasks from one server to
another? Does CF store them in a db or an XML file? I am lazy and dont want
to type them in again!
Thanks

--
Duncan I Loxton
www.sixfive.co.uk
[EMAIL PROTECTED]


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202517
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Transferring cfadmin settings between servers

2005-04-12 Thread Steven Brownlee
They're stored in XML files, but all you need to do is go into your admin
screen and make a CAR (under Packaging  Deployment section) file.  You can
specify any/all settings to backup.  Then simply restore that CAR file to
any other server. 

-Original Message-
From: Duncan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 11:21 PM
To: CF-Talk
Subject: Re: Transferring cfadmin settings between servers

CFMX 7

On 4/13/05, Steven Brownlee [EMAIL PROTECTED] wrote:
 What version are you running?
 
 -Original Message-
 From: Duncan [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 12, 2005 9:13 PM
 To: CF-Talk
 Subject: Transferring cfadmin settings between servers
 
 Morning all,
 Can anyone tell me how I can transfer scheduled tasks from one server 
 to another? Does CF store them in a db or an XML file? I am lazy and 
 dont want to type them in again!
 Thanks
 
 --
 Duncan I Loxton
 www.sixfive.co.uk
 [EMAIL PROTECTED]
 
 



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202521
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: low-end web hosting?

2005-04-10 Thread Steven Brownlee
Not as cheap as some of the others, but take a look at
http://www.lfchosting.com.  Top notch customer service.  I switched to them
from CFDynamics a couple years ago and never regretted it.

-Original Message-
From: Damien McKenna [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 12:22 PM
To: CF-Talk
Subject: OT: low-end web hosting?

I'm looking for low-end CFML web hosting.  The key features are CFMX 6.1 or
7 and some sort of database (MySQL, PostgreSQL, etc), a small amount of disk
space and a sandbox so I can still use e.g. cffile, cfobject, cfcontent, etc
for our files.  I could probably get my contact to move some of his other
sites over if it proves reliable enough.  I've looked at CFDynamics,
CrystalTech and HostMySite but didn't like the offerings.
Any other suggestions?
 
--
Damien McKenna - Web Developer - [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/
http://www.thelimucompany.com/  - 407-804-1014 #include stdjoke.h
 




~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202136
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: simple URLs like www.domain.com/go/2345

2005-04-09 Thread Steven Brownlee
You configure your web server to create a custom 404 response header.  In
IIS, you go to the Custom Errors tab in the site properties and modify the
404 to point to a page on your site and perhaps add some custom URL
parameter to help you catch it.  Then on that page you parse the request
(CGI.HTTP_REQUEST in CF5 or
GetPageContext().getRequest().getRequestURL().toString() in CF6/7) to grab
the token in the URL you're looking for.  You can then use that value to do
the lookup in your table.

-Original Message-
From: olivier [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 9:13 PM
To: CF-Talk
Subject: simple URLs like www.domain.com/go/2345

Hello !


Basically, I want to be able to use a simple URL that would forward to a
more complex one.
Like when you communicate on paper, you don't want the user to have to type
www.domain.com/products/index.cfm?action=thisproduct=thatdisptype=1234pro
mo=1234
but you'd rather have them use something simple like www.domain.com/1234

At the same time, you can take the opportunity to log that hit in another
table to run statistics.

The question is: how do you handle with ColdFusion simple urls like that,
that do not have a .cfm filename in the URL ?




Thanks so much !!! 


~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202072
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: simple URLs like www.domain.com/go/2345

2005-04-09 Thread Steven Brownlee
Here's some sample code

originalRequest = GetPageContext().getRequest().getRequestURL().toString();
parse_sitename = GetToken(Replace(originalRequest,//,), 2, /?=;); 

CFQUERY name=query_siteinfo datasource=#Request.DB#
SELECT * from SITE where lower(FILEPATH) = '#lcase(parse_sitename)#'
/CFQUERY

-Original Message-
From: olivier [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 08, 2005 9:13 PM
To: CF-Talk
Subject: simple URLs like www.domain.com/go/2345

Hello !


Basically, I want to be able to use a simple URL that would forward to a
more complex one.
Like when you communicate on paper, you don't want the user to have to type
www.domain.com/products/index.cfm?action=thisproduct=thatdisptype=1234pro
mo=1234
but you'd rather have them use something simple like www.domain.com/1234

At the same time, you can take the opportunity to log that hit in another
table to run statistics.

The question is: how do you handle with ColdFusion simple urls like that,
that do not have a .cfm filename in the URL ?




Thanks so much !!! 


~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202073
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: simple URLs like www.domain.com/go/2345

2005-04-09 Thread Steven Brownlee
Oh, well that answers the question (even though you already said it) that
you're using IIS.  The GetPageContext object will only return the original
request on Jrun or other J2EE server.  Try looking at the value of
CGI.QUERY_STRING.  What IIS does when it writes a custom response header is
take the original request and append it to the page you're redirecting to.
Here's an example.

You set the 404 handler to /go.cfm
You request http://www.domain.com/go/2345
IIS redirects to /go.cfm?404;http://www.domain.com/go/2345
Your CGI.QUERY_STRING will have a value of
?404;http://www.domain.com/go/2345
You can now do some simple RegEx or GetToken magic to grab the '2345' (e.g.
siteNumber = REFindNoCase(([:digit:]{4})$, cgi.query_string);)

Give those ideas a shot.

-Original Message-
From: Olivier [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 09, 2005 4:48 PM
To: CF-Talk
Subject: simple URLs like www.domain.com/go/2345

Ok, I got it to work. 
.cfm was not associated in the ISAPI for this site ! :)

Now here is the go.cfm file
==
h1go:/h1
cfoutput
hr
#CGI.HTTP_REQUEST#
hr
#GetPageContext().getRequest().getRequestURL().toString()#
hr
#CGI.HTTP_REFERER#
hr
#Now()#
/cfoutput
==

But here are the result I get when going to http://go.mydomain.com/1234

==
go:


http://go.mydomain.com/go.cfm


{ts '2005-04-09 13:44:02'}
==

Neither the GetPageContext or HTTP_REQUEST are getting a value..
Help !! :)

Thanks.


~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202133
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Table name - Singular or plural?

2005-03-29 Thread Steven Brownlee
That said, the justification for naming tables using singular
entity names is that the tables represent collections of singular entities.

 Exactly my point. The tables represent *collections*. Plural. 

What that means is each row represents a single entity, thus it's the PERSON
table.  Row one is a person, row two is a person, etc.  Otherwise you're
saying row one is a people, row two is a people, etc.



~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200631
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: adminapi and j2ee packaging

2005-03-28 Thread Steven Brownlee
Does Ant have the awareness to take a directory full of .cfm's and bundle
it into a .war file? 
Yes, it's what Ant was made to do.  However, one thing it doesn't do that
the CF tool allows is the handpicking of datasources and other features.
All Ant does is take whatever files and directories you specify and the
makes the WAR from it.  As usual, the CF team did a good in making something
that is manually tasking into a nice user interface.

What about things like datasources, custom tag paths, mail server settings,
etc etc?
Again, these are taken as a group, a snapshot if you will of your current
server, and built into the WAR.  No cool interface to handpick each one.

Basically with the Ant tool, you need to set up a dev environment that
mimics the production and then build the WAR from that.  Thinking back to
your original question, I feel I should modify my response.  

We have a very complex build cycle tha requires multiple J2EE server
instances and quite a few tags be compiled into WARs and EARs, so we need
the power of Ant.  If you have one site with a simple structure, then the CF
tool is definitely the way to go.  It's quick, easy and has a nice UI for
customization.

-Original Message-
From: Cliff Meyers [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 28, 2005 10:33 PM
To: CF-Talk
Subject: Re: adminapi and j2ee packaging

Does Ant have the awareness to take a directory full of .cfm's and bundle
it into a .war file?  What about things like datasources, custom tag paths,
mail server settings, etc etc?  I'll admit I don't know a lot about the Ant
tool, but it just doesn't seem intuitive to me that it would be able to do
that on its own.  I know that the entire CF app server is a J2EE app, but
the process that MM uses to build that tool must have some intelligence as
to the Java libaries that CF uses to do its thing, etc.  If someone from MM
can yell at me and tell me I'm wrong, I'd be thrilled!



~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200371
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: inserting structure data into a database

2004-09-10 Thread Steven Brownlee
To answer your most basic question, the best way to insert structure values
into a database would be to parse each value of the structure into a local
variable and insert those values.Structures are complex objects and
database fields are simple constructs.

 
Investigate looping over the values of a structure.
http://www.kodefusion.com/article/index.cfm?ArticleID=2

_

From: Tim Laureska [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 10, 2004 8:52 AM
To: CF-Talk
Subject: RE: inserting structure data into a database

body
Wow, that was a great array of responses ...the code for inserting the
data that I have played with initially is below.I'm really looking to
understand what the best way of inserting data from a structure into a
database... is this an illogical question to begin with?

cfset me = structNew() 
cfset me.mytitle = #form.title#
cfset me.mydate1 = #form.date1#
cfset me.mypublication = #form.publication#
cfset me.myissue = #form.issue#

cfoutput
table
cfloop from=1 to=#ListLen(item1)# index=i
tr
 td valign=top#ListGetAt(item1, i)#nbsp;nbsp;/td
 td valign=top#ListGetAt(item2, i)#nbsp;nbsp;/td
 td valign=top#ListGetAt(item3, i)#/td
/tr
/cfloop
/table
/cfoutput

cfquery datasource=library_56
INSERT INTO test_structures (test1, test2, test3, structure)
Values ('#item1#', '#item2#', '#item3#', #me#)
/cfquery

-Original Message-
From: Dick Applebaum [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 10, 2004 8:32 AM
To: CF-Talk
Subject: Re: inserting structure data into a database

Tim

One of the basic rules of good relational db design is that each entity 
(record, row, column) should be atomic -- represent only one thing,

You should not insert a structure into a db

Rather, insert each cassette as a separate row (record) in the db

If there is a relationship among the multiple cassettes that you 
currently have in the structure, consider adding an identifier (group) 
to each record in the db.

ID
Title
IssueNumber
IssueDate
Group

Dick

On Sep 10, 2004, at 5:23 AM, Tim Laureska wrote:

 Just learning structures, but here goes:

When I insert structure data into a database, it's inserted into each
field as a comma delimited list.

In this scenario, I'm inserting audio cassette tape information into 
 the
database from a form when multiple cassettes are entered at one time.
There are three attributes to for each cassette... title, issue date 
 and
issue number, which are the fields in the database (along with an 
 autoid
field).

So if three cassettes are entered and subsequently inserted into the
database, the data goes in as such:

Auto id title fieldissue number fieldissue date
field

1 title1, title2, title3issue1,issue2,issue3
date1,date2,date3

This seems to present a problem in that each cassette does not have a
unique autoid to identify it individually and that may present issues
further in the application...

My questions are:1) is this analysis correct and 2)how can you
maintain a unique id for each cassette in this situation ... do you 
 have
to assign a unique number for each cassette using some sort of CF
code
or is there a way to still utilize the DB's automatic unique id
assignment feature?
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




RE: Fusebox

2004-09-04 Thread Steven Brownlee
Andrew:

 
It is better to use {insert methodology here} because of the standards,
protocols and consistency that it provides to all of the developers of your
application.{insert methodology here} is NOT inherently better than a
system that you come up with on your own, it simply saves you time in two
areas.First, you don't have to waste huge amounts of time designing and
documenting your own application coding practices.Secondly, using {insert
methodology here} can drastically reduce the time and money spent training a
new memeber of the development team.Assuming that the new developer knows
{insert methodology here}, of course.Most any deeply experienced architect
- not just a developer - will tell you that any methodology is better than
having none.Developers are the ones that will defend their choice with
religious zeal.As a consultant on many projects using a vast array of
coding languages, I strongly assert that a company that adheres even to the
most simple of standards is way ahead of the game.

 
My personal favorites are:
Mach II - http://www.mach-ii.com/
cfObjects - https://sourceforge.net/projects/cfobjects/
Fusebox - http://www.fusebox.org/

_

From: Andrew Dixon [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 03, 2004 6:43 PM
To: CF-Talk
Subject: Fusebox

Hi Everyone.

We are just about to start a major new project, well actually a
complete upgrade from the ground up of an old project, but I have been
looking at doing it in a much more structured way and I wanted some
opinion about using Fusebox. We have never used it before, but we are
all highly experienced CF programmers (5+ years). What I'm really
looking for is some explaining of why it is better to use the Fusebox
method than just straight forward CF.

Also, can anyone point me in the direction of a good online
introduction to Fusebox as there doesn't seem to be much on the
Fusebox website.

Thanks

Andrew. 
_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: stored procedures

2004-08-26 Thread Steven Brownlee
Stored procedures are not meant to replace simple queries that have negligible affect on the server - queries that return a small amount of rows, or queries on tables with few indices.However, when your application becomes heavily data-dependant and complex then moving those queries to the database layers will drastically reduce the processing time on the server versus using CFQUERY.Stored procedures are precompiled on the database layer and optimized for that particular engine.

In addition, stored procedures can help maintain a better level of security and better type control on input and output parameters.

For the majority of simple Internet or Intranet applications built by ColdFusion developers, stored procedures are overkill, but once you take it to the next level, they become your best friend.

 hey this might sound lame to some of you that use stored procedures 
 and i apologize, but what is the point or what is the benefit rather?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Consuming CFC web methods in VB.NET

2004-08-18 Thread Steven Brownlee
This is my last stab at this problem. No other message boards have been able to help me.

First, the code...

getPlaylist.cfc

cffunction access=remote name=getNewPlaylist output=no returntype=query
cfargument name=clientID type=string required=yes

cfquery ... name=IMPlaylist
... removed for space saving...
/cfquery

cfif IMPlaylist.recordCount gt 0
	cfoutput query=IMPlaylist
		cfquery datasource=clp_dyn_signs dbtype=odbc username=... password=...
 .. Removed for space saving
		/cfquery
	/cfoutput
	cfreturn IMPlaylist
/cfif

/cffunction


frmMain.vb

Dim MyService As getPlaylist.getPlaylistService = New getPlaylist.getPlaylistService
Dim MyResult As getPlaylist.QueryBean

Try
MyResult = MyService.getNewPlaylist(xmlParser.ClientID)
Catch ex As Exception
Me.txtHistory.Text += Error calling playListExists function (  ex.Message  ) + vbCrLf
Log.AppendLog(Error calling playListExists function (  ex.Message  ))
End Try


Now the getPlaylist.cfc works fine from the Flash Remoting application that was built for this client, but when trying to get the query into VB.NET, the following error is returned

org.apache.axis.AxisFault : ; nested exception is: 
	coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.UDFMethod$InvalidReturnTypeException : The value returned from function getNewPlaylist() is not of type query.][]; nested exception is: 
	coldfusion.xml.rpc.CFCInvocationException: [org.apache.axis.AxisFault : ; nested exception is: 
	coldfusion.xml.rpc.CFCInvocationException: [coldfusion.runtime.UDFMethod$InvalidReturnTypeException : The value returned from function getNewPlaylist() is not of type query.][])


It does return a query (or QueryBean as XML sees it) and everything is types correctly in the .NET code.I also put in a test function that just returned some dummy text to see if I was able to properly invoke functions of a CFC web method and it worked fine.Just seems to be choking on sending back a query.

I know this is a convoluted question, so if anyone has had experience using CFC methods in .NET, I'd appreciate any help.

Steven Brownlee
[EMAIL PROTECTED]
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




Re: Consuming CFC web methods in VB.NET

2004-08-18 Thread Steven Brownlee
Thanks, Adam.That UDF worked and passes to .NET perfectly.

I've always contended that sending anything over a webservice other
than simple values is going to get you in trouble. Even in CF - CF
communications I think sending anything other than text is asking for
trouble. I recomend using one of the many functions on cflib.org to
convert the complex objects to xml.
http://www.cflib.org/udf.cfm?ID=648

Antother option would be to generate a WDDX packet and return that but
you'll need something like
http://www.topxml.com/code/default.asp?p=3id=v20020829124758ms=20l=dotnetsw=categ
 to deal with WDDX in .Net I think.

Adam H

On Wed, 18 Aug 2004 10:20:00 +0100, Craig Dudley [EMAIL PROTECTED] wrote:

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]




New cfObjects Development Site

2001-08-12 Thread Steven Brownlee

There is now a new site for the development of the free cfObjects 
development framework.  The beta of cfObjects 3.0 has been published and is 
available for download.  The plan is to release version 3.0 before the 
October developers conference.

https://sourceforge.net/projects/cfobjects/

If anyone is interested in helping develop the cfObjects framework, please 
feel free to visit the site, become a member of Sourceforge and join the 
cause.

Here's a short list of items that will be in version 3.0
- Reduced number of base tags needed
- Event-based model
- XML-based documentation
- Shared server version enabled
- Visual project/code management tool
- Extensive debugging capabilities
- Faster processing
- Less memory usage
- Better documentation
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Verity Search Query Language

2001-06-08 Thread Steven Brownlee

I'm attempting to search a CFINDEX against three different criteria -
keywords, date range, and category. Here's the index.

---
cfquery name=q_articles
datasource=#application.db_dsn#
dbtype=#application.db_dbtype#
select * from articles a 
where a.published = 1 
order by a.date_entered, a.section_id
/cfquery

cfindex action=update 
   type=CUSTOM 
   title=Articles
   query=q_articles
   collection=articles 
   custom1 = date_entered
   custom2 = section_id
   key=article_id
   body=synopsis, article_title, article_body
---

Now, the user has three fields to enter criteria from: a text box for
keywords, a drop down to specify a date range (values = 1, 2, 3, 6, 12),
and a drop down to specify a category. Here's the search I'm trying to
perform.

---
cfset dateRestriction = DateAdd( m, -  #self.date_check#, now() )

cfsearch collection=articles
   name=article_search
   type=EXPLICIT
   criteria=#self.keywords# AND (custom1  #dateRestriction#)
---

As soon as I add the custom1  #dateRestriction#, I get zero results. If
I leave that out, I get a valid resultset. Perhaps I'm not understanding
the VSQL. Is that date check statement valid?? Also, the dateRestiction
field is working correctly, here's an example value of it: {ts
'2001-03-08 09:57:25'}

Hoping that someone has performed advanced Verity searches like this
before. Any help would be immensely appreciated.


Steven R. Brownlee
Lead Technologist
Mind Over Media

200 First Street
Pittsburgh, PA 15222
P: 412.471.9590
F: 412:471.9591
E: [EMAIL PROTECTED]
W: http://www.momknows.com/
  


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists