On Tue, 4 Jan 2005 13:20:03 +1100, Aaron DC
<[EMAIL PROTECTED]> wrote:
> Sounds like Taco is reading and learning about patterns and trying to
> implement / translate them into CF purely for the exercise or sake of doing
> so.
But that makes no sense - a pattern is *not* an implementation
therefor
On Tue, 4 Jan 2005 11:41:54 +1000, Taco Fleur <[EMAIL PROTECTED]> wrote:
> Ok, so are we discussing how to implement the design pattern specific for
> ColdFusion
But that doesn't make sense - even in CF, there will be multiple
implementations of pretty much every design pattern and the choice of
i
On Mon, 3 Jan 2005 22:25:49 -0500, Brian Kotek <[EMAIL PROTECTED]> wrote:
> Back to the idea of using instance variables vs. using getter methods
> within the CFC, keep in mind that if the getter method returns an
> instance variable that is an array, you're getting a pass-by-value
> copy of the ar
--- On Monday, January 03, 2005 10:22 PM, Marcus Whitworth scribed: ---
>
>> It could be a setting in the mail client. Most clients have a
>> setting to display the preferred part of a multipart email - you
>> could decide to display the text portion only in Outlook Express,
>> for example.
>
>
> Anything else you'd like to know?
Wow! Great writeup!
It's always interesting to me to know what types of challenges people
run into and how they overcome them. I'm also very interested in how
well different sites (and people) handle load in real world
situations. I've worked on some high
> -Original Message-
> From: Dana [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 03, 2005 9:53 PM
> To: CF-Talk
> Subject: Re: How'd www.firstnight.org do over new years?
>
> Hmmm
>
> /me wonders if Jim doesn't want to talk about it :) Seriously, I think
> Jim missed this post so I am
> -Original Message-
> From: Cameron Childress [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 03, 2005 1:13 PM
> To: CF-Talk
> Subject: How'd www.firstnight.org do over new years?
>
> Jim,
>
> Just following up on the thread from last week. I'd be interested in
> knowing how your site
> It could be a setting in the mail client. Most clients have a setting
> to display the preferred part of a multipart email - you could decide
> to display the text portion only in Outlook Express, for example.
No, I'm pretty sure thats not it. I am testing at the moment in Thunderbird,
and o
It could be a setting in the mail client. Most clients have a setting to
display the preferred part of a multipart email - you could decide to display
the text portion only in Outlook Express, for example.
HTH,
--
Howie Hamlin - inFusion Project Manager
On-Line Data Solutions, Inc. - www.Cool
Hi,
I''m having issues with multipart emails using cfmailpart...
#html_content#
#text_content#
This displays the html version fine with Outlook, but can
only display the text version with html-enabled email clients like Mozilla
Thunderbird, Safari etc.
However, if I just use the plain old cf
Back to the idea of using instance variables vs. using getter methods
within the CFC, keep in mind that if the getter method returns an
instance variable that is an array, you're getting a pass-by-value
copy of the array and not a reference to the original array. This can
lead to some bizarre thing
> From: Taco Fleur [mailto:[EMAIL PROTECTED]
> > The first problem is that in the Java world the constructor
> is declared as
> private so you can't create an instance of the class. You
> can't do that in
> CF.
>
> Exactly, I have been thinking about that, how about the following?
>
>
>
>
I'm not sure what you're trying to achieve with the code below.
Can you provide some explanation of the thinking behind it?
Spike
Taco Fleur wrote:
>>The first problem is that in the Java world the constructor is declared as
>
> private so you can't create an instance of the class. You can't do
> The first problem is that in the Java world the constructor is declared as
private so you can't create an instance of the class. You can't do that in
CF.
Exactly, I have been thinking about that, how about the following?
--
I think you could be spot on here Aaron.
There are several difficulties with implementing the typesafe enum
pattern in CF exactly as it us usually seen in Java.
The first problem is that in the Java world the constructor is declared
as private so you can't create an instance of the class. You c
Hmmm
/me wonders if Jim doesn't want to talk about it :) Seriously, I think
Jim missed this post so I am moving it back up a bit. I'd sort of like
to know too.
Dana
On Mon, 3 Jan 2005 10:12:42 -0800, Cameron Childress <[EMAIL PROTECTED]> wrote:
> Jim,
>
> Just following up on the thread from l
> -Original Message-
> From: Larry White [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 03, 2005 12:04 PM
> To: CF-Talk
> Subject: Re: Well - I feel like an idiot.
>
> Regarding the original post I can't see any reason to use cflock at all.
> Initializing the application variables, I wo
I know what most of you are trying to get at (I read the book too) "Don't
use design patterns just for the sake of it".
I'm not interested in discussing that, a pattern solves certain problems,
lets just say I have all those problems that this particular pattern solves!
Aaron you are spot on. But
Could you use a struct?
1. It's a built-in CF class
2. Public cant modify data unless you provide a mechanism for them to do so
3. Loop using any CF looping construct
Aaron
- Original Message -
From: "Taco Fleur" <[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Tuesday, January 04, 2005 1:06 P
That's not describing the problem. It's describing a solution.
Why do you need constants?
Why do you need them to be in a class/cfc?
Why do you not want the public to be able to modify any data and who do
you define as the public?
Why do you need to be able to loop over the constants?
Spike
Sounds like Taco is reading and learning about patterns and trying to
implement / translate them into CF purely for the exercise or sake of doing
so. Hence he would like to discuss the implementation / code at a purely
theoretical point of view, rather than a specific implementation point of
view.
The problem:
I need a class that represents constants
I don't want the public to be able to modify any data
I need to be able to loop over the constants easily
Basically quoting what problems the pattern solves..
--
Taco Fleur
Senior Web Systems Engineer
http://www.webassociates.com
-Or
You can just stash the recordset in the application scope, much like
you would in CF.
or if you're not using JSTL
<% application.setAttribute("myRecordSet", recordset) %>
cheers,
barneyb
On Mon, 3 Jan 2005 17:43:57 -, Ciliotta, Mario
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Sorry for asking
That's pretty much all we can discuss unless you lay out the problem
that you're trying to solve.
If you explain exactly what it is you're trying to do and why you're
using the pattern it should be possible to say whether you're
implementing it the right way.
I think that's the point Barney wa
>From a little more research I found that Access 2000 only supports a
subset of the ODBC scalar functions, and REPLACE() isn't supported. So,
unless someone knows of another way, I guess I'll just do it in CF after
the query is executed.
- Original Message -
From: "Jim McAtee" <[EMAI
> Ok, so are we discussing how to implement the design pattern
> specific for ColdFusion or will we just keep discussing the
> discussion itself?
What problem is your code specifically trying to solve?
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the hi
Ok, so are we discussing how to implement the design pattern specific for
ColdFusion or will we just keep discussing the discussion itself?
--
Taco Fleur
Senior Web Systems Engineer
http://www.webassociates.com
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: T
No luck. This is for a SELECT statement. The following threw an
undefined function error. The DB is Access 2000.
SELECT name, phone, city,
Replace(shortname, " ", "") AS sname
FROM areas
WHERE areacode = '#areacode#'
Microsoft][ODBC Microsoft Access Driver] Undefined function 'Replace'
I think what Sean was trying to get at was that an implementation of a
design pattern in isolation of a problem it can solve is nothing more
than a bunch of arbitrary code. If you have two problems that can
both be solved with the same pattern, and you use the same langauge to
implement each solut
> Example code alone does not teach a pattern!
Completely agree, which is why I did not provide an explanation, and was
hoping to get feedback from people familiar with the pattern.
The link was just to give an idea of what its all about, I actually read
about the pattern in another book.
Anyway
On Tue, 4 Jan 2005 08:32:06 +1000, Taco Fleur <[EMAIL PROTECTED]> wrote:
[singleton]
> OK, any ideas on how to make it less complex?
> Which part of it did you consider to be complex and why?
Umm, I don't remember now... beyond just thinking "Wow, that's a
really complex solution to what ought to
The company I work for is currently still running on CF5 and I am in
the process of building my first custom shopping cart so thought it
would be appropriate to jump into this thread.
We are using CrystalTech for shared hosting, and the new site will be
running on CFMX and SQL 2000. From what I've
Hey feedback!
> 3. Possibly... I seem to recall your solution was overly complex
OK, any ideas on how to make it less complex?
Which part of it did you consider to be complex and why?
Some things that I did notice I could improve in the code is to use the
actual variable scope instead of evaluat
> One more quick question...
>
> Should validate() return something (string, array, CFC, whatever)?
>
> Or, should validate() return void and then require me to call
"hasErrors()"?
>
> What is the norm, if there is one?
Thank God. A part of a thread I can actually contribute to...lol.
I have validate() return boolean, and then have a separate
getValidationErrors() method that can be used to retrieve an array of
structs, one struct per error. You could use an array of error CFCs,
but since errors are pure state, I don't see the real benefit of using
a CFC over just a struct.
Wi
On Mon, 3 Jan 2005 16:02:15 -0600, Dawson, Michael <[EMAIL PROTECTED]> wrote:
> Should validate() return something (string, array, CFC, whatever)?
I normally have it return boolean (true if valid, false if not).
--
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org
On Mon, 03 Jan 2005 14:56:39 -0700, Nathan Strutz <[EMAIL PROTECTED]> wrote:
> function getName(str) {
>if (not validateName()) {
> variables.instance.name=retrieveNameFromDB();
>}
>return variables.instance.name;
> }
But why are you validating on a *get* call??
Validation should
On Mon, 3 Jan 2005 20:52:42 +1000, Taco Fleur <[EMAIL PROTECTED]> wrote:
> I have tried to get some feedback before on the Singleton design pattern,
> but got not one response, so I am thinking;
> 1. This is not the list to post to for feedback, only problems.
> 2. There is no interest in these typ
you could try using xmlhttp (an activex control) - it works well pulling
content like this into an asp page.
>I have a .cfm that produces some lines of content, from a Database. I
>want to include this .cfm file in an .asp page. Can this be done with an
>asp INCLUDE? Or do I need some kind of Web
No worries at all. Just don't want an endorsement on my behalf
floating around for the wrong thing. ;) I know people respect my
opinion, and I'd hate for anyone to end up wasting time because of an
opinion voiced on my behalf that wasn't accurate.
cheers,
barneyb
On Mon, 3 Jan 2005 15:49:36 -0
One more quick question...
Should validate() return something (string, array, CFC, whatever)?
Or, should validate() return void and then require me to call
"hasErrors()"?
What is the norm, if there is one?
I guess if validate() returns an error-handler CFC, I can call its
hasErrors() method. T
Do you want to remove all spaces, or just leading and lagging.
If the latter you can use the trim(fieldname) function instead
of replace()
>I have a small app in Access and I need to remove spaces from a field from
>within the SQL. What is the appropriate function call?
Personally, I like to use the raw instance variables, as it's easier to
avoid the recursive caller mistake:
function validateName() {
return yesNoFormat(len(getName()));
}
function getName(str) {
if (not validateName()) {
variables.instance.name=retrieveNameFromDB();
}
return var
UPDATE TableName
SET ColumnName = Replace(ColumnName, " " , "")
NOTE: This will update all records. If you need to filter, add a WHERE
clause.
-Original Message-
From: Jim McAtee [mailto:[EMAIL PROTECTED]
Sent: Monday, January 03, 2005 3:48 PM
To: CF-Talk
Subject: Access SQL - Strip Spa
I stand corrected. Sorry I mis-quoted you.
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Monday, January 03, 2005 3:32 PM
To: CF-Talk
Subject: Re: Default Instance Values in CFC Bean
In the thread where I gave the inline validation example, I also
described s
I have a small app in Access and I need to remove spaces from a field from
within the SQL. What is the appropriate function call?
~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.ne
This (or something very similar) has come up before. I personally
like using the getters and setters everywhere, as they are the 'real'
properties of the CFC, not the instance variables. At least that's
the theory. As for overhead, there definitely is some, but it's going
to be quite minimal, an
In the thread where I gave the inline validation example, I also
described string-based parameters, much like what Sean described. I
wasn't recommending inline validation (if I recall correctly, I
recommended against it, for many of the same reasons Sean listed),
merely illustrating two different
I have a simple CFC that has a few instance variables in it.
...
In this component, I have the pairs of getters and setters such as:
...
...
I also have a validate method that needs to check the values of the
instance variables. Which is the "better form" of accessing the
instanc
As usual, you have helped tremendously.
I was using in-line, procedural validation (similar to one of Barney B's
example), but I didn't really consider having the bean validate itself.
I'm going to spend the rest of the afternoon building in a validate
method to my bean and see how it makes me fee
On Mon, 3 Jan 2005 13:51:23 -0600, Dawson, Michael <[EMAIL PROTECTED]> wrote:
> My final goal is to populate form fields. If this is a new record, I
> want the form fields to be empty. If I am modifying an existing record,
> I want the form fields to display the current record's values.
Bear in
Below is a simple component/bean I created to manage a simple database
table. Please notice that I have a sortOrder which is a numeric type.
I specified "numeric" for the argument type as well as the return type
in the setSortOrder() and getSortOder() methods.
That means I need to specify:
in my
On Mon, 03 Jan 2005 13:03:48 -0400, Larry White <[EMAIL PROTECTED]> wrote:
> Regarding the original post I can't see any reason to use cflock at all.
> Initializing the application variables, I would hope, would not entail using
> user specific values. If the initialization is the same no matter
>
I added the pipe character at the end of each option value statements.
On the processing page I replaced '|,' with '|' and in my
wrote:
> When you're looping over the values you could just increment the list by
> 2 on each so the first and second values go together, etc.
>
> John Burns
> Certifie
When you're looping over the values you could just increment the list by
2 on each so the first and second values go together, etc.
John Burns
Certified Advanced ColdFusion MX Developer
AI-ES Aeronautics, Web Developer
-Original Message-
From: Greg Morphis [mailto:[EMAIL PROTECTED]
Sen
You can't change the comma delimiter from submitted form values, but you
can use your own delimiter, such as the pipe "|", when creating your
select box.
Then, the user selects multiple addresses such as:
French Lick|IN,Evansville|IN,Houston|TX
Then, when you perform the query, you can replace "|
I have a query in which a list (selected from items in a select box)
are searched by. My problem stems from the fact that this list
contains City, St and these are being counted as 2 enteries, not 1. Is
there a way to change the default separator for a select box or does
anyone have any other sugge
> Actually, based on the interest people have brought up, I've got a general
> question for people here. If there was a list that handled SEO, Advertising
> and other site business things, would you both join and post?
I'd join in as well.
Hatton
~
Jim,
Just following up on the thread from last week. I'd be interested in
knowing how your site did over new years and to learn anything helpful
you might have to share about your experience with the new years eve
crush on the firstnight site.
-Cameron
--
Cameron Childress
Sumo Consulting Inc
Regarding the original post I can't see any reason to use cflock at all.
Initializing the application variables, I would hope, would not entail using
user specific values. If the initialization is the same no matter
which user does it, and you won't crash the server anymore, then why
lock it?
> Sorry for asking a JSP question here but I have not been able
> to find a mailing as good as CFTALK for Java/JSP issues.
>
> I am in the process of converting a CF application over to
> JSP running under WebLogic as practice to see how long it
> takes to do the same coding vs. using CFMX.
>
Sorry for not responding earlier. My laptop was stolen. A big mess.
I'm on a shared host so the RAM is somewhat limited. However the client is a
small clothing and jewelry business. They have two stores and this is their
first venture into on-line sales. Currently they get about 200 unique
visitor
> I have a .cfm that produces some lines of content, from a
> Database. I want to include this .cfm file in an .asp page.
> Can this be done with an asp INCLUDE? Or do I need some kind
> of Web service to get the two servers to talk?
No, I don't think you can do that with an ASP include. You co
I believe BlueDragon (and maybe others) support some sort of CFM/ASP.net
including back and forth, but if you're just talking standard
CFMX/ASP.net or ASP you'd just have to use an equivalent of CFHTTP to
call the CFM page or maybe use an IFRAME or something to load the CFM
into. As far as I know
Paul Malan wrote:
>> Yes. It also reminds me why I dislike the graphical execution
>> plans from MS SQL Server :-)
>
> How does one get a view other than the graphical representation? I
> poked around a bit but didn't know what to look for...
http://www.sql-server-performance.com/query_execution
Hi,
Sorry for asking a JSP question here but I have not been able to find a
mailing as good as CFTALK for Java/JSP issues.
I am in the process of converting a CF application over to JSP running under
WebLogic as practice to see how long it takes to do the same coding vs. using
CFMX.
In my CF ap
I need to do some testing on a flash remoting project and there seems to be
some issues with slower speeds. Does anyone know of any free or paid bandwidth
throttlers that allow me to install it on my workstation and limit the amount
of bandwith.
Bob Everland
> Yes. It also reminds me why I dislike the graphical execution
> plans from MS SQL Server :-)
How does one get a view other than the graphical representation? I
poked around a bit but didn't know what to look for...
> It looks like eliminating some rows earlier may help here:
I implemented you
Hello all,
I have a .cfm that produces some lines of content, from a Database. I
want to include this .cfm file in an .asp page. Can this be done with an
asp INCLUDE? Or do I need some kind of Web service to get the two
servers to talk?
Any help will be most welcome, as usual.
Please repl
It's live:
http://www.houseoffusion.com/cf_lists/threads.cfm/46
~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:189150
Arc
I'd definitely join and participate.
Christian
On Jan 2, 2005, at 11:23 PM, Michael Dinowitz wrote:
> Actually, based on the interest people have brought up, I've got a
> general
> question for people here. If there was a list that handled SEO,
> Advertising
> and other site business things, w
You might want to post this on the list at cfczone.org.
(This is a bit over my head, but I can, at least, point you to a list
dedicated to CFCs.)
-Original Message-
From: Taco Fleur [mailto:[EMAIL PROTECTED]
Sent: Monday, January 03, 2005 4:53 AM
To: CF-Talk
Subject: Typesafe enum desig
I'd join. And post.
>If there was a list that handled SEO, Advertising and other site business
>things, would you both join and post?
Jerry Johnson
Web Developer
Dolan Media Company
~|
Special thanks to the CF Community Sui
The reason that I ask is that I don't see a quick way to do what you
originally asked. But there are ways. Here's the quickest (from a
coding point of view, if not a processing point of view) that I can
think of
There's a UDF on cflib.org called ReExtract() (I think that's right)
that yo
Kelly could be,
I have tried method 2 of the provided workarounds. Anyone tried method 1
or even both? If you tried both, did you notice any difference between
the both?
I don't understand though why there isn't a patch for this as a registry
hotfix on the Macromedia website for this. Ok, it is a
I've just started the Biz-Dev Business Development list oh HoF. This list is
designed for discussion, questions and answers about various business topics
that we all deal with.
Topics include:
SEO
Advertising
Marketing
Business Planning/Development
etc.
For those signed into the HoF system, pleas
Well, this is an SEO thing and I wasn't sure if having extra spaces all over
the place in the meta tags and everywhere else would cause any confusion.
- Original Message -
From: "Ben Doom" <[EMAIL PROTECTED]>
To: "CF-Talk"
Sent: Monday, January 03, 2005 9:36 AM
Subject: Re: SOT: RegEx h
Well, it seems to me that there should be a space after every comma,
anyway, so couldn't you just do a simple replace() to replace commas
with a comma and a space?
--Ben
Todd wrote:
> I would post this to the RegEx list, but I'm short on time and the
> HoF web site is giving me fits when I try
Could this be what you're referring to (posted to CF-Talk, 9.22.04)?:
A customer recently pointed out to us that our IIS6 Windows 20003 web srever
connector performance appeared substantially worse than the web server
connector performance on IIS5 and earlier.
We did a
I would post this to the RegEx list, but I'm short on time and the HoF web site
is giving me fits when I try to subscribe. :)
I just got a major problem dumped in my lap. We have about 1/2 a gig of pure
HTML files that are screwed up and the boss wants them fixed yesterday. I'm
writing a CF s
Mike,
Learn something extra .. do Java, do .NET, make handmade carpets..,
really. According to the hot discussions ColdFusion seems to be pretty
popular in the US, but overhere there is the same situation as you have
.. "ColdFusion .. euhm.. what is that?" ;)
Micha Schopman
Project Manager
Mod
Sounds like you've had a shitty time of it lately.
Yes, our intention has always been to move to Oz, as I was offered CF
work at $75 per hour about 3 years ago (I'm a slow mover so never got
round to doing it :$ )
I noticed you had advanced - well done. I've bought Ben Forta's study
guide and I'm
AH!! yes.. I KNEW it was right in front of me. But I'm sorry given
it's a hot summer, and still new year hangover time, my brain just
wasn't working.
Thanks
As to contract rates, I'm not a good person to ask. I'm bloody glad to
see the back of 2004. It was the worst year financially for me since
I already fixed it with lsdateformat yes, I presumed CFMX would handle
datelastmodified despite of locale settings.
Micha Schopman
Project Manager
Modern Media, Databankweg 12 M, 3821 AL Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380
~~~
Perhaps LSDateFormat would be more reliable with locale-specific date
formatting and parsing?
http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/functa28.htm
I don't know enough about local specific stuff in CF, but just a
thought...
-dov
-Original Message-
From: Micha Schopman [m
But still buggy .. this really is annoying.
A simple datatime formatting of datelastmodified throws an error just at
random dates.
#DateFormat(datelastmodified,"-mm-dd")#
coldfusion.runtime.Cast$DateStringConversionException: The value
"woensdag 8 september 2004 12:57:01 uur CEST" could n
Hi there :
I using host headers, same ip , same port , same CF server.
Only the http port is opened for non local conections.
Thanks for you help.
> -Mensaje original-
> De: Troy Murray [mailto:[EMAIL PROTECTED]
> Enviado el: Sábado, 01 de Enero de 2005 12:31
> Para: CF-Talk
> As
Soz... *slap* .. the code works on a higher form of CFMX .. *cough* ..
not on a fully patched CFMX6.1 machine. I just forgot this machine had
been fully assimilated by its older brother.
Micha Schopman
Project Manager
Modern Media, Databankweg 12 M, 3821 AL Amersfoort
Tel 033-4535377, Fax 033-45
I am experiencing weird behaviour on our production server, running the
exact same software & hardware configuration as our staging server. The
staging server returns everything back just normal, but the production
server doesn't like it. It is a very simple piece of code.
Just trying to implement the Typesafe Enum Design Pattern in ColdFusion,
and am looking for some feedback/input on the following code.
I have tried to get some feedback before on the Singleton design pattern,
but got not one response, so I am thinking;
1. This is not the list to post to for feed
I found the article already:
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?event=view&id=
KC.tn_19588&extid=tn_19588&dialogID=701096
Micha Schopman
Project Manager
Modern Media, Databankweg 12 M, 3821 AL Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.4
I while ago I saw a Macromedia article about a slow connection between
CFMX61. and Win2K3's IIS6. This was due to bugs in IIS6, but Macromedia
provided a workaround to overcome the slow connection between the two.
I just can't find any article on the Macromedia support website about
this, and I a
Mike - If you do a CFDUMP of the CGI scope you will see amongst other
things that you can use action="#cgi.script_name#?#cgi.query_string#"
p.s. What are the CF developer contract rates like in Oz at the moment ?
Martin Parry
Macromedia Certified Developer
http://www.BeetrootStreet.co.uk
-Or
93 matches
Mail list logo