Re: debugging in cfscript

2012-02-09 Thread Rex
yes, but to call cf_abort, you want to do cf_abort() It's like calling #now# instead of #now()# - Rex On 2/9/2012 5:46 AM, daniel kessler wrote: you have cf_abort in your code instead of cf_abort() I am using cf_abort

Re: Hash function ignoring . in username part of email address

2012-01-27 Thread Rex
%40threeravensconsulting%2Ecom Also, if you hash, the encoded email will have a different hash compared to the origina. non-encoded email. The hash function is not smart at all, so you have to URLDecode() an encoded string. - Rex On 1/27/2012 1:28 PM, Eric Roberts wrote: We are on CF7 (yes I know

Re: Programattically CREATE DATABASE in MySQL

2012-01-19 Thread Rex
I have something similar working so, maybe it's a permissions issue. Try the CREATE DATABASE AAA code with a DSN that's using the root user. Once you've confirmed it works, lock it down from there. - Rex On 1/19/2012 9:54 AM, HCI wrote: Hi all: I've been presented with an interesting

Re: Output columns from a query that have been formatted as 2 words

2011-11-06 Thread Rex
cfquery name=queryOfQueries dbtype=query SELECT 'COLUMN WITH SPACES IN THE NAME' AS COLUMNNAME FROM storedProcData /cfquery cfdump var=#storedProcData# cfdump var=#queryOfQueries# - Rex ~| Order the Adobe Coldfusion Anthology

Re: Output columns from a query that have been formatted as 2 words

2011-11-06 Thread Rex
Sorry, disregard my answer, it has been answered already and my solution is incorrect On 11/6/2011 12:41 PM, Rex wrote: I posted an answer to this in CF-Newbie, sorry for the cross-post. In the QoQ, wrap the column name in single-quotes. Only tried in CF9+MSSQL, but it works: cfquery

Re: SHA-1 digest in CF7

2011-10-20 Thread Rex
Yep if you have SQL Server, you can have it create the SHA1 hash for you. Sorry if high level, but I need to run. - Rex On 10/20/2011 11:33 AM, Eric Roberts wrote: I know that SHA-1 was not included in 7, but is there a way around this...possibly using a java method to create a hash

Re: coldfusion

2011-09-27 Thread Rex
against the domain that I am coming from. This authentication should be server side, like via CFHTTP or checking the DB. - Rex ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp

Re: Anyone know how to fix this or why this happening?

2011-08-30 Thread Rex
something * I think, before, we can just do username as the cfmail username attribute, without the @gmail.com and now I think you have to put this in (I'm not sure about this). * Google has sending limits as well, make sure you have not hit those. - Rex On 8/30/2011 2:52 PM, Andrew

Re: PHP Serialization to JSON/Struct via ColdFusion?

2011-08-30 Thread Rex
maybe you can use this http://javaloader.riaforge.org/ that way you can drop the jar file in one of your directories - Rex On 8/30/2011 3:43 PM, Matthew Reinbold wrote: I have a database filled with PHP serialized strings that represent data that I want to consume with a ColdFusion

Re: Anyone know how to fix this or why this happening?

2011-08-30 Thread Rex
Sorry, just trying to help. It's hard to pin down an intermittent problem like yours. I've also had problems with GMail's SMTP and IMAP every now and then. Maybe you can benefit from a third party email service? - Rex On 8/30/2011 4:33 PM, Andrew Scott wrote: Rex, Nothing you said makes

Re: populate table from query results

2011-07-07 Thread Rex
/ / cfquery name=q2 datasource=DSN2 #q# / Something like that, HTH. - Rex On 7/7/2011 11:21 AM, Julie Davenport wrote: What is the fastest way to populate a table with the results of a query? I have a join query over 2 tables in database A and I need to insert all the rows found

Re: application.cfm

2011-06-22 Thread Rex
be that hard to do, since you are already serving up the PDF via cfcontent anyway. Just change where you store your files. - Rex On 6/22/2011 8:47 AM, Azadi Saryev wrote: store your pdf files outside of web root so they are not directly accessible. serve them via an intermediary .cfm page, passing

Re: Applying hotFixes and updates

2011-06-17 Thread Rex
and reading the correct CF version. Make sure you are applying the correct JARs, and deleting the JARs that it tells you to delete. - Rex ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology

Re: CF 32bit or 64bit

2011-06-15 Thread Rex
/terminal session, and go into your CF JVM, as indicated by the item labeled Java Home and run this command: java -version It will say if it's 64-bit, and if it doesn't, it's 32-bit - Rex ~| Order the Adobe Coldfusion Anthology now

Re: CF 32bit or 64bit

2011-06-14 Thread Rex
Hi Greg, Under the JVM Details in the Settings Summary, it should say something that's 64-bit there. If not, you are on 32-bit. - Rex On 6/14/2011 5:02 PM, Greg Morphis wrote: I'm running Windows Server 2008 and I'm not sure which version of CF was installed on the server, 32-bit or 64-bit

Re: Using LIKE in CF8

2011-06-01 Thread Rex
I think MSAccess only uses *, not % On 6/1/2011 3:02 PM, Terry Troxel wrote: I have been doing this forever with no problems until today. Can anyone spot my error(s)?: cfquery name=searcher datasource=rnc select * from leads where 0 = 0 cfif lname NEQ and lastname LIKE '#lname#%'

Re: The vagaries of QueryNew

2011-03-23 Thread rex
Hi Kevin, You must be doubling up a call to QueryAddRow(). Go do a search on github.com for a piece of code called QuerySim by Hal Helms. It'll help you create queries you need, and it's very easy to use. - Rex On 3/23/2011 5:01 AM, Steven Durette wrote: First, let me say that anything

Re: To Fusionreactor or not to Fusionreactor

2011-03-10 Thread rex
Have you tried SeeFusion for your server monitoring needs? It's very lightweight. On 3/10/2011 9:16 AM, Bobby Hartsfield wrote: Thanks again Steve. It looks like a good read. Hopefully, I will be able to wear them down if not convince them :-) On a side, we also had Mike Brunt help with

Re: Database connection cross over

2011-02-10 Thread rex
Never happened to me. I think this setup is very common (having a single SQLSERVER, and creating multiple DSNs to different databases), someone would have run into it. Try dumping SELECT @@SERVERNAME, DB_NAME() to see if you really are connected to the correct DB Do you have code that do

Re: coldfusion errors

2011-02-08 Thread rex
The site-wide error handler in CFAdmin should catch all errors, even compile-time errors (a syntax error, in this case). The problem is if your site-wide error handler has an error in there, then you're out of luck. It's a good idea to have your site-wide handler to be just a static file,

Re: Math weirdness

2011-02-03 Thread rex
These are the pitfalls of a dynamically typed language, and FLOAT/INT conversions. Your number1 is a string, number2 is a Double, and your number 3 is a string: cfoutput number3 is #number3.getClass().getName()#br / number2 is #number2.getClass().getName()#br / number1 is

Re: Exporting query data

2011-02-02 Thread rex
John's answer is the correct one for doing it on the CF server side. Here's how I would do it on the SQL server side. For MySQL: SELECT * INTO OUTFILE '/location/of/file.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' FROM AnyTable For MSSQL, it can be simple

Re: Subtracting two dates

2011-01-28 Thread rex
As Charlie and Brian have pointed out, you can use that on the CF side. You can also do on the SQL side, so since you are presumably getting cprAdultExp from a query anyway, it'll save some processing cycles hehe SELECT cprAdultExp, DATEDIFF(DAY, cprAdultExp, GETDATE()) AS

Re: why is cf_builder so expensive?

2011-01-27 Thread rex
I hope this is funny for you guys because it was funny for me http://www.youtube.com/watch?v=GwzklHZqkbE Ballmer seems like a nice guy. It wasn't an iPhone, so he didn't smash it ;-) On 1/27/2011 10:14 PM, Mike Chabot wrote: products. The CEO of Coca-Cola will never be seen enjoying a

Re: CF 8.01 Services freezing up

2010-12-22 Thread rex
In CFAdmin, if I go into SERVER SETTINGS Settings Summary, in the Database Data Sources section, it lists all my data sources. So, if I see everything using a JDBC URL, does that mean that I don't use ODBC data sources? On 12/22/2010 3:51 PM, Dave Watts wrote: If you have checked Maintain

Re: CF9 Not Restarting after Java Update

2010-12-14 Thread rex
Maybe that's a JDK installed with the public JRE? On 12/14/2010 9:33 AM, Chad Baloga wrote: If you go to the JVM shown in the CF Administrator, does it have a server DLL? This is on dev with CF9 multi instance: Server Product ColdFusion Version 9,0,1,274733 Edition

Re: ms sql stored procedure call returns columns in different order?

2010-12-08 Thread rex
query.getColumnNames() should be able to get your columns in the original order I can see some cases where the original order is needed, like when outputting dynamic SQL and you want to preserve the column order, i.e. in a SQL client app. On 12/8/2010 1:48 PM, Janet Whittredge wrote: I call

Re: CF9 + cfhttp == Log Every Request?!?!

2010-11-30 Thread rex
In CFAdmin, go to DEBUGGING LOGGING Log Files There should be a STOP button that disables the logging for that. I haven't tried it but let me know if that works. Thanks! On 11/30/2010 9:17 AM, Matt Quackenbush wrote: Just moved an application from CF8 to CF9. This particular application

Re: CFMail 'from' seems to get ignored

2010-11-19 Thread rex
Google's mail servers do not allow you to spoof the FROM email address. It will always come from the authenticated account. i.e. If I'm using google's mail servers, and login as thisper...@gmail.com, I cannot send from thatper...@gmail.com or anotherper...@site.com Stefan Richter wrote:

Re: index.cfm being hacked

2010-11-18 Thread rex
You store the hash (i.e. hash(index.cfm)) of the cfm file somewhere: in another file, or in a table, etc. and check intermittently, like once a day or hour. So, a job that checks for the MD5SUM of the files, and maybe a database table that stores the files and the hashes. Awesome thing would

Re: CF QR Code Generator

2010-11-17 Thread rex
How about google charts? http://code.google.com/apis/chart/docs/gallery/qr_codes.html Here's a sample: http://chart.apis.google.com/chart?cht=qrchd=t:60,40chs=250x100chl=coldfusion%20rocks http://chart.apis.google.com/chart?cht=qrchd=t:60,40chs=250x100chl=coldfusion%20rocks Robert

cf8, flex and mxml files

2010-11-13 Thread rex
I have CF8.0.1, and when I request an mxml file, it compiles to a actionscript/swf a la FLEX, and I get the flash file. When I have a missing CFM file, I get a 404. But, when I have a missing MXML file, I get a 500 server error, and I get an error message that displays the full system path:

Re: CF 9 Enterprise Create New Instance

2010-11-01 Thread rex
These links may help: http://www.adobe.com/devnet/coldfusion/articles/clustering_cf8.html http://www.placona.co.uk/148/coldfusion/creating-new-coldfusion-8-instances-the-easy-way/ Dawn Sekel wrote: I am missing something in creating an instance in Enterprise. I have the site created, the

cfquery, cachedwithin and cfscript

2010-10-01 Thread rex
Does anyone know how to cache a query using cfquery but in cfscript? This works, query is cached for a day: cfquery name=otherQry datasource=stuff cachedwithin=1 SELECT GETDATE() /cfquery cfdump var=#otherQry# But this doesn't, it's always cached = false: cfscript

Re: CF8+: Short Hand notation for calling a function within a component.

2010-09-14 Thread rex
why use a struct? what's wrong with myFunction(name=mike, likes=beer,soccer,women); if you want it shorter, then don't name the arguments, just do name and likes in order: myFunction(mike, beer,soccer,women); Michael Grant wrote: Calling a function from within the same

Re: CF8+: Short Hand notation for calling a function within a component.

2010-09-14 Thread rex
Maybe I'm confused, sorry, but isn't this the same as myFunction(name=mike, likes=beer,soccer,women)? Leigh wrote: I do not remember that being allowed in CF8. But you could assign the structure to a variable. Then use argumentCollection cfscript args = {name=mike,

Re: CF8+: Short Hand notation for calling a function within a component.

2010-09-14 Thread rex
oh, wow, I got confused there... This guy wasn't doing cffunction name=myFunction cfargument name=name type=string / cfargument name=likes type=string / !--- logic --- /cffunction So here, there's no need for argumentCollection, he can just do myFunction(mike,

Re: CF8+: Short Hand notation for calling a function within a component.

2010-09-14 Thread rex
an implicit struct. Michael Grant wrote: There's nothing wrong with it. However I wasn't asking how to write a function. My post was asking if I was wrong about passing in args as a short handed struct. And apparently I'm wrong with regards to cf9. On Tue, Sep 14, 2010 at 8:06 PM, rex li

Re: WHERE Left(str,5) = 'string' VS WHERE str LIKE 'string%'

2010-09-14 Thread rex
Over 100,000 queries this is what I got (in ms): LIKELEFT MyISAM 16,215.60 16,069.00 InnoDB 16,168.60 15,987.80 MSSQL Server 28,268.60 26,775.20 Won's Test 1,184.401,168.80 INDEXED MyISAM 16,256.20 16,303.20 INDEXED InnoDB

Re: Finding if a key exists in a struct based on a variable name

2010-09-07 Thread rex
A lot of people get DE() wrong. IIF does not short-circuit (http://en.wikipedia.org/wiki/Short-circuit_evaluation), meaning that your DE() gets evaluated even if the condition is FALSE. So, this will break: #iif(false, notFalse, false)# since notFalse does not exist. Same here:

Re: Incorrect Perfmon Values in CF9

2010-08-26 Thread rex
Caveat: this option is unavailable on a J2EE install, as it is only available on a standard installation WebMastesr Smarte wrote: CF Admin DEBUGGING LOGGING Debug Output Settings Enable Performance Monitoring ~|

Re: date format fo mySql

2010-08-20 Thread rex
Rick is right. Use cfqueryparam and your problems will go away: INSERT INTO xTable(xDate) VALUES (cfqueryparam value=Dec. 10, 2010 cfsqltype=cf_sql_date /); That's for a DATE column. If you are doing a DATETIME column, use cf_sql_timestamp instead. Rick Root wrote: On Fri, Aug 20, 2010 at

Re: date format fo mySql

2010-08-20 Thread rex
wierd, my first reply didn't go through... Rick is right. Use cfqueryparam and your problems will go away: INSERT INTO xTable(xDate) VALUES (cfqueryparam value=Dec. 10, 2010 cfsqltype=cf_sql_date /); That's for a DATE column. If you are doing a DATETIME column, use cf_sql_timestamp

Re: Millions of Coldfusion sites need to apply patches

2010-08-11 Thread rex
If we restrict access to CFIDE, won't the tags that make use of resources in this directory break? For example, the CF ajax features reference the file cfide/scripts/ajax/package/cfajax.js If we block CFIDE, these would break. What would be the workaround? Procheckup news wrote:

Re: Millions of Coldfusion sites need to apply patches

2010-08-11 Thread rex
Virtual directories (I think, I don't really use IIS)... Lots of options. Mark On Thu, Aug 12, 2010 at 8:52 AM, rex li...@pgrworld.com wrote: If we restrict access to CFIDE, won't the tags that make use of resources in this directory break? For example, the CF ajax features reference

Re: How to tell what hot fixes are applied.

2010-08-06 Thread rex
In CFAdmin (CF9), if you click on SERVER SETTING SETTINGS SUMMARY, there's a line called UPDATE LEVEL under SYSTEM INFORMATION SERVER DETAILS. This is not in CF8 for some reason. In both CF9/CF8 CFAdmin, you can click on the i icon at the upper right, next to the LOGOUT link, and it should

Re: www.cbo.gov down. CF to blame?

2010-07-28 Thread rex
Any technology can be setup so that it doesn't scale well, or not scale at all. This can be on PHP, dotNet, Rails, IIS, Apache, Nginx... I could go on... One server can only handle so much. Getting linked on drudge would send so many people to a site, and depending on how that site is

Re: Adding 2 images with cfpdf

2010-07-21 Thread rex
Maybe you can combine the two images into one, then add the combined image into the pdf, since it's now a single image. If you need it to be dynamically combined, you can use cfimage or ImagePaste() to combine the two images Mallory Woods wrote: Hello all, I have run into a situation in

Re: CGI.SERVER_NAME

2010-05-28 Thread rex
I just did some tests, and CGI.SERVER_NAME displays whatever URL was used to access the page. So if the IP address is 1.1.1.1, and these three hosts point to 1.1.1.1: x.com, b.com, xb.org, and they all point to the same webpage with this code: cfdump var=#CGI.SERVER_NAME# / it'll output the

Re: Search for any cffile... that is referencing any UNC path.

2010-05-04 Thread rex
Try a file search in Eclipse/CF Builder and try this regex: cffile(.*)\\(.*) Ian Skinner wrote: I have a pretty tall challenge here. Search our entire code base for any cfml file that uses a cffile... tag to read or write to a network resource with an UNC path. My tools available -

Re: ssis 2005 question

2010-04-26 Thread rex
+1 This is indeed the way to go. Another option, since you manage both servers: link one server to another and just do an SELECT INTO: SELECT * INTO newtable FROM 2KServer.db_name.dbo.table_name - Rex Mike Chabot wrote: I would advise avoiding the migration wizard in SSIS. In my experience

Re: Ben Forta

2010-03-31 Thread rex
Ben's doing it for kicks hehe here's a snippet from http://en.wikipedia.org/wiki/Rickrolling When a person clicks on the link and is led to the web page, he or she is said to have been /Rickrolled / Eric Roberts wrote: Rick causing trouble again? And why is he rolling? *grin*

Re: listgetat problem...

2010-03-15 Thread rex
listGetAt() sees the , inside the double-quotes as a list item. So it sees this piece of text as two items in the text lstText: cfset lstText = this is one, this is another one / cfoutput#listLen(lstText, ,)#/cfoutput Instead of doing this via CF, try leveraging MySQL's text

Re: listgetat problem...

2010-03-15 Thread rex
this better illustrates what I meant cfset lstText = 'this is one, this is another one, this should be second item' / cfoutput#listLen(lstText, ,)#/cfoutput It will output 3 rex wrote: listGetAt() sees the , inside the double-quotes as a list item. So it sees this piece of text

Re: cfmail with gmail - second question

2010-01-29 Thread rex
According to http://mail.google.com/support/bin/answer.py?hl=enanswer=13287 http://mail.google.com/support/bin/answer.py?hl=enanswer=13287 gmail requires either SSL or TLS to send email from a client I tried your code, but added the following and it worked: port=465 useSSL=true I

original request before mod_rewrite alters it

2009-11-16 Thread rex
How do I find the original request url before mod_rewrite kicks in? With ISAPI_Rewrite, it adds to the request X-REWRITE-URL with the original request url. Is there an equivalent with Apache MOD_Rewrite? ~| Want to reach the

Re: original request before mod_rewrite alters it

2009-11-16 Thread rex
Hi James, Thanks, that was it! Doing a CFDUMP does not display the rewrite CGI variables, but they're there. Thanks! James Holmes wrote: Try the CGI.REDIRECT_URL variable. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2009/11/17 rex li

(ot) people search

2009-05-16 Thread rex
Sorry for the off-topic post. Someone mentioned on their blog/fullasagoog.com a people-finder website that's pretty amazing. Can anyone recall that website, blog entry or blogger? Again, apologies for the OT post. ~| Want

Backup MX

2009-05-01 Thread rex
visitors, they can wait, but not e-mail. ;-) Also, if they also do spam and virus filtering, but not really required. Thanks! - Rex ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get

Re: Backup MX

2009-05-01 Thread rex
Thanks Dave. I currently use that for my family's domain, since the standard edition is free. What about for MS Exchange users? I know that they wouldn't like to move away from Exchange's calendar and AD integration. What would you suggest? Dave Watts wrote: Does anyone use a

Re: Backup MX

2009-05-01 Thread rex
Great, thanks! Dave Watts wrote: What about for MS Exchange users? I know that they wouldn't like to move away from Exchange's calendar and AD integration. What would you suggest? Well, I think the calendaring functionality of Google Apps is as good as that of Exchange. And it

Re: Query - can't understand the error

2009-04-23 Thread rex
I forgot how access works, but SQL Server doesn't usually like those double quotes. Also, see if maybe CF is escaping any of those quotes in those CF variables. I'd see what the CFQUERY is generating first, then run it in Access and see how it fares there. Fawzi Amadu wrote: Hello, I am in

Re: How long to ftp 100mb

2009-04-23 Thread rex
That is a very bad transfer speed. I have 400kbits/sec upload speed on my DSL so a 100MB upload would take me 30 mins. Have you tried what Wil suggested and just try a manual FTP transfer? Try it and see how fast it goes. Maybe the external server is just slow. Wil Genovese wrote: First

Re: FireFox getElementById issue?

2009-02-19 Thread rex
MemberName should have ID and NAME If it works in IE, that means that MemberName only has NAME since IE resolves the getElementById function to both the ID and NAME of the object in this code example, both selects will work in IE but only the second one will work in FF select name=MemberName

Re: struct/query strange behaviour

2008-11-11 Thread rex
should be that Adobe CF, or CFML (the language) should be smart enough to know that when I reference query[column][2], that I'm trying to get to the 2nd record's column (which is more intuitive), and not the value of the 2 key of the 1st record's column. - Rex Gert Franz wrote: Just a side note

Re: Access individual instances in a cluster without JWS?

2008-11-09 Thread rex
By JWS, do you mean JRUN Web Server? How do you disable JRUN? WebSite CFTalk wrote: Hello, I've been struggling with clustering for a while now.. 2 physical servers with 2 JRun instances on each on W2003/iis6.0. (CFMX 8.01 Ent.) Since 6.1 I've had no success with session

Re: Image display issue

2008-10-16 Thread rex
Don't use HTMLCodeFormat, it will escape your and Can you output just one row, and make sure that it does output bla ksk kak alkd sk skd img src=/images/myimage.jpg sjd ksd fksdf and that it is not escaped in the database. You don't need HTMLCodeFormat to view it, just view the source. Make

Re: Streamlining an insert

2008-10-16 Thread rex
Use two CFQUERYs: cfquery name=firstDSN datasource=DSN01 select name from [user] /cfquery cfquery name=secondDSN datasource=DSN02 cfloop query=firstDSN insert into otheruser (name) values ('#firstDSN.name#') /cfloop /cfquery this insert (secondDSN) is essentially the same, but

Re: Won't evaluate?

2008-10-10 Thread rex
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Like Aaron and Peter said, SCOPE your variables like so: cfoutput query=FAQ cfset VARIABLES.UserCount = Users.Recordcount cfset VARIABLES.Question = Replace(FAQ.Question, '$$UserCount$$', VARIABLES.usercount, ALL) cfset VARIABLES.Answer =

Re: strange (lt) behaviour

2008-10-07 Thread rex
All numeric data types in CF are typed as Java Strings. You must do a JavaCast() to type BigDecimal and do comparisons on that. Here is your modified code: cffunction name=isValidFloatRange hint=is passed a value, a min range, and a max range and checks to ensure the value is in between the 2

Re: i'll pay through paypal anyone who can debug my code

2008-10-02 Thread rex
Hello Phillip, I'm interested in debugging your code. Also, I'll need specifics about your platform: 1. OS 2. CF engine and version 3. If there is any DB interaction, the SQL engine and version Thanks! Phillip Perry wrote: Hi, I have been over this cookie code for over a week and I can't

Re: Coldfusion 8 on Linux Installation ( Linus ver. ie. Aspire One laptop )

2008-08-26 Thread rex
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have CF8 running on Debian 4 on a P3-800 MHz 512MB RAM, 12GB HDD I have 256MB assigned to the JVM, and it works fine for a small app. I'm sure you'll run into memory issues, though, if your app needs it. Don wrote: Anyone else? thoughts or

Re: Why wasn't this error caught by my onError function

2008-08-10 Thread rex
You should have onError() in place to handle runtime errors, and also make sure you have the site-wide error handler in CF Admin to handle compile time errors (like syntax errors). Also in CF Admin, don't forget to specify the missing template handler. Setting these up would prevent

Re: Single vs Cluster - Session Variables - session.cfid HELP

2008-07-30 Thread rex
Hello, Check the ff on all your cluster members: 1. REPLICATE SESSIONS option enabled 2. J2EE Sessions enabled Also, when initially setting up, you'd have to stop and start all instances. Btw, are you clustering multiple instances on the same machine (vertical cluster) or across physical

Re: Directory contents to list/array?

2008-07-23 Thread rex
You can also do Java's File Class, which returns an array. I haven't done speed tests, but it *should* be faster for big directories: listDirectory = createObject(java,java.io.File).init(/var/absolute/directory/path).list(); Let us know if it's faster for you Melissa Cope wrote: The

Re: XML Error = invalid character Unicode 0x19.

2008-07-04 Thread rex
Dominic Watson wrote: Apparently, the org.apache.commons.lang.StringEscapeUtils java class' escapeXml method escapes this (and other) characters properly. So something like: cfset escapers = CreateObject('java', 'org.apache.commons.lang.StringEscapeUtils') cfset cleanedDescription =

cfxml vs xmlnew() vs xmlnew(true)

2008-06-30 Thread rex
Hello everyone, I have this code that should generate the same exact XML three ways, but I can't get the third way to work. 1. cfxml - this works exactly the way I want it. cfxml variable=whatIwant breakfast_menu food name quantity=50 quantity2=150Belgian Waffles/name

Re: cfxml vs xmlnew() vs xmlnew(true) - (Solved)

2008-06-30 Thread rex
I should be referencing the root node in xmlRoot: cfscript myXML = xmlNew(true); myXML.xmlRoot = xmlElemNew(myXML, breakfast_menu); myXML.xmlRoot[food] = xmlElemNew(myXML, food); myXML.xmlRoot[morefood] = xmlElemNew(myXML, morefood); myXML.xmlRoot[food][name] = xmlElemNew(myXML, name);

Re: submitting a form

2008-06-27 Thread rex
Claude Schneegans wrote: It is possible to spoof anything in an HTTP request to your server. Of course, but not in this case. How do you know that the submission was from your page? Do you check for the http referer on your action page? Like Brad Wood and Dave Francis said, someone

Re: cfloop using to much memory

2008-06-26 Thread rex
Sam Roach wrote: We are trying to create a CSV file with about 250,000 rows with about 40 dynamic columns which we need to loop over so we can get the correct order. We see an issue coming from the nested loops on the large dataset and the server is running out of memory. We took a step

Re: Best way to cause scheduled tasks to run consecutively?

2008-05-24 Thread rex
Since a CF Scheduled task is basically just a call to a webpage, just put a CFLOCATION in your code. So, your scheduled task will be calling task1.cfm, and the last part of your code would be a CFLOCATION URL= task2.cfm / If you are only doing queries, the best way to do it would be on the SQL

Re: OT - https requests stop working after Firewall and IP changes

2008-04-17 Thread rex
James Blaha wrote: Hi Dave, If you go on the CF server locally can you call a cfm page via HTTP and HTTPS? Where is the SSL cert sitting? If SSL still fails locally, check out the SSL Diagnostic Tool at http://www.microsoft.com/windowsserver2003/iis/diagnostictools/default.mspx SSL is

Re: cf8 Admin error handler url

2008-04-14 Thread rex
/myapp is probably a mapping or a customtag/component location that has not been set up the myapp referenced in the CF Admin error handler is not a directory in your application, but a coldfusion mapping you can add the mapping /myapp to point to your absolute path

Re: CFID and CFTOKEN in the way

2008-04-14 Thread rex
the CFID/CFTOKEN is only appended to the URL if you are using URLSessionFormat() or if in the form tag, there is no method set, or it is set to GET, or it is set in the action page no simple way, but you need to remove them in all the places landing onto the barclay page or you can add

Re: CFID and CFTOKEN in the way

2008-04-14 Thread rex
btw, can you point us to the Forta article? Les Mizzell wrote: Dan Vega wrote: When using cflocation you can set the attribute for addtoken=false Yea - but it's often a form submission without a cflocation. I found a method suggested by Ben Forta I'm playing with...

Re: weird issue in browser with cf8 and long execution times

2008-04-14 Thread rex
Yes, Ravi is correct. If CF is not connected to your webserver, the CFML will not run at all, and data will not be inserted. Are you doing some kind of cfheader/cfcontent, or javascript relocate somewhere? I'm thinking if your code does something like this: 1. get the XML 2. parse

Re: Hosting question

2002-10-02 Thread Rex Wickham
Hi Take a look at www.coldfusionhosts.net It's got lots of hosting companies listed. Could be a useful starting point.. Rex Coldfusionhosts admin - Original Message - From: Kris Pilles [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Wednesday, October 02, 2002 3:56 PM Subject: OT

Re: Mildly OT: CF MX Hosting

2002-09-26 Thread Rex Wickham
Hi Try www.coldfusionhosts.net It's a worldwide search engine for ColdFusion hosts. Hope that helps. Regards Rex Site webmaster. - Original Message - From: Russ [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, September 26, 2002 2:59 PM Subject: Mildly OT: CF MX

Re: CFMX Hosting

2002-09-19 Thread Rex Wickham
Try www.coldfusionhosts.net A complete search engine for CF hosts. Refards Rex - Original Message - From: Tangorre, Michael [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, September 19, 2002 12:27 PM Subject: CFMX Hosting Hello all, Anyone know of some relatively

Re: CF Host in Seattle Area

2002-09-17 Thread Rex Wickham
Hi Take a look at www.coldfusionhosts.net its a search engine for Coldfusion hosting providers Regards Rex coldfusionhosts.net admin - Original Message - From: Ian Lurie [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Tuesday, September 17, 2002 5:22 PM Subject: CF Host

ColdFusion Host search engine

2002-08-30 Thread Rex Wickham
has been going strong for over a year now. Regards Rex [EMAIL PROTECTED] ~| Archives/subscription: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 This list and all House of Fusion resources hosted by CFHosting.com

simple cfloop

2002-03-03 Thread Sorgatz, Rex
Beginner CFer with an easy question The situation: the user selects the rows to query based upon ticking checkboxes So, this is the first page: form action=tallycfm method=post input type=checkbox name=id value=180 input type=checkbox name=id value=192 input type=checkbox name=id value=204 input