Re: Using CFFTP Via SSH

2006-04-13 Thread James Holmes
Can't an SSH tunnel be set up so that the standard FTP used by CF goes
via the tunnel?

On 4/13/06, Damien McKenna [EMAIL PROTECTED] wrote:
  -Original Message-
  From: Scott Stewart [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, April 12, 2006 2:38 PM
 
  We've got a requirement to use CFFTP via SSH (SFTP). Has
  anyone been able to do this?

 CFMX doesn't support SFTP, or FTPS.  I suggest using the psftp command
 that comes with PuTTY to do this, which is what I'm doing at work.

 The psftp command can take a text file of commands, log in, process it,
 log out again (add the line quit at the end of the batch file) and
 you're done.  I'm using it to automatically upload a series of files to
 a server: first I generate a batch script based on a directory of source
 files, then I run psftp with the batch file and do key-based
 authentication so there's no passwords being sent.

 I've only done tests so far, the final system isn't finished yet, but it
 seems to work really pretty well.

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

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237662
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: S. Isaac, Wassup?

2006-04-13 Thread Dave Watts
 Maybe I'm writing a career suicide note, but somehow I doubt 
 that.

No, just a giant, useless irrelevancy. My interest in the political opinions
of developers is about the same as my interest in the CF skills of
politicians - zero. I don't give a damn if you're all neo-Nazis. So please,
please, for the love of all that's holy, keep this crap out of my inbox.
Thanks!

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:237663
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: VHS and Betamax

2006-04-13 Thread Denny Valliant
  I guess my point is that I can see the point of not
  worrying too much, but I don't buy into believing
  things will change in the future. Arg! Of course things
  will change, but, um. Well... I guess don't go around
  smoking, thinking that, what the hell, by the time I
  get cancer, we'll have the technology to...  Or you
  can, hell, I do sometimes, and it could be true, but
  the safest bet is to avoid smoking. :-/

 I don't think that's actually analogous to my development process.


Oh, I wasn't implying that it was. Just talk'n man, I've seen your stuff,
it's good.  Hell, you'd shudder if you saw my stuff. *shudder*

So I'm not exactly running around saying oh just throw whatever
 abstraction you want in there, 'cause the hardware will support it in
 20 years (and even if I were, the Cancer analogy is bad because we
 have no real proof of progress toward a cure for cancer, whereas we
 have definitive and continual proof of the progress of our hardware).


(-: It was a bad analogy. I'd take the progress of hardware, and throw
in the progress of software. Can you BELIEVE the rate of development?
The warez are evolving at some kind of proportional rate to the hardware.

What I'm saying is that there is a need to consider the progress of
 hardware when evaluating the long-term viability of abstractions in
 our software. Something that is not viable in today's market because
 its poor performance makes it unable to support a profitable
 application may very well be a major bread-winner in twenty years for
 its ability to help programmers produce more agile code. Thus it's
 also bad form to discount an idea that failed once before for
 performance reasons without first testing it in combination with new
 hardware and new complementary technologies/techniques.


I don't know about the 20 year span... but I totally agree. And I guess,
if you think about it, there might be tons of good ideas out there that
are 10-20 years old, and were just ahead of their time. Hmmm. For
sure like 5 probably.

 Take one look at the gamer market and tell me that
  people aren't still concerned with shaving .2
  off of some random shade routine.
  :-) Thank god. I kind of dig that.

 Some of us. :) But I don't work in the gaming market... and I'm glad I
 don't. :)


Heh. Depends on what area. I could settle for one of those heads
who just goes to E3 or whatever and tells everyone how cool everything
is, and, wow, look at this swag! =]

That's a market that programs for stuff that's not even available at
the time, or so I hear. Maybe not programs, but dependant on the fact
that technology will increase.


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

2006-04-13 Thread Denny Valliant
 I'll have to pick up a copy of it... Seems somewhat similar to a novel
 I wrote which can be found here: http://www.turnkey.to/ike/613.htm


Heh. Judging by your introduction... the age of spiritual machines had
a good bit along the lines of this stuff is far out man, right now! In X
years, it's gonna be outta sight!

If you think that's a hokey idea, you'd really think that book is hokey.

It is kind of impressive when you think about it... all that LISP stuff and
whatnot. Wierd programming languages, all funky like. :-)

The site's kinda crude, I know. :)
 I haven't done anything with it in several years.


I dig writing man, it's cool that you put it up.  'tis pretty funny so far.
:Denny


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


ColdFusion and VoIP

2006-04-13 Thread Steve Brownlee
 I just got through installing a VoIP system for my company
 (http://www.orbwave.com/cfjboss/2006/04/installing-corporate-voip-part
 -i.html) and was noticing while browsing the Internet that some people
 were using scripting languages to interface with the VoIP provider
 services.  Apparently you're able to script...
 
 - Adding/removing users
 - Creating conference calls
 - Create/manage hunt groups
 - Setting up voice mail
 
 Has anyone done work with Asterisk via ColdFusion before?  I'd love to
 be able to automate some of the tasks that can take up to 15 minutes
 to manually configure.
 
 - Steve


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237666
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: Set Variable on window close

2006-04-13 Thread Everett, Al \(NIH/NIGMS\) [C]
What I'm getting is that you want to ensure a user is logged out when
they close their browser, is that right?

There are two ways to do that that are very easy and don't require
anything exotic like what you're thinking.

If you're on CFMX or MX7, and have access to the ColdFusion
Administrator, change to use J2EE session variables. (Server Settings |
Memory Variables | Use J2EE session variables)

The J2EE session variable uses a session cookie rather than persistent
cookies like the traditional CFID/CFTOKEN. When the browser is closed
the cookie is discarded and visiting the site again will start a new
session.

If you're on an older version or don't have access to the CF
Administrator, you can do the same thing by converting the CFID/CFTOKEN
to session cookies. In your Application.cfm add something like the
following:

cfif isDefined(cookie.CFID
cfcookie name=CFID value=#cookie.CFID#
/cfif
cfif isDefined(cookie.CFTOKEN
cfcookie name=CFTOKEN value=#cookie.CFTOKEN#
/cfif


-Original Message-
From: Patrick Forsythe [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 12, 2006 4:29 PM
To: CF-Talk
Subject: Set Variable on window close

The problem I have is that the site I am has a long session time out
like 8 hours. The problem I am having is that in ie on win 98 if you
login, and close the window it allows you back in the site with out
requiring an additional login. So what I want to know is is there a way
to set a coldfusion variable once a page exits. I was thinking about
using javascript to pop up a window that sets my variable but if the
have a pop up blocker that might not work. I am looking for any
suggestions here.


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

2006-04-13 Thread Mark Drew
That is coming soon!

We have the help ready to go as a standalone eclipse help package...  
the only problem now is actually getting it to find stuff for you.

Looking into this soon!

MD


On 12 Apr 2006, at 19:57, Bryan Stevenson wrote:

 Naw, nothing's better than cfquickdocs.  ;)

 Not knocking cfQuickDocsbut you can't beat built-in help in CF  
 Studio or
 Homesite +.sure wish the help worked in CFEClipse and was local  
 instead of
 grabbing it online ;-)

 Bryan Stevenson B.Comm.
 VP  Director of E-Commerce Development
 Electric Edge Systems Group Inc.
 phone: 250.480.0642
 fax: 250.480.1264
 cell: 250.920.8830
 e-mail: [EMAIL PROTECTED]
 web: www.electricedgesystems.com
 - Original Message -
 From: Munson, Jacob [EMAIL PROTECTED]
 To: CF-Talk cf-talk@houseoffusion.com
 Sent: Wednesday, April 12, 2006 11:50 AM
 Subject: RE: adobe certification site


 I guess, the smart thing to do in this case is probably to take  
 these
 lists of functions and argument orders and print it out in some way
 that makes the most sense to you as a reminder. Print it large  
 enough
 to be seen at a distance and tape it to the wall behind your  
 monitor.
 :)

 Sounds like the Macromedia CF tags/functions poster.  I've got it  
 on my
 wall, but the text is so small it's not really usable (unless I  
 want to
 get up from my chair and get really close).  I like it more for
 decoration.  :)

 Might save you the hassle of having to look it up, even in spite of
 how nice cfquickdocs is. :)

 Naw, nothing's better than cfquickdocs.  ;)


 


 [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:237668
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: S. Isaac, Wassup?

2006-04-13 Thread Aaron Rouse
This is exactly why I unsubscribed from cf-community a LONG time ago.

On 4/12/06, Dave Watts [EMAIL PROTECTED] wrote:

  Maybe I'm writing a career suicide note, but somehow I doubt
  that.

 No, just a giant, useless irrelevancy. My interest in the political
 opinions
 of developers is about the same as my interest in the CF skills of
 politicians - zero. I don't give a damn if you're all neo-Nazis. So
 please,
 please, for the love of all that's holy, keep this crap out of my inbox.
 Thanks!

 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:237669
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: 404 errors and old google data

2006-04-13 Thread lesmizz
I have a ColdFusion page that handles all IIS and CF 404 errors. In
that page, I use the 301 redirect code that Jacob listed. 

Would you mind sharing the way that page is set up for us please?

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

2006-04-13 Thread Denny Valliant
  Socially? As in people don't get out enought and meet in
  meat-space? Or our interactions, even on-line?

 Well I was thinking more about social infrastructure. Things like bank
 personell being able to help you in any way if their computers go out.
 I understand why it's become that way, but it'd be nice to think that
 there would be some kind of backup system, like they could make a
 phone call to another central authority for the bank who could verify
 your available funds, etc. Or that the personell at your own bank


This is exactly what that article about loose abstractions was
getting at.
See, the problem never goes away, no matter the level. Say there was
a backup system. Nothing says that that backup system will accomplish
it's goal.  Even if we go back to the days of paper, what happens when
they are all out of official forms?

To be clear, the human element is the only way to get around the
disconnect.  People are just lazy, and it's easier to say the
computer is down than call up Joe, have him dig up the paperwork,
etc., etc.,. But I feel in my heart of hearts that we don't NEED
computers to survive. Or paperwork, for that matter.

At least until we go borg. :-) It bugs the hell out of me, but who you
know still matters . If you were chums with the main bank dude,
you'll see a different aspect of the whole process than when you're
just joe schmoe.  I don't see that changing for a bit, if ever.
Guess it keeps people cordial. Eh. My jury is still out on that.

And all that aside, there are times when the system is down,
plain and simple. If you realize that, you can contain the leaks,
so to speak. Damn the circular nature of this idea. ;-)

I'll have to check out the Asylum book. Heard enough people
who's thoughts I appreciate, mention it.  Someday I'll take
advantage of Amazon or something similar for a book list.
The little note in my PDA just isn't cutting it no more. :-)

our code generators are for more specific purposes, that's true, but I
 still shy away from it on the thinking that it's liable to lead to
 handcuffing me in some way, re: what you just described about the old
 mac OS or the couple of examples above. Although there have been a
 couple of occasions on which I felt there was too much abstraction in
 something, more frequently I find myself being limited and/or required
 to do more work as a result of a lack of abstraction.


I think the real pain comes when you have no way to translate the
abstraction.  I don't see much difference, so long as you have a getter
and a setter of generated content, between a function that gets and
sets things in memory, vs. on-disk.

Like my attempt at using the single table per data type idea-  I had an
inkling that I might have to use DB tables at some point, whether
to extract/import data (why I first wrote in/out) or as a storage medium.
I was just sure to have relatively easy ways of transforming to and from
my preferred format and other more standard formats.

So long as you can do that, you can use pipes, and transform data
into whatever format you like. Within reason, I guess. ;-)

Abstractions are ideas. You can make a wrapper for something and
'vwalla', you abstracted it - If you wrote the wrapper right, right being
in a form that give you the most use. Even if you just did the same
stuff the thing being wrapped did, it's still an abstraction of sorts.
Just by the fact that it's now in your language, so to speak.

I guess it's more how good of an abstraction, than abstraction itself.
How good is a many factored equation,  involving opinions and
other riff-raff.  A good abstraction maybe spot on for one person,
and not even close to being done to a turn for another. Or I could
have the whole idea of abstraction wrong. Or a weird definition.
I'm thinking along the lines of a representation of something that is
easier to do stuff with than the actual thing.

But I really have to give them credit for
 making my life easier. :)


Same here. Of course I'm one to talk, I used to look down on
people who wrote code in Basic. It's hard not to stick to that
mentality.  But you could write yer put pixel 300x  faster in
ASM! :-)
Don't get me wrong, if you have a big enough snippets lib,
I think you could be pretty fast, even with low level stuff.

But I like how you can replace the built-in putpixel with
your optimized ASM routine. Seemed like it was the
best of both worlds. When I realized that, it all sorta...
Seems sorta like 6 of one... maybe not so much the
framework, as it is the mind behind the code... Eh.
What this has to do with anything... =-p

Oh there's certainly value in understanding some of the lower theory,
 but an individual programmer can only learn so much. Not that an
 individual programmer can't learn whatever they want to learn, but you
 know, there are only so many hours in a day. :) In the long-run, you
 have to weigh the value of having that low level insight against the
 value of getting work done during the hours that 

RE: CF and 64 Bit Windows 2K3

2006-04-13 Thread Leon Oosterwijk
I currently run jRun4 with the latest updater and java 1.5 on Linux. All
the articles out there talk about a windows based setup. Will I be able
to run in full 64-bit mode under linux?

Leon


-Original Message-
From: J W [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 12, 2006 3:55 PM
To: CF-Talk
Subject: Re: CF and 64 Bit Windows 2K3

I have two servers I just setup running windows x64 and coldfusion. I am
running them this way...

http://www.forta.com/blog/index.cfm/2006/2/6/Connecting-ColdFusion-MX-7-
To-64bit-IIS-6

Read the blog comments at the end for the proper execution code.
Microsofts workaround logic is flawed a bit.. (they put the true
statement in quotes where it shouldn't be)

Hope that helps.
Jeff

On 4/12/06, Nat Papovich [EMAIL PROTECTED] wrote:

 You can install Windows Server 2003 64-bit edition on your AMD 
 machine, and install ColdFusion by default, which will run in 32-bit 
 mode. We are running that setup here.

 The problem with a full 64-bit environment comes down to the need to 
 run on 64-bit JVM, which is only available from Sun and only for 1.5. 
 Java 1.5 won't run on Jrun 4 in 64-bit mode on AMD.

 Summaries here:

 http://developer.fusium.com/FUblog/index.cfm?mode=entryentry=C41FC689
 -AF6C-
 E817-54B71445686F5645

 And here:

 http://developer.fusium.com/FUblog/index.cfm?mode=entryentry=D9131167
 -B2BE-
 5564-6E639919E70ED1B5

 Good luck, and please add a comment to FUlog if you find anything 
 different.

 NAT





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

2006-04-13 Thread Rey Bango
I hear ya Gilbert. Definitely, choose whats best for your business man 
and keep chugging. :)

Good luck,

Rey...

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


cffile and names with spaces

2006-04-13 Thread Jerry Johnson
I have a simple form to upload an image.

I use cffile to upload the file.
I then use cffile.serverfile to get the name of the uploaded file

If the user uploads a file called space.gif, all is well.
If the user uploads a file called space station.gif, not so much.

The file saved to disk is space%20station.gif
The value in serverfile is space station.gif

And the two don't match.

I am obviously doing something wrong. Any hints?

Jerry Johnson

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237674
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: cffile and names with spaces

2006-04-13 Thread Gilbert Midonnet
Use a regex to remove the space and save it as spacestation.gif
#Replace(FORM.file, ,)#  should do the trick.



gil



-Original Message-
From: Jerry Johnson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 11:40 AM
To: CF-Talk
Subject: cffile and names with spaces

I have a simple form to upload an image.

I use cffile to upload the file.
I then use cffile.serverfile to get the name of the uploaded file

If the user uploads a file called space.gif, all is well.
If the user uploads a file called space station.gif, not so much.

The file saved to disk is space%20station.gif
The value in serverfile is space station.gif

And the two don't match.

I am obviously doing something wrong. Any hints?

Jerry Johnson



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237675
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: cffile and names with spaces

2006-04-13 Thread Adrian Lynch
Can't say I've ever seen spaces replaced with %20 in the file names on disk
before. Are you sure they're being renamed that way?

Adrian

-Original Message-
From: Jerry Johnson [mailto:[EMAIL PROTECTED]
Sent: 13 April 2006 16:40
To: CF-Talk
Subject: cffile and names with spaces


I have a simple form to upload an image.

I use cffile to upload the file.
I then use cffile.serverfile to get the name of the uploaded file

If the user uploads a file called space.gif, all is well.
If the user uploads a file called space station.gif, not so much.

The file saved to disk is space%20station.gif
The value in serverfile is space station.gif

And the two don't match.

I am obviously doing something wrong. Any hints?

Jerry Johnson


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237676
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: cffile and names with spaces

2006-04-13 Thread Ken Ferguson
replace(form.file, ,_,all) should do the trick.

 -Original Message-
 From: Jerry Johnson [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 13, 2006 11:40 AM
 To: CF-Talk
 Subject: cffile and names with spaces

 I have a simple form to upload an image.

 I use cffile to upload the file.
 I then use cffile.serverfile to get the name of the uploaded file

 If the user uploads a file called space.gif, all is well.
 If the user uploads a file called space station.gif, not so much.

 The file saved to disk is space%20station.gif
 The value in serverfile is space station.gif

 And the two don't match.

 I am obviously doing something wrong. Any hints?

 Jerry Johnson



 

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


CFUNITED-06 interview 15: Steve Rittler on Farcry 3.0

2006-04-13 Thread Michael Smith
In this issue of ColdFusion conference and training news:

* Announcing NEW CFUNITED Special Events! MiniMAX4 and Attendee Dinner
* Win a FREE extravagant lunch with your favorite speaker!
* Fusetalk Forum on CFUNITED! Talk to other Attendees.
* CFLive - Jeff Peters Thursday 12:30pm EST via breeze
* Coming Soon - NEW scheduler program
* Interview with Steve Rittler on Farcry 3.0

CFUNITED is the premier ColdFusion Conference near
Washington DC 6/28-7/1/06 (Four whole days!)
Check out speakers and topics at http://www.cfunited.com/

- Michael Smith
TeraTech, Inc

People should come to CFUNITED-06 because it is a great value, 
especially when you consider all
the experts you can connect with and all that you can learn.
-   Bernard Traphan (attendee)


Have 3 years of CF and love helping other developers?
http://www.teratech.com/index.cfm?go=About.JobDetailJobID=7

Conference and training news


* Upcoming TeraTech classes
Cost $59 - $349 see http://www.teratech.com/training/ for more details 
and registration

CF101 - Welcome to ColdFusion   May 2 2006
CF102 - Intro to ColdFusion May 9 2006
CF201 - Intermediate ColdFusion May 16 2006
FB101 - Intro to FuseboxMay 23 2006
FB201 - Intermediate FuseboxJun 6 2006

* Pre-conference classes
Cost $449 see http://www.cfunited.com/classes06.cfm for more details and 
registration
Location: Bethesda North Marriott and Conference Center

CU210 Leader of the Pack (strategies for building better software) - 
Simon Horwith - Monday 6/26
CU211 Fundamentals of Relational Database - Kurtis D. Leatham - Monday 6/26
CU212 ColdFusion Server Administration: JRun J2EE Deployment - Adam 
Wayne Lehman - Monday 6/26
CU213 Testing ColdFusion - John Paul Ashenfelter - Monday 6/26

CU214 Ajax intensive for ColdFusion Developers - Rob Gonda - Tuesday 6/27
CU215 XML, XPath, and XSLT for ColdFusion Developers - Jeff Peters - 
Tuesday 6/27
CU216 Domain Modeling - Hal Helms - Tuesday 6/27
CU217 Beyond Basic SQL for CF - Nate Nelson - Tuesday 6/27



CFUNITED NEWS!

* CFUNITED SPECIAL EVENTS
MiniMAX 4 http://www.minimaxconference.com/
Can't go to CFUNITED? Come to this FREE event!
Hosted by Adam Bell
Location: Brookside Room, Bethesda North Marriott Conference Center, 
Lower Level
Starting Time: 8:00pm

Attendee Get Together http://www.cfunited.com/attendee_dinner.cfm
See old CFUNITED buddies before the big show! Make new friends!
Hosted by CFDynamics
Location: Dave and Busters, Approximately 3 blocks from Bethesda North 
Marriott
Time: 5:30pm-7:30pm

* Win a free extravagant lunch with your favorite speaker! Anyone who 
has registered before May 1st
is eligible to win a lunch with his/her speaker of choice. Pick their 
brains while you enjoy a
delicious meal and dessert. HURRY and REGISTER NOW!

* 20% of our Pre-Conference Classes are full. Be sure to reserve your 
seat today!
http://www.cfunited.com/classes06.cfm

* The First 750 registrations will get our cool new laptop book bag, 
courtesy of our platinum and
gold sponsors! Don't settle for the tote, register today! See photo at
http://www.cfunited.com/bag.cfm

* Fusetalk Forum now on CFUNITED! Start talking to other register 
conference attendees today.
If you are registered as an attendee, login into 
http://www.cfunited.com/login.cfm
Discuss topics, arrange ride sharing or meeting at the event. Thanks 
Fusetalk for letting
CFUNITED use your cool message board! See http://www.fusetalk.com/ for 
more info.
-- Our Common Interest page is coming soon too!

* 490 people are already registered for CFUNITED-06 and the main hotel 
is full!
   (That is more people than the same time last year).

* We have overflow hotels:

Bethesda Marriott (approx. 1.5 miles from conference center)
$170 per night
5151 Pooks Hill Road Bethesda MD 20814
To make reservations call: 1.800.228.9290
Use the group code: CFU
The only dates that are provided under the group rate are June 27th - 
July 1st, 2006
A shuttle bus will be available back and forth from the conference 
center to this location.

Doubletree Hotel  Executive Meeting Center Rockville (approx. 2 miles 
from conference center)
$249 per night
1750 Rockville Pike, Rockville MD 20852
To make reservations call: 1-301-468-1100 or go to 
http://www.doubletree.com/
Use the group code: TER
The only dates that are provided under the group rate are June 27th - 
July 1st, 2006
The metro line is located across the street. Take the metro line from 
Twinbrook to White Flint for
the conference center.


*CFLive
Hear CFUNITED speakers from your office via breeze talks every Thursday 
12:30pm - 1pm EST. Learn
new tips and ask questions live.

CFLive! Jeff Peters XML and ColdFusion
Thursday, Apr 13, 12:30 PM US/Eastern
http://coldfusion.meetup.com/17/events/4894584/

Future talks
4/20/06 Simeon Bateman CFEclipse
4/27/06 Rob Gonda CLASS Ajax intensive for ColdFusion Developers
5/4/06 Steve Ritler Farcry
5/11/06 Maxim Porges Secrets of Top Notch Teams
5/18/06 John Paul 

RE: cffile and names with spaces

2006-04-13 Thread Adrian Lynch
The problem with renaming files is that someone might upload spaces in this
file.gif and another spaces  in  this  file.gif. Removing all spaces will
mean the file names are the same.

I tend to let CF rename the files and then store the file as the client
knows it and as the server knows it, both in the DB.

Adrian

-Original Message-
From: Gilbert Midonnet [mailto:[EMAIL PROTECTED]
Sent: 13 April 2006 17:05
To: CF-Talk
Subject: RE: cffile and names with spaces


Use a regex to remove the space and save it as spacestation.gif
#Replace(FORM.file, ,)#  should do the trick.



gil



-Original Message-
From: Jerry Johnson [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 13, 2006 11:40 AM
To: CF-Talk
Subject: cffile and names with spaces

I have a simple form to upload an image.

I use cffile to upload the file.
I then use cffile.serverfile to get the name of the uploaded file

If the user uploads a file called space.gif, all is well.
If the user uploads a file called space station.gif, not so much.

The file saved to disk is space%20station.gif
The value in serverfile is space station.gif

And the two don't match.

I am obviously doing something wrong. Any hints?

Jerry Johnso


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

2006-04-13 Thread Andrew Grosset
Oops! I guess my eyesite is not what it was...

Thanks Andrew... That's the wrong protocol tho. heh... I guess that's
the danger of acronyms, CFFTP looks a lot like CFHTTP when you're
scanning the list. :)

 I think this tag does:

 http://www.cftagstore.com/tags/cfxhttp5.cfm



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:237680
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


model glue/reactor question

2006-04-13 Thread rhymes with 'loud'
Hi all. I'm building an app using model glue and reactor. I'm having an issue 
with a function I wrote that returns my navigation to me, appropriately nested. 
The function is a recursive one, and works as designed, no problem there. BUT, 
it's painfully slow, even with debugging and reactor regeneration disabled. SO, 
I'm wondering if any of you can look at how I've approached this and tell me if 
anything jumps out at you as obviously inefficient. Thanks!

The specs:

End value returned:

div id=menu0Administration/div
div id=menu1view reports/div
div id=menu1search employees/div
div id=menu2easy on the bottom line/div
div id=menu1enrollment stats/div
div id=menu1system reports/div
div id=menu1Company profile/div
div id=menu1manage system users/div
div id=menu1message center/div
div id=menu0Enrollment/div
div id=menu1new hire enrollment/div
div id=menu1life status event/div
div id=menu1view current benefits/div
div id=menu0About Us/div
div id=menu0Cwes features/div
div id=menu1streamlined open enrollment/div
div id=menu1customizable reports/div
div id=menu1ease of use/div
div id=menu1one stop shop/div
div id=menu0Contact Us/div



My nav table structure: 

NavigationID (primary key, auto incrementing integer);
name (varchar, name of my nav item);
output_text (varchar, text to use for the nav item);
link (varchar, link for the nav item);
parentid (integer, ID of the parent navigation item (= navigationID));
navorder (tinyint, sort order for navigation)



The CFC performing the nav building:

cfcomponent displayname=Controller output=false hint=I am a sample 
model-glue controller. extends=ModelGlue.Core.Controller

cfset variables.reactor = application.recordfactory /
cfset variables.navcontainer =  /

cffunction name=Init access=Public 
returnType=controller.navcontroller output=false hint=I build a new 
SampleController
  cfargument name=ModelGlue required=true 
type=ModelGlue.ModelGlue /
  cfargument name=InstanceName required=true type=string /
  cfset super.Init(arguments.ModelGlue) /
  cfreturn this /
/cffunction

cffunction name=getNav access=public returnType=void 
output=false
cfargument name=event type=ModelGlue.Core.Event 
required=false
cfargument name=parentID type=numeric required=yes 
default=0 /
cfargument name=level type=numeric required=yes 
default=0 /
cfset var objNav =  /
cfset var objItem =  /
!--- grab all the elements whose parent is 
'arguments.parentID' ---
cfset objNav = 
variables.reactor.creategateway(navparent).getByFields(parentid=arguments.parentid)
 /
!--- loop through query ---

cfloop query=objNav
!--- add this item to global variable ---
cfset variables.navcontainer = variables.navcontainer 
 div id=menu  arguments.levelobjNav.name  /div  chr(10) 
/

!--- check for children. If there are any, call this 
function recursively ---
cfif 
variables.reactor.createrecord(navparent).load(navigationid=objNav.navigationid).getnavchilditerator().hasmore()
cfset getNav(parentID = 
objNav.navigationID, level = arguments.level + 1) /
/cfif
/cfloop
!--- loop finished ---

!--- return final variable ---
cfif arguments.level eq 0
cfset 
arguments.event.setValue(navtext,variables.navcontainer) /
/cfif
/cffunction

/cfcomponent

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237681
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: cffile and names with spaces

2006-04-13 Thread Casey Dougall
Can't you just use urlencode tag to view that image like normal.


img src=./PHOTOS/#URLENCODEDFORMAT(Image)#



On 4/13/06, Adrian Lynch [EMAIL PROTECTED] wrote:

 The problem with renaming files is that someone might upload spaces in
 this
 file.gif and another spaces  in  this  file.gif. Removing all spaces
 will
 mean the file names are the same.

 I tend to let CF rename the files and then store the file as the client
 knows it and as the server knows it, both in the DB.

 Adrian

 -Original Message-
 From: Gilbert Midonnet [mailto:[EMAIL PROTECTED]
 Sent: 13 April 2006 17:05
 To: CF-Talk
 Subject: RE: cffile and names with spaces


 Use a regex to remove the space and save it as spacestation.gif
 #Replace(FORM.file, ,)#  should do the trick.



 gil



 -Original Message-
 From: Jerry Johnson [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 11:40 AM
 To: CF-Talk
 Subject: cffile and names with spaces

 I have a simple form to upload an image.

 I use cffile to upload the file.
 I then use cffile.serverfile to get the name of the uploaded file

 If the user uploads a file called space.gif, all is well.
 If the user uploads a file called space station.gif, not so much.

 The file saved to disk is space%20station.gif
 The value in serverfile is space station.gif

 And the two don't match.

 I am obviously doing something wrong. Any hints?

 Jerry Johnso


 

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


Regular Expressions - Strip HTML tags. Please help!!!

2006-04-13 Thread cf coder
Hello Everybody,

I need your help with regular expressions. I'm trying to strip out HTML tags 
from a string to pass it to a flash movie.

I've found a script that does this but the problem is that I want to keep some 
html formatting specifically the following tags:
b, br, span, i, strong, div, p

Here is the code:

cfscript
function StripHTML(str) {
return REReplaceNoCase(str,[^]*,br,ALL);
}
/cfscript

cfset logtext = table
trtdpspan class=bodyThis is some example text/span/p/td/tr
trtdbFriday 17 march, 2006/bbr12:54 PM/td/tr
/table

cfset str = StripHTML(logtext)

The above script strips out the everything between the opening and closing 
angle brackets  and .

Is there any way to tell the regular expression to do the above but not process 
the following tags: b, br, span, i, strong, div, p


I would be really greatful if someone could post the regular expression to do 
this.

Best regards,
cfcoder

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

2006-04-13 Thread Andrew Grosset
Yeh, I'm going to have to get my eyes tested...!


Thanks Andrew... That's the wrong protocol tho. heh... I guess that's
the danger of acronyms, CFFTP looks a lot like CFHTTP when you're
scanning the list. :)

 I think this tag does:

 http://www.cftagstore.com/tags/cfxhttp5.cfm



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:237684
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: cffile and names with spaces

2006-04-13 Thread Ben Nadel
I think the only way that would happen is the file name was somehow passed
via a form GET as opposed to a form POST and had to get URL encoded
However, CFFile, as far as I know, will not work without a form POST. 

Make sure you are not specifying a file name in your CFFILE upload tag. Only
a destination folder. Rename it after it gets uploaded.

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

Sanders: Lightspeed too slow?
Helmet: Yes we'll have to go right to ludacris speed.
-Original Message-
From: Adrian Lynch [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 11:53 AM
To: CF-Talk
Subject: RE: cffile and names with spaces

Can't say I've ever seen spaces replaced with %20 in the file names on disk
before. Are you sure they're being renamed that way?

Adrian

-Original Message-
From: Jerry Johnson [mailto:[EMAIL PROTECTED]
Sent: 13 April 2006 16:40
To: CF-Talk
Subject: cffile and names with spaces


I have a simple form to upload an image.

I use cffile to upload the file.
I then use cffile.serverfile to get the name of the uploaded file

If the user uploads a file called space.gif, all is well.
If the user uploads a file called space station.gif, not so much.

The file saved to disk is space%20station.gif
The value in serverfile is space station.gif

And the two don't match.

I am obviously doing something wrong. Any hints?

Jerry Johnson




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237685
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: cffile and names with spaces

2006-04-13 Thread Jose Diaz
Hi Jerry

I would do something along the lines of using the following function:

ReplaceNoCase(space station.gif, ,_,ALL)

However if you want a unique name to the file, if your using a database and
referencing this image to say a specific news article you could prefix the
file with the database ID for that record and give it a name like so:

1_space_station,gif

Obviously removing the spaces heh hope this is along the lines of what your
trying to achieve.

All the best

Jose Diaz

On 4/13/06, Casey Dougall [EMAIL PROTECTED] wrote:

 Can't you just use urlencode tag to view that image like normal.


 img src=./PHOTOS/#URLENCODEDFORMAT(Image)#



 On 4/13/06, Adrian Lynch [EMAIL PROTECTED] wrote:
 
  The problem with renaming files is that someone might upload spaces in
  this
  file.gif and another spaces  in  this  file.gif. Removing all spaces
  will
  mean the file names are the same.
 
  I tend to let CF rename the files and then store the file as the client
  knows it and as the server knows it, both in the DB.
 
  Adrian
 
  -Original Message-
  From: Gilbert Midonnet [mailto:[EMAIL PROTECTED]
  Sent: 13 April 2006 17:05
  To: CF-Talk
  Subject: RE: cffile and names with spaces
 
 
  Use a regex to remove the space and save it as spacestation.gif
  #Replace(FORM.file, ,)#  should do the trick.
 
 
 
  gil
 
 
 
  -Original Message-
  From: Jerry Johnson [mailto:[EMAIL PROTECTED]
  Sent: Thursday, April 13, 2006 11:40 AM
  To: CF-Talk
  Subject: cffile and names with spaces
 
  I have a simple form to upload an image.
 
  I use cffile to upload the file.
  I then use cffile.serverfile to get the name of the uploaded file
 
  If the user uploads a file called space.gif, all is well.
  If the user uploads a file called space station.gif, not so much.
 
  The file saved to disk is space%20station.gif
  The value in serverfile is space station.gif
 
  And the two don't match.
 
  I am obviously doing something wrong. Any hints?
 
  Jerry Johnso
 
 
 

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237686
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: MX7 won't run after uninstalling Flex

2006-04-13 Thread Ali Awan
Dave,

 

Thanks for taking the time to answer my question.

However, I already wiped my MX7 installation and just re-installed it.

Luckily this was NOT on a production server, and everything is good now.

 

I wish I would have seen your post, before I did that.

Just so I could try that solution.

 

Looking back though, I think my error was in that I just overwrote the
wsconfig.jar.

But if I understand you correctly, what I should have done was:

1) run the current(meaning Flex Adapter updated version) wsconfig.jar with
the appropriate extensions to uninstall itself.

2) THEN copy the wsconfig.jar backup, over the Flex one.

3) Then re-run the newly copied wsconfig.jar to do its magic.

 

Am I correct in that assumption?

 

Anyway a good thing to know if I started dabbling with Flex again and need
to turn it on or off.

 

Just wanted to thank you Dave for being active on this list.  Although I
lurk a lot, your responses to many of the posts on here have helped me
immensely.

 

Thanks,

Ali

 

The wsconfig.jar file is just the installer for the web server
configuration

files. You will need to rerun the correct wsconfig.jar to reconnect CF with

your web server. Depending on what you've already done, you may need to

rerun the other wsconfig.jar to delete existing web server configuration

stuff first. 

 

Dave Watts, CTO, Fig Leaf Software

http://www.figleaf.com/



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


Auction Software.

2006-04-13 Thread Emmet McGovern
We've agreed to donate our time to a childrens hospital charity and one of
the things they will need is the ability to run an online auction over the
course of the summer.  Nothing fancy.  They will end the auction manually.

Does anyone know if something like this is available in cf or would someone
like to share some code?  :)

Emmet



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

2006-04-13 Thread Steve Kahn
Emmet 

Visual Auction (beyond software)
Able Commerce had one but I think it was discontinued.
There is one more less expensive option available but I donÂ’t have it on
hand.

Steve

-Original Message-
From: Emmet McGovern [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 2:06 PM
To: CF-Talk
Subject: Auction Software.

We've agreed to donate our time to a childrens hospital charity and one of
the things they will need is the ability to run an online auction over the
course of the summer.  Nothing fancy.  They will end the auction manually.

Does anyone know if something like this is available in cf or would someone
like to share some code?  :)

Emmet





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


ONe more possibly important piece of info...

2006-04-13 Thread rhymes with 'loud'
here's the portion of the reactor.xml file pertinent to the nav:

object name=Navigation/object
object name=Navigation alias=NavParent
  hasMany name=navChild
relate from=navigationID to=ParentID/relate
  /hasMany
/object

object name=Navigation alias=navChild
  hasOne name=NavParent
relate from=parentID to=NavigationID/relate
  /hasOne
/object

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

2006-04-13 Thread Jose Diaz
Hi Emmet

Steve is correct Able do produce a auction tool that was freeware a while
back, Im not sure what the charge is now, but I imagine it has a 30 day
trial period so worth a go.

Have you tryed the cf developers exchange ?


Jose Diaz


On 4/13/06, Steve Kahn [EMAIL PROTECTED] wrote:

 Emmet

 Visual Auction (beyond software)
 Able Commerce had one but I think it was discontinued.
 There is one more less expensive option available but I don't have it on
 hand.

 Steve

 -Original Message-
 From: Emmet McGovern [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 2:06 PM
 To: CF-Talk
 Subject: Auction Software.

 We've agreed to donate our time to a childrens hospital charity and one of
 the things they will need is the ability to run an online auction over the
 course of the summer.  Nothing fancy.  They will end the auction manually.

 Does anyone know if something like this is available in cf or would
 someone
 like to share some code?  :)

 Emmet





 

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


CFMBB 0.90 available

2006-04-13 Thread Rick Root
CFMBB 0.90 has been released and includes the following new features

- moved to phpBB style subscription model
- file attachments
- gravatar support (globally recognized avatar)
- support for gallery avatars
- user confirmation and admin activation features now work.

complete changelog:  http://www.cfmbb.org/CHANGELOG.TXT

This essentially makes 0.90 feature complete unless I decide to 
implement private messaging in the 1.0 release.  Everything else from 
here to 1.0 will be bug fixes and usability type stuff.

www.cfmbb.org

Rick

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


Need Cartweaver Discount Code

2006-04-13 Thread Steve Kahn
We need to offer Cartweaver with the ability to handle discount codes.
Anyone have anything for use or sale?

Thanks  

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.1/310 - Release Date: 4/12/2006
 

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

2006-04-13 Thread Tony
nevermind, i found this on Erat's blog...

http://www.talkingtree.com/blog/index.cfm?mode=entryentry=606852D1-45A6-2844-70F90BC67B9A2A8D

thanks anyway.
tw

On 4/13/06, Tony [EMAIL PROTECTED] wrote:
 hi there.

 im getting Session is invalid sometimes from some users
 of my system, and I found this for CMFX 6.1, but am wondering
 if it applies to CFMX 7

 http://www.bpurcell.org/blog/index.cfm?mode=entryentry=994

 thanks for any help/pointers.
 tony


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

2006-04-13 Thread blists
Search the archive, I posted how I did this with jscapes FTP Factory 
(http://www.jscape.com/sftp/index.html) , including code a few months back

At 11:38 AM 4/12/2006, you wrote:
We've got a requirement to use CFFTP via SSH (SFTP). Has anyone been able to
do this?



Thanks



Scott



Scott A. Stewart

Webmaster/ Developer

GlobalNet Services, Inc



  http://www.gnsi.com http://www.gnsi.com

11820 Parklawn Dr

Rockville, MD 20852

Voice: (301) 770-9610 x 335

Fax: (301) 770-9611



The information contained in this message may be privileged, confidential,
and protected from disclosure.  If the reader of this message is not the
intended recipient, or any employee or agent responsible for delivering this
message to the intended recipient, you are hereby notified that any
dissemination, distribution, or copying of this communication is strictly
prohibited.  If you have received this communication in error, please notify
us immediately by replying to the message and deleting it from your
computer.







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


Session is invalid

2006-04-13 Thread Tony
hi there.

im getting Session is invalid sometimes from some users
of my system, and I found this for CMFX 6.1, but am wondering
if it applies to CFMX 7

http://www.bpurcell.org/blog/index.cfm?mode=entryentry=994

thanks for any help/pointers.
tony

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237696
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: Regular Expressions - Strip HTML tags. Please help!!!

2006-04-13 Thread Rob Wilkerson
You may have to use a negative lookahead.  Try something like this:

(?!\/?(br|b|span|i|strong|div|p))[^]*

This hasn't been tested and is purely from memory, but I think that
(or something close to it) should remove any tag that is *NOT* the
open or closing tag of one you listed.

For more information on negative lookaheads you can look at the
livedocs or google 'regex negative lookahead'.

hth.

On 4/13/06, cf coder [EMAIL PROTECTED] wrote:
 Hello Everybody,

 I need your help with regular expressions. I'm trying to strip out HTML tags 
 from a string to pass it to a flash movie.

 I've found a script that does this but the problem is that I want to keep 
 some html formatting specifically the following tags:
 b, br, span, i, strong, div, p

 Here is the code:

 cfscript
 function StripHTML(str) {
 return REReplaceNoCase(str,[^]*,br,ALL);
 }
 /cfscript

 cfset logtext = table
 trtdpspan class=bodyThis is some example text/span/p/td/tr
 trtdbFriday 17 march, 2006/bbr12:54 PM/td/tr
 /table

 cfset str = StripHTML(logtext)

 The above script strips out the everything between the opening and closing 
 angle brackets  and .

 Is there any way to tell the regular expression to do the above but not 
 process the following tags: b, br, span, i, strong, div, p


 I would be really greatful if someone could post the regular expression to do 
 this.

 Best regards,
 cfcoder

 

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


How to determine JDBC driver version in use

2006-04-13 Thread Jamie Jackson
I don't know how to CONCLUSIVELY determine which version of the JDBC driver 
that a given instance of CFMX is using. I made up my own function (see below*), 
but I'm not completely sure it's trustworthy, because  of the surprising 
results I get.

Can somebody give me the authoritative way to determine the driver version IN 
USE?

Thanks,
Jamie

* Is this a valid way to get which version of the driver a given datasource is 
using? I made it up.
cffunction name=getJDBCDriverInfo output=false returntype=struct
 hint=returns a JDBC driver info
  cfargument name=dsn type=string required=yes
  cfargument name=catalog type=string required=yes
   hint=catalog(name) is, for example, the 'db' name (according to MSSQL) or 
the 'schema' name (according to ORACLE)
  cfargument name=username type=string required=yes
  cfargument name=password type=string required=yes 
  cfscript
  // declare local variables
  var dss = ;
  var conn = ;
  var mdata = ;
  
  /* create a datasource service */
  // Create a service factory
  dss = CreateObject(java, coldfusion.server.ServiceFactory);
  // get a datasource service
  dss = dss.getDataSourceService();
  
  /* configure connection */
  // set CF datasource name
  conn = dss.getDataSource(dsn);
  // set db login
  conn = conn.getConnection(username,password);
  
  // get metadata from connection
  mdata = conn.getMetaData();  

  // provide some info about the driver
  driverSct[MajorVersion] = mdata.getDriverMajorVersion();
  driverSct[MinorVersion] = mdata.getDriverMinorVersion();
  driverSct[DriverVersion] = mdata.getDriverVersion();
  driverSct[Name] = mdata.getDriverName();
  /cfscript
  !--- cfdump var=#mdata# ---
  !--- return the query of metadata ---
  cfreturn driverSct
  
/cffunction

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237698
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: Regular Expressions - Strip HTML tags. Please help!!!

2006-04-13 Thread Jerry Johnson
Not sure if this has been suggested (coming in late), but this
function works well.

http://www.cflib.org/udf.cfm?ID=774 (Thanks Isaac)

Not a simple regex, but it gets the job done.

 On 4/13/06, cf coder [EMAIL PROTECTED] wrote:
  Hello Everybody,
 
  I need your help with regular expressions. I'm trying to strip out HTML 
  tags from a string to pass it to a flash movie.
 
  I've found a script that does this but the problem is that I want to keep 
  some html formatting specifically the following tags:
  b, br, span, i, strong, div, p

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237699
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: model glue/reactor question

2006-04-13 Thread Jamie Jackson
I haven't scrutinized your code, but when I can't get a troublesome routine to 
run any more quickly, I often cache its result in a persistent scope 
(application is my favorite). That's one way to sweep it under the rug.

Jamie

 Hi all. I'm building an app using model glue and reactor. I'm having 
 an issue with a function I wrote that returns my navigation to me, 
 appropriately nested. The function is a recursive one, and works as 
 designed, no problem there. BUT, it's painfully slow, even with 
 debugging and reactor regeneration disabled. SO, I'm wondering if any 
 of you can look at how I've approached this and tell me if anything 
 jumps out at you as obviously inefficient. Thanks!
 
 The specs:
 
 End value returned:
 
 div id=menu0Administration/div
 div id=menu1view reports/div
 div id=menu1search employees/div
 div id=menu2easy on the bottom line/div
 div id=menu1enrollment stats/div
 div id=menu1system reports/div
 div id=menu1Company profile/div
 div id=menu1manage system users/div
 div id=menu1message center/div
 div id=menu0Enrollment/div
 div id=menu1new hire enrollment/div
 div id=menu1life status event/div
 div id=menu1view current benefits/div
 div id=menu0About Us/div
 div id=menu0Cwes features/div
 div id=menu1streamlined open enrollment/div
 div id=menu1customizable reports/div
 div id=menu1ease of use/div
 div id=menu1one stop shop/div
 div id=menu0Contact Us/div
 
 
 
 My nav table structure: 
 
 NavigationID (primary key, auto incrementing integer);
 name (varchar, name of my nav item);
 output_text (varchar, text to use for the nav item);
 link (varchar, link for the nav item);
 parentid (integer, ID of the parent navigation item (= 
 navigationID));
 navorder (tinyint, sort order for navigation)
 
 
 
 The CFC performing the nav building:
 
 cfcomponent displayname=Controller output=false hint=I am a 
 sample model-glue controller. extends=ModelGlue.Core.Controller
 
   cfset variables.reactor = application.recordfactory /
   cfset variables.navcontainer =  /
   
   cffunction name=Init access=Public returnType=controller.
 navcontroller output=false hint=I build a new SampleController
 cfargument name=ModelGlue required=true type=ModelGlue.
 ModelGlue /
 cfargument name=InstanceName required=true type=string /
 cfset super.Init(arguments.ModelGlue) /
 cfreturn this /
   /cffunction
   
   cffunction name=getNav access=public returnType=void 
 output=false
   cfargument name=event type=ModelGlue.Core.Event 
 required=false
   cfargument name=parentID type=numeric required=yes 
 default=0 
 /
   cfargument name=level type=numeric required=yes 
 default=0 /
   cfset var objNav =  /
   cfset var objItem =  /
   !--- grab all the elements whose parent is 
 'arguments.parentID' 
 ---
   cfset objNav = variables.reactor.creategateway(navparent).
 getByFields(parentid=arguments.parentid) /
   !--- loop through query ---
 
   cfloop query=objNav
   !--- add this item to global variable ---
   cfset variables.navcontainer = variables.navcontainer 
  div 
 id=menu  arguments.levelobjNav.name  /div  
 chr(10) /
   
   !--- check for children. If there are any, call this 
 function 
 recursively ---
   cfif 
 variables.reactor.createrecord(navparent).
 load(navigationid=objNav.navigationid).getnavchilditerator().
 hasmore()
   cfset getNav(parentID = 
 objNav.navigationID, level = arguments.
 level + 1) /
   /cfif
   /cfloop
   !--- loop finished ---
   
   !--- return final variable ---
   cfif arguments.level eq 0
   cfset 
 arguments.event.setValue(navtext,variables.navcontainer) 
 /
   /cfif
   /cffunction
 
/cfcomponent

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

2006-04-13 Thread Mark A Kruger
Run away from that Able option... Very bad indeed. We have some extensive
experience with it... None of it pleasant :) 

-Original Message-
From: Jose Diaz [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 1:45 PM
To: CF-Talk
Subject: Re: Auction Software.

Hi Emmet

Steve is correct Able do produce a auction tool that was freeware a while
back, Im not sure what the charge is now, but I imagine it has a 30 day
trial period so worth a go.

Have you tryed the cf developers exchange ?


Jose Diaz


On 4/13/06, Steve Kahn [EMAIL PROTECTED] wrote:

 Emmet

 Visual Auction (beyond software)
 Able Commerce had one but I think it was discontinued.
 There is one more less expensive option available but I don't have it 
 on hand.

 Steve

 -Original Message-
 From: Emmet McGovern [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 2:06 PM
 To: CF-Talk
 Subject: Auction Software.

 We've agreed to donate our time to a childrens hospital charity and 
 one of the things they will need is the ability to run an online 
 auction over the course of the summer.  Nothing fancy.  They will end the
auction manually.

 Does anyone know if something like this is available in cf or would 
 someone like to share some code?  :)

 Emmet





 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237701
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: Need Cartweaver Discount Code

2006-04-13 Thread Will Tomlinson
We need to offer Cartweaver with the ability to handle discount codes.
Anyone have anything for use or sale?


Maybe this would do it

http://www.datapacks.com/store/Details.cfm?ProdID=48category=0

Will

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237702
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: Regular Expressions - Strip HTML tags. Please help!!!

2006-04-13 Thread S . Isaac Dealey
Yeah I hawked it. :P

Thanks Jerry.

I love that people like this function so much, it makes me smile
whenever I see it recommended, because I know I've helped them. :)

I wrote an article for CFDJ that should be in the next issue(?) about
an alternative approach of using XML and a CFC to handle user-provided
xhtml content and remove tags.

 Not sure if this has been suggested (coming in late), but
 this
 function works well.

 http://www.cflib.org/udf.cfm?ID=774 (Thanks Isaac)

 Not a simple regex, but it gets the job done.

 On 4/13/06, cf coder [EMAIL PROTECTED] wrote:
  Hello Everybody,
 
  I need your help with regular expressions. I'm trying
  to strip out HTML tags from a string to pass it to a
  flash movie.
 
  I've found a script that does this but the problem is
  that I want to keep some html formatting specifically
  the following tags:
  b, br, span, i, strong, div, 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:237703
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: MX7 won't run after uninstalling Flex

2006-04-13 Thread Dave Watts
 Looking back though, I think my error was in that I just 
 overwrote the wsconfig.jar.
 
 But if I understand you correctly, what I should have done was:
 
 1) run the current(meaning Flex Adapter updated version) 
 wsconfig.jar with the appropriate extensions to uninstall itself.
 
 2) THEN copy the wsconfig.jar backup, over the Flex one.
 
 3) Then re-run the newly copied wsconfig.jar to do its magic.
 
 Am I correct in that assumption?

Yes, that should work, I think.

 Just wanted to thank you Dave for being active on this list.  
 Although I lurk a lot, your responses to many of the posts on 
 here have helped me immensely.

You're welcome, of course!

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:237704
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 and 64 Bit Windows 2K3

2006-04-13 Thread Jim Curran
Thank you!

- j 

-Original Message-
From: Nat Papovich [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 12, 2006 12:27 PM
To: CF-Talk
Subject: RE: CF and 64 Bit Windows 2K3

You can install Windows Server 2003 64-bit edition on your AMD machine, and
install ColdFusion by default, which will run in 32-bit mode. We are running
that setup here.

The problem with a full 64-bit environment comes down to the need to run on
64-bit JVM, which is only available from Sun and only for 1.5. Java 1.5
won't run on Jrun 4 in 64-bit mode on AMD.

Summaries here:
http://developer.fusium.com/FUblog/index.cfm?mode=entryentry=C41FC689-AF6C-
E817-54B71445686F5645

And here:
http://developer.fusium.com/FUblog/index.cfm?mode=entryentry=D9131167-B2BE-
5564-6E639919E70ED1B5

Good luck, and please add a comment to FUlog if you find anything different.

NAT





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

2006-04-13 Thread Damien McKenna
 -Original Message-
 From: blists [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 13, 2006 3:10 PM
 
 Search the archive, I posted how I did this with jscapes FTP Factory 
 (http://www.jscape.com/sftp/index.html) , including code a 
 few months back

Nice, but it costs $600 :-\

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

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237706
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: Regular Expressions - Strip HTML tags. Please help!!!

2006-04-13 Thread Cedric Villat
CFLib.org is your friend :) Check out the function called StripTags. It does 
exactly what you want.

http://www.cflib.org/udf.cfm?ID=774

Cedric

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237707
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 determine JDBC driver version in use

2006-04-13 Thread S . Isaac Dealey
It looks pretty correct to me. (Although with the CFAdmin API there
may be another way to get the metadata object without instantiating
the undocumented serviceFactory object.) What kind of results are you
seeing?

 I don't know how to CONCLUSIVELY determine which version
 of the JDBC driver that a given instance of CFMX is using.
 I made up my own function (see below*), but I'm not
 completely sure it's trustworthy, because  of the
 surprising results I get.

 Can somebody give me the authoritative way to determine
 the driver version IN USE?

 Thanks,
 Jamie


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:237708
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 CFFTP Via SSH

2006-04-13 Thread Denny Valliant
On 4/13/06, James Holmes [EMAIL PROTECTED] wrote:

 Can't an SSH tunnel be set up so that the standard FTP used by CF goes
 via the tunnel?


Yeah, that would work too, I bet.  Not as nifty as an Open Source java
solution tho. ;-)

Another option is skipping the cfftp, and setting up (if you're on linux,
easy) a passwordless SSH connection and rsync. I like rsync because it only
copies the stuff that's been changed, and you can filter stuff out and
whatnot.

Not trivial to set up tho, and requires cygwin (there's a windows rsync that
has ssh and rsycn alone, easier to install than the whole cygwin package -
I'd actually be interested in hearing about people running CF on windows
machines with cygwin installed).  Plus, you'd probably need cfexecute
available, or set up a scheduled nightly copy or something.

I've been wanking on a Eclipse plugin for SFTP... if I can extract anything
from there, I'll post some code somewhere.  ..dunno, SSH is a bit more
complicated than FTP, could take a while. ;-)
:denner


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237709
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: S. Isaac, Wassup?

2006-04-13 Thread Claude Schneegans
 the CF skills of politicians

May be that wouldn't be such a bad idea after 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:237710
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


cfexecute buffer causing hangs?

2006-04-13 Thread Andrew Tyrone
Hi everyone,

In my continued work with the Verity Vspider I came across something
interesting today.  It seems that the cfexecute tag has an issue with
buffering output that is returned from the spawned process.  This is CFMX
7.0.1 Enterprise running on Windows 2003 Server Standard.  I searched high
and low and found a lot of people that had and have issues with cfexecute,
but a good amount weren't using the tag and its arguments in the correct
way.  That being said, I DID find a problem that I emailed product support
about.

I can't say this with absolute certainty about all cfexecute command-line
processes that output a significant amount of data, but I did discover that
after a certain amount of log data output to the console, the vspider
process just hangs.  I suspect this would be the case with other programs,
too.  As I was reading the forums and other areas on the web, I noticed
people with this same problem that were running apps like zip programs that
would verbosely output all the actions being taken.

There is a specific command in a vspider config file that you can use to
specify the type of logging.  The initial command I was using is: -loglevel
verbose. Changing it to: -loglevel nostdout took care of the hanging
process!

I hope this might help others having this problem with this or other
applications, or at least bring attention to a potential bug.  I am pretty
sure it's a bug but haven't tested any other apps except vspider, although
removing the standard output to the console with the above switch did take
care of the problem, which tells me it's definitely not related to the
vspider program itself.

Andy



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237711
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 determine JDBC driver version in use

2006-04-13 Thread Rob Wilkerson
I think this may be what you need.

http://www.bpurcell.org/index.cfm?mode=entryentry=988

On 4/13/06, Jamie Jackson [EMAIL PROTECTED] wrote:
 I don't know how to CONCLUSIVELY determine which version of the JDBC driver 
 that a given instance of CFMX is using. I made up my own function (see 
 below*), but I'm not completely sure it's trustworthy, because  of the 
 surprising results I get.

 Can somebody give me the authoritative way to determine the driver version IN 
 USE?

 Thanks,
 Jamie

 * Is this a valid way to get which version of the driver a given datasource 
 is using? I made it up.
 cffunction name=getJDBCDriverInfo output=false returntype=struct
  hint=returns a JDBC driver info
   cfargument name=dsn type=string required=yes
   cfargument name=catalog type=string required=yes
hint=catalog(name) is, for example, the 'db' name (according to MSSQL) or 
 the 'schema' name (according to ORACLE)
   cfargument name=username type=string required=yes
   cfargument name=password type=string required=yes
   cfscript
   // declare local variables
   var dss = ;
   var conn = ;
   var mdata = ;

   /* create a datasource service */
   // Create a service factory
   dss = CreateObject(java, coldfusion.server.ServiceFactory);
   // get a datasource service
   dss = dss.getDataSourceService();

   /* configure connection */
   // set CF datasource name
   conn = dss.getDataSource(dsn);
   // set db login
   conn = conn.getConnection(username,password);

   // get metadata from connection
   mdata = conn.getMetaData();

   // provide some info about the driver
   driverSct[MajorVersion] = mdata.getDriverMajorVersion();
   driverSct[MinorVersion] = mdata.getDriverMinorVersion();
   driverSct[DriverVersion] = mdata.getDriverVersion();
   driverSct[Name] = mdata.getDriverName();
   /cfscript
   !--- cfdump var=#mdata# ---
   !--- return the query of metadata ---
   cfreturn driverSct

 /cffunction

 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237712
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 determine JDBC driver version in use

2006-04-13 Thread Jamie Jackson
Here's what's goofy about that: I think that the native MySQL drivers (not 
mentioned in the blog) have a different package/class name than the latest ones 
from MySQL. I don't know if I could prove anything from a similar experiment, 
but maybe...

Jamie

I think this may be what you need.

http://www.bpurcell.org/index.cfm?mode=entryentry=988

On 4/13/06, Jamie Jackson [EMAIL PROTECTED] wrote:


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237713
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: Need Help Installing Plugins for Eclipse IDE

2006-04-13 Thread Aaron Roberson
On 4/12/06, Munson, Jacob [EMAIL PROTECTED] wrote:
 It's also worth noting that some plugins don't have a perspective.  You
 properly install it, but you can't find the perspective.  Sometimes you
 will see new options for the plugin in preferences, but sometimes it
 just works when you open the appropriate type of file.

Thanks guys, Jacob spotted the problem.

-Aaron

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237714
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: cfexecute buffer causing hangs?

2006-04-13 Thread Dave Watts
 I can't say this with absolute certainty about all cfexecute 
 command-line processes that output a significant amount of 
 data, but I did discover that after a certain amount of log 
 data output to the console, the vspider process just hangs.  
 I suspect this would be the case with other programs, too.  
 As I was reading the forums and other areas on the web, I 
 noticed people with this same problem that were running apps 
 like zip programs that would verbosely output all the actions 
 being taken.

How about if you pipe the output to a file in your command string?

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:237715
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


Regular Expression Help

2006-04-13 Thread cf coder
Hello Everybody,

I'm having problems writing a regular expression. I'm trying to pass a string 
to flash and want to strip off and replace the html tags with a br tag but 
also leave any b, span, i, strong, div, br, and p tags. 

This is what I've done so far:

cfscript
function StripHTML(str) {
return REReplaceNoCase(str,[^]*,br,ALL);
}
/cfscript

cfse logtext = tabletrtdpThis is not real text/p/td/tr
trtdbFriday 17 march, 2006/b/td/tr/table

cfset str = StripHTML(logtext)

The above function strips out any html tag and replaces it with a br tag. 
This is fine but I want to keep the span, i, b, strong, div, br, 
p tags and dont know how to tell it to ignore these tags and replace 
everything else with a  and  angle brackets.

Can someone please help me with this. I am just not good at this sort of things.

Thanks,
cfcoder

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237716
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 to determine JDBC driver version in use

2006-04-13 Thread Jamie Jackson
It looks pretty correct to me. (Although with the CFAdmin API there
may be another way to get the metadata object without instantiating
the undocumented serviceFactory object.) What kind of results are you
seeing?

Well, Sir Isaac Dealey (sorry, that's how I have always read your name ;-), I'm 
glad you asked...

What I get is:
DriverVersion   2.0.11
NameMark Matthews' MySQL Driver

If this is true, it stuns me in several ways:
1. I thought that version 3.1.8 was installed.
2. I suspect that the reported driver is the CFMX 6.1 native MySQL driver. :-O
3. The datasource WORKS with our 5.x databases, which I *think* isn't supposed 
to be true of the native drivers (due to authentication protocols, among 
potential others).

I can't reconcile 1, 2, and 3, and I wish you had told me my function was all 
wrong.

Can someone help me make sense of this?

Also, where can I find the *documented* CFAdmin API of which you write? I'd 
love to have a peek at the documented clockwork of CFMX. I've only delved into 
the dark side for lack of documentation.

Thanks,
Jamie

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237717
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: Need Cartweaver Discount Code

2006-04-13 Thread Jordan Michaels
Steve Kahn wrote:
 We need to offer Cartweaver with the ability to handle discount codes.
 Anyone have anything for use or sale?
 
 Thanks  
 


Vivio Technologies just added coupon code functionality to two different
sites using cartweaver. (rempub.com and babyschoice.com)

We added support for the following features:

- completely user-defined coupon codes
- coupon code start and end dates
- dollar-off coupons (entire order)
- percent-off coupons (entire order)
- free shipping coupons

Please contact us off list if you're interested in having us do the same
for you. =)

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

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237718
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: cfexecute buffer causing hangs?

2006-04-13 Thread Jamie Jackson
Hmm, I'm probably one of the people you've seen while Googling the subject. 
While I haven't tried cfexecuting the vspider stuff from CFMX7, I've had 
significant problems with it from CF5.

Are you saying that you had problems when you didn't specify an output file or, 
or when you did? I wasnt' quite sure what you meant by the console in this 
context.

Dumping the output to a browser had some fairly well known limitations, but I'm 
interested in knowing whether there are also problems even when specifying an 
output file.

Thanks,
Jamie

Hi everyone,

In my continued work with the Verity Vspider I came across something
interesting today.  It seems that the cfexecute tag has an issue with
buffering output that is returned from the spawned process.  This is CFMX
7.0.1 Enterprise running on Windows 2003 Server Standard.  I searched high
and low and found a lot of people that had and have issues with cfexecute,
but a good amount weren't using the tag and its arguments in the correct
way.  That being said, I DID find a problem that I emailed product support
about.

I can't say this with absolute certainty about all cfexecute command-line
processes that output a significant amount of data, but I did discover that
after a certain amount of log data output to the console, the vspider
process just hangs.  I suspect this would be the case with other programs,
too.  As I was reading the forums and other areas on the web, I noticed
people with this same problem that were running apps like zip programs that
would verbosely output all the actions being taken.

There is a specific command in a vspider config file that you can use to
specify the type of logging.  The initial command I was using is: -loglevel
verbose. Changing it to: -loglevel nostdout took care of the hanging
process!

I hope this might help others having this problem with this or other
applications, or at least bring attention to a potential bug.  I am pretty
sure it's a bug but haven't tested any other apps except vspider, although
removing the standard output to the console with the above switch did take
care of the problem, which tells me it's definitely not related to the
vspider program itself.

Andy

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237719
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: Version control - how to?

2006-04-13 Thread Troy Simpson
John,
Great reply.  Thanks for posting it.
Sincerely,
Troy

On 3/26/06, John Paul Ashenfelter [EMAIL PROTECTED] wrote:
 On 3/26/06, Russ [EMAIL PROTECTED] wrote:
  We use subversion to manage a large codebase, and it has worked well so far.
  We use it with the TourtoiseSVN, which integrates into windows explorer and
  makes checking in/out and other source control features VERY easy.  We do
  seem to be hitting a wall as far as figuring out how to do QA, and defect
  tracking.  We might be installing TRAC or something similar for integrated
  defect tracking, but I'm still looking for a good 3 tier deployment QA
  solution.  For example:
 
  All the changes are done on the dev server (for most companies, it would be
  their own workspace, but we're using a single dev server, since our codebase
  is so large).

 Ok, here you're all working in the trunk to use a standard SCC idiom.

  Once the changes are tested on the dev server, they should be deployed to
  the QA server.

 Here you probably want to *tag* the changes, usually with a
 bug-tracking report. Then you deploy the tagged version to QA. In SVN
 you could use a post-commit hook to auto-deploy to QA when a new tag
 is created or do it manually if you need to coordinate among many
 people.

  Once the changes have been QA'ed and approved, they are committed and
  deployed to the production server.

 Here you're tagging again, but as a release. You may or may not push
 it to a branch, but it sounds like everything is changing so often
 that there's no point to branching. There'd need to be a lot more
 details to determine the right solution.

 
  I can't seem to figure out how to do this kind of workflow with Subversion.
  It doesn't look like there are any front end tools for it that allow for
  this sort of thing.

 This is all about tagging, branching, and deployment. I'd recommend
 the Pragmatic Programmer's book on Subversion to get started.

  Are there other Source Control systems that allow for something like this?

 They all allow for it -- you just need to automate the process using
 something like Ant or one of the higher-end Ant based tools (Antfarm,
 CruiseControl, etc). There's more in the Pragmatic Programmer's book
 on Project Automation.

 plugCome see me at CFUnited -- agility, testing, and more./plug
 --
 John Paul Ashenfelter
 CTO/Transitionpoint
 (blog) http://www.ashenfelter.com
 (email) [EMAIL PROTECTED]

 

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

2006-04-13 Thread Alan Rother
I almost hate to mention this, but have you considered just using ebay?

Seems like it would be alot easier and far less time consuming than getting
your own system up and running.

I mean, why re-invent the wheel

--
Alan Rother
Macromedia Certified Advanced ColdFusion MX 7 Developer


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237721
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: cfexecute buffer causing hangs?

2006-04-13 Thread Andrew Tyrone
 -Original Message-
 From: Jamie Jackson [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, April 13, 2006 7:56 PM
 To: CF-Talk
 Subject: Re: cfexecute buffer causing hangs?
 
 Hmm, I'm probably one of the people you've seen while 
 Googling the subject. While I haven't tried cfexecuting the 
 vspider stuff from CFMX7, I've had significant problems with 
 it from CF5.
 
 Are you saying that you had problems when you didn't specify 
 an output file or, or when you did? I wasnt' quite sure what 
 you meant by the console in this context.
 
 Dumping the output to a browser had some fairly well known 
 limitations, but I'm interested in knowing whether there are 
 also problems even when specifying an output file.

Jamie,

Hello!  I did see your post and was thinking about emailing you directly
although I didn't see your email address anywhere.  I might've been just too
crazy at the time and overlooked it, though.

Basically what I am saying is that I specified an output file, but there
must be some buffering issue when a certain amount of output is exceeded.
Using vspider.exe from a command prompt worked fine, using the same exact
config file that I was using with cfexecute.  Only when I changed the
-loglevel argument in the vspider command file from verbose to nostdout
did it work, telling me that most likely any app that produces too much
output to stdout will hang.  When vspider hung, cpu usage for both jrun and
vspider.exe went down to 0, so it wasn't a problem as far as processor usage
goes.

Here is the cfexecute code which works fine now that the -loglevel is set:

cfexecute 
name=#VSpiderPath#vspider.exe 
arguments=-cmdfile #CommandFilePath# 
outputfile=#TempDir#vspiderlog.txt 
timeout=600
/cfexecute

What led me to the belief that it had to do with some type of buffering was
that fact that I didn't have any problems running other command line apps,
like netstat, ping, etc.  I still haven't tested on 6.1, only 7.0.1.

If you have any specific questions feel free to email me off-list.

Andy



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


catching a query based cfmail ...

2006-04-13 Thread Rick Root
If I'm using cfmail with the query attribute, populating the to address 
dynamically... how to I catch an individual exception?

Like if one row in the query contains an invalid email address that 
throws a cfmail exception.

If i put try/catch around the whole cfmail tag set it'll actually stop 
the whole mailing...

I'm assuming there's no way to do what I want to do without axing the 
query attribute and doing something like

cfloop query=foo
cftry
cfmail from=[EMAIL PROTECTED] to=#email# subject=foo
  ...
/cfmail
cfcatch type=any/cfcatch
/cftry
/cfloop


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237724
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: mail to fax?

2006-04-13 Thread Eric Dawson
interfax.net - used and recommend.

-Original Message-
From: Larry Lyons [mailto:[EMAIL PROTECTED] 
Sent: April 5, 2006 11:06 AM
To: CF-Talk
Subject: Re: OT: mail to fax?

You may want to look at efax.com. They accept an email with an attachments,
and then send the attachment as a fax.

hth,

larry

--
Larry C. Lyons
Web Analyst
BEI Resources
American Type Culture Collection
email: llyons(at)atcc(dot)org
tel: 703.365.2700.2678
--

I've got a client with a loan application form on her site. She'd like the
processing of the form to be sent to her as a fax. Not really sure why, but
does anyone know of, or have, something like this?

I think it can be done, but I've never used anything of this nature before.

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



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237723
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: Regular Expressions - Strip HTML tags. Please help!!!

2006-04-13 Thread Jose Diaz
HI cfCoder

You could try something along these lines:

reReplaceNoCase(str,(font)[^]*,,all)
replaceNoCase(returnStr,/font,,all)

You could then be selective to the tags you wish to strip out.

Hope this helps.

All the best

Jose Diaz


On 4/13/06, cf coder [EMAIL PROTECTED] wrote:

 Hello Everybody,

 I need your help with regular expressions. I'm trying to strip out HTML
 tags from a string to pass it to a flash movie.

 I've found a script that does this but the problem is that I want to keep
 some html formatting specifically the following tags:
 b, br, span, i, strong, div, p

 Here is the code:

 cfscript
 function StripHTML(str) {
 return REReplaceNoCase(str,[^]*,br,ALL);
 }
 /cfscript

 cfset logtext = table
 trtdpspan class=bodyThis is some example text/span/p/td/tr
 trtdbFriday 17 march, 2006/bbr12:54 PM/td/tr
 /table

 cfset str = StripHTML(logtext)

 The above script strips out the everything between the opening and closing
 angle brackets  and .

 Is there any way to tell the regular expression to do the above but not
 process the following tags: b, br, span, i, strong, div, p


 I would be really greatful if someone could post the regular expression to
 do this.

 Best regards,
 cfcoder

 

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


RE: catching a query based cfmail ...

2006-04-13 Thread Dawson, Michael
I think you are totally correct.  You will need to do the CFLOOP thing
to be able to catch an individual CFMAIL exception.

M!ke 

-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 9:07 PM
To: CF-Talk
Subject: catching a query based cfmail ...

If I'm using cfmail with the query attribute, populating the to address
dynamically... how to I catch an individual exception?

Like if one row in the query contains an invalid email address that
throws a cfmail exception.

If i put try/catch around the whole cfmail tag set it'll actually stop
the whole mailing...

I'm assuming there's no way to do what I want to do without axing the
query attribute and doing something like

cfloop query=foo
cftry
cfmail from=[EMAIL PROTECTED] to=#email# subject=foo
  ...
/cfmail
cfcatch type=any/cfcatch
/cftry
/cfloop

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237726
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 determine JDBC driver version in use

2006-04-13 Thread S . Isaac Dealey
It looks pretty correct to me. (Although with the CFAdmin
API there
may be another way to get the metadata object without
instantiating
the undocumented serviceFactory object.) What kind of
results are you
seeing?

 Well, Sir Isaac Dealey (sorry, that's how I have always
 read your name ;-), I'm glad you asked...

No need for apologies, most folks seem to read it that way. Except
Amazon resellers who read it Susan Isaac Dealey. :)

 What I get is:
 DriverVersion   2.0.11
 NameMark Matthews' MySQL Driver

 If this is true, it stuns me in several ways:
 1. I thought that version 3.1.8 was installed.
 2. I suspect that the reported driver is the CFMX 6.1
 native MySQL driver. :-O
 3. The datasource WORKS with our 5.x databases, which I
 *think* isn't supposed to be true of the native drivers
 (due to authentication protocols, among potential others).

 I can't reconcile 1, 2, and 3, and I wish you had told me
 my function was all wrong.

Sorry to disappoint you. Do you have access to the CF Administrator?
Can you verify what driver it shows to be in use, whether it's the
driver that shipped with it or a 3rd party type 4 JDBC driver (which
is what I've installed for MySQL on previous versions)? I wasn't under
the impression a MySQL driver shipped with RedSky, although I've been
wrong before. :)

 Can someone help me make sense of this?

 Also, where can I find the *documented* CFAdmin API of
 which you write? I'd love to have a peek at the documented
 clockwork of CFMX. I've only delved into the dark side
 for lack of documentation.

I don't think it was introduced until Blackstone (CF7) so
unfortunately I don't think you'll be able to use it yet. However when
you've got some free minutes, you can read up on it here in
preparation for an upgrade:

http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/co
mmon/html/wwhelp.htm?context=ColdFusion_Documentationfile=1734.ht
m

Oddly enough I can't find where this document appears in the table of
contents.


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:237727
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 CFFTP Via SSH

2006-04-13 Thread Billy Jamme
Hey Scott,
I ran into this exact issue last week.  

Check out:

http://www.glub.com/products/secureftp/

It's a java package that runs quite nicely in a command line.  As an added 
bouns it has batch scripting. 

The way I implemented it was to dynamically generate a batch file using cffile, 
then using cfexecute to launch the .bat.  Total time to code: 45 mins.  Works 
quite nicely for a cludge.

As it's a pure java app, I've also been tinkering with it to try and integrate 
into CF.  If I ever figure it out, I'll post the code.

--ik

We've got a requirement to use CFFTP via SSH (SFTP). Has anyone been able to
do this?

 

Thanks

 

Scott

 

Scott A. Stewart

Webmaster/ Developer

GlobalNet Services, Inc

 

 http://www.gnsi.com http://www.gnsi.com

11820 Parklawn Dr

Rockville, MD 20852

Voice: (301) 770-9610 x 335

Fax: (301) 770-9611

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


insert a list into database

2006-04-13 Thread john holmes
Hi,
I have an list that I need to insert into a mysql database and I am not quite 
sure how to do it. Right now I take the list variable #thiswillbemylist# and 
if I run a cfloop list to insert it but it just gets a null value in database.

The part of query to insert is this:

cfloop list=#thiswillbemylist# index=i
cfquery name=listinsert datasource=#rdatasource# username=#username# 
password=#password#
INSERT INTOList_prac (tbl_list)
VALUES (tbl_list = cfqueryparam value=#i# 
cfsqltype=cf_sql_varchar)
/cfquery
 /cfloop


Can someone help?
Thanks
John



-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1cent;/min.

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237729
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: model glue/reactor question

2006-04-13 Thread rhymes with 'loud'
Good idea Jamie. I just happened to have done that very thing a short while 
after making my post.

HOWEVER, in my own mind I'm not satisfied...that feels more like masking the 
symptoms than addressing the issue, so I'm STILL in need of being scrutinized. 
:D

As Buckminster Fuller once said, and I paraphrase, if the solution that you 
come up with to a problem isn't beautiful, then it is wrong. I tend to 'think' 
like that. It's got to be beautiful, if at all possible.


 I haven't scrutinized your code, but when I can't get a troublesome 
 routine to run any more quickly, I often cache its result in a 
 persistent scope (application is my favorite). That's one way to 
 sweep it under the rug.
 
 Jamie
 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237730
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: catching a query based cfmail ...

2006-04-13 Thread Denny Valliant
A crazy option would be to use a regular expression (available in MySQL) to
grab only valid emails.

Heh. With the regex stuff going  on, had to mention it.

By the by, a useful resource for regex for me has been
www.regular-expressions.com.
:D3|\|*

On 4/13/06, Dawson, Michael [EMAIL PROTECTED] wrote:

 I think you are totally correct.  You will need to do the CFLOOP thing
 to be able to catch an individual CFMAIL exception.

 M!ke

 -Original Message-
 From: Rick Root [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 13, 2006 9:07 PM
 To: CF-Talk
 Subject: catching a query based cfmail ...

 If I'm using cfmail with the query attribute, populating the to address
 dynamically... how to I catch an individual exception?

 Like if one row in the query contains an invalid email address that
 throws a cfmail exception.

 If i put try/catch around the whole cfmail tag set it'll actually stop
 the whole mailing...

 I'm assuming there's no way to do what I want to do without axing the
 query attribute and doing something like

 cfloop query=foo
 cftry
 cfmail from=[EMAIL PROTECTED] to=#email# subject=foo
   ...
 /cfmail
 cfcatch type=any/cfcatch
 /cftry
 /cfloop

 

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