Re: embed image in cfmail

2006-05-17 Thread Douglas Knudsen
check out http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=part_cfm.htm DK On 5/17/06, kurt schroeder <[EMAIL PROTECTED]> wrote: > Is there a way to embed an image in a cfmail without using a web reference. > > Thanks

Re: ARGH! - Three Months in the future query problem

2006-05-17 Thread Les Mizzell
Duh! This does it: WHERE event_date < #threemonths# and event_date >= #startDATE# See! Getting away from the computer and thinking about things while walking your dogs really helps!! > > > > > SELECT > id, event_date, event_name FROM events > WHERE month(event_date) >= #month(start

Re: ARGH! - Three Months in the future query problem

2006-05-17 Thread Tony
why not try a BETWEEN '' and '' where you fill the '' and '' with the REAL dates... that will get everything in between, and the ones that are directly on the date. rather than just looking at the month, since 1 is less than 12 you can do the between, which follows date rules. tw On 5/17/06, Les

ARGH! - Three Months in the future query problem

2006-05-17 Thread Les Mizzell
OK, starting with January through September - this works great. It pulls up the current month and the next three months worth of events. SELECT id, event_date, event_name FROM events WHERE month(event_date) >= #month(startDATE)# and event_date < #threemonths# and year(event_date)

RE: MS-SQL Group by Week

2006-05-17 Thread Coldfusion
Thanks, I found a way to do it. Just had to add a field to the Table to hold the WeekNumber and the GROUP by WEEKNUM ;-) Thanks! -Original Message- From: Dawson, Michael [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 10:18 PM To: CF-Talk Subject: RE: MS-SQL Group by Week Check

RE: MS-SQL Group by Week

2006-05-17 Thread Dawson, Michael
Check out this thread: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=6228 M!ke -Original Message- From: Coldfusion [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 9:07 PM To: CF-Talk Subject: MS-SQL Group by Week Does anyone know if it is possible via Query to group results

MS-SQL Group by Week

2006-05-17 Thread Coldfusion
Does anyone know if it is possible via Query to group results by Week when the field actually contains a full date? I have a query where I have to pull all data and the SUM of a field which all should be grouped by Week such as: Week 1 (01/01/2006 - 01/07/2006) John Smith Project 5: 15hrs

RE: Passing Java Applet vars back to CF

2006-05-17 Thread Mark Leder
Thank you Denny, I will continue to experiment. Thanks, Mark -Original Message- From: Denny Valliant [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 7:59 PM To: CF-Talk Subject: Re: Passing Java Applet vars back to CF Here is some crappy code that lets you pass a CF session ar

Re: SQL Server Express on CF Box?

2006-05-17 Thread Peter Tilbrook
Yes you can indeed. Check out this post by Ben Forta on the subject: http://www.forta.com/blog/index.cfm/2006/1/10/ColdFusion-And-SQL-Server-2005 and this SysCon article: http://coldfusion.sys-con.com/read/170133.htm ~| Messa

Re: Replacements/alternatives for CFFILE upload?

2006-05-17 Thread Denny Valliant
On 5/17/06, Dirk Sieber <[EMAIL PROTECTED]> wrote: > > The issues that we're having is with transfers either taking an insanely > long time, or just timing out, and never completing. It seems to just > be a size issue - as soon as we're talking about a MB or 2, odds of > completion go *way* down.

RE: Xpath Help

2006-05-17 Thread Dawson, Michael
Yeah, XPath is very cool, from what I have seen. I just started playing with XPath yesterday while considering rebuilding one of my existing apps. I don't know if this is the main reason, but I love the ability to "break down" the XML into smaller chunks that are more-managable. I have not run i

Re: JRun/CFusion System Properties

2006-05-17 Thread Denny Valliant
Well, no specific hints, but you can google for JVM settings a lot of the time instead of "coldfusion JVM blah blah" whatnot and find out a few nifty features of most JVM's, (or you can look up your specific JVM, of course) that aren't usually listed along with CF stuff. There are quite a few kewl

Re: what does application.home point to?

2006-05-17 Thread Denny Valliant
Ok, I mangled it. But that's cuz I'm trying to do it without google, or looking at my own. In your case I think xjrun.home would be the same as the "normal" application.home one. Still from memory, but I'm going to run with d:/servers/jrun01/bin As being what should probably be in the applicatio

Re: what does application.home point to?

2006-05-17 Thread Denny Valliant
Whoops. Nope, where cf resides, basically. Depends on your install, but in multi-j2ee, it's generally something like jrun4/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion I think. Your config looks edited, so... Eh, I dunno. :denny On 5/17/06, Denny Valliant <[EMAIL PROTECTED]> wrote:

Re: what does application.home point to?

2006-05-17 Thread Denny Valliant
In this case it's probably C:/JRun4/bin application.home is where JRun resides, basically. I think. :DennY On 5/17/06, Troy Simpson <[EMAIL PROTECTED]> wrote: > > In the jvm.config file there is a reference called application.home. > What does application.home refer to? Here is what my custom >

Re: CFDocument - Sporadic PDF issues, text being jarbled up

2006-05-17 Thread Denny Valliant
> I'm not sure this is a CFdocument issue. I have experienced this recently > opening stand alone PDF files. Several times I have opened PDF files and > the text is mirrored. I have no idea how or why, but I have experienced it > outside the CF world. Where did you get the "stand alone" PDF's?

copying verity collections across servers

2006-05-17 Thread Greg Saunders
I am trying to copy a k2 collection from server s1 to server s2 and it works when I do this: 1. Log into s2 and use rcadmin to take the collection offline. 2. Copy the raw files comprising the collection from s1 to s2. 3. On s2, use rcadmin to bring the collection back

Re: Passing Java Applet vars back to CF

2006-05-17 Thread Denny Valliant
Here is some crappy code that lets you pass a CF session around, sorta, by using the cftoken, cfid, and application name. The above example is a snippet from my livegrid experiment. Thus the grabbing of the passed session's ["livegrid_

Re: What do you use to capture a video frame?

2006-05-17 Thread Mike Kear
This whole thing was a bit of a surprise to me, to be honest. I'd never had occasion to snag a shot out of a movie before so to find I couldn't just use a screen shot like i'd been doing since the old DOS days was a surprise. Thanks to everyone for all the suggestions. And Patric I wasn't making a

RE: CFHTTP Charset Question

2006-05-17 Thread Phillip Holmes
Right. There should be another argument called 'encoding'. That would end lots of confusion between the two. Phil -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 3:22 PM To: CF-Talk Subject: Re: CFHTTP Charset Question >>UTF-8 is an e

RE: error when refreshing a web service in cf admin

2006-05-17 Thread Dave Watts
> Has anyone else seen this error when trying to refresh a web > service in cf admin? I am getting this error pretty > consistently on at least two of my servers (cf standard on > Windows). I *always* see this behavior shortly after > restarting the server. Sometimes it goes away after 1-2 > m

RE: datatypes, calculations and DB experts

2006-05-17 Thread Dave Watts
> So are you saying that I should never use floats (if so why > are the even a data type)? No, sometimes they are good enough; if they are good enough for your purpose, then they will be more efficiently stored than more precise datatypes such as DECIMAL. > I've used them in SQL server DBs in t

Re: SOLVED: Re: Win 2003 IIS6 Bad Request

2006-05-17 Thread Denny Valliant
On 5/17/06, Bryan Stevenson <[EMAIL PROTECTED]> wrote: > > > Other than that STUPID issue, I'm liking Win 2003 far better than Win 2K. Leaps and bounds better. I was unaware of how far it had come, specifically active directory, until I took a MS test. Never thought all that key crypto knowledg

Re: datatypes, calculations and DB experts

2006-05-17 Thread Matthew Chambers
Hmm, very interesting. So are you saying that I should never use floats (if so why are the even a data type)? I've used them in SQL server DBs in the past and never had this problem, is this just down to MySQL? Cheers >> I have recently found a bizarre situation where numbers are not >calculat

Re: datatypes, calculations and DB experts

2006-05-17 Thread Matthew Chambers
Hmm, very interesting. So are you saying that I should never use floats (if so why are the even a data type)? I've used them in SQL server DBs in the past and never had this problem, is this just down to MySQL? Cheers >> I have recently found a bizarre situation where numbers are not >calculat

RE: Xpath Help

2006-05-17 Thread Ben Nadel
Freakin' sweeet! Thanks Mike. This Xpath stuff looks pretty cool. I need to get learning this stuff. Especially when we move SQL 2005 in house. ... Ben Nadel www.bennadel.com -Original Message- From: Dawson, Michael [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17

RE: Xpath Help

2006-05-17 Thread Dawson, Michael
Glad to help! Since you say you know the format, I don't see any reasons why you should not do this. It certainly cuts down on the amount of digging you would have to do if you stopped the xmlSearch() a level above this element. This works just peachy: #results[1].XmlText# M!ke -Origina

RE: Replacements/alternatives for CFFILE upload?

2006-05-17 Thread Dirk Sieber
> -Original Message- > From: Rick Root [mailto:[EMAIL PROTECTED] > Sent: May 17, 2006 12:36 PM > To: CF-Talk > Subject: Re: Replacements/alternatives for CFFILE upload? > > Dirk Sieber wrote: > > > > Can anyone out there recommend a good alternative? > > FTP? =) It might come to that.

RE: embed image in cfmail

2006-05-17 Thread Ben Nadel
Kurt, I have done it before, in ColdFusion 5, but not in years. The way it worked there was similar to MS Word embedded images. You write the image in Base64 to the mail data and give it an id and then you refer to that id in the HTML markup. Something like: I don't remember any of the specific

embed image in cfmail

2006-05-17 Thread kurt schroeder
Is there a way to embed an image in a cfmail without using a web reference. Thanks KES ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240846 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription:

RE: Xpath Help

2006-05-17 Thread Ben Nadel
Mike, You rock! I would like to modify it to be: //*[name()='searchFor'] Since in only care about the searchFor node and not in it's relations to other elements; I know what the xml data is going to look like and am not worries about finding the wrong element. Any red flags about my way consi

CFUNITED-06 interview 20: John Paul Ashenfelter - Testing CF Applications

2006-05-17 Thread Michael Smith
In this issue of ColdFusion conference and training news: * NEW Scheduler Program is here and ready! * SATURDAY REPEATS ANNOUNCED * Popular sessions Survey WINNER announced. * AJAX pre-conference class is now full. * CFUNITED 2006 will be available on video after the event * Order a DVD copy o

RE: Xpath Help

2006-05-17 Thread Dawson, Michael
Ahhh. This is what I was originally going for... xmlSearch(xmlPacket, "/soap:Envelope/soap:Body/*[name()='doDirectorySearch']/child::*") This search will return all child elements, of doDirectorySearch, with each element as an array item. The problem, with your xml, is that you have namespaces

RE: Xpath Help

2006-05-17 Thread Dawson, Michael
This works, to a point. It will, at least, get your information into an array where you can access it a bit easier. You have to account for the namespaces, if any, as well as the elements, in your xml packet. I ran into this issue yesterday. Here is the source of my solution: http://www.talk

Re: JRun/CFusion System Properties

2006-05-17 Thread Troy Simpson
Is there a way to make jrun spit this out when I run the application in console mode? For example, I create a start.bat file with the following and run it from the console (cmd.exe window). c:\jrun4\bin\jrun -config d:\servers\bin\jvm_jrun01.config -start jrun01 pause On 5/16/06, Steve Brownlee

error when refreshing a web service in cf admin

2006-05-17 Thread Dante Orlando
Has anyone else seen this error when trying to refresh a web service in cf admin? I am getting this error pretty consistently on at least two of my servers (cf standard on Windows). I *always* see this behavior shortly after restarting the server. Sometimes it goes away after 1-2 minutes, and somet

Re: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread John Paul Ashenfelter
On 5/17/06, Brian Kotek <[EMAIL PROTECTED]> wrote: > CF already has an idiom for dealing with recordsets: the query result set. Which is itself a design pattern :) > There is significant overhead of building an array of CFC instances for all > the matching records. In just about every context I'v

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Steve Brownlee
John: This thread was simply to help Ian (and any others interested) get an understanding of this model. No one said this was the best way to go, or even said it was necessary. I think you assumed far too much. However, thanks for pointing out why some of these concepts are not a "one size fits

Xpath Help

2006-05-17 Thread Ben Nadel
Having some XmlSearch problems, need help, totally stuck, For some reason, the "results" object is not returning any results on "//doDirectorySearch". But, from the xml being saved below, it looks like it should totally work. I also tried "//[EMAIL PROTECTED]" thinking that it was an attribute iss

Re: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread John Paul Ashenfelter
On 5/17/06, Steve Brownlee <[EMAIL PROTECTED]> wrote: > 1. Validation That's fine for atomic validation (specific validation rules for this particular field) but you'll still need a way to validate the state of the entire object -- relationships and dependencies between attributes. And since you'

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Steve Brownlee
The "if ever" is true. The Gateway manipulates recordsets for you. The DAO still performs all operations on individual rows. You could, of course, write a gateway function that performs mass updates/insertions, but it would still be looping over a structure/array and using the DAO to perform the

Re: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Brian Kotek
CF already has an idiom for dealing with recordsets: the query result set. There is significant overhead of building an array of CFC instances for all the matching records. In just about every context I've ever encountered, this is overkill. I would recommend simply returning the query result set.

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Ian Skinner
Steve Brownlee My best attempt at a skeleton gateway for your TrimaDAO... Thanks, that looks very helpful. I am still playing with the basic bean and DAO, should get to the gateway part shortly. If I understand your example correctly, the gateway supplants the dao when one is working with mul

Re: Replacements/alternatives for CFFILE upload?

2006-05-17 Thread Larry Lyons
>Brad Wood wrote: >> Asfusion.com had a sweet flash file upload to use in flash forms with a >> progress bar and everything. >> >> Don't know if it satisfies your need or not though... > >That looks pretty sweet but probably doesn't satisfy his needs cuz it >still uses cffile on the backend. It'

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Steve Brownlee
My best attempt at a skeleton gateway for your TrimaDAO... select all of your trima machines for ( i=1; i lte q_allTrimaMachines; i=i+1 ) { trimaBean = createobject("component", "com.bloodsource.trimaBean"); trima

what does application.home point to?

2006-05-17 Thread Troy Simpson
In the jvm.config file there is a reference called application.home. What does application.home refer to? Here is what my custom jvm.config file looks like: # # VM configuration # # Where to find JVM, if {java.home}/jre exists then that JVM is used # if not then it must be the path to the JRE its

Re: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Brian Kotek
A Gateway object (of the J2EE pattern "table data gateway") is another database abstraction. Where a DAO deals with individual objects/recrods, a Gateway deals with sets of records. In other words, a Gateway will return query result sets. So where a DAO will have methods like create(), read(), upda

Re: CFHTTP Charset Question

2006-05-17 Thread Claude Schneegans
>>UTF-8 is an encoding, not a charset Right, but CFHTTP takes the encoding in the "CHARSET" attribute ;-) -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Steve Brownlee
Oh, except boolean values should to either what their default value is in the database or whatever makes sense. -Original Message- From: Steve Brownlee [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 3:57 PM To: CF-Talk Subject: RE: OOD/Design Patterns and ColdFusion. Numeric at

RE: Replacements/alternatives for CFFILE upload?

2006-05-17 Thread Andy Matthews
I'm wondering if that can be used in conjunction with a plain HTML form? -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 2:58 PM To: CF-Talk Subject: Re: Replacements/alternatives for CFFILE upload? Brad Wood wrote: > Asfusion.com had a sweet

Re: Replacements/alternatives for CFFILE upload?

2006-05-17 Thread Rick Root
Brad Wood wrote: > Asfusion.com had a sweet flash file upload to use in flash forms with a > progress bar and everything. > > Don't know if it satisfies your need or not though... That looks pretty sweet but probably doesn't satisfy his needs cuz it still uses cffile on the backend. It's still

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Steve Brownlee
Numeric attributes default to 0, all other simple values default to "" including dates. -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 3:51 PM To: CF-Talk Subject: RE: OOD/Design Patterns and ColdFusion. I'm building my bean. Created sectio

RE: CFHTTP Charset Question

2006-05-17 Thread Phillip Holmes
Ah.. I thought he was still having issues with ligature characters. UTF-8 is an encoding, not a charset. >NCR data is hust plain 7 bits ASCII, and can be fully transmitted in Yes. I know.. That was in my post: "replace those characters (NCRs will be ascii)" Warmest Regards, Phillip B. Holmes h

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Ian Skinner
I'm building my bean. Created section for the default values modeled on Matt's person/address example. Any concerns on what the default values actually are? Since CF does not have the null. What about a default date for a date parameter or a default Boolean of that type of parameter? What b

RE: Replacements/alternatives for CFFILE upload?

2006-05-17 Thread Brad Wood
Asfusion.com had a sweet flash file upload to use in flash forms with a progress bar and everything. Don't know if it satisfies your need or not though... http://www.asfusion.com/blog/entry/file-upload-with-coldfusion-flash-for ms ~Brad -Original Message- From: Rick Root [mailto:[EMAIL

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Ian Skinner
If your not going to use a gateway Object, I would put a method in your DAO to return a query for the master list. You could then create a bean and populate it though each record or just output the query. I tend to do a bit of both so I guess my apps are more OOish the straight OO. If your go

Re: Replacements/alternatives for CFFILE upload?

2006-05-17 Thread Rick Root
Dirk Sieber wrote: > > Can anyone out there recommend a good alternative? FTP? =) I've never had problems with cffile. And since CFFILE *IS* java (as all coldfusion is), using java calls to handle file uploads probably wouldn't make a difference. An alternative would be to develop some kind

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Steve Brownlee
And by gateway object, we're talking about, basically, an abstraction layer on top of the bean and DAO to handle "meta" functions that cannot be handled by the DAO or Bean individually. It's up to you if you want to tackle that layer now or just stick to a CFQUERY at the top of the page and output

Re: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Matt Williams
Oh yeah, I forgot the line. Then you just loop over that query in your output page, adding the links to the detail form. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240817 Archives: http://www.houseoffusion.com/c

Re: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Matt Williams
> One question that has not yet been addressed is how would I use these bean > and DAO objects for the master page? Or is it easier just to keep this > procedural where I would query the database for all the Trima Records and > output each one with a link to the form-detail page? > Now you are t

Re: CFHTTP Charset Question

2006-05-17 Thread Claude Schneegans
>>The problem he is having is that the source charset is not lining up with the actual data coming across. Nope; he says "When I make the get request specifying the charset as iso-8859-1 everything returns fine", so there is no problem with the feed and the charset it specifies. His only probl

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Trevor Holm-Laursen
If your not going to use a gateway Object, I would put a method in your DAO to return a query for the master list. You could then create a bean and populate it though each record or just output the query. I tend to do a bit of both so I guess my apps are more OOish the straight OO. If your going

RE: CFDocument - Sporadic PDF issues, text being jarbled up

2006-05-17 Thread Ian Skinner
Here is an example as well http://mannixmarketing.com/casey/pdf/pdf-text.jpg I'm not sure this is a CFdocument issue. I have experienced this recently opening stand alone PDF files. Several times I have opened PDF files and the text is mirrored. I have no idea how or why, but I have experien

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Ian Skinner
Steve Brownlee That way the order in which they are set is moot. The equivalent of an XOR operation :) Ok that makes sense and seems to align well with the concept of the bean/object being responsible for itself. I think I got a handle on the form, form action, bean and dao relationship.

Re: SQL Server Express on CF Box?

2006-05-17 Thread Aaron Rouse
I am running it on a machine with I believe 2GB of RAM but maybe less than that, I know it has a single 2ghz CPU in it. Have not noticed any performance issues on it. On 5/17/06, Tim Claremont <[EMAIL PROTECTED]> wrote: > > The machine in question is a dual 3 GHz with 3 GB of RAM. I am not happy

CFDocument - Sporadic PDF issues, text being jarbled up

2006-05-17 Thread Casey Dougall
CFdocument creates PDF's that open fine on most computers, there are are times when it opens with garbled text. Not legitable at all. It's only certain people and the actual version of Acrobat doesn't seem to be the issue. Anyone lock down the reasoning behind this? Here is an example as well ht

Re: CFHTTP Charset Question

2006-05-17 Thread Claude Schneegans
I don't really where the problem is. You have to specify the address anyway, don't you? So what is the problem to specify the encoding as well? -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spa

Re: SQL Server Express on CF Box?

2006-05-17 Thread Tim Claremont
The machine in question is a dual 3 GHz with 3 GB of RAM. I am not happy with the fact that it will require so much overhead, but I think we can survive with it. ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:240808

RE: CFHTTP Charset Question

2006-05-17 Thread Phillip Holmes
I disagree Claude. The problem he is having is that the source charset is not lining up with the actual data coming across. I think his issue is NCR data. Java should recognize the correct charset appropriately and in coordination with that, you can use the IsUnmappable() method to make sure you h

Re: Hype 2.0

2006-05-17 Thread John Paul Ashenfelter
On 5/16/06, Dave Watts <[EMAIL PROTECTED]> wrote: > > But I'd personally maintain that for many pitches for > > building web apps, it's ".NET, Java or other" where other > > is just as likely to be PHP, CF, or Rails. > > CF does have a potential advantage in the Java world, in that it can > integra

RE: Replacements/alternatives for CFFILE upload?

2006-05-17 Thread Munson, Jacob
How about uploading them to a local directory (on the web server), and then build a batch script that checks that directory periodically and moves any files to the correct location? Also, you could set the timeout for your upload page to a higher amount, using cfsetting. > -Original Message--

Re: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Matt Williams
Here you are seeing that there are a multitude of ways to accomplish the same task. Steve mentions that you could call the validate with in the setter method. I have done just that for something simple like stripping out dashes from a phone and/or fax number. I'm not sure that it makes sense for yo

Re: CFHTTP Charset Question

2006-05-17 Thread Rob Wilkerson
Yeah, that's what I was thinking too. I know that the original feed I referenced did not return a content-type response header so it will be no help. And even using getEncoding()...how would this work? I'd have to get the content, get the encoding and then get the content again (this time specif

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Steve Brownlee
// make sure begin is before end // make sure end is after begin ... ... ... ... That way the order in which they are set is moot. The equivalent of an XOR operation :) -Original Message- From: Ian Skinner [mailto:[EMAIL PRO

Re: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Jerry Johnson
When validating the start date, you would check to see if the endDate was blank. If it is blank, the start date is valid. If enddate is not blank, then check the relationship (startdate less than enddate) You'd do the same blank/relationship check for the enddate On 5/17/06, Ian Skinner <[EMAIL P

Re: CFHTTP Charset Question

2006-05-17 Thread Claude Schneegans
>>getEncoding() This will "Retrieves the Charset as guessed from the underlying InputStream". But if the charset is not specified in the response header and if CF does not interpret characters correctly, it is probabilly that CF "guesses wrong", so this won't really help. The only way I can se

Replacements/alternatives for CFFILE upload?

2006-05-17 Thread Dirk Sieber
Hi all, We're running into multiple problems with using CFFILE to upload documents to one of our servers - it's located over a slowish link, and anything over a couple of hundred k is causing the browser to time out before the process completes. From what I've been reading, the whole HTML file up

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Ian Skinner
> They do not realize that they should run the validate method The validate method for each attribute would be an internal method, not invoked from the caller page. // Validate argument type // Validate argument data // Set attribute to argument value // or // Throw validati

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Steve Brownlee
> They do not realize that they should run the validate method The validate method for each attribute would be an internal method, not invoked from the caller page. // Validate argument type // Validate argument data // Set attribute to argument value // or // Throw validat

RE: CFHTTP Charset Question

2006-05-17 Thread Phillip Holmes
Yes. (watch the wrap) http://glaforge.free.fr/projects/guessencoding/api/com/glaforge/i18n/io/Smar tEncodingInputStream.html#getEncoding() You can also force the encode / decode process and check for unmappable characters with the java.nio.charset class. Warmest Regards, Phillip B. Holmes http

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Ian Skinner
Matt Williams Yes, this thread has been most helpful. Let me see if I understand your message correctly and follow up with a few more questions. So my basic bean for a Trima Machine would have the five properties, TrimaID, SerialNumber, Version, InServiceDate, OutServiceDate with matching sett

Re: Name can't be empty error?

2006-05-17 Thread joe velez
Did you ever figure out why it's blank? I get the same error ... however ... to access the file in question my client would need to login, and click a link. Upon logging in the DSN is used immediately, so I would think the error would occur upon logging in, not the second (or subsequent) steps.

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Steve Brownlee
> First of all, would this not leave the bean in an > incomplete state, it would have the ID, SerialNumber > and InService properties set, but not the OutService > date. Is this not a bad thing? It's not inheritly bad that some attributes get set and others don't, but to prevent some valid data

Re: CFHTTP Charset Question

2006-05-17 Thread Rob Wilkerson
Okay, Claude, what you're saying makes perfect sense, but begs the question... Is there any way I can "detect" the character set of the feed I want to retrieve and set my http call to use that charset? It sounds impossible to me, but I'm only just beginning to learn how little I /really/ know abo

RE: SQL Server Express on CF Box?

2006-05-17 Thread Snake
It has quite a hefty memory requirement, I installe dit on a machine with 512mb and it crippled it, I had to uninstall it again b4 the machine worked properly. russ -Original Message- From: Claremont, Timothy [mailto:[EMAIL PROTECTED] Sent: 17 May 2006 17:22 To: CF-Talk Subject: SQL Se

Re: datatypes, calculations and DB experts

2006-05-17 Thread Jochem van Dieten
Nick de Voil wrote: >> I have recently found a bizarre situation where numbers are not > calculating correctly when the values are stored in FLOAT data types. > > This is not just a database-related issue - it's found in computer > systems in general. > > Floating point numbers are by definition

Re: CFHTTP Charset Question

2006-05-17 Thread Claude Schneegans
>>Okay, so if I understand correctly, this appears to be a problem with the feed not using a consistent character set rather than a problem with how I'm retrieving it. No, it is the contrary: If the feed itself specifies its encoding as iso-8859-1, and when you make the get request specifying t

Re: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Matt Williams
The bean in the example I did was actually generated by the RDS plugin of Eclipse. The only validation there is making sure the correct data type is being received (e.g., a number and not a string). The type of validation you are speaking of require some actual 's. I would not put that validation i

Re: smtp questions & cfpop

2006-05-17 Thread Jochem van Dieten
David Elliott wrote: > > When I try to send a 'test' email to myself or another email address I have, > the mail program acts like it sends it but when I check on it, Nothing! > > Any suggestions where to start? 1. The log file. 2. Setting spoolenable to false. Jochem ~~

Re: Hype 2.0

2006-05-17 Thread Jim Wright
Another bit of interest on this subject...google just released a toolkit that will allow java developers to easily create cross browser compatible AJAX based apps... http://code.google.com/webtoolkit/gettingstarted.html -- Jim Wright Wright Business Solutions [EMAIL PROTECTED] 919-417-2257

RE: Passing Java Applet vars back to CF

2006-05-17 Thread Mark Leder
The java applet logic passes back form params. The form method is already set to post. The form params are vanishing after the file is uploaded to CF's temp directory. What I want to know is how does one make java applet form vars get passed back to the correct session (using the URL.sessionID t

Re: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Cutter (CFRelated)
The set method for address would typically 'set' the variable within the instance of the bean. The 'update' or 'create' methods are generally called from within a service layer or gateway, which in turn converts any data as necessary, populates a bean instance, validates that instance, and then

Re: SQL Server Express on CF Box?

2006-05-17 Thread Tim Claremont
Sorry. No, we are using Windows Server 2K3. The Service Pack 2 reference came about as I was attempting to install Express on my desktop machine to get some exposure to it before taking the plunge. ~| Message: http://www.houseof

Re: CFHTTP Charset Question

2006-05-17 Thread Rob Wilkerson
Okay, so if I understand correctly, this appears to be a problem with the feed not using a consistent character set rather than a problem with how I'm retrieving it. If that's right, then there's no way to bring this feed in correctly short of specifying the exact character code they've said they

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Andy Matthews
Right...I saw that. Thanks for the clarification. -Original Message- From: Matt Williams [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 12:20 PM To: CF-Talk Subject: Re: OOD/Design Patterns and ColdFusion. Correct Andy. Calling the set method would only do whatever the code wi

Re: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Matt Williams
Correct Andy. Calling the set method would only do whatever the code within those tags tells it to. Usually a setAddress( Form.Address) call simply updates the data which is in the variables (or variables.instance) scope of the component (object) the set method is in. To update the database, some

Re: CFHTTP Charset Question

2006-05-17 Thread Paul Hastings
Rob Wilkerson wrote: > 1. The feed itself specifies its encoding as iso-8859-1 in the source XML. so what? in a perfect world folks would know the difference between latin-1 & a windows code page (cp) or ms wouldn't have created their own encoding (i'm not blaming ms for this, i think they actu

RE: SQL Server Express on CF Box?

2006-05-17 Thread Munson, Jacob
> The NET 2.0 framework is required for installation, as well as XP SP2. Are you really using Windows XP as a production web server? This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the in

Re: CFHTTP Charset Question

2006-05-17 Thread Claude Schneegans
>>When I make the get request specifying either no charset at all or utf-8 the non-ascii characters (what I, perhaps mistakenly, referenced as members of an "extended character set") are not rendered properly in the cfhttp.fileContent variable. This is normal. Specifying a charset in CFHTTP will

RE: OOD/Design Patterns and ColdFusion.

2006-05-17 Thread Andy Matthews
In a set method for address (for example), that doesn't actually update the database does it? It simply changes the value stored in the session var or something? -Original Message- From: Steve Brownlee [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 11:16 AM To: CF-Talk Subject:

  1   2   >