Re: Site-wide redirect?

2006-03-08 Thread John Beynon
or rewrite the URLs with isap_rewrite/mod_rewrite

jb

On 3/7/06, Andy Matthews [EMAIL PROTECTED] wrote:
 I host with the company for which I work, so I suppose so. Good idea, let me
 look into that.

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

 -Original Message-
 From: Barthle, Robert (Contractor) [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 11:01 AM
 To: CF-Talk
 Subject: RE: Site-wide redirect?


 That sounds like a task for a Custom 404 page. Does your host allow you to
 set one?




 thanks
 -r
 _
 Rob Barthle
 Contractor - Sr. Software Developer
 [EMAIL PROTECTED]
 202-245-6484



 -Original Message-
 From: Andy Matthews [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 9:18 AM
 To: CF-Talk
 Subject: Site-wide redirect?


 I recently redesigned my personal website, moving from 10 or so individual
 files, to a single main template. Those files have been deleted as I don't
 like clutter in my directories.

 Problem is that now, search engines are still looking for those files. I'm
 wondering if it's somehow possible, using CF, to code a sitewide redirect
 back to index.cfm from any missing page.

 Anyone?

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






 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234586
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: OT: Popular Open API's

2006-03-08 Thread Mark Drew
I thought I would add,

cflib.org

There is a webservice for that (I think)

MD

On 3/8/06, Ryan Guill [EMAIL PROTECTED] wrote:
 Thanks for the comments everyone! Taking them all down.

 What im really looking for though is like web applications that people
 have developed that they have opened an API to use.  Not as much tools
 like java and such (although keep those coming, i need those for
 something else!) but like flickr, where they built an
 application/service, and then developed and api for other developers
 to be able to use what they built.  Does that make sense?

 On 3/7/06, Paul Hastings [EMAIL PROTECTED] wrote:
  dunno about popular, but when you need it, you need it.
 
  http://jscience.org/
 
 

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234587
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: anyone used cfx_zip??

2006-03-08 Thread Tanguy Rademakers
I can't answer that for you. However, you can find out using which, which
is available with Cygwin or UnxUtils for Win32:

http://unxutils.sourceforge.net/

You could also check out the GnuWin32 project

http://gnuwin32.sourceforge.net/packages.html

/t

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

2006-03-08 Thread Peter Farrell
Hi Dave,

Ironically, I'm going to open source a new CFC based Captcha called LylaCaptcha 
in the next week.  It's loosely based off of Mark Mandel's Open Source Captcha 
(this derivative work has been blessed by Mark already).  However, this is a 
full featured Captcha which includes definable font lists, coloring options, 
JPEG quality/anti-aliasing, LRU caching of hash reference (a must have if you 
wish to stream an image instead of saving the file), and much much more.  The 
XML config file hs 34 options as well as font lists as it stands currently.

I'm going to unveil LylaCaptcha at the cf.Objective() conference this weekend 
and will get the package up for download at my blog next week.  Best of all 
this Captcha is open source and free to use commerically (very few restrictions 
are listed in the file headers).  I'm releasing it under an Apache 2.0 license.

Best,
...Peter

-- 
Peter J. Farrell :: Maestro Publishing
Member Team Mach-II :: Member Team Fusion
http://blog.maestropublishing.com

Create boilerplate beans and transfer objects for ColdFusion!
Fire up a cup of Rooibos!
http://rooibos.maestropublishing.com/

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

2006-03-08 Thread Peter Farrell
BTW, the documentation is over 11 pages already and it is not finished yet.  
This last stumbling block before releasing the first version to the world.

The zip will also include a listener for using Lyla in Mach-II and sample pages 
for serving a Captcha stream dynamically with cfcontent instead of a file. It 
also has a utility for choosing fonts to use based on what is installed on the 
server.  No more randomly picking whatever is available.

Matt Woodward and I are going to use it in the MachBlog application (Mach-II + 
ColdSpring open source blog appplication) we're writting as well.

Best,
...Peter

-- 
Peter J. Farrell :: Maestro Publishing
Member Team Mach-II :: Member Team Fusion
http://blog.maestropublishing.com

Create boilerplate beans and transfer objects for ColdFusion!
Fire up a cup of Rooibos!
http://rooibos.maestropublishing.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234590
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: JRun High Memory Usage on CFMX 7

2006-03-08 Thread Andrew Stevens
Ming Lu  Chad,
You could try this hotfix;
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=413aa6bbpss=rs
s_jrun_413aa6bb

Depending how your applications use sessions it might be applicable. 

Cheers.

-Original Message-
From: Casey Dougall [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 8 March 2006 10:15 AM
To: CF-Talk
Subject: Re: JRun High Memory Usage on CFMX 7

Well, another problem I've had like that was when the file backup
services were eating up 80 to 90% of the bandwidth of the internal NIC
card. coldfusion was stuck using ill amounts of transfer space to get
and send data to the SQL server. Simular issue. Jrun would just hang. 
you can see this if you remote desktop into the server and run task
monitor... on the network tab you will see what's going through your
internal and external NIC cards. Normally this sits around under 10%
but if you see it spikeing to 80 or 90% I'd bet on that as the issue.

Casey

On 3/7/06, Ming Lu [EMAIL PROTECTED] wrote:
 Hi Casey,

 Sorry, not for this server.  It's at None for Select Default Storage
Mechanism for Client Sessions in CFMX administrator.

 Ming Lu

 



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

2006-03-08 Thread Yves Arsenault
Hey Roger,

Thanks for the reply.


Yves: Only if you want to be hunted down by a bunch of irritated server
 admins for abusing their bandwidth. :)


 As much fun as that sounds... I would say it's likely best I avoid that
scenario.
;-)

In general, you don't want to poll a given feed more than once an hour. If
 you must poll more frequently, you should HEAD each feed before doing a full
 GET... that way you can check the headers to see if anything has changed
 before requesting a feed full of redundant items.


Well, I'm gonna give it a shot (thanks for the tip)

Thanks,

--
Yves Arsenault

Love is the only force capable of transforming an enemy into a friend.
--Martin Luther King, Jr.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234592
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: Site-wide redirect?

2006-03-08 Thread srinivas ganta
Hi Andy

You can add  error tag in the Application cfm ,and include the code that if
error is missing template ,you can redirect the page to index.cfm

Srinivas


On 3/7/06, Andy Matthews [EMAIL PROTECTED] wrote:

 I recently redesigned my personal website, moving from 10 or so individual
 files, to a single main template. Those files have been deleted as I don't
 like clutter in my directories.

 Problem is that now, search engines are still looking for those files. I'm
 wondering if it's somehow possible, using CF, to code a sitewide redirect
 back to index.cfm from any missing page.

 Anyone?

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


 

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


NumericStepper custom tag for CF FlashForms released

2006-03-08 Thread Artur Kordowski
One of the controls that are missing in the ColdFusion FlashForms is the
NumericStepper. I'm glad to announce the release of the NumericStepper
custom tag with that you can very easily built in a NumericStepper in your
application. You can download the NumericStepper custom tag here:
http://download.newsight.de/NumericStepper.zip
 
Artur
 
 
PS: More informations on: http://www.newsight.de


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

2006-03-08 Thread Ryan Guill
Or, you could do it like mxna does and set up a url that the site can
hit when they post something new.  Then use the hourly poll as a
backup.

On 3/8/06, Yves Arsenault [EMAIL PROTECTED] wrote:
 Hey Roger,

 Thanks for the reply.


 Yves: Only if you want to be hunted down by a bunch of irritated server
  admins for abusing their bandwidth. :)


  As much fun as that sounds... I would say it's likely best I avoid that
 scenario.
 ;-)

 In general, you don't want to poll a given feed more than once an hour. If
  you must poll more frequently, you should HEAD each feed before doing a full
  GET... that way you can check the headers to see if anything has changed
  before requesting a feed full of redundant items.
 

 Well, I'm gonna give it a shot (thanks for the tip)

 Thanks,

 --
 Yves Arsenault

 Love is the only force capable of transforming an enemy into a friend.
 --Martin Luther King, Jr.


 

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

2006-03-08 Thread Jerry Barnes
I haven't seen this one referenced:

http://www.christophertown.com/projects/captcha/

J


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234596
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: How to Quit Excel

2006-03-08 Thread Mingo Hagen
I've cfexecuted the pskill utility from sysinternals to kill any
excel.exe processes, which has worked pretty well.  -jim

http://www.sysinternals.com/Utilities/PsKill.html

On 3/7/06, Mingo Hagen [EMAIL PROTECTED] wrote:


Alright Jim, thanks for that, i'll work that into my application and see how it 
goes.
Thanks,
Mingo.

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234597
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: Ok, I give...how can I do this...

2006-03-08 Thread Rick Faircloth
What seems to have covered all the bases in
my situation is to run two error traps:

Not Len(Trim(Form.Amount))

- Catches empty formfields

Len(Trim(Form.Ammount)) and Not IsNumeric(REReplace(Form.Premium,
[.$,],,All))

- This code makes sure there is data in the field
- Allows for $ , . to be entered, but stripped out.  This is important
  because many times for dollar amounts, those characters are used
  and should not trigger an error for the user
- Catches data entered into the field which is just a garbage entry,
  such as oweinfe9, does not assign it a value as using VAL would,
  but doesn't accept this garbage entry by stripping out all the
non-numeric
  characters and turning the entry into $9.00, for example
- It would catch the entry as incorrect, redisplay the entry in the
formfield
  for the user to inspect and allow changes
- By using this line of code, I can also redisplay the entry in
DollarFormat
  for the user, then have the $., stripped back out by this line for
processing

Those two trapping statements seems to cover all the bases, but it's hard to
anticipate everything someone might throw in a formfield.

Rick


 -Original Message-
 From: Eric Roberts [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 11:29 PM
 To: CF-Talk
 Subject: RE: Ok, I give...how can I do this...


 Numberformat(number,.99) worked for my problem.  Unless you specify a
 comma, numberformat will not put one in (with the exception of if
 you do not
 put in a mask).  I didn't realize that decimalformat outputs a
 string value
 (that's what I get for not reading the manual hehehehe)

 Eric

 -Original Message-
 From: Dawson, Michael [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 07 March 2006 08:23
 To: CF-Talk
 Subject: RE: Ok, I give...how can I do this...

 I would use a regular expression to remove *all* non-numeric characters.
 Then, check to see if the remainder is numeric.  You could do this both on
 the client and the server.

 M!ke

 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 06, 2006 7:16 PM
 To: CF-Talk
 Subject: RE: Ok, I give...how can I do this...

 Thanks for the tip, Josh...yet another way I'll have to validate an entry.
 Maybe it's just easier to let them make an illegal entry, then
 tell them how
 I want them to enter the data than try to catch all the possible
 violations...

 I wonder what will happen if they enter
 $1,000 and I run it against
 IsNumeric(Replace(Form.Dollars, ,,,all)) ?
 What about that dollar sign?

 I'll have to see...thanks, Josh...



 

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


XSL function list?

2006-03-08 Thread Ray Champagne
Anyone have a good downloadable list of XSL functions they care to share?

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

2006-03-08 Thread Kevin Graeme
Feed Aggregation is becoming an entire business niche. 

- The most popular open source aggregator is Planet:Planet. But it's Python.


- There are a number of plugins for the various popular blog engines for the
smaller scale needs. But nothing CF there.

- Then there's the big business aggregators like NewsGator that offer both
online aggregators or Enterprise installs and Private Label customized
options. Their enterprise version is .NET but appears to have an API and
webservices for integrating into intranet portals and such.

Not much to get you started in CF, unfortunately. As for implementations for
keeping the feeds current, I've seen three approaches:

1. Scheduled polling like you mentioned. This is the easiest to do, but
obviously it's a brute force approach that puts the most strain on all the
resources involved.

2. User triggered retrieve and cache. When someone actually looks at the
aggregator information for a particular content area, do a lookup at that
point and then cache that for a period of time so that it's not updating for
each user hit. This is similar to how many desktop aggregator tools work.

3. Webservice triggers in the blogs you poll. For instance, in the WordPress
software there's a screen in the admin to add any webservices you want to
notify of updates to the blog. This is the most elegant technically, but
obviously only works with feeds that can notify a webservice of updates.

And of course, there's the mix and blend of all the above. For instance,
using method 2's user triggers to make sure that blogs being aggregated are
actually of use to the viewer and then adding it to method 1's scheduled
polling queue for a period of time.

Here's a blog covering the Aggregation industry.
http://www.niallkennedy.com/blog/archives/software/feed_aggregators/

Have fun! 

---
Kevin Graeme
Cooperative Extension Technology Services
University of Wisconsin-Extension
 

 -Original Message-
 From: Yves Arsenault [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 07, 2006 7:08 PM
 To: CF-Talk
 Subject: RSS site like fullasagoog.com
 
 Hey there,
 
 I'm considering attempting to build a similar site to fullasagoog.com.
 
 Basically, pull in feeds from many different blogs and sort 
 them (DESC).
 
 I'm wondering if anyone has built something similar and would 
 maybe have
 some suggestions on what to look out for.
 
 Also, I guess I'm not sure what the best approach would be.
 
 Pulling the feeds and storing into a database, then display and sort.
 Should I run a script every few minutes to check the feeds 
 for new entries?
 And when the page is loaded, I would use some query caching 
 so as not to .
 
 Having never done a whole lot with rss feeds other than 
 simply displaying
 their contents... just trying to find the most efficiant way 
 to go about.
 
 Thanks,
 
 --
 Yves Arsenault
 
 Love is the only force capable of transforming an enemy into 
 a friend.
 --Martin Luther King, Jr.
 
 
 

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

2006-03-08 Thread Rick Root
Peter Farrell wrote:
 BTW, the documentation is over 11 pages already and it is not finished yet.  
 This last stumbling block before releasing the first version to the world.

Peter,

I'll be looking forward to that... I have my own captcha stuff that is 
part of the BlogCFM distribution, but I really don't think it's robust 
enough, since it doesn't do colors or random backgrounds or randomized 
adjustments of the font face, tilt, baseline, size, etc.

Rick


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234601
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: XSL function list?

2006-03-08 Thread S . Isaac Dealey
 Anyone have a good downloadable list of XSL functions they
 care to share?

I use these two:

http://www.w3schools.com/xsl/xsl_functions.asp
http://www.w3schools.com/xpath/xpath_functions.asp

Frustratingly the list doesn't say what version of which language
(xpath,xquery,xslt) the function belongs to, and given that the 2nd
list says it includes xsl functions I have to wonder why they then
have a separate xsl functions page with less than 10 functions
separated out to themselves... fortunately, while frustrating these
issues haven't been bad enough to make the list useless.


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234602
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: How do I write a Regex for this?

2006-03-08 Thread Munson, Jacob
BTW, it looks like you might be removing extra notations from a number.
If that's the case, you might have problems if people enter other bogus
data (like letters, other special characters).  It's always better to
only allow the data you want, instead of removing possible bad data
(like what virus scanners do, and why you /always/ have to update your
definitions).  So the below regex would remove anything that's not a
numeric digit:

cfset myStr2 = ReREplace(myStr,[^[:digit:]]+,,all)

 -Original Message-
 From: Rick Faircloth
 Sent: Tuesday, March 07, 2006 8:19 PM
 
 Thanks, Claude!
 
 Rick
 
  -Original Message-
  From: Claude Schneegans
  Sent: Tuesday, March 07, 2006 9:39 PM
  
   What do the \'s do?  And the + sign?
  
  The \ is used to escape special characters, like the dot 
 and dollar sign.
  The + means one or more occurences of the previous subexpression.


[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:234603
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: XSL function list?

2006-03-08 Thread Ray Champagne
Yea, that's the one I've been using, and the same thing bugged me. 
Thought someone might have a secret link to one that I couldn't find 
via Google.

S. Isaac Dealey wrote:
 Anyone have a good downloadable list of XSL functions they
 care to share?
 
 I use these two:
 
 http://www.w3schools.com/xsl/xsl_functions.asp
 http://www.w3schools.com/xpath/xpath_functions.asp
 
 Frustratingly the list doesn't say what version of which language
 (xpath,xquery,xslt) the function belongs to, and given that the 2nd
 list says it includes xsl functions I have to wonder why they then
 have a separate xsl functions page with less than 10 functions
 separated out to themselves... fortunately, while frustrating these
 issues haven't been bad enough to make the list useless.
 
 
 s. isaac dealey 434.293.6201
 new epoch : isn't it time for a change?
 
 add features without fixtures with
 the onTap open source framework
 
 http://www.fusiontap.com
 http://coldfusion.sys-con.com/author/4806Dealey.htm
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234604
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: OOP, why me?

2006-03-08 Thread Munson, Jacob
 ...I'd love to write a business case
 for your company outlining how they're hemoraging hundreds of
 thousands of dollars every year by making their programmers spend
 many, many extra hours coding by (among other things) reinventing
 payroll every time they create a new business unit. :P

Well, I will say that we don't have to routinely write these nasty
queries, it's only a few specific cases like what I described before.
But the problem is that each business unit has different rules for how
they do payroll.  If we wanted to simplify things, we'd make /everybody/
follow the same set of rules, but unfortunately that's not possible in a
large company like this.  Also, part of the problem is that some of
these databases were poorly designed (some of them are large enterprise
applications the company bought, so there's no changing of the design).
So we find ourselves fighting with bad designs, and thus producing nasty
queries to get things to work.

 ...I ended up sending a fairly detailed response which
 explained how to store id's and labels for the properties in one table
 and the values for properties in a 3rd so that the application would
 have only 3 tables and require no additional schema changes rather
 than continually adding columns or tables.

So you described a 1-to-many bridge table.  :)  I know exactly what you
mean.  In fact, what you described is what we have to fight with all the
time, because some of the designers of the databases we use don't
understand good relational DB practices.





[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:234605
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: How do I write a Regex for this?

2006-03-08 Thread Andy Matthews
Rick...

The period and dollar sign are called meta-characters. They allow really
cool stuff to happen using regex, but to treat them as themselves you have
to escape them with a backslash.

The period matches ANY one character.

The dollar sign anchors a match at the end of a string.

string = abc
REReplace (string , .$, , all)

would replace c

I'll go a little further and say these other meta-characters are also VERY
useful.

[] = a character set.
[0-9] = any number
[a-z] = any lowercase letter
[abc123] = the letters a,b,c and the numbers 1,2,3

* = as many as are there.
.* would replace EVERY character in a string
+ = matches one or more characters
string = abc123
REReplace (string , .+, , all)
replaces the entire string
? = matches 0 or 1
string = abc123
REReplace (string , [0-9]?$, , all) | replaces 3

^ = anchors at the beginning of a string
REReplace (string , ^[0-9]$, , all) | replaces nothing





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

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 6:05 PM
To: CF-Talk
Subject: RE: How do I write a Regex for this?


Thanks, Claude...that seems to have done just what I needed.

What do the \'s do?  And the + sign?

Rick

 -Original Message-
 From: Claude Schneegans [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 6:40 PM
 To: CF-Talk
 Subject: Re: How do I write a Regex for this?


  How would I write that in a Regex?

 Try this:

 REReplace (myString, [\.\$,]+, , all)

 --
 ___
 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:234606
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


Faulting application jrun.exe

2006-03-08 Thread Mike Chabot
Below is an error I sometimes see that brings down CFMX. I thought I
would see if anyone has experience with this problem. One suggestion I
have read is to upgrade the JVM that CF is using to 1.4.2_05. The
server is running Windows 2003sp1, CFMX 6.1, JVM 1.4.2_b28.

faulting application jrun.exe, version 4.0.3.10455, faulting module
jvm.dll, version 0.0.0.0, fault address 0x0003cfd4.

Thank you,
Mike Chabot

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234607
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: How do I write a Regex for this?

2006-03-08 Thread Andy Matthews
by the way, I'd heartily recommend Ben Forta's regex book! It's really well
written and VERY informative.

http://forta.com/books/0672325667/

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

-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 9:39 PM
To: CF-Talk
Subject: Re: How do I write a Regex for this?


 I see it's not all that mysterious.

Mysterious, no, but tricky, definitely, and sometimes quite frustrating ;-)


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

2006-03-08 Thread Andy Matthews
Please?

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

-Original Message-
From: Spike [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 10:07 PM
To: CF-Talk
Subject: Re: cfm captchas


Send me a nice friendly please, please, please email and I might get
round to implementing the idea I've had in my head for the last year
or so ;-)

I think it would take about 30 people asking for it to get enough
motivation for lift-off.

Spike

On 3/7/06, dave [EMAIL PROTECTED] wrote:
 what are our options for cfm captchas besides alagad

 ~Dave the disruptor~







~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234609
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: How do I write a Regex for this?

2006-03-08 Thread Rick Faircloth
Hi, Jacob...

Actually, it seems the opposite approach has resulted
in the error trapping I was looking for.

One of the things I wanted to do was allow garbage
entries to be caught and an error message and the
garbage input to be redisplayed in the form.

By taking out only the good stuff, in this case, a comma,
a period, and a dollar sign, I'm able to still trap everything
else that is non-numeric and still be able to process data
that is legitmately entered (from the user's perspective)
and does use a comma, period, or dollar sign.

Other thoughts on this?

Thanks for your input...oh, btw, I sent an email in earlier
to the list that describes my (hopefully) final solution.

Rick

 -Original Message-
 From: Munson, Jacob [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 9:52 AM
 To: CF-Talk
 Subject: RE: How do I write a Regex for this?
 
 
 BTW, it looks like you might be removing extra notations from a number.
 If that's the case, you might have problems if people enter other bogus
 data (like letters, other special characters).  It's always better to
 only allow the data you want, instead of removing possible bad data
 (like what virus scanners do, and why you /always/ have to update your
 definitions).  So the below regex would remove anything that's not a
 numeric digit:
 
 cfset myStr2 = ReREplace(myStr,[^[:digit:]]+,,all)
 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234610
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: How do I write a Regex for this?

2006-03-08 Thread Rick Faircloth
Hmmm..I'm getting conflicting info from the list...

One said to escape the characters... \.\$, (don't
know why the comma wasn't escaped...perhaps
it isn't special...(now it's sad because it's not special... ;o)

Another said they don't need to be escaped...

You're coming down on the escape side...

would it be REReplace(string, [\.\$,], , All)
or
would it be REReplace(string, [\.\$\,], , All)

?

Just for the record, I implemented it without the
escapes yesterday and it seems to be performing correctly...

Rick

 -Original Message-
 From: Andy Matthews [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 10:09 AM
 To: CF-Talk
 Subject: RE: How do I write a Regex for this?


 Rick...

 The period and dollar sign are called meta-characters. They allow really
 cool stuff to happen using regex, but to treat them as
 themselves you have
 to escape them with a backslash.

 The period matches ANY one character.

 The dollar sign anchors a match at the end of a string.

 string = abc
 REReplace (string , .$, , all)

 would replace c

 I'll go a little further and say these other meta-characters are also VERY
 useful.

 [] = a character set.
   [0-9] = any number
   [a-z] = any lowercase letter
   [abc123] = the letters a,b,c and the numbers 1,2,3

 * = as many as are there.
   .* would replace EVERY character in a string
 + = matches one or more characters
   string = abc123
   REReplace (string , .+, , all)
   replaces the entire string
 ? = matches 0 or 1
   string = abc123
   REReplace (string , [0-9]?$, , all) | replaces 3

 ^ = anchors at the beginning of a string
   REReplace (string , ^[0-9]$, , all) | replaces nothing




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

2006-03-08 Thread S . Isaac Dealey
Should I run a script every few minutes to check the feeds
for new entries?

 Yves: Only if you want to be hunted down by a bunch of
 irritated server admins for abusing their bandwidth. :)

 In general, you don't want to poll a given feed more than
 once an hour. If you must poll more frequently, you should
 HEAD each feed before doing a full GET... that way you can
 check the headers to see if anything has changed before
 requesting a feed full of redundant items.

Hey Roger,

Is there a standard method for providing head information for RSS
feeds? I built some RSS syndication into the Blogs onTap plugin and
wouldn't mind tweaking it to be more useful to people when I've got
some time. I'm also wondering if there's a standard cut-off point for
a full feed, like a certain number of records or period of time? Right
now I think the main feed (if you're not looking at the feed for a
specific category or a specific article) never stops... which I
suppose could be considered a good thing, but I would imagine that
over time if you posted regularly eventually the feed would become
problematically large (on my end if not on the receiving end, since
the feed itself is built with CF).

I've also considered the possibility of writing the rss feeds to
static files, but haven't gone that route as of yet -- I like the idea
of writing to static files for a CMS (to avoid the problem of
gratuitous runtime page assembly - GRUPA) but with the blog I'm
hesitant to add more files because of course each new file means
another something that the system may need to update or delete later
and I guess because I perceive this as being more of an issue with a
blog, probably because I perceive blogs as being more transient (don't
ask me why).


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234612
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: How do I write a Regex for this?

2006-03-08 Thread Rick Faircloth
Jacob...I realized my solution was posted in another
thread, so I've included it below...  Rick


---

What seems to have covered all the bases in
my situation is to run two error traps:

Not Len(Trim(Form.Amount))

- Catches empty formfields

Len(Trim(Form.Ammount)) and Not IsNumeric(REReplace(Form.Premium,
[.$,],,All))

- This code makes sure there is data in the field
- Allows for $ , . to be entered, but stripped out.  This is important
  because many times for dollar amounts, those characters are used
  and should not trigger an error for the user
- Catches data entered into the field which is just a garbage entry,
  such as oweinfe9, does not assign it a value as using VAL would,
  but doesn't accept this garbage entry by stripping out all the
non-numeric
  characters and turning the entry into $9.00, for example
- It would catch the entry as incorrect, redisplay the entry in the
formfield
  for the user to inspect and allow changes
- By using this line of code, I can also redisplay the entry in
DollarFormat
  for the user, then have the $., stripped back out by this line for
processing

Those two trapping statements seems to cover all the bases, but it's hard to
anticipate everything someone might throw in a formfield.

Rick



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234613
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: How do I write a Regex for this?

2006-03-08 Thread Andy Matthews
I didn't test that particular line of code, but I've always been under the
impression that to match a meta-character, you have to escape it. I defer to
those on the list that have a greater knowledge of regex than I.

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

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 9:24 AM
To: CF-Talk
Subject: RE: How do I write a Regex for this?


Hmmm..I'm getting conflicting info from the list...

One said to escape the characters... \.\$, (don't
know why the comma wasn't escaped...perhaps
it isn't special...(now it's sad because it's not special... ;o)

Another said they don't need to be escaped...

You're coming down on the escape side...

would it be REReplace(string, [\.\$,], , All)
or
would it be REReplace(string, [\.\$\,], , All)

?

Just for the record, I implemented it without the
escapes yesterday and it seems to be performing correctly...

Rick


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234614
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: How do I write a Regex for this?

2006-03-08 Thread Munson, Jacob
Normally you do have to escape those characters in a regex, but in a
character class they aren't special characters (but there are other
special characters in character classes, like '^').  You've probably
picked this up from the other posts, but a character class is anything
in [].

 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 08, 2006 8:24 AM
 To: CF-Talk
 Subject: RE: How do I write a Regex for this?
 
 Hmmm..I'm getting conflicting info from the list...
 
 One said to escape the characters... \.\$, (don't
 know why the comma wasn't escaped...perhaps
 it isn't special...(now it's sad because it's not special... ;o)
 
 Another said they don't need to be escaped...
 
 You're coming down on the escape side...
 
 would it be REReplace(string, [\.\$,], , All)
 or
 would it be REReplace(string, [\.\$\,], , All)
 
 ?
 
 Just for the record, I implemented it without the
 escapes yesterday and it seems to be performing correctly...

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. A1.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234615
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: How do I write a Regex for this?

2006-03-08 Thread Munson, Jacob
That makes sense.  I just didn't want you to feel safe removing those
characters, when other bad stuff could get through.  But it sounds like
you are doing it correctly. 

 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 08, 2006 8:17 AM
 To: CF-Talk
 Subject: RE: How do I write a Regex for this?
 
 Hi, Jacob...
 
 Actually, it seems the opposite approach has resulted
 in the error trapping I was looking for.
 
 One of the things I wanted to do was allow garbage
 entries to be caught and an error message and the
 garbage input to be redisplayed in the form.
 
 By taking out only the good stuff, in this case, a comma,
 a period, and a dollar sign, I'm able to still trap everything
 else that is non-numeric and still be able to process data
 that is legitmately entered (from the user's perspective)
 and does use a comma, period, or dollar sign.
 
 Other thoughts on this?
 
 Thanks for your input...oh, btw, I sent an email in earlier
 to the list that describes my (hopefully) final solution.

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. A1.



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

2006-03-08 Thread Andy Matthews
Thanks for this response Casey...

This might be a little more than I want to get into. The form creation would
only be used in the CMS. So I'm okay hard-coding SOME of the information
into each page.

I'm far from creating each page completely dynamically. Each module requires
a moderate amount of coding to make it work properly and I'm okay with that
for the time being. I'm just working slowly towards the future that you laid
out below.

:)

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

-Original Message-
From: Casey Dougall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 5:00 PM
To: CF-Talk
Subject: Re: Dynamic form creation


Hi Andy,

yeah we bought this up a few days ago with a survey... Which of course
is a form.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234617
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: How do I write a Regex for this?

2006-03-08 Thread Munson, Jacob
I think that's perfect.  You are following the principle of only
allowing a SPECIFIC set of characters.  It doesn't matter what other
crap your users might try (or hackers, for that matter), because you are
saying I will only allow this specific thing.  It's the same thing
that Unix/Linux does for security, and exactly what Windows generally
doesn't (although the more recent versions are better).  In Linux,
everything is turned off by default, and you have to manually allow the
small set of things you want.  However, in Windows everything is allowed
by default, and you have to disallow things you don't want.  I am
oversimplifying things, as Windows isn't as bad as I'm making it sound.
But you get the idea.

 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 08, 2006 8:27 AM
 To: CF-Talk
 Subject: RE: How do I write a Regex for this?
 
 Jacob...I realized my solution was posted in another
 thread, so I've included it below...  Rick
 
 --
 --
 ---
 
 What seems to have covered all the bases in
 my situation is to run two error traps:
 
 Not Len(Trim(Form.Amount))
 
   - Catches empty formfields
 
 Len(Trim(Form.Ammount)) and Not IsNumeric(REReplace(Form.Premium,
 [.$,],,All))
 
   - This code makes sure there is data in the field
   - Allows for $ , . to be entered, but stripped out.  
 This is important
 because many times for dollar amounts, those 
 characters are used
 and should not trigger an error for the user
   - Catches data entered into the field which is just a 
 garbage entry,
 such as oweinfe9, does not assign it a value as using 
 VAL would,
 but doesn't accept this garbage entry by stripping out all the
 non-numeric
 characters and turning the entry into $9.00, for example
   - It would catch the entry as incorrect, redisplay the 
 entry in the
 formfield
 for the user to inspect and allow changes
   - By using this line of code, I can also redisplay the entry in
 DollarFormat
 for the user, then have the $., stripped back out by 
 this line for
 processing
 
 Those two trapping statements seems to cover all the bases, 
 but it's hard to
 anticipate everything someone might throw in a formfield.

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. A1.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234618
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: OOP, why me?

2006-03-08 Thread S . Isaac Dealey
 ...I ended up sending a fairly detailed response which
 explained how to store id's and labels for the properties
 in one table
 and the values for properties in a 3rd so that the
 application would
 have only 3 tables and require no additional schema
 changes rather
 than continually adding columns or tables.

 So you described a 1-to-many bridge table.  :)  I know
 exactly what you
 mean.  In fact, what you described is what we have to
 fight with all the
 time, because some of the designers of the databases we
 use don't
 understand good relational DB practices.

Okay, I give, it's hopeless... :P

Once you get to a) someone else wrote it and they didn't know better
and b) I'm not allowed to change it, then you're screwed. :P



s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234620
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: XSL function list?

2006-03-08 Thread S . Isaac Dealey
Not I... I just put up with this this one. :P There's another one
somewhere that's done with frames and I think includes version numbers
but I never remember where it is and didn't bother to bookmark it... I
actually don't look up those functions very often.

 Yea, that's the one I've been using, and the same thing
 bugged me.
 Thought someone might have a secret link to one that I
 couldn't find
 via Google.

 S. Isaac Dealey wrote:
 Anyone have a good downloadable list of XSL functions
 they
 care to share?

 I use these two:

 http://www.w3schools.com/xsl/xsl_functions.asp
 http://www.w3schools.com/xpath/xpath_functions.asp

s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234619
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: How do I write a Regex for this?

2006-03-08 Thread Rick Faircloth
Aha...thanks Jacob...

 -Original Message-
 From: Munson, Jacob [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 10:33 AM
 To: CF-Talk
 Subject: RE: How do I write a Regex for this?
 
 
 Normally you do have to escape those characters in a regex, but in a
 character class they aren't special characters (but there are other
 special characters in character classes, like '^').  You've probably
 picked this up from the other posts, but a character class is anything
 in [].
 
  -Original Message-
  From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, March 08, 2006 8:24 AM
  To: CF-Talk
  Subject: RE: How do I write a Regex for this?
  
  Hmmm..I'm getting conflicting info from the list...
  
  One said to escape the characters... \.\$, (don't
  know why the comma wasn't escaped...perhaps
  it isn't special...(now it's sad because it's not special... ;o)
  
  Another said they don't need to be escaped...
  
  You're coming down on the escape side...
  
  would it be REReplace(string, [\.\$,], , All)
  or
  would it be REReplace(string, [\.\$\,], , All)
  
  ?
  
  Just for the record, I implemented it without the
  escapes yesterday and it seems to be performing correctly...
 
 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. A1.
 
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234621
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: How do I write a Regex for this?

2006-03-08 Thread Rick Faircloth
Thanks for your help!

 -Original Message-
 From: Munson, Jacob [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 10:34 AM
 To: CF-Talk
 Subject: RE: How do I write a Regex for this?
 
 
 That makes sense.  I just didn't want you to feel safe removing those
 characters, when other bad stuff could get through.  But it sounds like
 you are doing it correctly. 
 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234622
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: How do I write a Regex for this?

2006-03-08 Thread Rick Faircloth
Thanks for the feedback!

Rick

 -Original Message-
 From: Munson, Jacob [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 10:39 AM
 To: CF-Talk
 Subject: RE: How do I write a Regex for this?
 
 
 I think that's perfect.  You are following the principle of only
 allowing a SPECIFIC set of characters.  It doesn't matter what other
 crap your users might try (or hackers, for that matter), because you are
 saying I will only allow this specific thing.  It's the same thing
 that Unix/Linux does for security, and exactly what Windows generally
 doesn't (although the more recent versions are better).  In Linux,
 everything is turned off by default, and you have to manually allow the
 small set of things you want.  However, in Windows everything is allowed
 by default, and you have to disallow things you don't want.  I am
 oversimplifying things, as Windows isn't as bad as I'm making it sound.
 But you get the idea.



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


Tracking cgi.http_referer variables...

2006-03-08 Thread Rick Faircloth
I'm trying to track the number of hits
from a site that a client has an ad on.

I have his site stats in a db, but found
not hits from that particular http_referer,
although I know there should be.

I think I tracked the problem to the fact
that the ad opens a new browser window
and that eliminates the possiblity of
tracking the variable.

Is there a way around this and still
get the http_referer?

Rick


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234625
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: How do I write a Regex for this?

2006-03-08 Thread Ben Doom
In Regular Expressions, just like life, there are often about a 
bazillion ways to do something.  For example, in CF6+, you can identify 
digits with [0-9], [1234567890], or [[:digit:]].

In a character class (anything in []) there are odd rules about what 
needs to be escaped when.  For example, this: [[]] will correctly match 
square brackets.  However, to add a backslash, you can't just escape the 
backslash: [\\[]] -- you now need to escape all the special chars: [\\\[\]]

Weird, eh?

Anyway, the answer is that in your example, you don't really need t 
escape the special characters, but it doesn't hurt anything.

I'm sure tht didn't so muuch clarify things as explain why you're 
confused, but it's the best I could do on short notice.  :-)

--Ben

Rick Faircloth wrote:
 Hmmm..I'm getting conflicting info from the list...
 
 One said to escape the characters... \.\$, (don't
 know why the comma wasn't escaped...perhaps
 it isn't special...(now it's sad because it's not special... ;o)
 
 Another said they don't need to be escaped...
 
 You're coming down on the escape side...
 
 would it be REReplace(string, [\.\$,], , All)
 or
 would it be REReplace(string, [\.\$\,], , All)
 
 ?
 
 Just for the record, I implemented it without the
 escapes yesterday and it seems to be performing correctly...
 
 Rick


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234624
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: OOP, why me?

2006-03-08 Thread Munson, Jacob
 Okay, I give, it's hopeless... :P
 
 Once you get to a) someone else wrote it and they didn't know better
 and b) I'm not allowed to change it, then you're screwed. :P

So anyway, back to my original point, frameworks /can/ work fine with
complex data queries, but we've proven that in most cases complex data
queries shouldn't be necessary.  So my original concern was that
frameworks don't work very will with complex joins and such.  But you've
helped me understand that's not the case, so now I'm one step closer to
actually using a framework.  :)


--

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. A1.



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


dynamic ms-word files

2006-03-08 Thread Srinivasa Teja Palla
Like we have htmldoc, is there a way to dynamically generate word files with 
content supplied by coldfusion?


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


tek-tips issue

2006-03-08 Thread Srinivasa Teja Palla
I know it is improper to ask about some other forums, but I am helpless. I 
tried contacting the guys at tek-tips no use.

Here is what happens, I have been a member on tek-tips for a while, the account 
works fine. After a while (I guess they have a limit on number of posts or 
something) my account doesn't work anymore. I then try to create a new account, 
it works for a while too and then it locksup. 

Then on I create a new account, I login, it doesn't let me go anywhere. Does 
anyone else has the same problems? if you know can you point me to a right 
direction regrading this? I already sent loads of mails to every emailid I 
could find on tek-tips, no use.

Thanks

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234630
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: Tracking cgi.http_referer variables...

2006-03-08 Thread Srinivasa Teja Palla
Not sure if I read it properly, btu I think you can look at img tag.
In the src attribute you can actually put a url. like http://blah/file.php; 
in this php file you get the http referrer. in the add you somewhere put this 
img tag. in file.php, while doing whatever you want, you will put the src as a 
image of size say 1px by 1px. Did I remotely answer your question or am I 
rambling off the topic?

I'm trying to track the number of hits
from a site that a client has an ad on.

I have his site stats in a db, but found
not hits from that particular http_referer,
although I know there should be.

I think I tracked the problem to the fact
that the ad opens a new browser window
and that eliminates the possiblity of
tracking the variable.

Is there a way around this and still
get the http_referer?

Rick

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234631
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: JRun High Memory Usage on CFMX 7

2006-03-08 Thread Leon Oosterwijk
Ming Lu, 

I don't think there is an easy way to determine what application/site
those session belong to. There are some things you can do to get a
better idea of the memory load of a particular session. Here's a code
snippet of something we've done on different sites to determine how much
a certain page request increases our memory footprint. Make sure you
don't use this on a production server, since the force garbage
collection really slows down your application. 

cfset runtime = CreateObject(java,java.lang.Runtime).getRuntime()
cfset freeMemory = runtime.freeMemory() / 1024 / 1024
cfset totalMemory = runtime.totalMemory() / 1024 / 1024
cfset maxMemory = runtime.maxMemory() / 1024 / 1024
cfoutput
Free Allocated Memory: #Round(freeMemory)#mbbr
Total Memory Allocated: #Round(totalMemory)#mbbr
Max Memory Available to JVM: #Round(maxMemory)#mbbr
Memory In Use: #Round(totalMemory-freeMemory)#mbbr
/cfoutput

NOW DO PAGE PROCESSING.

cfset runtime.gc() / !--- now do garbage collection. To make sure
numbers are accurate ---
cfset freeMemory = runtime.freeMemory() / 1024 / 1024
cfset totalMemory = runtime.totalMemory() / 1024 / 1024
cfset maxMemory = runtime.maxMemory() / 1024 / 1024

cfoutput
Free Allocated Memory: #Round(freeMemory)#mbbr
Total Memory Allocated: #Round(totalMemory)#mbbr
Max Memory Available to JVM: #Round(maxMemory)#mbbr
Memory In Use: #Round(totalMemory-freeMemory)#mbbr
/cfoutput

Leon

-Original Message-
From: Ming Lu [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 07, 2006 1:54 PM
To: CF-Talk
Subject: Re: JRun High Memory Usage on CFMX 7

Hi Leon,

Thank you so much for your input.

[1]. I checked our Windows Server 2003 for Available Bytes counter,
Handle Count, Pool Nonpaged Bytes, Pool Paged Bytes, and Private Bytes
counters. None of these has a consistently increasing curve, so it does
not look like it has memory leak.

[2]. For The jvm.config file in the bin directory in JRun, the -Xmx
setting has been setup at -Xmx512m, but the problem is still there.

[3]. According to our programmer, we have already used the application
variables where we could. Do you know if there is a way to find out
which site(s) those opened sessions belong to and are from which page? 

Thank you very much for your help!


Ming Lu



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

2006-03-08 Thread Bobby Hartsfield
Do it or else! ;-)

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

 

 

-Original Message-
From: Spike [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 07, 2006 11:07 PM
To: CF-Talk
Subject: Re: cfm captchas

Send me a nice friendly please, please, please email and I might get
round to implementing the idea I've had in my head for the last year
or so ;-)

I think it would take about 30 people asking for it to get enough
motivation for lift-off.

Spike

On 3/7/06, dave [EMAIL PROTECTED] wrote:
 what are our options for cfm captchas besides alagad

 ~Dave the disruptor~



 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234633
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: How do I write a Regex for this?

2006-03-08 Thread Rick Faircloth
Makes good sense to me...(that's frightening..)

Rick


 -Original Message-
 From: Ben Doom [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 10:48 AM
 To: CF-Talk
 Subject: Re: How do I write a Regex for this?
 
 
 In Regular Expressions, just like life, there are often about a 
 bazillion ways to do something.  For example, in CF6+, you can identify 
 digits with [0-9], [1234567890], or [[:digit:]].
 
 In a character class (anything in []) there are odd rules about what 
 needs to be escaped when.  For example, this: [[]] will correctly match 
 square brackets.  However, to add a backslash, you can't just escape the 
 backslash: [\\[]] -- you now need to escape all the special 
 chars: [\\\[\]]
 
 Weird, eh?
 
 Anyway, the answer is that in your example, you don't really need t 
 escape the special characters, but it doesn't hurt anything.
 
 I'm sure tht didn't so muuch clarify things as explain why you're 
 confused, but it's the best I could do on short notice.  :-)
 
 --Ben
 
 Rick Faircloth wrote:
  Hmmm..I'm getting conflicting info from the list...
  
  One said to escape the characters... \.\$, (don't
  know why the comma wasn't escaped...perhaps
  it isn't special...(now it's sad because it's not special... ;o)
  
  Another said they don't need to be escaped...
  
  You're coming down on the escape side...
  
  would it be REReplace(string, [\.\$,], , All)
  or
  would it be REReplace(string, [\.\$\,], , All)
  
  ?
  
  Just for the record, I implemented it without the
  escapes yesterday and it seems to be performing correctly...
  
  Rick
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234634
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: Tracking cgi.http_referer variables...

2006-03-08 Thread Rick Faircloth
I think I understand what you're saying, but I also think
you misunderstand my situation (which I didn't make clear)...

I didn't create this site for the client...he's got an ad on a
third party site and I was trying to track clicks from it.  But
they're got the link set up to open a new browser window
when his ad image is clicked.  I can't place code in the URL, either...

Rick

 -Original Message-
 From: Srinivasa Teja Palla [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 10:02 AM
 To: CF-Talk
 Subject: Re: Tracking cgi.http_referer variables...
 
 
 Not sure if I read it properly, btu I think you can look at img tag.
 In the src attribute you can actually put a url. like 
 http://blah/file.php; 
 in this php file you get the http referrer. in the add you 
 somewhere put this img tag. in file.php, while doing whatever you 
 want, you will put the src as a image of size say 1px by 1px. Did 
 I remotely answer your question or am I rambling off the topic?
 
 I'm trying to track the number of hits
 from a site that a client has an ad on.
 
 I have his site stats in a db, but found
 not hits from that particular http_referer,
 although I know there should be.
 
 I think I tracked the problem to the fact
 that the ad opens a new browser window
 and that eliminates the possiblity of
 tracking the variable.
 
 Is there a way around this and still
 get the http_referer?
 
 Rick
 
 

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


Building a string

2006-03-08 Thread Cutter (CF-Talk)
OK, I've got one that has me stumped.
I am in the process of building a text string to be passed into a plain 
text email, which will later be parsed according to it's line breaks. 
Not building within the cfmail tags (because that's a nightmare in it's 
own right) but within a variable:

cfset msgBody = Here's the start.#chr(13)##chr(10)#
cfset msgBody = msgBody  A little more here.#chr(13)##chr(10)#
cfloop list=#form.fieldnames# index=x
 cfif not listfindnocase(listexclude,x)
 cfset msgBody = msgBody  replace(x,_, ,all)  : 
 cfif form[x] neq 
 cfset msgBody = msgBody  form[x]
 cfelse
 cfset msgBody = msgBody  (not required and empty)
 /cfif
 cfset msgBody = msgBody  #chr(13)##chr(10)#
  /cfif
/cfloop

My problem is, sometimes I don't get line breaks. There does not appear 
to be any rhyme nor reason, it just happens. I'm still getting my 
fieldnames and values (or lack of) for all fields, just, on occasion, 
without warning or reason, I lose my linebreaks. Not always. 18 fields 
and it might lose it for two or three, but they justdon't appear.

Anyone?

Cutter

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234639
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: Site-wide redirect?

2006-03-08 Thread Russ
If you're using apache, look into the Rewrite module, you can just rewrite
all the old pages to go to the new ones.  For example:

RewriteCond %{REQUEST_URI} ^/oldpage.html$   [NC]
RewriteRule ^/.*$   /index.cfm?page=oldpage [R=301]

You can also use regular expressions and rewrite your url's in a more
generic way, but it will probably be easier to do 10 of these if you only
have 10 pages. 

Russ
 -Original Message-
 From: srinivas ganta [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 6:07 AM
 To: CF-Talk
 Subject: Re: Site-wide redirect?
 
 Hi Andy
 
 You can add  error tag in the Application cfm ,and include the code that
 if
 error is missing template ,you can redirect the page to index.cfm
 
 Srinivas
 
 
 On 3/7/06, Andy Matthews [EMAIL PROTECTED] wrote:
 
  I recently redesigned my personal website, moving from 10 or so
 individual
  files, to a single main template. Those files have been deleted as I
 don't
  like clutter in my directories.
 
  Problem is that now, search engines are still looking for those files.
 I'm
  wondering if it's somehow possible, using CF, to code a sitewide
 redirect
  back to index.cfm from any missing page.
 
  Anyone?
 
  !//--
  andy matthews
  web developer
  ICGLink, Inc.
  [EMAIL PROTECTED]
  615.370.1530 x737
  --//-
 
 
 
 
 

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

2006-03-08 Thread Yves Arsenault
Nice,

Thanks, I'll check that out.

I had considered try to use the application scope as well... I'm interested
in lookin at this.

;-)

Yves

On 3/8/06, DRE [EMAIL PROTECTED] wrote:

 Yves,
 I've built a cfc feed reader that stores a recordset of a feed in
 application scope and updates it every x hours.  Its a lot like the php
 open
 source carp software.  Check it out. Maybe it can help you.

 http://webmachineinc.com/rss/countme.cfm

 Let me know if its useful for you.
 DRE

 On 3/8/06, S. Isaac Dealey [EMAIL PROTECTED] wrote:
 
  Should I run a script every few minutes to check the feeds
  for new entries?
 
   Yves: Only if you want to be hunted down by a bunch of
   irritated server admins for abusing their bandwidth. :)
 
   In general, you don't want to poll a given feed more than
   once an hour. If you must poll more frequently, you should
   HEAD each feed before doing a full GET... that way you can
   check the headers to see if anything has changed before
   requesting a feed full of redundant items.
 
  Hey Roger,
 
  Is there a standard method for providing head information for RSS
  feeds? I built some RSS syndication into the Blogs onTap plugin and
  wouldn't mind tweaking it to be more useful to people when I've got
  some time. I'm also wondering if there's a standard cut-off point for
  a full feed, like a certain number of records or period of time? Right
  now I think the main feed (if you're not looking at the feed for a
  specific category or a specific article) never stops... which I
  suppose could be considered a good thing, but I would imagine that
  over time if you posted regularly eventually the feed would become
  problematically large (on my end if not on the receiving end, since
  the feed itself is built with CF).
 
  I've also considered the possibility of writing the rss feeds to
  static files, but haven't gone that route as of yet -- I like the idea
  of writing to static files for a CMS (to avoid the problem of
  gratuitous runtime page assembly - GRUPA) but with the blog I'm
  hesitant to add more files because of course each new file means
  another something that the system may need to update or delete later
  and I guess because I perceive this as being more of an issue with a
  blog, probably because I perceive blogs as being more transient (don't
  ask me why).
 
 
  s. isaac dealey 434.293.6201
  new epoch : isn't it time for a change?
 
  add features without fixtures with
  the onTap open source framework
 
  http://www.fusiontap.com
  http://coldfusion.sys-con.com/author/4806Dealey.htm
 
 
 

 

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

2006-03-08 Thread Dave Watts
 Is there a standard method for providing head information for 
 RSS feeds?

I think Roger's just referring to the ability to say whether a file's been
changed using the appropriate HTTP response header. (304 is not modified,
I think)

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

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

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234642
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: anyone used cfx_zip??

2006-03-08 Thread Srinivasa Teja Palla
I did a zip ? at the command line, it says it is not a recognized command. 
I have windows xp pro on my comp.


Incidentally every version of windows from 2000 on (not sure about
before) has a command-line zip utility built in... So as long as your
server is Win2K or later you don't have to download anything. I have
batch files on my machine that package up my projects from subversion
using the built-in zip util in Win2K and then upload them to my public
server using the built-in ftp util in Win2K. Just FYI. :)

So -- if you're interested in the built in zip tool, just type zip ?
into a command prompt.


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm

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

2006-03-08 Thread Yves Arsenault
Thanks for the post and tips Kevin.

I'm checkin out the blog.

Yves


On 3/8/06, Kevin Graeme [EMAIL PROTECTED] wrote:

 Feed Aggregation is becoming an entire business niche.

 - The most popular open source aggregator is Planet:Planet. But it's
 Python.


 - There are a number of plugins for the various popular blog engines for
 the
 smaller scale needs. But nothing CF there.

 - Then there's the big business aggregators like NewsGator that offer both
 online aggregators or Enterprise installs and Private Label customized
 options. Their enterprise version is .NET but appears to have an API and
 webservices for integrating into intranet portals and such.

 Not much to get you started in CF, unfortunately. As for implementations
 for
 keeping the feeds current, I've seen three approaches:

 1. Scheduled polling like you mentioned. This is the easiest to do, but
 obviously it's a brute force approach that puts the most strain on all the
 resources involved.

 2. User triggered retrieve and cache. When someone actually looks at the
 aggregator information for a particular content area, do a lookup at that
 point and then cache that for a period of time so that it's not updating
 for
 each user hit. This is similar to how many desktop aggregator tools work.

 3. Webservice triggers in the blogs you poll. For instance, in the
 WordPress
 software there's a screen in the admin to add any webservices you want to
 notify of updates to the blog. This is the most elegant technically, but
 obviously only works with feeds that can notify a webservice of updates.

 And of course, there's the mix and blend of all the above. For instance,
 using method 2's user triggers to make sure that blogs being aggregated
 are
 actually of use to the viewer and then adding it to method 1's scheduled
 polling queue for a period of time.

 Here's a blog covering the Aggregation industry.
 http://www.niallkennedy.com/blog/archives/software/feed_aggregators/

 Have fun!

 ---
 Kevin Graeme
 Cooperative Extension Technology Services
 University of Wisconsin-Extension


  -Original Message-
  From: Yves Arsenault [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 07, 2006 7:08 PM
  To: CF-Talk
  Subject: RSS site like fullasagoog.com
 
  Hey there,
 
  I'm considering attempting to build a similar site to fullasagoog.com.
 
  Basically, pull in feeds from many different blogs and sort
  them (DESC).
 
  I'm wondering if anyone has built something similar and would
  maybe have
  some suggestions on what to look out for.
 
  Also, I guess I'm not sure what the best approach would be.
 
  Pulling the feeds and storing into a database, then display and sort.
  Should I run a script every few minutes to check the feeds
  for new entries?
  And when the page is loaded, I would use some query caching
  so as not to .
 
  Having never done a whole lot with rss feeds other than
  simply displaying
  their contents... just trying to find the most efficiant way
  to go about.
 
  Thanks,
 
  --
  Yves Arsenault
 
  Love is the only force capable of transforming an enemy into
  a friend.
  --Martin Luther King, Jr.
 
 
 

 

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


Arrays within the Application Scope disappearing

2006-03-08 Thread applemicro
I have inherited this application that stores all the navigation information
for the web site in a structure within the application scope. The structure
contains a series of arrays one array for the top navigation,one for the
side navigation and yet another for the footer information. The problem I'm
having is every now and then one of the arrays within the structure
disappears so the site throws an error. I know I could just put a band-aid
on the problem but I want to try figure out why the array is disappearing.
The application scope is set to expire every 2 days.

Cfmx 6.1
Windows 2003
IIS 6.0

Thanks


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

2006-03-08 Thread Yves Arsenault
Thanks for the post and tips Kevin.

I'm checkin out the blog.

Yves

On 3/8/06, Kevin Graeme [EMAIL PROTECTED] wrote:

 Feed Aggregation is becoming an entire business niche.

 - The most popular open source aggregator is Planet:Planet. But it's
 Python.


 - There are a number of plugins for the various popular blog engines for
 the
 smaller scale needs. But nothing CF there.

 - Then there's the big business aggregators like NewsGator that offer both
 online aggregators or Enterprise installs and Private Label customized
 options. Their enterprise version is .NET but appears to have an API and
 webservices for integrating into intranet portals and such.

 Not much to get you started in CF, unfortunately. As for implementations
 for
 keeping the feeds current, I've seen three approaches:

 1. Scheduled polling like you mentioned. This is the easiest to do, but
 obviously it's a brute force approach that puts the most strain on all the
 resources involved.

 2. User triggered retrieve and cache. When someone actually looks at the
 aggregator information for a particular content area, do a lookup at that
 point and then cache that for a period of time so that it's not updating
 for
 each user hit. This is similar to how many desktop aggregator tools work.

 3. Webservice triggers in the blogs you poll. For instance, in the
 WordPress
 software there's a screen in the admin to add any webservices you want to
 notify of updates to the blog. This is the most elegant technically, but
 obviously only works with feeds that can notify a webservice of updates.

 And of course, there's the mix and blend of all the above. For instance,
 using method 2's user triggers to make sure that blogs being aggregated
 are
 actually of use to the viewer and then adding it to method 1's scheduled
 polling queue for a period of time.

 Here's a blog covering the Aggregation industry.
 http://www.niallkennedy.com/blog/archives/software/feed_aggregators/

 Have fun!

 ---
 Kevin Graeme
 Cooperative Extension Technology Services
 University of Wisconsin-Extension


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234645
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: CFEclipse - Lost my snipTree?

2006-03-08 Thread Trevor Orr
I am having the same problem, I downloaded the nightly version, and
unzipped it into my plugin directory and no changes after restarting
eclipse, is there something I need to do to tell eclipse to use the
newly installed version?



-Original Message-
From: Nathan Strutz [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 7:55 AM
To: CF-Talk
Subject: Re: CFEclipse - Lost my snipTree?

1.18 is both older and not as stable as 1.20, so you did good by picking
the highest version number. You have the stable build. I don't know
what actually classifies it as stable, but I can tell you what doesn't
:)  The real, actual bleeding edge is now the nightly build, which you
can download
here:

http://www.cfeclipse.org/nightly/cfeclipse_nightly.zip

It's literally compiled and published nightly. download it, unzip it and
move it into your eclipse\plugins folder, then restart eclipse. I update
my installed plugin to the nightly every week or so and have no problems
with it (plus you can try out mark's new component explorer!).

-nathan strutz
http://www.dopefly.com/



On 3/7/06, Sandra Clark [EMAIL PROTECTED] wrote:

 I'm using the last stable build.  It looks newer 1.2 than the bleeding

 edge build (1.18).  If there is a newer build I can get, I'll try 
 that,

 Sandy





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234647
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: CFEclipse - Lost my snipTree?

2006-03-08 Thread Mark Drew
I think this is an error and I have manged to replicate it on some
machines. I am (not this minute!) trying to find the root cause and
fix this.

MD

On 3/8/06, Trevor Orr [EMAIL PROTECTED] wrote:
 I am having the same problem, I downloaded the nightly version, and
 unzipped it into my plugin directory and no changes after restarting
 eclipse, is there something I need to do to tell eclipse to use the
 newly installed version?



 -Original Message-
 From: Nathan Strutz [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 7:55 AM
 To: CF-Talk
 Subject: Re: CFEclipse - Lost my snipTree?

 1.18 is both older and not as stable as 1.20, so you did good by picking
 the highest version number. You have the stable build. I don't know
 what actually classifies it as stable, but I can tell you what doesn't
 :)  The real, actual bleeding edge is now the nightly build, which you
 can download
 here:

 http://www.cfeclipse.org/nightly/cfeclipse_nightly.zip

 It's literally compiled and published nightly. download it, unzip it and
 move it into your eclipse\plugins folder, then restart eclipse. I update
 my installed plugin to the nightly every week or so and have no problems
 with it (plus you can try out mark's new component explorer!).

 -nathan strutz
 http://www.dopefly.com/



 On 3/7/06, Sandra Clark [EMAIL PROTECTED] wrote:
 
  I'm using the last stable build.  It looks newer 1.2 than the bleeding

  edge build (1.18).  If there is a newer build I can get, I'll try
  that,
 
  Sandy
 




 

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


RE: CFEclipse - Lost my snipTree?

2006-03-08 Thread Sandra Clark
I got rid of the 1.2 plugin in the plugins directory then installed the
nightly build.  To get the component explorer, you have to tell it to show
View/Other and select if from the CFEclipse node 

-Original Message-
From: Trevor Orr [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 12:03 PM
To: CF-Talk
Subject: RE: CFEclipse - Lost my snipTree?

I am having the same problem, I downloaded the nightly version, and unzipped
it into my plugin directory and no changes after restarting eclipse, is
there something I need to do to tell eclipse to use the newly installed
version?



-Original Message-
From: Nathan Strutz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 7:55 AM
To: CF-Talk
Subject: Re: CFEclipse - Lost my snipTree?

1.18 is both older and not as stable as 1.20, so you did good by picking the
highest version number. You have the stable build. I don't know what
actually classifies it as stable, but I can tell you what doesn't
:)  The real, actual bleeding edge is now the nightly build, which you can
download
here:

http://www.cfeclipse.org/nightly/cfeclipse_nightly.zip

It's literally compiled and published nightly. download it, unzip it and
move it into your eclipse\plugins folder, then restart eclipse. I update my
installed plugin to the nightly every week or so and have no problems with
it (plus you can try out mark's new component explorer!).

-nathan strutz
http://www.dopefly.com/



On 3/7/06, Sandra Clark [EMAIL PROTECTED] wrote:

 I'm using the last stable build.  It looks newer 1.2 than the bleeding

 edge build (1.18).  If there is a newer build I can get, I'll try 
 that,

 Sandy







~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234649
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: Faulting application jrun.exe

2006-03-08 Thread Jim Priest
 Subject: Faulting application jrun.exe

 Below is an error I sometimes see that brings down CFMX. I thought I
 would see if anyone has experience with this problem. One suggestion I
 have read is to upgrade the JVM that CF is using to 1.4.2_05. The
 server is running Windows 2003sp1, CFMX 6.1, JVM 1.4.2_b28.
 
 faulting application jrun.exe, version 4.0.3.10455, faulting module
 jvm.dll, version 0.0.0.0, fault address 0x0003cfd4.

Don't have any advice though I'd be interested to see how it works if 
you upgrade. I've got a new install of CFMX 6.1 (same JVM) on Win2003sp1 
as well  and am having crashing issues that seem related to JVM...

Yesterday I got:

JAR launcher encountered a problem and needed to close

Which I had never seen before... I've got a load of JVM tuning bookmarks 
  saved - the odd thing is the server always crashes in the middle of 
the night under no load.

Jim



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234650
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: OOP, why me?

2006-03-08 Thread S . Isaac Dealey
 Okay, I give, it's hopeless... :P

 Once you get to a) someone else wrote it and they didn't
 know better
 and b) I'm not allowed to change it, then you're screwed.
 :P

 So anyway, back to my original point, frameworks /can/
 work fine with
 complex data queries, but we've proven that in most cases
 complex data
 queries shouldn't be necessary.  So my original concern
 was that
 frameworks don't work very will with complex joins and
 such.  But you've
 helped me understand that's not the case, so now I'm one
 step closer to
 actually using a framework.  :)


My work here is done.

don Bat suit

leave through window


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


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

2006-03-08 Thread S . Isaac Dealey
 Is there a standard method for providing head information
 for RSS feeds?

 I think Roger's just referring to the ability to say
 whether a file's been
 changed using the appropriate HTTP response header. (304
 is not modified,
 I think)

Hmmm... okay... I'm having a tough time seeing how that would work...
I could certainly add a cfheader tag to the template to produce the
304 response, but not modified is useless without a reference point
(and then once you have a reference point it's moot). Maybe I should
go google search for another header that indicates when the file was
last modified...

Thanks for the tip tho,


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


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


Re: CFEclipse - Lost my snipTree?

2006-03-08 Thread Barney Boisvert
You shouldn't need to get rid of the 1.2 directory.  Eclipse will
automatically use the largest version number if you have multiple
versions of the same plugin installed.  That way upgrading is as
simple as dropping in the new plugin(s), and if you need to downgrade,
you just delete the newest version, and any older version will
automatically become active again.

cheers,
barneyb

On 3/8/06, Sandra Clark [EMAIL PROTECTED] wrote:
 I got rid of the 1.2 plugin in the plugins directory then installed the
 nightly build.  To get the component explorer, you have to tell it to show
 View/Other and select if from the CFEclipse node


--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

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

2006-03-08 Thread Dave Watts
 Hmmm... okay... I'm having a tough time seeing how that would work...
 I could certainly add a cfheader tag to the template to produce the
 304 response, but not modified is useless without a 
 reference point (and then once you have a reference point 
 it's moot). Maybe I should go google search for another 
 header that indicates when the file was last modified...

If I recall correctly, in the HEAD request you'd send an if modified since
header to see if the file has been modified. The 304 response would tell you
that it hadn't.

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

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


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


RE: CFEclipse - Lost my snipTree?

2006-03-08 Thread Trevor Orr
Did getting rid of 1.2 get you back your snippets?

 

-Original Message-
From: Sandra Clark [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 9:13 AM
To: CF-Talk
Subject: RE: CFEclipse - Lost my snipTree?

I got rid of the 1.2 plugin in the plugins directory then installed the
nightly build.  To get the component explorer, you have to tell it to
show View/Other and select if from the CFEclipse node 

-Original Message-
From: Trevor Orr [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 12:03 PM
To: CF-Talk
Subject: RE: CFEclipse - Lost my snipTree?

I am having the same problem, I downloaded the nightly version, and
unzipped it into my plugin directory and no changes after restarting
eclipse, is there something I need to do to tell eclipse to use the
newly installed version?



-Original Message-
From: Nathan Strutz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 7:55 AM
To: CF-Talk
Subject: Re: CFEclipse - Lost my snipTree?

1.18 is both older and not as stable as 1.20, so you did good by picking
the highest version number. You have the stable build. I don't know
what actually classifies it as stable, but I can tell you what doesn't
:)  The real, actual bleeding edge is now the nightly build, which you
can download
here:

http://www.cfeclipse.org/nightly/cfeclipse_nightly.zip

It's literally compiled and published nightly. download it, unzip it and
move it into your eclipse\plugins folder, then restart eclipse. I update
my installed plugin to the nightly every week or so and have no problems
with it (plus you can try out mark's new component explorer!).

-nathan strutz
http://www.dopefly.com/



On 3/7/06, Sandra Clark [EMAIL PROTECTED] wrote:

 I'm using the last stable build.  It looks newer 1.2 than the bleeding

 edge build (1.18).  If there is a newer build I can get, I'll try 
 that,

 Sandy









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


removing whitespace from within CFC output

2006-03-08 Thread Andy Matthews
GASP!?!?

He's outputting from a CFC? Yes Martha, I am. I'm taking the time to learn
CFCs and have decided that this an efficient way to solve a specific problem
I have.

So my question is that when I'm outputting this information, there's a lot
of whitespace (up to 10 or 15 lines in some cases) due to the logic code
prior to the outputted HTML code.

Is there any way to get rid of that space? I've tried putting
cfsetting enableCFoutputOnly=yes
just inside the CFC and
cfsetting enableCFoutputOnly=no
just before the output begins but it causes an error.

Anyone have an idea?

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


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

2006-03-08 Thread Josh Nathanson
Hey Cutter, not sure if this will help but it's worth a try:

cfset linebreak = #chr(13)#  #chr(10)#

Then replace where you have #chr(13)##chr(10)# with #linebreak#.  Not sure 
if that will work but it might help with the consistency issue.

-- Josh


- Original Message - 
From: Cutter (CF-Talk) [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Wednesday, March 08, 2006 8:36 AM
Subject: Building a string


 OK, I've got one that has me stumped.
 I am in the process of building a text string to be passed into a plain
 text email, which will later be parsed according to it's line breaks.
 Not building within the cfmail tags (because that's a nightmare in it's
 own right) but within a variable:

 cfset msgBody = Here's the start.#chr(13)##chr(10)#
 cfset msgBody = msgBody  A little more here.#chr(13)##chr(10)#
 cfloop list=#form.fieldnames# index=x
 cfif not listfindnocase(listexclude,x)
 cfset msgBody = msgBody  replace(x,_, ,all)  : 
 cfif form[x] neq 
 cfset msgBody = msgBody  form[x]
 cfelse
 cfset msgBody = msgBody  (not required and empty)
 /cfif
 cfset msgBody = msgBody  #chr(13)##chr(10)#
  /cfif
 /cfloop

 My problem is, sometimes I don't get line breaks. There does not appear
 to be any rhyme nor reason, it just happens. I'm still getting my
 fieldnames and values (or lack of) for all fields, just, on occasion,
 without warning or reason, I lose my linebreaks. Not always. 18 fields
 and it might lose it for two or three, but they justdon't appear.

 Anyone?

 Cutter

 

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

2006-03-08 Thread Andy Matthews
Are the Char(13) and Char(10) in the right order? Try switching them to 10
and 13 respectively.

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

-Original Message-
From: Cutter (CF-Talk) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 10:36 AM
To: CF-Talk
Subject: Building a string


OK, I've got one that has me stumped.
I am in the process of building a text string to be passed into a plain
text email, which will later be parsed according to it's line breaks.
Not building within the cfmail tags (because that's a nightmare in it's
own right) but within a variable:

cfset msgBody = Here's the start.#chr(13)##chr(10)#
cfset msgBody = msgBody  A little more here.#chr(13)##chr(10)#
cfloop list=#form.fieldnames# index=x
 cfif not listfindnocase(listexclude,x)
 cfset msgBody = msgBody  replace(x,_, ,all)  : 
 cfif form[x] neq 
 cfset msgBody = msgBody  form[x]
 cfelse
 cfset msgBody = msgBody  (not required and empty)
 /cfif
 cfset msgBody = msgBody  #chr(13)##chr(10)#
  /cfif
/cfloop

My problem is, sometimes I don't get line breaks. There does not appear
to be any rhyme nor reason, it just happens. I'm still getting my
fieldnames and values (or lack of) for all fields, just, on occasion,
without warning or reason, I lose my linebreaks. Not always. 18 fields
and it might lose it for two or three, but they justdon't appear.

Anyone?

Cutter



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234658
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: Tracking cgi.http_referer variables...

2006-03-08 Thread Snake
Not all clients will NOT send http_refer, it is blocked by a lot of problems
such as anti=spyware, anti-virus, browser plugins, firewalls etc .

Russ

-Original Message-
From: Rick Faircloth [mailto:[EMAIL PROTECTED] 
Sent: 08 March 2006 15:48
To: CF-Talk
Subject: Tracking cgi.http_referer variables...

I'm trying to track the number of hits
from a site that a client has an ad on.

I have his site stats in a db, but found not hits from that particular
http_referer, although I know there should be.

I think I tracked the problem to the fact that the ad opens a new browser
window and that eliminates the possiblity of tracking the variable.

Is there a way around this and still
get the http_referer?

Rick




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234659
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: removing whitespace from within CFC output

2006-03-08 Thread Ian Skinner
cfsilent/cfsilent Tags around any lines of logic that do not need to be 
output.

Just be warned that cfsilent is very efficient.  It will also silence any 
errors that might be thrown by any line inside them.  So make sure you code is 
rock solid, or provide other means of capturing and reporting errors.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234660
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: removing whitespace from within CFC output

2006-03-08 Thread Michael Dinowitz
CFSILENT - Suppresses output produced by CFML within a tag's scope.

 GASP!?!?

 He's outputting from a CFC? Yes Martha, I am. I'm taking the time to learn
 CFCs and have decided that this an efficient way to solve a specific 
 problem
 I have.

 So my question is that when I'm outputting this information, there's a lot
 of whitespace (up to 10 or 15 lines in some cases) due to the logic code
 prior to the outputted HTML code.

 Is there any way to get rid of that space? I've tried putting
 cfsetting enableCFoutputOnly=yes
 just inside the CFC and
 cfsetting enableCFoutputOnly=no
 just before the output begins but it causes an error.

 Anyone have an idea?

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


 

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

2006-03-08 Thread Ian Skinner
cfset msgBody = Here's the start.#chr(13)##chr(10)#
cfset msgBody = msgBody  A little more here.#chr(13)##chr(10)# cfloop 
list=#form.fieldnames# index=x
 cfif not listfindnocase(listexclude,x)
 cfset msgBody = msgBody  replace(x,_, ,all)  : 
 cfif form[x] neq 
 cfset msgBody = msgBody  form[x]
 cfelse
 cfset msgBody = msgBody  (not required and empty)
 /cfif
 cfset msgBody = msgBody  #chr(13)##chr(10)#
  /cfif
/cfloop

I doubt this would matter much, but is a bit more readable IMHO.

cfset msgBody = Here's the start.  chr(13)  chr(10)
cfset msgBody = msgBody  A little more here.  chr(13)  chr(10)
 cfloop list=#form.fieldnames# index=x
 cfif not listfindnocase(listexclude,x)
 cfset msgBody = msgBody  replace(x,_, ,all)  : 
 cfif form[x] neq 
 cfset msgBody = msgBody  form[x]
 cfelse
 cfset msgBody = msgBody  (not required and empty)
 /cfif
 cfset msgBody = msgBody  chr(13)  chr(10)
  /cfif
/cfloop

I can see any reason that would cause the LFCR to occur.  Are you absolutely 
sure that the last cfset runs every time it is supposed to?

--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234662
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: CFEclipse - Lost my snipTree?

2006-03-08 Thread Sandra Clark
I got my snippets back yes.  I don't know what did it, but these are the
steps I used

Used the nightly build.  Went into my project directory and made sure the
snippets were set to the correct directory.  Closed the Snip Tree View and
then re-opened it.  Voila, Snippets are back (thank goodness, I use them
extensively) 

-Original Message-
From: Trevor Orr [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 12:26 PM
To: CF-Talk
Subject: RE: CFEclipse - Lost my snipTree?

Did getting rid of 1.2 get you back your snippets?

 

-Original Message-
From: Sandra Clark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 9:13 AM
To: CF-Talk
Subject: RE: CFEclipse - Lost my snipTree?

I got rid of the 1.2 plugin in the plugins directory then installed the
nightly build.  To get the component explorer, you have to tell it to show
View/Other and select if from the CFEclipse node 

-Original Message-
From: Trevor Orr [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 12:03 PM
To: CF-Talk
Subject: RE: CFEclipse - Lost my snipTree?

I am having the same problem, I downloaded the nightly version, and unzipped
it into my plugin directory and no changes after restarting eclipse, is
there something I need to do to tell eclipse to use the newly installed
version?



-Original Message-
From: Nathan Strutz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 7:55 AM
To: CF-Talk
Subject: Re: CFEclipse - Lost my snipTree?

1.18 is both older and not as stable as 1.20, so you did good by picking the
highest version number. You have the stable build. I don't know what
actually classifies it as stable, but I can tell you what doesn't
:)  The real, actual bleeding edge is now the nightly build, which you can
download
here:

http://www.cfeclipse.org/nightly/cfeclipse_nightly.zip

It's literally compiled and published nightly. download it, unzip it and
move it into your eclipse\plugins folder, then restart eclipse. I update my
installed plugin to the nightly every week or so and have no problems with
it (plus you can try out mark's new component explorer!).

-nathan strutz
http://www.dopefly.com/



On 3/7/06, Sandra Clark [EMAIL PROTECTED] wrote:

 I'm using the last stable build.  It looks newer 1.2 than the bleeding

 edge build (1.18).  If there is a newer build I can get, I'll try 
 that,

 Sandy











~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234663
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: How do I write a Regex for this?

2006-03-08 Thread Claude Schneegans
 I've always been under the
impression that to match a meta-character, you have to escape it.

In general, yes. But under some circumstances, like in a range of 
characters,
some special characters are not special anymore, so they don't need to 
ne escaped.

However, escaping them anyway will work as well.
There are so many things to remenber about Regex, that the rule always 
escape special chars
is simpler to remember.

-- 
___
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:234664
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: Tracking cgi.http_referer variables...

2006-03-08 Thread Casey Dougall
You must have some control over the URL...

You can make a subdomain for each campaign. with a re-direct to the
campaign content.

domain.com/news9

domain.com/CRM_EM_DOMAIN2_COM


On 3/8/06, Snake [EMAIL PROTECTED] wrote:
 Not all clients will NOT send http_refer, it is blocked by a lot of problems
 such as anti=spyware, anti-virus, browser plugins, firewalls etc .

 Russ

 -Original Message-
 From: Rick Faircloth [mailto:[EMAIL PROTECTED]
 Sent: 08 March 2006 15:48
 To: CF-Talk
 Subject: Tracking cgi.http_referer variables...

 I'm trying to track the number of hits
 from a site that a client has an ad on.

 I have his site stats in a db, but found not hits from that particular
 http_referer, although I know there should be.

 I think I tracked the problem to the fact that the ad opens a new browser
 window and that eliminates the possiblity of tracking the variable.

 Is there a way around this and still
 get the http_referer?

 Rick




 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234665
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 MX 7 and DB2 connection timeout

2006-03-08 Thread Botts, Tom
If you want to try a jdbc driver, we use the jtopen driver.  We have
used it for several years.  Download the jtopen.zip file, put the
jt400.jar file with the rest of your drivers - jrun/servers/lib I think.
You can dload it here https://sourceforge.net/projects/jt400 

-Original Message-
From: Smith, Daron [PA] [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 03, 2006 9:46 AM
To: CF-Talk
Subject: CF MX 7 and DB2 connection timeout

We recently moved our web site to a CF MX7 box.  Ever since we
occasionally get the following error Error Executing Database
Query.[Macromedia][SequeLink JDBC Driver][ODBC Socket][IBM][iSeries
Access ODBC Driver]Communication link failure. comm rc=10054 - CWBCO1047
- The iSeries server application disconnected the connection  
In the log files this is always preceded by the following error message
Error,jrpp-1375,03/02/06,19:01:00,PSEA,Error Executing
Database Query.Timed out trying to establish connection  This message
happens 1-4 times and then the ODBC driver is unavailable until I
restart the CF ODBC Server.
Has anyone else experienced this scenario on CF and DB/2?  Is there a
way to automatically restart the ODBC server when this happens. Or is
there another solution to resolve this issue?  Even verifying the
datasource in CF admin fixes it.  It seems to be that CF stops trying if
it gets the timeout message until the ODBC connection is refreshed?  
Any thoughts would be appreciated.
Daron Smith
PS I think my boss is thinking this is a good justification to go to
...Net







~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234666
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: dynamic ms-word files

2006-03-08 Thread Munson, Jacob
I never saw anybody respond, so here's an example I've got that works
for me:
cfcontent type=application/msword
cfheader name=Content-Disposition value=attachment;
filename=tempfile.doc
div style=font-size:16pt; font-face:bold;Here's a dynamic
table/div
table
cfloop index=i from=1 to=5
tr
cfoutput
tdcolumn 1, row #i#/td
tdcolumn 2, row #i#/td
tdcolumn 3, row #i#/td
/cfoutput
/tr
/cfloop
/table

http://techfeed.net/cfQuickDocs/?cfcontent
http://techfeed.net/cfQuickDocs/?cfheader 

 -Original Message-
 From: Srinivasa Teja Palla [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, March 08, 2006 7:56 AM
 To: CF-Talk
 Subject: dynamic ms-word files
 
 Like we have htmldoc, is there a way to dynamically generate 
 word files with content supplied by coldfusion?
 
 
 

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


Using SQL Bulk Insert

2006-03-08 Thread Chad McCue
I am try to use a bulk insert instead of looping through a result set.

CFQUERY datasource=#request.dsource# name=Emails
   SELECT EmailAddress
   FROM Emx_Acct_Addresses
   WHERE ListID = '#AddressListID#'
  /CFQUERY
  
  CFSET EmailArray = ArrayNew(1) /
  CFSET EmailArray = ListToArray(valueList(Emails.EmailAddress)) /
  
  !--- Need to insert the emails into the Sending Table ---
  CFQUERY datasource=#request.dsource#
   BULK INSERT INTO BroadcastedEmails
(EmailAddress)
VALUES ()
  /CFQUERY

What would I use here for a value?

  



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

2006-03-08 Thread Rick Root
Second!

Andy Matthews wrote:
 Please?
 
 !//--
 andy matthews
 web developer
 ICGLink, Inc.
 [EMAIL PROTECTED]
 615.370.1530 x737
 --//-
 
 -Original Message-
 From: Spike [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 07, 2006 10:07 PM
 To: CF-Talk
 Subject: Re: cfm captchas
 
 
 Send me a nice friendly please, please, please email and I might get
 round to implementing the idea I've had in my head for the last year
 or so ;-)
 
 I think it would take about 30 people asking for it to get enough
 motivation for lift-off.
 
 Spike
 
 On 3/7/06, dave [EMAIL PROTECTED] wrote:
 
what are our options for cfm captchas besides alagad

~Dave the disruptor~




 
 
 
 
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234669
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: Using SQL Bulk Insert

2006-03-08 Thread Jim Davis
 -Original Message-
 From: Chad McCue [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 12:59 PM
 To: CF-Talk
 Subject: Using SQL Bulk Insert
 
 I am try to use a bulk insert instead of looping through a result set.
 
 CFQUERY datasource=#request.dsource# name=Emails
SELECT EmailAddress
FROM Emx_Acct_Addresses
WHERE ListID = '#AddressListID#'
   /CFQUERY
 
   CFSET EmailArray = ArrayNew(1) /
   CFSET EmailArray = ListToArray(valueList(Emails.EmailAddress)) /
 
   !--- Need to insert the emails into the Sending Table ---
   CFQUERY datasource=#request.dsource#
BULK INSERT INTO BroadcastedEmails
 (EmailAddress)
 VALUES ()
   /CFQUERY
 
 What would I use here for a value?

The BULK INSERT doesn't accept values like that (at least as far as I'm
aware).  It takes a file and dumps it to a table - it only accepts the FROM
and WITH clauses.  Here's an example from Books Online:

BULK INSERT Northwind.dbo.[Order Details]
   FROM 'f:\orders\lineitem.tbl'
   WITH 
  (
 FIELDTERMINATOR = '|',
 ROWTERMINATOR = '|\n'
  )

Here's the full syntax description:

BULK INSERT [ [ 'database_name'.] [ 'owner' ].] { 'table_name' FROM
'data_file' } 
[ WITH 
( 
[ BATCHSIZE [ = batch_size ] ] 
[ [ , ] CHECK_CONSTRAINTS ] 
[ [ , ] CODEPAGE [ = 'ACP' | 'OEM' | 'RAW' | 'code_page' ] ] 
[ [ , ] DATAFILETYPE [ = 
{ 'char' | 'native'| 'widechar' | 'widenative' } ] ] 
[ [ , ] FIELDTERMINATOR [ = 'field_terminator' ] ] 
[ [ , ] FIRSTROW [ = first_row ] ] 
[ [ , ] FIRE_TRIGGERS ] 
[ [ , ] FORMATFILE = 'format_file_path' ] 
[ [ , ] KEEPIDENTITY ] 
[ [ , ] KEEPNULLS ] 
[ [ , ] KILOBYTES_PER_BATCH [ = kilobytes_per_batch ] ] 
[ [ , ] LASTROW [ = last_row ] ] 
[ [ , ] MAXERRORS [ = max_errors ] ] 
[ [ , ] ORDER ( { column [ ASC | DESC ] } [ ,...n ] ) ] 
[ [ , ] ROWS_PER_BATCH [ = rows_per_batch ] ] 
[ [ , ] ROWTERMINATOR [ = 'row_terminator' ] ] 
[ [ , ] TABLOCK ] 
) 
]

I'm using the SQL Server 2000 reference - it may be different for other DBs
or versions.

Jim Davis



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

2006-03-08 Thread Rick Root
Andy Matthews wrote:
 Are the Char(13) and Char(10) in the right order? Try switching them to 10
 and 13 respectively.

I think Andy is right... it should be 10/13 not 13/10

Although honestly, I never use the 13.  I find that #Chr(10)# line 
breaks come through fine in every email I've ever sent with coldfusion.

rick

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234671
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: removing whitespace from within CFC output

2006-03-08 Thread Rick Root
Andy Matthews wrote:
 GASP!?!?
 
 He's outputting from a CFC? Yes Martha, I am. I'm taking the time to learn
 CFCs and have decided that this an efficient way to solve a specific problem
 I have.

I'd love to know why you think you have to do the output within the CFC =)

won't you share?

Rick

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


Null Pointer Exception Creating a CFC Object

2006-03-08 Thread Dawson, Michael
On Monday, I updated our CF servers to the most-recent updater.  Now,
when I try to create an instance of a CFC, in the same directory as the
calling page, I get a Null Pointer exception.  The CFC worked before the
updater was applied.
 
My CFC is named LiberumHelpDeskReportDataGateway.cfc.
 
My CF code is:
cfset gw = createObject(component,
LiberumHelpDeskReportDataGateway)
 
If I change the name of the component, it breaks, as it should, and
tells me it can not find the component.
 
I don't have any code in the body of the CFC that is outside of any
functions, so I don't believe that any code is being called before I
actually call my .init() method.
 
I restarted the CF service and removed all .class files as well.  The
error continues.
 
Any ideas?
 
M!chael A Dawson
Manager of Web Applications
Office of Technology Services
University of Evansville
1800 Lincoln Avenue
Evansville, IN 47722
812-488-2581
MSN Messenger ID: [EMAIL PROTECTED]
 
There are 10 types of people in the world: Those who understand binary
numbers and those who don't.
 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234673
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: Using SQL Bulk Insert

2006-03-08 Thread Rick Root
I am try to use a bulk insert instead of looping through a result set.

Like Jim mentioned, Bulk Insert takes data from a file.

What you're trying to do is supported by MySQL, where you can do this:

INSERT INTO tableName
(id, stringfield)
VALUES
(1,'foo'),(2,'bar'),(3,'zesty'),(4,'80081355')

Or something to that affect.

However, I'm not sure if SQL Server supports that syntax for the INSERT 
statement.. lemme try.

And it apparently does not.

rick

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


XML/XSL newbie question

2006-03-08 Thread Ray Champagne
I'm putting together an app that will create an XML doc on-the-fly that 
can then be stored for use in email output.  I have three child nodes - 
one for the Story Link, one for the Story Headline and one for the 
Story Teaser Text (bodytext).  I've been able to build the first two, 
no problems, just use XMLFormat on the variable string I'm passing to 
the XML doc.  The third has the possibility of having one or many 
paragraphs, so I'm using #XMLFormat(ParagraphFormat(bodytext))# to 
convert the string before I store it in the XML doc.

The problem I'm having is that when I use my XSL Stylesheet to format 
the XML for output, I am getting the raw p tags being output in the 
bodytext, like this:

Here is line one P Here is line two P  P Skipped three lines P

When I want it to look like this:

Here is line one

Here is line two



Skipped three lines

Any ideas on how to properly do this?  I'm an XML noob, so I'm sure 
there is a function or two I'm missing here.

Thanks,

Ray

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234675
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: Arrays within the Application Scope disappearing

2006-03-08 Thread S . Isaac Dealey
 I have inherited this application that stores all the
 navigation information
 for the web site in a structure within the application
 scope. The structure
 contains a series of arrays one array for the top
 navigation,one for the
 side navigation and yet another for the footer
 information. The problem I'm
 having is every now and then one of the arrays within the
 structure
 disappears so the site throws an error. I know I could
 just put a band-aid
 on the problem but I want to try figure out why the array
 is disappearing.
 The application scope is set to expire every 2 days.

 Cfmx 6.1
 Windows 2003
 IIS 6.0

Where and how are these arrays being created? It's possible that you
could have a race condition which is causing the system to error out
during the creation of one of the arrays and then the array would be
un-built on subsequent requests because the test for building them is
passing as a result of code executed before the error.

That's just an off-the-top-of-my-head guess.

s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


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

2006-03-08 Thread S . Isaac Dealey
 Hmmm... okay... I'm having a tough time seeing how that
 would work...
 I could certainly add a cfheader tag to the template to
 produce the
 304 response, but not modified is useless without a
 reference point (and then once you have a reference point
 it's moot). Maybe I should go google search for another
 header that indicates when the file was last modified...

 If I recall correctly, in the HEAD request you'd send an
 if modified since
 header to see if the file has been modified. The 304
 response would tell you
 that it hadn't.

Ahh okay... now that makes perfect sense. :)


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234676
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: Using SQL Bulk Insert

2006-03-08 Thread Jim Wright
Also, if this is a hosted db, usually you do not have the rights to
use bulk insert.


 The BULK INSERT doesn't accept values like that (at least as far as I'm
 aware).  It takes a file and dumps it to a table - it only accepts the FROM
 and WITH clauses.

--
Jim Wright
Wright Business Solutions
[EMAIL PROTECTED]
919-417-2257

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


OT - Manage threads in list email (when users use exchange, pine, etc)

2006-03-08 Thread Katz, Dov B \(IT\)
Guys, I need to draw from your internet/email expertise for a sec...

I'm trying to parse message headers to correlate messages from a list
into Conversation Threads.  The list sends to recipients, etc.  I
basically make a fake account which becomes a Recipient and track msgs
on a web forum. If you submit from the webforum, it sends it to the
list.  So you can get a message, when you send to the list, or
compose/reply from the forum.

I have a JavaMail client with a special mail account which I subscribe
to the list.  Whenever it gets a message, it tries using the Message-ID,
In-Reply-To, and vaguely tries interpreting (for outlook) the
Thread-Index 

Here are some questions I have

1) How does outlook/exchange, etc create Thread-Index (I know the basic
structure of the string, and what it's trying to do, but could I
generate a thread-index on my own and send to outlook/exchange? If so
how do I generate them?)

2) How can I get outlook to respond with a In-Reply-To... Right now it
doesn't seem to do that, so I don't know which thread/post to associate
the message with.

3) Whats the best way, in java with JavaMail API, to convert a (possibly
html only) message into text-only content for insertion into a DB?

4) Is there a way/trick for me to insert headers into a message, and
have outlook send them when responding to  a message?

Any suggestions, answers, or links would be very helpful...

Thanks in advance!
dov


NOTICE: If received in error, please destroy and notify sender.  Sender does 
not waive confidentiality or privilege, and use is prohibited.

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234679
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: Null Pointer Exception Creating a CFC Object

2006-03-08 Thread Dawson, Michael
Update to this problem:

1. I tried to rename the CFC, but it made no difference.  The Null
Pointer error continued.

2. I tried CFOBJECT and continued to receive the Null Pointer error.

3. Removed all code from within the CFC and still no worky.

This really sucks. 

-Original Message-
From: Dawson, Michael [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 12:23 PM
To: CF-Talk
Subject: Null Pointer Exception Creating a CFC Object

On Monday, I updated our CF servers to the most-recent updater.  Now,
when I try to create an instance of a CFC, in the same directory as the
calling page, I get a Null Pointer exception.  The CFC worked before the
updater was applied.
 
My CFC is named LiberumHelpDeskReportDataGateway.cfc.
 
My CF code is:
cfset gw = createObject(component,
LiberumHelpDeskReportDataGateway)
 
If I change the name of the component, it breaks, as it should, and
tells me it can not find the component.
 
I don't have any code in the body of the CFC that is outside of any
functions, so I don't believe that any code is being called before I
actually call my .init() method.
 
I restarted the CF service and removed all .class files as well.  The
error continues.
 
Any ideas?

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234680
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: removing whitespace from within CFC output

2006-03-08 Thread Michael Dinowitz
I use cached CFCs to output 'pods' in my replacement code for blogCFC. Works 
great.

 I'd love to know why you think you have to do the output within the CFC =)

 won't you share?

 Rick

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234681
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: Null Pointer Exception Creating a CFC Object

2006-03-08 Thread Dawson, Michael
OK. Now, I'm really getting pissed at CF!!

I created a mapping that pointed to the same directory as the CFC.

I created a custom tag path that pointed to the same directory as the
CFC.

Neither worked.  In fact, after removing those two items, CF is not
giving a different error.

I thought you could call a CFC, from the same directory, as another page
without having to specify a path, setup a mapping or setup a custom tag
path.

Did this break in the Updater?

M!ke 

-Original Message-
From: Dawson, Michael [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 12:37 PM
To: CF-Talk
Subject: RE: Null Pointer Exception Creating a CFC Object

Update to this problem:

1. I tried to rename the CFC, but it made no difference.  The Null
Pointer error continued.

2. I tried CFOBJECT and continued to receive the Null Pointer error.

3. Removed all code from within the CFC and still no worky.

This really sucks. 

-Original Message-
From: Dawson, Michael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 12:23 PM
To: CF-Talk
Subject: Null Pointer Exception Creating a CFC Object

On Monday, I updated our CF servers to the most-recent updater.  Now,
when I try to create an instance of a CFC, in the same directory as the
calling page, I get a Null Pointer exception.  The CFC worked before the
updater was applied.
 
My CFC is named LiberumHelpDeskReportDataGateway.cfc.
 
My CF code is:
cfset gw = createObject(component,
LiberumHelpDeskReportDataGateway)
 
If I change the name of the component, it breaks, as it should, and
tells me it can not find the component.
 
I don't have any code in the body of the CFC that is outside of any
functions, so I don't believe that any code is being called before I
actually call my .init() method.
 
I restarted the CF service and removed all .class files as well.  The
error continues.
 
Any ideas?

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

2006-03-08 Thread Roger Benningfield
Is there a standard method for providing head information for RSS
feeds?

Isaac: Yep... it's called Conditional GET. The idea is that the server provides 
ETag and Last-Modified headers on every request, and the client stores them 
away. The next time the client sends a request, it sends that info back, and 
the server determines in things have changed since the last request. If there 
have been changes, the server responds with the feed... if not, it responds 
with a 304.

Here's a couple entries on the subject...

me: 
http://admin.mxblogspace.journurl.com/?mode=articleentry=1853

Pete Freitag:
http://www.petefreitag.com/item/235.cfm

Mine is a walkthrough of the process, his is more code-specific.

Now, there's also a further step you can take to conserve bandwidth, one that 
is primarily useful with large feeds of rapidly updating info. It's described 
in RFC3229, which covers delta encoding.

Basically, the concept is this: 

- The client sends an A-IM header with a value of feed to the server, along 
with If-None-Match and If-Modified-Since. (A-IM stands for Accepts-Instance 
Manipulation.)

- The server spots the extra header and recognizes that the client supports 
feed deltas.

- Instead of returning the default feed, the server returns only the entries 
added/updated since If-Modified-Since.

- The server also returns the following with the feed: a Vary header set to 
If-None-Match, an IM header with a value of feed, and a response code 
226 IM Used.

Again, this is primarily of interest to high-volume feed producers... the 
average blog is probably better off saving the extra CPU cycles chewed up by 
the process than trying to preserve a few extra MB of bandwidth. But on the 
client side, aggregator developers should try to support it... it requires very 
little extra code, and can make a big difference in some situations.

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

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234683
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: XML/XSL newbie question

2006-03-08 Thread S . Isaac Dealey
 Any ideas on how to properly do this?  I'm an XML noob, so
 I'm sure there is a function or two I'm missing here.

Couple of pointers:

1) When creating XML nodes with XmlElemNew, it's unnecessary to use
XMLFormat() to format either text nodes appended to the node array or
to attributes added to the XmlAttributes collection. So if you're
using functions to build your doc and using XMLFormat() to format your
nodes: stop. :)

2) With prior versions of CF (6.0 and possibly 6.1) the XML engine by
default didn't understand the apos; entity (which is used in
XmlFormat() to replace apostrophes). Although for the majority of XML
packets, the apos; entity is unnecessary (because the doc uses
double-quotes for its attributes). Thus with these versions of CF,
using XmlFormat() on a value with an apostrophe in it can actually
_create_ an error that wouldn't otherwise occur. You can get around
this by either adding the entity to the XML doc or by wrapping
XmlFormat() with another function to replace the apos; entities with
#39;  (oddly enough, I had a similar problem with JSStringFormat()
being broken -- although I believe they've fixed the XmlFormat() issue
with CF7).

3) When a string goes into an XML doc as an attribute or a text node,
it comes out exactly the way it went in. So if you add

she said this

it will come out as

she said this

or if you add

she said quot;thisquot;

it will come out as

she said quot;thisquot;

-- I know, seems obvious -- but the nuance may be what's troubling
you. Because you don't need to use XmlFormat() when building elements
with XmlElemNew(), if you then add a text node with XmlFormat() it
will go in with the extra  and ; characters, so when the XML packet
is serialized (to a string) it will become

amp;lt;pamp;gt;some stuffamp;lt;/pamp;gt;

which will then come back out of the packet as:

lt;pgt;some stufflt;/pgt;

instead of coming out as

psome stuff/p

So it may be that just removing XmlFormat() will solve your issue.

On the flip side, I generally find it easier to creat XML packets
either with cfxml or cfsavecontent (which is more efficient if you're
creating a packet for someone else because there's less overhead to
create the string because CF doesn't automatically parse the XML). If
you decide to use either of these, then you do need to use XmlFormat()
when ouputting variables within your cfsavecontent or cfxml tags.

What's really funny is I had this same conversation with Matt Woodward
(one of the other Team Macromedia / Adobe Community Experts members
who's speaking at cf.Objective this weekend) a couple years ago when I
was still in Dallas. The funny part (more so than the fact that I was
surprised that he was having any trouble figuring it out) is that iirc
this was just _after_ he'd written an article about using XSL for the
ColdFusion Developer's Journal. :P

p.s. I've got some code for generating an RSS feed that uses
XmlFormat() to allow html content in the rss body which might help
illustrate this nuance if you're interested. I think the standard for
RSS basically specifies what you're trying to accomplish with regard
to embedding html content.


s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


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

2006-03-08 Thread Cutter (CF-Talk)
I appreciate everyone's assistance. Turns out that Outlook (I hate it, 
but am required to use it for my work email) was removing what it deemed 
'extra line breaks'.

Cutter

Josh Nathanson wrote:

Hey Cutter, not sure if this will help but it's worth a try:

cfset linebreak = #chr(13)#  #chr(10)#

Then replace where you have #chr(13)##chr(10)# with #linebreak#.  Not sure 
if that will work but it might help with the consistency issue.

-- Josh


- Original Message - 
From: Cutter (CF-Talk) [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Wednesday, March 08, 2006 8:36 AM
Subject: Building a string


  

OK, I've got one that has me stumped.
I am in the process of building a text string to be passed into a plain
text email, which will later be parsed according to it's line breaks.
Not building within the cfmail tags (because that's a nightmare in it's
own right) but within a variable:

cfset msgBody = Here's the start.#chr(13)##chr(10)#
cfset msgBody = msgBody  A little more here.#chr(13)##chr(10)#
cfloop list=#form.fieldnames# index=x
cfif not listfindnocase(listexclude,x)
cfset msgBody = msgBody  replace(x,_, ,all)  : 
cfif form[x] neq 
cfset msgBody = msgBody  form[x]
cfelse
cfset msgBody = msgBody  (not required and empty)
/cfif
cfset msgBody = msgBody  #chr(13)##chr(10)#
 /cfif
/cfloop

My problem is, sometimes I don't get line breaks. There does not appear
to be any rhyme nor reason, it just happens. I'm still getting my
fieldnames and values (or lack of) for all fields, just, on occasion,
without warning or reason, I lose my linebreaks. Not always. 18 fields
and it might lose it for two or three, but they justdon't appear.

Anyone?

Cutter







~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234685
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: Null Pointer Exception Creating a CFC Object

2006-03-08 Thread Josh Nathanson
Can you copy and paste into this thread the entire text of the error you're 
getting, that might help people troubleshoot.

-- Josh


- Original Message - 
From: Dawson, Michael [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Wednesday, March 08, 2006 10:37 AM
Subject: RE: Null Pointer Exception Creating a CFC Object


 Update to this problem:

 1. I tried to rename the CFC, but it made no difference.  The Null
 Pointer error continued.

 2. I tried CFOBJECT and continued to receive the Null Pointer error.

 3. Removed all code from within the CFC and still no worky.

 This really sucks.

 -Original Message-
 From: Dawson, Michael [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 08, 2006 12:23 PM
 To: CF-Talk
 Subject: Null Pointer Exception Creating a CFC Object

 On Monday, I updated our CF servers to the most-recent updater.  Now,
 when I try to create an instance of a CFC, in the same directory as the
 calling page, I get a Null Pointer exception.  The CFC worked before the
 updater was applied.

 My CFC is named LiberumHelpDeskReportDataGateway.cfc.

 My CF code is:
 cfset gw = createObject(component,
 LiberumHelpDeskReportDataGateway)

 If I change the name of the component, it breaks, as it should, and
 tells me it can not find the component.

 I don't have any code in the body of the CFC that is outside of any
 functions, so I don't believe that any code is being called before I
 actually call my .init() method.

 I restarted the CF service and removed all .class files as well.  The
 error continues.

 Any ideas?

 

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


RE: CFEclipse - Lost my snipTree?

2006-03-08 Thread Trevor Orr
Cool, that was the trick, close and reopen snippet tree, refresh did no
work.

 

-Original Message-
From: Sandra Clark [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 9:42 AM
To: CF-Talk
Subject: RE: CFEclipse - Lost my snipTree?

I got my snippets back yes.  I don't know what did it, but these are the
steps I used

Used the nightly build.  Went into my project directory and made sure
the snippets were set to the correct directory.  Closed the Snip Tree
View and then re-opened it.  Voila, Snippets are back (thank goodness, I
use them
extensively) 

-Original Message-
From: Trevor Orr [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 12:26 PM
To: CF-Talk
Subject: RE: CFEclipse - Lost my snipTree?

Did getting rid of 1.2 get you back your snippets?

 

-Original Message-
From: Sandra Clark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 9:13 AM
To: CF-Talk
Subject: RE: CFEclipse - Lost my snipTree?

I got rid of the 1.2 plugin in the plugins directory then installed the
nightly build.  To get the component explorer, you have to tell it to
show View/Other and select if from the CFEclipse node 

-Original Message-
From: Trevor Orr [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 12:03 PM
To: CF-Talk
Subject: RE: CFEclipse - Lost my snipTree?

I am having the same problem, I downloaded the nightly version, and
unzipped it into my plugin directory and no changes after restarting
eclipse, is there something I need to do to tell eclipse to use the
newly installed version?



-Original Message-
From: Nathan Strutz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 08, 2006 7:55 AM
To: CF-Talk
Subject: Re: CFEclipse - Lost my snipTree?

1.18 is both older and not as stable as 1.20, so you did good by picking
the highest version number. You have the stable build. I don't know
what actually classifies it as stable, but I can tell you what doesn't
:)  The real, actual bleeding edge is now the nightly build, which you
can download
here:

http://www.cfeclipse.org/nightly/cfeclipse_nightly.zip

It's literally compiled and published nightly. download it, unzip it and
move it into your eclipse\plugins folder, then restart eclipse. I update
my installed plugin to the nightly every week or so and have no problems
with it (plus you can try out mark's new component explorer!).

-nathan strutz
http://www.dopefly.com/



On 3/7/06, Sandra Clark [EMAIL PROTECTED] wrote:

 I'm using the last stable build.  It looks newer 1.2 than the bleeding

 edge build (1.18).  If there is a newer build I can get, I'll try 
 that,

 Sandy













~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234687
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: Null Pointer Exception Creating a CFC Object

2006-03-08 Thread S . Isaac Dealey
 OK. Now, I'm really getting pissed at CF!!

 I created a mapping that pointed to the same directory as
 the CFC.

 I created a custom tag path that pointed to the same
 directory as the
 CFC.

 Neither worked.  In fact, after removing those two items,
 CF is not
 giving a different error.

 I thought you could call a CFC, from the same directory,
 as another page
 without having to specify a path, setup a mapping or setup
 a custom tag
 path.

 Did this break in the Updater?

Hi Mike,

Not that I'm aware of...

I'd be willing to bet that the problem you're having with the null
pointer error is a result of this somewhere in your cfc:

cfargument name=x required=false

Null pointer errors happen a lot when a default is not specified for a
cfargument tag. This to me is the most frustrating thing about the
lack of nulls in recent versions of CF -- not that we can't use them
in general (although that's frustrating) but that there is an
_EXTREMELY_ common circumstance which causes them OFTEN and is neither
intuitive nor well documented. If the error occurs while creating the
object (before init) I would bet that it calls method in the
soft-constructor which doesn't provide a not-required argument with no
default value -- and then of course attempts to use that undefined
argument which results in the null pointer error.

s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234688
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: Null Pointer Exception Creating a CFC Object

2006-03-08 Thread Dawson, Michael
Here is the error message:

 The system has attempted to use an undefined value, which usually
indicates a programming error, either in your code or some system code.

Null Pointers are another name for undefined values.
 
The error occurred in
D:\WebSites\Departments\ots.evansville.edu\WebSite\test.cfm: line 3

1 : cfoutputp#now()#/p/cfoutput
2 : 
3 : cfset result = createObject(component, test)

Resources:

* Check the ColdFusion documentation to verify that you are using
the correct syntax.
* Search the Knowledge Base to find a solution to your problem.

Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1
Remote Address  10.8.0.12
Referrer
Date/Time   08-Mar-06 12:58 PM
Stack Trace
at
cftest2ecfm641148156.runPage(D:\WebSites\Departments\ots.evansville.edu\
WebSite\test.cfm:3)

java.lang.NullPointerException
at
coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory
..java:115)
at
coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory
..java:102)
at
coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory
..java:96)
at
coldfusion.runtime.TemplateProxyFactory.resolveFile(TemplateProxyFactory
..java:74)
at
coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory
..java:632)
at coldfusion.runtime.CFPage.createObject(CFPage.java:5699)
at coldfusion.runtime.CFPage.CreateObject(CFPage.java:5668)
at coldfusion.runtime.CFPage.CreateObject(CFPage.java:5633)
at
cftest2ecfm641148156.runPage(D:\WebSites\Departments\ots.evansville.edu\
WebSite\test.cfm:3)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:209)
at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:
51)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersist
enceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at
coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.jav
a:115)
at coldfusion.CfmServlet.service(CfmServlet.java:107)
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257
)
at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541
)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:
204)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.j
ava:318)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java
:426)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.jav
a:264)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) 

-Original Message-
From: Josh Nathanson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 12:58 PM
To: CF-Talk
Subject: Re: Null Pointer Exception Creating a CFC Object

Can you copy and paste into this thread the entire text of the error
you're getting, that might help people troubleshoot.

-- Josh

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234689
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: XML/XSL newbie question

2006-03-08 Thread Ray Champagne
OK, Issac, that makes a little more sense.  I'm going to re-read the 
whole thing again right now, but if you have that example you were 
referring to, I'd love to see it.  Seeing other's examples in 
conjunction with the info you just gave should clear this all up.  You 
can send it offline to my CrystalVision account.

Thanks for the explanation.

S. Isaac Dealey wrote:
 Any ideas on how to properly do this?  I'm an XML noob, so
 I'm sure there is a function or two I'm missing here.
 
 Couple of pointers:
 
 1) When creating XML nodes with XmlElemNew, it's unnecessary to use
 XMLFormat() to format either text nodes appended to the node array or
 to attributes added to the XmlAttributes collection. So if you're
 using functions to build your doc and using XMLFormat() to format your
 nodes: stop. :)
 
 2) With prior versions of CF (6.0 and possibly 6.1) the XML engine by
 default didn't understand the apos; entity (which is used in
 XmlFormat() to replace apostrophes). Although for the majority of XML
 packets, the apos; entity is unnecessary (because the doc uses
 double-quotes for its attributes). Thus with these versions of CF,
 using XmlFormat() on a value with an apostrophe in it can actually
 _create_ an error that wouldn't otherwise occur. You can get around
 this by either adding the entity to the XML doc or by wrapping
 XmlFormat() with another function to replace the apos; entities with
 #39;  (oddly enough, I had a similar problem with JSStringFormat()
 being broken -- although I believe they've fixed the XmlFormat() issue
 with CF7).
 
 3) When a string goes into an XML doc as an attribute or a text node,
 it comes out exactly the way it went in. So if you add
 
 she said this
 
 it will come out as
 
 she said this
 
 or if you add
 
 she said quot;thisquot;
 
 it will come out as
 
 she said quot;thisquot;
 
 -- I know, seems obvious -- but the nuance may be what's troubling
 you. Because you don't need to use XmlFormat() when building elements
 with XmlElemNew(), if you then add a text node with XmlFormat() it
 will go in with the extra  and ; characters, so when the XML packet
 is serialized (to a string) it will become
 
 amp;lt;pamp;gt;some stuffamp;lt;/pamp;gt;
 
 which will then come back out of the packet as:
 
 lt;pgt;some stufflt;/pgt;
 
 instead of coming out as
 
 psome stuff/p
 
 So it may be that just removing XmlFormat() will solve your issue.
 
 On the flip side, I generally find it easier to creat XML packets
 either with cfxml or cfsavecontent (which is more efficient if you're
 creating a packet for someone else because there's less overhead to
 create the string because CF doesn't automatically parse the XML). If
 you decide to use either of these, then you do need to use XmlFormat()
 when ouputting variables within your cfsavecontent or cfxml tags.
 
 What's really funny is I had this same conversation with Matt Woodward
 (one of the other Team Macromedia / Adobe Community Experts members
 who's speaking at cf.Objective this weekend) a couple years ago when I
 was still in Dallas. The funny part (more so than the fact that I was
 surprised that he was having any trouble figuring it out) is that iirc
 this was just _after_ he'd written an article about using XSL for the
 ColdFusion Developer's Journal. :P
 
 p.s. I've got some code for generating an RSS feed that uses
 XmlFormat() to allow html content in the rss body which might help
 illustrate this nuance if you're interested. I think the standard for
 RSS basically specifies what you're trying to accomplish with regard
 to embedding html content.
 
 
 s. isaac dealey 434.293.6201
 new epoch : isn't it time for a change?
 
 add features without fixtures with
 the onTap open source framework
 
 http://www.fusiontap.com
 http://coldfusion.sys-con.com/author/4806Dealey.htm
 
 
 

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