I have a pure CF solution. email me if interested.
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239843
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription:
Closest number, which is SMALLER than a given num (round down):
cfset down25 = 25000 * int(num/25000)
Closest number, which is LARGER than a given num (round up):
cfset up25 = 25000 * ceiling(num/25000)
Closest number (round):
cfset round25 = 25000 * int(0.5 + num/25000)
Try to use cscript.exe instead of wscript.exe
~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237120
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription:
Closest number (round):
cfset round25 = 25000 * int(0.5 + num/25000)
You can just use round for this, instead of adding an then using int:
cfset round25 = 25000 * round(num / 25000) /
cheers,
barneyb
On 4/6/06, One User [EMAIL PROTECTED] wrote:
--
Barney Boisvert
Of course. I use int(0.5
Is it possible to multithread within a single request. For
example, I would like to make multiple http requests to a web
service, but at the moment they run one after the other,
taken about 3 seconds each, but if I could run them both at
the same time it would improve the performance
don't have time to write one from scratch.
I have a budget of $300.
Any takers?
Thanks,
Dave Livingston
~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners
This fixes the problem:
http://www.cftagstore.com/tags/cfxhttp5.cfm
Thanks for looking at it Dave, it has me completely stumped, I always seem
to find the cruelest limitations of a technology where there's no way
out. I think the CFHTTP timeout is probably working as intended, so that
if no
Oops... Found the original post...
This is not a timeout issue, because their server is outputting data and does
not stop. Since HTTP allows the response not to have Content-Length header,
the garbage they output is perfectly valid response. What needed is some limit
on the size of received
http://www.cftagstore.com/tags/cfxupload.cfm
~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today.
May want to look here:
http://www.cftagstore.com/tags/cfxhttp5.cfm
I would like to use a web service to invoke a function on a remote
server, but I explicitly *don't* want my local server to wait for the
remote server to complete the action. I just want my local server to
send the
If the problem is in executing a task under another account, use this:
http://www.cftagstore.com/tags/cfxexec.cfm
This is a replacement for CFEXECUTE that allows account switching.
~|
Logware (www.logware.us): a new and
for one though!...
What is your salary per hour? If you earn below $250 a week, it might worth to
waste one week of your time for unsuccessful project. Otherwise, consider to
buy something that works.
~|
Logware
Also. Just checked cf_FedEx on adminprotools.com. Here some observations:
- For $49 you get only the ability to issue the rate and tracking requests. No
actual shipping supported. You have to pay $149 for a full version that allows
shipping operations.
- Labels are browser-based, as far as
This provides asynchronous capabilities in full. And without MX7.
http://www.cftagstore.com/tags/cfxhttp5.cfm
~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and
Windows hosts files? Potential external/unknown variables?
Hmmm... What you are talking about? Give me a potential point
of break.
Multithreading assumes cooperation between different parts of a task.
So-called async gateways are just parallel and NOT cooperating
DIFFERENT tasks. If this is what
This tag supports it:
http://www.cftagstore.com/tags/cfxhttp5.cfm
~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client
Try this instead:
http://www.cftagstore.com/tags/cfxhttp5.cfm
Roger I was using cfexecute because I wanted the process to launch and
then release. So the page calling it could still continue processing.
Kind of a poor mans version of creating another thread to process in
the background.
Anyone have any idea how to change a number thats being outputted from a
table as 70.0500 to 70.05 with only 2 decimal points.
Is this doable thru a change in SQL 2000 or a change in the query itself?
I'm doing an email merge, and the tag used won't allow formatting of
anything within the body
Thanks for your help. Only thing is a list of about 1000 clients is merged
into the Activ Mail tag, and so each record has to be formatted within the
query itself because Active Mail only takes lists from the query, not from
CFPARAM or CFSET. The emails go out only to clients who's accounts are
I forgot to mention, the Activ Mail tag won't take regular Cold Fusion
variables with the # signs, it works with only what they refer to as Tokens,
and the Tokens which are really data from a query can't be formatted with
regular Cold Fusion functions such as dollarformat, etc.
Hence the need to
How do you round it off?
Multiply the number b7 100, round it off, and then divide by 100.
Benjamin S. Rogers
http://www.c4.net/
v.508.240.0051
f.508.240.0057
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 4:22 PM
To:
Just tried this code, but alas, no dice:(
Thanks for the suggestion tho.
- Original Message -
From: VAN VLIET, SCOTT E (SBCSI) [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, April 03, 2002 2:07 PM
Subject: RE: How do you change this number 70.0500 to 70.05?
SELECT
How do you format numbers in SQL 2000 table.
i.e. So that a number that is used in a mail merge shows up as
either 500.00 or 500
In one case with only two decimal points and in the other, with none.
The first is to be used with displaying currency values, i.e. $500.00
The second
Anyone know why emails get jammed or put into undeliverable folder using CF
Mail in CF 5.
I am CF Ticked off on this one and now dare I say it, even CF Perplexed!!
__
This list and all House of Fusion resources hosted
Does anyone know the pros and cons of sending email internally through a
tag's own SMTP server vs. sending all generated emails to the email server.
Activ Mail sends emails to the email server.
Infusion Mail SE sends them out internally.
Appreciate any feedback on the real world pros and cons
Does anyone know the pros and cons of sending email internally through a
tag's own SMTP server vs. sending all generated emails to the email server.
Activ Mail sends emails to the email server.
Infusion Mail SE sends them out internally.
Appreciate any feedback on the real world pros and cons
Does anyone know the main differences between IMS Fusion Mail tag at:
http://www.coolfusion.com/moreinfo.cfm?Product_ID=39
and the ActivMail tag at:
http://www.cfdev.com/jmail/
__
Get the mailserver that powers this list
Am having a problem connecting to Authorizenet using the cfauthorize tag
with Cold Fusion 5.
Any ideas what the problem might be or any ideas on how to fix it?
Regards,
Pardee.
__
This list and all House of Fusion resources
Does CFHTTP in CF 5 only handle 56 bit encyrption?
This is what I read on their site? If its true, it sucks, because I'm trying
to use CF Authorize, a 3rd party tag.
Due to United States export limitations that were in effect when Macromedia
ColdFusion Server 4.5 and 5 were released, the
Anyone have any ideas why CFHTTP may not be connecting with Authorizenet
using the CF Authorize tag? Here is the response message:
Your charge was declined for the following reason:
An error occurred when attempting to connect with the credit card processor.
Is there a good way to consistently make sessions expire within a 10 min
period?
__
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ:
Hi, I'm having a problem using session variables. They are set to time out
at 120 (2 hours).
However if someone does NOT close his browser and then they try to come back
to the site after a couple of hours, they get an error message.
Is there a way to flush and totally expire session variables
to expire session variables when browser not
closed?
Pardeep,
One way you could accomplish this task is to add code like this to your
Application.cfm file.
cfif not isdefined('session.info')
cflocation url=setSessionVarsTemplate.cfm
/cfif
Any time the session information isn't available
Hi, I'm having a prob. with the following query to generate a report. There
are 3 colums called:
pastdue30
pastdue60
payments
region
So what I'm trying to do is add up pastdue30 and pastdue60 amounts and then
minus payments - which is payment a customer has made to show what the net
balance is
Thanks, that solved the problem:)
- Original Message -
From: John Wilker [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, March 21, 2002 6:37 PM
Subject: RE: Problem with math in query !!!
What error do you get?
This may not be the culprit but I'd wrap payments -
Does anyone know how to make a page that will display a lot of data can be
made to be completely black until all the information has been loaded and is
ready for display?
Some of the data in this instance is graphics being pulled from a database
and it looks not very pretty as you see them being
As an addition to last msg - is it possible to prevent a page view until all
data has been downloaded?
__
Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation · $99/Month · Free
Hi, I'm having problems with the top email in the SPOOL directory blocking
all other emails in that directory. So if there are 100 emails, 99 are being
blocked because the top one is not processing.
Then I have to switch off the CF server, and delete the top file, restart
the server only to find
PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, March 13, 2002 12:47 PM
Subject: RE: CFMAIL getting stuck in the SPOOL directory
The one file is probably 0k in size right? It's a common bug in
ColdFusion. You could put a script in place that will look in the spool
dir for 0k files
:)
This is what I've been doing. Unfortunately its not solving the root
problem, and since I have no ideal why one email would get stuck, its tuff
to find a solution.
Any idea what might cause one email to block the whole list?
Thanks.
- Original Message -
From: John Wilker [EMAIL
Try:
CFQUERY datasource=Contacts name=GetNewUser
SELECT MAX(ID) as MAXID
FROM ContactInfo
/CFQUERY
Regards,
Pardeep.
- Original Message -
From: S R [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, March 13, 2002 2:08 PM
Subject: MAX function problem
I keep getting
Try this one:
I _ promise to pay you on time and fairly and squarely for
the eminent work you do for me o beloved Cold Fusion programmer.
Signed
Print name:
(Place thumb print and notary seal to right)
Hope it helps.
- Original
Anyone have any idea on why a lot of emails are going within Cold Fusion
straight from the SPOOL folder to the UNDELIVR folder
I don't know if its a problem in Cold Fusion or the email server
Thanks
__
Why Share?
Dedicated
Does anyone know how to prevent:
1 Preventing a web page from being saved when being viewed in a browser and
2 Preventing the images on the page from being saved
Is there some technique or maybe a program that enables this?
__
Anyone have any idea on why a lot of emails are going within Cold Fusion
straight from the SPOOL folder to the UNDELIVR folder
I don't know if its a problem in Cold Fusion or the email server
Thanks
__
Get Your Own Dedicated
How do you get the row ID number of the newest record added to a table?
I want to insert a record and then outout the info from that record by the
autocreated row ID number, because there's no other unique identifier for
the info in each record.
Is there a function that tells you the highest
, email_address, customer_number, total_due, (past_due_30)
+ (past_due_60) + (past_due_90) + (past_due_120) AS totaloutstanding
FROM accountsreceivable
where totaloutstanding 0
/CFQUERY
Appreciate any enlightenment on this one:)
__
Why Share
Is it possible for CF to connect to a live remote Sybase database so one can
run queries and create reports on live data.
If so, how do you go about doing it and what are the security ramifications?
Thanks.
__
Why Share
) + (past_due_90) + (past_due_120) AS totaloutstanding
FROM accountsreceivable
where totaloutstanding 0
/CFQUERY
Appreciate any enlightenment on this one:)
__
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM
to take a given form field (numbers) and break it into 2
parts. Then insert one part, and cfmail the other. The number can
be different lengths.
For example: 3939 may get passed by a form field.
I need to insert the 3939 to a DB, and cfmail the .
I must
: Wednesday, February 13, 2002 5:14 PM
To: CF-Talk
Subject: Split up a credit card number? Need regex handout!
Hello everyone,
I need to take a given form field (numbers) and break it into 2
parts. Then insert one part, and cfmail the other. The number can
be different
Hi, does anyone here have any experience with the Linkpoint Cold Fusion tag.
Their documentation is really poor and I can't figure out:
1. Precisely how you define the total amount for a transaction that does not
have any shipping or tax info involved.
2. Which field provides the result of the
Has anyone tried this tag yet? I registered it as a CFX tag in Cold Fusion
5, tried using it according to the code provided, but it doesn't work.
Anyone have any ideas on what the problem may be?
Code used to simply resize was:
cfx_pwimageproc
I was looking at cflib.org at the various UDFs that can be downloaded.
However, I'm not aware of how you use the UDFs.
1. Do you place them in the root of the site you're working in or the custom
tags directory and
2. How do you call and use them as far as within your scripts.
I haven't had a
In SQL 2000, what code do you type in the default field so that the current
date and time is inserted into a field.
I have one field for DATE and another for TIME so we know the date and time
a form was submitted.
Thanks
Hi, does anyone know how to make FIRSTNAME from a database appear as
Firstname for the purpose of sending emails to customers.
It would look weird sending emails as:
Dear FIRST NAME,
So I'm finding it a challnge to format this properly as:
Dear Firstname
Appreciate any help.
Thanks,
Pardee.
Confucious say: Why CFHTTP not post if data come from multi-part form?
I have a CFHTTP script which executes perfectly if all the data submitted to
it comes from only one form page.
However if the data comes from a page that is the result of a multi-page
form, for some reason it doesn't
How would you take out only the customer ID number from the following XML
response from a CFHTTP post:
This is the response that comes from the server we do the CFHTTP post to.
?xml version=1.0 encoding=utf-8?
string xmlns=http://tempuri.org/;892028/string
We need to take out only the
/string';
// parse string
out=rereplacenocase(in, 'string([^]*)([^]*)/string', '\2','one');
/cfscript
HTH,
Joseph DeVore
VeloxWeb Technologies
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 14, 2001 12:06 PM
To: CF-Talk
Subject
Whats the best way to insert 10 form fields into one field in the server
database via CFHTTP.
Is it better to:
1. Do 10 separate insert statements or
2. Use just CFINSERT and let it occur autmatically or
3. Use a loop statement.
Field name on form is phonenumber, there are 10 different ones
Re: How do you concatenate 2 string variables into one with a space in the
middle
i.e. (area code) and (telephone number) - such as 858 999 into 858
999 to be inserted into one field in a database. Here's how I wrote the
code thus far:
Variable 1:cfparam name=areacode default
How would you parse the following XML response to a CFHTTP post to:
1. Extract and insert only the CUSTOMER ID number into the database and
2. also use it for a new CFHTTP post command in the same script?
EXAMPLE RESPONSE FROM SERVER TO WHICH I POST VIA CFHTTP:
?xml version=1.0
How do you get CF 4.5 to work with mySQL for Windows?
Is there an ODBC driver or is there another way to connect?
Thanks,
Pardee.
~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ:
Am having a problem getting a variable to show up in a URL link. Can't
figure out what the problem is:
Error Occurred While Processing Request
Error Diagnostic Information
Expression result cannot be converted to a string
Expressions used inside tags like CFOUTPUT, CFQUERY,
How can you get Cold Fusion to process pages with diff. extensions, say for
example like on CFextras their pages end with page.cfx
I'm running Apache on Win 2000 with CF 4.5
Would the change take place in CF or in Apache?
~~
Get the mailserver
I have a friend who needs to send resumes to a list of 20 companies he deals
with.
When he sends the email, he needs to attach a Word doc that is the relevant
resume.
I know how to do email merges in CF, but am having a problem enabling file
attachments. Keep getting an error message following
Need to send color and text emails, so that the recipient sees one of the
two depending upon their email client. i.e. AOL users typically cannot see
HTML emails.
Does anyone know of a good solution or tag to accomplish this. The ones on
the Allaire site so far are very buggy and don't work
I finally got a solution that works well for page reloads if its of help to
anyone:
!--- Default value for refresh is null ---
cfparam name=refresh default=
!--- Refreshes page only if 'refresh' equals 1, upon refresh it
doesn't ---
cfif refresh eq 1
META HTTP-EQUIV=refresh CONTENT=0;
How do you refresh a page via code or prevent caching of a page?
Have seen some other suggestions, but none of them have worked thus far.
Thanks.
~~
Structure your ColdFusion code with Fusebox. Get the official book at
Hey folks, my 2 cents. I just started using Fusebox 2 methodology, and I
find its really helpful centralizing all the actions in one file. Its making
it easier to organize and build the app, primarily because its easier to
understand how all the different parts work with each other. So I've only
Does anyone know how to prevent pages from caching in a browser?
Or how to refresh pages in a manner that works in all the browsers? By
refresh I don't mean you massage the page visualizing a Swedish model, but
rather the page is reloaded along with any new versions of graphic files
that have
I'm unable to send form data with spaces in Netscape 4.61
Is there a way to URL encode it and then URL decode the message in the
receiving file?
Or is the solution to send to a redirect file with URL encode added to a URL
going to the processing script?
This is the actual error message even though the variable 'bannerfile' shows
as being present in the URL with a value also. I'm totally puzzled by this:
Error Occurred While Processing Request
Error Diagnostic Information
An error occurred while evaluating the expression:
Which is better and more efficient, if you want to dynamically change images
for clients?
Is it better to use a graphics tag or use Flash?
I've found both to have their pros/cons so far. The graphics gifs/jpgs don't
look too sharp on the fonts if you place text on a dark background.
The Flash
Does anyone know how to get a variable from CFSET or a query into a text box
in Flash.
Would like to be able to dynamically update the text in the Flash movie.
Have looked around and found nothing so far that does a decent job on
explaining this process.
[EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, October 29, 2001 4:02 PM
Subject: Re: Dynamically inserting text into Flash via Cold Fusion
Check out http://www.flashcfm.com
Lots of tutorials and sample code.
Jim
On Monday, October 29, 2001, 6:03:46 PM, one wrote:
olc Does anyone
Does anyone know where one can find the holy CFX_printmoney tag?
Just thought I'd lighten things up from all this Microsoft (referring to
Bill Gate's personal organ) vs. Macromedia:)
~~
Structure your ColdFusion code with Fusebox. Get the official
Does anyone have any experience in working with CF Generator or even the
open source jGenerator?
Am curious how one goes about interacting dynamically between the two. I
know CF can be used to send variables to Generator, but don't have the
foggies idea how that set up in Generator
Does anyone know of a good tool other than Active Edit which enables a
client to manage his own web page content directly through the browser.
The probs I've had with Active Edit is that the documentation on how to use
it is very poor to non-existent. Consequently I don't have the foggiest idea
You could try Merlin Apache at www.abriasoft.com
There is a Windows and Linux version.
- Original Message -
From: Adrian Lynch [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 9:48 AM
Subject: RE: cf and apache
Is there anyone we can email about this
Does anyone know how to dynamically generate formatted images.
i.e.
1. A client fills out a web site banner name in a form and presses submit
2. That automatically generates the banner image, with formatting rules like
drop shadow, etc.
I know Macromedia Generator does this, but its a very
Hey folks, so far I found these two ASP solutions, however no tag in Cold
Fusion. Surely that can't be right, there must be something in the wonderful
world of Cold Fusion that allows us to do the same thing.
Say it ain't so
http://www.serverobjects.com/products.htm#aspimage
Does anyone know how to dynamically generate formatted images.
i.e.
1. A client fills out a web site banner name in a form and presses submit
2. That automatically generates the banner image, with formatting rules like
drop shadow, etc.
I know Macromedia Generator does this, but its a very
Does anyone know how to dynamically generate formatted images.
i.e.
1. A client fills out a web site banner name in a form and presses submit
2. That automatically generates the banner image, with formatting rules like
drop shadow, etc.
I know Macromedia Generator does this, but its a very
84 matches
Mail list logo