I have re-written the code and it is working, except that the renaming of the
files (filefield=#variables.filename#) part is not working. When I dump (see
code below) the session variable that I am assigning to filefield, I get the
correct result, but the filename is not changed on upload when
cffile action=upload DOES NOT rename files. it just moves the
uploaded file from the temp upload dir on the server to the dir on the
server you specify in the DESTINATION attribute.
depending on the value of NAMECONFLICT attribute, this action will
either overwrite a file with the same name if it
This should be simple for all you RegEx Gurus.
I have a textarea field that may contain list numbers such as : (i) (ii).
What I want to do is convert those to LI statements.
I know you have to escape the parathesis but it produces: LIi) and LIii)
How can I change it just to an LI statement
I have a government machine that an idiot configured. It has 11GB of space on
the C drive and I constantly have to delete things to gain space. I currently
have 12MB of free space on C drive with all my apps on E drive. When C drive
fills up, you all know what happens to the app. What in
Thanks much -- this is exactly what I needed. I don't know why, but I
had only tried putting it above the cfcomponent tag.
Cheers,
Kris
We are using encoding declarations in cfcs just after cfcomponent tag and
everything works fine:
cfcomponent output=no
cfprocessingdirective
Brian Yager wrote:
I have a government machine that an idiot configured. It has 11GB of space
on the C drive and I constantly have to delete things to gain space. I
currently have 12MB of free space on C drive with all my apps on E drive.
When C drive fills up, you all know what happens
Check the stackoverflow in this result:
http://www.google.co.uk/search?hl=enq=find+roman+numerals+regexbtnG=Search
meta=
Adrian
-Original Message-
From: CF Developer [mailto:coldfus...@mindkeeper.net]
Sent: 02 April 2009 13:00
To: cf-talk
Subject: simple RegEx?
This should be
Check recycle bin settings? Default reserves 10% of drive space for recycle
bin. I kick mine down to 1%
Look for .dmp files. If the machine had a memory dump in the past, those
files could still be there.
Search for file more the 25MB. What shows up? Setup files, tmp files, and
log files that
Delete old log files - make sure you roll them on occasion.
If your sending lots of email out via CFMAIL make sure your mail/undelivered
folder is not store large amounts of undeliverable mail.
Do what the others have suggested.
Wil Genovese
Sr. Web Application Developer
On Thu, Apr 2, 2009
cfset date1 = '11/30/2008' /
cfoutput
cfloop from=1 to=6 index = i
cfset date2 = dateAdd('m', i, date1) /
#dateFormat(date2,'mm/dd/')#br /
/cfloop
/cfoutput
That's odd, but not unexpected. Since you're starting on the 30th, it's
adding a month to that and reduces when the month doesn't have 30 days in
it. It's not taking the initiative of thinking you want the last day of the
month.
Maybe this would work?
cfset date1 = '11/01/2008' /
Look at the DaysInMonth() function.
-Ryan
Tony wrote:
cfset date1 = '11/30/2008' /
cfoutput
cfloop from=1 to=6 index = i
cfset date2 = dateAdd('m', i, date1) /
#dateFormat(date2,'mm/dd/')#br
Its not a bug infact its exactly as you specified try this instead:
#dateFormat(date2,'m/dd/')#
with a single m
here is a good reference for dateFormat:
http://www.cfquickdocs.com/cf8/#DateFormat
Paul.
On Thu, Apr 2, 2009 at 11:05 AM, Tony tonyw...@gmail.com wrote:
cfset
Thank you, Peter. I'll try it tonight and update you folks then.
Don, the following code should work in all major browsers - certainly
I've tested in Firefox 3, IE7, Chrome, and Opera 9.
Here's the HTML:
button type=button class=download data-file=http://xyz.
couple things... 1. its easy as pie to code around, i was actually
doing first of next month, less 1 day... which works as well
as your idea... and thanks!
second, maybe there needs to be another incrementer, that does it
logically based on calendar month, rather than days, since
what is a
yup, thats what francois said... works, but still odd.
tw
On Thu, Apr 2, 2009 at 11:22 AM, Ryan Stille r...@cfwebtools.com wrote:
Look at the DaysInMonth() function.
-Ryan
Tony wrote:
cfset date1 = '11/30/2008' /
cfoutput
cfloop from=1 to=6 index = i
Sorry I'm not totally keeping up on cf8 stuff... a quick browsing of the
CFimage tag does not seem to indicate it can convert a simple text file/content
into an image file. Any tag/function with cf8 that is able to do this job?
Many thanks as usual.
Don
Chunshen Li
Or you could start with the first, add a month, then take away a day:
cfset date1 = CreateDate(2008, 12, 1)!--- best to create a date object
than using a string... ---
cfoutput
cfloop from=1 to=6 index=i
cfset date2 = dateAdd('d', -1, dateAdd('m', i, date1))
Hi There,
OK! It's up and running now after I did the following:
[1]. create a .CAR file from CF8 Developer version
[2]. uninstall CF7 enterprise and CF8 dev
[3]. reinstalled CF8 dev as the single server and redeployed the .car
[4]. convert Dev to CF8 Standard.
Note: if you have put anything
You will need to build into it some kludge then that if the month has
21 days, calculate it that way and so on.
I don't think ColdFusion has a Last day of the month function. I may
be incorrect though. I still haven't had my morning coffee.
On Thu, Apr 2, 2009 at 8:30 AM, Bert Dawson
Here is a demo that writes text onto images. Start with a base image
( or create new empty one ) and you can write text to it.
http://tutorial4.learncf.com/
Paul.
On Thu, Apr 2, 2009 at 12:24 PM, Don L do...@yahoo.com wrote:
Sorry I'm not totally keeping up on cf8 stuff... a quick browsing
Still, what if you really wanted it to be the 30th? Do we really want the
engine to make this kind of assumption?
I guess the best solution would be like you said: add another incrementer.
That way we would have the option: increment by month and keep the position
relative to end of month, or
i think it would be ok, if it was the END of the month, you know...
since if i put in 11/30
and i say, ok, cf increment that by a month... i cant imagine a use
case where anyone
in any industry would want it to not go to the end of December? but
yeah, a different incrementer
would be the BEST
I've got a client that's decided to try and use a .net login system
written for one of their sites for *all* their sites, including the huge
CF site I maintain for them.
Looking at the .net code for this thing *really* reminds me why I like
Coldfusion so much - sheesh, 15 or so files and a
I have a government machine that an idiot
configured. It has 11GB of space on the C drive and
I constantly have to delete things to gain space. I
currently have 12MB of free space on C drive with all
my apps on E drive. When C drive fills up, you all
know what happens to the app. What
I'm trying to port from CF7 on windows to CF8 on linux. Everything was going
fine, and was working, and then something happened and it went wierd: things
which were previously working weren't.
The guys configuring the linux box can't remember what they might have done
as this happened a while
Hi Folks!
I am on the hunt for a CF Fusebox 4+ or 5+ eCommerce solution, and can't find
any -- other than the demos at Fusebox.org.
Has no one developed such a thing? I would build one myself, but I just don't
know how I would find the time to do so.
Surely there must be something out
write them to javascript cookie vars, then yank them outta there into
cf session variables
cfRas
On Thu, Apr 2, 2009 at 11:50 AM, Les Mizzell lesm...@bellsouth.net wrote:
I've got a client that's decided to try and use a .net login system
written for one of their sites for *all* their sites,
This is not CF8, but we love using Efflare's gFont CFX. Works great for things
like barcodes if you have the font.
Efflare.com
-Original Message-
From: Don L [mailto:do...@yahoo.com]
Sent: Thursday, April 02, 2009 12:25 PM
To: cf-talk
Subject: Simple text to image?
Sorry
If you have MSSQL server installed on the C drive the log files get pretty
big. Even under light use the SQL server on my dev box has racked up over
100 megs in log files.
I would also look and see if Disk Cleanup can buy you some space:
Accessories System Tools disk cleanup.
You can also
Using IIS7 to pass fake URLs throught to ColdFusion for parsing.
Ex: http://www.whatev.com/benForta/favoriteFoods/
Note: There is no benForta nor favoriteFoods directory.
The URL scope works perfectly but when I submit a form using POST the scope
isn't populated.
CGI.CONTENT_TYPE knows it's a
You can try looking at GetHTTPRequestData().
Not sure if that has what you need (and I think it changes the way it
functions if FILE data is submitted with FORM). I think you'd be better off
trying to fix whatever the underlying problem is rather than work around it.
... I'm sure you're trying
Definitely not odd, when you think through all the possible use cases. If I
build an auto-incrementer that takes in any start date, then I may have a July
28 start, which would indicate that 1 month out must be August 28 and one month
back must be June 28. Given that scenario, how would the
What do you mean my underlying problem?
It just seems like ColdFusion isn't set up to correctly interpret posts when
fed from IIS 7's custom error handling mechanism.
There's nothing wrong with my code.
On Thu, Apr 2, 2009 at 11:50 AM, Ben Nadel b...@bennadel.com wrote:
You can try looking
David,
Sorry, I didn't mean with your underlying code :) I mean that maybe there is
something wrong with the way the URL rewrite is configured. I don't know
anything about it, but it seems crazy that the product wouldn't be able to
pass off FORM scope variables properly.
I figured someone else
But that method is exactly what I was looking for. And it seems like it's a
bug, because the content key provided by that method is empty. Dangit.
I guess the current limitation is you have to post to literal files with CF
8 and IIS 7.
On Thu, Apr 2, 2009 at 11:50 AM, Ben Nadel
At its most basic, GET will populate the URL scope, POST will populate the FORM
scope. Is there a reason you can't look to the FORM scope during processing?
~|
Adobe® ColdFusion® 8 software 8 is the most important and
NP Ben, I was just confused. So you actually don't have to configure any URL
rewriting with IIS 6+. You just grab the site, update the 404 custom error
handler to use a URL ( Like /index.cfm ), and then change the feature
settings mode to custom errors. It'll then pass everything through to the
Ooooh, you're using 404 handling. Gotcha. Yeah, I use that on my site a lot.
I am not sure that I have ever submitted a FORM to it.
You might want to look into something like ISAPI_REWRITE which I think
changes the URL in a more natural way.
On Thu, Apr 2, 2009 at 2:14 PM, David McGuigan
Thanks for the suggestion. I do realize that ISAPI rewriting is an
alternative, but my entire application controller is just a CF-based,
dynamic translation and coordination of URLs to content, so I want to handle
that with CFML logic, and not have to maintain it extraneously.
Any Java fiends out
Crazy suggestion, but if you convert the form method from POST to GET, the
404 handler in IIS will pass the old query string in the new query string:
CGI.query_string --- 404;http.?old_query_string
On Thu, Apr 2, 2009 at 2:27 PM, David McGuigan davidmcgui...@gmail.comwrote:
Thanks for
Dunno about the raw Java handler, but it appears that a custom CF 404
handler does have full access to URL, FORM, CGI, etc.
I threw together a CF template with this body and called it dsp.404.cfm:
h1I am a 404 handler/h1
form action=nofile.cfm method=post
input type=Text name=varString
Sweet!
HttpServlet's HttpServletRequest object has a ton of methods I can dump!
I've never actually called servlet methods from within CFML. Anyone got a
snippet I can borrow?
On Thu, Apr 2, 2009 at 12:27 PM, David McGuigan davidmcgui...@gmail.comwrote:
Thanks for the suggestion. I do
Yup. Thanks Ben. My basic goal is to keep every URL that the user sees
totally concise and beautiful. But I actually explored that. Good
suggestion.
On Thu, Apr 2, 2009 at 12:29 PM, Ben Nadel b...@bennadel.com wrote:
Crazy suggestion, but if you convert the form method from POST to GET, the
Are you on IIS 7 perchance?
On Thu, Apr 2, 2009 at 12:34 PM, Jason Fisher ja...@wanax.com wrote:
Dunno about the raw Java handler, but it appears that a custom CF 404
handler does have full access to URL, FORM, CGI, etc.
I threw together a CF template with this body and called it
Is there a rule of thumb on how many times a query should be retried? I'm using
nested cftry/catch and will retry a maximum of 4 times. Each retry is delayed
by a random number of milliseconds. Thanks for any insight.
~|
Actually, I had forgotten that my local dev is probably still IIS 5, where
this works perfectly. Reproducing the Custom 404 on IIS 6, however, works
splendidly *except* that it doesn't pick up the FORM scope at all. Now,
that's odd.
Why are your queries failing?
On Thu, Apr 2, 2009 at 4:46 PM, Byte Me byteme...@verizon.net wrote:
Is there a rule of thumb on how many times a query should be retried? I'm
using nested cftry/catch and will retry a maximum of 4 times. Each retry is
delayed by a random number of
I wouldn't say there is a rule of thumb for this, if your Query is failing
more than 4 times, and it happens often enough for you to need to think
about this, then I think you need to stop look at how to deal with and look
for ways to fix it.
Why is it that your running into this problem? I can't
So, basically, the username and password is written out in plain text
in the cookie for anyone to steal. Great security.
Anyway, don't just trust the existence of the cookie - you need to log
the user in to your site with the username and password. Otherwise, I
can just manipulate my browser to
I am on the hunt for a CF Fusebox 4+ or 5+ eCommerce solution, and
can't find any -- other than the demos at Fusebox.org.
Has no one developed such a thing? I would build one myself, but I
just don't know how I would find the time to do so.
CFWebstore is a somewhat modified FB3 app,
Just speaking for myself here-- I never retry a query. Most errors I
tend to get with a database call is due to something like a column not
existing or some data truncation error that is going to happen no matter
how many times I try it.
The only times I have ever really seen SQL Server throw
Anirudh-
Replying directly to the job poster is preferred over replying to the
entire group.
Thanks.
-Cameron
On Thu, Apr 2, 2009 at 11:04 AM, Anirudh Apsingekar
anirudh.apsinge...@gmail.com wrote:
Ravi and Everyone,
Thanks for all the inputs and knowledge sharing.I really liked the way
You are welcome.
Ravi.
Anirudh Apsingekar wrote:
Ravi and Everyone,
Thanks for all the inputs and knowledge sharing.I really liked the way people
express their views here even i am one of those like other people out there
in Sales and Business Development.I always love to meet new people
54 matches
Mail list logo