Re: Cfform upload - Form Field contains no file

2009-04-02 Thread Fawzi Amadu
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

Re: Cfform upload - Form Field contains no file

2009-04-02 Thread Azadi Saryev
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

simple RegEx?

2009-04-02 Thread CF Developer
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

CF 7 install...What can I delete to get more space?

2009-04-02 Thread Brian Yager
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

Re: Page Encoding inside CFC?

2009-04-02 Thread Kris Jones
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

Re: CF 7 install...What can I delete to get more space?

2009-04-02 Thread Ian Skinner
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

RE: simple RegEx?

2009-04-02 Thread Adrian Lynch
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

RE: CF 7 install...What can I delete to get more space?

2009-04-02 Thread Jacob
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

Re: CF 7 install...What can I delete to get more space?

2009-04-02 Thread Wil Genovese
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

would you consider this a bug, CF8

2009-04-02 Thread Tony
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

Re: would you consider this a bug, CF8

2009-04-02 Thread Francois Levesque
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' /

Re: would you consider this a bug, CF8

2009-04-02 Thread Ryan Stille
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

Re: would you consider this a bug, CF8

2009-04-02 Thread Paul Kukiel
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

Re: Button to support both IE and Firefox

2009-04-02 Thread Don L
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.

Re: would you consider this a bug, CF8

2009-04-02 Thread Tony
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

Re: would you consider this a bug, CF8

2009-04-02 Thread Tony
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        

Simple text to image?

2009-04-02 Thread Don L
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

Re: would you consider this a bug, CF8

2009-04-02 Thread Bert Dawson
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))

Re: Coldfusion 8 Server Install

2009-04-02 Thread Ming Lu
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

Re: would you consider this a bug, CF8

2009-04-02 Thread Phillip Vector
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

Re: Simple text to image?

2009-04-02 Thread Paul Kukiel
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

Re: would you consider this a bug, CF8

2009-04-02 Thread Francois Levesque
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

Re: would you consider this a bug, CF8

2009-04-02 Thread Tony
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

.net cookies transfer to CF Session Values?

2009-04-02 Thread Les Mizzell
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

Re: CF 7 install...What can I delete to get more space?

2009-04-02 Thread Dave Watts
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

CF8 linux not recognising CF mapping

2009-04-02 Thread Bert Dawson
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

Looking for a Fusebox 4+ or 5+ eCommerce solution

2009-04-02 Thread Michael David
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

Re: .net cookies transfer to CF Session Values?

2009-04-02 Thread Ras Tafari
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,

RE:_Simple_text_to_image?

2009-04-02 Thread Chad Gray
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

Re: CF 7 install...What can I delete to get more space?

2009-04-02 Thread Gerald Guido
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

POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan
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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Ben Nadel
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

Re: would you consider this a bug, CF8

2009-04-02 Thread Jason Fisher
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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan
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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Ben Nadel
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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan
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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Jason Fisher
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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan
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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Ben Nadel
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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread 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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Ben Nadel
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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Jason Fisher
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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan
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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan
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

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread David McGuigan
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

Query Retries

2009-04-02 Thread Byte Me
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. ~|

Re: POST variables not accessible with clean URL system in IIS 7

2009-04-02 Thread Jason Fisher
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.

Re: Query Retries

2009-04-02 Thread Ben Nadel
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

Re: Query Retries

2009-04-02 Thread Alan Rother
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

Re: .net cookies transfer to CF Session Values?

2009-04-02 Thread James Holmes
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

Re: Looking for a Fusebox 4+ or 5+ eCommerce solution

2009-04-02 Thread Mary Jo Sminkey
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,

RE: Query Retries

2009-04-02 Thread brad
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

Re: Best ways to find projects

2009-04-02 Thread Cameron Childress
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

Re: Best ways to find projects

2009-04-02 Thread Ravi Gehlot
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