RE: Why is there query.recordcount with non-SELECT queries?

2006-04-19 Thread Nashir Sunderji
You log ingo to 'search'  and type in search by name the letters naf and
you should be able to find him
Customer service


-Original Message-
From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] 
Sent: 18 April 2006 16:16
To: CF-Talk
Subject: Why is there query.recordcount with non-SELECT queries?

Should queries that do an update return a queryname.recordcount
variable?  I'm trying to determine how many records get changed during
an update statement.

Pete



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238060
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: Why is there query.recordcount with non-SELECT queries?

2006-04-19 Thread Russ Michaels
erm, god knows what this guys reply has to do with your question but.

No, only selects return a recordcount.
Although SQL does return a message about how many records are updated, but
I cannot recall if this is stored in the query object, so try cfdumping it
and see if its there.

Russ

-Original Message-
From: Nashir Sunderji [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Date: Wed, 19 Apr 2006 08:25:58 +0100
Subject: RE: Why is there query.recordcount with non-SELECT queries?

 You log ingo to 'search'  and type in search by name the letters
 naf and
 you should be able to find him
 Customer service
 
 
 -Original Message-
 From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED] 
 Sent: 18 April 2006 16:16
 To: CF-Talk
 Subject: Why is there query.recordcount with non-SELECT queries?
 
 Should queries that do an update return a queryname.recordcount
 variable?  I'm trying to determine how many records get changed during
 an update statement.
 
 Pete
 
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238061
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


Directory watcher for standard edition

2006-04-19 Thread Chris Velevitch
Where can I find the equivalent of the directory watcher gateway for
cf standard edition? I want to be able to use my existing directory
watcher code without change.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238062
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: Evaluate vs ?

2006-04-19 Thread Russ Michaels
the variable must exist or you cannot evaluate it.
In my example I specified saving the content to a file and cfincluding it,
which is not what you have done below.

This works fine for what you want below.

cfset content = this is some dynamic content
cfset foo = This is static content. #content#

cfoutput
#foo#
/cfoutput
Here is an example of evaluating an external file.

cfset content = this is some dynamic content
cfsavecontent variable=contentfile
cfinclude template=content.cfm
/cfsavecontent
content from file:br
br

cfoutput
#evaluate(de(contentfile))#
/cfoutput

--
Russ (snake) Michaels



-Original Message-
From: Bruce, Rodney S C-E LCMC HQISEC/Signal Solutions
[EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Date: Tue, 18 Apr 2006 13:30:08 -0700
Subject: RE: Evaluate vs ?

 Ok, guess I am missing something here:
 
 
 cfset foo = fee fi fo fum #variable# this is dynamic content
 If #variable# is not set CF errors, If #variable# is set puts value
 into
 foo.
 
 
 CFOUTPUT
 #foo#---foo would output to be   fee fi fo fum #variable# this
 is
 dynamic content  is what was wanted??
 /CFOUTPUT -not necessarily outputted, but to still contains the
 #variable# unresolved?
 
 
 This will set that up:
 cfset foo = fee fi fo fum ##variable## this is dynamic content
 
 But even using evaluate, this errors with (Invalid CFML construct
 found):
 
 cfset variable = fub
 
 cfoutput
 #evaluate(foo)#
 /cfoutput
 
 And just to test, this errors if #variable# is not set
 cfset foo = Evaluate(fee fi fo fum #variable# this is dynamic
 content)
 
 Can you show were this would work and be used, with evaluate?
 Have me curious now.
 
 
 
 
 -Original Message-
 From: Aaron Rouse [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 18, 2006 12:24 PM
 To: CF-Talk
 Subject: Re: Evaluate vs ?
 
 
 This does the same thing as his:
 
 cfset foo = fee fi fo fum #variable# this is dynamic content
 
 My guess is he was saying for the value of variable to not be put
 into foo
 until the time that it was outputed instead of when set.
 
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238063
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: BEA licenses BlueDragon for WebLogic

2006-04-19 Thread Thomas Chiverton
On Monday 17 April 2006 19:37, Vince Bonfanti wrote:
 Some people might also find it significant that BEA is now essentially a
 competitor to Adobe in a portion of the ColdFusion server market (that
 portion being people who are now or are planning to redeploy existing
 CFML applications onto WebLogic servers).

We already run MX on Weblogic. This is a supported configuration and works 
great.
When we last looked, BD was about the same* price for a J2EE version as MX. It 
appears that since then BD has improved it's compatability with legacy CFML 
code since then, however, it's still the same cost with no extra benefit.

Don't mind me though, I'm about to change employers :-)

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238064
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: Catching bogus credit card numbers

2006-04-19 Thread Thomas Chiverton
On Monday 17 April 2006 21:04, Mosh Teitelbaum wrote:
 To date, the few fake numbers that have gone through have been among the
 commonly-known numbers.  Hopefully, this will cut down on a little bit of
 frustration for the client.

Why not add a feature so the client can press a button to have the number 
blocked from future use, then check that list of numbers when the user 
submits an order.
Self-service is good :-)

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238065
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: Extract email(s) from non-delivered message

2006-04-19 Thread Thomas Chiverton
On Wednesday 19 April 2006 04:31, Rey Bango wrote:
 something, I'd like to see if there's something already built to handle
 this:
  [EMAIL PROTECTED]:
  This user doesn't have a yahoo.com account ([EMAIL PROTECTED]) [0]

You mean like a regular expression, wrapped in a simple loop over each line ?

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238066
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


Q of Q crazy problem

2006-04-19 Thread Ben Nadel
I am having this really strange problem involving a query of queries that I
have never encountered before. Basically I am building a query with the
QueryNew() method:

cfset REQUEST.SearchQuery = QueryNew(
  title, date, preview, link, score,
  VARCHAR, DATE, VARCHAR, VARCHAR, INTEGER
  ) /

Then I build the query based on other queries. If I display this one, at
this point, it's totally fine. After building the query I do a QofQ like so:

cfquery name=REQUEST.SearchQuery dbtype=query
  SELECT   title
  FROMREQUEST.SearchQuery
  ORDER BY
score DESC,
[date] DESC
/cfquery

This sometimes throws the following error:  Error casting an object of type
to an incompatible type. This usually indicates a programming error in Java,
although it could also mean you have tried to use a foreign object in a
different way than it was designed.

I have narrowed it down to the line of code that causes the casting issue.
It happens when I update the SCORE value. It really doesn't matter how it is
updated as long as it is set by a method call. 

For example, the following cause NO ERROR:

cfset REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] =
100 /
cfset REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] = 0
/
cfset REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] =
  REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] /


However, the following all cause error:

cfset REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] =
ArrayLen( arrCriteria ) /
cfset REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] = 
  Max( 5, REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] )
/

Heck, even this causes errors:

REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] = 
  Max( REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ], 
  REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] 
  ) /


Its like any function call that returns a number corrupts the SCORE value
for the QofQ.

NOW, EVEN MORE CRAZY, if I take out the data types in the QueryNew() method,
so that it is just:

cfset REQUEST.SearchQuery = QueryNew(
  title, date, preview, link, score,
  ) /

, the whole thing works like a charm. CRAZY!

Any suggestions? That has to be some sort of bug unless I am missing
something big here.


Thanks,
Ben
..
www.bennadel.com


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238067
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: BEA licenses BlueDragon for WebLogic

2006-04-19 Thread RADEMAKERS Tanguy
-Original Message-
We already run MX on Weblogic. This is a supported 
configuration and works great.

You must be luckier than us then - we run MX 6.1 in weblogic and so far,
great is most certainly not the word i'd use to describe it.

/t

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238068
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: Why is there query.recordcount with non-SELECT queries?

2006-04-19 Thread Nick Tong - TalkWebSolutions.co.uk
I agree with Russ - i'm not sure if you can but although i can't test on the
machine i'm on at the mo it might be worth looking at whats returned in the
metadata (getMetaData) and the query result structure

http://www.succor.co.uk/index.cfm/2006/3/21/The-cfquery-result-structure



On 19/04/06, Russ Michaels [EMAIL PROTECTED] wrote:

 erm, god knows what this guys reply has to do with your question but.

 No, only selects return a recordcount.
 Although SQL does return a message about how many records are updated, but
 I cannot recall if this is stored in the query object, so try cfdumping it
 and see if its there.

 Russ

 -Original Message-
 From: Nashir Sunderji [EMAIL PROTECTED]
 To: CF-Talk cf-talk@houseoffusion.com
 Date: Wed, 19 Apr 2006 08:25:58 +0100
 Subject: RE: Why is there query.recordcount with non-SELECT queries?

  You log ingo to 'search'  and type in search by name the letters
  naf and
  you should be able to find him
  Customer service
 
 
  -Original Message-
  From: Pete Ruckelshaus [mailto:[EMAIL PROTECTED]
  Sent: 18 April 2006 16:16
  To: CF-Talk
  Subject: Why is there query.recordcount with non-SELECT queries?
 
  Should queries that do an update return a queryname.recordcount
  variable?  I'm trying to determine how many records get changed during
  an update statement.
 
  Pete
 
 
 
 

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238069
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: BEA licenses BlueDragon for WebLogic

2006-04-19 Thread Thomas Chiverton
On Wednesday 19 April 2006 13:18, RADEMAKERS Tanguy wrote:
 You must be luckier than us then - we run MX 6.1 in weblogic and so far,
 great is most certainly not the word i'd use to describe it.

*Really* ?
What's up ?

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238070
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: SOT: Best Practices Instantiating a CFC

2006-04-19 Thread Larry Lyons
thx James.

larry

 If there is no data, you don't need to serialize it and you only need
 one instance. I'd store it in the Application scope in this case,
 since that will provide the lowest overhead in terms of memory use 
 and
 instantiation time.
 
 On 4/19/06, Larry Lyons [EMAIL PROTECTED] wrote:
  I'm trying to get a feel for what's a best practice here.
 
  I have a site that uses one CFC a lot. Eventually I'll be moving 
 this site to a clustered environment, so serialization may be a 
 concern. However, there is no data with the cfc, just a set of 
 functions. All data is passed in, manipulated etc, then returned to 
 the calling page.
 
  What would be better in this case, keeping the cfc in the variables 
 scope or moving it to either the application or session scopes?
 
 --
 CFAJAX docs and other useful articles:
 http://jr-holmes.coldfusionjournal.
com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238071
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


Gzip content from a variable

2006-04-19 Thread gabriel l smallman
Hey all,

I have been using cf_gzip for a while but would like to improve performance.
Right now it reads a file, then writes a gzip'd file. Then I have to read
that file and dish back to user.

I would like to just pass in the content as a variable, then get back a
variable with the gzip'd data. Ignore all the file business.

Anyone know of anything pre built or up for a challenge?

gabe



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238072
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: Moving HomeSite+

2006-04-19 Thread Andy Matthews
My IT guy recently found a program that migrated specified software for you.
Both computers have to be on the network, then you run this software on both
computers and simply select what you want copied from old to new. It moves
settings, serial numbers, preferences, etc.

http://www.pcmag.com/article2/0,1759,1593237,00.asp

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Richard Colman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 18, 2006 10:01 PM
To: CF-Talk
Subject: Moving HomeSite+


How do I move my Homesite installation from my old computer (retiring) to my
new computer. I have been searching through the MM website trying to learn
how to do this, but can't seem to find a direct reference.

Comments appreciated.

Rick Colman






~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238073
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: Directory watcher for standard edition

2006-04-19 Thread Andy Matthews
Set up a cron job at 1 minute intervals? That's going to likely be the best
way to do this.

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Chris Velevitch [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 3:18 AM
To: CF-Talk
Subject: Directory watcher for standard edition


Where can I find the equivalent of the directory watcher gateway for
cf standard edition? I want to be able to use my existing directory
watcher code without change.


Chris
--
Chris Velevitch
Manager - Sydney Flash Platform Developers Group
www.flashdev.org.au



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238074
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: StructFindKey Path and evaluate

2006-04-19 Thread Thomas Chiverton
On Monday 17 April 2006 17:07, Bruce, Rodney S C-E LCMC HQISEC/Signal 
Solutions wrote:
 So I am not going to the very bottom of the structure, the value at
 MyStruct.ProjectA.Task1.Task1.3, would be a structure not a simple value.

Ya know if that tree was flattened into a few database tables, it'd all be 
much easier :-)

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238075
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


Get String Byte Size

2006-04-19 Thread Rob Wilkerson
Anyone have any quick code to retrieve the number of bytes in a string
/without/ writing the string to a file first?  I'm trying to do a
little debugging and I'd like to know the size of a string that is
being returned to the browser.

Thanks.

--

Rob Wilkerson

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238076
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: BEA licenses BlueDragon for WebLogicr

2006-04-19 Thread RADEMAKERS Tanguy
-Original Message-
*Really* ?
What's up ?

Number one peeve: Can't pass java objects you created yourself to an EJB
in a different application on the same server: MX uses the classloader
of the various objects/parameters to figure out which method to call, so
it claims that no such method exists. Solutions (in order of banging
your head against the wallness):
- fiddle with classloader settings in bea - only works if you want to
talk to EJB's from ONE other app... 
- have the EJB give you blank instances of the objects which you then
customize and return to it. You get to handle the why do we need this
method? questions every time you break in a new Java dev.
- Dynamic proxy (which is how we went) - works, but that's code for
nothing, since a bog standard struts application deployed right next to
the cf one can do exactly what we're trying to do, no muss, no fuss.
Much ribbing by Java devs ensues.

Also, there's some kind of issue with memory not being released when you
redeploy cf - do it enough times and bang, out of memory error. Which
means you should restart the server when you redeploy the app. Round
here, that means a weekend, which means that operations hates you for
making them work on saturdays...

Then, there's the occasional null pointer exception being thrown from
the middle of code you haven't touched in donkey's years. solution:
bounce the app or better yet, the server. Thank god that only happens in
dev... so far.

My opinion: i just don't see what *real* benefits you get from the J2EE
configuration; i'm sure that the adobe/macromedia marketing department
finds it very useful to sell into big companies on the Enterprise
ticket, but my suggestion would be to stick with enterprise on JRUN

just my 0.02$

/t

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238077
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


CF Page Won't Stop Executing

2006-04-19 Thread powell
Am I in the middle of a brain-burp, or is it not in fact the case that CF used 
to stop executing the current page if the user hit their stop button and opened 
a new CF page?  I have pages that continue to execute even after the user hits 
STOP and REFRESH - so now I have a couple of copies of the same killer page 
executing at the same time!  Am I remembering things wrong, or is this how it 
is supposed to be?  If the latter, then what actually stops a page from 
executing before it finishes on its own?

That sound you hear in the background is the the heap memory on my server 
slowly being eaten away.  My 6th sense sees out of memory and ringing phones 
in my future.

thanks
Reed

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238078
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: Get String Byte Size

2006-04-19 Thread Ben Nadel
Rob,

Characters take up one byte... As far as I know... Althoug unicode may take
up 4?? I can't remember. I suppose the best estimate would be to multiply
the string length by the byte size of each characters:

intSizeEstimate = Len( strFileContent ) * 4 

-b
...
Ben Nadel 
Web Developer
Nylon Technology
350 7th Ave.
Suite 1005
New York, NY 10001
212.691.1134 x 14
212.691.3477 fax
www.nylontechnology.com

Sanders: Lightspeed too slow?
Helmet: Yes we'll have to go right to ludacris speed.
-Original Message-
From: Rob Wilkerson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 9:28 AM
To: CF-Talk
Subject: Get String Byte Size

Anyone have any quick code to retrieve the number of bytes in a string
/without/ writing the string to a file first?  I'm trying to do a little
debugging and I'd like to know the size of a string that is being returned
to the browser.

Thanks.

--

Rob Wilkerson



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238079
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: BEA licenses BlueDragon for WebLogicr

2006-04-19 Thread Thomas Chiverton
On Wednesday 19 April 2006 14:38, RADEMAKERS Tanguy wrote:
 Number one peeve: Can't pass java objects you created yourself to an EJB
 in a different application on the same server: MX uses the classloader

You couldn't do that even if it was two JSP apps, if they were in different 
J2EE application contexts, could you ?

 Also, there's some kind of issue with memory not being released when you
 redeploy cf - do it enough times and bang, out of memory error. Which

We don't see that here- our memoray graph is fairly flat with time.
I assume asking you if you are up to date with O/S, WL and CF patches is 
obvious ?

 Then, there's the occasional null pointer exception being thrown from
 the middle of code you haven't touched in donkey's years. solution:
 bounce the app or better yet, the server. Thank god that only happens in
 dev... so far.

Oddness.
Does it look like:
Thread Stack Trace:
at mmGetObjectSize+8()@0x40298908
at mmGetPossibleMovedObjectSize+26()@0x40298942
at setAsLastObj+31()@0x40292313
at findNext+205()@0x402923f1
at findNextToReturn+24()@0x40292430
at refIterGetNext+40()@0x402924a0
at trProcessRootsForThread+92()@0x40290a2c
at tsMarkAllRootsForThread+44()@0x40307040
at mmGenCon1ThreadInspection+30()@0x4029fc32
at tsDoGCInspectionForAllThreads+55()@0x40306f9b
at mmGenCon1ProcessThreadRoots+24()@0x4029fc50
at mmGenConMark+43()@0x402a0453
at mmConMark+48()@0x4029f7c4
at mmGCMainEP+80()@0x4029b058 

by any chance ?
We're getting that for some reason on *one* of the dev machines.

 My opinion: i just don't see what *real* benefits you get from the J2EE
 configuration; i'm sure that the adobe/macromedia marketing department
 finds it very useful to sell into big companies on the Enterprise
 ticket, but my suggestion would be to stick with enterprise on JRUN

In our case, we wanted to make use of some of the Weblogic stuff, like (if you 
write your own authenticator) protecting the web site and Java-base web 
services with the same set of roles and users.
We also use WLs JMS queues, for instance.

But, yeah, 90% of people will be fine with running it on Jrun, or, hell 
JBoss :-)

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238080
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: CF Page Won't Stop Executing

2006-04-19 Thread Thomas Chiverton
On Wednesday 19 April 2006 14:43, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
 Am I in the middle of a brain-burp, or is it not in fact the case that CF
 used to stop executing the current page if the user hit their stop button

Don't recall CF6 ever being able to do that.

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238081
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: Get String Byte Size

2006-04-19 Thread Rob Wilkerson
And therein lies the key.  I may - or may not - have unicode involved.
 I was hoping someone knew of some quick java to return the byte size
of a string that would handle those vagaries.  I haven't found
anything in my searches.

On 4/19/06, Ben Nadel [EMAIL PROTECTED] wrote:
 Rob,

 Characters take up one byte... As far as I know... Althoug unicode may take
 up 4?? I can't remember. I suppose the best estimate would be to multiply
 the string length by the byte size of each characters:

 intSizeEstimate = Len( strFileContent ) * 4

 -b
 ...
 Ben Nadel
 Web Developer
 Nylon Technology
 350 7th Ave.
 Suite 1005
 New York, NY 10001
 212.691.1134 x 14
 212.691.3477 fax
 www.nylontechnology.com

 Sanders: Lightspeed too slow?
 Helmet: Yes we'll have to go right to ludacris speed.
 -Original Message-
 From: Rob Wilkerson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 19, 2006 9:28 AM
 To: CF-Talk
 Subject: Get String Byte Size

 Anyone have any quick code to retrieve the number of bytes in a string
 /without/ writing the string to a file first?  I'm trying to do a little
 debugging and I'd like to know the size of a string that is being returned
 to the browser.

 Thanks.

 --

 Rob Wilkerson



 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238082
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: Get String Byte Size

2006-04-19 Thread Andy Matthews
I would think that at the Java level there would be some way to get the
size of a variable.

Maybe these might help?:
http://www.roseindia.net/javatutorials/determining_memory_usage_in_java.shtm
l

http://gcc.gnu.org/ml/java/2003-02/msg00293.html


!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Rob Wilkerson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 8:57 AM
To: CF-Talk
Subject: Re: Get String Byte Size


And therein lies the key.  I may - or may not - have unicode involved.
 I was hoping someone knew of some quick java to return the byte size
of a string that would handle those vagaries.  I haven't found
anything in my searches.

On 4/19/06, Ben Nadel [EMAIL PROTECTED] wrote:
 Rob,

 Characters take up one byte... As far as I know... Althoug unicode may
take
 up 4?? I can't remember. I suppose the best estimate would be to multiply
 the string length by the byte size of each characters:

 intSizeEstimate = Len( strFileContent ) * 4

 -b
 ...
 Ben Nadel
 Web Developer
 Nylon Technology
 350 7th Ave.
 Suite 1005
 New York, NY 10001
 212.691.1134 x 14
 212.691.3477 fax
 www.nylontechnology.com

 Sanders: Lightspeed too slow?
 Helmet: Yes we'll have to go right to ludacris speed.
 -Original Message-
 From: Rob Wilkerson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 19, 2006 9:28 AM
 To: CF-Talk
 Subject: Get String Byte Size

 Anyone have any quick code to retrieve the number of bytes in a string
 /without/ writing the string to a file first?  I'm trying to do a little
 debugging and I'd like to know the size of a string that is being returned
 to the browser.

 Thanks.

 --

 Rob Wilkerson







~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238083
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: CF Page Won't Stop Executing

2006-04-19 Thread James Holmes
I'm not sure about that either. As for stopping a long running
request, use the CF Admin option to stop a page running longer than x
seconds.

There's also Fusion Reactor or SeeFusion, which can both selectively
terminate running CF requests.

On 4/19/06, Thomas Chiverton [EMAIL PROTECTED] wrote:
 On Wednesday 19 April 2006 14:43, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:
  Am I in the middle of a brain-burp, or is it not in fact the case that CF
  used to stop executing the current page if the user hit their stop button

 Don't recall CF6 ever being able to do that.


--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238084
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: Extract email(s) from non-delivered message

2006-04-19 Thread Rey Bango
Sure. Got something like that? ;)

Rey...

Thomas Chiverton wrote:
 On Wednesday 19 April 2006 04:31, Rey Bango wrote:
 
something, I'd like to see if there's something already built to handle
this:
 [EMAIL PROTECTED]:
 This user doesn't have a yahoo.com account ([EMAIL PROTECTED]) [0]
 
 
 You mean like a regular expression, wrapped in a simple loop over each line ?
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238085
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: Get String Byte Size

2006-04-19 Thread Ben Nadel
Andy,

I am not sure how to do this exactly, but maybe something along the lines
of:

ArrayLen( CreateObject(java, java.lang.String).Init( strFileContent
).GetBytes() )

It creates a string, then gets the byte array (as described in the java
docs: Convert this String into bytes according to the platform's default
character encoding, storing the result into a new byte array.). Perhaps in
this case, the number of bytes would be the size of the memory??

...
Ben Nadel 
Web Developer
Nylon Technology
350 7th Ave.
Suite 1005
New York, NY 10001
212.691.1134 x 14
212.691.3477 fax
www.nylontechnology.com

Sanders: Lightspeed too slow?
Helmet: Yes we'll have to go right to ludacris speed.
-Original Message-
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 10:03 AM
To: CF-Talk
Subject: RE: Get String Byte Size

I would think that at the Java level there would be some way to get the
size of a variable.

Maybe these might help?:
http://www.roseindia.net/javatutorials/determining_memory_usage_in_java.shtm
l

http://gcc.gnu.org/ml/java/2003-02/msg00293.html


!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-

-Original Message-
From: Rob Wilkerson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 8:57 AM
To: CF-Talk
Subject: Re: Get String Byte Size


And therein lies the key.  I may - or may not - have unicode involved.
 I was hoping someone knew of some quick java to return the byte size of a
string that would handle those vagaries.  I haven't found anything in my
searches.

On 4/19/06, Ben Nadel [EMAIL PROTECTED] wrote:
 Rob,

 Characters take up one byte... As far as I know... Althoug unicode may
take
 up 4?? I can't remember. I suppose the best estimate would be to 
 multiply the string length by the byte size of each characters:

 intSizeEstimate = Len( strFileContent ) * 4

 -b
 ...
 Ben Nadel
 Web Developer
 Nylon Technology
 350 7th Ave.
 Suite 1005
 New York, NY 10001
 212.691.1134 x 14
 212.691.3477 fax
 www.nylontechnology.com

 Sanders: Lightspeed too slow?
 Helmet: Yes we'll have to go right to ludacris speed.
 -Original Message-
 From: Rob Wilkerson [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 19, 2006 9:28 AM
 To: CF-Talk
 Subject: Get String Byte Size

 Anyone have any quick code to retrieve the number of bytes in a string 
 /without/ writing the string to a file first?  I'm trying to do a 
 little debugging and I'd like to know the size of a string that is 
 being returned to the browser.

 Thanks.

 --

 Rob Wilkerson









~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238086
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: Moving HomeSite+

2006-04-19 Thread Dawson, Michael
Each time I would migrate settings from one PC to another, I would
always have to manually re-create my custom keyboard shortcuts.  Every
other custom item would be copied successfully.

I could see the keyboard shortcuts in the appropriate file, but HS would
not honor them.  Not even after flushing the cache and restarting HS.
Hopefully, you will have better luck.

M!ke 

-Original Message-
From: Richard Colman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 18, 2006 10:01 PM
To: CF-Talk
Subject: Moving HomeSite+

How do I move my Homesite installation from my old computer (retiring)
to my new computer. I have been searching through the MM website trying
to learn how to do this, but can't seem to find a direct reference.

Comments appreciated.

Rick Colman

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238087
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: Moving HomeSite+

2006-04-19 Thread Damien McKenna
 -Original Message-
 From: Dawson, Michael [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 19, 2006 10:16 AM
 
 Each time I would migrate settings from one PC to another, I would
 always have to manually re-create my custom keyboard shortcuts. 
 Every other custom item would be copied successfully.

Might it be something in the registry?

-- 
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
#include stdjoke.h

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238088
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: Extract email(s) from non-delivered message

2006-04-19 Thread Thomas Chiverton
On Wednesday 19 April 2006 15:20, Rey Bango wrote:
 Sure. Got something like that? ;)

Ben Nadel suggest a reg. ex. yesterday.

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238089
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: CF Page Won't Stop Executing

2006-04-19 Thread powell
Thanks, I was afraid that I was working with old recollections.  I've been 
looking at both FusionReactor and SeeFusion, so now it's time to move forward.  
I like FusionReactor better because it handle all of the installation itself.  
SeeFusion is nice because it shows more info on queries, but their installation 
process is crap - virtually nothing is automated.

So I guess the bottom line is that with any of the CFMX versions there is no 
protection from users getting impatient waiting for a page that legitimately 
takes a few seconds to process, and repeatedly hit REFRESH?

Reed

I'm not sure about that either. As for stopping a long running
request, use the CF Admin option to stop a page running longer than x
seconds.

There's also Fusion Reactor or SeeFusion, which can both selectively
terminate running CF requests.

On 4/19/06, Thomas Chiverton [EMAIL PROTECTED] wrote:
 On Wednesday 19 April 2006 14:43, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:
  Am I in the middle of a brain-burp, or is it not in fact the case that CF
  used to stop executing the current page if the user hit their stop button

 Don't recall CF6 ever being able to do that.


--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238090
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: CF Page Won't Stop Executing

2006-04-19 Thread Dan G. Switzer, II
Reed,

Am I in the middle of a brain-burp, or is it not in fact the case that CF
used to stop executing the current page if the user hit their stop button
and opened a new CF page?  I have pages that continue to execute even after
the user hits STOP and REFRESH - so now I have a couple of copies of the
same killer page executing at the same time!  Am I remembering things
wrong, or is this how it is supposed to be?  If the latter, then what
actually stops a page from executing before it finishes on its own?

Clicking Stop in a web browser has never stop the server processing a
request, all it does is tells the browser to stop listening for a response.

In order to actually kill that process, you'd need access to the Java
threads--or use a tool like SeeFusion (http://www.seefusion.com/) which will
allow you to kill a running process.

-Dan


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238091
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: Q of Q crazy problem

2006-04-19 Thread Munson, Jacob
 NOW, EVEN MORE CRAZY, if I take out the data types in the 
 QueryNew() method,
 so that it is just:
 
 cfset REQUEST.SearchQuery = QueryNew(
   title, date, preview, link, score,
   ) /
 
 , the whole thing works like a charm. CRAZY!

Someone else might notice something, but it looks like it might be a
bug.  But since CF is supposed to be a typeless language, and you've
found it works if you don't specify types in your initial query, that's
probably your best bet.  If this data ever ends up heading to a DB, you
can do a cfqueryparam at that point to make sure all is kosher.


[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law.  If you are not the 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution, or use of the information contained herein (including any 
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in 
error, please immediately contact the sender and destroy the material in its 
entirety, whether in electronic or hard copy format.  Thank you.   A2



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238092
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: Gzip content from a variable

2006-04-19 Thread Dan G. Switzer, II
Gabe,

I have been using cf_gzip for a while but would like to improve
performance.
Right now it reads a file, then writes a gzip'd file. Then I have to read
that file and dish back to user.

I would like to just pass in the content as a variable, then get back a
variable with the gzip'd data. Ignore all the file business.

Anyone know of anything pre built or up for a challenge?

I worked up a solution a few months ago:
http://blog.pengoworks.com/blogger/index.cfm?action=blog:501

I was working on a Windows app where we were sending large XML packets to
the server and decided we'd GZip the XML before sending.

The UDF in my blog entry should take a GZipped string and unzip back to a
string. I did not test this w/any binary data--only w/XML files.

-Dan


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238093
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


RSS Aggregation?

2006-04-19 Thread Neil Middleton
As a lot of you are already aware I am the guy behind
feed-squirrel.comhttp://www.feed-squirrel.com,
and I need a little help with a problem I am having.

Currently the site is aggregating ~500 RSS feeds, but checking these feeds
is growing to be a pain in the butt.  Having to get CF to check each of
these feeds regulary (ideally every 15 minutes) is more difficult than it
sounds.

At the moment, the system is flip-flopping between two styles of RSS
interrogation depending on which appears to be working best at the time.
There are:

1) One big CFLOOP that goes through the feeds sequentially checking them
and pulling in new content where necessary
2) Firing a load of threads off using an Async Event Gateway to individually
check feeds and do their thing.

Both of the above methods use the same function at their core.

However, there are problems with these

1) takes about 12 minutes to run, which has caused CF to be unreliable in
the past, and also caused HostMySite to raise it as a concern.
2) works beautifully when it's working, but every few hours, the gateway
appears to just stop working for no good reason.  I cannot be using an
unreliable method of import.

So, does anyone have any ideas on how else I might be able to import this
data in a way that's relatively fast, and reliable?  I do have a rudimentary
pinging system implemented, but very few of the publishers know this exists.

ANY help much appreciated...

Regards


Neil Middleton

Visit feed-squirrel.com http://www.feed-squirrel.com


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238094
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: CF Page Won't Stop Executing

2006-04-19 Thread powell
I realize that the STOP alone doesn't have an effect on the currently executing 
page - but didn't CF (pre-MX I guess) used to stop the current request when it 
saw a new request from the same browser?  I'm pretty sure that I used to be 
able to stop runnaway pages by hitting STOP and then browsing to another CF 
page - but maybe I'm just halucinating.

Reed,

Am I in the middle of a brain-burp, or is it not in fact the case that CF
used to stop executing the current page if the user hit their stop button
and opened a new CF page?  I have pages that continue to execute even after
the user hits STOP and REFRESH - so now I have a couple of copies of the
same killer page executing at the same time!  Am I remembering things
wrong, or is this how it is supposed to be?  If the latter, then what
actually stops a page from executing before it finishes on its own?

Clicking Stop in a web browser has never stop the server processing a
request, all it does is tells the browser to stop listening for a response.

In order to actually kill that process, you'd need access to the Java
threads--or use a tool like SeeFusion (http://www.seefusion.com/) which will
allow you to kill a running process.

-Dan

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238095
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: Extract email(s) from non-delivered message

2006-04-19 Thread Ben Nadel
I had some time to nail something down Try this:


cfsavecontent variable=Test
 On Wednesday 19 April 2006 04:31, Rey Bango wrote:
 
something, I'd like to see if there's something already built to 
handle
this:
 [EMAIL PROTECTED]:
 This user doesn't have a yahoo.com account
([EMAIL PROTECTED]) 
 [0]
 
 
 You mean like a regular expression, wrapped in a simple loop over
each line ?
 
/cfsavecontent

!--- Create a patter. ---
cfset jobjPattern = CreateObject(java,
java.util.regex.Pattern).Compile( (?=\()([EMAIL PROTECTED])(?=\)) ) /

!--- Get the matcher for the patter. ---
cfset jobjMatcher = jobjPattern.Matcher( Test ) /

!--- Create an array to store emails. ---
cfset arrEmails = ArrayNew(1) /

!--- Loop while we have matches. ---
cfloop condition=#jobjMatcher.Find()#

!--- Get the email. ---
cfset ArrayAppend( arrEmails, jobjMatcher.Group() ) /

/cfloop

cfdump var=#arrEmails# / 


...
Ben Nadel 
Web Developer
Nylon Technology
350 7th Ave.
Suite 1005
New York, NY 10001
212.691.1134 x 14
212.691.3477 fax
www.nylontechnology.com

Sanders: Lightspeed too slow?
Helmet: Yes we'll have to go right to ludacris speed.
-Original Message-
From: Thomas Chiverton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 10:32 AM
To: CF-Talk
Subject: Re: Extract email(s) from non-delivered message

On Wednesday 19 April 2006 15:20, Rey Bango wrote:
 Sure. Got something like that? ;)

Ben Nadel suggest a reg. ex. yesterday.

-- 

Tom Chiverton
Advanced ColdFusion Programmer



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238096
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: CF Page Won't Stop Executing

2006-04-19 Thread Thomas Chiverton
On Wednesday 19 April 2006 15:34, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
 So I guess the bottom line is that with any of the CFMX versions there is
 no protection from users getting impatient waiting for a page that
 legitimately takes a few seconds to process, and repeatedly hit REFRESH?

Not without rolling your own (set a seesion variable at the top of the page if 
it's not set, unset it at the footer. If the session variable is present at 
the top of the page, tell the user to be more patient).

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238097
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: Q of Q crazy problem

2006-04-19 Thread Dan G. Switzer, II
Ben,

I am having this really strange problem involving a query of queries that I
have never encountered before. Basically I am building a query with the
QueryNew() method:

 ... clip ...

However, the following all cause error:

cfset REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] =
ArrayLen( arrCriteria ) /
cfset REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] =
  Max( 5, REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ]
)
/

Heck, even this causes errors:

REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] =
  Max( REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ],
  REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ]
  ) /


Its like any function call that returns a number corrupts the SCORE value
for the QofQ.

QoQ is a great idea, but it's buggy as heck. Everytime I've tried to use it,
I've run into some kind of irregularity with it that I've had to spend time
to work around.

It sounds like you're running into casting issues. Even though CF is
typeless, it still has some issues at times when it blends to Java that
creates variables that should be typeless, but are not. I'm sure that's why
it works fine when you don't declare the variable types, but errors when you
explicitly declare the column types.

Try using the JavaCast() function to explicitly declare your integer fields.
I suspect that will get rid of the errors.

-Dan


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238098
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: CF Page Won't Stop Executing

2006-04-19 Thread Thomas Chiverton
On Wednesday 19 April 2006 15:45, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
 that I used to be able to stop runnaway pages by hitting STOP and then
 browsing to another CF page - but maybe I'm just halucinating.

And how did CF know the difference between that, and a multi-frame'd page ?

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238099
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: BEA licenses BlueDragon for WebLogicr

2006-04-19 Thread RADEMAKERS Tanguy
-Original Message-
Subject: BEA licenses BlueDragon for WebLogicr
From: Thomas Chiverton [EMAIL PROTECTED]
Date: Wed, 19 Apr 2006 14:55:38 +0100
Thread: 
http://www.houseoffusion.com/cf_lists/index.cfm/method=messages
threadid=45587forumid=4#238080

On Wednesday 19 April 2006 14:38, RADEMAKERS Tanguy wrote:
 Number one peeve: Can't pass java objects you created 
yourself to an EJB
 in a different application on the same server: MX uses the 
classloader

You couldn't do that even if it was two JSP apps, if they were 
in different 
J2EE application contexts, could you ?

Actually, you *can* do that with a normal java web app - Struts, in
our case, but i guess a jsp could do it as well.


 Also, there's some kind of issue with memory not being 
released when you
 redeploy cf - do it enough times and bang, out of memory error. Which

We don't see that here- our memoray graph is fairly flat with time.
I assume asking you if you are up to date with O/S, WL and CF 
patches is 
obvious ?

All up to date for CF6.1 - and, again, the problem only affects
(re)deploying the cfmx app, not other java apps on the same wl server.


 Then, there's the occasional null pointer exception being thrown from
 the middle of code you haven't touched in donkey's years. solution:
 bounce the app or better yet, the server. Thank god that 
only happens in
 dev... so far.

Oddness.
Does it look like:
Thread Stack Trace:
at mmGetObjectSize+8()@0x40298908
at mmGetPossibleMovedObjectSize+26()@0x40298942
at setAsLastObj+31()@0x40292313
at findNext+205()@0x402923f1
at findNextToReturn+24()@0x40292430
at refIterGetNext+40()@0x402924a0
at trProcessRootsForThread+92()@0x40290a2c
at tsMarkAllRootsForThread+44()@0x40307040
at mmGenCon1ThreadInspection+30()@0x4029fc32
at tsDoGCInspectionForAllThreads+55()@0x40306f9b
at mmGenCon1ProcessThreadRoots+24()@0x4029fc50
at mmGenConMark+43()@0x402a0453
at mmConMark+48()@0x4029f7c4
at mmGCMainEP+80()@0x4029b058 

by any chance ?
We're getting that for some reason on *one* of the dev machines.

Can't recall off the top of my head, will copy and paste the next one i
see and send it to you.

/t

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238100
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: CF Page Won't Stop Executing

2006-04-19 Thread Dan G. Switzer, II
I realize that the STOP alone doesn't have an effect on the currently
executing page - but didn't CF (pre-MX I guess) used to stop the current
request when it saw a new request from the same browser?  I'm pretty sure
that I used to be able to stop runnaway pages by hitting STOP and then
browsing to another CF page - but maybe I'm just halucinating.

No. There are a lot better tools for tracking what's happening in processes
w/CFMX than there ever was in earlier versions. 

The one exception to CF killing a thread when a connections is closed might
be if you were using CFFLUSH to dump the output stream to the browser. It's
possible if the browser has killed the connection and the CFFLUSH goes to
process and can't dump out the output stream, that it'll therefore error and
kill the process. I have not tested this though, but I could see CF erroring
if the connection has closed.

-Dan


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238101
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: CF Page Won't Stop Executing

2006-04-19 Thread Eric J. Hoffman
Hitting the stop button previously only stopped your browser interacting
with the server.  It still runs any process it was told to before.  
 





Eric J. Hoffman
Managing Partner
2081 Industrial Blvd
StillwaterMN55082
mail: [EMAIL PROTECTED]
www: http://www.ejhassociates.com
tel: 651.717.4105
fax: 651.717.4115
mob: 651.245.2717



This message contains confidential information and is intended only for [EMAIL 
PROTECTED] If you are not cf-talk@houseoffusion.com you should not disseminate, 
distribute or copy this e-mail. Please notify [EMAIL PROTECTED] immediately by 
e-mail if you have received this e-mail by mistake and delete this e-mail from 
your system. E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses. Eric J. Hoffman therefore does 
not accept liability for any errors or omissions in the contents of this 
message, which arise as a result of e-mail transmission. If verification is 
required please request a hard-copy version.


-Original Message-

From: [EMAIL PROTECTED] [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 8:43 AM
To: CF-Talk
Subject: CF Page Won't Stop Executing

Am I in the middle of a brain-burp, or is it not in fact the case that
CF used to stop executing the current page if the user hit their stop
button and opened a new CF page?  I have pages that continue to execute
even after the user hits STOP and REFRESH - so now I have a couple of
copies of the same killer page executing at the same time!  Am I
remembering things wrong, or is this how it is supposed to be?  If the
latter, then what actually stops a page from executing before it
finishes on its own?

That sound you hear in the background is the the heap memory on my
server slowly being eaten away.  My 6th sense sees out of memory and
ringing phones in my future.

thanks
Reed



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238102
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: Extract email(s) from non-delivered message

2006-04-19 Thread Thomas Chiverton
On Wednesday 19 April 2006 15:46, Ben Nadel wrote:
 cfset jobjPattern = CreateObject(java,
 java.util.regex.Pattern).Compile( (?=\()([EMAIL PROTECTED])(?=\)) ) /

What's up with refindall() ?

-- 

Tom Chiverton 
Advanced ColdFusion Programmer

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238103
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: Extract email(s) from non-delivered message

2006-04-19 Thread Rey Bango
Awesome Ben! I'll try that out. :)

Rey...

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238104
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: Q of Q crazy problem

2006-04-19 Thread Tony
ben,

i had to do this:

select 
SUM(CAST(getReportsForVehicle.ignitionOnTime
as INTEGER)) as ignitionOnTime
from getReportsForVehicle
where (ipAddressNum = #listGetAt(request.distinctIpAddressNumbers,o)#
and weekDay = 
'#listGetAt(listDeleteDuplicates(valueList(getReportsForVehicle.weekday)),d)#')

to get the sum to work.  even if it was spec. or not spec. as an
integer value... it didnt
matter, i was getting stupid errors just the same.

hth
tw



On 4/19/06, Dan G. Switzer, II [EMAIL PROTECTED] wrote:
 Ben,

 I am having this really strange problem involving a query of queries that I
 have never encountered before. Basically I am building a query with the
 QueryNew() method:
 
  ... clip ...
 
 However, the following all cause error:
 
 cfset REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] =
 ArrayLen( arrCriteria ) /
 cfset REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] =
   Max( 5, REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ]
 )
 /
 
 Heck, even this causes errors:
 
 REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] =
   Max( REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ],
   REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ]
   ) /
 
 
 Its like any function call that returns a number corrupts the SCORE value
 for the QofQ.

 QoQ is a great idea, but it's buggy as heck. Everytime I've tried to use it,
 I've run into some kind of irregularity with it that I've had to spend time
 to work around.

 It sounds like you're running into casting issues. Even though CF is
 typeless, it still has some issues at times when it blends to Java that
 creates variables that should be typeless, but are not. I'm sure that's why
 it works fine when you don't declare the variable types, but errors when you
 explicitly declare the column types.

 Try using the JavaCast() function to explicitly declare your integer fields.
 I suspect that will get rid of the errors.

 -Dan


 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238105
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: BEA licenses BlueDragon for WebLogic

2006-04-19 Thread Russ Michaels
I have seen several benefits.
It has some extra tags and fucntionality, less bugs, and a smaller
footprint if using ServetExec, and the support is better.
Plus it runs on .NET :-)

Russ

-Original Message-
From: Thomas Chiverton [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Date: Wed, 19 Apr 2006 10:37:05 +0100
Subject: Re: BEA licenses BlueDragon for WebLogic

 On Monday 17 April 2006 19:37, Vince Bonfanti wrote:
  Some people might also find it significant that BEA is now
 essentially a
  competitor to Adobe in a portion of the ColdFusion server market
 (that
  portion being people who are now or are planning to redeploy
 existing
  CFML applications onto WebLogic servers).
 
 We already run MX on Weblogic. This is a supported configuration and
 works 
 great.
 When we last looked, BD was about the same* price for a J2EE version as
 MX. It 
 appears that since then BD has improved it's compatability with legacy
 CFML 
 code since then, however, it's still the same cost with no extra
 benefit.
 
 Don't mind me though, I'm about to change employers :-)
 
 -- 
 
 Tom Chiverton 
 Advanced ColdFusion Programmer
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238106
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


CFMAIL to @comcast.net accounts

2006-04-19 Thread Tony
anyone else having issues with cfmail programs that you
wrote, trying to send messages to people with comcast.net accounts?

im getting this error:

 Failed Recipient: [EMAIL PROTECTED]
 Reason: Remote host said: 550 Comcast does not support the direct
 connection to its mail servers from residential IPs. Your mail should be
 sent to comcast.net users through your ISP. Please contact your ISP or
 mail administrator for more information.

   -- The header and top 20 lines of the message follows --

 Received: from cfd77.cfdynamics.net [69.56.156.97] by cfd77 with SMTP;
   Tue, 18 Apr 2006 11:50:15 -0600
 Message-ID: [EMAIL PROTECTED]
 Date: Tue, 18 Apr 2006 11:50:15 -0600 (MDT)
 From: The Dinner Company [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: April Favorites
 Mime-Version: 1.0
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: 7bit
 X-Mailer: ColdFusion MX Application Server

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238107
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: Extract email(s) from non-delivered message

2006-04-19 Thread Ben Nadel
You can't use REFindAll because the RegExp uses a look behind, which is not
supported in CF directly. That's why you have to create a java pattern
matcher... If you wanted to uses REFindAll... You could do something like:

\([EMAIL PROTECTED])

And then when you get the matches you could take the Mid to remove the ( ):

strEmail = Mid( strText, objMatches.Pos[0] + 1, objMatches.Len[0] - 1 );


Something like that... 
...
Ben Nadel 
www.bennadel.com


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238108
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: Extract email(s) from non-delivered message

2006-04-19 Thread Claude Schneegans
 I need to extract emails from non-delivered messages.

The problem is that there are not two servers that will return messages 
with the same syntax.
If you only send messages to Yahoo, fine, but what if you send messages 
to other types of servers?

Anyway, if you need to parse something, your best solution will be 
CF_REExtract.
See : 
http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238109
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: Extract email(s) from non-delivered message

2006-04-19 Thread Rey Bango
Damn Ben, I could just hug ya man! Worked like a charm. Would you mind 
breaking the regex down for me so I can tweak it if necessary to 
accomodate other messages?

I'm keeping your email on file. Email me your rates. I might need more 
help in the future.

Rey...

Ben Nadel wrote:
   !--- Create a patter. ---
 cfset jobjPattern = CreateObject(java,
 java.util.regex.Pattern).Compile( (?=\()([EMAIL PROTECTED])(?=\)) ) /
 
 !--- Get the matcher for the patter. ---
 cfset jobjMatcher = jobjPattern.Matcher( Test ) /
 
 !--- Create an array to store emails. ---
 cfset arrEmails = ArrayNew(1) /
 
 !--- Loop while we have matches. ---
 cfloop condition=#jobjMatcher.Find()#
   
   !--- Get the email. ---
   cfset ArrayAppend( arrEmails, jobjMatcher.Group() ) /
 
 /cfloop
 
 cfdump var=#arrEmails# / 
 
 
 ...
 Ben Nadel 
 Web Developer
 Nylon Technology
 350 7th Ave.
 Suite 1005
 New York, NY 10001
 212.691.1134 x 14
 212.691.3477 fax
 www.nylontechnology.com
 
 Sanders: Lightspeed too slow?
 Helmet: Yes we'll have to go right to ludacris speed.
 -Original Message-
 From: Thomas Chiverton [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 19, 2006 10:32 AM
 To: CF-Talk
 Subject: Re: Extract email(s) from non-delivered message
 
 On Wednesday 19 April 2006 15:20, Rey Bango wrote:
 
Sure. Got something like that? ;)
 
 
 Ben Nadel suggest a reg. ex. yesterday.
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238110
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: Extract email(s) from non-delivered message

2006-04-19 Thread Rey Bango
You're absolutely right Claude. What I was planning on doing is tweaking 
the script as I found emails formatted differently and eventually have a 
nice library of formats setup.

I'll look at CF_REExtract to see if it can help as well.

Thanks,

Rey./..

Claude Schneegans wrote:
  I need to extract emails from non-delivered messages.
 
 The problem is that there are not two servers that will return messages 
 with the same syntax.
 If you only send messages to Yahoo, fine, but what if you send messages 
 to other types of servers?
 
 Anyway, if you need to parse something, your best solution will be 
 CF_REExtract.
 See : 
 http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238111
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: Extract email(s) from non-delivered message

2006-04-19 Thread Ben Nadel
 Rey,

Glad I could help... Reg ex is as follows:

(?=\()([EMAIL PROTECTED])(?=\))

(?=\()
This is a zero length match possitive look behing for the string (...
Meaning, at this point in the regexp, the previous character must be a (.
This ( is not part of the matchint string though.

([EMAIL PROTECTED])
This matches any non-line-break containin string that has a @ in it. To be
more appropriate, the .+ might need to be replaced with [^\)]+ which would
match any character that is not )

(?=\))
This is a zero length match possitive look ahead for the string )...
Meaning, at this point in the reg exp, the next character must be a ).
This ) is not part of the matchint string though.

Let me know if you need any more explaination.


This might be more accurate:

(?=\()([EMAIL PROTECTED]@[^\)]+)(?=\))

...
Ben Nadel 
Web Developer
Nylon Technology
350 7th Ave.
Suite 1005
New York, NY 10001
212.691.1134 x 14
212.691.3477 fax
www.nylontechnology.com

Sanders: Lightspeed too slow?
Helmet: Yes we'll have to go right to ludacris speed.
-Original Message-
From: Rey Bango [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 11:29 AM
To: CF-Talk
Subject: Re: Extract email(s) from non-delivered message

Damn Ben, I could just hug ya man! Worked like a charm. Would you mind
breaking the regex down for me so I can tweak it if necessary to accomodate
other messages?

I'm keeping your email on file. Email me your rates. I might need more help
in the future.

Rey...


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238112
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: Extract email(s) from non-delivered message

2006-04-19 Thread Ben Nadel
Rey,

If you are unsure of the email type... You might want to try the reg exp:

If you want to be variable for type, you can try this:

[EMAIL PROTECTED]  for the RegExp.

Matches any string containg the following characters a-z A-Z 0-9 - . _  AND
has at least one @

Might match some crazy strings through like [EMAIL PROTECTED]@ben

But assuming its valid email source... Should be good.

...
Ben Nadel 
www.bennadel.com

-Original Message-
From: Rey Bango [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 11:39 AM
To: CF-Talk
Subject: Re: Extract email(s) from non-delivered message

You're absolutely right Claude. What I was planning on doing is tweaking the
script as I found emails formatted differently and eventually have a nice
library of formats setup.

I'll look at CF_REExtract to see if it can help as well.

Thanks,

Rey./..

Claude Schneegans wrote:
  I need to extract emails from non-delivered messages.
 
 The problem is that there are not two servers that will return 
 messages with the same syntax.
 If you only send messages to Yahoo, fine, but what if you send 
 messages to other types of servers?
 
 Anyway, if you need to parse something, your best solution will be 
 CF_REExtract.
 See : 
 http://www.contentbox.com/claude/customtags/REextract/testREextract.cf
 m
 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238113
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: Q of Q crazy problem

2006-04-19 Thread Ben Nadel
Thanks,

I will give that a try... Overall, though, I think QofQ are great and very
useful.

-b
...
Ben Nadel 
www.bennadel.com

-Original Message-
From: Tony [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 11:23 AM
To: CF-Talk
Subject: Re: Q of Q crazy problem

ben,

i had to do this:

select SUM(CAST(getReportsForVehicle.ignitionOnTime
as INTEGER)) as ignitionOnTime
from getReportsForVehicle
where (ipAddressNum = #listGetAt(request.distinctIpAddressNumbers,o)#
and weekDay =
'#listGetAt(listDeleteDuplicates(valueList(getReportsForVehicle.weekday)),d)
#')

to get the sum to work.  even if it was spec. or not spec. as an integer
value... it didnt matter, i was getting stupid errors just the same.

hth
tw



On 4/19/06, Dan G. Switzer, II [EMAIL PROTECTED] wrote:
 Ben,

 I am having this really strange problem involving a query of queries 
 that I have never encountered before. Basically I am building a query 
 with the
 QueryNew() method:
 
  ... clip ...
 
 However, the following all cause error:
 
 cfset REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow 
 ] = ArrayLen( arrCriteria ) / cfset REQUEST.SearchQuery[ score ][ 
 REQUEST.SearchQuery.CurrentRow ] =
   Max( 5, REQUEST.SearchQuery[ score ][ 
 REQUEST.SearchQuery.CurrentRow ]
 )
 /
 
 Heck, even this causes errors:
 
 REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ] =
   Max( REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow 
 ],
   REQUEST.SearchQuery[ score ][ REQUEST.SearchQuery.CurrentRow ]
   ) /
 
 
 Its like any function call that returns a number corrupts the SCORE 
 value for the QofQ.

 QoQ is a great idea, but it's buggy as heck. Everytime I've tried to 
 use it, I've run into some kind of irregularity with it that I've had 
 to spend time to work around.

 It sounds like you're running into casting issues. Even though CF is 
 typeless, it still has some issues at times when it blends to Java 
 that creates variables that should be typeless, but are not. I'm sure 
 that's why it works fine when you don't declare the variable types, 
 but errors when you explicitly declare the column types.

 Try using the JavaCast() function to explicitly declare your integer
fields.
 I suspect that will get rid of the errors.

 -Dan


 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238114
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: BEA licenses BlueDragon for WebLogic

2006-04-19 Thread Andy Allan
We're talking about running on WebLogic, so the points about
ServletExec and .NET are irrelevant (though true). Plus, being that's
it's a new product, BD for WebLogic, you can't guarantee there are
less bugs.

Andy

On 19/04/06, Russ Michaels [EMAIL PROTECTED] wrote:
 I have seen several benefits.
 It has some extra tags and fucntionality, less bugs, and a smaller
 footprint if using ServetExec, and the support is better.
 Plus it runs on .NET :-)

 Russ

 -Original Message-
 From: Thomas Chiverton [EMAIL PROTECTED]
 To: CF-Talk cf-talk@houseoffusion.com
 Date: Wed, 19 Apr 2006 10:37:05 +0100
 Subject: Re: BEA licenses BlueDragon for WebLogic

  On Monday 17 April 2006 19:37, Vince Bonfanti wrote:
   Some people might also find it significant that BEA is now
  essentially a
   competitor to Adobe in a portion of the ColdFusion server market
  (that
   portion being people who are now or are planning to redeploy
  existing
   CFML applications onto WebLogic servers).
 
  We already run MX on Weblogic. This is a supported configuration and
  works
  great.
  When we last looked, BD was about the same* price for a J2EE version as
  MX. It
  appears that since then BD has improved it's compatability with legacy
  CFML
  code since then, however, it's still the same cost with no extra
  benefit.
 
  Don't mind me though, I'm about to change employers :-)
 
  --
 
  Tom Chiverton
  Advanced ColdFusion Programmer
 
 

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238115
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: RSS Aggregation?

2006-04-19 Thread Roger Benningfield
Currently the site is aggregating ~500 RSS feeds, but checking these feeds
is growing to be a pain in the butt.  Having to get CF to check each of
these feeds regulary (ideally every 15 minutes) is more difficult than it
sounds.

Neil: Polling every fifteen minutes is an enormous waste of CPU and 
bandwidth... for both you and the source sites. For example, if you're 
aggregating individual blogs, once every 24 hours will cover the vast majority 
just fine. Ideally, you'd either opt for some middle ground (once an hour or 
so), or come up with adaptive code that spaces out polling based upon observed 
update periods.

But even if you're gonna stick with over-polling (a good way to get your IP 
blocked), there are places to optimize:

* Use Conditional GET... since 90% of feeds won't have seen an update in the 
last fifteen minutes, you've saved nearly 90% of your server's effort.

* Make your spider compatible with RFC 3229. It won't help in most cases, but 
some high-flow publishers (Microsoft, etc.) will send you deltas of their 
sliding-window feeds. That'll cut down on parsing time.

* Try CFX_HTTP5 in async mode.

--
Roger Benningfield
http://admin.mxblogspace.journurl.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238116
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: Extract email(s) from non-delivered message

2006-04-19 Thread Rey Bango
That did the trick!! Awesome man!

Rey...

Ben Nadel wrote:
 Rey,
 
 If you are unsure of the email type... You might want to try the reg exp:
 
 If you want to be variable for type, you can try this:
 
 [EMAIL PROTECTED]  for the RegExp.
 
 Matches any string containg the following characters a-z A-Z 0-9 - . _  AND
 has at least one @
 
 Might match some crazy strings through like [EMAIL PROTECTED]@ben
 
 But assuming its valid email source... Should be good.
 
 ...
 Ben Nadel 
 www.bennadel.com
 
 -Original Message-
 From: Rey Bango [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 19, 2006 11:39 AM
 To: CF-Talk
 Subject: Re: Extract email(s) from non-delivered message
 
 You're absolutely right Claude. What I was planning on doing is tweaking the
 script as I found emails formatted differently and eventually have a nice
 library of formats setup.
 
 I'll look at CF_REExtract to see if it can help as well.
 
 Thanks,
 
 Rey./..
 
 Claude Schneegans wrote:
 
 I need to extract emails from non-delivered messages.

The problem is that there are not two servers that will return 
messages with the same syntax.
If you only send messages to Yahoo, fine, but what if you send 
messages to other types of servers?

Anyway, if you need to parse something, your best solution will be 
CF_REExtract.
See : 
http://www.contentbox.com/claude/customtags/REextract/testREextract.cf
m

 
 
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238117
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: Directory watcher for standard edition

2006-04-19 Thread Zaphod Beeblebrox
if you're on win32, I can post instructions on how to make a service that
will accomplish the something similar.  I've used it to create a report que
that runs every 10 seconds.



On 4/19/06, Andy Matthews [EMAIL PROTECTED] wrote:

 Set up a cron job at 1 minute intervals? That's going to likely be the
 best
 way to do this.

 !//--
 andy matthews
 web developer
 ICGLink, Inc.
 [EMAIL PROTECTED]
 615.370.1530 x737
 --//-

 -Original Message-
 From: Chris Velevitch [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 19, 2006 3:18 AM
 To: CF-Talk
 Subject: Directory watcher for standard edition


 Where can I find the equivalent of the directory watcher gateway for
 cf standard edition? I want to be able to use my existing directory
 watcher code without change.


 Chris
 --
 Chris Velevitch
 Manager - Sydney Flash Platform Developers Group
 www.flashdev.org.au



 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238118
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: BEA licenses BlueDragon for WebLogic

2006-04-19 Thread Rey Bango
How about we all take it for what its worth; an announcement of a new 
option for the CF community. I think options are a good thing.

Rey...

Andy Allan wrote:
 We're talking about running on WebLogic, so the points about
 ServletExec and .NET are irrelevant (though true). Plus, being that's
 it's a new product, BD for WebLogic, you can't guarantee there are
 less bugs.
 
 Andy
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238119
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: Extract email(s) from non-delivered message

2006-04-19 Thread Ben Nadel
Rey,

Glad I could help... I am sure there is a better way to make the RegExp,
using the shorthand notation, but I am not an expert on those:

[EMAIL PROTECTED] 

Samd as...

[EMAIL PROTECTED]

Where \w is word characters and \d is digit characters... But can never
remember what exactly whey stand for.

-ben
...
Ben Nadel 
www.bennadel.com

-Original Message-
From: Rey Bango [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 12:00 PM
To: CF-Talk
Subject: Re: Extract email(s) from non-delivered message

That did the trick!! Awesome man!

Rey...

Ben Nadel wrote:
 Rey,
 
 If you are unsure of the email type... You might want to try the reg exp:
 
 If you want to be variable for type, you can try this:
 
 [EMAIL PROTECTED]  for the RegExp.
 
 Matches any string containg the following characters a-z A-Z 0-9 - . _  
 AND has at least one @
 
 Might match some crazy strings through like [EMAIL PROTECTED]@ben
 
 But assuming its valid email source... Should be good.
 
 ...
 Ben Nadel
 www.bennadel.com
 
 -Original Message-
 From: Rey Bango [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 19, 2006 11:39 AM
 To: CF-Talk
 Subject: Re: Extract email(s) from non-delivered message
 
 You're absolutely right Claude. What I was planning on doing is 
 tweaking the script as I found emails formatted differently and 
 eventually have a nice library of formats setup.
 
 I'll look at CF_REExtract to see if it can help as well.
 
 Thanks,
 
 Rey./..
 
 Claude Schneegans wrote:
 
 I need to extract emails from non-delivered messages.

The problem is that there are not two servers that will return 
messages with the same syntax.
If you only send messages to Yahoo, fine, but what if you send 
messages to other types of servers?

Anyway, if you need to parse something, your best solution will be 
CF_REExtract.
See : 
http://www.contentbox.com/claude/customtags/REextract/testREextract.cf
m

 
 
 
 
 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238120
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: Extract email(s) from non-delivered message

2006-04-19 Thread Claude Schneegans
 What I was planning on doing is tweaking
the script as I found emails formatted differently and eventually have a
nice library of formats setup.

Then REExtract will definitely make your life easier!
The idea is that it is sometimes much easier to describe what's around 
the string you are
searching, than the string itself, because what's around is fixed, but 
the searched string may
be quite fuzzy.

You can test the tag by yourself online :
http://www.contentbox.com/claude/customtags/REextract/testingREextract.cfm
1. enter yahoo.com account \( in RE1 (omit the quotes)
3. enter \) in RE2
4. enter your sample in the Sample text textarea,
5. click on the Test button.
and see the result Query with the three addresses in column String2.

It should be as easy for all other types of messages you get.


-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238121
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: Extract email(s) from non-delivered message

2006-04-19 Thread Claude Schneegans
 But assuming its valid email source.

That's the problem, especially for messages rejected by the server 
because they are invalid ;-/

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238122
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: Extract email(s) from non-delivered message

2006-04-19 Thread Rey Bango
Gotcha. The regex from the prior email is working great so I'm going to 
go with that for now.

Again, I really appreciate your help bud.

Rey...

Ben Nadel wrote:
 Rey,
 
 Glad I could help... I am sure there is a better way to make the RegExp,
 using the shorthand notation, but I am not an expert on those:
 
 [EMAIL PROTECTED] 
 
 Samd as...
 
 [EMAIL PROTECTED]
 
 Where \w is word characters and \d is digit characters... But can never
 remember what exactly whey stand for.
 
 -ben
 ...
 Ben Nadel 
 www.bennadel.com
 
 -Original Message-
 From: Rey Bango [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 19, 2006 12:00 PM
 To: CF-Talk
 Subject: Re: Extract email(s) from non-delivered message
 
 That did the trick!! Awesome man!
 
 Rey...
 
 Ben Nadel wrote:
 
Rey,

If you are unsure of the email type... You might want to try the reg exp:

If you want to be variable for type, you can try this:

[EMAIL PROTECTED]  for the RegExp.

Matches any string containg the following characters a-z A-Z 0-9 - . _  
AND has at least one @

Might match some crazy strings through like [EMAIL PROTECTED]@ben

But assuming its valid email source... Should be good.

...
Ben Nadel
www.bennadel.com

-Original Message-
From: Rey Bango [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 11:39 AM
To: CF-Talk
Subject: Re: Extract email(s) from non-delivered message

You're absolutely right Claude. What I was planning on doing is 
tweaking the script as I found emails formatted differently and 
eventually have a nice library of formats setup.

I'll look at CF_REExtract to see if it can help as well.

Thanks,

Rey./..

Claude Schneegans wrote:


I need to extract emails from non-delivered messages.

The problem is that there are not two servers that will return 
messages with the same syntax.
If you only send messages to Yahoo, fine, but what if you send 
messages to other types of servers?

Anyway, if you need to parse something, your best solution will be 
CF_REExtract.
See : 
http://www.contentbox.com/claude/customtags/REextract/testREextract.cf
m






 
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238123
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: Extract email(s) from non-delivered message

2006-04-19 Thread Rey Bango
You've been blogged. :)

http://weblogs.macromedia.com/mxna/index.cfm?query=byFeedfeedId=556feedName=Rey%20Bango

Thanks again.

Rey...

Ben Nadel wrote:
 Rey,
 
 Glad I could help... I am sure there is a better way to make the RegExp,
 using the shorthand notation, but I am not an expert on those:
 
 [EMAIL PROTECTED] 
 
 Samd as...
 
 [EMAIL PROTECTED]
 
 Where \w is word characters and \d is digit characters... But can never
 remember what exactly whey stand for.
 
 -ben
 ...
 Ben Nadel 
 www.bennadel.com
 
 -Original Message-
 From: Rey Bango [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 19, 2006 12:00 PM
 To: CF-Talk
 Subject: Re: Extract email(s) from non-delivered message
 
 That did the trick!! Awesome man!
 
 Rey...
 
 Ben Nadel wrote:
 
Rey,

If you are unsure of the email type... You might want to try the reg exp:

If you want to be variable for type, you can try this:

[EMAIL PROTECTED]  for the RegExp.

Matches any string containg the following characters a-z A-Z 0-9 - . _  
AND has at least one @

Might match some crazy strings through like [EMAIL PROTECTED]@ben

But assuming its valid email source... Should be good.

...
Ben Nadel
www.bennadel.com

-Original Message-
From: Rey Bango [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 11:39 AM
To: CF-Talk
Subject: Re: Extract email(s) from non-delivered message

You're absolutely right Claude. What I was planning on doing is 
tweaking the script as I found emails formatted differently and 
eventually have a nice library of formats setup.

I'll look at CF_REExtract to see if it can help as well.

Thanks,

Rey./..

Claude Schneegans wrote:


I need to extract emails from non-delivered messages.

The problem is that there are not two servers that will return 
messages with the same syntax.
If you only send messages to Yahoo, fine, but what if you send 
messages to other types of servers?

Anyway, if you need to parse something, your best solution will be 
CF_REExtract.
See : 
http://www.contentbox.com/claude/customtags/REextract/testREextract.cf
m






 
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238124
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: Get String Byte Size

2006-04-19 Thread Nick de Voil
 Anyone have any quick code to retrieve the number of bytes in a string
 /without/ writing the string to a file first?  I'm trying to do a
 little debugging and I'd like to know the size of a string that is
 being returned to the browser.

The number of bytes occupied in the application's memory by the Java String
object is probably not the same as the number of bytes occupied by the same
string in the HTTP response.

I could be wrong on some points below but I'm sure others will correct me if
so (Paul?)

As I understand it, a Java program such as CF always stores characters
internally using UCS-2 encoding, i.e. 2 bytes per character. In addition,
the String object will include 20 or 30 extra bytes for storing the length
of the string etc.

I believe that CF's default behaviour is to encode HTTP responses using
UTF-8 encoding, i.e. 1 byte per character if you're only using ASCII
characters, and of course the extra bytes used by the String object won't be
there either.

So let's say your string is Rob.

- In CF the Len() function gives you 3.

- The size of the Java object - even if you could work it out, which is next
to impossible in Java - would be 6 + the extra bytes, maybe 40 or more.

- But in the HTTP response it would probably be 3.

So, if I've understood your question correctly and it's the HTTP response
you're interested in, just using Len() in CF will give you the best answer.

Nick





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238125
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: RSS Aggregation?

2006-04-19 Thread Rob Wilkerson
Neil -

To prevent over-polling and, as Roger pointed out, potentially getting
your IP blocked, consider Etag/If-None-Match headers as well as the
Last-Modified/If-Modified-Since headers:

1.  When you retrieve a feed, store the ETag and Last-Modified response headers
2.  When you next poll the feed, only retrieve those feeds that have
been updated

cfhttp url=#variables.feedURL#
method=GET
useragent=feedsquirrel.com (or whatever)
throwonerror=yes

cfhttpparamtype=header
name=If-None-Match
value=#variables.storedEtagValue#
/
cfhttpparamtype=header
name=If-Modified-Since
value=#variables.storedLastModifiedValue#
/
/cfhttp

A nice way to reduce bandwidth consumption and be respectful of the
host server/feed author.  A couple of additional suggestions:

1.  Provide a user agent that allows a host server to know where the
request is coming from and, if the feel it necessary, block that
request.
2.  Respect the feed authors TTL value (in the case of an RSS 2.0
feed).  Don't update the feed any more often than requested in this
value (if there is one).
3.  Again, in the case of RSS 2.0 feeds, respect any skipDays and
skipHours values.  Don't poll on Sundays if the author has told you
that the feed won't be updated on Sundays.

I know there is a TTL equivalent in Atom 1.0/RSS 1.0, but honestly
can't remember what it is.  If you look at the specs, it should jump
out.  It's been a while since I wrote the feed aggregator that is
embedded in the product I build.  I don't recall there being a decent
equivalent for RSS 1.0 or Atom 1.0 for skipDays and skipHours.

On 4/19/06, Roger Benningfield [EMAIL PROTECTED] wrote:
 Currently the site is aggregating ~500 RSS feeds, but checking these feeds
 is growing to be a pain in the butt.  Having to get CF to check each of
 these feeds regulary (ideally every 15 minutes) is more difficult than it
 sounds.

 Neil: Polling every fifteen minutes is an enormous waste of CPU and 
 bandwidth... for both you and the source sites. For example, if you're 
 aggregating individual blogs, once every 24 hours will cover the vast 
 majority just fine. Ideally, you'd either opt for some middle ground (once an 
 hour or so), or come up with adaptive code that spaces out polling based upon 
 observed update periods.

 But even if you're gonna stick with over-polling (a good way to get your IP 
 blocked), there are places to optimize:

 * Use Conditional GET... since 90% of feeds won't have seen an update in the 
 last fifteen minutes, you've saved nearly 90% of your server's effort.

 * Make your spider compatible with RFC 3229. It won't help in most cases, but 
 some high-flow publishers (Microsoft, etc.) will send you deltas of their 
 sliding-window feeds. That'll cut down on parsing time.

 * Try CFX_HTTP5 in async mode.

 --
 Roger Benningfield
 http://admin.mxblogspace.journurl.com/

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238126
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: Virtual Directories

2006-04-19 Thread Cutter (CFRelated)
I tried this, but it doesn't seem to take. I tried a 
directoryexists(/tools), and it came up negative.

Cutter

Zaphod Beeblebrox wrote:
 edit your *cf_root*\wwwroot\WEB-INF\jrun-web.xml file and add mappings in
 this format:
 
  virtual-mapping
resource-path/tools/resource-path
system-pathC:/inetpub/wwwroot/tools/system-path
  /virtual-mapping
 
 
 On 4/18/06, Cutter (CFRelated) [EMAIL PROTECTED] wrote:
 
Anyone have a clue how to set up a virtual directory (not a cf mapping)
using the built in CF web server? Or if it's even possible to?

Cutter


 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238127
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: CFMAIL to @comcast.net accounts

2006-04-19 Thread Casey Dougall
are you trying to send this from your computer like using developer?

Many ISP's now days require you use their smtp service to send mail. even
though you may have setup pop and smtp.domain.com to do this.

Your lucky your even getting a reply. Many times messages like that would
just be dropped completely.

If this is the case, that your running this process from home, you will need
to setup the outbound smtp server to that of your ISP.

That's about all I got on this... Make sure your Reverse DNS is good... that
might be another issue...

Casey Dougall

On 4/19/06, Tony [EMAIL PROTECTED] wrote:

 anyone else having issues with cfmail programs that you
 wrote, trying to send messages to people with comcast.net accounts?

 im getting this error:

  Failed Recipient: [EMAIL PROTECTED]
  Reason: Remote host said: 550 Comcast does not support the direct
  connection to its mail servers from residential IPs. Your mail should be
  sent to comcast.net users through your ISP. Please contact your ISP or
  mail administrator for more information.
 
-- The header and top 20 lines of the message follows --
 
  Received: from cfd77.cfdynamics.net [69.56.156.97] by cfd77 with SMTP;
Tue, 18 Apr 2006 11:50:15 -0600
  Message-ID: [EMAIL PROTECTED]
  Date: Tue, 18 Apr 2006 11:50:15 -0600 (MDT)
  From: The Dinner Company [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: April Favorites
  Mime-Version: 1.0
  Content-Type: text/html; charset=UTF-8
  Content-Transfer-Encoding: 7bit
  X-Mailer: ColdFusion MX Application Server

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238128
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: StructFindKey Path and evaluate

2006-04-19 Thread Bruce, Rodney S C-E LCMC HQISEC/Signal Solutions
Ya know if that tree was flattened into a few database tables, it'd all be 
much easier :-)
-- 
Tom Chiverton 
Advanced ColdFusion Programmer

The information comes from 4 tables.  There's many more fields in each
table, but here is the short break down.

Project_table
Proj_id
Proj_name
WorkPlan_id

Task_table
Task_id
Task_name
Proj_id
Cost_id
Task_lvl(works with the Task_number, 1(is lvl 1), 1.1(lvl 2), 1.1.1(lvl 3)
and so forth)
Task_number(this is the closes to linking parent/children,  the numbers are
1, 1.1 1.2,  1.1.1, 1.1.2)  So a task with number 1.1 is a child to 1

Cost_table
Cost_id
Cost_area

Hours_table
Task_id
Task_name
Person_name
Hours
Cost_per_hour
Worker_type


What is wanted is, put a workplan_id in and get all
projects/tasks/person(cost/hours).  Hope I can explain this, :o)
All Projects and tasks need to be displayed(whether hours are logged against
it or not).  The display is hierarical(much more graphical, lol):
Project_name
  --1 Task_name
  --1.1 Task_name
  1.1.1 Task_name
  1.1.2 Task_name
  Person_name: Hours/cost
  Person_name: Hours/cost
  --2 Task_name
  Person_name: Hours/cost

When a user mouses over the project_name or task_name, they get a popup
display with roll ups for that lvl(ie. Mouse over 1.1 would include
1.1,1.1.1, 1.1.2). Mouse over the project_name gives the over all totals for
the whole project.  These are boken out into:
  Total: hours/Costs;
  Totals by Worker_type1:  hours/costs;
  Totals by Worker_type2:  hours/costs;(etc..)
  Totals by cost_area1:  hours/costs;
  Totals by cost_area2:  hours/costs;(etc..)

I do two queries that populate/create the structure. The first links:
Project, Task and Cost Tables and creates the main structure.  The second
gets the information from the hours table and adds it to the structure(per
examples in previous emails).  While adding the worker information, the
totals are also calculated and placed in the structure.  Then loop thru the
structure to create the displays.  The other ways I could come up with had
me looping thru queries multipule times while creating the display, which
was slower.

If there is a better way to do this, please let me know.   I don't really
like the way I am doing it, but unfortunetly I havent come up with anything
better and I do seem to do things the hard way.

Thanks
Rodney



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238129
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: RSS Aggregation?

2006-04-19 Thread Neil Middleton
Thanks guys for this...it's been plugging some of the gaps I hadn't really 
considered.  The site is very much in development still, even if it doesn't 
appear to be changing on the surface.

I will definitely consider using the last modified headers.  I didn't realise 
you could retreive them without pulling down the whole file.  That in itself 
would alleviate things massively.

One thing I have noticed with the CF community is that the RSS feeds that are 
published seem to be all over the place, some doing things one way, some doing 
it another.  This doesn't help when trying to write a spider ;-)

Does anyone have any possible insight into why the async gateways might by 
unreliable?

Neil -

To prevent over-polling and, as Roger pointed out, potentially getting
your IP blocked, consider Etag/If-None-Match headers as well as the
Last-Modified/If-Modified-Since headers:

1.  When you retrieve a feed, store the ETag and Last-Modified response headers
2.  When you next poll the feed, only retrieve those feeds that have
been updated

cfhttpurl=#variables.feedURL#
   method=GET
   useragent=feedsquirrel.com (or whatever)
   throwonerror=yes

   cfhttpparamtype=header
   name=If-None-Match
   value=#variables.storedEtagValue#
   /
   cfhttpparamtype=header
   name=If-Modified-Since
   value=#variables.storedLastModifiedValue#
   /
/cfhttp

A nice way to reduce bandwidth consumption and be respectful of the
host server/feed author.  A couple of additional suggestions:

1.  Provide a user agent that allows a host server to know where the
request is coming from and, if the feel it necessary, block that
request.
2.  Respect the feed authors TTL value (in the case of an RSS 2.0
feed).  Don't update the feed any more often than requested in this
value (if there is one).
3.  Again, in the case of RSS 2.0 feeds, respect any skipDays and
skipHours values.  Don't poll on Sundays if the author has told you
that the feed won't be updated on Sundays.

I know there is a TTL equivalent in Atom 1.0/RSS 1.0, but honestly
can't remember what it is.  If you look at the specs, it should jump
out.  It's been a while since I wrote the feed aggregator that is
embedded in the product I build.  I don't recall there being a decent
equivalent for RSS 1.0 or Atom 1.0 for skipDays and skipHours.

On 4/19/06, Roger Benningfield [EMAIL PROTECTED] wrote:


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238130
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: CFMAIL to @comcast.net accounts

2006-04-19 Thread Jordan Michaels
Tony wrote:
 anyone else having issues with cfmail programs that you
 wrote, trying to send messages to people with comcast.net accounts?
 

The problem isn't that you're using CFMAIL, it's that you're sending a
message from a restricted IP Address. For some reason Comcast has
chosen to block this IP from sending email to their domains. It's
something you should work out with comcast directly. Vivio had to do
this with Yahoo recently.

 im getting this error:
 
 
Failed Recipient: [EMAIL PROTECTED]

:::take special note of this::

Reason: Remote host said: 550 Comcast does not support the direct
connection to its mail servers from residential IPs. Your mail should be
sent to comcast.net users through your ISP. Please contact your ISP or
mail administrator for more information.


Hope this helps!

-- 
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Blue Dragon Alliance Member
[EMAIL PROTECTED]

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238131
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: CFMAIL to @comcast.net accounts

2006-04-19 Thread Tony
im doing this from my server hosted at cfdynamics

tw

On 4/19/06, Casey Dougall [EMAIL PROTECTED] wrote:
 are you trying to send this from your computer like using developer?

 Many ISP's now days require you use their smtp service to send mail. even
 though you may have setup pop and smtp.domain.com to do this.

 Your lucky your even getting a reply. Many times messages like that would
 just be dropped completely.

 If this is the case, that your running this process from home, you will need
 to setup the outbound smtp server to that of your ISP.

 That's about all I got on this... Make sure your Reverse DNS is good... that
 might be another issue...

 Casey Dougall

 On 4/19/06, Tony [EMAIL PROTECTED] wrote:
 
  anyone else having issues with cfmail programs that you
  wrote, trying to send messages to people with comcast.net accounts?
 
  im getting this error:
 
   Failed Recipient: [EMAIL PROTECTED]
   Reason: Remote host said: 550 Comcast does not support the direct
   connection to its mail servers from residential IPs. Your mail should be
   sent to comcast.net users through your ISP. Please contact your ISP or
   mail administrator for more information.
  
 -- The header and top 20 lines of the message follows --
  
   Received: from cfd77.cfdynamics.net [69.56.156.97] by cfd77 with SMTP;
 Tue, 18 Apr 2006 11:50:15 -0600
   Message-ID: [EMAIL PROTECTED]
   Date: Tue, 18 Apr 2006 11:50:15 -0600 (MDT)
   From: The Dinner Company [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: April Favorites
   Mime-Version: 1.0
   Content-Type: text/html; charset=UTF-8
   Content-Transfer-Encoding: 7bit
   X-Mailer: ColdFusion MX Application Server
 
 

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238132
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: BEA licenses BlueDragon for WebLogic

2006-04-19 Thread Andy Allan
Just to clarify, I think this is an excellent move by NewAtlanta.

In fact, I would have been buying my two BlueDragon buddies beer this
weekend to celebrate if it weren't for the fact I'm stuck in work.
Like we need a reason to drink beer!! Ha :-)

Andy

On 19/04/06, Rey Bango [EMAIL PROTECTED] wrote:
 How about we all take it for what its worth; an announcement of a new
 option for the CF community. I think options are a good thing.

 Rey...

 Andy Allan wrote:
  We're talking about running on WebLogic, so the points about
  ServletExec and .NET are irrelevant (though true). Plus, being that's
  it's a new product, BD for WebLogic, you can't guarantee there are
  less bugs.
 
  Andy
 

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238133
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: RSS Aggregation?

2006-04-19 Thread Rob Wilkerson
I still can't help with the unreliable gateways, but a couple of
things to note.  First, the last modified header will not help you
retrieve a  partial feed.  It will still retrieve the entire feed, but
only if the feed has changed (better than nothing).

You're right on your second point.  The feeds that are .cfm URLs
generate the feed on the fly (I assume) rather than generate a static
file behind the scenes.  That's why I use both the Etag and
Last-Modified headers.  Only static files appear to carry the ETag
header, from what I've been able to tell.

On 4/19/06, Neil Middleton [EMAIL PROTECTED] wrote:
 Thanks guys for this...it's been plugging some of the gaps I hadn't really 
 considered.  The site is very much in development still, even if it doesn't 
 appear to be changing on the surface.

 I will definitely consider using the last modified headers.  I didn't realise 
 you could retreive them without pulling down the whole file.  That in itself 
 would alleviate things massively.

 One thing I have noticed with the CF community is that the RSS feeds that are 
 published seem to be all over the place, some doing things one way, some 
 doing it another.  This doesn't help when trying to write a spider ;-)

 Does anyone have any possible insight into why the async gateways might by 
 unreliable?

 Neil -
 
 To prevent over-polling and, as Roger pointed out, potentially getting
 your IP blocked, consider Etag/If-None-Match headers as well as the
 Last-Modified/If-Modified-Since headers:
 
 1.  When you retrieve a feed, store the ETag and Last-Modified response 
 headers
 2.  When you next poll the feed, only retrieve those feeds that have
 been updated
 
 cfhttpurl=#variables.feedURL#
method=GET
useragent=feedsquirrel.com (or whatever)
throwonerror=yes
 
cfhttpparamtype=header
name=If-None-Match
value=#variables.storedEtagValue#
/
cfhttpparamtype=header
name=If-Modified-Since
value=#variables.storedLastModifiedValue#
/
 /cfhttp
 
 A nice way to reduce bandwidth consumption and be respectful of the
 host server/feed author.  A couple of additional suggestions:
 
 1.  Provide a user agent that allows a host server to know where the
 request is coming from and, if the feel it necessary, block that
 request.
 2.  Respect the feed authors TTL value (in the case of an RSS 2.0
 feed).  Don't update the feed any more often than requested in this
 value (if there is one).
 3.  Again, in the case of RSS 2.0 feeds, respect any skipDays and
 skipHours values.  Don't poll on Sundays if the author has told you
 that the feed won't be updated on Sundays.
 
 I know there is a TTL equivalent in Atom 1.0/RSS 1.0, but honestly
 can't remember what it is.  If you look at the specs, it should jump
 out.  It's been a while since I wrote the feed aggregator that is
 embedded in the product I build.  I don't recall there being a decent
 equivalent for RSS 1.0 or Atom 1.0 for skipDays and skipHours.
 
 On 4/19/06, Roger Benningfield [EMAIL PROTECTED] wrote:
 

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238134
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


New version of rSession available

2006-04-19 Thread Jason Baker
Hi all,

For those of you using rSession, I wanted to let you know that version
2.0is available, with better support for CFMX.

Here are some of the updates in the new version:

Uses CFC's instead of customtags

Session spy given a makeover

Cookies changed to use prefixes so that the component can be used on more
than one app per server

Added cf_rlocation tag to solve known issues with cflocation

Moved session clearing into the check function, since a lot of hosting
companies don't like the idea of a script scheduled to run every minute



Get it here: http://therippa.blogspot.com/2006/03/rsession-20.html


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238135
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: Virtual Directories

2006-04-19 Thread Ken Ferguson
I know it's a silly question, but did you restart the CF services???

Cutter (CFRelated) wrote:
 I tried this, but it doesn't seem to take. I tried a 
 directoryexists(/tools), and it came up negative.

 Cutter

 Zaphod Beeblebrox wrote:
   
 edit your *cf_root*\wwwroot\WEB-INF\jrun-web.xml file and add mappings in
 this format:

  virtual-mapping
resource-path/tools/resource-path
system-pathC:/inetpub/wwwroot/tools/system-path
  /virtual-mapping


 On 4/18/06, Cutter (CFRelated) [EMAIL PROTECTED] wrote:

 
 Anyone have a clue how to set up a virtual directory (not a cf mapping)
 using the built in CF web server? Or if it's even possible to?

 Cutter


   

 

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238136
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: Virtual Directories

2006-04-19 Thread Cutter (CFRelated)
yep, nothing

Cutter

Ken Ferguson wrote:
 I know it's a silly question, but did you restart the CF services???
 
 Cutter (CFRelated) wrote:
 
I tried this, but it doesn't seem to take. I tried a 
directoryexists(/tools), and it came up negative.

Cutter

Zaphod Beeblebrox wrote:
  

edit your *cf_root*\wwwroot\WEB-INF\jrun-web.xml file and add mappings in
this format:

 virtual-mapping
   resource-path/tools/resource-path
   system-pathC:/inetpub/wwwroot/tools/system-path
 /virtual-mapping


On 4/18/06, Cutter (CFRelated) [EMAIL PROTECTED] wrote:



Anyone have a clue how to set up a virtual directory (not a cf mapping)
using the built in CF web server? Or if it's even possible to?

Cutter


  




 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238137
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


Ruby (on Rails) vs Coldfusion

2006-04-19 Thread Andy Matthews
I love Coldfusion and don't plan on moving away from it. But I'd like to see
what all the fuss is about Ruby, and specifically Ruby on Rails.

Does anyone have a good comparison of the two? I don't currently use any
named frameworks, but I have developed a way of coding that seems to work
for me. So I understand that this will be a little tougher than just a is x
better than y question.

Anyway, if anyone has input on this topic, I'd love to hear it. I tried
getting RoR running on my local dev machine and was immediately turned off
by the fact that you have to do so much work using the command prompt. Have
the RoR developers never heard of a web browser?

!//--
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--//-


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238138
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: BEA licenses BlueDragon for WebLogic

2006-04-19 Thread Rey Bango
 Like we need a reason to drink beer!! Ha :-)

Reasons?!?! We don't need no stinkin' reasons! ;)

Rey...

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238139
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


Escaping #'s in outputting a CSS

2006-04-19 Thread webmaster
Stupid beginner question I know but it's been a long time since I've done any 
REAL CF coding.

I am trying to create an HTML code generator for a client and am having 
problems escaping the #'s in the CSS.  I tried the good ole ## but that's not 
working.  It throws an error.  If I just remove the #'s then the colors don't 
get set the way they're supposed to.  

I can provide code samples if needed.

TIA,
Katrina Chapman



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238140
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: Escaping #'s in outputting a CSS

2006-04-19 Thread Rob Wilkerson
Are you trying to replace # with ##?  If so, you might need to
replace ## with .  Maybe a code sample of what you're
attempting will help.

Is the CSS embedded or inline?  If it's linked, then of course there's
no need to escape the #'s

On 4/19/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Stupid beginner question I know but it's been a long time since I've done any
 REAL CF coding.

 I am trying to create an HTML code generator for a client and am having
 problems escaping the #'s in the CSS.  I tried the good ole ## but that's not
 working.  It throws an error.  If I just remove the #'s then the colors don't
 get set the way they're supposed to.

 I can provide code samples if needed.

 TIA,
 Katrina Chapman



 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238141
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: BEA licenses BlueDragon for WebLogic

2006-04-19 Thread Turetsky, Seth
Even if there are more bugs(which I wouldn't know), NewAtlanta's tech support 
has been amazing supporting Weblogic.  On a few cases for us, they recreated 
the bug and had a hotfix for us within a few days.

I'm not sure if Adobe would do that for us, that just seemed the case between 
versions 6.0 and 6.1(which was the last version we used)

-Original Message-
From: Andy Allan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 11:51 AM
To: CF-Talk
Subject: Re: BEA licenses BlueDragon for WebLogic


We're talking about running on WebLogic, so the points about
ServletExec and .NET are irrelevant (though true). Plus, being that's
it's a new product, BD for WebLogic, you can't guarantee there are
less bugs.

Andy

On 19/04/06, Russ Michaels [EMAIL PROTECTED] wrote:
 I have seen several benefits.
 It has some extra tags and fucntionality, less bugs, and a smaller
 footprint if using ServetExec, and the support is better.
 Plus it runs on .NET :-)

 Russ

 -Original Message-
 From: Thomas Chiverton [EMAIL PROTECTED]
 To: CF-Talk cf-talk@houseoffusion.com
 Date: Wed, 19 Apr 2006 10:37:05 +0100
 Subject: Re: BEA licenses BlueDragon for WebLogic

  On Monday 17 April 2006 19:37, Vince Bonfanti wrote:
   Some people might also find it significant that BEA is now
  essentially a
   competitor to Adobe in a portion of the ColdFusion server market
  (that
   portion being people who are now or are planning to redeploy
  existing
   CFML applications onto WebLogic servers).
 
  We already run MX on Weblogic. This is a supported configuration and
  works
  great.
  When we last looked, BD was about the same* price for a J2EE version as
  MX. It
  appears that since then BD has improved it's compatability with legacy
  CFML
  code since then, however, it's still the same cost with no extra
  benefit.
 
  Don't mind me though, I'm about to change employers :-)
 
  --
 
  Tom Chiverton
  Advanced ColdFusion Programmer
 
 

 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238142
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: New version of rSession available

2006-04-19 Thread Robert Everland III
I just looked at this code and while it solves a problem it creates another 
one. You go from using session variables, to using the request variable (try 
using cferror as a catch all on that scope, at least in cf 6) then you wddx it 
all to a database. Why not just use client variables to begin with? I try to 
stay away from client variables or reading and writing excessively to a 
database because my database server is the bottleneck in any of my 
applications. 

I think this app would be much cooler if you could actually duplicate your 
session and application variables on another server so that when your server 
fails over to the other one, the memory variables are already there. 



Bob

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238143
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


CFDirectory

2006-04-19 Thread Mark Leder
Hi all,
 
Trying to get a file listing from a directory, but only capturing the files
that are older than 7 days previous to today (using the cfdirectory
datelastmodified var).  I'm able to retrieve the listing of all files, but I
can't seem to get only the ones older than 7 days - throws an error.  Can
the filter var in cfdirectory be used, so I can eliminate the second query?
Or should the second query be structured differently?
 
cfdirectory 
  action=list 
  directory=c:\smarterstatsdomainlogs\somewebsite\W3SVC515241625\ 
  name=statsLevel3 
  recurse=no 
  listInfo=yes
  
cfoutput query=statsLevel3
 #NAME# - #datelastmodified#br /
/cfoutput  
 
cfset VARIABLES.dateRange = CreateODBCDateTime(Now() - 7)
cfset VARIABLES.dateRange = DateFormat(VARIABLES.dateRange, 'mm/dd/')
!--- 
cfset VARIABLES.dateRange = DateFormat(VARIABLES.dateRange, 'mm/dd/')
br /
cfoutput#VARIABLES.dateRange#/cfoutput 
---
br /

cfquery dbtype=query name=getSource
 SELECT * 
 FROM statsLevel3 
 WHERE #statsLevel3.datelastmodified# = #VARIABLES.dateRange#
 /cfquery

 
Thanks,
Mark
 




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238144
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: Virtual Directories

2006-04-19 Thread Everett, Al \(NIH/NIGMS\) [C]
I'm not surprised. DirectoryExists() works at the OS level, not
webserver.

I would try a cfhttp. If you get an error code of 200 or 403 if the
(virtual) directory exists. If it doesn't, you should get a 404.

-Original Message-
From: Cutter (CFRelated) [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 12:43 PM
To: CF-Talk
Subject: Re: Virtual Directories

yep, nothing

Cutter

Ken Ferguson wrote:
 I know it's a silly question, but did you restart the CF services???
 
 Cutter (CFRelated) wrote:
 
I tried this, but it doesn't seem to take. I tried a 
directoryexists(/tools), and it came up negative.

Cutter

Zaphod Beeblebrox wrote:
  

edit your *cf_root*\wwwroot\WEB-INF\jrun-web.xml file and add 
mappings in this format:

 virtual-mapping
   resource-path/tools/resource-path
   system-pathC:/inetpub/wwwroot/tools/system-path
 /virtual-mapping


On 4/18/06, Cutter (CFRelated) [EMAIL PROTECTED]
wrote:



Anyone have a clue how to set up a virtual directory (not a cf 
mapping) using the built in CF web server? Or if it's even possible
to?

Cutter


  




 
 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238145
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: Escaping #'s in outputting a CSS

2006-04-19 Thread Ben Nadel
What is the error being thrown?? 

...
Ben Nadel 
www.bennadel.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 12:52 PM
To: CF-Talk
Subject: Escaping #'s in outputting a CSS

Stupid beginner question I know but it's been a long time since I've done
any REAL CF coding.

I am trying to create an HTML code generator for a client and am having
problems escaping the #'s in the CSS.  I tried the good ole ## but that's
not working.  It throws an error.  If I just remove the #'s then the colors
don't get set the way they're supposed to.  

I can provide code samples if needed.

TIA,
Katrina Chapman





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238146
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: New version of rSession available

2006-04-19 Thread Jason Baker
The functionality of this gives you more power over the scope than using client 
variables.  I've been using rsession since 2000, and working with the original 
author I converted everything to more mx-friendly code.  The hit to the db on 
my servers only uses 16ms, which is not really and issue for me.  

 I just looked at this code and while it solves a problem it creates 
 another one. You go from using session variables, to using the request 
 variable (try using cferror as a catch all on that scope, at least in 
 cf 6) then you wddx it all to a database. Why not just use client 
 variables to begin with? I try to stay away from client variables or 
 reading and writing excessively to a database because my database 
 server is the bottleneck in any of my applications. 
 
 I think this app would be much cooler if you could actually duplicate 
 your session and application variables on another server so that when 
 your server fails over to the other one, the memory variables are 
 already there. 
 
 
 
Bob

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238147
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: CFDirectory

2006-04-19 Thread Ben Nadel
Don't use the ## in the Where clause:

cfquery dbtype=query name=getSource  
SELECT *  
FROM statsLevel3  
WHERE 
dateLastModified = cfqueryparam value=#VARIABLES.dateRange#
cfsqltype=CF_SQL_TIMESTAMP /
/cfquery


...
Ben Nadel 
www.bennadel.com

-Original Message-
From: Mark Leder [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 1:09 PM
To: CF-Talk
Subject: CFDirectory

Hi all,
 
Trying to get a file listing from a directory, but only capturing the files
that are older than 7 days previous to today (using the cfdirectory
datelastmodified var).  I'm able to retrieve the listing of all files, but I
can't seem to get only the ones older than 7 days - throws an error.  Can
the filter var in cfdirectory be used, so I can eliminate the second query?
Or should the second query be structured differently?
 
cfdirectory
  action=list 
  directory=c:\smarterstatsdomainlogs\somewebsite\W3SVC515241625\ 
  name=statsLevel3 
  recurse=no 
  listInfo=yes
  
cfoutput query=statsLevel3
 #NAME# - #datelastmodified#br /
/cfoutput  
 
cfset VARIABLES.dateRange = CreateODBCDateTime(Now() - 7) cfset
VARIABLES.dateRange = DateFormat(VARIABLES.dateRange, 'mm/dd/')
!---
cfset VARIABLES.dateRange = DateFormat(VARIABLES.dateRange, 'mm/dd/')
br / cfoutput#VARIABLES.dateRange#/cfoutput 
---
br /

cfquery dbtype=query name=getSource  SELECT *  FROM statsLevel3  WHERE
#statsLevel3.datelastmodified# = #VARIABLES.dateRange#  /cfquery

 
Thanks,
Mark
 






~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238148
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: New version of rSession available

2006-04-19 Thread Robert Everland III
I find 16ms hit hard to believe. You could have large caches of information, 
structures, arrays of structures, and the hit to read and write that 
information would go up significantly. The only difference between this method 
and client variables is that you have converted it to wddx before you sent it, 
which is good for complex variables , but a lot more overhead for simple 
variables.


Bob

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238149
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: Ruby (on Rails) vs Coldfusion

2006-04-19 Thread Damien McKenna
 -Original Message-
 From: Andy Matthews [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 19, 2006 12:49 PM
 
 Does anyone have a good comparison of the two?

Not really.  I was looking forward to Mr Corfield's insights after he
mentioned he was taking a look at it, but he's presumably been too busy
of late as he only wrote one short article on the topic.

 So I understand that this will be a little tougher than just a
 is x better than y question.

Indeed.

 I tried getting RoR running on my local dev machine and was 
 immediately turned off by the fact that you have to do so much
 work using the command prompt. Have the RoR developers never
 heard of a web browser?

As they say, you gotta start somewhere.  What would you prefer - an
extra year of development time for a cross-platform GUI, or something
usable today?  There are two different OSS IDEs in development, both
based on Eclipse, so give them time and they'll have something tangible,
same as the CFEclipse team.  To be honest, there are only a few basic
commands that you need to know, and you'll remember them in no time
flat.

The way I see it is that they approach the issue from two distinct
points of view.   First off, you can't directly compare RoR and CF as
they provide two very different workflows - RoR has a vast array of
helpers in the forms of an ORB layer dubbed ActiveRecord, scaffolding to
automatically generate code for you, migrations and Capistrano for
simplifying deployment, etc; with CF you get the server and Notepad :o)
To fairly compare the two you need to start adding in extras to the CF
equation, which complicates life as there are many options for the
equivelant RoR layers - the ORB, the code generation, the framework
itself, the AJAX layer, etc.

Once you build up the CF side of the equation you have to start with the
core languages - Ruby versus ColdFusion.  Ruby itself is fairly
interesting language as compared to the C/C++/Java/Javascript view on
life - syntactically it seems designed around readibility and ease of
use for someone with no preconceptions, while CFML is very definitely
aimed towards people who know some HTML but want to easily expand that
knowledge to do more advanced things, and its ties to Java (and .NET via
BlueDragon.NET) expand this advanced-ness to joined-at-the-hip
integration with other systems.

Personally I think that every developer owes it to themselves to
continually expand their abilities through learning new technologies and
languages.  Amazon has been selling the first edition Agile Web
Development with Ruby on Rails book for under $20 for a while, so even
people on a tight budget should be able to give it a go.

-- 
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
#include stdjoke.h

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238150
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: Ruby (on Rails) vs Coldfusion

2006-04-19 Thread Bryan Stevenson
Basically with Ruby it comes down to this (in my short investigation of itI 
stopped because it is NOT the Holy Grail)

It does lots of stuff for you...right up until it needs to something different 
then the default...then you are right back writing custom code to make your 
something different work.

So IMHO unless you are writing VERY simple interfaces and data interactions, 
you 
might as well just write your code from scratch (or your own wonderful code 
libraries etc).

So no...RoR does not make coding magically simple, but it does make simple 
coding magic ;-)

HTH

Cheers

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238151
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: Ruby (on Rails) vs Coldfusion

2006-04-19 Thread Jordan Michaels
Bryan Stevenson wrote:
 Basically with Ruby it comes down to this (in my short investigation of 
 itI 
 stopped because it is NOT the Holy Grail)
 
 It does lots of stuff for you...right up until it needs to something 
 different 
 then the default...then you are right back writing custom code to make your 
 something different work.
 
 So IMHO unless you are writing VERY simple interfaces and data interactions, 
 you 
 might as well just write your code from scratch (or your own wonderful code 
 libraries etc).
 
 So no...RoR does not make coding magically simple, but it does make simple 
 coding magic ;-)
 
 HTH
 
 Cheers
 
 Bryan Stevenson B.Comm.
 VP  Director of E-Commerce Development
 Electric Edge Systems Group Inc.
 phone: 250.480.0642
 fax: 250.480.1264
 cell: 250.920.8830
 e-mail: [EMAIL PROTECTED]
 web: www.electricedgesystems.com 


I would have to concur with the basic idea of this assessment. Vivio
Technologies is *very* interested in Rapid Application Development (RAD)
and exploring different ways to get the same thing done quickly, and in
our own short assessment of RoR there are some simple things that can be
done extremely fast and easy. It's just coming up with all the basics
first that are the real problem.

ColdFusion is great because it allows you to do very custom jobs very
quickly.

I should note, however, that we are still evaluating RoR, and it should
be something that anyone interested in RAD should keep a very close eye
on. There is a lot of potential there.

HTH!

-- 
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Blue Dragon Alliance Member
[EMAIL PROTECTED]

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238152
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: Escaping #'s in outputting a CSS

2006-04-19 Thread Sandra Clark
You can use rgb(rr,gg,bb) instead of Hex numbers in CSS. 


Sandra Clark
==
http://www.shayna.com
Training in Cascading Style Sheets and Accessibility 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 12:52 PM
To: CF-Talk
Subject: Escaping #'s in outputting a CSS

Stupid beginner question I know but it's been a long time since I've done
any REAL CF coding.

I am trying to create an HTML code generator for a client and am having
problems escaping the #'s in the CSS.  I tried the good ole ## but that's
not working.  It throws an error.  If I just remove the #'s then the colors
don't get set the way they're supposed to.  

I can provide code samples if needed.

TIA,
Katrina Chapman





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238153
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: New version of rSession available

2006-04-19 Thread Jason Baker
I didn't come here to split hairs over performance with you, just to provide 
some code to the community.

Here's what my debug info says for a decent sized wddx packet...

15 ms 15 ms 1 CFC[ C:\Inetpub\wwwroot\framework\lib\cfcs\framework_rsession.cfc 
| check() ] from C:\Inetpub\wwwroot\framework\lib\cfcs\framework_rsession.cfc 

0 ms 0 ms 1 CFC[ C:\Inetpub\wwwroot\framework\lib\cfcs\framework_rsession.cfc | 
save() ] from C:\Inetpub\wwwroot\framework\lib\cfcs\framework_rsession.cfc 

This is running on a very modest web  sql development server (P4 2.8ghz, 1gb 
ram)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238154
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: Ruby (on Rails) vs Coldfusion

2006-04-19 Thread Damien McKenna
 -Original Message-
 From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, April 19, 2006 1:19 PM
 
 It does lots of stuff for you...right up until it needs to something
 different then the default...then you are right back writing custom 
 code to make your something different work.

You mean if the scaffolds don't do what you need?  Or are you talking
about its various classes?  Of course you're going to have to hand-code
something, this isn't Visual Basic ;-)

-- 
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
#include stdjoke.h

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238155
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: Ruby (on Rails) vs Coldfusion

2006-04-19 Thread Zaphod Beeblebrox
I thought that same way until I really got into creating some applications
with it.  To me it's unbelievable how much stuff is available in that
framework.  I think where most people get hung up is on comparing Rails to
CF.  Rails is a framework that provides a lot of functionality for you.
Ruby, the underlying language would be the comparison to CF.  In my opinion,
Ruby comes out stronger because it's not only a web app language, it's
available straight from the command prompt if you like.  Plus, it's not
stuck in the middle like CF is, in that CF is a loosely typed language built
on top of a strictly typed language which causes some pain.  Ruby is built
ground up as an object language for which each object has standard methods
of to_i, to_s, etc.

One thing I will say is that in learning Rails, my CF programming quality
has definitely increased.  Heck even my javascript programming quality has
increased.

On 4/19/06, Bryan Stevenson [EMAIL PROTECTED] wrote:

 Basically with Ruby it comes down to this (in my short investigation of
 itI
 stopped because it is NOT the Holy Grail)

 It does lots of stuff for you...right up until it needs to something
 different
 then the default...then you are right back writing custom code to make
 your
 something different work.

 So IMHO unless you are writing VERY simple interfaces and data
 interactions, you
 might as well just write your code from scratch (or your own wonderful
 code
 libraries etc).

 So no...RoR does not make coding magically simple, but it does make simple
 coding magic ;-)

 HTH

 Cheers

 Bryan Stevenson B.Comm.
 VP  Director of E-Commerce Development
 Electric Edge Systems Group Inc.
 phone: 250.480.0642
 fax: 250.480.1264
 cell: 250.920.8830
 e-mail: [EMAIL PROTECTED]
 web: www.electricedgesystems.com


 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238156
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: CFDirectory

2006-04-19 Thread Mark Leder
Just that simple!
Thanks, that worked. 

Thanks,
Mark

-Original Message-
From: Ben Nadel [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 19, 2006 1:14 PM
To: CF-Talk
Subject: RE: CFDirectory

Don't use the ## in the Where clause:

cfquery dbtype=query name=getSource SELECT * FROM statsLevel3 WHERE
dateLastModified = cfqueryparam value=#VARIABLES.dateRange#
cfsqltype=CF_SQL_TIMESTAMP /
/cfquery



Ben Nadel
www.bennadel.com

-Original Message-
From: Mark Leder [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 19, 2006 1:09 PM
To: CF-Talk
Subject: CFDirectory

Hi all,
 
Trying to get a file listing from a directory, but only capturing the files
that are older than 7 days previous to today (using the cfdirectory
datelastmodified var).  I'm able to retrieve the listing of all files, but I
can't seem to get only the ones older than 7 days - throws an error.  Can
the filter var in cfdirectory be used, so I can eliminate the second query?
Or should the second query be structured differently?
 
cfdirectory
  action=list 
  directory=c:\smarterstatsdomainlogs\somewebsite\W3SVC515241625\ 
  name=statsLevel3 
  recurse=no 
  listInfo=yes
  
cfoutput query=statsLevel3
 #NAME# - #datelastmodified#br /
/cfoutput  
 
cfset VARIABLES.dateRange = CreateODBCDateTime(Now() - 7) cfset
VARIABLES.dateRange = DateFormat(VARIABLES.dateRange, 'mm/dd/')
!---
cfset VARIABLES.dateRange = DateFormat(VARIABLES.dateRange, 'mm/dd/')
br / cfoutput#VARIABLES.dateRange#/cfoutput 
---
br /

cfquery dbtype=query name=getSource  SELECT *  FROM statsLevel3  WHERE
#statsLevel3.datelastmodified# = #VARIABLES.dateRange#  /cfquery

 
Thanks,
Mark
 








~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238157
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: Ruby (on Rails) vs Coldfusion

2006-04-19 Thread Bryan Stevenson
 You mean if the scaffolds don't do what you need?  Or are you talking
 about its various classes?  Of course you're going to have to hand-code
 something, this isn't Visual Basic ;-)

Speaking in very general terms Damien.

Simple examplewant to check that the start date is before the end date 
entered into a form...RoR does NOT do that for youit WILL make sure both 
dates are dates because they are typed that way in the DB, but you still have 
to 
hand code the extra validation.

For me...I have clean base app templates lying aroundRoR just doesn't save 
me enough time to bother (but I'll throw in a big YET).

Cheers

Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238158
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: Why is there query.recordcount with non-SELECT queries?

2006-04-19 Thread Jochem van Dieten
Russ Michaels wrote:
 
 No, only selects return a recordcount.
 Although SQL does return a message about how many records are updated

Maybe some implementations update the diagnostic area with that 
information, but returning a count of the number of records 
affected is not part of the SQL specification. More importantly, 
it is only part of JDBC 3 and CF uses JDBC 2.

Time to visit http://www.macromedia.com/go/wish/

Jochem

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238159
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


  1   2   >