Re: Editing MS Word Documents with ColdFusion

2012-06-04 Thread Richard White

OK thanks Claude, will have a play around with this

>  >>require me to replicate the rows many times depending on the amount 
> of records in the database.
> 
> Not trivial, but feasible.
> I have done some work where I generate congress badges with many 
> fields and even images like logo and photographs.
> Open Office is definitely not a solution. I've never seen a Word 
> document it was able to render properly.

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


RE: Get First Paragraph: SOLVED

2012-06-04 Thread Robert Harrison

Well, this seems to be solved so I should share it. Thanks to those who helped. 

This function takes an HTML text string and extracts the first paragraph (i.e., 
the first displayable text string wrapped in P tags). It ignores any images, 
headers, empty P tags, etc., and returns only the first actual paragraph. Works 
with HTML editors like tinyMCE. 

Code is: 






",ExtractionString)+3>
",ExtractionString)>






What a pain that was. Thanks for the help.

Robert Harrison 
Director of Interactive Services

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

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

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


Re: Get First Paragraph: Remove Empty Paragraphs

2012-06-04 Thread Matt Quackenbush

Hmm. I just tried a couple of non-printable character insertions, and
[^[:print]] does not catch them. Mayhaps [\w] is better after all. ;-)

(BTW, I went and looked up \w for a refresher: "Any alphanumeric character,
or the underscore (_), similar to [[:word]]" )

On Mon, Jun 4, 2012 at 1:49 PM, Matt Quackenbush wrote:

> I don't recall the exact characters, but \w will include some other
> characters. Maybe this will also work for you?
>
> reReplaceNoCase( myString, '([\s]|\ |[^[:print]])*', '', 'all'
> )
>
> I think that's more clear as to intent. I prefer to be more explicit, but
> it's really just personal preference. :-)
>
>
>
> On Mon, Jun 4, 2012 at 1:29 PM, Robert Harrison <
> rob...@austin-williams.com> wrote:
>
>>
>> Matt,
>>
>> I tried your solutions and it works 100%, except when it's my variable
>> from the form. It's a tiny MCE field and it seems it must be inserting some
>> non-printable character.  I changed the statement
>>
>>From this: #reReplaceNoCase(myString,
>> '([\s]|\ )*', '', 'all' )#
>>
>>To This:  #reReplaceNoCase(myString,'([^\w*?])*','','all' )#
>>
>> This seems to be working.
>>
>> Can someone that knows regex better that I confirm the "to this" says:
>>  Strip from  to  UNLESS it contains a letter or a number? I think
>> that's what it says. Is that right?
>>
>> Thanks
>>
>>
>> Robert Harrison
>> Director of Interactive Services
>>
>> Austin & Williams
>> Advertising I Branding I Digital I Direct
>> 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
>> T 631.231.6600 X 119   F 631.434.7022
>> http://www.austin-williams.com
>>
>> Blog:  http://www.austin-williams.com/blog
>> Twitter:  http://www.twitter.com/austin_
>>
>> 

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


Re: Get First Paragraph: Remove Empty Paragraphs

2012-06-04 Thread Matt Quackenbush

I don't recall the exact characters, but \w will include some other
characters. Maybe this will also work for you?

reReplaceNoCase( myString, '([\s]|\ |[^[:print]])*', '', 'all' )

I think that's more clear as to intent. I prefer to be more explicit, but
it's really just personal preference. :-)


On Mon, Jun 4, 2012 at 1:29 PM, Robert Harrison
wrote:

>
> Matt,
>
> I tried your solutions and it works 100%, except when it's my variable
> from the form. It's a tiny MCE field and it seems it must be inserting some
> non-printable character.  I changed the statement
>
>From this: #reReplaceNoCase(myString, '([\s]|\ )*',
> '', 'all' )#
>
>To This:  #reReplaceNoCase(myString,'([^\w*?])*','','all' )#
>
> This seems to be working.
>
> Can someone that knows regex better that I confirm the "to this" says:
>  Strip from  to  UNLESS it contains a letter or a number? I think
> that's what it says. Is that right?
>
> Thanks
>
>
> Robert Harrison
> Director of Interactive Services
>
> Austin & Williams
> Advertising I Branding I Digital I Direct
> 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
> T 631.231.6600 X 119   F 631.434.7022
> http://www.austin-williams.com
>
> Blog:  http://www.austin-williams.com/blog
> Twitter:  http://www.twitter.com/austin_
>
> 

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


RE: Get First Paragraph: Remove Empty Paragraphs

2012-06-04 Thread Robert Harrison

Matt,

I tried your solutions and it works 100%, except when it's my variable from the 
form. It's a tiny MCE field and it seems it must be inserting some 
non-printable character.  I changed the statement

From this: #reReplaceNoCase(myString, '([\s]|\ )*', '', 
'all' )#

To This:  #reReplaceNoCase(myString,'([^\w*?])*','','all' )# 

This seems to be working.

Can someone that knows regex better that I confirm the "to this" says:Strip 
from  to  UNLESS it contains a letter or a number? I think that's what 
it says. Is that right?

Thanks


Robert Harrison 
Director of Interactive Services

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

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

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


RE: CF8 AdminApi throws errors.

2012-06-04 Thread Bobby Hartsfield

I set the CF Admin to no authentication (just to test) and it appears to
work. There server will be public facing once it is setup so I sure can't
leave it that way. it is interesting though...

.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
http://cf4em.com


-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: Monday, June 04, 2012 2:00 PM
To: cf-talk
Subject: CF8 AdminApi throws errors.


 

I've been using the admin API for years to list and create datasources so I
am pretty familiar with it (which isn't to say I'm not doing something dumb
and just missing it). We recently created two new CF8.0.1 machines (clones
of a existing machines that work fine). There are hundreds of datasources on
the cloned machines and I needed to clean them out and create new ones. I
decided to use the admin API to do both tasks. However, all requests of any
methods within the datasource.cfc are throwing odd errors on the new
servers.

 

For instance, a simple list of datasources (which i know I can get with the
service factory but this is happening with datasource delete and create
attempts as well)

 

This is the code (quite basic and known to work elsewhere)

 











 

The error behind that one is:

 


 


 



The error occurred in datasource.cfc: line 67


-1 : Unable to display error's location in a CFML template.

 

No actual error message; just that info.

 

The stack points to authentication issues
(coldfusion.security.SecurityManager$UnauthenticatedCredentialsException)
but the "isLogged" check is true and im positive the password in
"cfadminpassword" is correct (further indicated by isLoggedIn being "true").
The Cf Admin is set to "Use a single password only (default)"

 

Here is the top of the stack:

 

coldfusion.security.SecurityManager$UnauthenticatedCredentialsException
 at
coldfusion.security.SecurityManager.authenticateAdmin(SecurityManager.java:1
704)
 at coldfusion.sql.Executive.getDatasources(Executive.java:92)
 at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at coldfusion.runtime.StructBean.resolveName(StructBean.java:188)
 at coldfusion.runtime.Scope.get(Scope.java:60)
 at
coldfusion.runtime.ScopeSearchResult.searchForSubkeys(ScopeSearchResult.java
:104)
 at coldfusion.runtime.LocalScope.search(LocalScope.java:441)
 at
coldfusion.runtime.NeoPageContext.searchScopes(NeoPageContext.java:662)
 at
coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1653)
 at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1612)
 at
coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1747)
 at
coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1740)
 at
cfdatasource2ecfc498810217$funcGETDATASOURCES.runFunction(E:\cf8_updates\cfu
sion\wwwroot\CFIDE\adminapi\datasource.cfc:67)

 

Has anyone ran into this one before or have any ideas on what to try next?

 

Thanks.

 

.:.:.:.:.:.:.:.:.:.:.:.

Bobby Hartsfield

http://acoderslife.com

http://cf4em.com

 






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


CF8 AdminApi throws errors.

2012-06-04 Thread Bobby Hartsfield

 

I've been using the admin API for years to list and create datasources so I
am pretty familiar with it (which isn't to say I'm not doing something dumb
and just missing it). We recently created two new CF8.0.1 machines (clones
of a existing machines that work fine). There are hundreds of datasources on
the cloned machines and I needed to clean them out and create new ones. I
decided to use the admin API to do both tasks. However, all requests of any
methods within the datasource.cfc are throwing odd errors on the new
servers.

 

For instance, a simple list of datasources (which i know I can get with the
service factory but this is happening with datasource delete and create
attempts as well)

 

This is the code (quite basic and known to work elsewhere)

 











 

The error behind that one is:

 


 


 



The error occurred in datasource.cfc: line 67


-1 : Unable to display error's location in a CFML template.

 

No actual error message; just that info.

 

The stack points to authentication issues
(coldfusion.security.SecurityManager$UnauthenticatedCredentialsException)
but the "isLogged" check is true and im positive the password in
"cfadminpassword" is correct (further indicated by isLoggedIn being "true").
The Cf Admin is set to "Use a single password only (default)"

 

Here is the top of the stack:

 

coldfusion.security.SecurityManager$UnauthenticatedCredentialsException
 at
coldfusion.security.SecurityManager.authenticateAdmin(SecurityManager.java:1
704)
 at coldfusion.sql.Executive.getDatasources(Executive.java:92)
 at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at coldfusion.runtime.StructBean.resolveName(StructBean.java:188)
 at coldfusion.runtime.Scope.get(Scope.java:60)
 at
coldfusion.runtime.ScopeSearchResult.searchForSubkeys(ScopeSearchResult.java
:104)
 at coldfusion.runtime.LocalScope.search(LocalScope.java:441)
 at
coldfusion.runtime.NeoPageContext.searchScopes(NeoPageContext.java:662)
 at
coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1653)
 at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1612)
 at
coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1747)
 at
coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java:1740)
 at
cfdatasource2ecfc498810217$funcGETDATASOURCES.runFunction(E:\cf8_updates\cfu
sion\wwwroot\CFIDE\adminapi\datasource.cfc:67)

 

Has anyone ran into this one before or have any ideas on what to try next?

 

Thanks.

 

.:.:.:.:.:.:.:.:.:.:.:.

Bobby Hartsfield

http://acoderslife.com

http://cf4em.com

 




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


Re: Get First Paragraph: Remove Empty Paragraphs

2012-06-04 Thread Matt Quackenbush


This is the opening paragraph.

 
  
 
This is the closing paragraph.






On Mon, Jun 4, 2012 at 11:50 AM, Robert Harrison  wrote:

>
> ? No one know a method to strip empty paragraphs from a string?   I'd like
> to remove all occurrences of paragraphs that have no content - stuff like:
> ,  OR   OR  
>
> Any ideas?
>
> Thanks
>
> Robert Harrison
> Director of Interactive Services
>
> Austin & Williams
> Advertising I Branding I Digital I Direct
> 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
> T 631.231.6600 X 119   F 631.434.7022
> http://www.austin-williams.com
>
> Blog:  http://www.austin-williams.com/blog
> Twitter:  http://www.twitter.com/austin_williams
>
>
> -Original Message-
> From: Robert Harrison [mailto:rob...@austin-williams.com]
> Sent: Monday, June 04, 2012 12:37 PM
> To: cf-talk
> Subject: RE: Get First Paragraph: Remove Empty Paragraphs
>
>
> Getting close, no I'm trying to consider any empty paragraphs. Tried this:
>
>,
> , "," , , ")>
>
> But it does not work completely.
>
> How could I remove all paragraphs that are empty, or contain only blanks
> or non-breaking spaces?
>
>
>
> Robert Harrison
> Director of Interactive Services
>
> Austin & Williams
> Advertising I Branding I Digital I Direct
> 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788 T 631.231.6600 X
> 119   F 631.434.7022 http://www.austin-williams.com
>
> Blog:  http://www.austin-williams.com/blog
> Twitter:  http://www.twitter.com/austin_williams
>
>
> -Original Message-
> From: Russ Michaels [mailto:r...@michaels.me.uk]
> Sent: Monday, June 04, 2012 11:32 AM
> To: cf-talk
> Subject: Re: Get First Pa
>
>
>
> 

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


Re: ColdFusion as a Service

2012-06-04 Thread Gerald Guido

Thanx. Much appreciated.

And thanx to Ray for the resources.

G!!

On Mon, Jun 4, 2012 at 4:59 AM, Andrew Scott wrote:

>
> Eric I think he refers to the new feature SaaS in ColdFusion and not the
> services that run ColdFusion.
>
> Gerald I think it is available in standalone.
>
> --
> Regards,
> Andrew Scott
> WebSite: http://www.andyscott.id.au/
> Google+: http://plus.google.com/108193156965451149543
>
>
>
> On Mon, Jun 4, 2012 at 6:44 PM, Eric Roberts <
> ow...@threeravensconsulting.com> wrote:
>
> >
> > I believe they are all running as a service.  If you don't see it under
> > ColdFusion, look under macromedia or Jrun depending on the setup.
> >
> >
>
>
> 

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


RE: Get First Paragraph: Remove Empty Paragraphs

2012-06-04 Thread Robert Harrison

? No one know a method to strip empty paragraphs from a string?   I'd like to 
remove all occurrences of paragraphs that have no content - stuff like: , 
 OR   OR   

Any ideas?

Thanks

Robert Harrison 
Director of Interactive Services

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

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


-Original Message-
From: Robert Harrison [mailto:rob...@austin-williams.com] 
Sent: Monday, June 04, 2012 12:37 PM
To: cf-talk
Subject: RE: Get First Paragraph: Remove Empty Paragraphs


Getting close, no I'm trying to consider any empty paragraphs. Tried this:

, 
, "," , , ")>

But it does not work completely. 

How could I remove all paragraphs that are empty, or contain only blanks or 
non-breaking spaces?



Robert Harrison
Director of Interactive Services

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

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


-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk]
Sent: Monday, June 04, 2012 11:32 AM
To: cf-talk
Subject: Re: Get First Pa



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


RE: Get First Paragraph: Remove Empty Paragraphs

2012-06-04 Thread Robert Harrison

Getting close, no I'm trying to consider any empty paragraphs. Tried this:

, 
, "," , , ")>

But it does not work completely. 

How could I remove all paragraphs that are empty, or contain only blanks or 
non-breaking spaces?



Robert Harrison 
Director of Interactive Services

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

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


-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Monday, June 04, 2012 11:32 AM
To: cf-talk
Subject: Re: Get First Pa

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


Re: Get First Paragraph

2012-06-04 Thread Russ Michaels

A regex should be what you need.
Try This
"/(.*)<\/p>/"

For plain text try this
http://www.exampledepot.com/egs/java.util.regex/ReadPara.html

 On Jun 4, 2012 4:19 PM, "Robert Harrison" 
wrote:

>
> Trying to write a function to get the first paragraph in a string. My test
> string is:
>
>Remove the a headerThis is the marigold
> following the header. This is more.This is another paragraph.
>
> The idea is two steps: Get everything to the LEFT of the  (this
> works), then get everything to the right of the first  tag... this is
> working strangely. Any thoughts? The trouble is in the Right extract.
>
> function getFirstParagraph(str) {
>str = trim(str);
>endTag = findNoCase("", str);
>startTag = findNoCase("", str);
>if (endTag gt 0) {
>endTag = endTag + 3;
>extract = left(str, endTag);
>} else {
>extract = str;
>}
>if (startTag gt 0) {
>startTag = startTag + 4;
>extract = right(extract, startTag);
>} else {
>extract = str;
>}
>return extract;
> }
> 
>
> #getFirstParagraph(comment)#
>
>
> Thanks
>
> Robert Harrison
> Director of Interactive Services
>
> Austin & Williams
> Advertising I Branding I Digital I Direct
> 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
> T 631.231.6600 X 119   F 631.434.7022
> http://www.austin-williams.com
>
> Blog:  http://www.austin-williams.com/blog
> Twitter:  http://www.twitter.com/austin_williams
>
>
> -Original Message-
> From: Rakshith N [mailto:raksh...@adobe.com]
> Sent: Wednesday, May 30, 2012 8:18 AM
> To: cf-talk
> Subject: ColdFusion Developer Week - 4th and 8th June, 2012
>
>
> Hi All,
>
>  We are conducting the 2nd ColdFusion Developer week happening from 4th –
> 8th June 2012. (Register here: http://adobe.com/go/cfdeveloperweek )
>
>  With the launch of ColdFusion 10, we are back with the 2nd ColdFusion
> Developer Week, a series of free, live webinars hosted by seasoned
> ColdFusion experts. The webinars cover a wide range of topics, from what
> ColdFusion is and how to code it, to more in-depth topics related to CF10-
> HTML5, REST, ORM, Security enhancements and more.
>
>  If you are a new developer, someone with little or no ColdFusion
> experience, or even if you have been using ColdFusion all your life, these
> sessions are ideal for you. The ColdFusion Developer Week provides
> something for everyone so sign up now (http://adobe.com/go/cfdeveloperweek
> )
>
> Thanks,
> Rakshith Naresh
> Product Manager - ColdFusion
> Twitter: @rakshithn
> Blog: http://blogs.coldfusion.com
>
>
>
> 

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


RE: Get First Paragraph

2012-06-04 Thread Robert Harrison

> Don't forget to check CFLib for things like this...
>  http://www.cflib.org/udf/firstParagraph

That was my starting point. That does not work if the string starts with 
something other than a paragraph.

Robert Harrison 
Director of Interactive Services

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

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

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


Auth 2.0

2012-06-04 Thread Brian Thornton

Can I ask if there's an auth 2.0 framework anyone has got to work with cf 9
or 10?


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


Re: Get First Paragraph

2012-06-04 Thread Cameron Childress

Don't forget to check CFLib for things like this...

http://www.cflib.org/udf/firstParagraph

-Cameron

On Mon, Jun 4, 2012 at 11:19 AM, Robert Harrison  wrote:

>
> Trying to write a function to get the first paragraph in a string. My test
> string is:
>
>Remove the a headerThis is the marigold
> following the header. This is more.This is another paragraph.
>
> The idea is two steps: Get everything to the LEFT of the  (this
> works), then get everything to the right of the first  tag... this is
> working strangely. Any thoughts? The trouble is in the Right extract.
>
> function getFirstParagraph(str) {
>str = trim(str);
>endTag = findNoCase("", str);
>startTag = findNoCase("", str);
>if (endTag gt 0) {
>endTag = endTag + 3;
>extract = left(str, endTag);
>} else {
>extract = str;
>}
>if (startTag gt 0) {
>startTag = startTag + 4;
>extract = right(extract, startTag);
>} else {
>extract = str;
>}
>return extract;
> }
> 
>
> #getFirstParagraph(comment)#
>
>
> Thanks
>
> Robert Harrison
> Director of Interactive Services
>
> Austin & Williams
> Advertising I Branding I Digital I Direct
> 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
> T 631.231.6600 X 119   F 631.434.7022
> http://www.austin-williams.com
>
> Blog:  http://www.austin-williams.com/blog
> Twitter:  http://www.twitter.com/austin_williams
>
>
-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook  |
twitter |
google+ 


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


Re: Get First Paragraph

2012-06-04 Thread Raymond Camden

A few ways. Here are some examples. Note - these assume "good" HTML

Given:


TItle


THis is para one



This is part two




First example:
(.*?)", str,1,true)>


You would want to get the string from p.pos[2] to len p.len[2].

You can also do

.*?", str)>

which gives you all of em - but you just want position 1 (minus the  tags).

And I'm sure folks will chime in with even more ways. :)

On Mon, Jun 4, 2012 at 10:19 AM, Robert Harrison
 wrote:
>
> Trying to write a function to get the first paragraph in a string. My test 
> string is:
>
>                Remove the a headerThis is the marigold following 
> the header. This is more.This is another paragraph.
>
> The idea is two steps: Get everything to the LEFT of the  (this works), 
> then get everything to the right of the first  tag... this is working 
> strangely. Any thoughts? The trouble is in the Right extract.
>
> function getFirstParagraph(str) {
>    str = trim(str);
>    endTag = findNoCase("", str);
>    startTag = findNoCase("", str);
>    if (endTag gt 0) {
>        endTag = endTag + 3;
>        extract = left(str, endTag);
>    } else {
>        extract = str;
>    }
>    if (startTag gt 0) {
>        startTag = startTag + 4;
>        extract = right(extract, startTag);
>    } else {
>        extract = str;
>    }
>    return extract;
> }
> 
>
> #getFirstParagraph(comment)#
>
>
> Thanks
>
> Robert Harrison
> Director of Interactive Services
>
> Austin & Williams
> Advertising I Branding I Digital I Direct
> 125 Kennedy Drive,  Suite 100   I  Hauppauge, NY 11788
> T 631.231.6600 X 119   F 631.434.7022
> http://www.austin-williams.com
>
> Blog:      http://www.austin-williams.com/blog
> Twitter:  http://www.twitter.com/austin_williams
>
>
> -Original Message-
> From: Rakshith N [mailto:raksh...@adobe.com]
> Sent: Wednesday, May 30, 2012 8:18 AM
> To: cf-talk
> Subject: ColdFusion Developer Week - 4th and 8th June, 2012
>
>
> Hi All,
>
>  We are conducting the 2nd ColdFusion Developer week happening from 4th – 8th 
> June 2012. (Register here: http://adobe.com/go/cfdeveloperweek )
>
>  With the launch of ColdFusion 10, we are back with the 2nd ColdFusion 
> Developer Week, a series of free, live webinars hosted by seasoned ColdFusion 
> experts. The webinars cover a wide range of topics, from what ColdFusion is 
> and how to code it, to more in-depth topics related to CF10- HTML5, REST, 
> ORM, Security enhancements and more.
>
>  If you are a new developer, someone with little or no ColdFusion experience, 
> or even if you have been using ColdFusion all your life, these sessions are 
> ideal for you. The ColdFusion Developer Week provides something for everyone 
> so sign up now (http://adobe.com/go/cfdeveloperweek)
>
> Thanks,
> Rakshith Naresh
> Product Manager - ColdFusion
> Twitter: @rakshithn
> Blog: http://blogs.coldfusion.com
>
>
>
> 

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


Get First Paragraph

2012-06-04 Thread Robert Harrison

Trying to write a function to get the first paragraph in a string. My test 
string is:

Remove the a headerThis is the marigold following 
the header. This is more.This is another paragraph.

The idea is two steps: Get everything to the LEFT of the  (this works), 
then get everything to the right of the first  tag... this is working 
strangely. Any thoughts? The trouble is in the Right extract. 

function getFirstParagraph(str) {
str = trim(str);
endTag = findNoCase("", str);
startTag = findNoCase("", str);
if (endTag gt 0) {
endTag = endTag + 3;
extract = left(str, endTag);
} else {
extract = str;
}
if (startTag gt 0) {
startTag = startTag + 4;
extract = right(extract, startTag);
} else {
extract = str;
}
return extract;
}


#getFirstParagraph(comment)#


Thanks

Robert Harrison 
Director of Interactive Services

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

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


-Original Message-
From: Rakshith N [mailto:raksh...@adobe.com] 
Sent: Wednesday, May 30, 2012 8:18 AM
To: cf-talk
Subject: ColdFusion Developer Week - 4th and 8th June, 2012


Hi All,
  
 We are conducting the 2nd ColdFusion Developer week happening from 4th – 8th 
June 2012. (Register here: http://adobe.com/go/cfdeveloperweek )
 
 With the launch of ColdFusion 10, we are back with the 2nd ColdFusion 
Developer Week, a series of free, live webinars hosted by seasoned ColdFusion 
experts. The webinars cover a wide range of topics, from what ColdFusion is and 
how to code it, to more in-depth topics related to CF10- HTML5, REST, ORM, 
Security enhancements and more. 
 
 If you are a new developer, someone with little or no ColdFusion experience, 
or even if you have been using ColdFusion all your life, these sessions are 
ideal for you. The ColdFusion Developer Week provides something for everyone so 
sign up now (http://adobe.com/go/cfdeveloperweek)

Thanks,
Rakshith Naresh
Product Manager - ColdFusion
Twitter: @rakshithn
Blog: http://blogs.coldfusion.com



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


CF 9 Server restart

2012-06-04 Thread Brook Davies

Hey guys,

 

My Brand new CF9 Server (64 bit), for a site I just launched on Friday
restarted itself 3 times in a row this morning while logging only:

 

Potentially fatal error in generated byte array length: 63

AWT blocker activation interrupted:06/04 05:55:59 user CFInternalServlet:
destroy

 

1)

 

java.lang.InterruptedException

at java.lang.Object.wait(Native Method)

at java.lang.Object.wait(Object.java:485)

at
sun.awt.AWTAutoShutdown.activateBlockerThread(AWTAutoShutdown.java:315)

at
sun.awt.AWTAutoShutdown.setToolkitBusy(AWTAutoShutdown.java:232)

at
sun.awt.AWTAutoShutdown.notifyToolkitThreadBusy(AWTAutoShutdown.java:118)

at sun.awt.windows.WToolkit.eventLoop(Native Method)

at sun.awt.windows.WToolkit.run(WToolkit.java:293)

at java.lang.Thread.run(Thread.java:662)

06/04 05:55:59 Information [Thread-1] - Stopping Event Gateways.

 

2)

 

Potentially fatal error in generated byte array length: 63

06/04 05:56:36 user CFInternalServlet: destroy

 

3)

 

Potentially fatal error in generated byte array length: 63

06/04 05:58:25 user CFInternalServlet: destroy

 

Anyone seen this error before?

 

Brook




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


Re: ColdFusion as a Service

2012-06-04 Thread Raymond Camden

Some posts that may help:

http://www.raymondcamden.com/search.cfm?search=as+a+service



On Mon, Jun 4, 2012 at 6:46 AM, Eric Roberts
 wrote:
>
> Ah...OK...I haven't delved into the new features yet...one of my tasks this
> week :-D
>
> -Original Message-
> From: Andrew Scott [mailto:andr...@andyscott.id.au]
> Sent: Monday, June 04, 2012 4:00 AM
> To: cf-talk
> Subject: Re: ColdFusion as a Service
>
>
> Eric I think he refers to the new feature SaaS in ColdFusion and not the
> services that run ColdFusion.
>
> Gerald I think it is available in standalone.
>
> --
> Regards,
> Andrew Scott
> WebSite: http://www.andyscott.id.au/
> Google+: http://plus.google.com/108193156965451149543
>
>
>
> On Mon, Jun 4, 2012 at 6:44 PM, Eric Roberts <
> ow...@threeravensconsulting.com> wrote:
>
>>
>> I believe they are all running as a service.  If you don't see it under
>> ColdFusion, look under macromedia or Jrun depending on the setup.
>>
>>
>
>
>
>
> 

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


RE: ColdFusion as a Service

2012-06-04 Thread Eric Roberts

Ah...OK...I haven't delved into the new features yet...one of my tasks this
week :-D

-Original Message-
From: Andrew Scott [mailto:andr...@andyscott.id.au] 
Sent: Monday, June 04, 2012 4:00 AM
To: cf-talk
Subject: Re: ColdFusion as a Service


Eric I think he refers to the new feature SaaS in ColdFusion and not the
services that run ColdFusion.

Gerald I think it is available in standalone.

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



On Mon, Jun 4, 2012 at 6:44 PM, Eric Roberts <
ow...@threeravensconsulting.com> wrote:

>
> I believe they are all running as a service.  If you don't see it under
> ColdFusion, look under macromedia or Jrun depending on the setup.
>
>




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


Re: ColdFusion as a Service

2012-06-04 Thread Andrew Scott

Eric I think he refers to the new feature SaaS in ColdFusion and not the
services that run ColdFusion.

Gerald I think it is available in standalone.

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



On Mon, Jun 4, 2012 at 6:44 PM, Eric Roberts <
ow...@threeravensconsulting.com> wrote:

>
> I believe they are all running as a service.  If you don't see it under
> ColdFusion, look under macromedia or Jrun depending on the setup.
>
>


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


RE: ColdFusion as a Service

2012-06-04 Thread Eric Roberts

I believe they are all running as a service.  If you don't see it under
ColdFusion, look under macromedia or Jrun depending on the setup.

-Original Message-
From: Gerald Guido [mailto:gerald.gu...@gmail.com] 
Sent: Sunday, June 03, 2012 10:51 PM
To: cf-talk
Subject: ColdFusion as a Service


Is the ColdFusion as a Service feature available on CF standard? I asked The
Google and was not able to find a definitive answer.

As always, many TIA,
G!

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




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


Re: Editing MS Word Documents with ColdFusion

2012-06-04 Thread Claude Schneegans

 >>require me to replicate the rows many times depending on the amount of 
 >>records in the database.

Not trivial, but feasible.
I have done some work where I generate congress badges with many fields and 
even images like logo and photographs.
Open Office is definitely not a solution. I've never seen a Word document it 
was able to render properly.


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