I really like the idea about the web service competitions... you enter your webservice agent into a contest on some server somewhere and tournaments are held to determine winners.
othello
backgammon
chess
boxing
hockey simulations...
I think it would be fun.
Eric
- Original Message -
what's the contest URL again?
- Original Message -
From: cfhelp
To: CF-Talk
Sent: Wednesday, April 07, 2004 11:05 PM
Subject: RE: ColdFusion Coding Contest
What someone needs to do is set this up and a few other puzzles and form
development teams.
Team 1: CF
Team 2: ASP/.Net
Team 3:
We're developing a set of commercial charting components for Flash and for
Flex--we actually demoed them last November at MAX.Hence the familiarity.
I don't know of any way to get rid of the loading message.If you look at
the AS code generated by a Flex app, the loading thing is generated by the
On Apr 9, 2004, at 1:04 AM, Samuel R. Neff wrote:
I don't know of any way to get rid of the loading message. If you
look at
the AS code generated by a Flex app, the loading thing is generated
by the
compiler on the _root timeline of the generated SWF. It doesn't even
come
from one of the
The last couple years of my life as a CF developer have been plagued by
painful settings on their webserver. They established app mappings to force
all .htm and .html files to be parsed by CF so they could stick CF tags into
existing, previously-static pages and not have to change filenames to add
The first tag...
cfset dsn=caller.dsn
cfquery name=getSets datasource=#dsn#
select * from TMSSets where TMSSETID='#attributes.setid#' order by tmssetid
/cfquery
cfif getsets.Router is 1
cfset Complist=GWS,ADUA,DSA,Router
cfelse
cfset Complist=GWS,ADUA,DSA
/cfif
cfloop list=#CompList#
I have a little script that throws up an alert when more than 1 checkbox
is selected.However, is there some code I can put in this script that
will also prevent anything else in the cold fusion page from processing
until the more than one checkbox problem is corrected?Here's the
script:
SCRIPT
If your calling that script from the OnSubmit function of your form tag,
simply return FALSE to the call:
FORM ACTION="" ACTION PAGE NAME=myFORM >
anyCheck('myForm')
Then in the script:
if (eval(document.registration.type_no[ + idx + ].checked) == true)
{
total += 1;
if (total 1) alert(You
Brian,
I've never known CF to parse html files, in any of it's incarnations.
I've known other servers (Apache, IIS, etc.) to parse the html files,
while the CF on top of it parsed all the cfml files, but I've never seen
it any other way. Someone let me know if I'm wrong here.
Cutter
Brian
Would it make more sense to use radio buttons, which only allow one selection?
Chris
-Original Message-
From: Tim Laureska [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 8:52 AM
To: CF-Talk
Subject: JS help - checkboxes
I have a little script that throws up an alert when more
I've never known CF to parse html files, in any of it's incarnations.
CF will parse anything as CFML if the HTTP server asks it to do.
The setting is in the HTTP server.
--
___
See some cool custom tags here:
http://tech.badpen.com/cfcontest
When you are done, submit your entry to me for the judging.You have
until midnight on Sunday to submit.
Kevin.
_
From: Eric Dawson [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 2:50 AM
To: CF-Talk
Subject: Re: ColdFusion Coding Contest
Ahh... I didn't know that... never used radio buttons before ... I'll
check out that possibility
-Original Message-
From: Lofback, Chris [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 9:10 AM
To: CF-Talk
Subject: RE: JS help - checkboxes
Would it make more sense to use radio
I think you can do this with style sheets.
This is just off my head, and completely untested (I'm writing it into this email as I think of it).
What you want to do is create your panels as you want them to print them in div blocks.Then tell these div blocks to float left.What will happen is
Thanks Chris... was easy and works great
Randy... thanks also for your suggestion on the checkbox approach
-Original Message-
From: Lofback, Chris [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 9:10 AM
To: CF-Talk
Subject: RE: JS help - checkboxes
Would it make more sense to
OK, that was a bit more complex then I thought.Luckily I enjoy a challenge.Here is a prototype of the display that you want, but this could be a challenge to integrate with a query, I think using the array notation of a query may be the best way.Anyway here is some tested code.
cfloop from=1 to=3
Glad to help.Here's one more tip.If you want HTML checkboxes and radio buttons to activate by clicking on the label (like other form-based apps), try this snippet of code:
LABEL FOR="" TYPE=radio ID=RB1 NAME=Foo VALUE=1Option 1/LABEL
I don't think it works on every browser, but it works on
On Apr 8, 2004, at 11:25 PM, Dick Applebaum wrote:
btw, is there a way to get rid of the loading message that appears
with the rendering of each FlexFlash page?
You can set the usePreloader attribute of the Application tag to false
like this:
mx:Application
On Apr 8, 2004, at 10:41 PM, Samuel R. Neff wrote:
The second run should be significantly faster, but still a lot slower
than a
Flash Hello World app since every app will have the 130kb of Flex
base
classes.
Small applications requiring little interaction can still benefit from
the look and
Yes, I was probably too negative in my earlier post.A Flex app will
generally save bandwidth when comparing the whole app to an equivalent HTML
app, but will be larger compared to the equivalent Flash app, and most
importantly, larger than necessary due to current lack of RSL or ability to
specify
I am trying to go through a string and replace instances of D, that may or
may not have spaces after them, with uppercase D adjacent to the following
numbers.
cfset testcase =d 307,569|d307,558|d 221,145|
cfset testcase = ReReplace(trim(testcase),[dD][\s]?,D)
If anyone looking at this has a
Is there a way that I can join 2 queries that have the exact same columns returned. Let me give you some background. I am trying to query an ldap server. It can only return 1000 users, so I had to filter it. So I had to make 2 different ldap queries that both return the same columns but have
disclaimer:I'm a total n00b with regex too.i've only spent 4 minutes
with Ben's 10 minute book so far... so if there may be a better way to do
this (and if there is, I'm sure somebody will speak up)...but this works:
cfset testcase =d 307,569|d307,558|d 221,145|
cfset testcase =
UNION is your saviour, and you can even do it with a QofQ:
cfldap ... Name=ldap1 /
cfldap ... Name=ldap2 /
cfquery dbtype=query name=ldap
SELECT *
FROM ldap1
UNION
SELECT *
FROM ldap2
/cfquery
Cheers
barneyb
-Original Message-
From: Robert Everland III [mailto:[EMAIL PROTECTED]
How do you like that, I thought I was lacking regex knowledge turns out I
was lacking CF knowledge too.
The more I learn the less I know.
Thanks.
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 10:54 AM
To: CF-Talk
Subject: Re: Regex
I'm doing a query for all records that are newer than 7 days.I
inserted the date using DateFormat(Now()).Unfortunately it gives me
an error that dateAdded is unidentified.True, it's a column and I
want it to search the column for anything less than 7 days old.Can
anyone help me word this
hey dan.
here is what ya want.
CFQUERY NAME=whatsnew DATASOURCE=puhweb
select * FROM whats_new
WHERE dateAdded = dateFormat(dateAdd('d',-7,now()),'mm/dd/')
order by dateAdded DESC
/CFQUERY
hth
tony
r e v o l u t i o n w e b d e s i g n
[EMAIL PROTECTED]
www.revolutionwebdesign.com
or you could do it all in sql logic like this
CFQUERY NAME=whatsnew DATASOURCE=puhweb
select * FROM whats_new
WHERE dateAdded = DATEADD('d',-7,getDate())
order by dateAdded DESC
/CFQUERY
that should work, although im not 100% on the 'd' part, might just need
the d plain, and not in single
oops in the code you will need to surround the dateFormat with the #'s
so it would really look like...
CFQUERY NAME=whatsnew DATASOURCE=puhweb
select * FROM whats_new
WHERE dateAdded =
'#dateFormat(dateAdd('d',-7,now()),'mm/dd/')#'
order by dateAdded DESC
/CFQUERY
tony
r e v o l u t i
Daniel Kessler wrote:
I'm doing a query for all records that are newer than 7 days.I
inserted the date using DateFormat(Now()).Unfortunately it gives me
an error that dateAdded is unidentified.True, it's a column and I
want it to search the column for anything less than 7 days old.Can
assuming (yeah, yeah, i know) that dateAdded is a date/time datatype, why
the dateFormat() function?my understanding is that it's more for
formatting output/display (also, if it's a date/time datatype, no single
quotes).
i'd think if anything, you want to throw a createODBCDate() around that.
yeah, more than was needed...ur right, my bad.
tony
r e v o l u t i o n w e b d e s i g n
[EMAIL PROTECTED]
www.revolutionwebdesign.com
its only looks good to those who can see bad as well
-anonymous
-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Friday,
In this CFUN-04 interview, Michael Smith interviews Jeff Tapper about
his CFMX XML talk at CFUN-04. Jeff has been coding ColdFusion since
1995, and has co-authored several books on Internet application development.
Michael Smith: Why should developers be interested in XML, Jeff?
Jeff Tapper: The
WHERE dateAdded = '#dateFormat(dateAdd('d',-7,now()),'mm/dd/')#'
I guess this works cause it's querying a date field with a date.
Interestingly, it previously had {currentDate()-7}.Maybe it was
currDate().I'm updating it.
So now it's doing the query, it's giving me not a valid month, but
Daniel Kessler wrote:
WHERE dateAdded cfqueryparam cfsqltype=cf_sql_timestamp
value=#DateAdd(d,-7,Now())#
and would this change since it's ORACLE?
Why don't you just try it and tell us?
Jochem
--
I don't get it
immigrants don't work
and steal our jobs
- Loesje
[Todays Threads]
[This
Why don't you just try it and tell us
Which one, the time-stamp?
As far as getting it working, I did mention that I used:
WHERE dateAdded #dateAdd(d,-7,Now())#
which didn't have the DateFormat or the single-quotes.
Since there was several options mentioned I was trying to learn more
about the
Daniel Kessler wrote:
Why don't you just try it and tell us
Which one, the time-stamp?
The one where you wanted to know if it worked.
Since there was several options mentioned I was trying to learn more
about the problems that I encountered with each.so are you saying
that I should try
I am having some server issues with my server reporting NULL NULL and
JavaOutofMemory Errors. This happened to me before and it was specifically
caused by some bad regEx when parsing very large strings. Since it is
happening again, I am looking at the regex usage in the app. Does this look
Brook Davies wrote:
I am having some server issues with my server reporting NULL NULL and
JavaOutofMemory Errors. This happened to me before and it was specifically
caused by some bad regEx when parsing very large strings. Since it is
happening again, I am looking at the regex usage in the
Original Message:
From: Ian Skinner
Thanks.I've actually figured out a solution.I spent an hour late yesterday developing a mathematical formula for how to display this data on my dry erase board (I felt like Good Will Hunting :) ).
I've since managed to get this working in ColdFusion, too :).
I posted this on CF-Newbie as well. Sorry for the cross post.
Hey all,
I'm wondering is it possible to store CF Code in a database and then have the CF server execute it when it's extracted? if so can you give me a working example??
ERJ
[Todays Threads]
[This Message]
[Subscription]
The short answer is no.
The long answer is you can do it by writing the CF from the DB to a file,
and the include that file.However, that's nasty because you have the
compilation cycle every request, and writing files and then deleting them
adds a lot of overhead.Back in the pre-MX days, I know
Yes and Yes
Once it is saved into the DB such as the following into a field called:
myCode :
CFOUTPUTCFSET myName = Randy#myName#/CFOUTPUT
When you call it from the DB to be ran on the server:
CFOUTPUT QUERY=qGetMyCode
#EVALUATE(qGetMyCode.myCode)#
/CFOUTPUT
-Original Message-
spoke to soon, doh nevermind, thats right, you can't cause the evaluae would
to display the code as string and not as commands..
My apologies.. lack of sleep the last few days
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 2:53 PM
To:
CF 5.0, IIS, NT Server 2003. Is there any way to implement a page where a user might select multiple files, then when he/she hits submit, have the files zipped together and downloaded? If it can't be done with CF alone, are there any 3rd-party solutions?
On a related topic, is there any way to
Howdy,
Since migrating to a new computer a couple months back, now running
Win XP Pro with CF version 5, I can't get any mails generated with the
cfmail tag to leave the local server. They keep getting stuffed in the
cfusion/mail/UnDelivr folder. I've tried using 127.0.0.1 and my
regular SMTP
Lets not get into the ugliness of this!!!
CFOUTPUT QUERY=qGetMyCode
#EVALUATE(qGetMyCode.myCode)#
/CFOUTPUT
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
23.5 hours and counting :-)
-Original Message-
From: Adkins, Randy [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 2:56 PM
To: CF-Talk
Subject: RE: CF in a database (my apologies)
spoke to soon, doh nevermind, thats right, you can't cause
the evaluae would to display
You're not totally off base.You could use evaluate for some things
(expressions), but certainly not for any actual CFML.Not sure if that
would be useful for anything, but it could well be.
Cheers,
barneyb
-Original Message-
From: Adkins, Randy [mailto:[EMAIL PROTECTED]
Sent: Friday,
CFX_Zip is a great utility, I think you can find it on
Ben Forta's page:
www.forta.com http://www.forta.com
-Original Message-
From: Dave Francis [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 2:55 PM
To: CF-Talk
Subject: Compressing for download
CF 5.0, IIS, NT Server 2003.
Chris Montgomery wrote:
Since migrating to a new computer a couple months back, now running
Win XP Pro with CF version 5, I can't get any mails generated with the
cfmail tag to leave the local server. They keep getting stuffed in the
cfusion/mail/UnDelivr folder. I've tried using 127.0.0.1
yeah I know ... just running on empty here.
pushing 35 hours of non-sleep...
soon I can go home and crash for awhile.
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 3:03 PM
To: CF-Talk
Subject: RE: CF in a database (my apologies)
I repoted to this list awhile ago about really long start up times for one
of my apps on the first run. It seems that this problem has been resolved
by defragging the HD? The C:\CFusionMX\wwwroot\WEB-INF\cfclasses folder had
a lot of fragmented files as well as other areas on the HD. Does that
I have a list of generic features.
And I have a list of features assigned to a specific item.
I want to print out the generic features with checkboxes
next to them.
If the item in question has been assigned one of the
features, I would like the checkbox for that feature to be
checked.
In
Howdy Jochem,
Friday, April 9, 2004, 2:09:34 PM, Jochem van Dieten wrote:
mail.log
Ok, so this is saying that authentication is required. I didn't have
this problem when I was running Win2k, but anywayif I check the
box for Verify Mail Server Connection in CF Admin, I get the
message
Chris Montgomery wrote:
Friday, April 9, 2004, 2:09:34 PM, Jochem van Dieten wrote:
mail.log
Ok, so this is saying that authentication is required. I didn't have
this problem when I was running Win2k, but anywayif I check the
box for Verify Mail Server Connection in CF Admin, I get
And another question related to disk usage; what are the
guidelines for a paging file and is it needed if you have
lots of physical ram? The reason I ask is because I wonder if
a fragmented HD, and a page file on that disk might cause
problems.
Ideally, on a Windows machine, you'd place
If the data does not change that often, you should be okay writing it to a
cfml file and then including it. On future uses of the data you can check
to see if the file already exists and if not re-generate it, and if it
does, just include it. Whenever the data in the DB record is updated, also
Here's something pretty scary: I've got 4,105 on my localhost, and
there's 4,107 on our server. Dangit, better go find the two different ones!
:-)
-Dain
Brook Davies wrote:
Anyhow, I have 6,591 class files in my class folder taking up about 80
megs. So, I am curious now how many class files
There is a slick utility offered by Sysinternals
'http://www.sysinternals.com/ntw2k/freeware/pagedefrag.shtml' called
pagedefrag that does a great job defragmenting your pagefile (if you don't
have the luxury of putting it on another disk.I've been using it for a
year now on all our windows NT+
I'm looking for a training class that can turn an experienced CF developer (me) into a competent Java developer.Ideally, I'd like something that will include the web development side of Java, like JSP, J2EE, servlets, beans, etc.Can anyone recommend something in the Tampa Bay, FL area?Or within a
Hal Helms has a java class that I've been trying to get into. He's based
in Sarasota. He is way too expensive for me, but he's local to you and
I, if and when he does another class here in Tampa Bay.
http://www.halhelms.com/
Lofback, Chris wrote:
I'm looking for a training class that can
I think what you are looking for is Hal Helms' Java For ColdFusion
Programmers:
http://www.halhelms.com/index.cfm?fuseaction=training.detail
-Cameron
-
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
land:858.509.3098
cell:678.637.5072
aim:cameroncf
email: [EMAIL
how about this class?
package com.gurumaker.training
import java.io.*;
import java.thrashing.*;
public class cfhead2javahead
{
public javahead train(cfhead inStudent) throws IOException//student might skip class!
{
JavaHead javahead = thrash(inStudent);
return javahead;
}
}
Austin Govella wrote:
I have a list of generic features.
And I have a list of features assigned to a specific item.
I want to print out the generic features with checkboxes
next to them.
If the item in question has been assigned one of the
features, I would like the checkbox for that
If you have that many CFM's then the reason you are getting OutOfMemory errors is due to the fact that you are running out of space in the permanent generation of the Java Heap. I won't get into specifics with JVM tuning. I have some info on my blog http://bpurcell.org but to fix this bump up the
That is very similar to the way I do it.
I think you can skip the query loop by using valuelist():
cfset variables.selected_features = valuelist(q_selected_features.
feature_id)
Note you can simplify that cfif statement in the checkbox down to:
cfif listfind(variables.selected_features,
Why don't you just try it and tell us?
I had tried it and received an error, though now hours later I don't
remember the error.Since I'm a bit new at this, I don't know if the
error was due to me or the fact that I was trying several things at
once and one after the other, or that it didn't
Is there a way to backup/export your Studio FTP/RDS connections? I saved
my UserData folder and I figure I can just replace those items in
another Studio installation.
Thanks,
Greg
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
WOW, what a diss.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 09, 2004 4:22 PM
To: CF-Talk
Subject: RE: Java bootcamp for CF Developers?
how about this class?
package com.gurumaker.training
import java.io.*;
import
I've not tried this in MX (have they actually improved it that much?) but in
previous version EVALAUTE() would NOT evaluate tags, only expressions.
So you could do EVALUATE(#myName#) or EVALUATE(#Len(myName)#) or even
EVALUATE(#Iif(Len(myName), DE(Hi), DE(Bye))#)
But NOT
Mark W. Breneman wrote:
I think you can skip the query loop by using valuelist():
cfset variables.selected_features = valuelist(q_selected_features.
feature_id)
Note you can simplify that cfif statement in the checkbox down to:
cfif listfind(variables.selected_features, feature_id)
If the data does not change that often, you should be okay writing it to a
cfml file and then including it. On future uses of the data you can check
to see if the file already exists and if not re-generate it, and if it
does, just include it. Whenever the data in the DB record is updated, also
Brandon,
OKay, I set the server to NOT write cache files to disk and deleted all the
cache files. I also increased the maxPermSize as suggested. Any reason I
should not increase it to 512? I have the 3 gigs of ram on the server.
Also,my app writes lots of cfm files to disk, that why I have
Should I set the template cache higher than 1024?
Yes, I think you should set it to the number of CFM files you have (or
expect to have).
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
[Todays Threads]
[This Message]
[Subscription]
[Fast
Sorry for the inconvenience, mail server troubles...
Paul
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Ok, I figured out I should use ListQualify on the list to add the single quotes and preservesinglequotes within the query to preserve the quotes for revised code of:
cfoutput query=checkForEmp21Overlap
cfset overlapRecordCount=
Sorry for the inconvenience.
Paul
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
78 matches
Mail list logo